我有一个带有 USB GPS 的 pi 零,它一直在丢失位置。这似乎是 USB 的问题,但我已经更改了所有硬件,包括 pi、SD 卡、GPS 和电源,但问题完全相同。
gpsd显示无法访问USB设备:
# service gpsd status
● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2020-07-29 22:12:12 BST; 4s ago
Process: 1413 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
Main PID: 1414 (gpsd)
Memory: 392.0K
CGroup: /system.slice/gpsd.service
└─1414 /usr/sbin/gpsd -n /dev/ttyACM0
Jul 29 22:12:11 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Jul 29 22:12:12 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Jul 29 22:12:12 raspberrypi gpsd[1414]: gpsd:ERROR: SER: device open of /dev/ttyACM0 failed: No such device - retrying read-only
Jul 29 22:12:12 raspberrypi gpsd[1414]: gpsd:ERROR: SER: read-only device open of /dev/ttyACM0 failed: No such device
Jul 29 22:12:12 raspberrypi gpsd[1414]: gpsd:ERROR: initial GPS device /dev/ttyACM0 open failed
lsusb 的输出是
$ lsusb
Bus 001 Device 009: ID 1546:01a8 U-Blox AG [u-blox 8]
Bus 001 Device 005: ID 05c6:6000 Qualcomm, Inc. Siemens SG75
Bus 001 Device 002: ID 0a05:7211 Unknown Manufacturer hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
该设备看起来不错:
$ ls -la /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Jul 31 15:48 /dev/ttyACM0
syslog/kern.log/messages 中没有任何内容表明 USB 已丢失连接。
任何想法将不胜感激。
谢谢,蒂姆