01-13-2021 01:33 PM
Hi,
i am trying to read the trim values of the magnetometer. It is not described in the datasheet.
As far as I've read from the bmi160 driver firmware it has to be done via the internal bus. But I cannot not use the driver implementation since I am using nordic SPI transaction manager which does not allow the usage of the driver. Therefore, I would like to know the exact line of commands to write and the expected responses from the sensor.
Could you please show me where to find these informations.
Kind regards,
CW
Solved! Go to Solution.
01-15-2021 08:26 AM
Hi Sir:
Where are you from?
Maybe you can contact the distributor sales and then transfer to bst local FAE.
Please see the following link:
https://www.bosch-sensortec.com/about-us/contact/our-distributors-and-sales-representatives/
01-15-2021 08:55 AM
Okay I've wrote an email but in the meantime I have some further questions.
I've got the API code running up to a certain point:
https://github.com/BoschSensortec/BMI160_driver#initialization-of-auxiliary-sensor-bmm150
Everything runs fine except when I try to init the bmm150 (remember I have a bmx160). And here is something wrong in the documentation.
1. The current version of the bmm150 code does not have a bmm150.delay_ms = delay_ms; but a bmm150.delay_us function. Why?
2. And there is now an intf_ptr which is used for the read and write function pointers. But these function pointers in your documentation do not use this pointer.
3. And so on....
So there is a big gap between your code and documentation.
Kind regards,
cwi
01-15-2021 10:31 AM
Hi Sir:
Please see my comments:
1. Due to the different version of API code, you need to update these interface function.
2. This "intf_ptr " pointer you can ignore if it don't be called for some features in API code.
The reference code is from an old version API code, there are some small gaps, but it is easy to handle them and don't affect the actual usage.