![ST STEVAL-MKI132V1 User Manual Download Page 22](http://html1.mh-extra.com/html/st/steval-mki132v1/steval-mki132v1_user-manual_1356013022.webp)
UM1579
Supported commands
Doc ID 023744 Rev 1
21/26
4.3 Quick
start
This section shows the basic sequence of commands, based on the LIS3DH accelerometer,
to start a data communication session and to retrieve the X, Y, and Z acceleration data from
the demonstration board:
1.
Connect the BlueMotion to the PC using Bluetooth.
2.
Start the “Microsoft
HyperTerminal” and configure it as described in
.
3.
Inside the “HyperTerminal” window, enter the command *setdb105v1 (supposing the
LIS3DH adapter board is used, for other adapters see the relevant datasheets to check
the register configuration), enter the command *Zoff to enable the control of the device
by the STM32F103TB microcontroller, and *w2047 to switch on the LIS3DH and to set
the data rate to 50 Hz.
4.
Send the *debug command to get the X, Y, and Z data measured by the sensor.
5.
Send *stop to end the continuous acquisition and visualization.
Table 7.
Digital output magnetometer: supported commands list
Command
Description
Returned value
*setdbXXXVY
Selects firmware according to the adapter
connected
*start
Starts continuous data acquisition
(see
)
*debug
Returns the output data in readable text format
(see
)
*stop
Stops data acquisition
*Zon
Forces 3-state
*Zoff
Exits from 3-state
*dev
Device name
e.g.: LIS3DH
*ver
Firmware version
e.g.: V1.0
*mrAA
Pressure sensor register read
e.g.: MRAAhDDh
*mwAADD
Pressure sensor register write
*single
It gets a single X, Y, and Z data acquisition
(see
)
*list
Prints the list of MKIs supported
e.g.: MKI105V1
*listdev
Prints the list of devices supported
e.g.: LIS3DH
*echoon
Activates the write verbose mode
e.g.: MRAAhDDh
*echooff
Deactivates the write verbose mode