I'm sorry if I'm missing something, but most of the help I was given on the other thread was about parsing NMEA and using strings.
I am now using a Ublox GPS using Ubx protocol in poling fashion, I know the sentence I'm receiving is 92 bytes long, the problem I'm experiencing (and why I don't simply read right after poling) is that there seems to be a delay between poling and the response.
To solve this I decided to increase the SoftwareSerial buffer to 100 Bytes enough to store a full sentence, then process the sentence once the buffer has 92 bytes.
This works fine if I don't read any sensors between the request and the processing, if I do I sometimes miss bytes.
To deal whith this issue (while not waiting for the delay between poling and receiving) I am calling serial.available() at the beginning of each loop and reading it then, this still causes me to wait about 40ms while reading and sometimes i loose a character and have to discard the sentence.
Is there any way of avoiding this?
tot_04_05.ino (7.89 KB)