Now when I am having problems I post in Troubleshooting instead.
What has been done:
I switched to a new RPi3 and set it up with Raspbian Jessie (2016-02-26).
Then I tried the suggestions in the first thread to set up gpsd, but it failed in the end.
I have checked these items:
- GPS BU-353 is recognized by Raspbian as a Prolific serial port on ttyUSB0
- I can use stty to open ttyUSB0 and cat the data. NMEA sentences are listed so the GPS works OK.
Code: Select all
stty -F /dev/ttyUSB0 ispeed 4800
cat </dev/ttyUSB0
$GPGGA,205418.306,,,,,0,00,,,M,0.0,M,,0000*59
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,3,1,12,29,53,234,32,17,52,192,,02,44,122,,09,37,050,*71
$GPGSV,3,2,12,26,34,317,28,05,32,160,,31,15,280,,23,14,105,24*7E
...
Code: Select all
sudo apt-get install gpsd gpsd-clients python-gps
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
Code: Select all
cgps -s
Code: Select all
xgps
Then I checked if the system was listening to the gpsd TCP port 2947 (which is the default gpsd port):
Code: Select all
pi@rpi3-jessie:~ $ netstat -lnpt
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2947 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 650/Xtightvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 650/Xtightvnc
...
Still no data shows up.
Is there someone here who can help in debugging the connectivity issue here?
For instance, how does gpsd know the baudrate to use against ttyUSB0? I find no mention of such a setup in any page I have read...
Reference webpages:
http://blog.retep.org/2012/06/18/gettin ... pberry-pi/
http://www.catb.org/gpsd/installation.html