lf cotag sim: COTAG simulation improvements

- Implemented passive mode for COTAG sim:
- load modulation with an fc/2 subcarrier locked to the reader carrier.
    - This mode is now a default as it has several advantages:
        - phase coherent response,
        - can detect reader field drop mid frame "transmission" and restart
          immediately -- important with some readers that may drop field
          early and send reactivation shortly afterwards expecting the
          tag to respond there as well.

- "active tx mode" is now via CLI toggle --active: it may give better range,
but may not work with all readers.

- Improved COTAG activation sequence detection for a wider range of COTAG
readers that may vary slightly in activation sequence timings (thresholds
for the rise-to-rise mode).
This commit is contained in:
towelbyte committed 2026-11-08 13:10:45 +01:00
1 parent 3810eee3e0
commit 93631d06d7
3 files changed
+153 -22

No files matched your search

+1
View File
@@ -390,6 +390,7 @@ typedef struct {
uint16_t hb_delay_us; // optional custom half bit delay [us]
uint8_t repeats; // repeat data frame this many times per answer
bool verbose;
bool active; // transmit 66 kHz instead of load modulating at reader carrier / 2
uint8_t nbits; // number of data bits
uint8_t data[LF_COTAG_SIM_DATA_LEN];
} PACKED lf_cotagsim_t;