Commit Graph
22521 Commits
Author SHA1 Message Date
Philippe Teuwen 7fb8927523 Fix streaming bug affecting mostly the pm5
Bug triggered with:
lf read -s 50000
hw ping

ReadLF_realtime() in lfsampling.c never knew how many samples the client wanted — for the realtime path, lf_sample_payload_t.samples was never populated on the client side, and the ARM handler in appmain.c (CMD_LF_ACQ_RAW_ADC/CMD_LF_SNIFF_RAW_ADC) ignored it anyway. So the device just streamed samples indefinitely, only checking for a stop request roughly once per 64-sample USB burst, and even after noticing it, flushed one more trailing partial burst via async_usb_write_stop().

Meanwhile the client (WaitForRawDataTimeout in comms.c) stops listening in raw mode the instant it has collected exactly the number of bytes it asked for (e.g. 50000), then switches back to normal framed-packet parsing. Since the device kept sending more bytes past that point, those extra bytes sat unread in the pipe and got misinterpreted as a PacketResponseNGPreamble/OLD-frame header, corrupting every subsequent USB exchange (hw ping, etc.) — reproducible even with a plain lf read -s 50000, no trigger/COTAG needed.

Moreover, we make sure the client doesn't stop listening, even briefly, during stream reception.
2026-08-26 20:16:46 +02:00
kormax 727a7c879f Optimize FeliCa command execution behavior based on pre-existing IC code knowledge 2026-08-26 17:35:22 +02:00
Philippe Teuwen 18bc735822 ARM: err on more warnings 2026-08-26 17:19:13 +02:00
quantum-x 9d2598aecb Update README.md
Added clarity to PR

Signed-off-by: quantum-x <simon.yorkston@gmail.com>
2026-08-26 16:28:48 +02:00
quantum-x 8fd64488e2 Update README.md / Clarify iCopy-X
Tweaked README.md to reflect the updated iCopy-X situation. 
Devices running the Open Source firmware are 100% compatible with latest iceman firmware / no DRM / etc. 

Signed-off-by: quantum-x <simon.yorkston@gmail.com>
2026-08-26 16:28:48 +02:00
Philippe Teuwen 0c8005b9c1 Remove inline keyword to fix compiler warning about it not being fulfilled anyway 2026-08-26 16:26:48 +02:00
Philippe Teuwen d6c28f7c90 minor 2026-08-26 16:26:05 +02:00
Philippe Teuwen 9c6ca6be4a Add missing prototype 2026-08-26 16:24:44 +02:00
Niel Nielsen e71f37ef32 Remove WITH_BWM_FORWARD from PLATFORM_DEFS
Removed the conditional definition for WITH_BWM_FORWARD in PLATFORM_DEFS.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 3156f0bfd7 Add ble_posix.c to CMakeLists.txt
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen c5c53d444f Increase RX buffer size and improve comments
Enlarged the kernel RX buffer and updated comments for clarity.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 46ab575247 Implement BLE support in uart_posix.c
Added BLE support to serial port handling for Unix systems, including connection and data transmission methods.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen d573ebc624 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 93434d0ee6 Delete client/src/ble_posix.h
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 47574c2e02 Delete client/src/ble_posix.c
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 3c8b9db0b8 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 6e741fa9e9 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen d0fc4336be Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen ec6f468f36 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 5560b2dbbe Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 7f9619eb7d Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen fc2fcc890c Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen a82c6e4fe9 Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Niel Nielsen 3553836b7c Add files via upload
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-26 16:07:37 +02:00
Iceman 48458b6ba7 Merge pull request #3527 from kormax/felica-info-auth-idi-pmi
Determine IDi and PMi in `hf felica info` for cards with known keys
2026-08-26 18:15:00 +07:00
kormax f3bca6c291 Determine IDi and PMi in 'hf felica info' for cards with known keys 2026-08-26 11:34:57 +03:00
Iceman 1c9ade5a95 Merge pull request #3526 from xianglin1998/fpgac-cfg-check-size
Check the file size when configuring the fpga.
2026-08-26 13:42:40 +07:00
Iceman 775c16c716 Merge pull request #3525 from xianglin1998/remove-swap-clocks
Remove swap_clocks()
2026-08-26 13:42:11 +07:00
dxl 1c9c84c6d7 Check the file size when configuring the fpga. 2026-08-26 13:17:22 +08:00
dxl 390b267a94 Remove swap_clocks(). 2026-08-26 11:50:06 +08:00
dxl 16f622d907 Update comment for StopTicks() 2026-08-26 11:45:05 +08:00
Iceman c966a54755 Merge pull request #3524 from nieldk/battery-health
hw status: add battery health (BWM)
2026-08-26 05:02:54 +07:00
Niel Nielsen 33be9870e1 Merge branch 'RfidResearchGroup:master' into battery-health 2026-08-25 23:02:18 +02:00
Niel Nielsen d2f82a5cd9 ADD battery drain to hw status
Battery SoC......... 54 %
  Battery voltage..... 3919 mV
  Battery current..... -72 mA (discharging)
  Remaining capacity.. 255 mAh
  Battery drain....... 72 mA (approx 3 h 32 min left)      ← new
  Temp (gauge)........ 54.5 C
  Full charge cap..... 480 mAh (design 500)
  Battery health...... 96 % (needs a full cycle to be accurate)


Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-25 23:01:04 +02:00
Iceman dc21efd3da Merge pull request #3523 from RfidResearchGroup/cleanticks
Cleaning some lf_finalize <> StartTicks <> StopTicks
2026-08-26 02:03:24 +07:00
Niel Nielsen c65cb3c600 Define BWM_GAUGE_FCC and calculate battery health
Added FullChargeCapacity definition and battery health calculation.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-25 21:02:11 +02:00
Philippe Teuwen 4001b11d9c Cleaning some lf_finalize <> StartTicks <> StopTicks 2026-08-25 19:30:43 +02:00
Iceman 3eb0d1c785 Merge pull request #3496 from xianglin1998/lfadc_clear
lfadc HAL is completed, some remark and unused code can be deleted.
2026-08-25 22:13:29 +07:00
dxl 2c00832d09 Upload AMASS_ICX301PT_SPEC.pdf 2026-08-25 17:04:52 +02:00
dxl 25229b39b3 Refer to AMASS_ICX301PT_SPEC.pdf 2026-08-25 17:04:52 +02:00
dxl 78184b23ea Updated docs for PM5 2026-08-25 17:04:52 +02:00
Iceman edd91c86ea Merge pull request #3521 from nieldk/Banner
Client: Reflect PM5 in the CLI prompt
2026-08-25 20:16:40 +07:00
Niel Nielsen 14f2980687 Add device name to prompt composition
Include device name in prompt composition.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-25 14:07:34 +02:00
Niel Nielsen 40e308249a Update PROXPROMPT_COMPOSE format to include command
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
2026-08-25 14:06:39 +02:00
Iceman 0a9b81421a Merge pull request #3520 from Akury83/master
Update aid_desfire.json
2026-08-25 19:02:38 +07:00
Akury83 7168cb25c6 Update aid_desfire.json
Update to include Fermax Australia AID

Signed-off-by: Akury83 <87064827+Akury83@users.noreply.github.com>
2026-08-25 21:33:32 +10:00
Philippe Teuwen b5b39cdcf3 pm5 todo for hw tune 2026-08-25 13:27:43 +02:00
Philippe Teuwen 47b4ea58ee minor doc fixes 2026-08-25 13:20:49 +02:00
Iceman 56d1a12934 Merge pull request #3518 from xianglin1998/update-power-architecture-pic
Updated power-architecture.png for PM5
2026-08-25 18:14:13 +07:00
dxl 893d8a6f78 Rename ePassport launcher to ePassport.py to avoid case collision
The launcher script tools/ePassport/ePassport and the package directory tools/ePassport/epassport/ differ only in case, so on case-insensitive filesystems (Windows) they occupy the same path and a fresh clone reports the tracked script as deleted. Rename the launcher to ePassport.py and update the Makefile run target, the README, and the python3 -m epassport shim docstring.
2026-08-25 13:13:21 +02:00