The DJI RavenEye is a handy piece of kit: mount it on a gimbal and it transmits your camera's video over Wi-Fi. The catch is that the receiving end is basically limited to DJI's own Ronin app. You can watch on a phone or tablet, but there is no official way to receive that feed on a PC, or inside your own software.

I build a camera monitor app called OpenCamMonitor, and I wanted RavenEye to be just another input in it. So I implemented the receiving side of RavenEye's protocol from scratch — no SDK, no Ronin app in between. The same implementation now runs on phones, tablets, Mac, and Windows. As far as I can tell, no other monitor app receives RavenEye directly like this.

This post is a tour of how the direct receiver works, down at the packet level.

Connecting: UDP straight to the RavenEye

A RavenEye acts as a Wi-Fi access point at 192.168.2.1. The app connects to it directly over UDP: destination port 9005 first, falling back to 9004, with the local side bound to UDP 10002.

There is no published SDK for this. The session setup, packet layout, and video reassembly all had to be implemented on the app side, based on how the device actually talks. The app's responsibility ends at session management and video reception — it does not try to control the gimbal or the camera.

One practical note: if the Ronin app is running, it has to be closed first, because the two would fight over the session. Direct reception supports one RavenEye at a time, shown alongside the app's other inputs (up to 20 in total).

The handshake: a 48-byte Open packet, and keeping the session alive

Each connection starts by picking a session ID — a random number from 1 to 65535.

The handshake is a fixed-template Open packet (48 bytes). The response is 9 bytes; if it doesn't arrive within 500 ms, the app retries, up to 3 attempts. Get the response, and the session is established.

Keeping it alive takes more work than establishing it:

  • Keepalives are sent every 0.5 s
  • The receiver returns cumulative ACKs every 20 ms
  • If no packet arrives for 4 s, the session is treated as disconnected

UDP guarantees neither delivery nor ordering, so most of the engineering went into staying connected rather than connecting.

Packet structure: 20-byte header, two kinds of error detection

Packets are a 20-byte header plus payload, up to 1472 bytes. Each carries a sequence number that increases in steps of 8, with 16-bit wraparound handled on the receiving side.

Error detection comes in two flavors:

  • An XOR checksum over the first 8 bytes of the packet for a fast sanity check of incoming data
  • CRC-16 (reflected polynomial 0x8408, initial value 0x3692) protecting control commands such as keepalives (36 bytes) and keyframe requests (33 bytes)

Worth stating plainly: there is no encryption or authentication exchange in the code. It's plaintext UDP with error detection — a pragmatic design that lets the receiver concentrate on assembling the stream correctly.

Assembling HEVC: NAL parsing and parameter set caching

The video codec is HEVC (H.265), and the data does not arrive in a form you can hand straight to a decoder. The receiver parses Annex B NAL units and reassembles them into pictures.

The critical detail is the parameter sets — VPS, SPS, and PPS — which define resolution and encoding parameters and are mandatory for the decoder. The receiver caches them and prepends them when assembling a keyframe (IDR), so the decoder can always start cleanly. A picture being assembled is capped at 2 MB; anything larger is treated as garbage and dropped rather than buffered forever.

Decoding uses each platform's standard hardware path: MediaCodec on Android, VideoToolbox on Apple platforms, and FFmpeg on Windows.

Recovering from loss: reordering and keyframe resync

Because it's UDP, packets arrive out of order — or not at all. Most visible corruption comes from exactly this, so recovery is two-layered.

Layer 1: a reorder buffer. Incoming packets are held briefly and re-emitted in sequence-number order. The hold time is 24 ms in low-latency mode and 60 ms in stability-first mode. A gap that isn't filled within that window is given up on, and the stream moves on.

Layer 2: keyframe resync. HEVC pictures reference earlier frames, so once a gap breaks the reference chain, the affected picture can't be reconstructed. The receiver discards it and re-sends a keyframe request every 200 ms, resuming from the next keyframe. The app's "resync video" button is just a manual trigger of this same mechanism.

The receiver also surfaces its own stats on screen: receive bitrate (computed every 0.5 s), unrecovered packet count, packets recovered by reordering, and frames dropped by the decoder. When the wireless link gets rough, you can see what is happening in numbers instead of guessing.

One implementation, three platforms

The receiving logic was ported as a same-named module across three codebases: Java (Android), Swift (Apple), and C# (Windows). The logic is covered by host-side verification tests — sequence wraparound, gaps expiring out of the reorder buffer, and keyframe recovery after packet loss are all exercised in tests.

On the desktop, the Mac build shares the Apple implementation via Mac Catalyst; the Windows build is .NET and needs FFmpeg separately for decoding.

Why does "watchable on a PC" matter beyond a bigger screen? Because the RavenEye feed stops being something you look at in a vendor app and becomes an input in your own workflow: it can sit in a 20-input grid next to other cameras, run through scopes and LUTs, and be cropped like any other source.

Honest status notes

One thing I want to be straight about: I don't have publishable measurements for resolution, frame rate, or latency yet, so this post makes no numbers claims about them.

The app

OpenCamMonitor is a camera monitor app for Android, iPhone, iPad, Mac, and Windows: up to 20 inputs, framing crops with presets, scopes (histogram, waveform, RGB parade, vectorscope, zebra, false color, peaking), Sony camera control, on-device recording, and a built-in LTC timecode system called Phone-TC. It's now on the App Store for iPhone and iPad, with a UI in six languages:

https://apps.apple.com/us/app/opencammonitor/id6840296589

If you've ever implemented a vendor's undocumented streaming protocol — or tried to — I'd love to hear how it went in the comments.