Add complete DWARFLAB protocol documentation
- Architecture overview, BLE and WebSocket protocols - All 19 modules with command IDs validated against smali source - BLE packet format with CRC-16/MODBUS pseudocode - Complete WsCmd index (~300 commands) - Connection flow with pseudocode examples - Methodology section explaining APK decompilation process
This commit is contained in:
44
09_device_rgb_commands.md
Normal file
44
09_device_rgb_commands.md
Normal file
@ -0,0 +1,44 @@
|
||||
# Device & RGB Commands
|
||||
|
||||
## DeviceProto — Module DEVICE (ID=18, base 17000)
|
||||
|
||||
### ReqLensDefog — Lens Defogging
|
||||
|
||||
| Field | # | Type | Description |
|
||||
|-------|---|------|-------------|
|
||||
| `state` | 1 | int32 | State (0=off, 1=on) |
|
||||
|
||||
### ReqAutoCooling — Auto Cooling
|
||||
|
||||
| Field | # | Type | Description |
|
||||
|-------|---|------|-------------|
|
||||
| `state` | 1 | int32 | State (0=off, 1=on) |
|
||||
|
||||
### ReqAutoShutdown — Auto Shutdown
|
||||
|
||||
| Field | # | Type | Description |
|
||||
|-------|---|------|-------------|
|
||||
| `state` | 1 | int32 | State (0=off, 1=on) |
|
||||
|
||||
### Command IDs
|
||||
|
||||
| ID | Command |
|
||||
|----|---------|
|
||||
| 17000 | DEVICE_LENS_DEFOG |
|
||||
| 17001 | DEVICE_AUTO_COOLING |
|
||||
| 17002 | DEVICE_AUTO_SHUTDOWN |
|
||||
|
||||
---
|
||||
|
||||
## RGBProto — Module RGB_POWER (ID=5, base 13500)
|
||||
|
||||
All RGB_POWER commands have no fields (empty messages).
|
||||
|
||||
| ID | Command | Description |
|
||||
|----|---------|-------------|
|
||||
| 13500 | OPEN_RGB | Turn on RGB LED |
|
||||
| 13501 | CLOSE_RGB | Turn off RGB LED |
|
||||
| 13502 | POWER_DOWN | Power off device |
|
||||
| 13503 | POWERIND_ON | Turn on power indicator |
|
||||
| 13504 | POWERIND_OFF | Turn off power indicator |
|
||||
| 13505 | REBOOT | Reboot device |
|
||||
Reference in New Issue
Block a user