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.

Cannot connect to the vehicle via telemetry

See original GitHub issue

I cannot connect to pixhawk 2.4.8 through telemetry. Using: Ubuntu 16.04 LTS, dronekit 2.9.1 pymavlink 2.2.10 pyserial 3.4 python 3.5.2

Hardware: I am using a 915MHz telemetry and have tested it in Mission planner and QGroundControl with the exact same set up, have done multiple auto mission with it and haven’t gotten any problems.

I have tried: v= dronekit.connect("/dev/ttyUSB0", baud=57600, wait_ready=True) v= dronekit.connect("/dev/ttyUSB0", baud=57600, rate=10, wait_ready=True)

v = dronekit.connect("/dev/ttyUSB0", baud=57600, wait_ready=False) with v.wait_ready(True, timeout=30) and even 60, 180 and 240

vehicle = connect("/dev/ttyUSB0", baud=57600, wait_ready=False, heartbeat_timeout=15) vehicle.wait_ready('autopilot_version', timeout=180)

Output: with v= dronekit.connect("/dev/ttyUSB0", baud=57600, it connects and then gets disconnected right away: image I used ipython there, but I have tried it in terminal and python script. Increase timeout will just timeout after a long time.

I used QGroundContorl with system ID 255 and it connects with no problem. When I test I have made sure that

  • The port exist
  • Nothing else is using it
  • No Ground Control Software is open

With the same setup successfully using dronekit connecting with:

  • Wired connection to pixhawk
  • vehicle = connect("/dev/ttyACM0", baud=115200, wait_ready=True)
  • Telemetry 2 connection to pixhawk
  • vehicle = dronekit.connect("/dev/ttyUSB0", wait_ready=True, baud=1500000)
  • Any Simulators (sim_vehicle, dronekit, gazebo and Javsim)

Thank you for helping! EDIT 1: I downgraded pymavlink to 2.0.6, still cannot connect image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hamishwilleecommented, Sep 10, 2018

@Rainerino Perhaps I should say “probably not fixed until someone creates a PR”. All of the Python 3 work was done by community, and indeed most of the work over the last few years. There is some work done by the various projects that use this software, but not a great deal.

1reaction
hamishwilleecommented, Sep 9, 2018

The team will take PRs for fixes in Python 3, but if you just raise an issue, then the chances of it being fixed in any sort of timely manner are low.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect to Vehicle Using Telemetry on Linux - Stack Overflow
I am having problems with connection to vehicle. First, I could not connect to the vehicle even with USB (I used "/dev/ttyUSB0" connection...
Read more >
Connection problem with Dronekit-python, radio telemetry
I am currently using - pixhawk 2.4.8 - APM:Copter V3.5.3 firmware - PX4flow ... I cannot connect only when I'm using the dronekit...
Read more >
Vehicle Connection Problems - QGroundControl User Guide
Vehicle does not show up in UI. QGC will automatically connect to a vehicle as soon as a communication link is created (using...
Read more >
Cannot Connect to Vehicle from Companion Computer
Hello all. I am trying to connect to flight controller from companion computer (Raspberry PI 4) via serialport. My /etc/default/arducopter ...
Read more >
Connecting to a Vehicle - DroneKit-Python
The connection to the vehicle (or multiple vehicles) is set up within the ... Windows computer connected to the vehicle using a 3DR...
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