ETMHFWREAD – reads a section of the new firmware
image
Reads consecutive sections of the new firmware image. You can set the size of each section.
If a host firmware image was previously downloaded using AT+ETMHFWGET, it is stored in flash memory
on the LTE IoT 2 click. For information about AT+ETMHFWGET, see page 36.
Type Syntax Response
Test
AT+ETMHFWREAD=? +ETMHFWREAD: <offset>,<length>
OK
Read
AT+ETMHFWREAD? +ETMHFWREAD:
<imagesize>,<checksum>
OK
where:
•
imagesize is the size of the host
firmware image in bytes
•
checksum is the 16-bit XOR checksum
of the entire image in hexadecimal
format
If both imagesize and checksum are
0, no firmware image exists in the
flash memory.
After reading the whole image, the
MCU application should run a
checksum to compare its copy and
the one supplied by ETM. This
ensures the local copy was
accurately copied from ETM.
or
ERROR
Write
AT+ETMHFWREAD=<offset>,<length>
where:
•
offset is the number of offset
bytes
•
length is the number of bytes
read
+ETMHFWREAD:
<offset>,<length>,"<hexdata>"
OK
where "<hexdata>" is the returned data in
hexadecimal
or
37
Eseye-enabled Quectel BG96 module Developer Guide v1.8
ETM Management AT commands