Skip to main content

Interface Usage

Interface Overview

E24C Bare Board Interfaces
No.DescriptionQty
Power Interface: DC55251
Onboard eMMC1
USB 2.0 Type-C: Combined Device & Debug Port1
User Button1
USB 2.0 Type-A Ports3
RTC Battery Connector1
MicroSD Card Slot1
GPIO: 14-Pin Expansion Header1
LED Indicators (1 Power, 4 Ethernet Port LEDs)5
Power Button1
Fan Header1
Maskrom Button1
Gigabit Ethernet Ports (Configurable WAN/LAN)4
HDMI 2.1 Output1
M.2 NVMe SSD Slot1

Interface Description

This section describes the interfaces using the Radxa E24C bare board as an example.

Power Interface

Powered by a 12V/2A power adapter with a DC5525 connector.

tip

Recommended power supplies:

Onboard eMMC

Optional onboard eMMC storage configuration.

USB 2.0 Type-C Port

Serves as a debug port for viewing logs and accessing the device, with a default baud rate of 1500000.

As a data transfer interface, it supports USB 2.0 OTG data transfer and serial debugging.

  • USB 2.0 OTG

Supports ADB, USB network, and mass storage.

Example for USB mass storage (ensure SSD is connected via M.2 M-Key before executing commands):

radxa@radxa-e24c$
modprobe libcomposite
modprobe usb_f_mass_storage
systemctl daemon-reload
umount /sys/kernel/config
mount -t configfs none /sys/kernel/config
cd /sys/kernel/config/usb_gadget
mkdir -p my_udisk
cd my_udisk
echo 0x1d6b > idVendor
echo 0x0104 > idProduct
echo 0x0100 > bcdDevice
echo 0x0300 > bcdUSB
mkdir -p strings/0x409
echo "123456789" > strings/0x409/serialnumber
echo "My Manufacturer" > strings/0x409/manufacturer
echo "My USB Disk" > strings/0x409/product
mkdir -p configs/c.1
mkdir -p configs/c.1/strings/0x409
echo "Mass Storage Config" > configs/c.1/strings/0x409/configuration
mkdir -p functions/mass_storage.usb0
mkfs.ext4 /dev/nvme0n1p1
echo /dev/nvme0n1p1 > functions/mass_storage.usb0/lun.0/file
ln -s functions/mass_storage.usb0 configs/c.1
echo fc000000.usb > UDC

User Button

Programmable button with software-configurable functionality.

USB 2.0 Type-A Ports

Three USB 2.0 ports for connecting external devices such as keyboards, mice, and storage devices.

RTC Battery Connector

2-Pin 1.25mm RTC battery connector for connecting a real-time clock battery to maintain accurate system time during power loss.

MicroSD Card Slot

For inserting a MicroSD card, which can be used as a system boot device or for additional storage.

GPIO: 14-Pin Expansion Header

14-Pin 0.1" (2.54mm) interface supporting multiple functions including SPI, UART, I2C, and power output.

E24C GPIO Pinout Diagram

GPIO Pin Definition Table

Pin #Pin NameDescriptionLevel TypeDefault Function
15V5V Power OutputPowerPower Output
2GNDGroundGroundGround
3UART_TXUART Transmit3.3VUART2_TX
4UART_RXUART Receive3.3VUART2_RX
5I2C_SCLI2C Clock3.3VI2C2_SCL
6I2C_SDAI2C Data3.3VI2C2_SDA
7SPI_CLKSPI Clock3.3VSPI2_CLK
8SPI_TXSPI MOSI3.3VSPI2_TX/MOSI
9SPI_RXSPI MISO3.3VSPI2_RX/MISO
10SPI_CSSPI Chip Select3.3VSPI2_CS
11GPIO0Programmable GPIO3.3VGPIO0_A2
12GPIO1Programmable GPIO3.3VGPIO0_A3
133.3V3.3V Power OutputPowerPower Output
145V5V Power OutputPowerPower Output
warning

All signal pins are 3.3V level. Do not connect 5V signals as this may damage the single-board computer.

GPIO Usage Example

radxa@radxa-e24c$
# Install GPIO control tools
sudo apt-get install gpiod
# List available GPIO chips
gpiodetect
# View GPIO status
gpioinfo
# Control GPIO output
gpioset <chip> <line>=<value>
# Read GPIO input
gpioget <chip> <line>

Common Peripheral Connection Examples

I2C Sensor Connection
radxa@radxa-e24c$
# Install I2C tools
sudo apt-get install i2c-tools
# Scan for I2C devices
sudo i2cdetect -y 2 # Assuming I2C2 is used
# Read I2C device register
sudo i2cget -y 2 0x48 0x00 # Read register 0x00 from device at address 0x48
# Write to I2C device register
sudo i2cset -y 2 0x48 0x01 0x55 # Write 0x55 to register 0x01 of device at address 0x48

LED Status Indicators

Five status indicators showing power and network status. Refer to the silkscreen on the Radxa E24C bare board to identify each indicator.

  • Power LED: Green light when power is connected
  • Network Status LEDs: Blink in sync with corresponding network port activity

Power Button

Used to power the device on and off.

Fan Header

2-Pin 1.25mm fan header for connecting a cooling fan.

Maskrom Button

Used to enter Maskrom mode for firmware flashing.

Gigabit Ethernet Ports

Four Gigabit Ethernet ports.

In OpenWrt systems, these interfaces can be flexibly configured as WAN (Wide Area Network) or LAN (Local Area Network) ports, providing a highly customizable networking solution. Multiple ports also offer redundancy and load balancing capabilities, enhancing network reliability and performance.

  • Unique MAC Address

The Radxa E24C has a unique and fixed MAC address that remains consistent across power cycles, reboots, and even after reflashing the firmware.

  • Network Speed Test
radxa@radxa-e24c$
# Install iperf3 tool
sudo apt install iperf3
# Run on the server side
iperf -s
# Test upload speed
iperf3 -c server-ip -t 60
# Test download speed
iperf3 -c server-ip -t 60 -R

HDMI 2.1 Output Port

Supports video output up to 4K resolution, compatible with monitors and TVs.

M.2 NVMe SSD Interface

Provides a PCIe 2.1 1-lane interface for connecting M.2 NVMe SSDs. Supports standard M.2 2280 form factor NVMe SSDs. Note: M.2 SATA SSDs are not supported.