Commit Graph
20 Commits
Author SHA1 Message Date
dxl dabf1a415f Use a more thorough NFC peripheral reset strategy. 2025-09-23 11:08:27 +08:00
TeCHiScyandGitHub 098e0a914b feat: add lf HIDProx read, t55xx write, emulate function (#267)
* feat: add lf HIDProx read, t55xx write, emulate function

code quaility:
- consistance: simulation -> emulation, label -> tag
- machine translated unreadable comments are made native

logic:
- newly added cli command includes: `lf hid prox read`, `lf hid prox write`, `lf hid prox econfig`
- machester demodulator is simplified
- various wiegand formats of HIDProx are supported
- goertzel algorithm is used in  HIDProx FSK demod
- lf read is refactored using stream/feed pattern to boost scan speed
- t55xx write is refactored to share same logic between em410x & HIDProx
- lf emulating is refactored to use PWM peripheral, allowing more card type to be added

closes: #212, #210

* chore: remove not implemented wiegand format comments

* fix: build ci

* fix: build ci

* fix: build ci

* fix: build ci
2025-08-04 07:01:53 +02:00
dxl 98605be5b8 Fixed some bugs caused by closing pairing. 2023-09-14 10:52:05 +08:00
dxl b3e0afc555 Enable BLE pairing by setting and disable by default. 2023-09-07 20:04:24 +08:00
dxl 2a98245700 Security BLE implemented 2023-08-28 01:40:04 +08:00
dxl ecec3c4e59 Fix compiler 2023-08-28 01:35:07 +08:00
Philippe Teuwen 2ba2ca92fd More Chinese (auto) translation 2023-08-25 19:40:46 +02:00
Philippe Teuwen 8d5643d1e9 Add option to enable sdk_validation.h 2023-08-21 01:02:52 +02:00
Philippe Teuwen 505ddc8c51 Remove old compilation artefacts 2023-08-21 00:37:10 +02:00
Philippe Teuwen e474e519df Revert workaround for WDT during emulation and fix SDK NFC IRQ handler 2023-08-20 11:43:23 +02:00
Philippe TeuwenandGitHub 8879460e10 Merge branch 'main' into hw-slot-info 2023-08-20 00:11:42 +02:00
Philippe Teuwen 94a0206635 Workaround to prevent watchdog trigger during emulation. But there seems to be a deeper issue:
Once an external HF field is detected, when a first byte is received, then NFC IRQ is called non-stop.
But none of the conditions in nrfx_nfct_irq_handler() is met so the handler does nothing and there is no chance to get called from a registered callback.
Side effect is that main loop cannot run, button IRQs are called but button processing in main loop is not called, etc.
So one of the side effects is that bsp_wdt_feed() is not called.
Current workaround is to call bsp_wdt_feed() at the end of nRF SDK nrfx_nfct.c nrfx_nfct_irq_handler()
I suspect the hack of the NFC state machine done in nfc_14a.c nfc_tag_14a_event_callback() case NRFX_NFCT_EVT_FIELD_DETECTED
to get access to the anticollision phase is breaking sth in the SDK state machine, NFC IRQ should be called only on real change (field drop, cmd received,...)
2023-08-20 00:00:25 +02:00
Foxushka 151f412490 Implement new Mifare Classic emulator configuration commands, improve CLI
Slot

Won't work like this

More randomness on nested auth (for hardnested recovery) and change default GCC location

Nobody will have GCC in this default location, /usr/bin/ will target way more users

Get enabled slots command

hw slot list show disabled slots

Improve python code quality

Show Mifare Classic emulator settings in hw slot list

Implement hf mf settings to change Mifare Classic emulator settings

Update
2023-08-19 20:59:39 +03:00
Philippe Teuwen 92a3f0966f suppress GCC warnings in nRF SDK and restore -Warray-bounds and -Wsizeof-array-div 2023-08-16 23:26:30 +02:00
derGraphandGitHub ccb08bb4eb Merge branch 'RfidResearchGroup:main' into main 2023-06-09 20:54:34 +02:00
dxl d5c0d9a63a if inactivity timeout, we can shutdown system, to protect battery. 2023-06-06 20:24:54 +08:00
ShigemoriHakura 115904a202 Merge main branch codes 2023-06-01 04:09:13 +08:00
derGraph 0633da153a Update to gcc version 10.3.1 2023-05-22 09:14:08 +02:00
ShigemoriHakura 11c102715e for vscode makefile and pyinstaller gitignore 2023-04-22 14:33:10 +08:00
dxl ad331a0f0a move some resource. 2023-03-14 15:37:17 +08:00