How nemo-lab-repo/cellninjia_desktop works
CellNinjia Desktop captures modem diagnostics over USB serial, then either saves raw bytes for later decoding or decodes frames during capture. The decoder preprocesses HDLC-style frames and dispatches messages to the ASN.1 decoding library, which exposes LTE and 5G message decoders. The README also documents NAS, RRC, PDCP, RLC, MAC, and physical-layer coverage; those capabilities are represented at protocol-family level because their implementations live in the library under lib and were not sampled. Edges reflect shown calls or README-documented workflows.
Main entry points: lib ASN.1 decode engine · main.cpp Serial collector · decode.cpp Offline decoder CLI · decode_preprocess.cpp Frame preprocessing
Components 15
Capture and configuration
- Serial collector
src/main.cpp - Diagnostic configuration
src/decode_preprocess.cpp - Raw capture file
Frame processing
- Frame preprocessing
src/decode_preprocess.cpp - Live decode output
Protocol decoding
- ASN.1 decode engine
lib - NAS messages
include/asn1/host.h - RRC messages
include/asn1/host.h - PDCP and RLC
include/asn1/host.h - MAC and physical
include/asn1/host.h - LTE message decoders
include/asn1/host.h
Offline analysis
- Offline decoder CLI
tools/decoder/decode.cpp - Decoded output file
Other components
- Researcher
- Diagnostic modem
Connections 17
- Researcher → Serial collector: configures capture
README.md - Diagnostic modem → Serial collector: sends diagnostics
README.md - Serial collector → Diagnostic configuration: requests configuration
src/main.cpp - Diagnostic configuration → Diagnostic modem: sends message mask
src/decode_preprocess.cpp - Serial collector → Raw capture file: writes raw bytes
src/main.cpp - Serial collector → Frame preprocessing: passes live bytes
src/main.cpp - Frame preprocessing → ASN.1 decode engine: dispatches message
src/decode_preprocess.cpp - ASN.1 decode engine → Live decode output: prints decoded data
README.md - Researcher → Offline decoder CLI: starts batch decode
README.md - Raw capture file → Offline decoder CLI: provides input
README.md - Offline decoder CLI → Frame preprocessing: passes file bytes
tools/decoder/decode.cpp - Offline decoder CLI → Decoded output file: redirects output
tools/decoder/decode.cpp - ASN.1 decode engine → NAS messages: decodes family
- ASN.1 decode engine → RRC messages: decodes family
- ASN.1 decode engine → PDCP and RLC: decodes family
- ASN.1 decode engine → MAC and physical: decodes family
- ASN.1 decode engine → LTE message decoders: decodes family