When I check the UART flags I’m not getting the codes shown in the table in your documentation:
I’m checking uart.flags() after reading from hardware.uartBCAW on my IMP004m.
HW_UART002 <- hardware.uartBCAW;
HW_UART002.configure(9600, 8, PARITY_NONE, 1, NO_CTSRTS, readbackGPS);
I’m reading from a GPS receiver GP-735 https://www.sparkfun.com/products/13670
The GPS broadcasts its data every second.
I get values like 0, 33, 65, and 97.
I can receive GPS strings from the GP-735, but I also get some corrupted strings, which prompted me to check the uart.flags() to see what the problem is. Perhaps I’m doing too much in the readbackGPS function, which is causing me to miss characters.
If you have some tips on managing the incoming data, that would also be helpful. I’m using the GPSParser routines.