Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ICarr1
Beginner
1,851 Views

How can I open a mavlink port

Hi there,

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.

0 Kudos
6 Replies
idata
Community Manager
240 Views

Hello ivanalexo,

 

 

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:

 

https://github.com/intel/mavlink-router/issues/122

 

 

 

Let me know if this information proves useful or if I can assist you with anything else.

 

 

Best regards,

 

Casandra

 

ICarr1
Beginner
240 Views

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:

[TcpEndpoint delta]

Address = 127.0.0.1

Port = 5762

RetryTimeout = 10

idata
Community Manager
240 Views

Hello ivanalexo,

 

 

Please let me know if the following steps work for you:

 

 

Modify the following file:

 

/etc/mavlink-router/main.conf

 

 

[General]

 

TcpServerPort=5762

 

ReportStats=false

 

Log=/var/lib/mavlink-router/

 

 

Restart the mavlink service:

 

systemctl restart mavlink-router.service

 

 

Verify mavlink-router is listening on the new port:

 

netstat -lntu

 

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,

 

Regards,

 

Casandra
ICarr1
Beginner
240 Views

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.

idata
Community Manager
240 Views

Hello ivanalexo,

 

 

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?

 

 

Best regards,

 

Casandra
idata
Community Manager
240 Views

Hello ivanalexo,

 

 

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.

 

 

Regards,

 

Casandra
Reply