Link Search Menu Expand Document

VOXL 2 Linux User Guide

Table of contents

  1. UARTs
    1. Overview
    2. Apps Proc
      1. /dev/ttyHS0 - Camera Group 2 UART
      2. /dev/ttyHS1 - B2B Connector UART
      3. /dev/ttyHS2 - HSB2B Connector UART
    3. SLPI Proc
      1. QUP2 - ESC UART
      2. QUP6 - GNSS UART
      3. QUP7 - RCIO UART
  2. SPI
    1. Overview
    2. Apps Proc
      1. SPI0 - Camera Group 0 SPI
      2. SPI1 - Camera Group 1 SPI
      3. SPI3 - IMU1
      4. SPI14 - J10 External SPI
    3. SLPI Proc
      1. QUP5 - IMU0
  3. I2Cs
    1. Overview
    2. Apps Proc
      1. I2C10 - Legacy B2B I2C
      2. I2C15 - USB Redriver (internal, don’t use)
      3. I2C9 - Legacy B2B I2C
    3. SLPI Proc
      1. QUP0 - External Sensor (Magnetometer)
      2. QUP2 - External Sensor (Power Monitoring)
      3. QUP3
      4. QUP4 - Internal Sensors (Barometers)
  4. GPIOs
    1. Apps Proc
  5. Serial Debug Console

UARTs

The following is accurate as of System Image 1.3.

Overview

m0054-linux-user-guide-uart

Apps Proc

/dev/ttyHS0 - Camera Group 2 UART

  
Device/dev/ttyHS0
PinsJ8 Pins 38/40 (Tx/Rx)
Voltage1.8V, directly connected to QRB5165, likely need to level shift
Code SampleTODO
Add-OnsNA

/dev/ttyHS1 - B2B Connector UART

  
Device/dev/ttyHS1
PinsJ3 Pins 3/5 (Rx/Tx)
Voltage1.8V, directly connected to QRB5165, likely need to level shift
Code SampleTODO
Add-OnsM0125 - UART/USB3 Add-On, UART7

/dev/ttyHS2 - HSB2B Connector UART

  
Device/dev/ttyHS2
PinsJ5 HS B2B pins 48/49 (Rx/Tx)
Voltage1.8V, directly connected to QRB5165, likely need to level shift
Code SampleTODO
 M0090 - 5G Add-On Board J9 Pins 2/3 (Tx/Rx)

SLPI Proc

QUP2 - ESC UART

  
DeviceQUP2
PinsJ18 Pins 2/3 (Tx/Rx)
Voltage3.3V, via directional level shifters
Code SamplePX4 ESC Driver
Add-OnsVOXL ESC

QUP6 - GNSS UART

  
DeviceQUP6
PinsJ19 Pins 2/3 (Tx/Rx)
Voltage3.3V, via directional level shifters
Code SamplePX4 GPS
Add-OnsVOXL 2 GPS Mag Assembly

QUP7 - RCIO UART

  
DeviceQUP7
PinsJ19 Pins 10/11 (Tx/Rx)
Voltage3.3V, via directional level shifters
Code SamplePX4 px4io Driver
 PX4 RC Driver
Add-OnsVOXL 2 IO
 VOXL 2 GPS Mag Assembly

SPI

The following is accurate as of System Image 1.3.

Overview

m0054-linux-user-guide-spi

/dev/spidev0.0  --> camera group 0 (J6)
/dev/spidev1.0  --> camera group 1 (J7)
/dev/spidev3.0  --> internal IMU (TDK ICM-42688p)
/dev/spidev14.0 --> external SPI (J10)

Apps Proc

SPI0 - Camera Group 0 SPI

  
Device/dev/spidev0.0
Code SampleVOXL SDK IMU Server
Voltage1.8V, directly connected to QRB5165, likely need to level shift
PinsJ6 - 34 MISO
 J6 - 36 MOSI
 J6 - 38 SCLK
 J6 - 40 CS_N

SPI1 - Camera Group 1 SPI

  
Device/dev/spidev1.0
Code SampleVOXL SDK IMU Server
Voltage1.8V, directly connected to QRB5165, likely need to level shift
PinsJ7 - 34 MISO
 J7 - 36 MOSI
 J7 - 38 SCLK
 J7 - 40 CS_N

SPI3 - IMU1

  
Device/dev/spidev3.0, exposed in MPA as /run/mpa/imu_apps
Code SampleVOXL SDK IMU Server
VoltageInternal
PinsU17 - 1 MISO
 U17 - 14 MOSI
 U17 - 13 SCLK
 U17 - 12 CS_N

SPI14 - J10 External SPI

  
Device/dev/spidev14.0
Code SampleVOXL SDK IMU Server
Voltage3.3VDC
PinsJ10 - 2 MISO
 J10 - 3 MOSI
 J10 - 4 SCLK
 J10 - 5 CS_N

SLPI Proc

QUP5 - IMU0

  
Deviceexposed via MAP at /run/mpa/imu_px4
Code SampleVOXL SDK IMU Server
VoltageInternal
PinsU16 - 1 MISO
 U16 - 14 MOSI
 U16 - 13 SCLK
 U16 - 12 CS_N

I2Cs

The following is accurate as of System Image 1.3.

Overview

m0054-linux-user-guide-i2c

Apps Proc

I2C10 - Legacy B2B I2C

/dev/i2c-1 is exposed on the Legacy B2B connector’s pins 23 and 25, and available on add-on boards via a JST connector.

  
Device/dev/i2c-1
Code Sample 
Voltage3.3VDC
ConnectorM0054 J3 Pins 23/25 (SCL/SDA) (GPIO 130/129)
Add-OnsM0062 J9 Pins 4/5 (SDA/SCL)
 M0090 J9 Pins 4/5 (SDA/SCL)

I2C15 - USB Redriver (internal, don’t use)

Status: dmesg shows some errors, need to investigate

  
Device/dev/i2c-2
HardwarePN NB7VPQ904MMUTWG datasheet
 Address: 0x1C

I2C9 - Legacy B2B I2C

Status: not validated, not exposed on add-on board at this time

  
Device/dev/i2c-0
Code Sample 
Voltage3.3VDC
PinsJ3 Pin 13/15 (SCL/SDA) (GPIO 126/125)

SLPI Proc

QUP0 - External Sensor (Magnetometer)

Typically used for magnetometer I2C connection.

  
IDQUP0
Code Sample 
Voltage3.3VDC
PinsJ19 Pins 4/5 (SCL/SDA)
Add-OnsVOXL 2 GPS Mag Assembly

QUP2 - External Sensor (Power Monitoring)

Typically used for battery power monitoring I2C connection.

  
IDQUP2
Code Sample 
Voltage5.0VDC
PinsJ4 Pins 3/4 (SCL/SDA)
Add-OnsVOXL PMv3

QUP3

Future use.

  
IDQUP3
Code Sample 
Voltage3.3VDC
PinsJ19 Pins 7/8 (SCL/SDA)
Add-OnsNA

QUP4 - Internal Sensors (Barometers)

Connected to onboard barometers.

  
IDQUP4
Code Sample 
HardwareTDK-ICP10100 @ 0x63h
 bmp388 @ 0x76h

GPIOs

The following is accurate as of System Image 1.3.

Apps Proc

Work in progress to expose more GPIOS:

VOXL SDK - voxl-bind source code example.

PinDirectionDescription
46OutJ10 Pin 6 (SPI4 CS1, used for Spektrum bind)
52InJ5 - HSB2B - M0090, M0062 - J8 pin 2 (3P3V, 2mA, pulldown)
53OutJ5 - HSB2B - M0090, M0062 - J8 pin 3 (3P3V, 2mA, default high for M0048 pDDL_EN_N)
54OutJ5 - HSB2B - M0090, M0062 - J8 pin 4 (3P3V, 2mA, default low)
55OutJ5 - HSB2B - M0090, M0062 - J8 pin 5 (3P3V, 2mA, default low)
82OutDS2 LED, Red
83OutDS2 LED, Green
84OutDS2 LED, Blue
157OutControls U41, the 5V/2A switchable power supply for USB
159OutControls U24, the 3.3VDC supply for RC / VOXL2 IO, J19 pin 9

Serial Debug Console

This is enabled in DEBUG builds of the system image and not enabled by default.

You can access via:

  • M0017 APQ Console.

m0054-debug-console-m0017

  • M0062 J6.

m0054-debug-console

Running the following after power on, for example:

screen /dev/tty.usbserial-AU03BMG9 115200

Watch the booting progress:

[  OK  ] Stopped Modem Init Service.
[  OK  ] Started Modem Init Service.
[  OK  ] Stopped Modem Init Service.
[FAILED] Failed to start Modem Init Service.
See 'systemctl status init_sys_mss.service' for details.
[  OK  ] Started depends update.

Ubuntu 18.04.5 LTS qrb5165-rb5 ttyMSM0

qrb5165-rb5 login:

Next: VOXL 2 PX4 Userguide



Copyright © 2019-2022 ModalAI Inc.