How-to guide

Flash

1) Send Request PIT flash
2) Send Begin PIT flash
3) Send the entire PIT in one go
4) Send End PIT flash

Dump

1) Send Begin PIT dump
2) Split the filesize into blocks
3) Send Dump PIT data block

  • Repeat until end

5) Send End PIT dump

Packets

Flashing

Request PIT flash

Request:

ValueArgument TypeInformation
0x6532-bit integerPacket type
0x0032-bit integerPacket’s command

Response:

ValueArgument TypeInformation
0x6532-bit integerPacket type, would be 0xFF on failure
0x0032-bit integerStatus code. Is always zero.

Begin PIT flash

Request:

ValueArgument TypeInformation
0x6532-bit integerPacket type
0x0232-bit integerPacket’s command
dynamic32-bit integerPIT size, in bytes

Response:

ValueArgument TypeInformation
0x6532-bit integerPacket type, would be 0xFF on failure
0x0032-bit integerStatus code. Is always zero.

Send PIT data

Request:

ValueArgument TypeInformation
dynamicRaw byte bufferPIT file data buffer

Response:

ValueArgument TypeInformation
0x6532-bit integerPacket type, would be 0xFF on failure
0x0032-bit integerStatus code. Is always zero.

End PIT Flash

Request:

ValueArgument TypeInformation
0x6532-bit integerPacket type
0x0332-bit integerPacket’s command

Response:

ValueArgument TypeInformation
0x6532-bit integerPacket type, would be 0xFF on failure
0x0032-bit integerStatus code. Is always zero.

Dumping

Request PIT data dump

Request:

ValueArgument TypeInformation
0x6532-bit integerPacket type
0x0132-bit integerPacket’s command

Response:

ValueArgument TypeInformation
0x6532-bit integerPacket type, would be 0xFF on failure
dynamic32-bit integerPIT file size. Ususally it is 0x4000

Dump PIT data block

One block is 500 bytes. Send an empty packet after last block.
Request:

ValueArgument TypeInformation
0x6532-bit integerPacket type
0x0232-bit integerPacket’s command
dynamic32-bit integerCurrent block index

Response:

ValueArgument TypeInformation
dynamicRaw byte bufferThe requested block’s data buffer

End PIT dump

Identical to End PIT flash.
Request:

ValueArgument TypeInformation
0x6532-bit integerPacket type
0x0332-bit integerPacket’s command

Response:

ValueArgument TypeInformation
0x6532-bit integerPacket type, would be 0xFF on failure
0x0032-bit integerStatus code. Is always zero