How bear2305/fakesensor works
This repository is an ESP32/Wokwi fake fingerprint sensor that lets a master board use the Adafruit fingerprint protocol without physical sensor hardware. The principal workflow is: the master sends UART commands, the emulator parses and dispatches them, switch inputs supply a simulated finger identity, and command handlers return status or template data while maintaining buffers and stored templates. The README documents enrollment, search, template transfer, password protection, database management, and diagnostics. The sampled source shows dispatch and several handlers; links for omitted internals are not asserted.
Main entry points: claude1_chip.cpp Command dispatcher
Components 11
Protocol runtime
- UART parser
wokwi custom chip/claude1_chip.cpp - Command dispatcher
wokwi custom chip/claude1_chip.cpp - Packet responses
wokwi custom chip/claude1_chip.cpp
Sensor emulation
- Finger capture
wokwi custom chip/claude1_chip.cpp - Enrollment and matching
wokwi custom chip/claude1_chip.cpp - Template database
wokwi custom chip/claude1_chip.cpp - Template transfer
wokwi custom chip/claude1_chip.cpp - Device management
wokwi custom chip/claude1_chip.cpp - Diagnostics
wokwi custom chip/claude1_chip.cpp
Other components
- Master board
- Finger switches
Connections 15
- Master board → UART parser: sends UART commands
README.md - Finger switches → Finger capture: set simulated identity
wokwi custom chip/claude1_chip.cpp - UART parser → Command dispatcher: dispatches parsed commands
wokwi custom chip/claude1_chip.cpp - Command dispatcher → Finger capture: routes capture
wokwi custom chip/claude1_chip.cpp - Command dispatcher → Enrollment and matching: routes operations
wokwi custom chip/claude1_chip.cpp - Command dispatcher → Template transfer: routes transfers
wokwi custom chip/claude1_chip.cpp - Command dispatcher → Device management: routes management
wokwi custom chip/claude1_chip.cpp - Command dispatcher → Diagnostics: routes diagnostics
wokwi custom chip/claude1_chip.cpp - Enrollment and matching → Template database: stores and searches
wokwi custom chip/claude1_chip.cpp - Template transfer → Template database: transfers stored templates
wokwi custom chip/claude1_chip.cpp - Finger capture → Packet responses: returns capture status
wokwi custom chip/claude1_chip.cpp - Enrollment and matching → Packet responses: returns operation results
wokwi custom chip/claude1_chip.cpp - Template transfer → Packet responses: sends template packets
wokwi custom chip/claude1_chip.cpp - Device management → Packet responses: returns status
wokwi custom chip/claude1_chip.cpp - Packet responses → Master board: replies over UART
README.md