我正在尝试与gps建立联系,但不幸的是,我无法这样做。首先,我试图遵循制作人网站的指南:
http://odroid.com/dokuwiki/doku.php?id=en:c1_usb_gps
,但在输入命令sudo dpkg-reconfigure gpsd
后,我收到一条消息说:
Warning: Stopping gpsd.service, but it can still be activated by:
gpsd.socket
Creating/updating gpsd user account.
所以我决定使用sudo nano /etc/default/gpsd
自行编辑文件。所以现在它看起来像这样:
# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="false"
# 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/ttyACM0"
# Other options you want to pass to gpsd
GPSD_OPTIONS=""
GPSD_SOCKET="/var/run/gpsd.sock"
尽管如此,当我使用gpsmon
时,我得不到任何数据,因为如果我的gps甚至没有插入。我试图检查它是否插电,但我不确定我是否做得对。
非常感谢您的回复!