I wonder how can I open another port for mavlink connection... I know that by default the connection is on port 5760, but I want to have another like 5762 port.
The purpose is that I have a script running inside the Intel aero rtf which connection is at tcp:127.0.0.1:5760 and then, I want to send another script from my PC.
Thank you for your interest in the Intel Aero Ready to Fly Drone.
In regards to your query about opening another port for the mavlink connection, I found the following github post that might be helpful:
Let me know if this information proves useful or if I can assist you with anything else.
Thanks for your answer and I also checked that info but it didn't help me...
I try to configure main.conf of mavlink-router adding a TCP Client but it also didn't work:
Address = 127.0.0.1
Port = 5762
RetryTimeout = 10
Please let me know if the following steps work for you:
Modify the following file:
Restart the mavlink service:
systemctl restart mavlink-router.service
Verify mavlink-router is listening on the new port:
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5762 0.0.0.0:* LISTEN
The Port 5760, should now be opened.
Looking forward to your reply,
Well I think I didn't make myself understood. I want to have two ports open for listening mavlink connection.
I tried the configuration that you sent me, but it just replace the port 5760 by 5762.
The Mavlink router is setup to have 1 master, however, you can connect to the UDP endpoints with multiple clients.
You can have a look at the examples https://github.com/intel/mavlink-router/tree/master/examples https://github.com/intel/mavlink-router/tree/master/examples
specifically the http://receiver.py/ receiver.py and http://sender.py/ sender.py
If this does not work, can you please provide additional details as to what you are trying to accomplish?
Did you get the opportunity to check the examples I sent you in my previous post?
Let me know if I can help with anything else.