> **Sokil documentation pack**
> Language: English
> Station software: 20261126_usb_cameras
> UI build: c6b2dc620
> Generated: 2026-11-26
> Generated by the Sokil ground station UI from the documentation it ships. Download it again after every software update - the pack describes the version it was generated from.

<a id="repeater-wifi"></a>

# WiFi repeater (Radxa, two WiFi cards)

**Summary:** A relay that flies - one card hears the drone, the other talks to the station, and the receive channels are rotated so the two never meet.

**Audience:** field integrators

Open in the UI: http://10.1.1.30/help/guides/repeater-wifi

A WiFi repeater is a ground station that flies. It receives a Sokil drone on one WiFi card
and forwards its streams to the real ground station on the other card - so the pilot can work
past the station's own horizon. The kit this page describes is a Radxa Zero 3 with two USB radio
adapters, its own flight controller, and an ELRS pair that carries the sticks the last hop to the
relayed drone. Setup builds a WiFi repeater on other boards too, and writes the same keys there; the
wiring below is the Radxa's.

Two facts shape the rest of this page. **The two cards are centimeters apart**, so keeping them off
each other's frequencies is most of the job. And **one box carries two aircraft's worth of
traffic** - the drone's and its own - so every stream has an owner.

<a id="repeater-wifi--what-you-need"></a>

### What you need

- A **Radxa Zero 3E** with the Sokil ground image on microSD - the variant with the RJ45, which is
  the wired leg a course camera hangs on.
- **Two WiFi cards, one per leg.** One card holds one channel, and the drone-facing card must be
  free to move to the binding channel during a sweep, so one card cannot serve both legs.
- **At least one leg on 5 GHz.** A 2.4 to 2.4 relay does not work at all - that band is about
  70 MHz end to end, and two co-located 2 W cards desensitize each other wherever in it they sit.
  Setup says so on the Link settings step, in red. Suitable 2.4 GHz cards are hard to find, so for
  the leg to the station a HereLink radio in IP mode is the recommended alternative - that WiFi to
  HereLink repeater is on the bench and has not flown yet.
- **An ELRS receiver and transmitter pair.** The receiver hears the transmitter in the WiFi ground station's JR bay and also feeds
  this box; the transmitter reaches the relayed drone's own receiver.
- **A second ELRS receiver for this airframe**, wired straight to the repeater's own flight
  controller - the host aircraft is flown like any other. A second pilot flying it from the same
  laptop needs a ground station with two JR bays, one transmitter module each:
  [Repeater RC](repeater-rc.md#repeater-rc).
- **Both roles activated**: it receives like a station and transmits like a camera.
- Optionally a **course camera** on the wired leg at `10.1.1.40`.

<a id="repeater-wifi--how-the-two-links-fit-together"></a>

### How the two links fit together

![Two cards, two links, and the order the binds go in](../img/repeater-wifi.svg)

Diagram: Two cards, two links, and the order the binds go in - img/repeater-wifi.svg (vector: img/repeater-wifi.svg)

**Link A** is the drone to the repeater's receive leg; **link B** is the repeater's transmit leg to
the ground station. Each is a separate radio link with its **own key pair** - never share one across
both hops - and both ends of one link must run the same WiFi transport - the receiving end's **Radio**
mode (parameter `vrx_ufec_wifi`) against the sending end's (parameter `vtx_ufec_wifi`), on the **Link transport** card of
each side's Connection tab. The two legs may differ from each other; the two ends of one link may not, and a
mismatched pair looks exactly like an absent drone in the sweep.

**RC is one input for the whole chain.** The repeater's ELRS receiver feeds the CRSF **Serial port** (parameter `rc_crsf_serial`), so
Sokil's channel state here is the **relayed drone's** - which is what makes the receive leg hop to a
new channel at the moment the drone does. Put the channel switch on the same handset channel the
ground station uses; a repeater hopping on its own schedule loses the drone.

**MAVLink has two streams and they are not interchangeable.** Stream 1 belongs to the relayed drone;
this box's own flight controller always rides **stream 2**, course camera or not. For the same reason
a repeater **cannot relay a drone that sends a second video stream** - that video stream is this box's
own, and nothing here can check it, because the drone is configured in its own run.

<a id="repeater-wifi--wiring"></a>

### Wiring

Kit picture: WiFi repeater (Radxa, two WiFi cards). The parts list below carries the same wiring.

#### WiFi repeater (Radxa, two WiFi cards)

- Board: Radxa ZERO 3E (RK3566, Gigabit Ethernet)

##### Parts

| Part | What it is | Attaches to | Link | Note |
| --- | --- | --- | --- | --- |
| USB WiFi card (wfb1 - VRX leg) | WiFi card | on socket USB-C OTG / 5V in |  | hears the relayed drone. One card holds one channel, so a leg cannot share. |
| USB WiFi card (wfb0 - VTX leg) | WiFi card | on socket USB-C 3.0 host |  | talks to the ground station. |
| ELRS RX-TX pair | RC receiver | on UART5 (/dev/ttyS5) | TX/RX pair | the pair reaches the relayed drone's own receiver, and its CRSF line feeds this box too - comes up as /dev/ttyS5 - named by parameter rc_crsf_serial |
| Host flight controller | Flight controller | on UART4 (/dev/ttyS4) | TX/RX pair | comes up as /dev/ttyS4 - named by parameter vtx_mavfwd_serial |
| ELRS receiver for this airframe | RC receiver | on Host flight controller | CRSF TX/RX pair | a second receiver, wired straight to the host flight controller - this airframe is flown like any other. |
| Case cooling fan | Cooling fan | not attached to this box |  | runs off the board's own 5V feed on every sheet, together with a heatsink on the board and on the radio module - the boxes are closed and they run hot. |
| Course camera (IPC board) at 10.1.1.40 (optional - one of several fielded shapes) | IPC camera | on connector Ethernet |  | only when one is wired - it takes the second video stream. |

##### 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 (wfb1 - VRX leg) | ~14V | Matek BEC12S Pro - ~14V, 8V and 12V pads both bridged | sensitive - its own BEC |
| USB WiFi card (wfb0 - VTX leg) | ~14V | Matek BEC12S Pro - ~14V, 8V and 12V pads both bridged | sensitive - its own BEC |
| ELRS RX-TX pair | 8V | Matek BEC12S Pro - 8V, 8V pads bridged | electrically noisy - its own BEC |

##### Parameters the setup wizard writes for this kit

| Parameter | Value |
| --- | --- |
| rc_crsf_baud | 400000 |
| vtx_mavfwd_enabled | 1 |

*Figure: The whole repeater: one card per USB-C socket, the ELRS pair on UART5, the host flight controller on UART4 (TX pin 18, RX pin 16, ground on 14 or 20), the course camera on the wired leg, and a BEC per feed. The card on UART5 is the ELRS receiver - the station's port registry calls anything speaking CRSF an adapter. The BEC lands on header pin 2 (V+) and pin 6 (GND).*

UART4 carries the flight controller and UART5 the ELRS line; UART3 and UART9 are left unwired, and
pins 8 and 10 are the system console rather than a spare port. Only the ELRS UART's **RX** pin is needed for RC - the
receiver's CRSF output goes into it, plus a ground wire. This repeater's receiver and the
transmitter it directly feeds are both configured to **400000**, and the UART must match. A stock
ELRS receiver normally uses 420000; the station's USB ESP32 adapter uses 460800 on its USB side.

**UART5 as drawn is the seat for the ELRS line, and the flight controller keeps UART4.** Other
shapes work too: a unit that needs UART4 for the ELRS line moves the flight controller to
`/dev/ttyS5`, and a relay with no flight controller on a wire can put the ELRS line on `/dev/ttyS4`,
since nothing else wants the port. The flight controller or the ELRS receiver goes on UART4 - one of
them, never both. Set the port on the Control step and read what the box reports on the
[Hardware page](http://10.1.1.30/gs/hardware) before wiring: the Hardware step marks a port claimed twice in red
and blocks Next.

**The wizard sets this port** (since 2026-09-08): the ELRS line goes on the board's spare header
UART - `/dev/ttyS5`, UART5, on a Radxa - beside the flight controller on core's own port, UART4,
so the two never collide, and the Review page shows the row. Core alone would leave the port empty
(a repeater is not where the handset lands), which is what an older wizard did too: a box set up
before that date shows the "CRSF has no port" warning on the Hardware step until the UART is named
on the Control step. A wizard before 2026-11-17 put the line on `/dev/ttyS3`: rerunning Setup on a
box wired that way moves the port to `/dev/ttyS5`, so move the ELRS receiver's TX wire to pin 33 (UART5 RX) or change the
row on the Review page.

The radios go in the two USB-C sockets. The image names a card by **the socket it is in**, not by
the order it was plugged in, and core puts the transmit tier on wfb0 and the receive tier on wfb1:

| Socket                        | Radio name | Leg                                                                                          |
| ----------------------------- | ---------- | -------------------------------------------------------------------------------------------- |
| USB-C host, the middle socket | wfb0       | transmit, to the ground station - the card picked on **WiFi transmission** (parameter `vtx_wifi_wlan`) |
| USB-C OTG, at the microSD end | wfb1       | receive, hearing the drone - the card picked on **WiFi reception** (parameter `vrx_wifi_wlan`)         |

**Each card is alone in its socket, straight on the board.** Neither radio ever goes behind a USB
hub: a hub shares one upstream link between everything on it; if the card is powered through the hub,
transmit bursts can make its 5V supply sag, causing the card to re-enumerate and possibly come back
transmit-only; and a device behind a hub is not
promised the same port on the next boot, so the table above stops holding. This kit has nothing else
on USB - the ELRS receiver and the host flight controller are on header UARTs and the course camera is
on Ethernet - and if a build of yours does need a third USB device, the Zero 3E has a third USB port on
header pins 27 and 28 behind a resistor change
([A third USB port on the header](gs-radxa-radio-head.md#gs-radxa-radio-head--a-third-usb-port-on-the-header)).

That table is what the image and the setup wizard apply on this board. Older wiring drawings do
not all agree on which leg goes in which socket - some have the two swapped. Take the
table. The OTG socket is also the
board's 5V input, so a repeater has to be fed from the header. The [Hardware page](http://10.1.1.30/gs/hardware)
prints the name each socket actually resolves to.

**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](antennas.md#antennas--rules-that-do-not-bend) and
[the symptoms](troubleshooting-radio.md#troubleshooting-radio--a-card-drops-off-usb-or-dies-beside-a-high-power-rc-transmitter).

<a id="repeater-wifi--power"></a>

### Power

5V into header pin 2 with ground on pin 6, from this box's own BEC. **Use a 5V/3A supply.** Operators observed occasional hangs or reboots with 2A supplies; the tested setups worked reliably with 3A supplies. **The WiFi cards
never come off the board's rails** - each gets its own BEC feed from the battery, with only its data
pair and ground going to the board
([Power and the BEC](power-bec.md#power-bec)). Budget for cooling: two cards
in monitor mode pull heavy current. On a 12S
airframe that rule is the difference between a repeater and a burned card: a card fed straight off
the pack goes, and takes its power button with it.

<a id="repeater-wifi--what-setup-asks-and-writes"></a>

### What setup asks and writes

Run [Setup](http://10.1.1.30/cam/setup) on the repeater itself. **Role** is _Repeater_; **Link** asks what it carries
(_Another Sokil drone_), where it sends (_WiFi radio_) and whether a course camera is wired to it.
Its input is stated rather than offered.

| Setting                                                                                                                                   | Value                                                        | Why                                                                                                                                                |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Radio** mode, both legs (parameters `vrx_ufec_wifi`, `vtx_ufec_wifi`)                                                                              | **UFEC**                                                     | both legs on the current radio transport                                                                                                           |
| **MAVLink FEC** / **Second MAVLink FEC**, both legs (parameters `vrx_ufec3_fec`, `vrx_ufec4_fec`, `vtx_ufec3_fec`, `vtx_ufec4_fec`)                        | `4:2`                                                        | parity on both MAVLink streams, on both legs                                                                                                       |
| MAVLink stream **Mode**, both streams and both legs (parameters `vrx_ufec3_mode`, `vrx_ufec4_mode`, `vtx_ufec3_mode`, `vtx_ufec4_mode`)      | **Low latency**                                              | how both legs send them                                                                                                                            |
| **Serve older WFB drones** (parameter `vrx_wfb_fallback`)                                                                                        | on                                                           | the receive leg drops to the legacy link for an older drone on this box's key                                                                      |
| Receive leg's **WiFi power** (parameter `vrx_wifi_power`)                                                                                        | `0`                                                          | the receive leg's own transmit power at the lowest level: its card sits centimeters from the transmit leg's, and at level 4 the two jam each other |
| Receive leg's channel plan, **VRX WiFi channels** (parameter `rc_act_vrx_channels`)                                                              | `120\|140\|157\|177\|40\|52\|64\|100`                        | the station's plan **rotated by four**, so no switch position puts the two cards closer than 385 MHz                                               |
| **RC input** (parameter `rc_ch_source`)                                                                                                          | **CRSF (ELRS)**                                              | pin the channels to the ELRS input, so the receive leg hops with the drone                                                                         |
| CRSF **Baudrate** (parameter `rc_crsf_baud`)                                                                                                     | `400000`                                                     | the configured repeater ELRS rate                                                                                                                                 |
| Receive leg's **Pilot IP** / MAVLink **Port** (parameters `vrx_target`, `vrx_mavlink_port`)                                                          | `127.0.0.1` / `14550`                                        | the receive tier hands the drone's telemetry to the transmit tier on this box                                                                      |
| MAVLink **Send address** (parameter `vtx_mavfwd_out_addr`)                                                                                       | `127.0.0.1:14560`, or `10.1.1.40:14551` with a course camera | this box's own telemetry, stream 2 either way                                                                                                      |
| MAVLink **Listen address**, and batching (no row) (parameters `vtx_mavfwd_in_addr`, `vtx_mavfwd_agg_ms`, `vtx_mavfwd_agg_sz`)                           | empty / `0` / `0`                                            | the transport replies to the sender, and nothing batches on a wire                                                                                 |
| Ethernet **IP address** / **Gateway** / **Take an address from DHCP** (parameters `eth_ip`, `eth_gateway`, `eth_dhcp`)                                  | `10.1.1.30` / `10.1.1.1` / off                               | the wired leg, where a course camera looks for its primary                                                                                         |
| **Video from another device** (parameter `vtx_streamer_external`)                                                                                | on                                                           | what it sends out is what its receive leg brought in; without this the transmit leg goes quiet                                                     |
| **Sokil Eye**, **CMD Streamer**, the **Main video** camera and their siblings (parameters `vtx_eye_enabled`, `vtx_cmd_enabled`, `vtx_presets_streamer`) | off / none                                                   | it has no camera of its own, so it announces none                                                                                                  |
| **Preset switch**, **Absolute zoom** and the rest of the camera switches (parameters `rc_act_vtx_preset_sw`, `rc_act_vtx_zoom_sw`)                   | unassigned                                                   | switches for that same missing camera; the WiFi channel and power switches stay - both legs are radios                                             |

⚠ **The new Ethernet IP address** (parameter `eth_ip`) moves the box when you apply. If you are reaching this repeater at another address on
its wired leg, this page loses it at Apply. Change the address on the Link settings Ethernet card before proceeding; Review is read-only.

The rest is core's own default for this board rather than something setup writes: the MAVLink
**Serial port** (parameter `vtx_mavfwd_serial`) `/dev/ttyS4` at `115200`, and the **VRX WiFi channel
switch** (parameter `rc_act_vrx_channel_sw`) on channel 10. Those two are still in the
plan, so a box that has drifted off them is pulled back on Apply like any other default. The tunnel
addresses (parameters `vtx_tuna_ip`, `vrx_tuna_ip`) are neither (the transmit tier's is `10.5.0.3`, the receive
tier's `10.5.0.5`): the box sets them itself once both tiers have a card, no page shows them, and
there is nothing to set.

**Only the receive leg rotates, and that is the rule**: working through a repeater needs no change
to the ground station. The station keeps the canonical list, this box's transmit leg takes it on
bind exactly like a camera, and only the leg that hears the drone moves. What the rotation cannot
help with is the **binding channels** - 5 GHz `161` and 2.4 GHz `10` - which both ends inherit from
the same eight entries, so keep your plan off them.

<a id="repeater-wifi--flight-controller-side"></a>

### Flight controller side

This box's own flight controller is an ordinary MAVLink connection on `/dev/ttyS4` at 115200, and
its telemetry rides stream 2 - set the FC's serial port to MAVLink 2 and match the baud
([Flight controller](flight-controller.md#flight-controller)). Solder it with the
[Hardware page](http://10.1.1.30/cam/hardware) open: the ELRS receiver already holds one header UART, and MAVLink
written onto that one overruns the sticks and drops control. UART4 is the flight controller's and
UART5 the ELRS receiver's. Its **flight controller receives RC from its own ELRS receiver**,
wired straight to the flight controller, rather than through the repeater's MAVLink connection. That is why a WiFi
repeater leaves **RC to VTX MAVLink** (parameter `vtx_crsf_enabled`) off, which belongs to the Starlink repeater instead, where the
sticks arrive on the uplink.

<a id="repeater-wifi--the-two-binds-in-order"></a>

### The two binds, in order

**Bind the station leg first.** The drone bind is driven _through_ the station link, so until link B
is up there is no control path to drive it with and the button does not appear at all.

1. **Ground station to repeater.** Put the repeater's **transmit** leg in binding mode and press
   Bind WiFi on the ground station. The sweep says it is pairing with a repeater's transmit leg
   rather than with a camera.
2. **Repeater to drone.** With link B up, the station's UI drives the repeater's own Bind WiFi sweep
   remotely, with the **Bind repeater WiFi** button - in the device header, on a WiFi-only
   repeater's own vehicle row, or on the selected station's row when a repeater sits behind it. Its receive
   leg sweeps and the drone is bound to it. Re-binding step 1 later does not disturb it.

Three things bite during a bind. **Some ways into binding mode delete the stored key.** The
**Unbind** button, the handset's emergency unbind sequence and the automatic unbind of a unit whose
transmit card is never detected all delete it for good; magic bind and the automatic temporary
binding of a deaf radio only park the card on the binding channel and keep the old key until a new
bind completes ([Binding](binding.md#binding)). So record the **VTX encryption key** (parameter `vtx_key`)
(**VTX settings > Connection > WiFi transmission**, in the **Encryption** fold) first - writing the
old value back restores the pairing without a re-bind. **A sweep parks the drone-facing card on the
binding channel**, so relayed video drops for its duration and link B must not be sitting there.
And **with a channel switch assigned, a hand-written channel reverts within seconds** - and each
leg has its own. Link B follows the station's **VRX WiFi channel switch** (parameter `rc_act_vrx_channel_sw`)
on its **Control > RC Actions**; the repeater's transmit leg takes a read-only copy (parameter `rc_act_vtx_channel_sw`)
at step 1. The drone-facing leg follows the repeater's own switch of the same name on the
repeater's **Control > RC Actions**, stepping through the repeater's rotated plan
 (parameter `rc_act_vrx_channels`) (above), which the drone copies at step 2. To hand-set a leg's channel,
set that leg's switch to **Unset** on its owner and bind that leg again so the far end drops it too;
to change a leg's plan, edit it on the same owner and bind that leg again. Put the switch back
afterwards - a bind copies the switch and its sixteen slots
([Channels and switches](channels-switches.md#channels-switches--rules-that-bite)).

<a id="repeater-wifi--first-checks-after-apply"></a>

### First checks after Apply

1. On [Hardware](http://10.1.1.30/gs/hardware), both radios are present with the names you expect and each serial
   row shows the service on it. A port that is on but hearing nothing goes amber.
2. On [Diagnostics](http://10.1.1.30/gs/diagnostics), read the **Repeater chain** and **WiFi** groups. Between them
   they catch what is invisible from either end: a decoded stream handed to a local port nothing
   listens on, an uplink that goes back out to the ground station instead of reaching the drone, a
   relayed stream addressed to this box itself - and, filed under WiFi, the two radios on
   overlapping channels or a switch position where they collide.
3. On [WiFi](http://10.1.1.30/gs/wifi), the two legs are on different channels and neither is on a binding channel.
4. On the pilot's laptop, check the relayed drone's picture in the [fly view](http://10.1.1.30/gs/osd).
   Use [Devices](http://10.1.1.30/devices) and [Status](http://10.1.1.30/gs/status) for discovery and each data path. The WiFi
   head's own fly view stays blank while it delegates to the laptop; see
   [Sokil on the pilot's laptop](pilot-laptop.md#pilot-laptop).

A card that is present, on the right channel and still deaf is worth one check before you blame the
configuration: a Realtek adapter can come up with a dead receive path that looks exactly like a
missing antenna. **RX-only wedge recovery (s)** (parameter `vrx_wifi_rx_wedge_timeout`), in the **Card recovery
watchdogs** fold of **WiFi reception**, can recover a receive path that fails after the station has
heard its peer. It does not recover a card that has been deaf since startup. On the ground, replug
that adapter and check the link again before flight.

<a id="repeater-wifi--past-the-happy-path"></a>

### Past the happy path

Everything above builds the relay. What follows is what comes up once it is built and the second hop
is in play: which stream belongs to which aircraft, what has to be true before control reaches the far
drone, and what to look at first when two hops are quiet. The
[Troubleshooting guide](troubleshooting.md#troubleshooting) carries the symptom blocks; this section is the
mechanism behind them.

<a id="repeater-wifi--the-second-video-is-this-box-s-own"></a>

#### The second video is this box's own

The relay carries the drone it hears on the **first** video and the **first** telemetry stream.
Everything this airframe produces itself rides the **second** ones, and that split is fixed.

- A course camera on the wired leg sends **both** of its streamers to this box at `10.1.1.30`, port
  **5610**, at a fixed 256 kbps. It has no stream of its own on the air.
- Which of its two cameras is on air is decided on the course camera, not here: the **Main video**
  row (parameter `vtx_presets_streamer`) of its **Streams** card is the main streamer, the **Alternate camera**
  row (parameter `vtx_presets_streamera`) the alternate, and the **Alternate camera switch** (parameter `rc_act_vtx_streamer_sw`)
  on **Control > RC Actions** enables the one its position picks and disables the other, from power-on,
  so exactly one transmits. Left unassigned the switch does nothing and each streamer runs on its own enabled flag. See
  [Course camera](course-camera.md#course-camera).
- At the ground station the second picture is delivered to the second video target (parameter `vrx_target2r`) -
  the **Viewer** on the Status page's second video stream - on the **Second video port** (parameter `vrx_video_port2`)
  (5610), and the second telemetry to the **Second MAVLink** port (parameter `vrx_mavlink2_port`) (14560); both
  ports are expert rows on **VRX settings > Receive**. The fly view opens its second video pane
  only once the station reports a live source there, so an empty pane means nothing is arriving rather
  than a pane that failed to start.

**A flying repeater has no room for the relayed drone's second stream, and this is why.** The device
withdraws its own second video and second MAVLink _receive_ streams whenever its flight-controller
chain is armed - the **MAVLink** card on **VTX settings > Telemetry** switched on (parameter `vtx_mavfwd_enabled`)
with a **Send address** (parameter `vtx_mavfwd_out_addr`) filled in, which is what
setup writes on every flying repeater, course camera or not. The relayed drone's main video and main telemetry
always pass; its second stream has nowhere to land. Nothing here can check it, because that drone is
configured in its own run.
[What it looks like from the station](troubleshooting-repeaters.md#troubleshooting-repeaters--a-drone-behind-the-repeater-shows-the-repeater-s-course-camera-instead).

**The other branch is a relay that does not fly.** A repeater with no flight controller and no course
camera - a remote station that receives on the radio and sends onward over an uplink - keeps all four
receive streams, and the relayed drone's own second video and second telemetry pass straight through
and appear at the station as the ordinary second stream. That box has to be told: the repeater plan
arms the flight-controller chain, so switch the **MAVLink** card off (parameter `vtx_mavfwd_enabled`) on a box that
has no flight controller. An input-only chain, meaning an empty **Send address** (parameter `vtx_mavfwd_out_addr`),
frees the slot too.

If the second picture is missing with a course camera fitted, check the wire before the streams. Its
two ends are different addresses by design - this box at `10.1.1.30`, the camera at `10.1.1.40` - and
the [Hardware page](http://10.1.1.30/gs/hardware) draws what is on the RJ45 and lists it on the Wired network card. A
course camera whose address moved stops feeding this box until its target is set again
([Troubleshooting](troubleshooting-camera.md#troubleshooting-camera--the-second-video-stopped-after-the-camera-s-address-changed)).

<a id="repeater-wifi--the-host-aircraft-s-telemetry-and-the-port-a-gcs-connects-to"></a>

#### The host aircraft's telemetry, and the port a GCS connects to

Three hops, and only the last one is a setting in the ground control software.

1. **On this box.** The host flight controller is one UART carrying both directions - the MAVLink
   **Serial port** (parameter `vtx_mavfwd_serial`) on **VTX settings > Telemetry**, `/dev/ttyS4` on this board at
   115200, MAVLink 2 on the flight controller's side. The **Send address** (parameter `vtx_mavfwd_out_addr`) sends it to `127.0.0.1:14560`, or to `10.1.1.40:14551` when a course camera is
   in the way. Both end on the second MAVLink stream.
2. **Never `:14550`.** That stream belongs to the drone this box relays, and two airframes merged onto
   it is the classic fielded mistake
   ([Troubleshooting](troubleshooting-flight-controller.md#troubleshooting-flight-controller--a-repeater-s-own-telemetry-replaces-the-drone-s)).
3. **At the pilot station**, open a **local UDP listener** in the GCS on **14560** for the
   host aircraft; **14550** receives the relayed drone. These are destination ports on the viewer
   computer, not command listeners on the station. On **VRX settings > Receive > Destinations**,
   **Pilot IP** (parameter `vrx_target`) names that computer (`127.0.0.1` for a viewer on the laptop
   station itself). The second stream goes to the same computer unless an expert turns on **Send
   second video to a different IP** on that card and fills in **Second pilot IP** (parameter `vrx_target2`).
   Its port is the **Port** (parameter `vrx_mavlink2_port`) row under **Second MAVLink** on
   **VRX settings > Receive > MAVLink**, an expert row, default 14560.

Check these two details:

- **The GCS only has to listen.** The station sends to the configured destination, whether
  or not a listener is open; a heartbeat does not change that address. Allow incoming telemetry
  through the viewer computer's firewall
  ([Troubleshooting](troubleshooting-flight-controller.md#troubleshooting-flight-controller--the-ground-control-software-shows-nothing)).
- **The second stream accepts replies too.** Its inbound port (parameter `vrx_mavlink2_in_port`) is
  `0` by default: no fixed station listener, but the GCS can send commands back to the source
  IP and UDP port of received telemetry. No settings page edits the inbound port - an expert
  sets it on the parameters page, and the Status page's **Second VRX MAVLink** card shows it once
  set. The reference pair is **14560 out / 14566 in** for the second
  stream, or **14550 out / 14556 in** for the first stream's inbound port (parameter `vrx_mavlink_in_port`).

The laptop's webOSD receiver may already hold the local receiving port. In that case, the GCS
needs a separate forwarding destination and its own local listening port.

On **VRX settings > Receive > MAVLink**, choose UDP **Forwarding** for the stream the GCS needs.
For the repeater aircraft, use **Address:port** (parameter `vrx_mavfwd2_fwd_addr`) under **Second MAVLink**;
for the relayed drone, use the first stream's **Address:port** (parameter `vrx_mavfwd_fwd_addr`).
Enter the GCS computer's IP and its own listening port. Each forwarding connection is two-way,
so the GCS can download parameters while the overlay keeps receiving its stream
([Troubleshooting](troubleshooting-flight-controller.md#troubleshooting-flight-controller--parameters-or-the-preflight-never-load-in-the-gcs)).

And the wiring trap that eats the sticks: MAVLink put on the UART the ELRS receiver already holds
overruns the CRSF line, and control goes with it
([Troubleshooting](troubleshooting-repeaters.md#troubleshooting-repeaters--adding-the-host-flight-controller-s-telemetry-dropped-the-repeater-s-control)).
One port is one service, and the [Hardware page](http://10.1.1.30/gs/hardware) says which UART each service claims.

<a id="repeater-wifi--control-down-the-chain-hop-by-hop"></a>

#### Control down the chain, hop by hop

"Control" is four different things on this chain, and they break separately.

| What                                          | How it travels                                                                                                                                            | Where it is set     |
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| The pilot's sticks to the relayed drone | handset JR-bay adapter to laptop, CRSF/UDP to WiFi GS, its JR-bay ELRS TX to this repeater's ELRS RX; receiver CRSF directly feeds the repeater's ELRS TX, then the drone's ELRS RX and FC | laptop/GS RC setup and ELRS binds |
| This box's own RC state                       | the same ELRS receiver into the CRSF **Serial port** (parameter `rc_crsf_serial`), with **RC input** pinned to **CRSF (ELRS)** (parameter `rc_ch_source`)                | the Control step    |
| Commands, settings and binds to the drone     | the two-way tunnel inside the radio link                                                                                                                  | the Connection tab, both ends |
| The pilot's sticks to this airframe           | its own ELRS receiver, wired straight to its flight controller                                                                                            | the airframe        |

Read in that order it answers most of the "control does not reach the far drone" cases.

- **RC depends on Sokil upstream of the repeater.** Check the laptop's RC stream, its selected
  vehicle and UDP output, then the WiFi GS's input and serial output to the transmitter in its
  JR bay, then the ELRS bind. Inside the repeater, the receiver's CRSF directly feeds its ELRS
  transmitter while Sokil reads the same channels for its own actions. Switching away from the
  active vehicle stops its feed to the WiFi GS and can cause downstream RC failsafe
  ([Troubleshooting](troubleshooting-repeaters.md#troubleshooting-repeaters--no-sticks-reach-the-repeater)).

- **A camera on the relayed drone reads the sticks out of MAVLink, not out of CRSF.** In this WiFi kit the camera
  takes RC from its flight controller over the shared MAVLink UART, and its RC
  source is MAVLink. A camera on that drone pointed at a CRSF input therefore runs a card with nothing
  on it and reports "no CRSF control input" for as long as it is left that way
  ([Troubleshooting](troubleshooting-rc.md#troubleshooting-rc--the-card-is-running-but-no-crsf-control-input)). That
  finding on a relayed drone is a wrong setting on the drone, not a broken hop.
- **This box must take its RC from the drone's channels.** **RC input** pinned to **CRSF (ELRS)** (parameter `rc_ch_source`) is what moves the receive
  leg's channel together with the drone. A repeater hopping on its own schedule loses the drone on the
  first click and not before, which is why the fault is latent
  ([Troubleshooting](troubleshooting-rc.md#troubleshooting-rc--a-repeater-loses-the-drone-on-the-first-channel-hop)).
- **Commands and telemetry are the tunnel, not the picture.** Video is one way; a camera that plays and
  takes no commands is a transport that does not match at the two ends of that link, or a control
  target that names another device
  ([Troubleshooting](troubleshooting-radio.md#troubleshooting-radio--video-plays-but-the-camera-takes-no-commands-and-sends-no-telemetry)).
  On the station, the RC outputs' **Send to** (parameter `rc_ip`) (an admin row on **Control > RC Wiring**)
  holds the address of the vehicle you picked in the camera switcher; `0.0.0.0` there selects nothing and
  parks every camera that sends its video over Ethernet or ZeroTier
  ([Troubleshooting](troubleshooting-rc.md#troubleshooting-rc--every-camera-is-on-standby-and-nothing-is-active)).

<a id="repeater-wifi--binding-the-transmitter-module-to-this-box"></a>

#### Binding the transmitter module to this box

Two pairings look alike here and only one of them is Sokil's.

- **The ELRS pairing** - the transmitter in the WiFi ground station's JR bay to this box's ELRS receiver, and this box's
  ELRS transmitter to the relayed drone's receiver - is done the ELRS way, on the ELRS side. Sokil
  configures no part of it, so a handset reporting that it is bound says only that the ELRS link came
  up.
- **Sokil still has to be told where those sticks arrive**, and until it is, nothing on this box moves.
  That is: the receiver's CRSF output on a header UART's **RX** pin plus a ground wire (the table in
  [Wiring](repeater-wifi.md#repeater-wifi--wiring) above), that port named as the CRSF **Serial port** (parameter `rc_crsf_serial`), the **Baudrate** (parameter `rc_crsf_baud`) at
  **400000** - the configured repeater ELRS rate, not the 460800 a USB adapter runs at - and **RC input** pinned to
  **CRSF (ELRS)** (parameter `rc_ch_source`).

On **Control > RC Wiring** that reads as a CRSF card whose Input is Serial on that port at 400000. An
ELRS receiver speaks plain CRSF and needs none of the ESP32 adapter a radio's module bay does
([Troubleshooting](troubleshooting-rc.md#troubleshooting-rc--an-elrs-receiver-soldered-into-the-station-is-the-adapter-needed)).
When it is right, the input's rate beside its state on the **RC input** card (parameter `rc_ch_rate`) stops reading 0 and the RC data stream on [Status](http://10.1.1.30/gs/status) comes
alive. A card that starts and hears nothing raises "no CRSF control input" on
[Diagnostics](http://10.1.1.30/gs/diagnostics), which is the honest report of a wire, a baud rate or a receiver that is
not paired after all.

One thing the chain decides for itself: the packet rate. Where **Max radio packet rate (Hz)** (parameter `rc_crsf_max_rate`) is set on the CRSF
card (it is off by default), that Sokil box asks the radio for at most that rate, and a request from a module further
along is limited to it as well, so on a chain of Sokil devices the lowest setting wins.

<a id="repeater-wifi--turning-a-5-8-to-2-4-kit-into-5-8-to-5-8"></a>

#### Turning a 5.8 to 2.4 kit into 5.8 to 5.8

The change is hardware first and configuration second.

1. **Swap the card, and its feed with it.** The 2.4 GHz adapter comes out and a 5 GHz one goes into the
   same socket, with its **own BEC feed** from the battery - a card never comes off the board's rails
   ([Power and the BEC](power-bec.md#power-bec)). Nothing about the flight
   controller, the ELRS pair or the wired leg changes.
2. **Re-run [Setup](http://10.1.1.30/cam/setup).** It reads the bands off the cards themselves - each card's
   **Bands** (parameters `vtx_wifi_bands`, `vrx_wifi_bands`), set with its **Card model**, where `1` is 2.4 GHz, `2` is
   5 GHz and `3` is both - and picks the plan from that,
   so Role and Link ask exactly what they asked before. With one 2.4 card left it says in red to keep
   the other leg on 5 GHz; with two it says the box needs a 5 GHz card on one of its links before it
   can relay anything.
3. **What moves in the write depends on which leg was the 2.4 one.** If the **receive** leg was 2.4,
   the receive leg's channel plan (parameter `rc_act_vrx_channels`) goes from the unrotated 2.4 list to the 5 GHz list rotated by four, and the drone
   copies that when it binds here. If the **transmit** leg was 2.4, this box's own rows do not move at
   all: the transmit leg takes the station's list on bind, so the change is at the station and in a
   re-bind.
4. **Re-bind both legs, station first**, exactly as in
   [The two binds, in order](repeater-wifi.md#repeater-wifi--the-two-binds-in-order). The station's plan reaches the transmit leg only
   through that bind.

What the conversion gives up is the separation the two bands were doing for free. On a mixed kit the
bands themselves held the two cards apart; on a same-band kit the rotation is the only thing that does,
so both ends have to sit on the station's channel switch, and the plan has to stay off the binding
channel `161`, which both legs now inherit from the same eight entries. Diagnostics checks it either
way: it flags two radios that overlap now, and a switch position where they would
([Troubleshooting](troubleshooting-radio.md#troubleshooting-radio--diagnostics-says-the-repeater-s-two-cards-jam-each-other)).

<a id="repeater-wifi--reaching-this-repeater-s-own-pages-on-port-8503"></a>

#### Reaching this repeater's own pages on port 8503

The ground station forwards its own port **8503** across the radio link to this repeater's web server,
so a browser sitting on the station's page can talk to the repeater directly. It is what the remote
**Bind repeater WiFi** button drives, and it is also how this box's own Diagnostics, Hardware and
settings pages are opened without a cable. The address is the station's own address on `8503` - the one
you are already reading the UI at, or a remote radio station's.

Four things have to be true before it opens, in this order:

1. **The station leg is bound and its tunnel is up.** The forward rides that tunnel, so until link B is
   up there is nothing behind the port, and the Bind repeater WiFi button does not appear at all
   ([Troubleshooting](troubleshooting-repeaters.md#troubleshooting-repeaters--the-repeater-binds-to-the-station-but-not-to-the-drone)).
2. **Both legs are on WiFi.** The forward reaches a WiFi repeater through its radio
   tunnel (parameters `vtx_tuna_ip`, `vrx_tuna_ip`), which only a repeater with two configured cards has - which
   is why an analog or uplink repeater is opened at its own address instead.
3. **The page you are on is the station's, served on port 80.** The forward is offered only there, the
   same rule the device selector's own per-device links follow.
4. **The repeater's software is new enough.** Older firmware does not accept the request and shows
   up as unreachable with an update hint inside the dialog rather than as a toast.

The forward itself is a service in the **station's** image, so a station that does not carry it has
nothing listening on 8503 at all. That one is fixed by updating the station, not the repeater.

One lookalike worth ruling out: if the whole interface went stale at the same moment - values frozen, a
reload not helping - the browser's connection budget is exhausted and every control that waits on a
device answering disappears with it. Different fault, same shape
([Troubleshooting](troubleshooting-video.md#troubleshooting-video--the-whole-interface-went-stale-every-value-froze-reloading-does-not-help)).

<a id="repeater-wifi--watching-from-a-laptop-plugged-into-the-repeater"></a>

#### Watching from a laptop plugged into the repeater

A repeater does not deliver to a viewer, it hands what it decoded to its own transmit side. That is
what the receive leg's **Pilot IP** (parameter `vrx_target`) `127.0.0.1` and MAVLink **Port** (parameter `vrx_mavlink_port`)
`14550` in the table above are: the relay seam,
inside this box. So a laptop wired to the repeater is addressed by nothing, and the counters climbing
on [Status](http://10.1.1.30/gs/status) are the receive side working exactly as intended.

Two consequences:

- **Watch the relayed picture at the ground station.** That is where the streams are sent.
- **Pointing the receive destination at the laptop makes a picture appear and stops the relay in the
  same move.** The transmit side then receives nothing and the flow board reads video in, transmitter
  idle ([Troubleshooting](troubleshooting-repeaters.md#troubleshooting-repeaters--video-reaches-the-repeater-and-stops-there)).
  Setup writes the local destination; a hand edit undoes it.

If a second screen really is wanted, add it at the **station**: VRX settings > Receive takes extra
destinations without moving the one the OSD reads. And when a laptop is plugged in for bench work, the
desktop OSD's own settings name the ports it listens on - UDP 5600 for video and 14550 for MAVLink by
default, a second stream being a separate config file with its own ports - and the codec it expects,
H.265 or H.264. A window that stays empty while traffic is on the wire is usually one of those two.

<a id="repeater-wifi--moving-the-control-antenna-off-the-board"></a>

#### Moving the control antenna off the board

The run is short by design, and the antenna rules are worth reading before you fit one. Control is
a different band from video: the radios carrying ELRS or MAVLink in these kits use 2.4 GHz, 915 MHz or 433 MHz, depending on the installed module, and have their own antennas,
usually shipped with the transmitter module, and the air card's
receive antenna is a backup control path and never the primary one. A kinked or damaged pigtail eats
the link budget invisibly, and IPEX-to-SMA adapters on a card wreck the match.
[Choosing antennas](antennas.md#antennas) has all of them.

Sokil uses **pre-built pigtails, RG401 or RG402, and never more than 0.5 m of them**. The run only
exists to move the antenna clear of the board and aim it, not to carry the signal any distance, so
use the cable and connector specifications to account for insertion loss even on a short run.
Keep it short, keep it undamaged, and do not splice one to make a longer one.

<a id="repeater-wifi--two-hops-and-nothing-arriving-what-to-check-in-order"></a>

#### Two hops and nothing arriving: what to check, in order

Work down from the screen, not up from the parameters. Every step below is a page, a card or a data
stream; parameters come in at the end.

1. **The fly view's link path strip.** It draws the chain camera - repeater - station as dots, and the
   red or amber dot is the failing hop; the small count on a dot is that box's open findings. If it
   already names the hop, go there and skip the rest.
2. **[Status](http://10.1.1.30/gs/status) on the station.** Find the worst data stream and follow it to the red wire.
   Slate is not a fault; red with an X is the hop that broke, and the verdict sentence names it.
3. **[Diagnostics](http://10.1.1.30/gs/diagnostics) on the repeater**, through the device selector or its own page on
   8503. The **Repeater chain** group catches what neither end can see by itself: a decoded stream
   handed to a local port nothing listens on, an outgoing stream addressed to this box itself, and a hop
   with only one of its two halves enabled. The **WiFi** group catches the two radios overlapping, now
   or at some switch position.
4. **[Hardware](http://10.1.1.30/gs/hardware) on the repeater.** Both radios present under the names you expect, and
   each serial row showing the service on it with bytes moving. A port that is on and hearing nothing
   goes amber; a port claimed twice is why the sticks stopped.
5. **[WiFi](http://10.1.1.30/gs/wifi) on the repeater.** The two legs on different channels, neither on a binding
   channel, and no end left in binding mode - a box in a bind carries nothing but the bind.
6. **RC before radio.** On the station, the RC data stream; on the repeater, its RC stream and the
   **Host RC** stream beside it. A repeater with no sticks does not hop with the drone, and everything
   flows until the first click.
7. **Only now the drone.** Is it bound to **this box** - its **VTX encryption key** (parameter `vtx_key`) is this repeater's
   **Matching VTX key** (parameter `vrx_key_tx`) (**Encryption keys** fold of **WiFi reception**) - is it on the
   same WiFi transport as this box's receive leg (its **Radio** mode (parameter `vtx_ufec_wifi`) against this
   box's (parameter `vrx_ufec_wifi`)),
   and is it on the receive leg's channel plan? A transport mismatch is invisible in the sweep's own
   reporting and looks exactly like an absent drone
   ([Troubleshooting](troubleshooting-radio.md#troubleshooting-radio--the-sweep-finds-nothing)).
8. **If all of that is green and one picture is still missing**, it is the second stream, which has its
   own owner - see [The second video is this box's own](repeater-wifi.md#repeater-wifi--the-second-video-is-this-box-s-own).

A card that is present, on the right channel and still deaf is the last thing to rule out, and it is in
[First checks after Apply](repeater-wifi.md#repeater-wifi--first-checks-after-apply) above.

<a id="repeater-wifi--related-guides"></a>

### Related guides

- [Starlink repeater](repeater-starlink.md#repeater-starlink) - the same box sending onward over an uplink.
- [Analog repeater](repeater-analog.md#repeater-analog) - the relay with no receiver side at all.
- [Course camera](course-camera.md#course-camera) - the second camera on the wired leg at `10.1.1.40`.
- [Binding](binding.md#binding) - what a bind copies, and what it does not.
- [Channels and switches](channels-switches.md#channels-switches) - the frequency plans and the switches.
- [Flight controller](flight-controller.md#flight-controller) - the settings for this box's own airframe.
- [Power and the BEC](power-bec.md#power-bec) - one BEC per feed.
- [Adaptive Link](adaptive-link.md#adaptive-link) - each hop adapts alone; a congested second hop
  cannot make the drone back off.
- [Repeater RC](repeater-rc.md#repeater-rc) - the second pilot flying this aircraft.
