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

How can i fix that #2493

Open
dkzdragon02 opened this issue Jan 16, 2025 · 7 comments
Open

How can i fix that #2493

dkzdragon02 opened this issue Jan 16, 2025 · 7 comments

Comments

@dkzdragon02
Copy link

dkzdragon02@dkzdragon02:~/mavsdk_drone_show$ /bin/python3 /home/dkzdragon02/mavsdk_drone_show/offboard_multiple_from_csv.py
[DEBUG] Simulation Mode: True
[DEBUG] Configuration CSV: config_sitl.csv
[DEBUG] Swarm CSV: swarm_sitl.csv
2025-01-16 11:41:39 [DEBUG] asyncio: Using selector: EpollSelector
/home/dkzdragon02/mavsdk_drone_show/offboard_multiple_from_csv.py:973: DeprecationWarning: connections() is deprecated and will be removed; use net_connections() instead
for conn in proc.connections(kind='inet'):
2025-01-16 11:41:41 [DEBUG] main: Constructed MAVSDK server path: /home/dkzdragon02/.local/lib/python3.10/site-packages/mavsdk/bin/mavsdk_server
2025-01-16 11:41:41 [INFO] main: MAVSDK server started with gRPC port 50040 and UDP port 14540.
2025-01-16 11:41:51 [ERROR] main: MAVSDK server did not start listening on port 50040 within timeout.
2025-01-16 11:41:51 [ERROR] main: Failed to start MAVSDK server. Exiting program.

@dkzdragon02
Copy link
Author

@julianoes

@dkzdragon02
Copy link
Author

https://github.com/alireza787b/mavsdk_drone_show.git - this is project, i'm running project on ubutun linux 22.04.5

@JonasVautherin
Copy link
Collaborator

I think that mavsdk_server needs to detect a MAVLink system before it starts the gRPC server.

@dkzdragon02
Copy link
Author

I think that mavsdk_server needs to detect a MAVLink system before it starts the gRPC server.

let's me try

@dkzdragon02
Copy link
Author

I think that mavsdk_server needs to detect a MAVLink system before it starts the gRPC server.

dkzdragon02@dkzdragon02:~$ ls
AddonBlenderLibrary Desktop Downloads mavlink mavsdk_drone_show MAVSDK-Python Pictures PX4-Autopilot Templates
BlenderLibrary Documents libmavsdk-dev_2.14.1_ubuntu22.04_amd64.deb MAVSDK mavsdk-gui-example Music Public snap Videos
This all extendsion i downloaded

@JonasVautherin
Copy link
Collaborator

I meant that when you start mavsdk_server, it will listen on port 14540 until it receives MAVLink messages from the drone. When it detects the drone, it starts listening on 50051.

To be confirmed, but if I remember correctly that's how it goes. Which means that you can't just start mavsdk_server and immediately try to test for 50051.

Does that make sense?

@dkzdragon02
Copy link
Author

I meant that when you start mavsdk_server, it will listen on port 14540 until it receives MAVLink messages from the drone. When it detects the drone, it starts listening on 50051.

To be confirmed, but if I remember correctly that's how it goes. Which means that you can't just start mavsdk_server and immediately try to test for 50051.

Does that make sense?

let's me try if i can't fix that i will send the message error

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