User's Manual
BLUEMICROSYSTEM2 software description
STEVAL-STLKT01V1
10/37
DocID029208 Rev 2
These definitions in osx_bms_config.h control how many quaternions the application sends
to the Bluetooth client:
QUAT_UPDATE_MUL_10MS: defines the transmission rate for each set of quaternions
by multiple of 10 ms.
SEND_N_QUATERNIONS: defines how many quaternions are sent on each Bluetooth
package.
By default, the application sends 3 quaternions every 30 ms.
The same osx_bms_config.h file also defines:
ENV_UPDATE_MUL_10MS the transmission rate for Temperature/Pressure and
Humidity/Lux
ACC_GYRO_MAG_UPDATE_MUL_10MS the transmission rate for Acc/Gyro and
Magneto values
OSX_BMS_DEBUG_CONNECTION and OSX_BMS_DEBUG_ NOTIFY_TRAMISSION to
enable some debugging information for BLE communication
OSX_BMS_MOTIONAR to enable the osxMotionAR activity recognition algorithm
OSX_BMS_MOTIONCP to enable the osxMotionCP carry position recognition algorithm
OSX_BMS_MOTIONGR to enable the osxMotionGR gesture recognition algorithm
OSX_BMS_ACOUSTIC_MIC_ANGLE to enable the osxAcousticSL audio source
localization algorithm (only NUCLEO-F401R Nucleo board)
The osxMotionFX (INEMOEngine PRO) library has an autocalibrating procedure and the
calibration status is transmitted via BLE to the client. By pressing the user button on the
NUCLEO-F401RE (or NUCLEO-L476RG) board, it is possible to reset the library
calibration status, thereby forcing a new autocalibration procedure.
The osxMotionAR (INEMOEngine PRO) library is able to recognize the following activities:
Stationary
Walking
fast walking
jogging
biking
driving
The osxMotionAR can be enabled via the OSX_BMS_MOTIONAR define in
osx_bms_config.h.
The osxMotionCP (INEMOEngine PRO) library recognizes and provides real-time
information about how the user is carrying the board, which equates to the phone carry
position:
on desk
in hand
near head
shirt pocket
trouser pocket
arm swing
The osxMotionCP can be enabled via the OSX_BMS_MOTIONCP define in
osx_bms_config.h.
The osxMotionGR (INEMOEngine PRO) library is able to recognize gestures like:
pick up
glance
wake up in hand