Skip to content

Hf sniff renamed to hf trace#433

Open
nieldk wants to merge 8 commits into
RfidResearchGroup:mainfrom
nieldk:HF-sniff
Open

Hf sniff renamed to hf trace#433
nieldk wants to merge 8 commits into
RfidResearchGroup:mainfrom
nieldk:HF-sniff

Conversation

@nieldk
Copy link
Copy Markdown
Contributor

@nieldk nieldk commented May 24, 2026

Hf sniff renamed to hf trace.
Added option for saving/loading captured data

nieldk added 7 commits May 15, 2026 12:57
Fix indentation in exception handling block and remove commented-out code.
[chameleon] hf 14a sniff --timeout 10000 --save mycap.cusn
   ...captures and displays live, also writes mycap.cusn...

[chameleon] hf 14a sniff-load -i mycap.cusn
   ...re-displays the saved capture offline, no device needed...

[chameleon] hf 14a sniff-export-pm3 -i mycap.cusn -o mycap.trace
   ...converts to pm3 trace format...

On PM3 device (for test)

pm3 --> trace load -f mycap.trace
pm3 --> hf 14a list



Heads-up on the pm3 format: the trace format I implemented is a best-guess for Iceman fork. If pm3 still errors on the converted file, this is the function to tweak: write_pm3_trace() in hf14a_sniff_io.py. The most likely fixes if it doesn't load:

Try --magic NONE to skip the magic bytes (some pm3 versions auto-detect format)
Endianness or field-order in the per-frame header, check pm3's cmdtrace.c source for tracelog_hdr_t or similar struct definitions
Timestamp scale, I used 13.56 MHz / 16 (847.5 kHz, ~1.18μs/tick); some pm3 versions use raw 13.56 MHz ticks
@github-actions
Copy link
Copy Markdown

You are welcome to add an entry to the CHANGELOG.md as well

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 24, 2026

Built artifacts for commit 6e5c73a

Firmware

Client

@LupusE
Copy link
Copy Markdown
Contributor

LupusE commented May 24, 2026

I followed the discussion at discord. Legit change to me, to make more clear what the feature does. Similar to PM3 functions.

Copy link
Copy Markdown
Contributor

@LupusE LupusE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment before

ADD pm3 trace export/import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants