How anarkiwi/samples2djidroneid works
This small command-line tool takes a complex-float32 SDR recording and prints decoded DJI DroneID frames as JSON. Its main workflow invokes an external Octave processing script to detect and extract frames, writes those frames to a temporary file, then invokes the Python decoder to parse fields and emit JSON. The detector implementation is outside this repository, so its internal stages are not represented. The README documents Occusync 2.0 decoding and sample-rate constraints; the shown source supports the orchestration and decoding links.
Main entry points: samples2djidroneid.py CLI orchestration · decode_djidroneid.py Frame decoder
Components 6
Frame workflow
- CLI orchestration
samples2djidroneid.py - Octave frame detector
- Temporary frame file
Frame decoding
- Frame decoder
decode_djidroneid.py - JSON output
Other components
- Recording operator
Connections 7
- Recording operator → CLI orchestration: provides recording
README.md - CLI orchestration → Octave frame detector: runs detector
samples2djidroneid.py - Octave frame detector → CLI orchestration: returns frames
samples2djidroneid.py - CLI orchestration → Temporary frame file: writes frames
samples2djidroneid.py - CLI orchestration → Frame decoder: runs decoder
samples2djidroneid.py - Frame decoder → Temporary frame file: reads frames
decode_djidroneid.py - Frame decoder → JSON output: prints JSON
decode_djidroneid.py