Coder Social home page Coder Social logo

Comments (7)

tdicola avatar tdicola commented on July 28, 2024

Hrm that's odd, one thing I'm curious about are you using a Pi 2 or original Pi? I've seen a similar intermittent error with a different I2C device on the Pi 2 and am curious if you're seeing something similar here too.

edit: Also just to rule out a conflict with the devices, do they work in isolation? I.e. pull the si1145 off the Pi and just try it with the BMP sensor and vice-versa.

from adafruit_python_bmp.

lrusak avatar lrusak commented on July 28, 2024

I'm using an original first revision RPi B.

After more digging it seems to be an issue in the kernel.
raspberrypi/linux#865
I see this in dmesg,

[   22.686503] i2c i2c-0: transfer setup timed out
[   24.711928] i2c i2c-0: transfer setup timed out
[   26.726649] i2c i2c-0: transfer setup timed out
[   28.736568] i2c i2c-0: transfer setup timed out
[   30.741944] i2c i2c-0: transfer setup timed out

I'll try rebuilding with the latest kernel or try using an older kernel if that doesn't work.
currently I'm using 3.19.0 and I have the following line in config.txt

dtparam=i2c_arm=on

Will report back after I test some different kernels.

from adafruit_python_bmp.

tdicola avatar tdicola commented on July 28, 2024

Ouch, thanks for linking to that bug--that's somewhat annoying to see the issue at the kernel level. If it helps, you might try the stock Raspbian release that's on the 3.18 kernel: http://www.raspberrypi.org/downloads/ Good to know that 3.19 might have some issues right now.

from adafruit_python_bmp.

jeanlemotan avatar jeanlemotan commented on July 28, 2024

This seems to be a different issue than the one in the linked issue. You are getting a "transfer setup timed out" while issue #865 is about "transfer timed out". Can you detail a bit your setup pls?

  • Do you have a Pi camera attached?
  • What i2c baud are you using?
  • Combined transactions on? (you can just paste the kernel params from cmdline.txt here)
  • Overclocked Pi?
  • Do other sensors work?
  • Did you try an older kernel ( < 0ca4c1f57c84bb114641176d63d16ce345f5a95d)?
  • When you get bad readings do you have a simultaneous timeout in dmesg?

from adafruit_python_bmp.

beheh avatar beheh commented on July 28, 2024

I'm seeing the same issue with a different sensor (MPL3115A2), so I believe it is a module problem. In case it helps, my setup (running Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux):

  • No camera attached
  • Tried 100000, 32000, 5000 with the same error everytime.
  • Yes, since the sensor requires it
  • No
  • Only one sensor to test with right now
  • Running 3.18
  • Yes: [ 1923.121754] i2c i2c-1: transfer setup timed out

from adafruit_python_bmp.

javiisanchez avatar javiisanchez commented on July 28, 2024

Hi,
I'm seeing the same issue, first the sensor did a good reading, after I put a while to see continuosly the data and the exception appeared (after half minut), and now the sensor wasn't connected to the I2C bus. (with the comand i2cdetect -y 1 I don't see any sensor, that before, I've saw.
Can you help me?

from adafruit_python_bmp.

ladyada avatar ladyada commented on July 28, 2024

hiya we're closing these issues and archiving this repo because this library has been deprecated!

the bmp085 and bmp180 are no longer made, and are replaced by the bmp280 + friends

we are now only using our circuitpython sensor libraries in python

check out this guide for using the bmp280 with python!
https://learn.adafruit.com/adafruit-bmp280-barometric-pressure-plus-temperature-sensor-breakout

from adafruit_python_bmp.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.