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

Error when trying to connect via serial #663

Closed
mtonnberg opened this issue Mar 6, 2024 · 4 comments
Closed

Error when trying to connect via serial #663

mtonnberg opened this issue Mar 6, 2024 · 4 comments

Comments

@mtonnberg
Copy link

When I try to connect with to my drone with

drone = System()
await drone.connect(system_address="serial:///dev/serial0:57600")

It just get stuck forever. If I try to run the server directly with

sudo ~/.local/lib/python3.9/site-packages/mavsdk/bin/mavsdk_server serial:///dev/serial0:57600

I get the following error:

[10:16:19|Info ] MAVSDK version: v2.2.0 (mavsdk_impl.cpp:26)
[10:16:19|Info ] Waiting to discover system on serial:///dev/serial0:57600... (connection_initiator.h:20)
[10:16:19|Debug] New system ID: 1 Comp ID: 1 (mavsdk_impl.cpp:737)
[10:16:19|Debug] Component Autopilot (1) added. (system_impl.cpp:388)
[10:16:20|Warn ] Vehicle type changed (new type: 2, old type: 0) (system_impl.cpp:230)
[10:16:20|Debug] Discovered 1 component(s) (system_impl.cpp:563)
[10:16:20|Info ] System discovered (connection_initiator.h:62)
Illegal instruction

I have tried to build from source with the same result. The system is Raspberry pi Zero 2 W on 64bits Bookworm.
I can connect to the FC via MavProxy so I can interact with the drone via QGroundcontrol that way but not via MavSDK.

@julianoes
Copy link
Collaborator

I have seen this one recently. Let me try to remember what the problem was. A yes. Something about gRPC ssl dependencies.

Should be fixed with: mavlink/MAVSDK#2223

Just wait for the next release. I'm on it...

@julianoes
Copy link
Collaborator

@mtonnberg
Copy link
Author

That solved it! Thanks

@julianoes
Copy link
Collaborator

Great, thanks for the note!

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