> **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="wifi-recovery"></a>

# WiFi link recovery

**Summary:** What the camera and the station do by themselves to bring a wedged WiFi link back, which timeouts you own, and the manual recoveries in order when the automation runs out.

**Audience:** field integrators

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

The WiFi link is the one part of a Sokil kit with something physical failing in it: a USB radio
that heats, that can hang its firmware while still reporting itself as up, and two ends that have
to agree on a frequency. Most of what goes wrong there is recovered by the boxes themselves,
usually before anyone notices. This page is what they do on their own, which timeouts are yours,
what it looks like on screen while it runs, and what is left for you when it is not enough.

<a id="wifi-recovery--what-actually-goes-wrong"></a>

### What actually goes wrong

Four failures, and from the pilot's seat three of them look identical - the picture stops.

- **The card passes nothing while still looking alive.** A USB stick that overheats or hangs its
  firmware stays present on the bus, keeps its interface, and goes silent. The driver counts a
  frame when it is *submitted*, not when it reaches the air, so the card can also keep counting
  transmitted frames that nothing ever receives.
- **Only one direction dies.** The RTL8812AU commonly comes back from a USB re-enumeration able to
  transmit but deaf. The mirror case is an injection stall: the card still hears the air and has
  stopped transmitting.
- **The card leaves the USB bus.** An overheating card flaps on and off the bus and finally latches
  fully off. There is then no device left to reset.
- **The two ends lose the channel.** Every click of the channel switch opens a gap of a few seconds
  while the drone retunes and the station follows. Clicking through positions quickly at range is
  how a pair ends up on different frequencies.

Heat and power sit under most repeats of the first three - see
[what repeated recoveries mean](wifi-recovery.md#wifi-recovery--what-repeated-recoveries-mean) at the bottom of this page.

<a id="wifi-recovery--the-automatic-ladder"></a>

### The automatic ladder

Two independent layers run without you. The **card watchdogs** read the interface's own frame
counters on each box. The **end-to-end watchdog** on the drone reads the one thing counters cannot
fake: what the ground station says it is hearing.

<a id="wifi-recovery--the-card-watchdogs"></a>

#### The card watchdogs

Every one of these runs on both ends, with its own row per side - on the camera's **WiFi
transmission** card and on the station's **WiFi reception** card ([where you change it](wifi-recovery.md#wifi-recovery--where-you-change-it)).
A repeater has both, one per leg.

| What is watched                                     | Row                                                                                              | Camera | Station | What runs                                                    |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------ | ------- | ------------------------------------------------------------ |
| Card up and in monitor mode, both directions frozen | **Wedge recovery (s)** (parameters `vtx_wifi_wedge_timeout`, `vrx_wifi_wedge_timeout`)                      | 5 s    | 5 s     | the card is reset, again until traffic returns               |
| Transmitting fine but hearing nothing               | **RX-only wedge recovery (s)** (parameters `vtx_wifi_rx_wedge_timeout`, `vrx_wifi_rx_wedge_timeout`)        | 0, off | 5 s     | the card is reset, once per silent spell                     |
| Hearing the air but no longer transmitting          | **TX-only wedge recovery (s)** (parameters `vtx_wifi_tx_wedge_timeout`, `vrx_wifi_tx_wedge_timeout`)        | 5 s    | 0, off  | the card is reset, again until it transmits                  |
| Escalation delay inside a reset                     | **Driver reload after (s)** (parameters `vtx_wifi_wedge_restart_timeout`, `vrx_wifi_wedge_restart_timeout`) | 8 s    | 8 s     | how long the lighter resets get before the driver is reloaded |
| Every configured card gone from the USB bus         | **USB power-cycle recovery (s)** (parameters `vtx_wifi_usb_cycle_timeout`, `vrx_wifi_usb_cycle_timeout`)    | 10 s   | 10 s    | power cut to all USB ports and restored                      |

**A reset escalates by itself, from a light reset of the card up to a full driver reload**, and the
card's channel and transmit power are restored afterwards, so it comes back on the right channel.

The two asymmetric defaults are a deliberate choice about which risk each side prefers, not a
tuning oversight. The camera ships with the RX-only watchdog **off**: re-plugging a card in flight
to revive its receiver is worse than flying with a half-deaf radio. The station ships with the
TX-only watchdog **off** for the mirror reason - the drone's dead video downlink is the critical
failure, and the drone owns it.

Three things the card watchdogs deliberately will not do:

- **They stand down on a camera that is not meant to be transmitting.** With the links disabled or
  the transports stopped, an idle card on a busy channel is never reset.
- **They skip a card lent to the spectrum sweep.** A sweeping card parks off the link channel and
  its counters legitimately stall on every quiet channel; without the exclusion the ladder would
  start resetting the radio in the middle of a survey.
- **The RX-only one acts only while the other end was heard recently.** A station switched on
  before its drone, one whose drone has been switched off or flown out of range, or one waiting for
  a camera during a bind transmits and hears nothing - exactly what a deaf card looks like. So the
  watchdog arms only if the station heard the camera on the radio shortly before, and never while
  binding; a card that comes back deaf outside that is not reset for you - re-plug it.

<a id="wifi-recovery--the-end-to-end-watchdog-on-the-drone"></a>

#### The end-to-end watchdog, on the drone

The counters cannot see the worst case: the card accepts every frame, counts it, and nothing
reaches the air. The drone therefore checks what the ground station says it is hearing. When the
station is plainly there and still hears nothing for the watchdog's
timeout (parameter `vtx_link_wedge_timeout`) (**45** seconds by default), recovery starts.

It works through progressively stronger resets, stopping as soon as the station hears the drone
again, and Diagnostics names the step it is on (parameter `vtx_link_wedge`) as "recovery step N":

- **0** - healthy, or watching
- **1** - the link software restarted
- **2** - USB reset of the card
- **3** - USB rebind of the card
- **4** - driver reload
- **5** - power cut to every USB port and restored, which also resets every other USB device on
  the box

Two properties worth knowing before you distrust it: **range fade can never trigger it** - a
station that is off or out of range is not "plainly there" - and a deliberate restart of the link
is never mistaken for a wedge. It applies only while UFEC WiFi is the camera's **Radio**
mode (parameter `vtx_ufec_wifi`) (**VTX settings > Connection > Link transport**), and it has no station-side twin.

<a id="wifi-recovery--the-station-drops-to-the-legacy-link-on-its-own"></a>

#### The station drops to the legacy link on its own

A station on UFEC WiFi is deaf to a drone still running the legacy WFB transport. Rather than make
you flip a switch per drone, the station listens for one: **Serve older WFB drones** (parameter `vrx_wfb_fallback`)
(on by default) under **UFEC WiFi** on
[VRX settings](http://10.1.1.30/gs/vrx-settings) > **Connection**. Only a drone carrying **this** station's pairing
key can trigger it, so a stranger's radio cannot pull your station off its transport, and your
preferred transport setting is never rewritten. It returns to UFEC WiFi about a minute after that
drone stops transmitting. Which one is carrying the link right now (parameter `vrx_radio_transport`) shows on the
[Status](http://10.1.1.30/gs/status) page: the video lane's **UFEC WiFi** card reads **Legacy WFB drone connected** while
the legacy link carries it.

<a id="wifi-recovery--the-camera-makes-itself-biddable-again"></a>

#### The camera makes itself biddable again

The last automatic recovery is about the pairing rather than the radio. A camera that cannot be
reached can automatically re-enter binding under the conditions below:

- **Deaf since boot.** A camera that has heard neither a handset nor a ground station since it
  powered on, and has not been armed, can enter temporary binding by itself after about a minute.
  Once it has heard either, or been armed, it will not do this for the rest of that boot, and a
  ground station or a repeater never does it. This entry **keeps** the stored key and reverts on
  restart.
- **A WiFi card that never appeared.** A camera whose configured WiFi card (parameter `vtx_wifi_wlan`)
  has never come up this boot unbinds about half a minute after power-on if WiFi is its only
  transport (its VTX type (parameter `vtx_type`) names nothing else), or if it has not heard any ground
  station since power-on. This one is a real unbind - the key is deleted. A camera with a working
  Ethernet or ZeroTier leg that has heard its station keeps its bind. Firmware before 2026-09-07
  did not make that exception, which is why a camera with a leftover card name and a working
  network leg used to drop every network bind about half a minute after it landed.

ZeroTier has its own automatic recovery, unrelated to any of this - one switch,
**Auto-recovery** (parameter `zt_wedge_enabled`) (under **Stuck-link auto-recovery** on the **ZeroTier** card of
the VTX or VRX settings Connection tab, expert only, on by default), covering four faults. The stuck link after a network
change is reported (parameters `zt_wedge_state`, `zt_wedge_restarts`) on the **Auto-recovery** row of the Status page's
**ZeroTier** card. The lost address is reported (parameters `zt_addr_state`, `zt_addr_restarts`) on the
**Address recovery** row beside it: ZeroTier
can keep reporting an address as assigned after it has left the network interface - which a laptop
station waking from suspend does routinely - and then nothing reaches the other end although every
other reading stays green. The offline case is reported (parameters `zt_offline_state`, `zt_offline_restarts`) on the
**Offline recovery** row: ZeroTier can stay OFFLINE for minutes while the internet works - for example on a
camera whose wired port was given a different address by the router after ZeroTier had started - and the
device then restarts it by itself, at once if its own address changed, otherwise after a short wait, and only while
the other end is not answering. All three rows are silent until they have something to say.

A stuck-link restart drops every ZeroTier link of the device for a few seconds. It also happens when the other end is simply
switched off, asleep or off ZeroTier, because from this side that looks the same as a stuck link.

The fourth fault is a link left on a ZeroTier relay server - working, but slower and lossier - long
after a direct path is possible again (the overlay's `ZEROTIER RELAYED`). Once that has lasted a
while, the station restarts its ZeroTier, and a camera does the same a little later as a backup;
the link drops for about 20-30 seconds and usually comes back direct. It waits until the flight controller
reports the aircraft disarmed unless **Relay restart while armed** (parameter `zt_relay_restart_armed`) is on, in the same
fold. The pilot can also restart the station's ZeroTier from the fly view at any time
([the overlay says ZEROTIER RELAYED](troubleshooting-network.md#troubleshooting-network--the-overlay-says-zerotier-relayed)).

<a id="wifi-recovery--where-you-change-it"></a>

### Where you change it

The five card rows live in one fold, **Card recovery watchdogs** ("Auto-reset a card that has gone
silent or dropped off USB"), inside the WiFi card of each side. Admin.

| Box     | Where                                                                                       |
| ------- | ------------------------------------------------------------------------------------------- |
| Camera  | [VTX settings](http://10.1.1.30/cam/vtx-settings) > **Connection** > **WiFi transmission**                   |
| Station | [VRX settings](http://10.1.1.30/gs/vrx-settings) > **Connection** > **WiFi reception**                       |

The rows are **Wedge recovery (s)**, **Driver reload after (s)**, **RX-only wedge recovery (s)**,
**TX-only wedge recovery (s)** and **USB power-cycle recovery (s)**. For the recovery watchdog
timeouts, **0 = off**. **Driver reload after** is an additional escalation delay: setting it
to 0 removes that extra wait; it does not disable the reload.

What is worth changing, and what is not:

- **Leave the defaults alone unless you have a reason.** They are bench-set thresholds, and the two
  zeroes are the risk decision above rather than a gap to fill in.
- **Turn one off to stop it acting**, never to make it quieter. A watchdog set to 0 stops detecting
  entirely; there is no "warn but do not reset" setting.
- **Lengthen a timeout when short legitimate pauses are being read as a wedge.** Shortening one
  makes the ladder fire sooner on a card that briefly stalls, which on the drone means an
  in-flight re-enumeration.
- **The USB power cycle bounces every other USB device on the box**, so on a camera that also
  carries a USB camera or a serial adapter, expect those to re-enumerate with it. It waits longer
  on each retry and gives up after a few tries per outage.
- **The end-to-end watchdog's timeout has no row.** If it must change, an expert
  changes it (parameter `vtx_link_wedge_timeout`) from the camera's [parameters editor](http://10.1.1.30/cam/params). A
  value too short to be safe is raised to a safe minimum regardless of what you write.

The **Driver reload after** row is shown whenever at least one of the three counter watchdogs
is enabled. Its value sets the additional escalation delay for all three, including a setup
with only the RX-only or TX-only watchdog enabled.

<a id="wifi-recovery--the-recovery-channel"></a>

### The recovery channel

Everything above brings a card back on the box it is fitted to. It does nothing for the other
failure - two ends on different frequencies - and that one has its own mechanism.

**The first position of the frequency plan is the recovery channel**, and it must be the same at
both ends. Both fall back to it when they lose each other, which is why the station's Channels card
will not let you edit it and the best-channel search will not overwrite it. It is the one frequency
your whole fleet still shares after a run.

The plan lives on the station - the **Position** rows (parameter `rc_act_vrx_channels`) of **VRX WiFi channels**, under
[VRX settings](http://10.1.1.30/gs/vrx-settings) > **Channels** - and a bind copies it and the channel switch onto
the camera, whose own Channels card is read-only. The default plan setup writes is
`40|52|64|100|120|140|157|177` on 5 GHz. When the two ends de-sync in the air, click the
channel switch back to **position one** and wait. The
[channels and switches guide](channels-switches.md#channels-switches) has the plans, the numbering trap and
the repeater's rotation.

<a id="wifi-recovery--what-you-see-while-it-runs"></a>

### What you see while it runs

Nothing about a recovery is silent, and the three surfaces say different things on purpose.

**[Diagnostics](http://10.1.1.30/gs/diagnostics)**, on the device that owns the fault:

| Finding                 | What it means                                                                        |
| ----------------------- | ------------------------------------------------------------------------------------ |
| `link_wedge`            | the end-to-end watchdog is running, and it names the step it is on                    |
| `wifi_card_flapping`    | the card has disappeared and come back, or was restarted - counted since start and over the last flight, or, when it keeps dropping off, how many times it came up in a short time |
| `wifi_card_absent_vtx` / `wifi_card_absent_vrx` | a configured card that has not appeared since power-on         |
| `ufec_card_missing`     | UFEC WiFi is on and no WiFi card was found at all                                     |

**[Status](http://10.1.1.30/gs/status)** folds it into the data stream the card carries. A card that is recovering,
or that has ever recovered, turns an otherwise clean stream **amber** and the verdict line names the
card - the link is still working, but this card is wedged and its watchdog is recovering it, or,
after the fact, it has recovered and here is the count. It is a warning and never a fault, because
the stream is still passing traffic; that is the whole point of an early warning. Tap the stream to
unfold the card's own row: a health dot, the interface name, a persistent amber recovery counter,
and while an episode is running the watchdog kind and the rung it is on, in words - TX-only wedge,
USB reset. Under the cards, an RTL8812EU card adds **Driver resets**: how many times the radio
driver reset the card by itself. None of the watchdogs above sees those, and in flight one shows
only as a short break in the video. The number turns amber for a minute after it rises.

Both surfaces decode the same per-card watchdog report (parameters `vtx_wifi_stats`, `vrx_wifi_stats`), one entry
per card.

**The fly view** speaks in outcomes rather than mechanism. Its link strip and no-video banner say
whether the link into the station is down, jammed, or up with the video stopped, and which hop broke
it. One rule matters while a recovery is running: **frames on the screen outrank any flag.** A hop
that reports a fault while video is still arriving through it is drawn amber with "the picture on
the screen outranks the report", not as a break - so do not go chasing a warning that the picture
disagrees with.

<a id="wifi-recovery--when-automation-is-not-enough"></a>

### When automation is not enough

In order, least invasive first. Do not step past one that works.

1. **Click the channel switch back to position one and wait.** If the symptom is that the picture
   died on a switch click, this is the whole fix.
2. **Let the ladder finish.** A recovery in progress is visible on Diagnostics and Status, and
   interrupting it starts it over. In particular, **do not USB-reset a card by hand** while the box
   is working through its own ladder.
3. **Restart the WiFi drivers.** The device controls at the top of any settings page carry
   **Restart a service** > **WiFi** (parameter `wifi_restart`) (admin, and only where a WiFi card is configured): it reloads
   the kernel modules, which is the ladder's last rung on demand. Video, control and any WiFi
   connection to that device drop for a few seconds and come back on their own. No setting
   changes.
4. **Power-cycle the box.** The one recovery the software cannot do for a card that has latched off
   the bus and refused the USB power cycle.
5. **Bind again.** A bind re-applies the key, channel, width and whole channel plan. Put the
   camera in binding mode and press **Bind WiFi** on the station. **Manual entry deletes the
   stored key**: this includes the Unbind control and the emergency handset sequence. Automatic
   temporary entry through magic bind or deaf-unbind preserves it until a new bind completes.
   Binding moves the camera to the binding channel at 20 MHz; the station's sweep also leaves
   its working channel temporarily, interrupting any live link on that card. Choose the
   applicable recovery in [Binding](binding.md#binding).
6. **The emergency radio unbind**, when the camera's UI cannot be reached but the camera still receives RC from the FC. It only works in
   the **first 2 minutes** after the camera powers on, before the flight controller has been armed: power the drone with the radio already on,
   wait for the camera to boot, then hold raw channel 3 or 4 at maximum and toggle the arm
   switch on channel 5 up and down three times within 20 seconds. Throttle is normally on
   channel 3 in both Betaflight and ArduPilot; check your handset's actual channel mapping.
   The throttle hold is the safety lock that keeps a stray flick from unbinding a camera in flight.
   **Take the propellers off first, every time**: full throttle plus the arm switch is exactly the
   input that arms a flight controller whose throttle-high check is off, and drones have armed at
   full throttle on the ground doing this. Prove the FC refuses before you ever run it -
   [Arming safety](arming-safety.md#arming-safety) says how, per firmware.
   Then bind. The same steps are printed on the WiFi card itself and in the failed state of the
   **Bind WiFi** dialog.

One automatic step you never have to trigger: binding a drone resets the station's legacy-WFB
fallback (parameter `vrx_wfb_fallback_reset`) for you, because the bind may have changed the drone's transport
and the station must stop waiting on the old link.

<a id="wifi-recovery--what-repeated-recoveries-mean"></a>

### What repeated recoveries mean

A single recovery is the system working. A count that keeps climbing is a hardware report, and
it is the early warning you get before a card dies for good - the cumulative counter never falls
back on its own, which is why the Status page keeps showing it after the episode ends.

**Driver resets** on an RTL8812EU card are counted apart: there the driver itself brought the card
back, without any rung of the ladder, and the camera's or station's log names the cause of each one.

- **Heat first.** An overheating stick is what wedges, then flaps, then latches off the bus. Give it
  airflow. A card that latches again within the same outage is genuinely hot and the power-cycle
  watchdog gives it a longer cool-down for exactly that reason.
- **Power second.** Feed a card from its own BEC, never from a board's USB rail or a flight
  controller's 5V output; a Realtek card pulls up to two amps in bursts. The rules and the BEC
  settings are in [power and the BEC](power-bec.md#power-bec).
- **Then the wiring.** Cable, connector and the USB socket, in that order - `wifi_card_flapping`
  is usually one of those.
- **Then the antennas.** A transmit output with nothing on it damages the card, two outputs joined
  into one antenna ends it, and a kinked pigtail eats the link budget invisibly. The rules that
  burn cards are in [choosing antennas](antennas.md#antennas).
- **A card that never comes up at power-on is not a wedge at all.** Nothing enumerates, no interface
  appears, and the ladder has nothing to act on - it only ever touches a card that was alive this
  session. That is a failed card, its USB path or its feed, and a swap is the fix.

A batch of units failing the same way is a statement about the cards or their feed, not about any
one aircraft.

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

### Related guides

- [Troubleshooting](troubleshooting.md#troubleshooting) - the symptom-to-fix list, including every block this
  page expands on.
- [RC channel plans and switches](channels-switches.md#channels-switches) - the plan, the recovery channel,
  and the repeater's rotation.
- [RC switches in flight](rc-in-flight.md#rc-in-flight) - what a channel-switch de-sync looks like from
  the pilot's seat.
- [Binding](binding.md#binding) - what a bind copies, what binding mode costs, and getting a
  camera back.
- [Choosing antennas](antennas.md#antennas) - the rules that burn cards.
- [Power and the BEC](power-bec.md#power-bec) - which loads need separate power and which may share a BEC.
- [Status and Diagnostics](status-and-diagnostics.md#status-and-diagnostics) - reading the data streams and the
  findings.
- [Remote access and debugging](remote-access-debugging.md#remote-access-debugging) - the shell side, and what not
  to do by hand while a recovery is running.
