02-16-2022 02:34 PM
Hello,
I'm using a BHI160B on a custom board in order to get acceleration and rotation vector data.
I'm using firmware patch : bosch_pcb_7183_di03_bmi160-7183_di03-2-1-11824.fw.
Init works fine (checking ROM version etc).
Then the acccelerometer sensor is enabled.
After a 10 seconds delay I try to read the FIFO.
I only get timestamps and the "Initialized" meta event, and no other data is read (which are already in the FIFO before enabling the sensor).
I tried several compatible firmwares, several available sensors, VS_WAKEUP/VS_NON_WAKEUP.
I attached the application code, based on rotation_vector_example.c.
What am I missing ?
Thank you for your help.
Regards,
Victor T.
02-16-2022 04:20 PM
02-16-2022 05:48 PM
Hello BSTRobin,
Thank you for your help.
I ported and tried the code you provided. What are the takeaways ?
Here is the log I get :
start demo_sensor
successful to init bhy
Physical Sensor Present:
bitmap[0] = 0x2
bitmap[1] = 0x0
bitmap[2] = 0x1
bitmap[3] = 0x0
bitmap[4] = 0x0
bitmap[5] = 0x0
bitmap[6] = 0x0
bitmap[7] = 0x0
Physical Sensor Status:
Acc : sample rate 0, range 0, int 0 pwr 1
Acc : sample rate 0, range 0, int 0 pwr 1
Gyro: sample rate 0, range 0, int 0 pwr 1
Mag : sample rate 0, range 0, int 0 pwr 0
cus evt size = 1 1 1 1 1
Supported Virtual Sensor Information:
id= 1
id= 4
id= 9
id=10
id=15
id=16
id=17
id=18
id=19
id=22
id=23
id=24
id=25
id=31
id=33
id=36
id=41
id=42
id=47
id=48
id=49
id=50
id=51
id=54
id=55
id=56
id=57
id=63
initialize success!
02-22-2022 08:07 AM
Hello VictorT,
Based you current code, you could add virtual sensor example and get acceleration and rotation vector data.
For virtual sensor example, you could refer it from here: https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution/tree/master/examples
02-22-2022 09:08 AM
Hello BSTRobin,
Thank you, I got it working in the meantime.