10-12-2023 02:39 PM
I am accessing the internal BMI160 about BHI160B, and I found a method called "Soft Pass-through" in datasheet.
Because I want to get more than 200Hz sampling rate, but the maximum value of BSX ODR is 200Hz, and the BMI160 sampling rate can reach 1600Hz.
But I don't know how to use "Soft Pass-through". Can teach me how to use it.
Or another way to obtain BMI160 sensor data without going through BSX sensor fusion.
10-13-2023 03:58 AM
Hi SimonLi,
"Soft Pass-through" is available in BHI160 fw and sensor API. Calling the bhy_soft_passthru_write() and bhy_soft_passthru_read() interfaces can write or read the registers of BMI160, for example:
bhy_soft_passthru_write(0x68,regaddr,pBuffer,length,0);
bhy_soft_passthru_read(0x68,regaddr,pBuffer,length,0);
You can read the RAW data of BMI160 by calling the bhy_soft_passthru_read() read interface.
10-16-2023 12:32 PM
Hi BSTRobin,
Thanks for your reply. It is useful.
10-17-2023 09:09 AM
Welcome, SimonLi.