我有Ubuntu18,我有一个skytraq和pl2303转换器连接到ttyUSB0上,我无法使gpsd工作,我更改了/etc/缺省/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也不能工作。
发布于 2020-12-23 11:54:06
虽然为时已晚,但希望不要太晚:如果pl2302在ttyUSB0上工作,请检查以下内容
sudo cat /dev/ttyUSB0与您的文件不同的是:GPSD_OPTIONS="-n"
公元20年Ubuntu 18的作品
在命令NL602中/dev/ttyACM0上使用Navilock 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"https://askubuntu.com/questions/1207737
复制相似问题