For tagType 7, when the PWD page is unset (0000) the UID-derived Amiibo
password and its PACK (0x8080) are now written into emulator memory at sim
init, and the PWD_AUTH path reads PWD and PACK straight from emulator memory.
Removes the auth-time pwd substitution and the PACK 0x8080 override, so
eset/eview are authoritative (what's in memory is what the sim serves) while
Amiibo sims still work.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- "lf cotag reader": now behaves mostly the same as "lf read",
except it is dedicated for COTAG.
- It makes sure to send COTAG start sequence and to use
real time sampling mode to get enough samples.
- "lf cotag demod": Working client-side COTAG demodulation implementation
(high-low raw demod + Manchester demodulation from high/low demod).
- Now uses samples directly from g_GraphBuffer
- Supports 3 types of COTAG preamble (1 active, 2 passive), which
can start anywhere in the samples.
- Prints full 128-bits of COTAG tag data in 3 formats: raw,
groupped by nibbles, and in hex, and identifies and
prints out the card number.
Signed-off-by: andrej@towelbyte.net
The 16-slot inventory reused the single-slot read timeout (ISO15693_READER_TIMEOUT,
~1558us) for every slot, so each empty slot waited the full window. That timeout only
needs to catch the START of a response (a SOF) within t1 (~320us)+margin -- once a SOF
is seen it stops applying and the full response is still received. Add a dedicated
ISO15693_INVENTORY_SLOT_TIMEOUT (~755us) for the inventory slot 0 + EOF slots, leaving
the single-slot and WRITE timeouts untouched.
Verified on-device via hf 15 list (carrier-period timestamps): per-slot ~1.0ms vs
~1.8ms, ~1.8x faster rounds, no tags missed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add ISO 15693 16-slot inventory with anti-collision tree-walking, reachable via 'hf 15 reader --all'; single-tag reading stays the default. The firmware steps the 16 slots with EOF markers and flags 'signal but no decode' slots as collision hints; the client walks the UID mask tree, validates CRC per slot to confirm real collisions, and dedups discovered tags. Single-tag reading (default) and 16-slot inventory (--all) both run under hf 15 reader.