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

Speed up mavlink? #314

Open
kellyschrock opened this issue Jan 4, 2024 · 6 comments
Open

Speed up mavlink? #314

kellyschrock opened this issue Jan 4, 2024 · 6 comments

Comments

@kellyschrock
Copy link

Hi, I've been using WFB with good success on a couple of drones I built. I modified the ground-station side to provide an access point so I can connect an Android tablet and my laptop, and a udp splitter that allows both of them to see video. The issue I'm having is that the mavlink connection seems really slow. If I attempt to upload a mission from an app running on my tablet or laptop, it takes a really long time to upload and fails pretty often from timeout errors. Is there a configuration change I can make to maybe give mavlink more bandwidth? Even if this comes at the expense of video quality, I'd be in favor of it. Thanks!

@svpcom
Copy link
Owner

svpcom commented Jan 6, 2024

Could you provide your:

  1. wifibrocast.cfg (from gs and drone) and exact version of wfb-ng used
  2. screenshots of both wfb-cli gs and wfb-cli drone when you uploading a new mission to the drone

@kellyschrock
Copy link
Author

Hi, sure thing, I'm using 23.08. Files are attached.

FWIW, it's not that it's not working at all, but I was wondering if there's a way to control how much bandwidth each part of the connection (video, mavlink, tunnel) gets. I could in theory make mission uploads faster that way. Thanks.
[wfbcfg.zip](https://github.com/svpcom/wfb-ng/files/1385
wfb-cli-ss
0462/wfbcfg.zip)

@svpcom
Copy link
Owner

svpcom commented Jan 6, 2024

peer = 'listen://0.0.0.0:14550'

# Uncoment if you need to forward mavlink stream
# peer = 'serial:/dev/ttyAMA'
#peer = 'serial:/dev/ttyS0:1500000' # Serial port for autopilot

do you use mavlink-router on the drone?

@svpcom
Copy link
Owner

svpcom commented Jan 6, 2024

It seems that your speed is limited by serial port settings and/or mavlink-router

@kellyschrock
Copy link
Author

I actually use cmavnode for mavlink routing, and the serial port setting is 460800 baud. I'm not sure how I settled on that number, but I'll see if I can use a higher setting. That's likely to help.

@kellyschrock
Copy link
Author

I upped the baud rate to 921600 and that helped a bit.

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