我使用 Neo-M9N 获取纬度、经度、速度等,并将这些值放入 csv 文件中。
我安装了 gpsd python 客户端。我只能使用查看数据
gpsmon /dev/ttyTHS1
但如果我只使用就看不到它
gpsmon
我已经将/etc/default/gpsd
文件更改为:
START_DAEMON="true"
USBAUTO="true"
DEVICES="/dev/ttyTHS1"
GPSD_OPTIONS="-n -G"
GPSD_SOCKET="/var/run/gpsd.sock"
我不知道如何解决这个问题,当我检查状态时,会出现以下内容:
jun 05 17:14:40 jetson-nano-2gb systemd[1]: gpsd.service: Job gpsd.service/start failed with result 'dependency'.
jun 05 17:14:45 jetson-nano-2gb systemd[1]: Dependency failed for GPS (Global Positioning System) Daemon.
jun 05 17:14:45 jetson-nano-2gb systemd[1]: gpsd.service: Job gpsd.service/start failed with result 'dependency'.
built@jetson-nano-2gb:~$ sudo systemctl status gpsd.socket
● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
Loaded: loaded (/etc/systemd/system/gpsd.socket; disabled; vendor preset: enabled)
Active: failed (Result: resources)
Listen: /var/run/gpsd.sock (Stream)
[::1]:2947 (Stream)
0.0.0.1:2947 (Stream)
jun 05 17:14:40 jetson-nano-2gb systemd[1]: gpsd.socket: Failed to listen on sockets: Address already in use
jun 05 17:14:40 jetson-nano-2gb systemd[1]: gpsd.socket: Failed with result 'resources'.
jun 05 17:14:40 jetson-nano-2gb systemd[1]: Failed to listen on GPS (Global Positioning System) Daemon Sockets.
jun 05 17:14:45 jetson-nano-2gb systemd[1]: gpsd.socket: Failed to listen on sockets: Address already in use
jun 05 17:14:45 jetson-nano-2gb systemd[1]: gpsd.socket: Failed with result 'resources'.
jun 05 17:14:45 jetson-nano-2gb systemd[1]: Failed to listen on GPS (Global Positioning System) Daemon Sockets.```
Has anyone been able to solve this? Thanks for the help!