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

no signal HEARTBEAT using serial conneciton on companion computer #991

Open
yncity opened this issue Oct 16, 2024 · 0 comments
Open

no signal HEARTBEAT using serial conneciton on companion computer #991

yncity opened this issue Oct 16, 2024 · 0 comments

Comments

@yncity
Copy link

yncity commented Oct 16, 2024

from pymavlink import mavutil

 Start a connection listening on a UDP port
the_connection = mavutil.mavlink_connection('/dev/ttyUSB0')

# Wait for the first heartbeat
#   This sets the system and component ID of remote system for the link
print('waiting for heartbeat...')
the_connection.wait_heartbeat(timeout=10)
print("Heartbeat from system (system %u component %u)"%(the_connection.target_system, the_connection.target_component))

I use this code to check my connection Pixhawk from Pi 4B, but it doesn't work.

So I found some solutions but it also doesn't work.

#372 (comment)

https://discuss.ardupilot.org/t/unable-to-establish-a-connection-to-sitl-pixhawk-via-udp-tcp-serial/85922/2

https://arc.net/l/quote/eklxslrh

how can I solve this problem?
when I use 'mavproxy.py' it works well.

I install Ubuntu24.04 on Pi (machine = aarch64)
and my pymavlink version

Name: pymavlink
Version: 2.4.41
Summary: Python MAVLink code
Home-page: https://github.com/ArduPilot/pymavlink/
Author: 
Author-email: 
License: LGPLv3
Location: /home/ioes/venv-ardupilot/lib/python3.12/site-packages
Requires: future, lxml
Required-by: dronekit, MAVProxy
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

1 participant