Open bvernoux opened 3 years ago
Is there sniffer mode in this code?
So far the sniffer code for ISO14443A is not finished (so this issue will remain open until it is implemented and fully working) See https://github.com/hydrabus/hydrafw_hydranfc_shield_v2/wiki/HydraFW-HydraNFC-v2-guide-dnfc-mode#todo
Alternative way (low level requires oscilloscope/logic analyzer) to sniff any protocol (raw mode) is to use dnfc mode with command set-nfc-obsv See https://github.com/hydrabus/hydrafw_hydranfc_shield_v2/wiki/HydraFW-HydraNFC-v2-guide-dnfc-mode#debugdeveloper-mode-for-nfc-shield-v2-with-dnfc-mode-spi-low-level see "Analog Test and Observation Register 1 (Test Output CSI/CSO)"
I can provide more details in private if you are interested in this alternative low level (requiring oscilloscope/logic analyer) until the sniffer code for ISO14443A is available
could you explain in more detail?
Please contact me by Email bvernoux@hydrabus.com (and provide details where/when you have bought HydraNFC v2 + HydraBus) I do not want to provide support about that in an issue as it is very technical and requires hardware (oscilloscope/logic analyzer HydraBus+HydraNFC v2) and knowledge on ST25R3916
Actual code provide basic low level sniffer for (PCD/PICC) ISO/IEC 14443A when using dnfc2 => sniff command
T_SNIFF (Test special sniffer ST25R3916 MCU_CLK(PA5) and CSI CSO)
It requires a Logic Analyzer or an Oscilloscope to capture the binary data then user's shall do manual decode of the PCD / PICC bit to final data. Logic Analyzer Setup: Capture trigger on Channel 0 (CSO) on rising edgeSetup example![image](https://github.com/hydrabus/hydrafw_hydranfc_shield_v2/assets/432709/6326f9be-9dc6-4f4c-8e4f-9024fb057afe)
Example capture and "manual" decoding DSView with DSLogic U3Pro16 capture of a Mifare Classic 4K![image](https://github.com/hydrabus/hydrafw_hydranfc_shield_v2/assets/432709/3242577e-8280-43a3-be23-8be411cf9523)
Picoscope capture of a Mifare Classic 1K![image](https://github.com/hydrabus/hydrafw_hydranfc_shield_v2/assets/432709/344db73e-e2a0-425d-9019-a75f49b637a0)
Any contribution is welcome for the decoder to be embedded in Firmware or done externally on PC or even better by writing a dedicated PulseView/DSView decoder