I still don't have this working. Don't know if this is due to me not using API's correctly; or incorrect documentation. Some basic misunderstandings here. Here configuration routine; together with debug prints. void start_bhy_accelerometer_sensor(int8_t sampling_rate_accelerometer) { BHY_RETURN_FUNCTION_TYPE result = BHY_ERROR; u16 sr, mrl, cs, dr; struct sensor_configuration_wakeup_t sensorConf; sensorConf.wakeup_sample_rate = 0; sensorConf.wakeup_max_report_latency = 0; sensorConf.wakeup_change_sensitivity = 0; sensorConf.wakeup_dynamic_range = 16; if( BHY_SUCCESS == bhy_set_wakeup_sensor_configuration( &sensorConf, 0x0e1 ) ){ NRF_LOG_INFO( "Accel changed range OK" ); }else{ NRF_LOG_INFO( "Accel changed range FAIL" ); } if( BHY_SUCCESS == bhy_get_wakeup_sensor_configuration( 0x0e1, &sr, &mrl, &cs, &dr ) ){ NRF_LOG_INFO("IAC:SR:%d,MRL:%d,CS:%d, DR:%d", sr, mrl, cs, dr); }else{ NRF_LOG_INFO("IAC:???"); } bhy_enable_virtual_sensor(VS_TYPE_ACCELEROMETER, VS_WAKEUP, sampling_rate_accelerometer, 0, VS_FLUSH_NONE, 0, 0); if( BHY_SUCCESS == bhy_get_wakeup_sensor_configuration( 0x0e1, &sr, &mrl, &cs, &dr ) ){ NRF_LOG_INFO("CAC:SR:%d,MRL:%d,CS:%d, DR:%d", sr, mrl, cs, dr); }else{ NRF_LOG_INFO("CAC:???"); } result = bhy_install_sensor_callback(VS_TYPE_ACCELEROMETER, VS_WAKEUP, sensors_callback_common); APP_ERROR_CHECK(result); } bhi160 initialize success! <info> app: Accel changed range OK <info> app: IAC:SR:0,MRL:0,CS:0, DR:0 <info> app: CAC:SR:0,MRL:0,CS:0, DR:0 <info> app: IGY:SR:0,MRL:0,CS:0, DR:0 <info> app: CGY:SR:0,MRL:0,CS:0, DR:0 <info> app: IMG:SR:0,MRL:0,CS:0, DR:0 <info> app: CMG:SR:0,MRL:0,CS:0, DR:0 <info> app: <info> app: Accel Phys:SR:100,DR:4,Flag:225 <info> app: Gyro Phys:SR:100,DR:2000,Flag:225 <info> app: Mag Phys:SR:25,DR:2000,Flag:225 <info> app: Could you please advise?
... View more