-
Notifications
You must be signed in to change notification settings - Fork 4
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
Reconnect if IP is not accessible #103
Comments
@patrickelectric did you had time to look into this issue? |
I just did a simple test and it appears to be working, I connected to another mavlink-server running on the vehicle, and disconnected my ethernet cable and reconnected back again, and it works. |
maybe try setting the network interface |
Hey @patrickelectric, I’ve set up a Mavlink server on an RPi where the Cube is connected over serial. The RPi is connected to two routers via a switch. I just installed the Mavlink server from the master branch and used the binaries from CI. However, I’m running into CRC failures when I execute the following:
Here’s the output log for reference:
Interestingly, when I use MavProxy, everything works fine. Command:
Output from MavProxy:
Any ideas why the Mavlink server setup is failing while MavProxy works perfectly? Appreciate any pointers! Rpi Os:
Installed from CI |
Hi @loki077 can you get us the following log? RUST_LOG=debug,mavlink_codec=trace mavlink-server serial:/dev/ttyS0:115200 udpclient:192.168.0.6:14550 --enable-tracing-level-log-file This should allow us to probe the protocol decoding, handled by mavlink-codec. Also, could you upload the Another way of reproducing the problem would be to use mavproxy to connect to serial, make mavlink-server connect to mavproxy via TCP or udp, and check if the errors happen. Thanks |
From discord
I’m not a web developer, so I haven’t really dug into the codebase to fully understand the implementation yet, but I definitely plan to in the future to be able to contribute more effectively.
Right now, I’m testing
mavlink-server
in one of our applications and noticed some behavior I wanted to clarify. I’m not sure if I’m missing something, so any insights would be appreciated!Here’s my setup:
mavlink-server
to forward the MAVLink data to 4 separate UDP endpoints.I’ve configured the Pi to start up
mavlink-server
on boot with this command:The issue:
mavlink-server
doesn’t reconnect to my GCS everytime sometimes one endpoint connects and other doesn't.mavlink-server
, it immediately connects all endpoints and works fine. I have attached 2 logs 00 was on power cycle where one connection was successful and other wasn't, and log 01 was after restart mavlin-server service which worked fine.I understand I can write a script to wait for the 4G to come online before starting
mavlink-server
, but I’m curious if there’s any built-in behavior for retrying connections that I might be missing. Or is there a setting I should configure to handle this better?Also, I’ve tested the exact same setup with MAVProxy using the following command:
The same behavior persists with MAVProxy.
The text was updated successfully, but these errors were encountered: