Radxa Zero 3 as a radio head
Forfield integrators
A ground station can be built on a Radxa ZERO 3 (what Sokil makes on it is the repeater), and in a split station it is the box on the mast: it owns the 5.8 GHz radio and the camera bound to it, while the pilot's laptop reads the handset. With no handset, no camera and no flight controller of its own, almost everything on it is USB.
Its own pages at http://10.1.1.30 are where you configure it: setup, the radio, the camera
bound to it, its transmitter modules. You do not fly from that address. The pilot's seat is the
laptop at http://127.0.0.1/, which is a secure origin, so the browser hands the web OSD its video
decoder there; a plain http://10.1.1.30 is not one, and the video pane blocks until a flag is set
for that address, once per browser. Sokil on the pilot's laptop sets
that seat up.
Two variants, one profile: the 3E has Gigabit Ethernet where the 3W has the wireless module,
WiFi and Bluetooth with its own antenna. Both are RK3566, both carry a CSI connector, and the header
and the UARTs are the same on either. Prefer the 3E. The head hands the decoded picture on to
the Pilot IP (parameter vrx_target) on its VRX settings > Receive tab, whose default 10.1.1.50 is a
separate pilot laptop or tablet on the wired network, and the socket for that leg is the 3E's.
What you need
- The board, a microSD with the Sokil ground image (
radxa3), and 5V from its own BEC - use the recommended 3A supply. - One WiFi card for the link, on USB - the radio the camera binds to.
- One USB ESP32 adapter per transmitter module. This box drives modules; it never reads a handset. See Handset and CRSF.
- The pilot's laptop station (Laptop pilot station), and Ethernet between the two.
Which end this is
Diagram: The radio head between the pilot laptop and what it drives - img/gs-radxa-radio-head.svg (vector: img/gs-radxa-radio-head.svg)
The two stations in a split kit are opposite ends of one CRSF relay and share almost no settings: the laptop reads the handset and sends CRSF outbound, this board receives it and drives the transmitter modules. On a WiFi drone the sticks reach the flight controller through the drone's own ELRS receiver, rather than through the Sokil camera's MAVLink connection - the Sokil camera reads them back out of MAVLink there.
Setup never asks which end you are on. Core's defaults already differ between a laptop and a
board like this one, so the Board (parameter dev_board) core detects - the one the Hardware (on the station) page names -
separates the two.
Wiring
Kit picture: Radxa Zero 3 as a radio head. The parts list below carries the same wiring.
Radxa Zero 3 as a radio head
- Board: Radxa ZERO 3E (RK3566, Gigabit Ethernet)
Parts
| Part | What it is | Attaches to | Link | Note |
|---|---|---|---|---|
| USB WiFi card (wfb0) | WiFi card | on socket USB-C 3.0 host | the station names a card by the socket it is in, not by the order it was plugged in. | |
| ESP32 adapter 1 | Sokil ESP32 adapter | on connector USB-C OTG / 5V in, behind a USB hub | comes up as /dev/ttyUSB0 - named by parameter rc_crsf_serial | |
| ESP32 adapter 2 (Repeater RC) | Sokil ESP32 adapter | on connector USB-C OTG / 5V in, behind a USB hub | comes up as /dev/ttyUSB1 - named by parameter rc2_crsf_serial | |
| ELRS transmitter module 1 | Transmitter module | on ESP32 adapter 1 | CRSF TX/RX pair | |
| ELRS transmitter module 2 (optional - one of several fielded shapes) | Transmitter module | on ESP32 adapter 2 (Repeater RC) | CRSF TX/RX pair | |
| Pilot laptop station | Pilot laptop | on connector Ethernet | reads the handset and sends the sticks here as CRSF on port 14540. |
Power feeds
| Load | Voltage | BEC output (solder pads) | Note |
|---|---|---|---|
| Radxa ZERO 3E - Header 5V | 5V | Matek BEC12S Pro - 5V, nothing bridged (factory default) | |
| USB WiFi card (wfb0) | ~14V | Matek BEC12S Pro - ~14V, 8V and 12V pads both bridged | sensitive - its own BEC |
| ELRS transmitter module 1 | 8V | Matek BEC12S Pro - 8V, 8V pads bridged | electrically noisy - its own BEC |
| ELRS transmitter module 2 | 8V | Matek BEC12S Pro - 8V, 8V pads bridged | electrically noisy - its own BEC - optional - one of several fielded shapes |
A USB hub is inferred here (several parts on one socket); no source names it - confirm on the bench: its 5V from a BEC, every device steady under load and named as expected on the Hardware page. Hubs are to be avoided; a station's or repeater's WiFi card never goes behind one.
Parameters the setup wizard writes for this kit
| Parameter | Value |
|---|---|
| rc_crsf_baud | 460800 |
| rc2_enabled | 1 |
| rc2_crsf_baud | 460800 |
Figure: The whole radio head: the card in the USB-C host socket, both ESP32 adapters behind a hub on the OTG one, a transmitter module on each adapter, Ethernet to the pilot laptop, and one BEC per feed - four on a two-module head. The BEC lands on header pin 2 (V+) and pin 6 (GND); pin 1 is at the micro-HDMI and Ethernet end.
Pin 1 is at the micro-HDMI and Ethernet end - the opposite of a Pi Zero, and easy to get wrong with the board in your hand. Confirmed on a bench 3E: the header's only 5V pins are 2 and 4, and that pair sits at the Ethernet end.
The two USB-C sockets
Both USB-C sockets are on the long edge beside the micro-HDMI, and the station names a WiFi card by the socket it is in, not by the order it was plugged in:
| Socket | Where it is | Radio name | Note |
|---|---|---|---|
| USB-C host | the middle one, beside the micro-HDMI | wfb0 | the primary radio - core's default card for WiFi reception (parameter vrx_wifi_wlan) |
| USB-C OTG | at the microSD end | wfb1 | also the board's 5V input |
Neither socket is drawn with a ?, the mark for a socket nobody has measured: the host one was read
off a bench 3E with a camera in it, and the OTG one is the board's own USB controller. Behind a hub
the name follows the hub port: 2 is wfb1, and 1, 3, 4 and 5 are wfb0 - a rule you should never
need, because the card is never behind a hub (next paragraph). The Sokil image installs
the rk3568-dwc3-host overlay beside the UART ones, so the OTG controller runs as a host rather
than a device.
The WiFi card goes in a socket of its own, straight on the board - never behind a USB hub. That holds on every ground station and repeater, whatever the board, and USB hubs are to be avoided altogether. A hub shares one upstream link between everything on it, so the card's video and control frames queue behind the adapters' traffic and the picture stutters or the sticks lag; if the card is powered through the hub, transmit bursts can make the hub's 5V supply sag and the card re-enumerate, often coming back transmit-only (WiFi link recovery); and a device behind a hub is not promised the same port from one boot to the next, so the card can turn up under the other wfb name or under none. A hub is tolerated for the adapters only: an ESP32 or a USB Ethernet adapter can sit behind one, the card cannot. The only builds that put a radio behind a hub are cameras, never a station: a Luckfox, or an IPC camera in a dual-camera WiFi build, whose single USB socket has to carry the radio and a USB camera.
A radio head does not normally carry a USB hub. Two sockets is what a one-module build uses - the radio in one, the transmitter adapter in the other - and the same holds for a Radxa VTX. Sokil never powers a Radxa through the OTG socket: the board is always fed from the header, which is what leaves both sockets free for devices. A two-module head needs a third USB device, and the kit drawing above puts both adapters behind a hub on the OTG socket. The better build wires the third device to the header's own USB port instead, which the next section describes.
A third USB port on the header
The Zero 3W and 3E carry a third USB 2.0 host port on the 40-pin header that ships disabled: the controller's data pair is routed towards pin 27 (D+) and pin 28 (D-), but as delivered those two pins are GPIO4_B2 and GPIO4_B3, and two pairs of 0-ohm resistors beside the header decide which signal reaches them. To switch the pins to USB:
- Remove the 0-ohm resistors at R32 and R39 - on a v1.2 board they are on the bottom side.
- Solder 0-ohm resistors, or a solder bridge, at R45 and R46 - on the top side, just under the header row.
- Check with a meter that pins 27 and 28 are not shorted to each other or to ground.
Sokil has made this change on a Zero 3E and the port works. Both USB-C sockets work as before; pins 27 and 28 are no longer GPIO or I2C4 afterwards. The places above are a v1.2 board's: on another revision, check them against Radxa's component placement map first.
Radxa's own hardware-interface page is the source of the resistor numbers and marks the job for an experienced technician: the parts are tiny SMD links, and a slip takes a trace with them. After the change, an adapter's data pair goes to pins 27 and 28, its ground to any header ground pin, and its 5V to the board's BEC feed - the same 5V rail the header carries on pins 2 and 4 - never to a hub. The second ESP32 adapter, or a Starlink repeater's Ethernet adapter, belongs there; the card stays in the host socket either way, so this three-device build can avoid a hub after the header modification. Which wfb name a card in that port would get has not been measured, which is one more reason it carries an adapter and never the radio. Confirm on the Hardware page (on the station: Hardware) that the adapter enumerates before you close the box.
The header, only if you need one
Most builds touch the 40-pin header only for power: a radio head drives its transmitter modules over
USB, not off the header. If a build of yours does put a serial device on it - the CRSF (ELRS) Serial port (parameter rc_crsf_serial)
and the SBUS Output Serial port (parameter rc_sbus_serial) on Control > RC Wiring both take any tty
this board has - these are the ports:
| UART | Port | TX | RX | GND |
|---|---|---|---|---|
| UART3 | /dev/ttyS3 |
pin 5 | pin 3 | pin 6 or 9 |
| UART4 | /dev/ttyS4 |
pin 18 | pin 16 | pin 14 or 20 |
| UART5 | /dev/ttyS5 |
pin 32 | pin 33 | pin 30 or 34 |
| UART9 | /dev/ttyS9 |
pin 21 | pin 24 | pin 20 or 25 |
Each is absent from the port list until its overlay is enabled; the image's installer adds
rk3568-uart3-m0, rk3568-uart4-m1, rk3568-uart5-m1 and rk3568-uart9-m1. Pins 8 and 10 are
not spare - that is the 1.5 Mbaud console, held as /dev/ttyFIQ0. Cross TX and RX, and run the
ground wire.
A transmitter module above 500 mW gets a patch antenna, 20 cm or more from this box. A module of that power (ELRS 2 W, SineLink 2 W, Skyline and the like) on a dipole closer than 20 cm to the WiFi card, its USB cable or the board knocks the card off USB, at random or for good, and can kill it. Fit the module a patch antenna at least 20 cm from the Sokil hardware and not aimed at it - the antenna rule and the symptoms.
Power
5V into header pin 2 with ground on pin 6; pin 4 is the second 5V pin of the same documented input. Use a 5V/3A supply. Operators observed occasional hangs or reboots with 2A supplies; the tested setups worked reliably with 3A supplies. The USB-C OTG socket is the other listed input, and the host socket beside it does not feed the board. The WiFi card and the modules take their own feeds from the battery, never the board's 5V pins - Power and the BEC has the rule.
A radio head therefore carries three BECs: one for the board, one for the WiFi card and one for the transmitter module. A BEC has one output, and an ELRS transmitter is noisy enough that it must not share a BEC with the WiFi card - a second module gets a fourth BEC of its own.
The 3E carries two PoE pads (POE12 and POE34) beside the Ethernet socket. No Sokil build uses them - feed the header.
What setup asks and writes
Run Setup (on the station) on the board itself. On Role pick Ground station - setup asks core for the baseline of that role, on this board, which matters here because the Radxa resolves camera-side defaults of its own and ships as a ground station anyway. On Link pick WiFi radio. The Control step then names this board the radio head and asks which port each transmitter module is on. The planned settings are written when you press Apply on Review. Activation, file imports, binding and software updates take effect separately and can change the device before Apply.
| Setting | Value | Why |
|---|---|---|
VRX settings > Connection > Radio (parameter vrx_ufec_wifi) |
UFEC | receive video, telemetry and the tunnel on the radio |
VRX settings > Connection > UFEC streams: MAVLink FEC / Second MAVLink FEC (parameters vrx_ufec3_fec, vrx_ufec4_fec) |
4:2 |
parity on both MAVLink streams this station sends up - RC and telemetry |
the same streams' Mode (parameters vrx_ufec3_mode, vrx_ufec4_mode) |
Low latency | how those streams are sent |
VRX settings > Connection > Serve older WFB drones (parameter vrx_wfb_fallback) |
on | fall back to the legacy WFB link for an older drone carrying this station's key |
VRX settings > Channels > WiFi power (parameter vrx_wifi_power) |
2 |
the station card's own transmit power - the telemetry and RC uplink - at level 2 of 0-5, written on every WiFi station |
VRX settings > Channels > VRX WiFi channels, Position 1 to 8 (parameter rc_act_vrx_channels) |
40|52|64|100|120|140|157|177 |
one receive channel per position of the VRX WiFi channel switch (parameter rc_act_vrx_channel_sw) (Control > RC Actions). A 2.4 GHz card gets 1|4|6|8|10|12|13|14 |
Control > RC Wiring > Repeater RC (parameter rc2_enabled), its CRSF adapter row's Output Serial (UART) with Serial port (parameter rc2_crsf_serial) and Baudrate (parameter rc2_crsf_baud) |
on, /dev/ttyUSB1, 460800 |
Repeater RC - the second handset's stream, in from the laptop and out to the second module |
Sokil Eye, Sokil Eye 2, Sokil Eye 3, CMD Streamer and CMD Streamer 2 (parameters vtx_eye_enabled, vtx_eye2_enabled, vtx_eye3_enabled, vtx_cmd_enabled, vtx_cmd2_enabled) |
off | no camera of its own |
the Main video camera (parameter vtx_presets_streamer) |
None | with no primary streamer it stops announcing a camera |
Apply returns the RC target - RC outputs Send to (parameter rc_ip) - to its default; pick your camera in the camera switcher afterwards.
Everything else is core's default for this board and role. On Control > RC Wiring, the CRSF
(ELRS) card's Input (parameter rc_crsf_in_addr) is Receive RC over UDP, so it listens on
0.0.0.0:14540, and its Output Serial (UART) goes out of Serial port (parameter rc_crsf_serial)
/dev/ttyUSB0 (first stream in, first module out), with Baudrate (parameter rc_crsf_baud)
460800 (setup states that one too, since it differs on other kits); the Repeater RC card's CRSF
adapter row is the same pair one port along - Input (parameter rc2_crsf_in_addr) Receive RC over UDP
on 0.0.0.0:14541 and Output (parameter rc2_crsf_out_addr) Serial (UART), never a UDP send (a radio
head listens for both streams where the laptop sends both).
WiFi reception (parameter vrx_wifi_wlan) is on wfb0, the station's own address as the ground
station (parameter gs_ip) is 10.1.1.30, the Pilot IP (parameter vrx_target) is 10.1.1.50 and the MAVLink
Port (parameter vrx_mavlink_port) (expert only) is 14550.
460800 is the USB speed between Sokil and the ESP32, not the CRSF baud on the radio side - the
module keeps its own.
⚠ Repeater RC is written on every ground station, and it stays silent until a repeater is
connected. A head with one module has no /dev/ttyUSB1 to open, and that costs nothing: this input's
Diagnostics findings, its CONNECT REPEATER RC alert on the overlay and the missing-port mark on
the Hardware page all wait for a repeater to be on the air - the Repeater RC card then notes that a repeater is connected (parameter rc2_in_use). The Control step has no switch to decline it: the plan
decides which devices get Repeater RC and mounts the card without one, like every other card on that page.
After setup, the Repeater RC card on the Control settings page carries the switch.
How it pairs with the laptop
The laptop sends CRSF to port 14540 and Repeater RC to port 14541 of the address in its RC outputs
Send to (parameter rc_ip) row (an admin row on Control > RC Wiring): the address of the device the
station controls, which picking a device in the camera switcher writes (so do Control on a Status page and a
completed bind). So the sticks follow the selection - on
the laptop that selection is this radio head, and here it is the camera. The head's own Send to is what says
which camera; the laptop keeps no copy of it.
The head decodes the camera's video and telemetry and streams them on to its Pilot IP (parameter vrx_target),
which defaults to 10.1.1.50, the host leg. The WiFi camera binds here, at the radio head - its radio, its key,
its channel plan - and it obeys only announcements from its own Ground station IP (parameter gs_ip), so the laptop's own vehicles
stand by rather than fight it.
The pairing is made from the fly view's Active vehicle switcher, on the laptop - or with
Fly through <name> on this head's Status page there, which does the same. Picking this
head's row there points this head's Pilot IP (parameter vrx_target) at the machine you are reading from and sets
that machine's RC Send to (parameter rc_ip) to this head: the picture comes to you and the sticks go out to the head, in one
tap, with no settings page opened on either box. The address written is one the head is shown to reach: the
one it says the laptop reached it from, one it heard the laptop announce from, the laptop's address on a
ZeroTier network the head has joined, or on an Ethernet subnet they share. When there is none, the switcher
says so and changes nothing - put both on one Ethernet subnet or join the head to one of the laptop's ZeroTier
networks. If the laptop's address later changes (a new DHCP lease, a cable moved), the laptop re-points the
head by itself while its fly view is open - unless the only address left is itself a DHCP lease: then it
leaves the head as it is and says so, and selecting the head again asks before using the lease. If this head's current Pilot IP (parameter vrx_target)
is not one of this station's own addresses - typically another pilot's laptop - the switcher asks
before taking it over and names what stops on that machine. It asks whether or not anything answers
there: aiming a head somewhere else is a setting written into somebody else's equipment and it stays
written, so it is confirmed the way binding another camera is. Taking it over is not undone from
here, the other pilot picks the head again when they need it
(Switching vehicles and cameras).
The head's own fly view is blank while it streams to the laptop, and nothing is broken. The browser reads the video and MAVLink streams off the sokil_web of the station the page is open on (ports 5600 and 14550), so it sees them only while the Pilot IP (parameter
vrx_target) names that same host. Pointed at the laptop, this box's fly view shows no picture, no error and no diagnostic finding - every service on it really is healthy, it is delivering the picture somewhere else. A video pane opened here offers to point the Pilot IP (parametervrx_target) at this box instead; decline it, or the laptop loses the picture.
First checks after Apply
- On Hardware (on the station), every USB socket should show what you put in it, the radio under the name you expect and each ESP32 on the port setup named. A serial row that is on and hearing nothing goes amber.
- On WiFi (on the station), the receiver should be on the card and channel you meant.
- Move a stick at the laptop and watch the channels arrive here, on Control (on the station).
- Status (on the station) draws one stream per data path with a verdict on each, and Diagnostics (on the station) lists what the station found wrong about itself.
- Then bind the camera and work through After Apply.
Related guides
- Sokil on the pilot's laptop - the seat you fly from, at
http://127.0.0.1/. - Laptop pilot station - the other end of the relay.
- Handset and CRSF - the adapter and the modules.
- Channels and switches - the hop plans and the switch roster.
- Binding - the camera binds here, at the radio head.
- After Apply - the checks to run before the first flight.
- Radxa Zero 3 as a camera - the same board on the other side.
- Power and the BEC - one BEC per feed, and the jumper table.