5. Additional Smart Radio Ports

5. Additional Smart Radio Ports

Additional Smart Radio Ports

UART

The UART port is a standard TTL level 3-pin serial port (RX, TX, GND). The UART port can be used directly with directly with flight controllers such as the PixHawk 4. It is also possible to setup a network to serial relay, or a direct serial to serial link over the network. Please refer to Doodle Labs’ Tech Library for an Application Note on using the serial port for further details.

USB Device Port

The USB Device Port only supports Ethernet over USB protocols. It works with Laptops and Tablets as long as they support Ethernet over USB. The USB Device Port uses the ETH0 interface logically.

USB Host Port

The USB port is a host port and is pre-configured as an Ethernet over USB interface. When plugged into a USB device or OTG port with a compatible Ethernet over USB configuration, a new interface, USB0, will be instantiated and bridged to the WAN interface. It is then possible to access the Smart Radio over the web browser or SSH at the default static IP address defined earlier. It is possible to install other USB packages to include other USB functions for your application.

The Smart Radio has a USB hub inside and USB ports are accessible on the main and secondary connectors. USB0 on the main connector does not have a 5-V supply associated with it.

GPIO

In hardware version J and later, GPIOs are available for programming. The GPIOs are provided by an on-board MCU and interfaced to the Operating System over USB HID. A program “sr-ctrl-usb” is pre-installed in the system and is used to access the GPIOs. The general syntax for accessing the MCU is

root@smartradio:~# sr-ctrl-usb <r/w> <param #> <value>

r/w is either “0” for read or “1” for write. The parameter numbers for the three GPIOs are tabulated below. The possible values which can be read or written are “0 and “1” and correspond to 0-V and 3.3-V. Table 2 summarizes GPIO parameters.

Table 2: GPIO Parameters

Param #

Function

6

Logic level of  GPIO1, 0 is GND and 1 is 3.3-V

7

Logic level of  GPIO2, 0 is GND and 1 is 3.3-V

8

Logic level of  GPIO3, 0 is GND and 1 is 3.3-V

11

Direction of GPIO1, 0 is Output and 1 is Input

12

Direction of GPIO2, 0 is Output and 1 is Input

13

Direction of GPIO3, 0 is Output and 1 is Input

 As an example, if we want to write a level 1 to GPIO2, we first set the direction of GPIO2 to 0 and then we set the logic level to 1.

root@smartradio:~# sr-ctrl-usb 1 12 0
root@smartradio:~# sr-ctrl-usb 1 7 1

We can read the logic level of GPIO3 with,

root@smartradio:~# sr-ctrl-usb 1 13 1
root@smartradio:~# sr-ctrl-usb 0 8

Note that the GPIO directions are reset to input when the MCU is reset. When the MCU is reset, a reset flag is raised at param # 13 and it should be reset to zero by the user.

Wake-Up Timer

For very low power monitoring applications, the Smart Radio can be configured to completely shut down and wake up on a timer. In order to conserve power, the CPU itself shuts down and it requires around 30 seconds to boot up again. The command to shutdown the system is,

root@smartradio:~# sr-ctrl-usb 1 2 <time in seconds>

where <time in seconds> is the amount of time that the CPU should shut down for. This feature is only available in -J hardware variants.

    • Related Articles

    • 1. Introduction to the Smart Radio Configuration Guide

      Introduction The purpose of this guide is to aid in the software configuration of the Smart Radio. This guide is organized as follows. 1.      Smart Radio Settings (For all models) 2.      Model Specific Configuration 3.      System Configuration ...
    • 2. Smart Radio Settings (For all models)

      Default Network Configuration The Smart Radio runs Doodle Labs Mesh Rider® OS, a customized version of Openwrt with enhancements. These enhancements are useful for applications requiring low-latency command-and-control transmission, HD Video, ...
    • ModalAI VOXL2 + Smart Radio Integration Guide: Smart Radio VOXL Integration

      Smart Radio VOXL Integration Updating VOXL Firmware Older versions of VOXL’s firmware do not include the necessary USB-Ethernet driver required by the Smart Radio Helix. Make sure to update your VOXL firmware following the instructions on the website ...
    • 6. Smart Radio Network Topologies

      Smart Radio Network Topologies The Smart Radio supports several different network configurations. The Simple Config menu makes it easy to configure the radio. The Simple Config menu is accessed in the web GUI at network → simple config. Basic Network ...
    • 4. UART and USB ports

      UART and USB ports This section covers common pitfalls encountered when using the USB and UART ports. Please note that for -H hardware, the auxiliary port is either USB or UART, but not both (See Table 1). UART Troubleshooting The UART port is ...