OpenMarine
I2C problems - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4)
+--- Thread: I2C problems (/showthread.php?tid=3597)



I2C problems - jlazkano - 2021-08-26

Hello,

I try to connect some I2C sensors. Yesterday the MPU 9250 works for some hours, but now I can not get it working. The I2C app say "I2C enabled stoped":

[Image: xLByXF5.png]

When I disable the I2C interface in the Raspberry Pi setting, I get this in dmesg:

PHP Code:
 534.089750OFoverlayWARNINGmemory leak will occur if overlay removedproperty: /soc/i2c@7e804000/status
 535.125902i2c-bcm2835 3f804000.i2ci2c transfer timed out
 536.166039i2c-bcm2835 3f804000.i2ci2c transfer timed out
 537.206176i2c-bcm2835 3f804000.i2ci2c transfer timed out 

And this when I enable it again:

PHP Code:
 538.246301i2c-bcm2835 3f804000.i2ci2c transfer timed out
 539.286449i2c-bcm2835 3f804000.i2ci2c transfer timed out
 540.326551i2c-bcm2835 3f804000.i2ci2c transfer timed out
 541.366758i2c-bcm2835 3f804000.i2ci2c transfer timed out
 542.406899i2c-bcm2835 3f804000.i2ci2c transfer timed out
 543.447044i2c-bcm2835 3f804000.i2ci2c transfer timed out
 544.487173i2c-bcm2835 3f804000.i2ci2c transfer timed out
 545.527299i2c-bcm2835 3f804000.i2ci2c transfer timed out
 546.567443i2c-bcm2835 3f804000.i2ci2c transfer timed out
 547.607581i2c-bcm2835 3f804000.i2ci2c transfer timed out
 548.647734i2c-bcm2835 3f804000.i2ci2c transfer timed out
 549.687875i2c-bcm2835 3f804000.i2ci2c transfer timed out
 550.728018i2c-bcm2835 3f804000.i2ci2c transfer timed out
 601.515824OFoverlayWARNINGmemory leak will occur if overlay removedproperty: /soc/i2c@7e804000/status 

Is something wrong with my Raspberry Pi 3B device? How could I start the I2C module?

Kind regards.


RE: I2C problems - jlazkano - 2021-08-27

Hello,

I burn the OpenPlotter image in a new SD and try to configure the I2C sensor, same result:

[Image: i2c.png]

Is my Raspberry Pi broken?

Could I debug it deeper?

I will appreciate your help.

Regards.


RE: I2C problems - jlazkano - 2021-09-01

Hello,

I still have the I2C not running message, but I fixed the MPU sensor detection with this commands:

PHP Code:
sudo systemctl enable openplotter-i2c-read.service
sudo systemctl restart openplotter
-i2c-read.service 

Hope this will help to someone else.

Regards.