question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mpu9250 - This device does not contain the correct signature 0x48 for a AK8963

See original GitHub issue

Hello.

I´m using the mpu9250 in one of my projects. I´m using a rasperry pi 3B+ and the latest raspbian os (raspios-buster-armhf-lite 2020-08-20).

When I start and stop my application multiple times (letting it run for a couple of seconds), it sometimes happens, that I get the following exception:

“Unhandled exception. System.IO.IOException: This device does not contain the correct signature 0x48 for a AK8963”

Unfortunately there is no reliable way to reproduce the problem. It just happens sometimes. I have to power off and power on the device to get rid of that exception.

var i2cSettings = new I2cConnectionSettings(0x01, Mpu9250.DefaultI2cAddress);
_i2CMpu9250 = new Mpu9250(I2cDevice.Create(i2cSettings));

Versions used

Add following information:

  • Version od dev-machine: .net core 3.1.9
  • Version on RP3: .net core 3.1.8
  • Version of System.Device.Gpio package: 1.1.0-prerelease.20276.1
  • Version of Iot.Device.Bindings package: 1.1.0-prerelease.20276.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Ellerbachcommented, Nov 2, 2020

Unhandled exception. System.IO.IOException: This device does not contain the correct signature 0x48 for a AK8963

You have to access the AK8963 thru the MPU9250. See the example: https://github.com/dotnet/iot/blob/master/src/devices/Mpu9250/samples/Mpu9250.sample.cs and how the MPU9250 is accessing the AK8963: https://github.com/dotnet/iot/blob/master/src/devices/Mpu9250/Ak8963Attached.cs

The direct access is not allowed by default and doesn’t seems to work in the proper way. The MPU9250 is acting like an intermediate with the AK8963. In theory, when deactivating the MPU9250 feature of being primary device vs AK8963, it should be possible to have a direct access to the AK8963 in the same I2C line.

Please also check if the fix proposed for #1140 is working. I still don’t have the device to do the final check and fix the calibration.

0reactions
Ellerbachcommented, Dec 23, 2020

Closing this one as it should be fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No data from the magnetometer [MPU9250][AK8963]
Hello everyone, I have a problem with firing the magnetometer in the Gy-91 [MPU9250][AK8963]. The accelerometer and gyro are working and ...
Read more >
MPU9250 I AM 0x0 I should be 0x71. Could not connect to ...
I have an mpu9250, i see it as i2c address 0x68 on the scanner but i can't seem to get the example code...
Read more >
How can I get Ak8963 Address from MPU9250
Hi.I have modified this, but the result is always 0xFF or 255, Datasheet Say Who I Am register of AK8963 should return 0x48,...
Read more >
nanoFramework.Iot.Device.Ak8963 1.2.329
It is present in other sensors like the MPU9250. ... device does not contain the correct signature 0x48 for a AK8963"); while (true)...
Read more >
MPU-9250 Hookup Guide - SparkFun Learn
The MPU-9250 is the latest 9-axis MEMS sensor from InvenSense®. ... which contains a 3-axis gyroscope, a 3-axis accelerometer, and the AK8963, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found