Skip to content

Commit 7821408

Browse files
committed
docs: add protocol exploration section to README
Document the raw command and scan-commands.sh script usage for bootloader protocol analysis. Signed-off-by: Vincent Jardin <vjardin@free.fr>
1 parent c15bf25 commit 7821408

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,34 @@ Examples:
188188
radfu -u -p /dev/ttyUSB0 info
189189
```
190190

191+
## Protocol Exploration
192+
193+
The `raw` command allows sending arbitrary bootloader commands for protocol analysis:
194+
195+
```sh
196+
# Send signature request (0x3A)
197+
radfu raw 0x3A
198+
199+
# Send area info request for area 0
200+
radfu raw 0x3B 0x00
201+
```
202+
203+
A scanning script is provided to iterate through all bootloader commands:
204+
205+
```sh
206+
# Scan known commands with full details
207+
./scripts/scan-commands.sh -k
208+
209+
# Scan all commands 0x00-0x7F
210+
./scripts/scan-commands.sh -a
211+
212+
# Scan specific range with verbose output
213+
./scripts/scan-commands.sh -v -r 0x30-0x40
214+
215+
# Query single command with data
216+
./scripts/scan-commands.sh -c "0x3B 0x00"
217+
```
218+
191219
## Supported Baud Rates
192220

193221
When using UART (not USB), the following baud rates are supported:

0 commit comments

Comments
 (0)