X-NUCLEO-IKS01A1 Environmental/Motion sensors data transmitted via X-NUCLEO-IDB04A1 BLE board. Compatible with iOS/Android ST BlueMS V2.1 application.
Dependencies: BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed
Fork of Bluemicrosystem1 by
BlueMicrosystem application
This application is the mbed equivalent of ST BlueMicrosystem1 and provides an example of motion and environmental data exported via Bluetooth Low Energy to an Android or IOS device.
It runs on a ST NUCLEO-F401RE board connected with a X-NUCLEO-IKS01A1 and a X-NUCLEO-IDB04A1 expansion boards and is compatible with Android and iOS ST BlueMS smartphone applications (based on Android and iOS BlueST SDKs).
By default the application is not providing sensor fusion and activity recognition features. However sensor fusion can be enabled following the steps below:
- Download and install osxMotionFX library on your PC.
- Obtain the free license for your board following the instructions
- Copy the correct license into Middlewares/ST/STM32_OSX_MotionFX_Library/osx_license.h of your mbed program folder
- Copy Middlewares/ST/STM32_OSX_MotionFX_Library/Inc/osx_motion_fx.h file
- Rename the provided .lib Keil binary library giving it a .ar extension, then copy it into Middlewares/ST/STM32_OSX_MotionFX_Library/Lib of your mbed program folder
- Enable USE_SENSOR_FUSION_LIB macro into MotionFX_Manager.h file and recompile.
Diff: main.h
- Revision:
- 8:b042fe719f51
- Parent:
- 6:c1b8fb74072e
- Child:
- 9:2693f9ef8ff7
--- a/main.h Thu Dec 17 15:58:35 2015 +0000 +++ b/main.h Mon Dec 21 13:05:16 2015 +0000 @@ -21,7 +21,8 @@ read/written from/to Memory */ //#define BLUEMSYS_DEBUG_CALIB -#define CUST_BLEERR_MNGT // Uncomment to enable application BLE error management (congestion control) + +#define BLE_TX_ERR_MNG // Uncomment to enable BLE congestion control #define CUST_CONS_SERV // Uncomment to enable console service @@ -46,7 +47,6 @@ #define MAX_I2C_SPEED 400000 #define NUCLEO_I2C_SHIELDS_SPEED MAX_I2C_SPEED // I2C speed in Hz -//#define NUCLEO_I2C_SHIELDS_SPEED 150000 // I2C speed in Hz. Max Speed 400KHz now limited because of MEMS board #define ENV_TIMER 500000 // 500 mSec #define CALIB_TIMER 40000 // 40mS @@ -90,6 +90,7 @@ #endif #endif /* BLUEMSYS_STORE_CALIB_FLASH */ +#define BLE_TX_SKIP_NUM 30 #define BLE_ADVERTISING_INTERVAL 1000 //#define BLE_ADVERTISING_INTERVAL 160 /* 100ms; in multiples of 0.625ms. */