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

One mavsdk_server, multiple drones #685

Closed
ShafSpecs opened this issue Apr 21, 2024 · 2 comments
Closed

One mavsdk_server, multiple drones #685

ShafSpecs opened this issue Apr 21, 2024 · 2 comments

Comments

@ShafSpecs
Copy link
Contributor

Hello, I wanted to ask if it's possible to have one mavsdk server instance connected to multiple drones? For example, I have three drones bound to one serial usb that I can then differentiate their messages via ids. Can I use one mavsdk server to connect to all three, or do I have to run three different server instances?

mavsdk_server -p 50051 serial://com7:56000

mavsdk_server -p 50052 serial://com7:56000

mavsdk_server -p 50053 serial://com7:56000
@JonasVautherin
Copy link
Collaborator

No that won't work. You should somehow find a way to demultiplex the serial stream and send the messages to their respective mavsdk_server instance.

I don't think mavlink-router can do that, but maybe you can write your own proxy that would receive MAVLink on serial://com7:56000, detect the different drones (I assume they have a different sysid) and forward e.g. to different UDP ports (e.g. 14550, 14551, 14552). Such that then you could run mavsdk_server instances on udp://:14550, udp://:14551, udp://:14552.

@ShafSpecs
Copy link
Contributor Author

No that won't work. You should somehow find a way to demultiplex the serial stream and send the messages to their respective mavsdk_server instance.

I don't think mavlink-router can do that, but maybe you can write your own proxy that would receive MAVLink on serial://com7:56000, detect the different drones (I assume they have a different sysid) and forward e.g. to different UDP ports (e.g. 14550, 14551, 14552). Such that then you could run mavsdk_server instances on udp://:14550, udp://:14551, udp://:14552.

Okay. Thanks, would read up on that 👍

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