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