Niel Nielsen
9944e4d161
Implement progress bar for OTA updates
...
Add progress bar and enhance OTA update handling
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 21:23:26 +02:00
Niel Nielsen
6b41421a4f
Implement CmdBWMUpgrade function for firmware updates
...
Refactor BWM firmware upgrade process and improve error handling.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 21:14:42 +02:00
Niel Nielsen
121408f652
Merge branch 'RfidResearchGroup:master' into BWM-work
2026-09-03 20:07:49 +02:00
iceman1001
50c1c72136
added some sample dump files and trace file for hitag2
2026-09-03 19:35:58 +02:00
iceman1001
1b631a288a
text output
2026-09-03 19:31:56 +02:00
iceman1001
12bd5736ad
renamed script
2026-09-03 19:23:39 +02:00
Niel Nielsen
55424947ea
Merge branch 'RfidResearchGroup:master' into BWM-work
2026-09-03 19:22:22 +02:00
iceman1001
a7918d5135
style
2026-09-03 18:30:00 +02:00
iceman1001
d397e62665
bad compare signed
2026-09-03 18:29:01 +02:00
iceman1001
6616e939f7
the changes to the PM5 button press influenced PM3 button press to enter bootloader. This make sure to seperate those two behaviors from eachother on each device platform
2026-09-03 18:26:09 +02:00
iceman1001
b0c1e42720
textual changes and layout changes to 'lf hitag list'. Now it is more uniform with the rest of the annotation formats
2026-09-03 18:15:44 +02:00
Niel Nielsen
a0f6efd70a
Merge branch 'RfidResearchGroup:master' into BWM-work
2026-09-03 17:52:50 +02:00
Niel Nielsen
e65238dbd4
Implement BWM firmware version retrieval
...
Added functionality to read and print the BWM firmware version.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 17:17:22 +02:00
iceman1001
54bbff4c8c
hf mad: fix aarch64 -Wstringop-overflow false positive in mad encode
...
GCC on aarch64 vectorizes the sector fill loop in parse_sector_ranges()
into 16-byte NEON stores. When it versions the loop it loses the range
relationship between count and max_sectors, and reports a 16-byte store
into the last 8 bytes of sectors[40]. The code was correct; the guard
was there. Does not reproduce on x86-64 gcc 14.
Accumulate sectors in a uint64_t bitmask instead of an array, so there
is no store for -Wstringop-overflow to mis-size on any target. Sector
numbers are already validated to 1..39, so the bound check is no longer
needed. Supersedes the sectors[48] padding, which only absorbs a
16-byte vector and would regress on wider ones.
Side effect: duplicate sectors within a single --aid argument now
dedupe instead of erroring (E103:1-3,2 encodes 1-3). Conflicts between
different --aid arguments still error.
2026-09-03 16:55:15 +02:00
Niel Nielsen
c20d1491f5
Rename printprogress to progressbar
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 15:50:55 +02:00
Niel Nielsen
23eba9491c
Change printprogress to static and rename function
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 15:48:36 +02:00
Niel Nielsen
1bcae500fb
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 15:43:39 +02:00
Niel Nielsen
2052dfedd9
Merge branch 'RfidResearchGroup:master' into BWM-work
2026-09-03 15:23:32 +02:00
Niel Nielsen
76e88f3d5d
Add write delay parameter to bwm_ota_once function
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 15:14:43 +02:00
Niel Nielsen
c4d4bdc99e
Refactor OTA command handling and adjust sleep duration
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 15:08:06 +02:00
iceman1001
08a31f01db
client now supports tilde sign '~/´ in paths
2026-09-03 14:59:37 +02:00
Niel Nielsen
b8d31f0a81
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 14:43:38 +02:00
Niel Nielsen
e2e0dabe3d
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 14:26:36 +02:00
Niel Nielsen
21009dfc37
Increase sleep duration from 10ms to 20ms
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 14:18:50 +02:00
Niel Nielsen
af0116bcfa
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 14:04:50 +02:00
Niel Nielsen
8cb8e6d7c0
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 14:01:17 +02:00
Niel Nielsen
1e2faf0e6c
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 13:59:14 +02:00
Niel Nielsen
a911333c61
Extend sleep time during device reboot process
...
Increased sleep duration to allow for a longer reboot and re-negotiation period.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 13:37:48 +02:00
Niel Nielsen
7c6153d42b
Add debug sleep for USB timeout in cmdhw.c
...
Added a sleep function for USB timeout debugging.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 13:27:06 +02:00
Niel Nielsen
e05af0eea7
Refactor OTA reboot handling in cmdhw.c
...
Removed redundant reboot command and adjusted logging.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 13:04:59 +02:00
Niel Nielsen
d9d26abeaa
Handle OTA actions and improve response logic
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 13:03:55 +02:00
Niel Nielsen
0245e99fde
Add new OTA action definitions
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 12:58:44 +02:00
Niel Nielsen
c98e5fe69f
Refactor OTA finalize and version check logic
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 12:53:46 +02:00
Niel Nielsen
8237ac2cb8
Add function to get ESP firmware version
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 12:52:54 +02:00
Niel Nielsen
97d6dcd274
Add version info command and function declaration
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 12:52:21 +02:00
Niel Nielsen
24e4181907
Merge branch 'RfidResearchGroup:master' into BWM-work
2026-09-03 12:50:56 +02:00
Niel Nielsen
266033d7a8
Add newline at end of bwm_uart_at32.c
...
Fix formatting issue by adding a newline at the end of the file.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 12:18:15 +02:00
Niel Nielsen
1c184f4028
Decrease BWM_OTA_CHUNK_MAX from 256 to 240
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 11:49:39 +02:00
Niel Nielsen
9f265e81ea
Define BWM_OTA_ACTION_ABORT for OTA commands
...
Add BWM_OTA_ACTION_ABORT constant for OTA actions.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 11:07:18 +02:00
Niel Nielsen
224cf4ad0b
Fix OTA action handling in appmain.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 11:05:48 +02:00
Niel Nielsen
365fade8dd
Add OTA abort function to bwm_wifi.h
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 11:00:53 +02:00
Niel Nielsen
c75f4640df
Implement OTA end and abort handling in bwm_wifi
...
Added functions to handle OTA end and abort scenarios, including restoring baud rate and log forwarding.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 11:00:29 +02:00
Niel Nielsen
cac9e2d4cc
Implement OTA abort handling in cmdhw.c
...
Added logic to restore fast link and log OTA abort action on firmware update failure.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 10:59:52 +02:00
Niel Nielsen
339f528bba
Refactor BWM firmware upgrade process
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 10:45:06 +02:00
Niel Nielsen
0dfcb72206
Enhance documentation for OTA write function
...
Added comments to clarify OTA write behavior and timeout handling.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 10:44:08 +02:00
Niel Nielsen
d4427d3da5
Adjust OTA timeouts and restore log forwarding
...
Increased timeout values for OTA write and end commands, and restored log forwarding after OTA.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 10:21:42 +02:00
Iceman
130219fb99
Merge pull request #3588 from mfcarroll/agents-md
...
AGENTS.md: say what new comments should look like and add checklist line
2026-09-03 14:53:21 +07:00
Niel Nielsen
01f03609e4
Update bwm_wifi.h
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 09:53:09 +02:00
Niel Nielsen
0b936d2610
Enhance logging during OTA for better diagnostics
...
Added logging for ESP output during OTA process to aid in debugging.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-03 09:52:51 +02:00
Iceman
2475ed7ea9
Merge pull request #3564 from digitalhoax/feature/hf-legic-rdv4
...
Add Legic Prime 7-slot RDV4 standalone mode (HF_LEGIC_RDV4)
2026-09-03 14:52:42 +07:00