Niel Nielsen
d4e375f50b
Move all bmw commands to subgroups
...
hw bwmautooff hw bwm autooff
hw bwmcharge hw bwm charge
hw bwmsetcap hw bwm setcap
hw bwmupgrade hw bwm upgrade
hw bwmvchg hw bwm vchg
hw bwmwifi hw bwm wifi
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 11:57:28 +02:00
Niel Nielsen
5f56828912
Change BWM OTA baud rate from 921600 to 460000
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 10:05:50 +02:00
Niel Nielsen
14df0485e8
Update bwm_wifi.h
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 10:03:04 +02:00
Niel Nielsen
beb5ee7106
Update BWM_OTA_BAUD to 115200
...
Changed the OTA baud rate to a slower, more reliable speed.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:58:40 +02:00
Niel Nielsen
9d12204135
Change BWM_OTA_CHUNK_MAX to 240
...
Updated maximum firmware bytes per WRITE action from 2048 to 240.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:56:04 +02:00
Niel Nielsen
edd5ada64a
Increase response timeout and update comments in cmdhw.c
...
Increase timeout for response when querying BWM version and adjust comments for clarity.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:47:35 +02:00
Niel Nielsen
7e30a10bd4
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-04 09:46:05 +02:00
Niel Nielsen
81a3c61058
Add progress bar and write delay to OTA function
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:31:47 +02:00
Niel Nielsen
afcfa2168b
Update print statement from 'Hello' to 'Goodbye'
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:28:36 +02:00
Niel Nielsen
fa9691d8d0
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:25:33 +02:00
Niel Nielsen
1f6e4eed00
Uncomment clearCommandBuffer() for OTA command
...
Uncommented the clearCommandBuffer() function to ensure the command buffer is cleared before sending OTA commands.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:22:41 +02:00
Niel Nielsen
fa7aa4e594
Increase PM3_FPC_MAX_DATA from 2048 to 240
...
240 seems the best choise
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:17:49 +02:00
Niel Nielsen
ef09ab673b
Update BWM_OTA_CHUNK_MAX to allow larger firmware writes
...
Increased the maximum firmware bytes per WRITE action from 196 to 2048.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:15:11 +02:00
Niel Nielsen
c1d47f2be9
Reduce BWM_OTA_CHUNK_MAX from 240 to 196
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:10:45 +02:00
Niel Nielsen
36d2ab1198
Refactor OTA handling and improve timeout duration
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 09:02:09 +02:00
Niel Nielsen
dd35afc886
Update cmdhw.c
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:54:57 +02:00
Niel Nielsen
1c2a42321a
Removed possible unnessecary clearCommandBuffer();
...
Removed redundant clearCommandBuffer() calls during OTA process.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:48:14 +02:00
Niel Nielsen
803856343c
Clean up comments in bwm_wifi.c
...
Removed comments regarding CMD_ERROR handling and ESP log message processing.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:41:30 +02:00
Niel Nielsen
f5029c265f
Increase BWM_OTA_CHUNK_MAX from 236 to 240
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:31:54 +02:00
Niel Nielsen
c4cc31e06b
Reduce BWM_OTA_CHUNK_MAX from 248 to 236
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:27:17 +02:00
Niel Nielsen
857a85557a
Reduce BWM_OTA_CHUNK_MAX from 264 to 248
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:22:58 +02:00
Niel Nielsen
dec0185b5a
Increase BWM_OTA_CHUNK_MAX from 240 to 264
...
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 08:18:39 +02:00
Niel Nielsen
73a3c85f2c
Fix: ROERR handling
...
On the AT32, an unhandled UART overrun (ROERR) latches: one overrun stops the USART feeding the DMA, every ack after it is lost, and only a re-init clears it.
Signed-off-by: Niel Nielsen <nieldk@gmail.com >
2026-09-04 06:21:20 +02:00
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