Hi,
I am trying to receive data via bluetooth, and have a problem, any views or help would be great. Sending is no problem, just receiving.
Using the tutorials, I have partial success.
Using the AsyncStreams method, and the tutorial, as recommended, when you receive data, it mashes up the data. Randomly, some characters are misplaced, and moved, and some characters are dropped. It does not seem to be baudrate dependant, as it does it just as much at 1200 as at 19200 (the max I need).
Using the older Serial tutorials, and polling the streams using a timer, it works fine, and never drops a character. However, the data that is being received can have CR/LF or LF/CR/CR or CR as the end of lines. Works fine with CR/LF, but textreader.readline blocks if using anything but CR/LF
So my questions are..
Anyone have a reliable solution to the Asyncstreams ? or is there a workaround to the blocking call for Readline when a LF is never received.
Thanks
I am trying to receive data via bluetooth, and have a problem, any views or help would be great. Sending is no problem, just receiving.
Using the tutorials, I have partial success.
Using the AsyncStreams method, and the tutorial, as recommended, when you receive data, it mashes up the data. Randomly, some characters are misplaced, and moved, and some characters are dropped. It does not seem to be baudrate dependant, as it does it just as much at 1200 as at 19200 (the max I need).
Using the older Serial tutorials, and polling the streams using a timer, it works fine, and never drops a character. However, the data that is being received can have CR/LF or LF/CR/CR or CR as the end of lines. Works fine with CR/LF, but textreader.readline blocks if using anything but CR/LF
So my questions are..
Anyone have a reliable solution to the Asyncstreams ? or is there a workaround to the blocking call for Readline when a LF is never received.
Thanks