For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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 Cinterion® ELS61 Wireless Module. For information about AT+ETMHFWGET, see ETMHFWGET – checks for new host firmware.

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

Note: If both imagesize and checksum are 0, no firmware image exists in the flash memory.

Note: After reading the whole image, the MCU application should run a checksum to compare its copy and the one supplied by AnyNet SMARTconnect™. This ensures the local copy was accurately copied from AnyNet SMARTconnect™.

or

ERROR

Write

AT+ETMHFWREAD=<offset>,<length>

where:

  • offset is the number of offset bytes

  • length is the number of bytes read

offset and length are required parameters.

+ETMHFWREAD: <offset>,<length>,"<hexdata>"

OK

where "<hexdata>" is the returned data in hexadecimal

or

ERROR – the command failed

Example

To read 48 bytes in 16 byte chunks:

AT+ETMHFWREAD=0,16
+ETMHFWREAD: 0,16,"<hexdata>"

OK
AT+ETMHFWREAD=16,16
+ETMHFWREAD: 16,16,"<hexdata>"
OK
AT+ETMHFWREAD=32,16
+ETMHFWREAD: 32,16,"<hexdata>"
OK

Last updated

Was this helpful?