kplex icon indicating copy to clipboard operation
kplex copied to clipboard

Can't use the same srctag on two devices

Open munnik opened this issue 5 years ago • 3 comments

In my config I've got

[udp]
name=GN0001
direction=out
device=enp6s0
address=239.192.0.1
port=60001
srctag=yes
timestamp=ms
ofilter=+GP***:-all

[udp]
name=GN0002
direction=out
device=enp7s0
address=239.192.0.1
port=60001
srctag=yes
timestamp=ms
ofilter=+GP***:-all

I cannot use GN0001 multiple times because name has to be unique, but I want to share the same srctag in the output NMEA strings.

munnik avatar Nov 14 '19 23:11 munnik

If you don't specify a name for anything you get the default identifier of "kplex". Would it be sufficient to be able to specify an alternate "global" identifier or do you need to be able to specify different source names per interface but potentially with several the same? I suspect the former may be easier to implement but glad to see someone using this

stripydog avatar Nov 18 '19 19:11 stripydog

For me it is ok to have a global identifier in this case but I think the second options is a better one for the project.

munnik avatar Nov 18 '19 20:11 munnik

Maybe it is easier to let the whole tag block be specified in the config. e.g. tagblock=s:kplexc:{ts_ms}. User then can also specify other properties. kplex only needs to replace some placeholders like {ts_ms} and calculate a checksum.

munnik avatar Nov 18 '19 21:11 munnik