User Guide to PL131
Document Number 1155-4713 Rev E
Page 27
C
ONFID
ENTIA
L
In
fo
rm
a
ti
o
n
c
la
s
s
ifi
e
d
Co
n
fi
d
e
n
ti
a
l
-
Do
n
o
t
c
o
p
y
(Se
e
l
a
s
t
p
a
g
e
f
o
r o
b
lig
a
ti
o
n
s
)
This document contains confidential and proprietary information of Quake Global corporation. It may be used by recipient only for the purpose for which it was transmitted
and will be returned upon request or when no longer needed by recipient. Disclosure to unauthorized third parties or duplication without the express written permission of
Quake Global is prohibited. © 2013-2015 QUAKE GLOBAL, INC. - All rights reserved.
6.2.1 FOTA protocol message definitions
There are four message types utilized in FOTA.
6.2.1.1 File header
Table 6-1: FOTA file header message
Field Name
Data
Type Size
Notes
Opcode
Message opcode
U8
1 byte
Set to 0x3D
EndSeqNo
Total pkts in download - 1
U16
2 bytes
Checksum
Checksum of entire file after
compression
U16
2 bytes
FileId
(not used)
U8
1 byte
FileSize
Size of file after compression U32
24 bits
Unused
(not used)
4 bits
Reboot
1 bit
Set to 1
IsCompressed
1 bit
Set to 1 if file is compressed
IsNew
(not used)
1 bit
IsConcat
(not used)
1 bit
FileName
[MAX_FILENAME_LEN]
char
Set to NULL or “APL.BIN”.
MAX_FILENAME_LEN is set
to 64.
LastPacketSize
Size of the last packet
U32
4 bytes
additiveCRC;
(not used)
U16
2 bytes
6.2.1.2 Data
There are at most seven message packets per window.
Table 6-2: FOTA data message
Field Name
Data
Type Size
Notes
Opcode
Message opcode
U8
1 byte
Set to 0x3C
SeqNo
Sequence number of packet
starting at 0
U16
2 bytes
Checksum
Window checksum for at most 7
pkts
U16
2 bytes
Buff
[MAX_DATA_BUF_SIZE]
The data packet
U8
1 byte
MAX_DATA_BUF_SIZE
is set to 265.