Mavlink Through Serial
Last updated
Last updated
The easiest way of using the router with a flight controller that doesn't have ethernet is to use the routers spare serial port and a program called "ser2net". Applicable to firmware versions 23.*
FC Side
Setup your serial port to Mavlink 2 and a baud rate of 115200.
Router Side
1) Connect your router to a wider network so it has internet access to download packages.
2) Connect to your router over SSH using:
IP: 192.168.1.1
User: root (or whatever you have changed it to)
Password: (Blank or whatever you have changed it to)
3) Update package list.
4) Install Nano for easier text editing.
5) Install ser2net.
6) You need to edit the ser2net config file to point at the right serial port, baud rate and destination port. This uses Nano installed earlier.
7) Scroll to the bottom of the file and paste in (or Shift+Insert).
Control + x will exit, press "y" to save.
8) Either Restart the service using the snippet below, or reboot.
9) Using Mission Planner connect with TCP and use IP "192.168.1.1" and port 5760.
If you don't get any response you might have to give extra permissions to access the serial port.