Wiki
  • About CBUnmanned
  • Products
    • CBUnmanned Stamp Eco System
      • Start Here & FAQs
      • H743 Stamp Flight Controller (& Low Cost)
        • Pin Out
        • ArduPilot Wiring & Parameters
        • PCB Footprints & 3D Model
        • Breakout PCB Pinout
        • Flashing & Firmware
      • AM32 ESC
        • PCB Footprints
        • Example PCB Schematics & Layouts
        • Firmware
      • CAN Stamp
        • Example Schematics and Firmware
    • OpenWRT UAV Router
      • Getting Started
      • Connections & Pinout
      • Update Firmware
      • USB Data Tethering
      • TailScale VPN
      • Mavlink Through Serial
      • Mavlink Through Ethernet
      • Mavlink Forwarding with mavp2p
    • 2-8s Battery Monitor
  • Products (EOL)
    • CBU-CM405-FC (EOL)
      • Overview & Initial Setup
      • Female Header F405
        • RC In/SBus Wiring
        • UART
        • I2C
      • Male Header USB Hub
      • Micro USB
      • ESC Connector
        • CM405-FC-BO Pinout
      • Cameras
      • Micro SD Card
      • 40 Pin GPIO
      • FC>CM4 Telemetry
      • DIP Switch
      • Flashing Guide
        • STM32F405
        • Compute Module 4 EMMC
      • Firmware Build Files
        • CM4
        • ArduPilot
          • hwdef.dat
          • hwdef-bl.dat
      • Power Requirements
      • 3D Printable Frames
Powered by GitBook
On this page
  1. Products
  2. OpenWRT UAV Router

Mavlink Through Serial

PreviousTailScale VPNNextMavlink Through Ethernet

Last updated 2 months ago

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.

opkg update

4) Install Nano for easier text editing.

opkg install nano

5) Install ser2net.

opkg 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.

nano /etc/ser2net.conf

7) Scroll to the bottom of the file and paste in (or Shift+Insert).

5760:raw:0:/dev/ttyS1:115200 8DATABITS NONE 1STOPBIT

Control + x will exit, press "y" to save.

8) Either Restart the service using the snippet below, or reboot.

/etc/init.d/ser2net restart

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.

chmod 666 /dev/ttyS1

[OpenWrt Wiki] Connect to client Wi-Fi network
Logo