RC7620: GPS daemon failed

Hello everyone,

I try to start GPS daemon in my embedded linux system.
but getting the following error:

$ gpsd -D 5 -N /dev/ttyUSB1
gpsd:INFO: launching (Version 3.25, revision 3.25)
gpsd:INFO: starting uid 0, gid 0
gpsd:INFO: Command line: gpsd -D 5 -N /dev/ttyUSB1
gpsd:IO: opening IPv4 socket
gpsd:ERROR: can’t bind to IPv4 port gpsd, Address already in use(98)
gpsd:ERROR: maybe gpsd is already running! Or systemd has the port?
gpsd:IO: opening IPv6 socket
gpsd:ERROR: can’t bind to IPv6 port gpsd, Address already in use(98)
gpsd:ERROR: maybe gpsd is already running! Or systemd has the port?
gpsd:ERROR: command sockets creation failed, netlib errors -1, -1

Does anyone has the same issue?

Thank you in advance.

does this help?
https://forums.raspberrypi.com/viewtopic.php?t=128045

BTW, you need to make sure /dev/ttyUSB1 can output some NMEA frame first in minicom or putty

How to output NMEA frames from /dev/ttyUSB1?

you can try


AT!ENTERCND="A710"
AT!GPSEND=0
AT!GPSFIX=?
AT!GPSFIX=1,255,10000

I enter the AT-COMMAND you gave me.

$ ATCMD /dev/ttyUSB2 ‘AT!ENTERCND=“A710”’
AT!ENTERCND=“A710”
OK
$ ATCMD /dev/ttyUSB2 ‘AT!GPSEND=0’
AT!GPSEND=0
OK
$ ATCMD /dev/ttyUSB2 ‘AT!GPSFIX=?’
AT!GPSFIX=?
!GPSFIX: ,,
: 1-Standalone, 2-MS-Based, 3-MS-Assisted
: 1-255 seconds
: 1-4294967280 meters
OK
$ ATCMD /dev/ttyUSB2 ‘AT!GPSFIX=1,255,10000’
AT!GPSFIX=1,255,10000
OK

Then I use minicom to open /dev/ttyUSB1
$ minicom -D /dev/ttyUSB1

I get continuous output NMEA frames:

$PQXFI,*7A
$GPRMC,V,N,*7F
$GARMC,V,N,*6E
$GPGSA,A,1,*32
$GAGSA,A,1,*23
$GNGSA,A,1,*2C
$GPGRS,51
$GPGLL,V,N
64
$GPGGA,0,66
$GAGGA,0,77
$PQXFI,7A
$GPRMC,V,N,7F
$GARMC,V,N,6E
$GLGSV,1,1,03,66,50.6,355.8,77,53.4,237.7,76,65.4,357.2,1
45
$PQGSV,1,1,01,01,49.9,129.4,0,4
51
$GPGSV,2,1,06,10,61.9,199.7,16,21,26,29.5,210.9,1
6C
$GPGSV,2,2,06,28,49.9,310.8,31,31.6,274.2,1
63
$GNGNS,025053.82,NNN,38
$GPVTG,T,M,N,K,N
2C
$GAVTG,T,M,N,K,N
3D
$GPGGA,0,66
$GAGGA,0,77
$PQXFI,025053.08,5D
$GPRMC,V,N,7F
$GARMC,V,N,6E
$GPGSA,A,1,32
$GAGSA,A,1,23
$GNGSA,A,1,2C
$GPGRS,51
$GPGLL,025053.08,V,N
43
$GPGGA,0,66
$PQXFI,7A
$GLGSV,2,1,08,78,66,50.6,355.8,77,53.4,237.7,76,65.4,357.2,1
42
$GLGSV,2,2,08,75,9.8,28.1,65,57.7,101.3,67,4.9,327.7,72,6.3,133.6,1
77
$PQGSV,4,1,14,01,49.9,129.4,02,42.9,243.3,03,60.5,201.1,04,35.9,115.3,0,4
64
$PQGSV,4,2,14,05,19.0,258.8,06,53.4,317.8,07,20.4,181.4,08,59.8,208.1,0,4
61
$PQGSV,4,3,14,09,48.5,296.7,10,13.4,191.3,12,13,61.9,232.0,0,4
52
$PQGSV,4,4,14,14,57.7,330.5,16,54.8,327.7,0,4
64
$GPGSV,3,1,11,10,61.9,199.7,12,12.0,38.0,16,21,1
50
$GPGSV,3,2,11,23,24.6,164.5,25,50.6,49.2,26,29.5,210.9,28,49.9,310.8,1
5D
$GPGSV,3,3,11,29,15.5,116.7,31,31.6,274.2,32,57.0,7.0,1
5E
$GNGNS,025102.82,NNN,3D
$GPVTG,T,M,N,K,N
2C
$GAVTG,T,M,N,K,N
3D
$GPGGA,0,*66
$GAGGA,0,*77
$PQXFI,025102.08,*58
$GPRMC,V,N,*7F
$GARMC,V,N,6E
$GPGSA,A,1,32
$GAGSA,A,1,23
$GNGSA,A,1,2C
$GPGRS,51
$GPGLL,025102.08,V,N
46
$GPGGA,0,66
$GAGGA,0,77
$PQXFI,7A
$GPRMC,V,N,7F
$GARMC,V,N,6E
$GLGSV,2,1,08,78,66,50.6,355.8,77,53.4,237.7,76,65.4,357.2,1
42
$GLGSV,2,2,08,75,9.8,28.1,65,57.7,101.3,67,4.9,327.7,72,6.3,133.6,1
77
$PQGSV,4,1,14,01,49.9,129.4,02,42.9,243.3,03,60.5,201.1,04,35.9,115.3,0,4
64
$PQGSV,4,2,14,05,19.0,258.8,06,53.4,317.8,07,20.4,181.4,08,59.8,208.1,0,4
61
$PQGSV,4,3,14,09,48.5,296.7,10,13.4,191.3,12,13,61.9,232.0,0,4
52
$PQGSV,4,4,14,14,57.7,330.5,16,54.8,327.7,0,4
64
$GPGSV,3,1,11,10,61.9,199.7,12,12.0,38.0,16,21,1
50
$GPGSV,3,2,11,23,24.6,164.5,25,50.6,49.2,26,29.5,210.9,28,49.9,310.8,1
5D
$GPGSV,3,3,11,29,15.5,116.7,31,31.6,274.2,32,57.0,7.0,1
5E

Does this mean I need to enter AT-COMMAND every time before starting GPSD?

i don’t know
you can make some test to confirm

Currently I use the RC7620 for EVK testing, but this may be replaced by the RC7630 in the future.

Can I use the same AT-COMMAND?

i think so, it should still support AT!GPSFIX command