![ST eMotion User Manual Download Page 15](http://html.mh-extra.com/html/st/emotion/emotion_user-manual_1355657015.webp)
DocID017768 Rev 4
15/39
UM0979
Supported commands
39
4 Supported
commands
The microcontroller mounted on the eMotion board is equipped with dedicated firmware that
supports a set of commands which allow to control either the digital or the analog output
MEMS sensor and permits the acquisition of the measured data. The firmware also handles
the communication between the board and the PC through the USB bus. 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 eMotion demonstration kit.
4.1 Getting
started
Before using the commands supported by the firmware, the following procedure must be
performed:
1.
Connect the eMotion to the USB port
2. Launch an application which allows to send commands through the virtual serial port.
The remainder of this document assumes the use of “Microsoft
©
HyperTerminal”
program available with the Windows XP operating system
3. Create a new connection, enter a name (e.g. “STEVAL-MKI109V2”), and click “OK”
4. In the “Connect Using” field, select the virtual COM port to which the USB port has
been mapped, 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. In 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 provides the
complete list of supported commands (see
Table 3
) and their description.
Then, split into sections, the list of commands available for each sensor supported by the
eMotion firmware is provided.