It is a GNSS device, not a 'GPS' device*As stated in the title I can't get the gps to work. Device itself isn't damaged (works on windows).
However on RPi I'm not able to make it work.
I triedCode:
gpsd_3.25 instead of 3.22DEVICES="/dev/ttyUSB0", OPTIONS="-n -b"DEVICES="", OPTIONS="/dev/ttyUSB0"just waiting for FIX (a lot of people said it can take up to 20 minutes but I didn't get fix even after 2 hours)different baud ratestcp://localhost:2947 NMEA0183>┌──────────────────────────────────────────────────────────────────────────────┐or":14}│Time: n/a Lat:n/a Lon: n/a │ver":"NMEA0183","activated":"2024-07-01T10:45:00.326Z","flags":1,"native":0,"bps":4800,"parity":"N└───────────────────────────────── Cooked TPV ─────────────────────────────────┘┌──────────────────────────────────────────────────────────────────────────────┐false,"timing":false,"split24":false,"pps":true}│ GNGGA GNGSA GNRMC GPGSV │└───────────────────────────────── Sentences ──────────────────────────────────┘┌───────────────────────┌─────────────────────────┌────────────────────────────┐│ SVID PRN Az El SN HU│Time: 104510.327 │Time: 104510.327 ││ │Latitude: │Latitude: ││ │Longitude: │Longitude: ││ │Speed: │Altitude: ││ │Course: │Quality: 0 Sats: 0 ││ │Status: V FAA:N │HDOP: ││ │MagVar: │Geoid: ││ └───────── RMC ───────────└─────────── GGA ────────────┘│ ┌─────────────────────────┌────────────────────────────┐│ │Mode: A1 Sats: │UTC: RMS: ││ │DOP H= V= P= │MAJ: MIN: ││ │TOFF: N/A │ORI: LAT: ││ │PPS: N/A │LON: ALT: │└──────── GSV ──────────└────── GSA + PPS ────────└─────────── GST ────────────┘(82) {"class":"VERSION","release":"3.22","rev":"3.22","proto_major":3,"proto_minor":14}(202) {"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/ttyUSB0","driver":"NMEA0183","activated":"2024-07-01T10:45:00.326Z","flags":1,"native":0,"bps":4800,"parity":"N","stopbits":1,"cycle":1.00}]}(122) {"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":2,"scaled":false,"timing":false,"split24":false,"pps":true}(39) $GNGGA,104503.327,,,,,0,0,,,M,,M,,*53(32) $GNGSA,A,1,,,,,,,,,,,,,,,,1*1D(32) $GNGSA,A,1,,,,,,,,,,,,,,,,2*1E(43) $GNRMC,104503.327,V,,,,,,,010724,,,N,V*2C(39) $GNGGA,104504.327,,,,,0,0,,,M,,M,,*54(32) $GNGSA,A,1,,,,,,,,,,,,,,,,1*1D(32) $GNGSA,A,1,,,,,,,,,,,,,,,,2*1E(43) $GNRMC,104504.327,V,,,,,,,010724,,,N,V*2B(39) $GNGGA,104505.327,,,,,0,0,,,M,,M,,*55(32) $GNGSA,A,1,,,,,,,,,,,,,,,,1*1D(32) $GNGSA,A,1,,,,,,,,,,,,,,,,2*1E(43) $GNRMC,104505.327,V,,,,,,,010724,,,N,V*2A(39) $GNGGA,104506.327,,,,,0,0,,,M,,M,,*56(32) $GNGSA,A,1,,,,,,,,,,,,,,,,1*1D(32) $GNGSA,A,1,,,,,,,,,,,,,,,,2*1E(20) $GPGSV,1,1,00,1*64(43) $GNRMC,104506.327,V,,,,,,,010724,,,N,V*29(39) $GNGGA,104507.327,,,,,0,0,,,M,,M,,*57(32) $GNGSA,A,1,,,,,,,,,,,,,,,,1*1D(32) $GNGSA,A,1,,,,,,,,,,,,,,,,2*1E(43) $GNRMC,104507.327,V,,,,,,,010724,,,N,V*28(39) $GNGGA,104508.327,,,,,0,0,,,M,,M,,*58(32) $GNGSA,A,1,,,,,,,,,,,,,,,,1*1D(32) $GNGSA,A,1,,,,,,,,,,,,,,,,2*1E(43) $GNRMC,104508.327,V,,,,,,,010724,,,N,V*27
From my brief acquaintance with GPS devices some years ago I would expect the LAT/LON coordinates to be delivered from the GPSr in NMEA $GPGGA sentences.
Your GPSr seems to be sending $GNxxx sentences.
One possibility is that the software or app you are using on Windows knows this and can accommodate it, but the code you are running ( gpsd ) under your unspecified OS on your unspecified RPi board does not.
If that is the problem, I don't know specifically how to fix it. But maybe you could configure the GPSr to emit standard $GPxxx sentences, or configure gpsd to understand $GNxxx sentences?
However, the $GPGSV output reports no satellites in view. So you are unlikely to have a fix anyway. And maybe THAT is why you don't get $GPGGA location data, and my previous suggestion is irrelevant.
{Edit: Originally written before you got a Fix. Things may be different now. So much for my research and typing...
GPSD** know what it is doing. Hence using GN*
It can use GPS, but is better than that and uses GLONASS, etc as well, if it can.
**and Gpsmon or cgps, etc.
Statistics: Posted by bensimmo — Wed Jul 03, 2024 5:44 am