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

sysID exclusion #14

Open
wants to merge 1 commit into
base: auterion-router-latest
Choose a base branch
from
Open

Conversation

dogmaphobic
Copy link

@dogmaphobic dogmaphobic commented Sep 5, 2019

The router code checks to see if the target endpoint sysID should be excluded or not based on the command/message. However, if it never received anything on that endpoint, it does not know of any sysID and the existing logic was to always reject.

The Vantage Snap sends MAVLink through one port and receives on another. When going through the router, the receiving port endpoint having never sent anything, would always get excluded. That caused commands sent to it never to go through.

This is a hack at best as I do not fully understand all the gyrations this code is going through. Don't merge it unless it's fully tested on a normal system.

@LorenzMeier
Copy link

Thanks for figuring this out. This is not acceptable and it should not be merged here or upstream.

@jbeyerstedt
Copy link

The issue is, that messages with a target "address" will be filtered according to the list of known components on each endpoint. We also have this issue with our D2X bridge utility, which uses two separate sockets for RX and TX data, while mavlink-router assumes that both ways are running on the same socket.

So you might have a look at mavlink-router#235, which adds another mode to the endpoint, where both, the "listening" and "target" address, can be specified. (It even works with IPv6 multicast groups (IPv4 needs manual configuration of the network interface), because that was my first use case, which in the end didn't work out.)

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

Successfully merging this pull request may close these issues.

3 participants