Gostaria de ligar um GPS antigo como uma fonte NTP. O GPSD e a documentação do OpenStreetMap cobrem o uso, mas estou preso a um ponto em que não tenho certeza se o dispositivo é compatível (embora deveria ser). O dispositivo em si tem satélites fixos e é funcional.
Especificamente, a documentação da GPSD declara
Try running
gpsmon(1)
, giving it your GPS device path as an argument (for examplegpsmon /dev/ttyUSB0
). After a few moments to sync up, it should display a screen full of data on the device, including displaying the raw packet data streaming from it.If
gpsmon(1)
reports no data at all, you may have the device path wrong; check that usingdmesg(8)
or by whatever means you have available. If you have the right device, you may have some low-level system problem with serial or USB that you'll need to fix beforegpsd
will operate. Check your cabling, power, and kernel configuration.
Estou com o último problema: não há nada displyed por gpsmon
(a tela está limpa e está completamente em branco).
Parece que o dispositivo está registrado corretamente. De /var/log/syslog
:
Jan 1 21:20:11 srv kernel: [ 7076.457051] usbcore: registered new interface driver garmin_gps
Jan 1 21:20:11 srv kernel: [ 7076.457061] usbserial: USB Serial support registered for Garmin GPS usb/tty
Jan 1 21:21:23 srv kernel: [ 7148.510660] usb 1-2: new full-speed USB device number 5 using xhci_hcd
Jan 1 21:21:23 srv mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Jan 1 21:21:23 srv kernel: [ 7148.651115] usb 1-2: New USB device found, idVendor=091e, idProduct=0003
Jan 1 21:21:23 srv kernel: [ 7148.651116] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Jan 1 21:21:23 srv kernel: [ 7148.651553] garmin_gps 1-2:1.0: Garmin GPS usb/tty converter detected
Jan 1 21:21:23 srv kernel: [ 7148.651623] usb 1-2: Garmin GPS usb/tty converter now attached to ttyUSB0
Jan 1 21:21:24 srv mtp-probe: bus: 1, device: 5 was not an MTP device
Jan 1 21:21:24 srv systemd[1]: gpsd.socket: Failed to listen on sockets: Cannot assign requested address
Jan 1 21:21:24 srv systemd[1]: Failed to listen on GPS (Global Positioning System) Daemon Sockets.
Jan 1 21:21:24 srv systemd[1]: Dependency failed for Manage ttyUSB0 for GPS daemon.
Jan 1 21:21:24 srv systemd[1]: [email protected]: Job [email protected]/start failed with result 'dependency'.
Jan 1 21:22:40 srv kernel: [ 7225.003241] pps pps0: new PPS source usbserial0
Jan 1 21:22:40 srv kernel: [ 7225.003246] pps pps0: source "/dev/ttyUSB0" added
As últimas duas linhas aparecem depois que gpsmon
é iniciado e parecem promissoras, mas há algumas linhas acima que são preocupantes:
Jan 1 21:21:24 srv mtp-probe: bus: 1, device: 5 was not an MTP device
Jan 1 21:21:24 srv systemd[1]: gpsd.socket: Failed to listen on sockets: Cannot assign requested address
Jan 1 21:21:24 srv systemd[1]: Failed to listen on GPS (Global Positioning System) Daemon Sockets.
Jan 1 21:21:24 srv systemd[1]: Dependency failed for Manage ttyUSB0 for GPS daemon.
Jan 1 21:21:24 srv systemd[1]: [email protected]: Job [email protected]/start failed with result 'dependency'.
Eu não tenho certeza se eles são críticos neste momento, já que eles mencionam soquetes - o que eu não uso ainda (ou nada).
A seção de solução de problemas não ajuda realmente - quais etapas devo realmente executar a partir daí?