首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GPSD和UDP组播源

GPSD和UDP组播源
EN

Stack Overflow用户
提问于 2015-05-05 21:44:00
回答 2查看 1.6K关注 0票数 1

我想将GPSD配置为接受UDP组播流作为输入。我有一个后台服务,它在UDP多播端口5098 (254.0.0.50:5098)上发送NMEA帧

我试过了:

代码语言:javascript
复制
gpsd udp://254.0.0.50:5098 -n -N -D 5

但它不起作用。结果如下:

代码语言:javascript
复制
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

EN

回答 2

Stack Overflow用户

发布于 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多播消息。

票数 1
EN

Stack Overflow用户

发布于 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范围内的地址是保留地址。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30054752

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档