Multicast config

51 views
Skip to first unread message

Nick Smith

unread,
Mar 24, 2022, 9:35:35 AM3/24/22
to kplex
Hi kplex community

Long time user first time poster
We use kplex on all over our vessels and really appreciate all the efforts that have gone into this open source project

Up until now we have just been using TCP for input and we would like to look at using multicast inputs as well.

The multicast stream works fine in OpenCPN 
With the following connection settings
UPD
Address: 239.0.0.1
port: 60007

the stream is coming in fine.

Just trying to work out what settings I should use for kplex to bring that same stream into kplex

tried all the following settings with no success 

[udp] address=239.0.0.1 port=60007 device=ens192 type=multicast coalesce=yes

then 

[udp] direction=in mode=client device=ens192 address=239.0.0.1 port=60007 type:multicast persist=fromstart

also tried the old multicast setting

[multicast]
direction=in
mode=client
interface=ens192
address=239.0.0.1
port=60007
persist=fromstart

Any advice would be greatly appreciated 

Thanks again 
Nick 

Keith Young

unread,
Apr 8, 2022, 11:19:07 AM4/8/22
to kplex
Apologies for delay in replying.

[udp]
direction=in
device=ens192
address=239.0.0.1
port=60007

...should be what you want.  "coalesce" only has utility on outbound connections but shouldn't break an inbound.  persist isn't (yet) an option for udp interfaces and is my remaining blocker for kplex 1.5 (I've been going to do it next week for 2 years).  ens192

Try stopping all running kplex processes then from the command line:
kplex -f- file: udp:direction=in,address=239.0.0.1,port=60007,device=ens192

If you don't see anything see what you can see with tcpdump, e.g.
sudo tcpdump -i ens192 udp port 60007 and dst 239.0.0.1

Reply all
Reply to author
Forward
0 new messages