B
bharath_r
Hi,
I am developing a GPS data logging application, basically a windows
service where i read GPS data from the device and write it to a text
file. I use CreateFile function passing the port number as an
argument. The GPS device outputs the data every second. I want to
identify this event i.e., i want to read from the port only when the
GPS outputs the data. Currently my program is not in sync with the
device causing my program to read only a part of the data i.e., if the
device outputs 6 lines of data my program read only the first few
lines or the last few lines of the data. I want to synchronise my
program with the device. I want to read data only when it outputs the
data. Is there a way to do this. Is there an event which i can handle
when the device outputs the data?
Thanks
bharath
I am developing a GPS data logging application, basically a windows
service where i read GPS data from the device and write it to a text
file. I use CreateFile function passing the port number as an
argument. The GPS device outputs the data every second. I want to
identify this event i.e., i want to read from the port only when the
GPS outputs the data. Currently my program is not in sync with the
device causing my program to read only a part of the data i.e., if the
device outputs 6 lines of data my program read only the first few
lines or the last few lines of the data. I want to synchronise my
program with the device. I want to read data only when it outputs the
data. Is there a way to do this. Is there an event which i can handle
when the device outputs the data?
Thanks
bharath