With READ command you can read one or more location/s in the Carberry MEMS.

Synopsis

MEMS READ <ADDR> <LEN>

READ accepts two parameters as:

ParamDescriptionRange
<ADDR> MEMS location address in HEX notation.0x00 - 0x79
<LEN> Number of bytes to read starting from <ADDR> 0x01 - 0x80

Note

In the command parameters, you can omit “0x” before parameters.

Return

READ command returns the byte value (in HEX notation) of the location/s addressed by parameters.

Examples

Reading thirteen bytes (one status more accelerometer and magnetometer data)

MEMS READ 0x00 0x0D
FF013CFE8C20F00024FE9EFD42
OK