我想将GPSD配置为接受UDP组播流作为输入。我有一个后台服务,它在UDP多播端口5098 (254.0.0.50:5098)上发送NMEA帧
我试过了:
gpsd udp://254.0.0.50:5098 -n -N -D 5但它不起作用。结果如下:
gpsd:INFO: launching (Version 3.9)
gpsd:IO: opening IPv4
gpsd:IO: opening IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTPD shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: PPS thread launched
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device udp://254.0.0.50:5098 at slot 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening UDP feed at 254.0.0.50, port 5098.
gpsd:PROG: PPS Create Thread gpsd_ppsmonitor
gpsd:PROG: PPS thread awaiting device activation
gpsd:ERROR: UDP device open error can't connect to host/port pair.
gpsd:ERROR: initial GPS device udp://254.0.0.50:5098 open failed
gpsd:PROG: PPS thread awaiting device activation
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2015-05-05T13:38:33.000Z (1430833113)
gpsd:PROG: PPS thread awaiting device activation你知道我哪里错了吗?
谢谢您的提前付款。
真心的。
Thom
发布于 2015-09-15 05:56:04
我也有同样的问题。我试图使用来自192.168.1.100端口10110的UDP多播,但使用gpsd udp://192.168.1.100:10110 -n -N -D 5不起作用,在本地主机上侦听也不起作用。经过大量的研究,我发现它是通过使用gpsd udp://192.168.1.255 -n -N -D 5来工作的。请注意,192.168.1.255是我的网络上不存在的ip。gpsd似乎只能从不存在的.255节点获取UDP多播消息。
发布于 2015-08-31 00:21:53
254.0.0.50不是有效的组播地址。
有效的IPv4组播地址范围为224.0.0.1 - 239.255.255.255。240.0.0.0 - 255.255.255.255范围内的地址是保留地址。
https://stackoverflow.com/questions/30054752
复制相似问题