I've got a problem regarding the "OnRead" event of the SerialTools for Pocket PC.
Here is my "OnRead" sub:
Private Sub objPort_OnRead(ByVal Data As String) Handles objPort.OnRead
If Data Is Nothing Then
'[Do Something Function]
In [Do Something Function] I'm reading the data I got from the port. To be sure the data is good for me I'm using a checksum which is in the last byte.
Now, for example, I'm supposed to get 97 long bytes array (the checksum will be on the 97 place in the array).
At present, the OnRead Event is triggered after 32 bytes has been received - this activate the [Do Something Function] which in it's turn get a failed checksum (the last byte in this 32 bytes array is not true checksum since it was supposed to be 97 long and the checksum is on last byte - in place 97...)
I just want to emphasize that my BufferSize is set to Zero (when I defined it to 80 for example it worked just fine - the OnRead event triggered only when it had 80 bytes in it's magazine, but I cannot use it since my data's length is not set).
My BaudRate is 4800 and the Timeout is 5000.
Anyone knows if this a problem or this is it for this product (which means i must search for other com port solution....) ?