sparkfun / SparkFun_Ublox_Arduino_Library

Library to control UBX binary protocol and NMEA over I2C on Ublox GPS modules
Other
141 stars 85 forks source link

ASCII serial forwarding not working? #49

Closed grexjmo closed 4 years ago

grexjmo commented 4 years ago

Subject of the issue

I'm not seeing any ASCII data being forwarded from I2C connection to FP9. I have serial debugging enabled and see "Bytes available:" out the serial port, eventually stopping at 21300 at which point u-center starts reporting "$GPTXT,01,01,00,txbuff alloc*7F"

Your workbench

Steps to reproduce

Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue. 1)Connect to FP9 module via I2C 2)Configure nmea output port to a serial port (same behavior whether Serial to serial monitor or Serial1 to my HC06 module. 3)Optionally enable serial debugging

Expected behavior

I'm expecting to see the $GPGGA messages being forwarded out the serial connection

Actual behavior

"Bytes available: ##" messages are seen out the serial port with serial debugging enabled. Otherwise I see nothing out the serial port. uCenter connection to the FP9 starts showing "$GPTXT,01,01,00,txbuf alloc*7F" once the serial debugging indicates the bytes available caps out at 21300. Example1_BasicNMEARead_Error.txt

grexjmo commented 4 years ago

Figured it out. One of the other examples turned off NMEA output and saved the change. And I assume using the setI2COutput command to NMEA only causes the I2C buffer to hang since it accepts the command but then can't respond. From ucenter I changed the PRT config to UBX+NMEA, and reenabled/disabled the NMEA messages I needed, and it started working.