mw1coe
Posts: 1
Joined: Fri Oct 23, 2015 12:00 am

Raspberry PI GPS help..

Fri Oct 23, 2015 12:15 am

Hi I'm hoping so may shed some light on a Little Problem I am Having..

I'm trying to use the RaspberryPI 2 with the Display on my Dual Head Stereo to create a GPS Navigation System..

Getting the Picture was not the Problem once I figured out the pi is wired like a Apple and not Conventional 4 Pin Connectors...

The Problem revolves around the GPS not Working..

The USB adapter I am using is a U-Blox 7 VK-172 Adapter..

Plugging the USB GPS into the pi, I am able to see it detected in

lsusb

Bus 001 Device 004: ID 1546:01a7 U-Blox AG

Using:

dmesg | grep -i usb

I worked out that my USB GPS was paired to ttyACM0

At this point I can test your GPS device is functional and sending data by:

sudo cat /dev/ttyACM0

The Problem is Even though I have GPSD Installed I cannot get the GPS to feed into GPSD.

I have Tried the Following

sudo gpsd /dev/ttyACM0 -n -F /var/run/gpsd.sock

This command is supposed to connects the output of ttyACM0 to the gpsd socket

But when I type either :

cgps -s or xgps it will not show any information

Also I,m trying to get Navit working but as it and all other software is looking for a USB0 device and not a ttyACM0 device i cannot get any GPS software to work

Can anyone recommend what I am doing wrong and how I can fix this Problem as this is the main issue I need to fix before continuing on...

Thanks

Rob..

User avatar
Nfarrow
Posts: 47
Joined: Sat Dec 20, 2014 1:24 am
Location: Oklahoma, USA
Contact: Website Facebook Twitter YouTube

Re: Raspberry PI GPS help..

Mon Oct 26, 2015 4:48 pm

Try on the command line:

Code: Select all

read -n 200 LINE < /dev/ttyUSB0 
or

Code: Select all

read -n 200 LINE < /dev/ttyACM0
Also you might have the TXD or RXD plugged in wrong. Try only having one plugged in, while reading the output on the screen. If you still see nothing, plug in the RXD into TXD but still only having one plugged in. Since you are not sending data to the GPS but only receiving it.

I also have been playing around with the GPS stuff on the Pi here is a little script I wrote.
https://github.com/VeggieVampire/PiTracker


Just a little note, not sure if this fits but with Arduino Serial interfacing you have to first open the connection with something like this line below.

Code: Select all

cat < /dev/ttyUSB0 &
Twitter: @farrownick
Instagram veggievampire
I own a lot of Pis....

User avatar
Nfarrow
Posts: 47
Joined: Sat Dec 20, 2014 1:24 am
Location: Oklahoma, USA
Contact: Website Facebook Twitter YouTube

Re: Raspberry PI GPS help..

Mon Oct 26, 2015 7:30 pm

Not sure if this will work but you could try using a symlink( ln -s /path/to/file /path/to/symlink )

Code: Select all

sudo ln -s /dev/ttyACM0 /dev/ttyUSB0

or take a look at this instructable.

http://www.instructables.com/id/Read-an ... pberry-Pi/
Twitter: @farrownick
Instagram veggievampire
I own a lot of Pis....

Return to “Troubleshooting”