kplex
kplex copied to clipboard
Can't use the same srctag on two devices
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.
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
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.
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.