Sections
MD

WiFi camera on Luckfox Pico Pro / Max

Forfield integrators

The Luckfox Pico Pro / Max is the small Rockchip board Sokil runs as a drone-side camera - core reports its Board (parameter dev_board) as rv1106 (the Hardware page and the wizard's Start step show it) and its build target is luckfox. The Pro and the Max are one PCB (they differ in SoC grade and RAM), so everything here applies to both.

It is 21 x 72 mm, with two single-row 20-pin headers, a 20-pin MIPI CSI ribbon connector, a 10/100 Ethernet socket, and exactly one USB socket - the USB-C. That last fact shapes the whole build.

What you need

  • The board, running the Sokil luckfox build. Embedded targets are flashed as a whole image, not updated binary by binary - Flashing the firmware below has the package and the steps for Linux and Windows.
  • A camera: either a MIPI sensor on the CSI ribbon, or a USB camera - Sokil Eye's Source type (parameter vtx_eye_source) takes both on this build, and which one your unit has decides what setup proposes (below).
  • A WiFi card for the video link, on the USB-C with the socket switched to host mode.
  • A 5V feed from its own BEC - see Power and the BEC.
  • Three wires to a spare UART on the flight controller.
  • An Ethernet cable, which is how you reach the box while you set it up.

Flashing the firmware

A Luckfox takes its software as one image written over USB, and the package that does it comes from the update server: under Help > Resources the Luckfox camera firmware card lists the releases, each a zip named sokil_luckfox_pico_pro_max.<version>.zip. Inside are the image, update.img, and Rockchip's flashing tool, upgrade_tool, built for Linux and for Windows, so a board is flashed from an ordinary laptop with no station involved. A full flash is how a new board gets Sokil and how a broken one is recovered; after that the routine updates come from the station, like any other camera's.

The board is written over its USB-C in Maskrom mode, which it enters from the BOOT button:

  1. Hold BOOT on the board.
  2. Plug the USB-C into the computer while holding it. Use a data cable - a charge-only lead shows nothing.
  3. Release BOOT once the cable is in.

The USB-C also powers the board (VBUS is its other power input), so nothing else needs to be connected for the flash. Flashing is safe to repeat: an interrupted write does not damage the board, it just needs Maskrom mode and the script again.

On Linux, unpack the zip, open a terminal in the folder and run sudo ./flash.sh. It installs the udev rule for the Rockchip USB id when it is missing, waits for you to press Enter with the board in Maskrom, lists the device and writes update.img. The board reboots by itself when the write completes.

On Windows, unpack the whole zip - the driver folder included - and double-click flash.bat. The script checks whether the Rockusb driver is in Windows' driver store and adds it from the package when it is not; that is the one step that asks for administrator approval, and it asks once. Then it waits for the board in Maskrom (up to two minutes, with the BOOT steps on screen), writes update.img and confirms the reboot, and the window stays open so the result is readable. Windows 10 and 11 are covered, 64-bit and 32-bit; Windows on ARM is not, since Rockchip ships no driver for it. If the board never appears, the script says what Windows saw: no Rockchip device at all points at the cable or the BOOT timing, a device without its driver at the driver store, where flash.bat -ReinstallDriver adds it again.

A flash writes every partition, so it replaces everything on the board. update.img carries the board's whole partition table - boot, root filesystem, the vendor partition and user data - and the user-data image packed into it is empty, so nothing of the previous install survives. Both of the files that matter live on the root filesystem: the activation key, and the file that holds every parameter you have changed. Before you reflash a board already in service, note its version, its activation key (Key on this device (parameter act_key) on the Activation page, an admin screen) and the parameters you changed, and expect to run setup, bind and activate again.

Wiring

The header numbering is Raspberry Pi Pico style, not Pi pairs. Pin 1 is top-left at the USB-C end, 1 to 20 run DOWN the left row, pin 21 is bottom-right, and 21 to 40 run UP the right row. The silk prints the GP names beside the numbers.

Wire Luckfox pin Silk What it is
FC TX out pin 7 GP05 UART4 RX, /dev/ttyS4
FC RX in pin 6 GP04 UART4 TX
Ground pin 8 (or pin 3) GND shared ground, always
5V in pin 39 VSYS from the BEC
Ground pin 38 GND

TX goes to RX and RX goes to TX. The ground wire is not optional: two boxes on different feeds with no shared ground give a port that is up and hears nothing.

Kit picture: WiFi camera on Luckfox Pico Pro / Max. The parts list below carries the same wiring.

WiFi camera on Luckfox Pico Pro / Max

  • Board: Luckfox Pico Pro / Max (Rockchip RV1106, 10/100 Ethernet, MIPI CSI)
Parts
Part What it is Attaches to Link Note
Flight controller Flight controller on UART4 (GP04 / GP05) (/dev/ttyS4) TX/RX pair comes up as /dev/ttyS4 - named by parameter vtx_mavfwd_serial
MIPI sensor MIPI sensor on the board's own camera connector (MIPI)
USB WiFi card WiFi card on socket USB-C OTG the USB-C is the board's only USB socket, and it has to be in host mode.
Power feeds
Load Voltage BEC output (solder pads) Note
Luckfox Pico Pro / Max - Header VSYS (pin 39) 5V Matek BEC12S Pro - 5V, nothing bridged (factory default)
USB WiFi card ~14V Matek BEC12S Pro - ~14V, 8V and 12V pads both bridged sensitive - its own BEC
Parameters the setup wizard writes for this kit
Parameter Value
vtx_mavfwd_enabled 1
vtx_eye_enabled 1
vtx_eye_source mipi

Figure: The whole camera unit: UART4 on pins 6 and 7 to the flight controller, the MIPI sensor on the CSI ribbon, the radio on the one USB-C in host mode, and a BEC each for the board and the card. The board is drawn top view, USB-C at the top, Ethernet at the bottom.

The other UARTs, so you do not wire into the wrong one:

  • UART2 on pins 1 and 2 is the console (/dev/ttyFIQ0). Never the flight controller.
  • UART3 on pins 19 and 20 (/dev/ttyS3) is free and usable.
  • UART0 and UART1 exist but are off until luckfox-config enables them. If a plan puts a service on one, setup's Hardware step says so ("A UART the plan names is not enabled").

The USB-C is OTG: a device port by default, a host port once you switch it with luckfox-config. In host mode the USB network link to a computer is gone, which is why you keep Ethernet on the board during setup. Its port path has never been measured, so the Hardware page draws that socket with a ? rather than claiming which port it is.

The board brings no microphone pins out to a header, so sound on a Luckfox means a USB microphone, at a sample rate of 48000 - Microphones and audio.

There is no host adapter to buy. A kit uses the board's own USB port with a custom Type-C connector, and the wires go straight onto that connector. Two devices on the one socket take a hub - Two USB devices below - and where the kit allows it, the MIPI sensor keeps the socket free.

Power

5V into VSYS, pin 39, ground on pin 38. That is the input the Hardware page draws the BEC on. The USB-C (VBUS) is the other way in. Pin 36 is 3V3(OUT) - an output, never an input.

Feed it from its own BEC off the battery, not from the flight controller's rails and not from a WiFi card's regulator. The rule and the BEC settings are in Power and the BEC.

The board itself draws under roughly 200 mA at 5V. The vendor states no input voltage range, and the whole kit with the radio and the camera on it has not been measured, so measure your build before you size the feed.

Two USB devices: a hub for a thermal camera

A WiFi kit already spends the one USB socket on the radio, so a unit that also has to carry a USB thermal camera puts a hub on the USB-C and both devices behind it. That is the shape this board has for two USB devices. A Radxa VTX, which has two USB sockets, needs no hub at all.

What it takes

  • The USB hub expansion module, article USB-HUB - the hub Sokil uses, in the parts table of Supported hardware, which is where you buy it.
  • One 5V BEC for the board and the hub. The Luckfox and the hub - and so the thermal camera behind it - run off the same feed; there is no separate hub BEC. A Matek BEC with no pads bridged is 5V, which is what both want - Power and the BEC.
  • A short shielded lead to the thermal core. That line is sensitive, and a long one is the usual reason a thermal drops off the bus.

Wiring the hub

  1. Switch the USB-C to host mode with luckfox-config first (above). In device mode the socket is not a host and nothing behind it enumerates.
  2. Hub on the USB-C. The thermal camera and the WiFi card both go into the hub.
  3. Feed the hub 5V from the same BEC that feeds the Luckfox - never from the board's own USB rail. The radio keeps its separate feed, so the two heaviest loads never share one.
  4. The WiFi card keeps the feed it already has - its own BEC, as in Power above. Into the hub go the card's data pair and its ground - USB data needs a common ground - and only its power stays on that separate feed.
  5. The rule for any card's USB pair: twist the D+ / D- wires and keep the run under 50 cm, whatever the leads are made of.

The one USB-C goes to a hub; the thermal camera and the WiFi card sit behind it, one 5V BEC feeds the board and the hub, and only the WiFi card's power stays on its own

Diagram: The one USB-C goes to a hub; the thermal camera and the WiFi card sit behind it, one 5V BEC feeds the board and the hub, and only the WiFi card's power stays on its own - img/luckfox-usb-hub.svg (vector: img/luckfox-usb-hub.svg)

An unpowered hub is what this arrangement is really guarding against. Under transmit load a brown-out makes an RTL8812AU re-enumerate and it can come back transmit-only - video still flowing while the radio receives nothing - and the fix is a powered hub on a solid supply. The device flags the symptom as wifi_card_flapping (diag 1011) and tries to recover the link (link_wedge, diag 1010).

Nothing back-feeds the board's VBUS. The hub's 5V comes straight from the BEC, and the VCC line between the hub and the Luckfox is left unsoldered, so the board keeps its own feed on VSYS. The hub's port count and current draw are still unwritten and the socket's own port paths have never been measured, which is why the Hardware page draws it with a ?.

How the camera then appears

A thermal core over USB is an ordinary UVC camera. Once the hub is up, the device reports three USB entries (parameter dev_usb) on that one socket - the hub, the card as wlan and the core as video - and the core's video node gains its camera name (parameter dev_video_info). On the Hardware page (on the station: Hardware) (an admin screen) the USB devices card lists all three, and the board picture puts them on the USB-C: everything behind a hub resolves to the socket the hub hangs off.

Then tell Sokil Eye to read it. On the wizard's Camera step answer Where does the video come from? with A USB camera or capture device and pick the node under Which device? - that sets Sokil Eye's Source type (parameter vtx_eye_source) to v4l2 and fills its Device (parameter vtx_eye_device) with the camera's stable /dev/v4l/by-path/... link, which follows the USB socket, so the camera still works after it re-enumerates as another /dev/videoN (the bare node when the report has no link). On a device already in service an admin finds the same two rows under VTX settings > Streamers: on the Streams card, open the Sokil Eye row, Pipeline tab, Source section. And the Hardware page (on the station: Hardware) camera picker writes the stable /dev/v4l/by-path/... link (the USB socket) when available, otherwise the reported video node; a /dev/v4l/by-id/... link already configured keeps working as written.

Do not identify a USB camera by /dev/video0 alone. Video-node numbering depends on which capture driver registers first. On a Luckfox without a USB camera, /dev/video0 is a raw CSI stream node; a USB camera present at boot can register first and take that name instead. Select a stable /dev/v4l/by-path/... (or by-id) path when available; otherwise recheck the selected video node after devices are re-enumerated. The Camera step uses the capability report to choose a node that Sokil Eye can actually open.

The formats are the ordinary USB ones, and a thermal core sits well inside them: the fielded configs read it as a v4l2 node in YUY2 at 640x512 and 30 fps. Sokil Eye takes MJPEG, YUYV or UYVY; a UVC camera that only outputs H.264 is not an accepted input on any host, and MJPEG is decoded in hardware where the installed build supports it, in software otherwise. Camera compatibility has the measurements per host. The board's 1920x1080 limit is a separate thing and applies whatever the source is - What setup asks and writes below.

If the board keeps its MIPI sensor and the thermal is a SECOND picture rather than the only one, it is the second eye instead: put Sokil Eye 2 (parameter vtx_eye2_enabled) on a slot of the Streams card (or answer the wizard's How many pictures? accordingly), with its Source type (parameter vtx_eye2_source) set to v4l2 and Device (parameter vtx_eye2_device) naming the USB camera's capture node.

An RV1106 does sustain two encoded streams at once. A soak of about five minutes on this board held the MIPI sensor at 720p and about 30 fps in H.265 while a USB camera streamed beside it, with no dropped frames on either and no errors observed. The camera firmware sets up both encoders itself; there is no setting for it.

Confirm on the bench: two USB cameras in MJPEG at the same time. Only one MJPEG source has been run in the recorded test. Decoder support depends on the installed build, so run that pair on the bench before you fly it and read the Encoder line (parameters vtx_eye_enc, vtx_eye2_enc) of both eyes' stats cards in the Status page's Video stream (an admin sees them). A camera that can give YUYV instead is the lighter path anyway.

What to check after

  1. Hardware page (on the station: Hardware): the USB devices card lists the hub, the WiFi card and the camera, all on the USB-C socket.
  2. The Sokil Eye row on the Streams card reads On air (parameter vtx_eye_running), and the Encoder line (parameter vtx_eye_enc) of its stats card on the Status page's Video stream fills in. eye_device_missing (diag 513) on Diagnostics (on the station) names the node Sokil Eye cannot find - almost always the wrong /dev/video number.
  3. Run the radio with the camera streaming and watch for wifi_card_flapping (diag 1011). A card that comes and goes is a power question on this build before it is anything else.

What setup asks and writes

Open Setup (on the station) on the camera and answer: Role = Camera, Link = WiFi radio. The Start page reads the board and the sensor; this board reports no sensor of its own (parameter dev_sensor), so the Sensor line is filled from the camera's own capability report instead - the bench unit reads mis5001 there.

The Camera step decides the capture source per unit, not per board. Core's default for an RV1106 is v4l2 on /dev/video0, whose device identity depends on registration order as described above. For a USB camera, select its stable by-path link (a by-id link also works). With source mipi, the configured device path is ignored. A unit with a MIPI sensor wired to CSI is identified solely from its report: setup then seeds mipi and says so ("Capture source taken from the camera"). It stays a proposal, shown on the Camera step and again in the Review diff, and you can override it.

Then the Hardware step draws the board with the plan's ports on it and checks them, and Review shows the full diff. The planned settings are written when you press Apply on Review. Activation, file imports, binding and software updates take effect separately and can change the device before Apply.

What setup itself writes for camera + WiFi radio on this board, named as the rows appear under VTX settings (tab first) and, for the RC input, Control > RC Wiring. They are admin rows:

Setting Value Why
Streamers: Sokil Eye (parameter vtx_eye_enabled) on Sokil Eye is the streamer
Streamers, each eye's Codec tab: Rate control (parameters vtx_eye_rc_mode, vtx_eye2_rc_mode, vtx_eye3_rc_mode) CBR (constant) reduces bitrate bursts on a radio link with limited capacity
Streamers, Sokil Eye Pipeline: Source type (parameter vtx_eye_source) mipi on a unit with a MIPI sensor; v4l2 on one with a USB camera, and then Device (parameter vtx_eye_device) takes the node the report names from the capability report
Streamers: Main video (parameter vtx_presets_streamer) Sokil Eye (20) the presets drive Sokil Eye
Presets: rungs 3 to 6, Picture resolution (parameters vtx_presets_2_res, vtx_presets_3_res, vtx_presets_4_res, vtx_presets_5_res) 1920x1080 Sokil limits this board to 1080p, so the 1440p presets are capped
Presets: rungs 3 to 6, Picture frame rate (parameters vtx_presets_2_fps, vtx_presets_3_fps, vtx_presets_4_fps, vtx_presets_5_fps) 30 these presets share the supported 1080p30 ceiling
Streamers: CMD Streamer / CMD Streamer 2 (parameters vtx_cmd_enabled, vtx_cmd2_enabled) off the other streamers stay off
Connection, Link transport: radio mode (parameter vtx_ufec_wifi) UFEC video, MAVLink and the tunnel ride the UFEC radio transport
Connection, UFEC streams: MAVLink FEC / Second MAVLink FEC (parameters vtx_ufec3_fec, vtx_ufec4_fec) 4:2 parity on both MAVLink streams
Connection, UFEC streams: Mode of MAVLink / Second MAVLink (parameters vtx_ufec3_mode, vtx_ufec4_mode) 1 (low latency) how both MAVLink streams are sent - core's default, stated because a wired link differs
Streamers: VTX IP (parameter vtx_ip) 127.0.0.1 the streamer feeds this box's own radio tier
Telemetry, MAVLink: Send address (parameter vtx_mavfwd_out_addr) 127.0.0.1:14550 the MAVLink proxy's local stream
Telemetry, MAVLink: Listen address (parameter vtx_mavfwd_in_addr) empty UFEC replies to whoever sent to it
Control > RC Wiring: RC input (parameter rc_ch_source) MAVLink (10) RC is read out of MAVLink here

1920x1080 is Sokil's supported ceiling for this board. This conservative product limit protects against a capture-pipeline failure observed above 1080p; it is not the RV1106 silicon's maximum sensor input size. Setup and the resolution/preset controls enforce the cap. A sensor may report a larger native mode while the output is scaled to 1080p or less. An existing higher setting remains visible so you can lower it to a supported value.

The RC input row is the WiFi kit's whole RC story: the sticks reach the flight controller through the drone's own ELRS receiver, rather than through the Sokil camera's MAVLink connection, and Sokil reads the channels back out of the FC's MAVLink. Nothing CRSF is wired to the Luckfox on this kit.

Everything else comes from core's resolved defaults for the board, which already have the MAVLink card on the Telemetry tab switched on (parameter vtx_mavfwd_enabled), its Serial port (parameter vtx_mavfwd_serial) on /dev/ttyS4, its Baudrate (parameter vtx_mavfwd_baud) at 115200, and its Link legs (parameter vtx_mavfwd_drone_local) with the flight controller on this box's side. The flight-controller port needs no answer from you - it is the pin pair you wired.

Pairing is the last thing on the Review page - Also bind this device to this ground station - and it is off until you turn it on: off leaves the camera unbound and ready to pair, on carries the station's key, frequency plan and channel switches in this same write. Binding has both paths and what each one copies.

Flight controller side

One link, MAVLink both ways, on the FC UART you wired to pins 6 and 7: MAVLink 2 at 115200, with SYSID_MYGCS matching the camera's GCS SysId for UAV (parameter vtx_mav_gcs_sysid) (VTX settings > Telemetry > MAVLink, a row only an expert sees; left at 0 it follows the FC's own GCS id). RC is not on this link - it reaches the flight controller through the drone's own ELRS receiver. The rows for every firmware are in Flight controller, and the Hardware page (on the station: Hardware) prints the ones for the firmware it detects on the device in front of you.

First checks after Apply

  1. On Status (on the station), the Telemetry stream should show the camera's MAVLink forwarder running (parameter vtx_mavfwd_running) and, about 30 s after the FC is powered, the flight controller heard (parameter vtx_mav_active). An RX/TX swap is the usual reason the FC is never heard. If it is heard and the station still gets no telemetry, the camera is reading the FC and forwarding it nowhere: on VTX settings > Telemetry the Output must be the WiFi link preset, not a bare listen address.
  2. The Sokil Eye row reading On air (parameter vtx_eye_running) and its Encoder line (parameter vtx_eye_enc) filling in means the camera is really encoding. If it is not, hover the red VTX chip in the status strip at the top of the page for its "VTX error" tooltip (parameter vtx_error) and check the stream's Source type (parameter vtx_eye_source). With v4l2, Device (parameter vtx_eye_device) must name the camera's capture node; the Hardware page lists the available devices (parameter dev_video). With mipi, that device path is ignored: check the detected sensor, its capability report and the MIPI error in the Sokil Eye log.
  3. The Hardware page (on the station: Hardware) shows UART4 with its byte counters and its health. Amber "FC does not hear us" means our transmit side is dead while the downlink is fine - that is diag 405, and it is also raised on Diagnostics (on the station). A Telemetry stream with no Our TX metric on the flight controller node means the check is unknown (parameter vtx_mavfwd_tx_ok) rather than a fault: no FC heartbeat yet, the check switched off, or a firmware that never answers it (Betaflight before 2026.6, the Sokil 4.6 build included).
  4. Diag 406 says the FC expects a different GCS system id; fix the camera's GCS SysId for UAV (parameter vtx_mav_gcs_sysid) (an expert's row) or SYSID_MYGCS so the two agree, or ArduPilot drops RC overrides.
  5. If the box stops answering entirely right after a firmware update, it is a build problem rather than a wiring one: flash a released image as in Flashing the firmware above and tell support which version failed.
On this page

Search the documentation

Start typing. The up and down arrows choose, Enter opens, Esc closes.