Complete and working reimplementation of COTAG support

- "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
This commit is contained in:
towelbyte committed 2026-06-12 22:49:06 +02:00
1 parent f6d5a1fc70
commit c1cefd6e38
10 files changed
+576 -20

No files matched your search

+1 -1
View File
@@ -27,6 +27,6 @@
#endif
int CmdLFCOTAG(const char *Cmd);
int demodCOTAG(bool verbose);
int demodCOTAG(bool verbose, int clock, int threshold);
int readCOTAGUid(void);
#endif