This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2650STK: Sensortag wakeup from sleeping by accelerometer ISR (MPU9250)

Part Number: CC2650STK


Hi, 

For my design based on the sensor, I do not need to have the Bluetooth connection permanently. I need to login on demand only.
On the other hand to save the battery, I would like to place the MPU in Low Power mode, and it wakes only when it detects an acceleration. I thought using the sensorMpuSleep function (void) in order to be awakened by the interruption of activity. If I understand everything, I must use the bool SensorMpu9250_enableWom (uint8_t threshold) function to implement the activity detection. In what order should I proceed?

bool SensorMpu9250_enableWom (uint8_t threshold sensorMpuSleep function (void) But how configured interrupt to wake up RTOS? Any idea, advise, sample code or example? Best regards

  • Hello,

    The WOM (wake on motion) is only implemented in the SensorTag sample application for sending sensor reports during the connection. If you are using this to control when the SensorTag advertises, then you will need to modify the application to control the ADV based on this input. We don't provide examples of this functionality so I suggest reviewing the SensorTag user guide on the BLE Wiki and familiarizing yourself with the current implementation and the GapRole APIs for controlling ADV.

    Best wishes