> **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="setup-wizard"></a>

# How setup works

**Summary:** One device per run - the plan starts from this board's own defaults, and setup settings are applied after you accept the diff.

**Audience:** field integrators

Open in the UI: http://10.1.1.30/help/guides/setup-wizard

Setup configures **one** device end to end: [the ground station](http://10.1.1.30/gs/setup) in front of you, or
[the camera](http://10.1.1.30/cam/setup) it has selected. It starts from the defaults that board resolves for itself,
lays your answers over them, and shows the planned settings as a diff before you apply them.

![Board defaults plus your answers become a plan, compared with the device, applied as a diff](../img/setup-wizard.svg)

Diagram: Board defaults plus your answers become a plan, compared with the device, applied as a diff - img/setup-wizard.svg (vector: img/setup-wizard.svg)

<a id="setup-wizard--one-device-one-run"></a>

### One device, one run

A kit is **two runs**, joined by a bind: the camera is one, the ground station the other, and
neither configures the far end.

A run starts from the device's own answer to "what would this board do with nothing configured at
all", asked for the role you pick, and keeps two things those defaults cannot know: **board facts**
(serial ports, adapter names, sensor data) and **identity** (name, serial, activation, link keys).
It needs **admin mode**: it writes the whole configuration at once, and most of that is only visible
there.

**Set up the ground station first, then the camera, then bind.** That is the order that works: a camera run can only end bound if the
ground station already holds a link key to hand it, so a camera run against a station that has no
key lands on the same unbound ending as skipping the bind. Station first is the order that finishes
in one pass.

<a id="setup-wizard--before-you-open-it"></a>

### Before you open it

1. **Both ends on the same release.** The plan uses the target device's resolved defaults for its
   board and selected role. Setup requires the UI and that device to be on the same release and
   refuses a known mismatch in either direction. It names which side is behind and offers
   to update that side.
2. **Save what the device holds now** - **Download current parameters**, on the Start page. Setup
   does not need it, but a copy is the fastest way back.
3. A device that has **never been configured** opens setup by itself, with the rest of its menu
   hidden, and offers **Load a saved configuration**: a `.conf` from a sister device, which beats
   the full setup on the tenth identical airframe. The admin gate lifts on such a box - it has no
   configuration to protect and no other page to offer.

<a id="setup-wizard--the-steps"></a>

### The steps

**Start** - board, sensor, build, firmware, activation state, the version check and the **Device
name**. That field starts on the name the box already has: edit it to rename, clear it to leave the
name alone.

On an unconfigured device, **Load parameters from a file** lets you choose a `.conf` file, review its changes - the **X** on a row leaves that one out, and the device keeps its value - and apply them. This skips the configuration steps. Setup then checks the imported configuration's activation requirements. If all required licenses are active, it opens Status; otherwise, complete activation and press **Finish setup**. If the check fails, retry the check without importing the file again.

**Role** - Camera, Ground station or Repeater. Each role shows its activation requirements and
whether they are met. You can select a role that is not activated. The answer decides which
defaults the plan starts from. The pilot's laptop (x86 or Mac) is offered _Ground station_ only.

**Activation** - shown immediately after Role when the selected role needs activation.
Complete activation here before continuing. Camera requires VTX, Ground station requires VRX,
and Repeater requires both. On the pilot's laptop (x86 or Mac) this step comes after **Link**
instead, and a ground station _Through a WiFi radio head_ needs no activation - it receives nothing
itself. Activation is saved immediately and remains if you leave setup;
your other setup choices stay in the wizard until Review.

**Board** - only on a Sigmastar IPC camera, where several boards report the same chip. A camera
reporting `ssc338q` is offered all six: MC800S-V3, RunCam WiFiLink 2, EMAX Wyvern Link, MC-L12B,
MINIIPC and SkyPulse IP - a release older than 8 September 2026 reports `ssc338q` for the SSC30KQ boards too, so on
that reading the chip is not settled either. A camera reporting `ssc30kq` is offered the three SSC30KQ
boards. Nothing on the wire tells the boards apart, so setup asks, and it does not preselect the
shipped default. The answer is kept in this browser for this camera - the Hardware
step, the [Hardware page](http://10.1.1.30/cam/hardware) and the port picker all read it - and on a Wyvern it moves
the flight-controller port to `/dev/ttyS3`, the `TX RX` socket EMAX wires the FC to. On an MC-L12B,
a MINIIPC or a SkyPulse IP the pick is also what caps the picture: those boards stop at 2560x1920 and have no 4K
rung, and on a camera reporting `ssc338q` the pick is the only thing that says so. Every other
board has one drawing and skips the step.

**Link** - what is plugged in. A camera has five answers: WiFi radio, Ethernet, Starlink (a ZeroTier
uplink), LTE (the same ZeroTier link carried by a cellular modem) and _to another Sokil device_, the course camera. LTE
differs from Starlink only in how gently the camera spreads a keyframe over the link, and it is tuned on a simulated
cellular link, not on a real network yet. A ground station has the first three, and
the pilot-station-versus-radio-head split is derived from the detected **Board** (parameter `dev_board`)
(shown on the **Start** page) rather than asked. A repeater
says which kind it is - it relays a Sokil drone, or digitizes an analog feed - where it sends onward,
and whether a course camera is wired to it. Its input is stated rather than offered: one that
relays a Sokil drone hears it on its WiFi radio, and the analog one has no receiving side at all -
the capture card is its input.

For a pilot laptop with 13th-generation Intel graphics, turn on **Compatibility** on the camera's
**Link** step. It is off by default, is available with every camera link choice, and does not
change your picture-quality choice. Where the camera supports it, setup selects one slice per
frame. On WiFi and ZeroTier (Starlink or LTE), it also selects **Normal** for both video FEC
streams. This gives up early video delivery and span protection on those links (a ZeroTier ladder otherwise writes the 166 ms **On loss** span, except _High FPS_, and an Ethernet ladder writes it on every rung). Ethernet keeps
its passthrough video mode, and a course camera keeps its peer transport. These settings are
applied to the camera, not to the laptop.

**A box on the WiFi radio** gets one more: what this radio kit is for. One channel width carries the
whole link, and the four answers are four widths - _Standard_ (20 MHz, what every kit flying today
runs), _Extended range_ (10 MHz), _Long range_ (5 MHz) and _Close-in quality_ (40 MHz). A narrower
channel reaches further and carries less: 10 MHz is about 40 % further at the bottom of the preset
ladder and half the bitrate at the top, 5 MHz about twice the distance and a quarter of the bitrate,
so its picture is poor by design even close in. 40 MHz is the trade the other way round - twice the
bitrate for about a quarter less distance, and twice as much of the band - except on a camera with an
RTL8812EU card, which breaks the picture at 40 and 80 MHz: setup shows the answer unavailable there,
with the reason, and plans _Standard_. The preset ladder setup
writes follows the width, so no rung asks for more than the link carries: at 10 and 5 MHz each answer has a ladder
written for that width, with no 4K, pictures that top out at 2560x1440 at 30 (10 MHz) or 1920x1080 at 30 (5 MHz), and a bottom rung of
256 kbps on most answers, because each resolution and frame rate needs a minimum bitrate. Every answer is offered at every width. A width is offered only where this box reports its card
can fly it - 5 and 10 MHz need an RTL8812EU at both ends - and the rest are shown with the reason.
It is the **Channel width** (parameter `vtx_wifi_bw`) row of the WiFi card afterwards, and a bind copies the
station's width onto every camera bound to it. A camera that takes the station's bind in the same run
flies the station's width, and its preset ladder is fitted to that width instead of to the answer.

An **Ethernet or Starlink camera** gets one more question here: how the flight controller is given
the sticks. **_As MAVLink, on the telemetry port_ is the one to pick.** It is one wire, and it needs
a flight controller that accepts RC over MAVLink - ArduPilot, INAV, Betaflight 2025.12+ with its
MAVLink Serial RX receiver and MAVLink telemetry enabled on the same UART, or
[Sokil's Betaflight build](fc-firmware.md#fc-firmware--betaflight), which is the way to get it on a
Betaflight airframe and brings all sixteen RC channels and the link-statistics corner with it.

_As CRSF, on its own port_ is the fallback: two wires, with setup writing real CRSF at 420000 into
the flight controller's Serial RX pad on the port your harness is already on and moving telemetry to
a second one, which it names for your board. Pick it for stock Betaflight versions before 2025.12 or
builds without the MAVLink receiver. See [Flight controller](flight-controller.md#flight-controller).

An **Ethernet camera or Ethernet ground station** gets one more: _several cameras on one switch_.
Every camera ships on the same fixed 10.1.1.40, so two of them on one switch are two boxes on one
address and neither answers. Say yes on the cameras and setup leaves each of them with no fixed
address at all - DHCP on, 10.1.1.40 cleared - and yes on the station and it hands the addresses out
on that wire, from 10.1.1.50 on a laptop station or 10.1.1.30 on a ground-station box. Both ends are
separate runs, so answer it the same way in each; each camera then appears in discovery on the
address it was given, and pairing is what tells it where its station is. A station that cannot serve
DHCP - a Windows or Mac station, or a Linux one without the dnsmasq package - says so here and the answer stays
no. See [Course camera](course-camera.md#course-camera).

**Link settings** - the real settings cards for what you picked, pre-filled (skipped on the pilot's
laptop _Through a WiFi radio head_, which has no link of its own to set). A repeater gets input
and output in two labeled columns plus its wired leg, which the plan moves to 10.1.1.30. If you are
reaching that box at another address, it **moves at Apply and this page loses it**: change
the address on the Link settings Ethernet card if your network is numbered differently. Review cannot edit a row; its **X** only keeps a value as it is.
Every box that captures video also gets the **Adaptive Link** card here, so what the plan decided
about the loop can be changed before you apply: setup switches it **on** on a ZeroTier camera and on
the analog repeater, where there is no radio to retune instead, and leaves a WiFi camera with
whatever that device already holds. See [Adaptive Link](adaptive-link.md#adaptive-link).

**Camera** - only where the plan produces video; a ground station skips this step. The total
number of steps also depends on whether activation or board selection is needed. Sokil Eye is
the only source offered (Majestic and both command streamers are off on every path), then the preset
ladder. **Every box that captures video is asked what that ladder should run**, in a question right
above it, and the answers follow the link.

On the **WiFi radio** and on a **ZeroTier uplink** there are five. _Normal_ is the default - on WiFi six rungs
at 1920x1080, at 60 fps from 1024 kbps up (on current SigmaStar firmware this is also the stock 20 MHz ladder before setup).
_Resilient_ puts the whole ladder on 30 fps and, on WiFi, adds a 256 kbps bottom rung at 720p, for a link that has to
hold a picture at all rather than a good one. _High_ and _Very high_ climb to 2560x1440 on their middle rungs and, except on a 5 or 10 MHz radio link, to
3840x2160 on their top ones (4K needs a fast Mode for its keyframes), _Very high_ spending more bitrate on the way up. _High FPS_ stays at
1920x1080 and asks the sensor for 90 fps (its 512 kbps rung is 720p at 60, as 90 fps needs more bitrate; at 5 and 10 MHz it is 60 fps). What each answer writes per rung is on the kit page:
[WiFi camera on an IPC board](camera-wifi-ssc338q.md#camera-wifi-ssc338q) for the radio, where a rung carries
a bitrate, a modulation and an FEC ratio and every answer raises its upper rungs' modulation above MCS 0 (every radio
rung also gets how long a lost packet may wait - none on _High FPS_ at 20 and 40 MHz, 66 ms on the rest, see
[Range, bitrate and error correction](range-and-bitrate.md#range-and-bitrate--on-loss-how-long-a-lost-packet-may-wait)), and
[Starlink / ZeroTier camera](camera-starlink-zerotier.md#camera-starlink-zerotier) for an uplink, where there is no
modulation and the FEC is lighter on every rung and every answer but _High FPS_ also writes the 166 ms **On loss** span. The frames are the sensor's to deliver: an IMX335
has no 4K and a board with a video ceiling is held under it. These per-rung frames belong to an IPC
camera on its own sensor. **Any other board** - a Raspberry Pi, a Radxa, an Orange Pi, a Luckfox -
gets one frame on all six presets and a ladder that changes only the bitrate, because the camera
plugged into it may not offer another size: the Cameras step lists the common ones by name (a
640x512 thermal camera, analog PAL or NTSC, HDMI, USB capture cards and cameras, or _Custom_ with a
typed resolution and frame rate) and sets the capture for the one picked. _High FPS_ is shown
disabled there, and when the frame needs more than the lowest rungs carry the step says from which
bitrate it holds. Every frame
of every answer was checked streaming on the bench IMX415; the delivered rate depends on the sensor and lighting.
A **network camera** - an RTSP source instead of
this box's own sensor - gets no frames on its rungs at all, because the frames are the far camera's:
those rungs carry bitrate, modulation and FEC only. Setup uses an untouched relay on Raspberry Pi, Luckfox and IPC boards; on a Radxa or an Orange Pi it re-encodes the stream
by default and offers the untouched relay as a choice.

On a **WiFi radio** the ladder answer also decides _how long a keyframe may take on the radio_, with no question of its own:
_Balanced_ for _Resilient_ and _Normal_, _Fast_ for _High FPS_, _Sharp_ for _High_ and _Very high_. It is written only where the
camera's encoder honors the budget (SigmaStar, x264, x265 and the V4L2 H.264 encoder); any other encoder, such as a Luckfox or a Radxa, gets _Balanced_, the camera's own default.
An expert can change it afterwards on the camera's video settings (the Codec tab of each stream; an admin does not see the row). _Fast (Low latency)_ is 50 ms: the lowest delay, a keyframe
holds the video up for about 13-28 ms, but on a still, detailed scene roughly a third of keyframes blink soft for a moment. _Balanced_ (125 ms) cuts the
blinks to roughly a quarter or fewer, for a hold-up of about 45-70 ms. _Sharp_ (200 ms) blinks on under one keyframe in ten, for a hold-up of about
65-125 ms. A moving scene looks the same on all three. The row is **Keyframe budget** (parameter `vtx_eye_iframe_stall_ms`) on each stream. Ethernet and ZeroTier
get _Unlimited_; the course camera keeps _Balanced_, which is also what a camera setup never configured has.

**Back to a ladder later, without running setup again**: the camera's Presets tab (VTX Settings) has, beside
**Set from camera**, one button per answer setup offers on the camera's link - on WiFi at the link's current width
(5, 10, 20 or 40 MHz), on ZeroTier, on Ethernet. On WiFi or ZeroTier an IPC camera's button fills all six presets
exactly as setup would - bitrate, Mode, Protection, **On loss** and picture; on any other board each preset keeps
its resolution and frame rate. On Ethernet a button changes only each preset's bitrate, on every camera. On WiFi,
where the encoder honors it, the keyframe budget follows the answer as above. Nothing is written until **Save**.
The button of the ladder the camera already holds is shown selected,
and none is once a preset has been edited by hand.

An **Ethernet camera** is asked a different question in the same place, because a wired ladder holds
one bitrate and steps resolution instead: _how much video the wire should carry_. That bitrate is the
answer - _High_ is 8 Mbps on every preset and the default, enough for a link that shares the wire or
a recorder that cannot keep up with more; _Very high_ is 16 Mbps; _Ultra_ is 32 Mbps, what every
wired kit ran before this release and the best picture a fiber carries; _Stepped_ climbs 8, 16 and
32 Mbps in pairs with the resolution rungs, so a preset step changes the frame and the bitrate
together. See
[Ethernet camera over optical fiber](camera-ethernet-fiber.md#camera-ethernet-fiber). It never asks where the
video goes: the plan writes the **VTX IP** (parameter `vtx_ip`) itself.

**Three ladders, and how to tell them apart.** Each link's ladder carries its own parity and its
own keyframe budget, and both show in the diff on Review. A **WiFi** rung is a row of the radio's
link table - bitrate, modulation and an FEC ratio, from `2:10` at 512 kbps on _Normal_ to `5:7`
at its 3840 kbps MCS 2 top - and a supporting encoder keeps its keyframe inside that airtime budget
(**Keyframe budget** (parameter `vtx_eye_iframe_stall_ms`) 125 ms on _Resilient_ and _Normal_, 50 ms on _High FPS_, 200 ms on _High_ and _Very high_, **I-frame QP delta** (parameter `vtx_eye_iframe_qp_delta`)
-2 on a SigmaStar camera, -8 on any other) so the radio can carry it. A
**wired** rung has no modulation, `10:2` on every rung and the tunnel in passthrough
(the UFEC video **Mode** (parameter `vtx_ufec_mode`) 4): the fiber carries the bitrate itself - 32 Mbps on the _Ultra_ rung - and the
ratio, and the 166 ms **On loss** span every wired rung also carries, only matter on the day parity is turned back on, when the ratio adds a fifth. A **ZeroTier** rung
has no modulation either, `8:4` on every rung - half as much again as the bitrate on the uplink, so
the top of _Normal_ asks it for about 3840 kbps and the top of _Very high_ for about 5376 - and Adaptive Link
on. On both of those the keyframe budget is off (_Unlimited_, `0`), because a wire or an uplink absorbs a burst a
radio cannot: the wired rung takes no detail bias (`0`), the uplink a sharper keyframe (`-4`) that the
IP leg spreads over a few frames (**Keyframe pacing** (parameter `vtx_ufec_ip_pace`): off on the wire, `2` times
the bitrate on Starlink, `1.5` on LTE). Setup writes the rung's parity
into **Video FEC** (parameter `vtx_ufec_fec`) / **Second video FEC** (parameter `vtx_ufec2_fec`) itself. Both MAVLink streams are written on every link, at both ends: `4:2` in
low-latency mode over WiFi and ZeroTier, passthrough on a wire. The
[range and bitrate](range-and-bitrate.md#range-and-bitrate) guide has what each WiFi rung trades; the two
kit pages have the wired and the uplink arithmetic. Every rung of every answer was measured
streaming on the bench IMX415.

**Control** - how the sticks reach the aircraft and what else rides the serial links, composed per
box rather than per role. The pilot's station says what each handset is plugged in with - a **CRSF
adapter (ESP32)** on its serial port, the radio itself as a **USB joystick**, or a **MAVLink
radio** that hands the sticks over as MAVLink with no adapter at all, asked once for the
pilot's handset and once for the repeater pilot's, which has the first two and **None** - and then picks the
port or the handset ([Laptop pilot station](gs-laptop.md#gs-laptop) has what each answer writes,
[a radio that speaks MAVLink](mavlink-radio.md#mavlink-radio) the third one end to end - that third
answer is in testing and may not be offered on every station yet; a station that already has the
input on always offers it to an admin). The radio
head picks the ports its transmitter modules are on, and is asked **How the sticks arrive** as
well - from the pilot's station as CRSF, or from a MAVLink radio it reads over the network itself.
An IP drone and a Starlink repeater's host flight controller get the CRSF card. Cards here carry **no enable switch**: the plan already decided this box
needs them.

**Switches** - which handset channel drives what. It follows Control because a switch ties a chain
together: a repeater's WiFi channel switch must be on the **same** handset channel as the station, or
it hops on its own schedule and loses the drone. The plan only keeps a switch this box can use: the
WiFi power and channel switches are cleared on a configuration that is not on the WiFi radio, the
camera switches (preset, zoom, gimbal and the rest) on a box that produces no video of its own, and
the other end's whole map on a box that is only one end - so a pure ground station carries no camera
switches and a camera no station ones.

**Hardware** - what the device reports is plugged into it, drawn with the plan's port assignments:
the board picture, every serial port with the service the plan gives it, the USB devices and MIPI
sensors as observed, Power, and - where the plan forwards MAVLink - the flight-controller card. Six checks ride it - two services on one
port and two streamers on one camera (both red, and both block Next), a port the plan names that the
box is not reporting, a radio that is not there, a service armed with no port, and a wired peer the
plan implies on a device that reports no wired interface at all. Each finding jumps to the step that
owns it, because you fix one by changing an answer.

Board picture: Raspberry Pi 5. The tables below carry the same pins, sockets and power inputs.

#### Raspberry Pi 5 (BCM2712 + RP1)

- Reported by the device as dev_board: rpi5
- Board size: 85 x 56 mm

##### Connectors and sockets

| Connector | Kind | Edge | USB port path | Note |
| --- | --- | --- | --- | --- |
| BCM2712 | chip |  |  |  |
| RP1 | chip |  |  |  |
| RAM | chip |  |  |  |
| FAN | fan |  |  |  |
| uart_dbg | pads |  |  |  |
| USB 2.0 upper | usb-a | right | 1-2 |  |
| USB 2.0 lower | usb-a | right | 3-2 |  |
| USB 3.0 upper | usb-a | right | 3-1, 4-1 |  |
| USB 3.0 lower | usb-a | right | 1-1, 2-1 |  |
| Ethernet | eth | right |  |  |
| PoE | other |  |  |  |
| USB-C 5V | usb-c | bottom |  |  |
| HDMI0 | hdmi | bottom |  |  |
| HDMI1 | hdmi | bottom |  |  |
| CAM/DISP 0 | csi | bottom |  |  |
| CAM/DISP 1 | csi | bottom |  |  |
| PWR | button |  |  |  |
| RTC | other | left |  |  |
| PCIe | pcie | left |  |  |
| microSD | sd | left |  | on the back of the board |

##### Header pins: GPIO

| Pin | Label | Type | Function here |
| --- | --- | --- | --- |
| 1 | 3V3 | 3v3 |  |
| 2 | 5V | 5v | Header 5V |
| 3 | GPIO2 | i2c | UART1 CTS |
| 4 | 5V | 5v |  |
| 5 | GPIO3 | i2c | UART1 RTS |
| 6 | GND | gnd | UART0 (pins 8/10) Ground; Header 5V Ground |
| 7 | GPIO4 | uart | UART2 TX |
| 8 | GPIO14 | uart | UART0 (pins 8/10) TX; UART4 CTS |
| 9 | GND | gnd | UART0 (pins 8/10) Ground; UART2 Ground |
| 10 | GPIO15 | uart | UART0 (pins 8/10) RX; UART4 RTS |
| 11 | GPIO17 | gpio | UART0 (pins 8/10) RTS |
| 12 | GPIO18 | pwm | PCM_CLK / PWM0 |
| 13 | GPIO27 | gpio |  |
| 14 | GND | gnd |  |
| 15 | GPIO22 | gpio |  |
| 16 | GPIO23 | gpio |  |
| 17 | 3V3 | 3v3 |  |
| 18 | GPIO24 | gpio |  |
| 19 | GPIO10 | spi | UART3 CTS |
| 20 | GND | gnd | UART3 Ground |
| 21 | GPIO9 | uart | UART3 RX |
| 22 | GPIO25 | gpio |  |
| 23 | GPIO11 | spi | UART3 RTS |
| 24 | GPIO8 | uart | UART3 TX |
| 25 | GND | gnd | UART1 Ground; UART3 Ground |
| 26 | GPIO7 | spi | UART2 RTS |
| 27 | GPIO0 | uart | UART1 TX |
| 28 | GPIO1 | uart | UART1 RX |
| 29 | GPIO5 | uart | UART2 RX |
| 30 | GND | gnd | UART1 Ground; UART2 Ground; UART4 Ground |
| 31 | GPIO6 | gpio | UART2 CTS |
| 32 | GPIO12 | uart | UART4 TX |
| 33 | GPIO13 | uart | UART4 RX |
| 34 | GND | gnd | UART4 Ground |
| 35 | GPIO19 | gpio | PCM_FS |
| 36 | GPIO16 | gpio | UART0 (pins 8/10) CTS |
| 37 | GPIO26 | gpio |  |
| 38 | GPIO20 | gpio | PCM_DIN |
| 39 | GND | gnd |  |
| 40 | GPIO21 | gpio | PCM_DOUT |

##### Pads: uart_dbg

| Pin | Label | Type | Function here |
| --- | --- | --- | --- |
| 1 | TX | uart | Debug UART (3-pin JST-SH) TX |
| 2 | GND | gnd | Debug UART (3-pin JST-SH) Ground |
| 3 | RX | uart | Debug UART (3-pin JST-SH) RX |

##### Serial ports (UARTs)

| UART | Device node | TX | RX | Ground | Note |
| --- | --- | --- | --- | --- | --- |
| UART0 (pins 8/10) | /dev/ttyAMA0 | Pin 8 (GPIO) | Pin 10 (GPIO) | Pin 6 (GPIO), Pin 9 (GPIO) | The Sokil installer lists dtoverlay=uart0-pi5 (since 2026-05-13), but a Pi 5 on the ground image can report no ttyAMA0 - check the port list here before wiring pins 8 / 10; on an image the installer never touched, dtparam=uart0=on in config.txt turns it on. |
| UART1 | /dev/ttyAMA1 | Pin 27 (GPIO) | Pin 28 (GPIO) | Pin 25 (GPIO), Pin 30 (GPIO) | Enabled by a dtoverlay=uartN line in config.txt - absent from the list until then. |
| UART2 | /dev/ttyAMA2 | Pin 7 (GPIO) | Pin 29 (GPIO) | Pin 9 (GPIO), Pin 30 (GPIO) | Enabled by a dtoverlay=uartN line in config.txt - absent from the list until then. |
| UART3 | /dev/ttyAMA3 | Pin 24 (GPIO) | Pin 21 (GPIO) | Pin 20 (GPIO), Pin 25 (GPIO) | Enabled by a dtoverlay=uartN line in config.txt - absent from the list until then. |
| UART4 | /dev/ttyAMA4 | Pin 32 (GPIO) | Pin 33 (GPIO) | Pin 30 (GPIO), Pin 34 (GPIO) | Enabled by a dtoverlay=uartN line in config.txt - absent from the list until then. |
| Debug UART (3-pin JST-SH) (uart10) | /dev/ttyAMA10 | Pin 1 (uart_dbg) | Pin 3 (uart_dbg) | Pin 2 (uart_dbg) | the system console - a getty is already talking on it - Meant for a serial debug cable. |

##### Power inputs

| Input | Voltage | Current | Where | Note |
| --- | --- | --- | --- | --- |
| Header 5V | 5V | 5A | Pin 2 (GPIO), Ground Pin 6 (GPIO) | the feed a Sokil install uses - 5V/5A (5.1V nominal). Fed through the header the Pi assumes a 3A supply and caps its USB ports at 600 mA - set PSU_MAX_CURRENT=5000 in the EEPROM config (or usb_max_current_enable=1) if anything is powered from USB. |
| USB-C | 5V | 5A | USB-C 5V | Only a USB PD supply negotiates 5A; a plain 5V plug gets the 3A / 600 mA-USB behavior. |

##### Notes

- Pin 1 (3V3) is the square pad at the microSD end, on the row further from the board edge. Odd pins inside, even pins along the edge.
- wfb0 / wfb1 are the names the station gives a WiFi card by the socket it is in - the same card is wfb0 in one socket and wfb1 in another. Sockets marked ? have not been measured on a real board.

*Figure: The Hardware step draws the board the device says it is, with the port each service takes under your plan. The planned settings are not written yet.*

**Review** - the diff, then Apply.

<a id="setup-wizard--review-and-apply"></a>

### Review, and Apply

The header counts it and names the target - _"96 parameters will be written to Tail 17"_, with your
own count and your own device name in it. Rows group by subsystem, in two kinds: **Set by setup**,
the choices you made, sorts first and open; **reverting to default**, drift this run is undoing,
collapses behind a count.

The **X** at the end of a row leaves that change out: the device keeps the value it holds, and the
row stays in the list, dimmed, with an arrow that puts it back. The header then also counts what you
rejected. A rejection is of that one value - change an answer that proposes another value for the
row and it is offered again.

A long list is normal: the plan also undoes every setting this device had drifted from default, which
is what makes the result predictable.

The baseline does not reset these values to defaults:

- **Identity**: the device name, the airframe serial (parameter `dev_serial`), activation, the link
  keys (parameters `vtx_key`, `vrx_key`) (with the station's **VRX encryption key** and **Matching VTX
  key** (parameters `vrx_key_rx`, `vrx_key_tx`)), the ZeroTier network list and roots (**ZeroTier
  networks** (parameter `zt_networks`), the custom planet and moons (parameters `zt_planet`, `zt_moons`)), the fleet enrollment (`fleet_*`) and the stored config version. The
  bind switch below is the one thing that writes a link key, and it puts those rows in the diff
  where you can see them. An explicit device name or ZeroTier network choice also changes
  its corresponding value; identity protection only prevents a baseline reset.
- **Whatever you are reaching the box on**: the Ethernet card's **IP address** (parameter `eth_ip`),
  **Gateway** (parameter `eth_gateway`), **Take an address from DHCP** (parameter `eth_dhcp`), **Never use this
  network as the default route** (parameter `eth_never_default`) and **Network connection** (parameter `eth_conn`)
  (the connection profile they are written to), the management WiFi connection and the access
  point (parameter `wifi_ap_up`), and the ZeroTier switch (parameter `zt_enabled`) while the ZeroTier network
  list (parameter `zt_networks`) is not empty - a full reset would otherwise take the address away mid-run. An explicit write on the Link
  settings page still wins; only the baseline loses. On a pilot's laptop setup itself sets **Network
  connection** to _None_, so Sokil stops managing the laptop's wired connection and the laptop keeps
  the addresses its own operating system gives it - no address is changed for it. A laptop whose plan
  configures its wire - told to hand out addresses to several cameras on one switch - is the
  exception (the Role step offers a laptop Ground station alone, so it is never set up as a camera
  or a repeater): that setting needs a connection to be applied to, so
  setup picks the wired connection that is up on the laptop (or the one it already uses, when none is
  up), shows it under **Network connection** on the Link settings page, and does not go on while that
  row reads _None_. With several connections up it picks none and asks you to.

**Download the plan** saves it as a `.conf` in the shape a parameter backup takes, so **Load
parameters** on a sister box can take it - identity and addresses included, so read those rows there.

Apply asks for confirmation, resolves any required ZeroTier network, then writes
the accepted parameters. A WiFi unbind command, when needed, rides the same write.
Changed settings can interrupt the link. A received write reply is checked for
missing or rejected values; a lost reply leaves the result unconfirmed even if
the device returns. See [After Apply](after-setup.md#after-setup) for the sequence.

A run is not saved anywhere: reload the page part-way through and you start again at Start. That is
deliberate - staged answers have not been written, though completed activation, confirmed file imports, updates and binding operations remain applied - but it is worth knowing on a
tablet whose screen sleeps.

<a id="setup-wizard--the-bind-at-the-end"></a>

### The bind at the end

On a camera or a repeater the last question above Apply is whether to bind this device to this
ground station - the switch labeled **Also bind this device to this ground station**. It is off by
default, except on a WiFi device this page reaches over its own radio link, where it starts on.

- **On**, the station's link key, frequency plan and channel switches ride the same write, so writing
  it _is_ the bind: the box comes up paired, on the station's channel, with no window in between.
  Those rows are in the diff below the switch.
- **Off**, a WiFi device ends **unbound**: its pairing is deleted and it stays on the binding channel until bound. Ethernet and ZeroTier runs send no unbind command; review their address changes rather than assuming the previous pairing is erased.
- A WiFi run without a usable station bind key also ends unbound. A course camera is never asked: it has no station to pair with.

Where you reach the device from matters when the switch is off, and Review says so under it:

- **Over its own radio link**, the device will not answer here again until a ground station binds it.
  The run stops waiting for it shortly after the write and points you to the station's **Status**
  page, where the bind is. That is the run finishing, not a fault.
- **Over ZeroTier**, the device still answers, but a WiFi bind needs a ground station within radio
  range of it. A remote device may stay unbound until someone near it binds it.

<a id="setup-wizard--what-setup-never-does"></a>

### What setup never does

- **No factory reset.** The flow never sends the device's reset-to-defaults command (parameter `reset_defaults`): the write carries only
  the setup rows you accepted. Going back keeps your choices; any completed activation remains
  on the device.
- **No second device.** Identity is protected from baseline resets; an explicit name,
  ZeroTier network choice or bind can change its corresponding values.
- Review can optionally save the accepted configuration as the board's **provisioning baseline**,
  loaded at startup underneath the device's own settings - so a later factory reset brings the
  airframe back the way setup left it rather than blank. Clear that box if a reset here has to mean
  blank.

<a id="setup-wizard--wiring-guides-for-the-box-in-front-of-you"></a>

### Wiring guides for the box in front of you

Each says what to wire where, what setup asks and writes for that kit, and what to set on the flight
controller.

Kit guides for this role:

- [WiFi camera on an IPC board (SSC338Q / SSC30KQ)](camera-wifi-ssc338q.md#camera-wifi-ssc338q) - The IPC camera on a 5.8 GHz kit - six boards on two Sigmastar chips, the FC UART, the radio on USB, power, and what setup writes for it.
- [WiFi camera on an Infinity6C board (SSC377D / SSC378QE)](camera-wifi-infinity6c.md#camera-wifi-infinity6c) - The newer Sigmastar camera boards - the RunCam WiFiLink Clone SSC377D, the MC-L12D2 and the MC800S5 - their FC UART, power and picture size, and what is not measured yet.
- [IPC camera with a thermal or USB camera](camera-ipc-usb.md#camera-ipc-usb) - Add a USB camera to an IPC board, switch between the two pictures or transmit both, over WiFi with a powered USB hub or over Ethernet and ZeroTier.
- [WiFi camera on Luckfox Pico Pro / Max](camera-wifi-luckfox.md#camera-wifi-luckfox) - The RV1106 board as a WiFi camera - UART4 to the flight controller, one USB socket for the radio, and what setup writes for it.
- [Camera on Orange Pi 5 Pro](camera-opi5pro.md#camera-opi5pro) - The RK3588S board as a drone camera - which UART is the flight-controller port, which socket takes the radio, and what setup writes.
- [Radxa Zero 3 as a camera (thermal, CVBS, HDMI)](camera-radxa-vtx.md#camera-radxa-vtx) - The RK3566 board carrying somebody else's picture - a thermal core, an analog capture or an HDMI feed - with UART4 to the flight controller and the radio on USB.
- [Ethernet camera over optical fiber](camera-ethernet-fiber.md#camera-ethernet-fiber) - A wired drone - the camera at 10.1.1.40, a media converter at each end of the fiber, and RC returning to the flight controller over the same cable.
- [Starlink / ZeroTier camera](camera-starlink-zerotier.md#camera-starlink-zerotier) - A drone you reach over the internet - the ZeroTier network the station creates, the camera's wired leg to the dish, and the RC path into the flight controller.
- [Course camera (a second camera wired to another Sokil box)](course-camera.md#course-camera) - A camera whose link is the Sokil board beside it - one short cable, everything on the primary's second stream, and nothing to bind.

Kit guides for this role:

- [Ground station on Raspberry Pi 5](gs-rpi5.md#gs-rpi5) - One of the two boards Sokil GS 5.8 is built on - WiFi cards in the blue sockets, the handset adapter on USB, and what setup writes for a ground station.
- [Ground station on Raspberry Pi 4](gs-rpi4.md#gs-rpi4) - One of the two boards Sokil GS 5.8 is built on - the same header as a Pi 5 with the node names shifted, four USB sockets that mostly say wfb0, and the documented XT60 build.
- [Radxa Zero 3 as a radio head](gs-radxa-radio-head.md#gs-radxa-radio-head) - The mast box in a split station - it takes the pilot laptop's sticks over UDP and drives the transmitter modules through USB adapters.
- [Laptop pilot station](gs-laptop.md#gs-laptop) - The x86 station with the handset on it - no radio and no camera of its own, CRSF out to a radio head or straight to an IP drone.
- [Windows ground station](gs-windows.md#gs-windows) - Sokil for Windows on a Windows 11 PC - what the installer changes on the machine, handing USB devices between Sokil and Windows, switching Sokil off, uninstalling it, and reaching the station over the network.
- [Mac ground station](gs-mac.md#gs-mac) - Sokil for macOS on an Apple Silicon Mac - what the installer changes on the Mac, choosing the camera-LAN adapter, handing USB devices between Sokil and macOS, activation, sleep, turning it off and on, uninstalling it, and what a Mac station cannot do.

Kit guides for this role:

- [WiFi repeater (Radxa, two WiFi cards)](repeater-wifi.md#repeater-wifi) - 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.
- [Starlink repeater](repeater-starlink.md#repeater-starlink) - A relay whose output is the internet - WiFi in from the drone, a dish on its own DHCP adapter out, and RC arriving from the pilot's laptop on two streams.
- [Analog repeater (CVBS capture)](repeater-analog.md#repeater-analog) - The repeater with no receiver - an analog VRX into a capture card, which Sokil reads as a v4l2 camera on its main video stream.

<a id="setup-wizard--related-guides"></a>

### Related guides

- [Before you start](before-setup.md#before-setup) - power, backup, activation, addresses to plan.
- [After Apply](after-setup.md#after-setup) - the bind, the first checks, where diagnostics live.
- [Binding](binding.md#binding) - pairing a camera and a station outside a setup run.
- [Choose a board](choose-board.md#choose-board) - what each board gives you before you wire it.
- The [Hardware page](http://10.1.1.30/gs/hardware) draws the Hardware step's picture for a configured device.
