Serial Port Names and Corresponding Labels on PX4 Flight Controller Boards
The PX4 Serial Receive and PX4 Serial Transmit block in UAV Toolbox Support Package for PX4® Autopilots support sending/receiving of data using the serial ports on the PX4 flight controller board.
This section lists the mapping of the different port labels on the PX4 flight controller board to the UART/USART port numbers that you can select during the configuration of the Simulink model.
Port Numbers for Cube Blue H7
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS0 |
TELEM 2 | /dev/ttyS1 |
GPS1 | /dev/ttyS2 |
GPS2 | /dev/ttyS5 |
Port Numbers for Cube Orange
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS0 |
TELEM 2 | /dev/ttyS1 |
GPS1 | /dev/ttyS2 |
GPS2 | /dev/ttyS5 |
Port Numbers for Cube Orange Plus
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS0 |
TELEM 2 | /dev/ttyS1 |
GPS1 | /dev/ttyS2 |
CONSOLE/ADSB-IN | /dev/ttyS4 |
GPS2 | /dev/ttyS5 |
Port Numbers for Pixhawk 6c
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
GPS1 | /dev/ttyS0 |
TELEM3 | /dev/ttyS1 |
Debug Console | /dev/ttyS2 |
TELEM2 | /dev/ttyS3 |
PX4IO | /dev/ttyS4 |
TELEM1 | /dev/ttyS5 |
GPS2 | /dev/ttyS6 |
Port Numbers for Pixhawk 6x
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
GPS1 | /dev/ttyS0 |
TELEM3 | /dev/ttyS1 |
Debug Console | /dev/ttyS2 |
UART4 & I2C | /dev/ttyS3 |
TELEM2 | /dev/ttyS4 |
PX4IO/RC | /dev/ttyS5 |
TELEM1 | /dev/ttyS6 |
GPS2 | /dev/ttyS7 |
Port Numbers for Uvify IFO-S
Physical Label | QGC Port | UART/USART port number |
---|---|---|
USB | USB | /dev/ttyACM0 |
CONN1 | TELEM 1 | /dev/ttyS1 |
Internal (telemetry) | TELEM 2 | /dev/ttyS2 |
GPS | GPS1 | /dev/ttyS3 |
SERIAL4 | TELEM 3 | /dev/ttyS6 |
Port Numbers for Pixhawk 1
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS1 |
TELEM 2 | /dev/ttyS2 |
GPS | /dev/ttyS3 |
Serial 4 | /dev/ttyS6 |
Serial 5 (NSH port) | /dev/ttyS5 |
Port Numbers for Pixhawk 2.1 (Cube)
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS1 |
TELEM 2 | /dev/ttyS2 |
GPS1 | /dev/ttyS3 |
GPS2 | /dev/ttyS6 |
Serial 5 (NSH port) | /dev/ttyS5 |
Port Numbers for Pixhawk 4
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS1 |
TELEM 2 | /dev/ttyS2 |
GPS | /dev/ttyS0 |
UART | /dev/ttyS4 |
Port Numbers for Pixracer
Labels | UART/USART port number |
---|---|
USB | /dev/ttyACM0 |
TELEM 1 | /dev/ttyS1 |
TELEM 2 | /dev/ttyS2 |
Serial 5 (NSH port) | /dev/ttyS5 |