doc/standalone/hf_legicsim.md
Author: uhei Frequency: HF (13.56 MHz) Hardware: RDV4 (requires flash memory)
Back to Standalone Modes Index | Source Code | Development Guide
Simulates Legic Prime MIM1024 dumps stored on flash memory. Supports up to 15 dump slots that can be cycled through. Changes made by readers during simulation are written back to the dump.
When you need to emulate multiple Legic Prime cards on-site — for example, testing which credentials grant access to different areas. The 15-slot capacity and flash persistence means dumps survive power cycles.
hf_legicsim_dump_01.bin)| LED | Meaning |
|---|---|
| LEDs (1–15) | Current slot number indication |
| Action | Effect |
|---|---|
| Short press | Next dump slot |
| Hold 500ms | Exit standalone mode |
stateDiagram-v2
[*] --> LoadSlot1 : Startup
LoadSlot1 --> Simulate : Dump loaded
Simulate --> WriteBack : Simulation stopped
WriteBack --> LoadSlot2 : Short press\nSave changes, next slot
LoadSlot2 --> Simulate : Dump loaded
Simulate --> [*] : Hold 500ms
note right of Simulate
Slots 01-15
Files: hf_legicsim_dump_XX.bin
Each 1024 bytes (MIM1024)
end note
Upload dumps before use:
mem spiffs load -s hf_legicsim_dump_01.bin -d hf_legicsim_dump_01.bin
mem spiffs load -s hf_legicsim_dump_02.bin -d hf_legicsim_dump_02.bin
...
Each file is 1024 bytes (Legic Prime MIM1024 dump).
make clean
make STANDALONE=HF_LEGICSIM -j
./pm3-flash-fullimage