GPS parsing using UART

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
User avatar
Posts: 5084
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Re: GPS parsing using UART

Post by pythoncoder » Sun Jan 14, 2018 1:45 pm

That test script is a fairly rigorous test of the UART running at your baudrate (9600), in that it performs simultaneous reading and writing. So I think you can be confident of the ESP32 UART driver. I suspect a hardware problem.

As far as I can see you're left with the following possibilities:
  • A fault in the GPS device.
  • An error in the GPS device baudrate (unlikely).
  • An error in the ESP32 baudrate. Measurements of my ESP32 indicated it was spot-on but you might want to check yours.
  • Electrical issues: poor gnd connection, incorrect voltage levels coming from GPS device.
Bear in mind that the test script will work if the ESP32 baudrate is wrong since it is transmitting and receiving on the same UART. Baudrates need to be matched to within 5%. However errors in baudrates are uncommon as oscillators are usually crystal controlled. So I tend towards an electrical problem. You really need to get an oscilloscope or logic analyser onto the data line to diagnose this one.
Peter Hinch

User avatar
Posts: 5
Joined: Sun Apr 08, 2018 5:06 pm

Re: GPS parsing using UART

Post by Bionaught » Sun Apr 08, 2018 5:11 pm

Actual managed to get this working. One more step closer, to capturing data from Nutricial Enteral Nutrician pumps at work in the hospital I work at. Thanks Peter

Post Reply