Skip to content

Commit 777ebbf

Browse files
authored
Refactor YMODEM usage commands and update limits
Updated command references from 'VanMooof-Module' to 'cmd' for consistency across usage examples. Adjusted PACK file size limit from 64MB to 2MB to reflect chip constraints.
1 parent 0db0f69 commit 777ebbf

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

YMODEM_USAGE.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,30 @@ This tool now supports uploading PACK files to VanMoof modules via Y-Modem proto
1515

1616
### List Available Serial Ports
1717
```bash
18-
./VanMooof-Module -list-ports
18+
./cmd -list-ports
1919
```
2020

2121
### Upload PACK File
2222
```bash
2323
# Upload with auto-detected default port (always 115200 baud)
24-
./VanMooof-Module -upload "pack.bin"
24+
./cmd -upload "pack.bin"
2525

2626
# Windows - Upload with custom port
27-
./VanMooof-Module -upload "pack.bin" -port COM5
27+
./cmd.exe -upload "pack.bin" -port COM5
2828

2929
# macOS - Upload with USB serial adapter
30-
./VanMooof-Module -upload "pack.bin" -port /dev/tty.usbserial-0001
30+
./cmd -upload "pack.bin" -port /dev/tty.usbserial-0001
3131

3232
# Linux - Upload with USB serial adapter
33-
./VanMooof-Module -upload "pack.bin" -port /dev/ttyUSB0
33+
./cmd -upload "pack.bin" -port /dev/ttyUSB0
3434

35-
# Upload the provided PACK file
36-
./VanMooof-Module -upload "packFile - mainware 1.09.03 - batteryware 1.17 - bleware 2.4.01 - motorware S.0.00.22 - shifterware 0.237.bin"
35+
# Upload PACK file
36+
./cmd -upload "packFile - mainware 1.09.03 - batteryware 1.17 - bleware 2.4.01 - motorware S.0.00.22 - shifterware 0.237.bin"
3737
```
3838

3939
## Hardware Setup
4040
1. Connect USB UART adapter to VanMoof module debug port
4141
2. Use JTAG pinout: Black=GND, Green=TX, Orange=RX, Yellow=NC
42-
3. Set baud rate to 115200 (default for VanMoof modules)
4342

4443
## Platform-Specific Serial Ports
4544
- **Windows**: COM1, COM2, COM3, etc.
@@ -53,13 +52,13 @@ This tool now supports uploading PACK files to VanMoof modules via Y-Modem proto
5352

5453
## PACK File Requirements
5554
- Must start with "PACK" magic bytes
56-
- File size must be less than 64MB
55+
- File size must be less than 2MB
5756
- Must contain valid directory structure
5857
- Directory entries must have valid filenames
5958

6059
## Error Handling
6160
The tool will reject:
62-
- Files larger than 2MB (exceeds PACK limit)
61+
- Files larger than 2MB (exceeds Chip limits)
6362
- Files without PACK magic header
6463
- Files with invalid directory structure
6564
- Files with corrupted headers
@@ -70,4 +69,4 @@ The tool will reject:
7069
3. Start upload: `pack-upload`
7170
4. Tool will transfer via Y-Modem
7271
5. Process PACK: `pack-process`
73-
6. System will reboot with new firmware
72+
6. System will reboot with new firmware

0 commit comments

Comments
 (0)