Friday, June 7, 2013

serial port is read randomly

serial port is read randomly

I am trying to read the serial port by the following command after opening the device. read(fd,&UBX_buffer,1); for it was working fine but for some reason it stopped working and while I was debugging it sometimes the read function returns -1 and other times returns an integer value. what could possibly do that. I really don't know what to change because it was working fine previously.

No comments:

Post a Comment