question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing to open a serial connection ("no such file or directory")

See original GitHub issue

But since I have to manually specify the connection address when i start mavsdk_server the second line doesn’t do anything?

Good question. You always need both lines, but if mavsdk_server_address is specified in the first one, then system_address is ignored in the second one. In your case it would mean:

drone = System(mavsdk_server_address='localhost', port=50051)
await drone.connect()

And mavsdk_server is started manually on ‘localhost’ with:

./mavsdk_server -p 50051 serial:///dev/ttyACM0:57600

_Originally posted by @JonasVautherin in https://github.com/mavlink/MAVSDK-Python/issues/189#issuecomment-629145662_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

3reactions
julianoescommented, Aug 27, 2020

Connection failed: Bind error

This means something is already running and bound to the port. Check what else you have running.

0reactions
JonasVautherincommented, Aug 28, 2020

Nice 🚀! So it seems like your SITL is not broadcasting on 14540 after all.

Note that an easy way to run SITL (headless) that will have 14540 and 14550 for sure is https://github.com/jonasvautherin/px4-gazebo-headless.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serial connection: No such file or directory: ' /dev/ttyS0'
Serial connection : No such file or directory: ' /dev/ttyS0'. Tue Oct 09, 2018 4:30 am. Hi I'm using a Raspberry Pi 3B+...
Read more >
python 3.x - What's the problem with serial connection in the ...
The message "No such file or directory: '/dev/ttyUSB0'" means that you do not have a device conected to you USB0. You can use...
Read more >
serial port could not open no such file or directory
I would normally say that the obvious answer is that /dev/ttyACM0 doesn't exist. But it does. Running a 'ls /dev/tty*' shows it is...
Read more >
python - File not found error : Unable to access serial port ...
The reason for your error seems to be that the device ( cu.serial-110 ) in /dev no longer exists (whereas it did previously)....
Read more >
USB Issue Device /dev/ttyUSB0 access failed: No such file or ...
Hey Guys I need your assistance, when i run minicom i get the following error Device /dev/ttyUSB0 access failed: No such file or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found