Sections
MD

Ethernet camera over optical fiber

Forfield integrators

On a fiber kit the camera does not transmit. Its picture and telemetry leave over Ethernet, a media converter turns that into light, one fiber runs to the ground and a second converter turns it back into copper. No channel to pick and no key on the air - but the same cable carries the pilot's sticks back to the flight controller, and that is the part worth reading twice.

The camera sits at 10.1.1.40, the station at 10.1.1.30.

What you need

  • A camera board with an Ethernet port, on the Sokil camera image. The fielded fiber configs are SSC338Q + IMX415 boards, and all three of the ones we ship have Ethernet: an MC800S-V3, which brings it out on pads, a RunCam WiFiLink 2, which has an RJ45 socket and TX+ / TX- / RX+ / RX- pads, and an EMAX Wyvern Link, whose RJ45 sits on the downloader card at the end of its 8-pin cable. The three SSC30KQ + IMX335 boards have Ethernet as well, on different terms: an MC-L12B brings the pairs out on pins 3 to 6 of its 8-way NET connector, with the magnetics already on the board, so that is a straight run to an RJ45; a MINIIPC brings out the raw TP / TN / RP / RN pairs on its 8-way connector with no magnetics anywhere on the board, so it needs an external magnetics and RJ45 card before it has an Ethernet jack at all. A SkyPulse IP also has no magnetics on the board, and its maker allows only the short cable from the box, so do not plan a wired run on one without testing it first. The wiring below is the MC800S-V3's; the flight-controller port is UART2 on every board here except the Wyvern, which puts it on UART3 (/dev/ttyS3). An SSC30KQ board also caps the picture at 2560x1920 with no 4K rung - see WiFi camera on an IPC board.
  • A media converter at each end, and the fiber between them.
  • A ground station with a wired leg, set up in its own run as Ethernet.
  • A BEC per box: one for the camera, one for the converter.
  • A flight controller with a spare UART.

The legacy kit documentation names the converter pair: an Ethernet-Fiber media converter rated 60 km, "Type A" on the drone and "Type B" on the ground - a matched, direction-coded pair over one fiber. The drone-side converter is fed 12V over an XT30 from the video module's own step-down (an LM2596 in the IPC fiber kit, a Matek BEC12S Pro in the RunCam one); the ground end is a boxed unit with an XT60 battery input, an SFP cage on one face and the RJ45 to the station on the other. Newer builds mount the SFP cage on the camera side directly instead of a separate converter box.

The parts are generic ones. Sokil uses a pair of SFP+ optical modules - LS-BL332710-60C at one end (10G SFP+, TX 1330 nm / RX 1270 nm, 60 km, LC, DDM) and LS-BL273310-60C at the other (TX 1270 nm / RX 1330 nm) - each sitting in a FATK-1GX1FX-MIN media converter (gigabit, one SFP cage and one RJ45). Do not assume a short fiber lead needs no attenuation. Check the exact modules' transmit-power and receiver-overload limits against the optical loss of the assembled link. Build the pair you intend to fly, power it the way you intend to power it, and see the link come up before anything goes on an airframe.

Wiring

Camera to converter to fiber to converter to station, with RC coming back

Diagram: Camera to converter to fiber to converter to station, with RC coming back - img/camera-ethernet-fiber.svg (vector: img/camera-ethernet-fiber.svg)

Pin numbers here are the MC800S-V3's. The flight controller goes on UART2 (/dev/ttyS2), where the MAVLink card's Serial port (parameter vtx_mavfwd_serial) already points: AF_TX to FC RX, AF_RX to FC TX, GND to GND.

Ethernet leaves on pads, not a socket, sharing the right-hand connector with the 12V input:

Pad Silk What it is
1, 2 LED+ link LEDs
3, 4, 5, 6 RJ45_1, RJ45_2, RJ45_3, RJ45_6 the data lines, named for the RJ45 pin each carries
7 GND ground
8 12V power in

Take those four to the matching pins of the connector your converter accepts: pairs twisted, run short. The fiber is the part meant to be long.

Kit picture: Ethernet camera over optical fiber. The parts list below carries the same wiring.

Ethernet camera over optical fiber

  • Board: MC800S-V3 (SSC338Q + IMX415 IPC module)
Parts
Part What it is Attaches to Link Note
Flight controller Flight controller on AF UART (UART2) (/dev/ttyS2) TX/RX pair comes up as /dev/ttyS2 - named by parameter vtx_mavfwd_serial
IMX415 MIPI sensor on the board's own camera connector (MIPI)
Ethernet-fiber media converter (Type A) SFP module on connector ETH + 12V one at each end of the fiber, direction-coded as a matched pair.
Power feeds
Load Voltage BEC output (solder pads) Note
MC800S-V3 - 12V pad 12V Matek BEC12S Pro - 12V, 12V pads bridged
Ethernet-fiber media converter (Type A) 12V LM2596 or Matek BEC12S Pro step-down
Parameters the setup wizard writes for this kit
Parameter Value
vtx_mavfwd_enabled 1
vtx_eye_enabled 1
vtx_eye_source mipi
dev_sensor imx415

Figure: The whole camera unit: the flight controller on the AF UART at the right edge, the Ethernet pads and the 12V input sharing the connector above it, and the media converter on that Ethernet leg. No radio at all on a fiber camera.

Power

12V, and not less - on the pad marked 12V, ground on the pad beside it, and size the feed for about 800 mA peak, which is what the board pulls when the IR-cut filter actuates. The board boots at 5V or 9V, but then its IR-cut filter does not switch and Ethernet is unreliable, which on this kit is the whole link. (A RunCam WiFiLink 2 takes 9-22V instead, on the V pin of its 6-pin TO FC cable or its V / G pads.) The converter takes its own feed, never the camera's pads, and boxes on different feeds share a ground: a data pair or a UART without one is unreliable or dead. See Power and the BEC.

What setup asks and writes

Run Setup (on the station) against the camera and answer Camera on the Role step, Ethernet on the Link step - setup calls it "a wired link - copper or fiber". The Ethernet card comes up on Link settings, Sokil Eye, the wired bitrate question and the preset ladder on Camera, the RC and telemetry wiring on Control. On top of this board's own defaults setup writes:

Setting Value Why
Link settings > Ethernet (later Control > Network > Ethernet): IP address (parameter eth_ip) / Gateway (parameter eth_gateway) / Take an address from DHCP (parameter eth_dhcp) 10.1.1.40 / 10.1.1.1 / off where the station looks for this camera
VTX settings > Connection > Link transport > Over IP (parameter vtx_ufec_udp) / Streams > VTX IP (parameter vtx_ip) on / 127.0.0.1 video, MAVLink and the tunnel go out over UDP, handed to this box's own sender
VTX settings > Connection > UFEC streams (expert), Video and Second video sections: Mode (parameters vtx_ufec_mode, vtx_ufec2_mode) Passthrough (no FEC) no parity groups on either video link - a cable loses nothing to correct
UFEC streams: Video FEC (parameter vtx_ufec_fec) / Second video FEC (parameter vtx_ufec2_fec) 10:2 the tunnel's own parity on both video links - unused in passthrough, kept for the day parity is turned back on
UFEC streams, MAVLink and Second MAVLink sections: Mode (parameters vtx_ufec3_mode, vtx_ufec4_mode) Passthrough (no FEC) both MAVLink streams go out as they are too; the station's setup writes the same for what it sends
UFEC streams: MAVLink FEC (parameter vtx_ufec3_fec) / Second MAVLink FEC (parameter vtx_ufec4_fec) 4:1 kept for the day parity is turned back on
VTX settings > Telemetry > MAVLink: Listen address (parameter vtx_mavfwd_in_addr) / Send address (parameter vtx_mavfwd_out_addr) empty / 127.0.0.1:14550 one connected socket, which replies to the sender
VTX settings > Telemetry > MAVLink card switch (parameter vtx_mavfwd_enabled) on the proxy between the flight controller and the ground station
Control > RC Wiring > CRSF (ELRS) > Input = Receive RC over UDP (parameter rc_crsf_in_addr) 0.0.0.0:14540 where the station's CRSF arrives
Control > RC Wiring > RC to VTX MAVLink (parameter vtx_crsf_enabled) / its Input (parameter vtx_crsf_source) on / Main RC RC into the flight controller, from this camera's own channel state. Older software has no Input row and reads an empty CRSF listen address (parameter vtx_crsf_in_addr) the same way
Control > RC Wiring > RC input (parameter rc_ch_source) CRSF (ELRS) mandatory here - see below
VTX settings > Streamers > Streams: Sokil Eye (parameter vtx_eye_enabled) / the Main video row's camera (parameter vtx_presets_streamer) on / Sokil Eye Sokil Eye captures, the preset switch drives its slot
VTX settings > Presets: each rung's FEC, shown on Review only - this ladder's preset card has no FEC column and says under the ladder that Video FEC (an expert setting) sets the ratio (parameters vtx_presets_0_fec, vtx_presets_1_fec, vtx_presets_2_fec, vtx_presets_3_fec, vtx_presets_4_fec, vtx_presets_5_fec) 10:2 the least parity the preset editor offers, for the day parity is turned back on
Streams > each Sokil Eye > Codec > Rate control (parameters vtx_eye_rc_mode, vtx_eye2_rc_mode, vtx_eye3_rc_mode) avbr a wire can queue a busy moment, so the encoder may spend over its target
Codec > Keyframe budget (parameters vtx_eye_iframe_stall_ms, vtx_eye2_iframe_stall_ms, vtx_eye3_iframe_stall_ms) (expert; where the camera offers it) / I-frame QP delta (parameters vtx_eye_iframe_qp_delta, vtx_eye2_iframe_qp_delta, vtx_eye3_iframe_qp_delta) (expert) Unlimited (0) / 0 no encoder keyframe budget and no extra detail bias; the stream still needs to fit the wired path's capacity. The effect of QP delta on keyframe size and detail depends on the encoder
VTX settings > Connection > Link transport > Over IP: Keyframe pacing (parameters vtx_ufec_ip_pace, vtx_ufec2_ip_pace) 0 (off) a cable carries a keyframe in one burst, so nothing is spread. Only on firmware that has the setting
Streams: Majestic video (parameter vtx_majestic_enabled), CMD Streamer (parameter vtx_cmd_enabled), CMD Streamer 2 (parameter vtx_cmd2_enabled) off the other streamers are off everywhere
VTX settings > Connection > WiFi transmission card (parameter vtx_wifi_wlan) no card no radio tier on this box

The address rows are the ones to read twice. A camera you are reaching at some other address moves when you apply and the page loses it. Review is read-only. If your network uses other addresses, go back to Link settings, edit the Ethernet card, then return to Review and check the updated diff before applying.

The rate-control row goes with it. On a radio kit setup writes cbr to reduce bitrate bursts on a radio link with limited capacity. On a wire it writes avbr - a target a busy scene may exceed up to a cap - on all three camera slots, so a thermal you add later is right too. The keyframe rows go with it: on WiFi, the ladder selects a 50, 125 or 200 ms airtime budget where the encoder supports it. A wire has no reason for that limit, so here the budget is off (Unlimited) and QP delta is 0 instead of the radio's -2 (-8 on a camera that is not SigmaStar). The effect on keyframe size and detail depends on the encoder.

The ladder is the wired one: one bitrate on all six rungs, stepping resolution instead - two rungs at 1920x1080 and 60 fps, two at 2560x1440 and 30 fps, then two at 3840x2160 and 20 fps. Which bitrate, setup asks on the Camera step, right above the ladder. High is 8192 kbps on every rung and the default - enough for a link that shares the wire or a recorder that cannot keep up with more. Very high is 16384 flat. Ultra is 32768 flat - what every wired kit ran before this release, and the best picture a fiber carries. Stepped climbs with the resolution: 8192 on the two 1080p rungs, 16384 on the two 1440p rungs, 32768 on the two 4K rungs, so a preset step changes the frame and the bitrate together. The resolution rungs are the same whichever you pick.

The tunnel runs in passthrough here - no FEC at all. Parity is there to survive a lossy radio, and a cable is not one: a packet a fiber loses is a fault to see, not a gap to paper over. So setup puts both video links, and both MAVLink streams at both ends, in passthrough, where every packet is sent as it is, a lost one is counted on the station and reported as loss, and the fiber carries the video itself: 32 Mbps on the Ultra rung. The station needs no matching change - it follows the camera by itself. The ladder and the tunnel still carry an FEC ratio, 10:2, the least the preset editor offers, so that turning parity back on for a cable you doubt (an expert switches the UFEC streams Mode rows back from passthrough) costs the least: a 32768 rung at 10:2 is 39 Mbps in the fiber, where the radio's 8:4 would make it 49 Mbps and its 2:10 196 Mbps.

What each rung asks of the fiber. In passthrough the figure is the rung's bitrate itself (plus a small header per packet); the second figure is the same rung once parity is turned back on at 10:2, a fifth more.

Answer Rungs 1-2, 1080p60 Rungs 3-4, 1440p30 Rungs 5-6, 4K20 On the fiber: passthrough / at 10:2
High (the default) 8192 8192 8192 8 Mbps / 10
Very high 16384 16384 16384 16 Mbps / 20
Ultra 32768 32768 32768 32 Mbps / 39
Stepped 8192 16384 32768 8, 16, 32 Mbps / 10, 20, 39

Every one of those nine frame-and-bitrate pairs streams on the bench IMX415 at a measured rate of about 60, 30 and 20 fps respectively. A rung climbs the resolution, never the parity, so a preset step here trades frame size for bitrate on the same wire and nothing else. This ladder's preset card has neither modulation nor FEC columns; the wizard's review diff shows 10:2 on all six rungs and passthrough tunnel mode. A radio's rungs carry an MCS and parity that gets lighter up the ladder, and an uplink's 8:4.

On an SSC30KQ board the ladder is different: the chip has no 4K, so it runs three rungs at 1920x1080 and 60 fps and three at 2560x1920 and 20 fps, and the board you pick on the Board step is what says so. The preset switch exists to step down a lossy radio and a cable has nothing to adapt to, so it is given the job it can still do. On an IMX415 all three were measured streaming on the bench. 2560x1440 at 60 fps is not used: the camera lists it, but produces no video at all in that mode. Another sensor keeps a flat ladder. These preset settings are written only when you apply the diff on Review.

RC and telemetry share one wire to the flight controller

This is the recommended shape on a fiber kit, and the one setup writes unless you tell it otherwise. Both directions ride the MAVLink card's Serial port (parameter vtx_mavfwd_serial), the single UART you wired.

  • FC to ground station: the flight controller's MAVLink goes to 127.0.0.1:14550, the UFEC telemetry stream carries it, and the station hands it to the GCS app on its MAVLink Port (parameter vrx_mavlink_port) (14550, an expert row on the station's VRX settings > Receive).
  • Ground station to FC: the station reads the handset over USB and sends CRSF to port 14540 here, which RC to VTX MAVLink (parameter vtx_crsf_enabled), switched on, converts into RC_CHANNELS_OVERRIDE for the flight controller. Sokil sees the sticks at CRSF rate rather than telemetry rate, so zoom and gimbal moves stay smooth.

On the Link step's "How does the flight controller get RC?" question that is the answer As MAVLink, on the telemetry port - one wire out of this board instead of two, and the reason to prefer it is the CRSF-rate line above. What the flight controller needs to accept it:

  • ArduPilot and INAV 8 take RC over MAVLink natively - nothing extra to flash.
  • On a Betaflight airframe, fly Sokil's Betaflight build. It takes RC on the telemetry port without a separate MAVLink Serial RX port; it reports all sixteen RC channels, where stock sends the first eight and a switch above channel 8 simply never arrives; and it carries link quality, TX power and SNR in the telemetry stream, which is what fills the overlay's LQ / TxP / SNR corner.
  • Stock Betaflight 2025.12+ also does one UART when the firmware build includes MAVLink Serial RX: enable Serial RX and MAVLink telemetry output on the same UART, select provider MAVLINK and set the baud to match the MAVLink card's Baudrate (parameter vtx_mavfwd_baud). A telemetry-only port does not receive RC. See Flight controller connection.

⚠ Whenever RC to VTX MAVLink (parameter vtx_crsf_enabled) is on, RC input (parameter rc_ch_source) must be CRSF (ELRS). RC the flight controller echoes back arrives tagged as MAVLink, and on Any or MAVLink that echo is re-sent and feeds back on itself. Pinning the source to CRSF drops it before it can loop.

The fallback: two UARTs and real CRSF

For older Betaflight, or any build that cannot take RC over MAVLink, answer As CRSF, on its own port to that same Link-step question. It works everywhere, and it costs a second wire into the flight controller plus, on this board, a USB serial adapter in the harness - which is why it is the fallback and not the plan. Setup then wires two cables to the flight controller instead of one:

Setting Value Why
Control > RC Wiring > CRSF (ELRS) > Serial port (parameter rc_crsf_serial) /dev/ttyS2 the UART you already wired, now carrying CRSF to Serial RX
CRSF (ELRS) > Baudrate (parameter rc_crsf_baud) 420000 the CRSF rate a flight controller reads, fixed on Betaflight
CRSF (ELRS) > Replace with RX packets (parameter rc_crsf_out_as_rx) on address the frames as the flight controller's own receiver
VTX settings > Telemetry > MAVLink > Serial port (parameter vtx_mavfwd_serial) /dev/ttyUSB0 telemetry moves to a USB serial adapter - see below
Control > RC Wiring > RC to VTX MAVLink (parameter vtx_crsf_enabled) stays off not written - the board default already converts nothing to MAVLink
Control > RC Wiring > RC input (parameter rc_ch_source) CRSF (ELRS) still mandatory, see below

On this board the second port has to be USB. UART2 on the AF pads is the only UART brought out - UART0 is the console - so telemetry leaves the SoC through a USB serial adapter on the board's USB header, and that adapter has to be in the harness. Other boards have a spare header UART and setup names it for you: /dev/ttyS5 on a Radxa ZERO 3, /dev/ttyS3 on a Luckfox, /dev/ttyAMA1 on a Raspberry Pi 5.

On the flight controller side, set that UART to Serial RX, serialrx_provider = CRSF, and leave no MAVLink telemetry on it - the Hardware page's Flight controller card spells the rows for your firmware. Replace with RX packets (parameter rc_crsf_out_as_rx) matters more than it looks: besides re-addressing the frames it passes only channels and link statistics, dropping the radio's own traffic, including the packet-rate negotiation that would make Betaflight renegotiate baud and lose the link.

⚠ RC input (parameter rc_ch_source) on CRSF (ELRS) is still mandatory. The flight controller echoes its RC back either way; it just arrives on the telemetry UART now, which makes it no less an echo.

Check RC loss with either protocol. Stock Betaflight's MAVLink Serial RX receiver detects missing RC_CHANNELS_OVERRIDE frames and enters its configured RXLOSS/failsafe sequence, just as it does when CRSF frames stop. Receiving valid frames with held or centered channels can instead hide the loss of pilot input; centered sticks alone do not prove failsafe is active. Current Sokil stops forwarding RC when its input goes stale. Keep RC input (parameter rc_ch_source) on CRSF (ELRS) to prevent FC telemetry from feeding back as fresh RC, and verify loss behavior with the propellers removed.

The SFP telemetry leaf

An optional adapter - an ESP32 running Sokil's SFP reader firmware, listed under Help > Resources - reads the optical module's own diagnostics on the drone, and Sokil injects them toward the station over MAVLink: temperature, voltage, TX bias, TX and RX optical power and alarm flags, shown in the link statistics on the Status page (on the station: Status).

It is the Digital optical monitoring card on VTX settings (on the station) > Telemetry. Picking its Serial port (parameter vtx_sfp_serial) switches it on, its Baudrate (parameter vtx_sfp_baud) defaults to 115200. An open port alone does not prove that the adapter is connected (parameter vtx_sfp_running). The card shows Reader active while current adapter data and valid module diagnostics are available, No data from the adapter when data is absent or stale (the wrong port, the wrong baud rate, or an unplugged adapter), and the reader's own error when the bytes on the port are not the adapter's frames. Hardware port health and the Status card use the same freshness check. Changing the reader's port clears its counters and previous diagnostics. Leave the port empty on an aircraft with no SFP module.

The adapter is another ESP32-C3 and plugs in over USB, exactly where the CRSF ESP32 / ESP32-C3 board would go - and on a fiber camera the USB port is free, because there is no radio on this box. It enumerates as a serial device: pick it as the card's Serial port (parameter vtx_sfp_serial), then wait for the card's Reader active line - it carries the frame count - before you trust the reading.

Binding

A fiber camera has no over-the-air binding channel, so the network bind over IP is the only method - and both boxes are on one wired network anyway. Bind from the station's Status page, or turn the optional bind on at the end of the setup run.

The row that matters is the camera's Ground station IP (parameter gs_ip) (VTX settings > Connection > Link transport > Over IP): with Ethernet reception (parameter eth_vrx) on at the station the bind writes that station's own Ethernet address there, and a camera obeys control verdicts only from the station its Ground station IP names. Core's default is 10.1.1.30 - the reason to give the station that address.

Flight controller side

The full per-firmware table is in Flight controller. On ArduPilot: MAVLink 2 on the UART you wired at 115200 (SERIALn_PROTOCOL 2, SERIALn_BAUD 115), SYSID_MYGCS 255 to match the camera's GCS SysId for UAV (parameter vtx_mav_gcs_sysid) (an expert row on its MAVLink card), and - because RC rides that link - RC_OVERRIDE_TIME 3, the seconds an override stays valid before a live onboard receiver takes over. On ArduCopter, RC_FS_TIMEOUT separately sets the RC failsafe timeout (1 s by default), counted from the last RC update; RC_OVERRIDE_TIME does not replace it on a drone without a receiver. RC_OPTIONS bit 0 tells the FC to ignore its own receiver: set it only where MAVLink is this drone's only RC, and leave it 0 when a receiver is wired too. FC TX to camera RX, FC RX to camera TX: swapping them is the most common wiring mistake there is.

The fallback - feeding the FC real CRSF on an RC pad instead - needs a second port: the CRSF card's output on a serial port, its input still on UDP, the FC set to CRSF. On an MC800S-V3 that second port is the USB serial adapter on the board's USB header, /dev/ttyUSB0, which takes over the telemetry UART2 gives up - see the two-wire table above. An MC-L12B and a MINIIPC are the same: one usable UART, so the adapter goes on their USB pads or USB connector, which on a wired camera is free - there is no radio card on it. An EMAX Wyvern Link has a second UART of its own: CRSF stays on the TX RX socket (/dev/ttyS3) and telemetry moves to TX2 RX2 (/dev/ttyS2), no adapter.

First checks after Apply

  1. The camera answers at 10.1.1.40. If not, it moved - try the address you had before.
  2. On Status (on the station), the Telemetry stream shows the VTX MAVLink card running (parameter vtx_mavfwd_running) and a heartbeat from the flight controller (parameter vtx_mav_active) once the camera is up. If the heartbeat never comes, suspect the RX/TX swap first - it is the commonest cause of no heartbeat - then the MAVLink card's Baudrate (parameter vtx_mavfwd_baud), which both ends have to agree on.
  3. The Video stream shows Sokil Eye on air (parameter vtx_eye_running) and the UFEC Video card (parameter vtx_ufec_running), and video reaches the station. The UFEC MAVLink card (parameter vtx_ufec3_running) on the Telemetry stream is the same check for the telemetry stream.
  4. Move a stick and watch the FC see it. Nothing moving is the CRSF path - check that the station is aimed at this camera and that RC input (parameter rc_ch_source) is still CRSF (ELRS).
  5. On the Hardware page (on the station: Hardware) the UART2 row is green, counters moving both ways; amber "FC does not hear us" means the flight controller is heard but does not answer what we send - our TX wire is dead, on the wrong pin, or the FC ignores us. Then clear whatever Diagnostics (on the station) lists before flying.

A fielded fiber pair for comparison: the camera on 10.1.1.40 with /dev/ttyS2 at 115200 and one flat bitrate, the station decoding locally with its Pilot IP (parameter vrx_target) at 127.0.0.1 and reading the handset off a /dev/ttyACM0 adapter at 460800. Those predate the UFEC streams and aim the camera straight at the station's own wired address - a shape that flew, not one to copy.

On this page

Search the documentation

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