This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPi 4 Serial UART for GPS input
#1
Hi There,

I have a pi4 that I am trying to get a ublox 7m GPS module working on via the UART GPIO15 pins.

I am stumped regarding the primary and secondary UART serial connections. Apparently on the pi4 they are different (with a miniuart) to the earlier ones

There are a few overlay options one can specify in the config.txt file I have tried a few already, resulting in ttyAMA0, ttyAMA1, ttyS0,  but I still cannot get any of this data into signal k after aliasing the device and setting a connection in the serial dialog.

in my config.txt I have the following
dtoverlay=disable-bt
dtparam=spi=on
enable_uart=1
core_freq=250
dtoverlay=uart5,ctsrts

these values come from the https://www.raspberrypi.org/documentatio...ring-uarts
documentation. But I still cant work it out. Has anyone else had to deal with this?

The easy option is aparently to go and get a USB GPS dongle. But I had this ublox NEO 7m by duinotech. It has an onboard antenna but also an sma to run an external antenna. I have previously read the nmea gps messages in sudo cat /dev/(serial port). but not through to signal k.

The module and guts of connecting this device I found in this video https://youtu.be/N8fH0nc9v9Q but i did not run the python scripts as I wish to use it with OP.

An help would be appreciated.

Thanks
C32
Reply
#2
OK Update, as follows

I edited my config.txt file to include

dtoverlay=uart5,txd1_pin=08,rxd1_pin=10

re-ran 

sudo cat /dev/ttyAMA0

Got illegible GPS data.

Edited the serial device connection to signal K and set the baud to 9600.

Still no throughput to signal K.

hard Set the serial Baud rate to 9600 in terminal using 

stty -F /dev/serial0 raw 9600 cs8 clocal -cstopb

reboot

and...boom!

Problem solved. working like a charm. (5 total signal k throughput deltas/second and 15 signal k paths)

Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin 

[url=https://www.raspberrypi.org/documentation/computers/configuration.html#primary-uart][/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)