![发布于 2018-07-18 22:27:27](https://linux22.com/image/920576/%E5%8F%91%E5%B8%83%E4%BA%8E%202018-07-18%2022%3A27%3A27.png)
我有 Ubuntu 18 我有一个 skytraq gps 带有 pl2303 转换器连接到 ttyUSB0 我无法让 gpsd 工作我将 /etc/defaults/gpsd 更改为:
# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyUSB0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="/dev/ttyUSB0"
GPSD_SOCKET="/var/run/gpsd.sock"
当我使用 xgps 时,没有数据,它不起作用,所以即使 navit 也不起作用
答案1
晚了,但希望还不算太晚:如果 pl2302 在 ttyUSB0 上工作,请检查一下
sudo cat /dev/ttyUSB0
与您的文件的不同之处在于:GPSD_OPTIONS="-n"
适用于 Ubuntu 18 和 20
/dev/ttyACM0
命令中打开 Navilock NL602 的文件示例olt gps-mouse NL302 /dev/ttyUSB0
# Default settings for the gpsd init script and the hotplug wrapper.
#hier liegt die Datei /etc/default/gpsd
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="false"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
#neue GPS-Mouse Navilock NL602U
DEVICES="/dev/ttyACM0"
#alte GPS-MMouse Navilock NL302U
#DEVICES="/dev/ttyUSB0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-n"
GPSD_SOCKET="/var/run/gpsd.sock"