Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use the same srctag on two devices #32

Open
munnik opened this issue Nov 14, 2019 · 3 comments
Open

Can't use the same srctag on two devices #32

munnik opened this issue Nov 14, 2019 · 3 comments

Comments

@munnik
Copy link

munnik commented Nov 14, 2019

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 munnik changed the title can't use the same srctag on two devices Can't use the same srctag on two devices Nov 14, 2019
@stripydog
Copy link
Owner

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

@munnik
Copy link
Author

munnik commented Nov 18, 2019

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
Copy link
Author

munnik commented Nov 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants