Hello and good afternoon,
I'm having some difficulty trying to connect my GPS to work with the gpsd program. I have a COEX GPS (module based on UBX-M8030 IC) which I did find a similar version named BN-880 (engine M8030-KT) was compatible with gpsd version 3.14.
I currently have gpsd version 3.17 and the GPS is connected both to a flight controller of a drone that has a UART port connection between the two. The flight controller (Pixracer) is connected to the Raspberry Pi (RPi) via a USB cable.
On the SD card of the Raspberry I've only installed gpsd and gpsd clients (along with necessary programs for the drones flight) and I'm operating on Windows using PuTTY as an SSH window.
I've been following a guide that instructs how to connect these two, but due to my GPS setup I've been having slight difficulties. Most instructions I've searched for have a connection between the GPS to the RPi (GPIO pins) so this may be the cause of difficulty in the setup.
I'm not obtaining anything when I attempt the command cat /dev/serial0. I've paused here because according to all the instructions I should be getting a readout of NMEA sentences and this confirms that the GPS is giving out data. The GPS isn't the problem, I can obtain data from it in a different software so I'm having issues trying to set it up correctly.
What I have done so far to connect the GPS:
- Enabled serial hardware in the rapsi-config
- attempted to set up connection to my devices to the ports ttyACM0, ttyAMA0, ttyS0, serial0----(ttyACM0 is the USB connection between my flight controller and RPi). Each of these have been connected to both the DEVICES and GPSD_OPTIONS.
- I've checked that I'm in a dialout group (sudo adduser pi dialout)
- Inspected the /boot/config.txt and checked enable_uart=1, dtoverlay=pi3-disable-bt
- Inspected /boot/cmdline.txt does not have console=serial0, 115200
- It's speed is set at 9600 and tested at 115200 as well
- I've set the devices to ACM0 for a while, it had some connection but no readings and the drone was sending out warnings
- Used the command ls -l /dev to identify that serial0 --->ttyAMA0 and serial1--->ttyS0
- Below is the dmesg | grep tty:
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=E4:5F:01:35:1C:FA vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.001815] printk: console [tty1] enabled
[ 1.484727] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[ 12.988741] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
May I ask for advice or suggestions to fix my current RPi and GPS connection situation?