Files
proxmark3/client/luascripts
abou28andClaude Opus 5.5 0f777089a4 em4x50: fix listen window sync, add runtime reader timings
Every bidirectional EM4x50 command (rdbl, info, dump, lf search) failed
on a PM3 Easy with a 500 uH antenna, while `lf em 4x50 reader` worked.
A raw ADC capture of the exchange showed RM being sent into the tag data
right after the double listen window: find_em4x50_tag() consumes the
first window, the second one is then taken as the first, and
invalid_bit() cannot reject data because its single 3/4-bit sample of
the AC-coupled, saturating signal always sits between g_Low and g_High.

- detect the second listen window by the absence of a rising edge over
  its 128-cycle low phase (Manchester data has one per bit)
- `lf em 4x50 config` (CMD_LF_EM4X50_CONFIG): threshold, pulse
  tolerance, "0" bit gap start/end and RM delay, changeable at runtime
- defaults moved to the centres of the working ranges measured with the
  new lf_em4x50_tune.lua sweep: tol 10 (5-15), gap end 38 (28-50),
  rm 132 (104-164); the old gap end 32 was 4 cycles from failing
- rdbl/info retry the login + selective read for up to 1 s
- at debug level extended the whole exchange is captured into BigBuf,
  fetch it with `data samples`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 11:51:59 +01:00
..
2021-10-10 01:35:45 +02:00
2026-04-13 09:35:02 +02:00
2021-02-19 14:20:04 +01:00
2021-02-06 22:25:51 +01:00
2021-02-06 22:25:51 +01:00
2021-02-06 22:25:51 +01:00
2021-02-06 22:25:51 +01:00
2023-01-14 22:23:40 +01:00
2024-02-16 21:59:45 +01:00
2024-02-16 21:59:45 +01:00
2021-10-10 01:35:45 +02:00
2021-04-16 17:10:08 +02:00
2023-07-09 09:43:54 +02:00
2023-01-14 22:23:40 +01:00
2021-04-16 01:08:25 +02:00
2021-04-30 11:20:03 +02:00
2025-06-19 20:26:13 +02:00
2021-04-15 22:58:16 +02:00
2021-04-16 00:23:17 +02:00
2023-10-15 17:14:56 +02:00
2021-04-16 00:23:17 +02:00
2024-01-15 13:08:55 +01:00
2020-12-30 01:31:40 +01:00
2021-12-22 21:48:25 +01:00
2024-02-09 08:47:19 +01:00
2026-08-20 10:11:42 +02:00
2025-09-02 16:16:29 +02:00
2025-07-10 11:52:39 +02:00
2025-06-19 20:26:13 +02:00
2021-10-10 01:35:45 +02:00
2025-09-02 16:16:29 +02:00
2020-10-08 21:47:54 +02:00
2026-08-19 18:48:12 +02:00
2023-06-21 18:45:59 +02:00
2025-09-02 16:16:29 +02:00
2025-07-10 11:52:39 +02:00
2021-06-04 21:58:38 +02:00
2021-10-10 01:35:45 +02:00
2025-08-24 15:44:15 -05:00