Недокументированные сообщения u-blox #
Class 0x09: Firmware upgrade messages #
UPD-DOWNL 0x09 0x01
#
Message | Length | Description |
---|---|---|
UPD-DOWNL | 9 | Transfer data from host to receiver |
Structure:
Header | ID | Length (bytes) | Payload | Checksum |
---|---|---|---|---|
0xB5 0x62 | 0x09 0x01 | 0x09 0x00 | CK_A CL_B |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | Start address | |
4 | U4 | Flags | |
8 | B* | Transferred data |
Example:
Clear BBR (addr: FFEC1000 flags: 00000000 data: 00x8)
REQUEST: B5 62 09 01 10 00 00 10 EC FF 00 00 00 00 00 00 00 00 00 00 00 00 15 B2
RESPONSE: B5 62 05 01 02 00 09 01 12 3E
UPD-UPLOAD 0x09 0x02
#
Message | Length | Description |
---|---|---|
UPD-UPLOAD | 12 | Transfer data from receiver to host |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | Start address | |
4 | U4 | DataSize | |
8 | U4 | Flags | |
12 | B* | Requested data (response only) |
Example:
UPD-UPLOAD addr: 0025fffc, size: 0004, flags: 00000000
REQUEST: B5 62 09 02 0C 00 FC FF 25 00 04 00 00 00 00 00 00 00 3B AD
RESPONSE: B5 62 09 02 10 00 FC FF 25 00 04 00 00 00 00 00 00 00 96 F5 6A 80 B4 6C
RESPONSE: B5 62 05 01 02 00 09 02 13 3F
UPD-EXEC 0x09 0x03
#
Message | Length | Description |
---|---|---|
UPD-EXEC | ??? | ??? |
UPD-MEMCPY 0x09 0x04
#
Message | Length | Description |
---|---|---|
UPD-MEMCPY | ??? | ??? |
UPD-??? 0x09 0x06
#
Message | Length | Description |
---|---|---|
UPD-??? | 1 | Read loader version ??? |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | B1 | = 69 |
Example:
REQUEST: B5 62 09 06 01 00 69 79 B1
RESPONSE: B5 62 09 06 01 00 51 61 99 B5 62 05 00 02 00 09 06 16 3E
UPD-ENTER 0x09 0x07
#
Message | Length | Description |
---|---|---|
UPD-ENTER | 0 | Enter safeboot mode (speed=9600) |
Example:
REQUEST: B5 62 09 07 00 00 10 39
UPD-FLASHINFO 0x09 0x08
#
Message | Length | Description |
---|---|---|
UPD-FLASHINFO | 4 | Read flash data in CFI Query mode |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | StartAddr | |
4 | B4 | Response |
Example:
(read Flash Deviceid=0x2780 and ManufacturerID=0x00BF)
REQUEST: B5 62 09 08 04 00 00 00 80 00 95 98
RESPONSE: B5 62 09 08 08 00 00 00 80 00 BF 00 80 27 FF 37
RESPONSE: B5 62 05 01 02 00 09 08 19 45
UPD-ERASE 0x09 0x0B
#
Message | Length | Description |
---|---|---|
UPD-ERASE | 4 | Erase flash block |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | StartAddr | Erased block start address |
Example:
REQUEST: B5 62 09 0B 04 00 00 00 80 00 98 AD
RESPONSE: B5 62 05 01 02 00 09 0B 1C 48
UPD-WRITE 0x09 0x0C
#
Message | Length | Description |
---|---|---|
UPD-WRITE ? | 8+payload | Write flash block |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | StartAddr | Write address |
4 | U4 | size | Payload size |
8 | B* | payload |
Response:
Error code
Example:
write 0x800000: 55 42 58 35
REQUEST: B5 62 09 0C 0C 00 00 00 80 00 04 00 00 00 55 42 58 35 C9 0B
RESPONSE: B5 62 09 0C 05 00 00 00 80 00 01 9B 55
RESPONSE: B5 62 05 01 02 00 09 0C 1D 49
UPD-CSUM 0x09 0x0D
#
Message | Length | Description |
---|---|---|
UPD-CSUM ? | 8 | Calculate block checksum |
Payload:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | StartAddr | |
4 | U4 | size |
Response:
Offset | Format | Name | Description |
---|---|---|---|
0 | U4 | StartAddr | |
4 | B1 | errCode | |
5 | B2 | checksum |
Example:
address: 0x0080004, size; 0x00055694
REQUEST: B5 62 09 0D 08 00 04 00 80 00 94 56 05 00 91 C7
RESPONSE: B5 62 09 0D 05 00 04 00 80 00 01 A0 71
RESPONSE: B5 62 05 01 02 00 09 0D 1E 4A
UPD-EXIT 0x09 0x0E
#
Message | Length | Description |
---|---|---|
UPD-EXIT ? | 0 | Switch from safeboot to normal mode |
Example:
REQUEST: B5 62 09 07 00 00 10 39