I was wondering if any of you could lend insight on a particular problem of mine, so let me describe the situation.
I use a RF-Dongle that does serial emulation, and I use the Serial Port Data Received Event to cater for any transmissions that occur and store it in an "Inbox" buffer
I have a 5ms timer event, I even have got it down to 1ms using the High Resolution Timer, that detects if there is a message in the "Inbox" and then responds to that message.
The problem arises when I send Data over the serial Port. I send packet sizes of max length 64bytes and on my receiving Device receives them every 15ms. This is the problem, the protocol defined requires 5 ms or less. I know the 15ms thing sounds similar to the Drawback of System.Net.Timers and I've read that they can only give you 15ms, However when I use SerialPort.write instead of SerialPort.writebytes the time taken is 6ms for a transmission and not 15.
My question is is there a way to speed this up, I do not want to break up my packet and transmit. Is this a timer problem or a Serial Port problem