x-IMU3 User Manual v0.11
April 6, 2022
8.1.2
Write setting command
The write setting command is sent to the device to write a setting value, or sent from the device to the host
in response to a read setting command. The key is the setting key and the value is the setting value. See
Section 11.1 on page 33 for a complete list of settings. The device will acknowledge a write setting command
by sending a setting write command back to the host, indicating the new settings value. The device will not
apply new settings until two seconds after the most recent write setting command or default command was
received.
Example:
{
"deviceName":"x-IMU3"
}\
r
\
n
8.1.3
Default command
The default command is sent to the device to set all settings to default values. The key is “default” and the
value is null. The device will not apply new settings until two seconds after the most recent write setting
command or default command was received.
Example:
{
"default":null
}\
r
\
n
8.1.4
Apply command
The apply command is sent to the device to apply all settings. The key is “apply” and the value is null. This
command can be sent after a write setting or default command to apply settings immediately instead of after
a two second delay.
Example:
{
"apply":null
}\
r
\
n
8.1.5
Save command
The save command is sent to the device to save all settings to Electrically Erasable Programmable Read-Only
Memory (EEPROM). The key is “save” and the value is null. The command acknowledgement will not be sent
until the save is complete. This may take up to 300 milliseconds. The save command is unnecessary in most
applications because the device will automatically save all settings on shutdown.
Example:
{
"save":null
}\
r
\
n
8.1.6
Read time command
The read time command is sent to the device to read the date and time of the RTC. The key is “time” and
the value is null. The device will acknowledge a read time command by sending a write time command to the
host.
Example:
{
"time":null
}\
r
\
n
8.1.7
Write time command
The write time command is sent to the device to write the date and time of the RTC, or sent from the device
to the host in response to a read time command. The key is “time” and the value is a string expressing
the date and time in the format “YYYY-MM-DD hh:mm:ss” where each delimiter can be any non-numerical
character. The device will acknowledge a write time command by sending a write time command back to the
host, indicating the new date and time.
Example:
{
"time":"2020-01-01 00:00:00"
}\
r
\
n
19