Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve NFC sniffer (PCD/PICC) ISO/IEC 14443A #19

Open
bvernoux opened this issue Jan 23, 2021 · 4 comments
Open

Improve NFC sniffer (PCD/PICC) ISO/IEC 14443A #19

bvernoux opened this issue Jan 23, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bvernoux
Copy link
Member

bvernoux commented Jan 23, 2021

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 edge

  • Channel 0 / HydraNFC v2 ST25R3916 CSO pin corresponding to ST29R3916 Digital Demodulation
    (Show Reader/Tag)
  • Channel 1 / ST25R3916 CLK/PA5 (configured at 3.39MHz based on HydraNFC v2 clock 27.12MHz)

Setup example
image

Example capture and "manual" decoding
DSView with DSLogic U3Pro16 capture of a Mifare Classic 4K
image

Picoscope capture of a Mifare Classic 1K
image

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

@gurujustin
Copy link

Is there sniffer mode in this code?

@bvernoux
Copy link
Member Author

bvernoux commented Apr 21, 2021

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

  • Waiting for contribution (No contribution since 2020...) for the ISO14443A embedded sniffer with decoder or DSView/PulseView decoder, the sniffer (dnfc2 => sniff command) is fully working with a Logic Analyzer / Oscilloscope but decoding shall be done manually today

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

@gurujustin
Copy link

could you explain in more detail?

@bvernoux
Copy link
Member Author

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

@bvernoux bvernoux changed the title Add NFC sniffer ISO14443A Add NFC sniffer (PCD/PICC) ISO/IEC 14443A Oct 15, 2021
@bvernoux bvernoux added the enhancement New feature or request label Jul 24, 2022
@bvernoux bvernoux changed the title Add NFC sniffer (PCD/PICC) ISO/IEC 14443A Improve NFC sniffer (PCD/PICC) ISO/IEC 14443A Jun 22, 2024
@bvernoux bvernoux added the help wanted Extra attention is needed label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants