S
Suraj
Guest
Hi All,
I am trying to read a *variable length* string (from a Garmin GPS, @1Hz) on
my PC serial port using the MSCOMM Control in VB. Now, I'm stumped by this:
The COMM control can generates a "recieve Event" when the specified
"Threshold" of characters in the buffer is met. Now my string is variable
length, If I specify a threshold that's less (I can't know!) I get multiple
"Recieve Events" and my string is cut into many pieces. While I know that
the GPS sends the string at 1 sec Intervals, but how do I syncronize with
this? I get half-cut strings if I start reading from program loadup.
I know there must be a simple handshaking technique that I don't know about.
Many thanks
I am trying to read a *variable length* string (from a Garmin GPS, @1Hz) on
my PC serial port using the MSCOMM Control in VB. Now, I'm stumped by this:
The COMM control can generates a "recieve Event" when the specified
"Threshold" of characters in the buffer is met. Now my string is variable
length, If I specify a threshold that's less (I can't know!) I get multiple
"Recieve Events" and my string is cut into many pieces. While I know that
the GPS sends the string at 1 sec Intervals, but how do I syncronize with
this? I get half-cut strings if I start reading from program loadup.
I know there must be a simple handshaking technique that I don't know about.
Many thanks