![ST STEVAL-MKI132V1 Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/st/steval-mki132v1/steval-mki132v1_user-manual_1356013014.webp)
UM1579
Supported commands
Doc ID 023744 Rev 1
13/26
4 Supported
commands
The microcontroller mounted on the BlueMotion board is equipped with dedicated firmware
that supports a set of commands which allows either the digital or the analog output MEMS
sensor to be controlled and permits the acquisition of the measured data. The firmware also
handles the communication between the board and the PC through a Bluetooth connection.
These features allow the user to easily write their own applications to exploit the capabilities
of the sensor chosen.
This section describes the commands that are supported by the firmware for the
microcontroller of the BlueMotion demonstration board.
4.1 Getting
started
Before using the commands supported by the firmware, the following procedure must be
performed:
1.
Connect the BlueMotion to the PC using Bluetooth.
2.
Launch an application which allows commands to be sent through the virtual serial
port. The remainder of this document assumes the use of the “Microsoft
®
HyperTerminal” program available with the Windows
®
XP operating system.
3.
Create a new connection, enter a name (e.g. “BlueMotion”), and click “OK”.
4.
In the “Connect Using” field, select the Bluetooth serial COM port to which the
BlueMotion has been connected, and click “OK”.
5.
In port settings, set bits per second to 115200, data bits to 8, parity to none, stop bits to
1, and flow control to none. Click “OK”.
6.
On the “HyperTerminal” application window choose “files” > “properties” > “settings”,
then click on the “ASCII Setup” button.
7.
Select “Send line ends with line feeds” and “Echo typed characters locally”.
8.
Click the “OK” button to close the “ASCII Setup” window.
9.
Click the “OK” button to close the “Properties” window.
Once this procedure has been completed the user can utilize the commands described in
the following sections by typing them into the “HyperTerminal” window.
4.2 Supported
commands
The firmware supports a wide range of MEMS adapters; the next section reports the
complete list of supported commands (see
) and their description.
Then, the list of commands (split into sections) available for each sensor supported by the
BlueMotion firmware is reported.