{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit_Python_BMP/issues/4","labels_url":"https://api.github.com/repos/adafruit/Adafruit_Python_BMP/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_Python_BMP/issues/4/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit_Python_BMP/issues/4/events","html_url":"https://github.com/adafruit/Adafruit_Python_BMP/issues/4","id":60182564,"number":4,"title":"IOError: [Errno 110] Connection timed out","user":{"login":"lrusak","id":1616460,"avatar_url":"https://avatars.githubusercontent.com/u/1616460?v=3","gravatar_id":"","url":"https://api.github.com/users/lrusak","html_url":"https://github.com/lrusak","followers_url":"https://api.github.com/users/lrusak/followers","following_url":"https://api.github.com/users/lrusak/following{/other_user}","gists_url":"https://api.github.com/users/lrusak/gists{/gist_id}","starred_url":"https://api.github.com/users/lrusak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrusak/subscriptions","organizations_url":"https://api.github.com/users/lrusak/orgs","repos_url":"https://api.github.com/users/lrusak/repos","events_url":"https://api.github.com/users/lrusak/events{/privacy}","received_events_url":"https://api.github.com/users/lrusak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T01:20:37Z","updated_at":"2015-03-07T02:52:03Z","closed_at":null,"body":"Using the simpletest.py I get constant errors\r\n```\r\npython simpletest.py \r\nTraceback (most recent call last):\r\n  File \"simpletest.py\", line 37, in <module>\r\n    sensor = BMP085.BMP085()\r\n  File \"/usr/lib/python2.7/site-packages/Adafruit_BMP/BMP085.py\", line 68, in __init__\r\n    self._load_calibration()\r\n  File \"/usr/lib/python2.7/site-packages/Adafruit_BMP/BMP085.py\", line 72, in _load_calibration\r\n    self.cal_AC2 = self._device.readS16BE(BMP085_CAL_AC2)   # INT16\r\n  File \"/usr/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py\", line 195, in readS16BE\r\n    return self.readS16(register, little_endian=False)\r\n  File \"/usr/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py\", line 172, in readS16\r\n    result = self.readU16(register, little_endian)\r\n  File \"/usr/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py\", line 159, in readU16\r\n    result = self._bus.read_word_data(self._address,register) & 0xFFFF\r\nIOError: [Errno 110] Connection timed out\r\n```\r\nI'm not sure what is causing this. I have one other sensor on the i2c bus.\r\n```\r\ni2cdetect -y 0\r\n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\r\n00:          -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \r\n70: -- -- -- -- -- -- -- 77  \r\n```\r\n\r\nThe only way I can get it to show me anything is if I do something like\r\n```\r\nvalue = None\r\nwhile value is None:\r\n  try:\r\n    value = BMP085.BMP085().read_pressure()\r\n    print 'Pressure = {0:0.2f} Pa'.format(value)\r\n  except:\r\n    pass\r\n```\r\nEven then I seem to get wild values\r\n```\r\nPressure = 1092309.00 Pa\r\n```\r\nSo I'm not sure if my sensor is buggered, or if the voltage is dropping too much on the 3.3v line to run both sensors (the other sensor is an si1145). The si1145 seems to have the same error and needs a similar solution when I use it.\r\n\r\nSo it's either the voltage, or something related to daisy chaining the two sensors on the same i2c bus\r\n\r\nEDIT: \r\nJust did some more testing, ran the simpletest.py in a loop and monitored the voltage, it was a constant 3.34v, so that's fine.\r\nI also tried each sensor on it's own, and it still had the timeout issue. So now I think it must be related to my RPi or my kernel config."},"comment":{"url":"https://api.github.com/repos/adafruit/Adafruit_Python_BMP/issues/comments/77669640","html_url":"https://github.com/adafruit/Adafruit_Python_BMP/issues/4#issuecomment-77669640","issue_url":"https://api.github.com/repos/adafruit/Adafruit_Python_BMP/issues/4","id":77669640,"user":{"login":"tdicola","id":1332183,"avatar_url":"https://avatars.githubusercontent.com/u/1332183?v=3","gravatar_id":"","url":"https://api.github.com/users/tdicola","html_url":"https://github.com/tdicola","followers_url":"https://api.github.com/users/tdicola/followers","following_url":"https://api.github.com/users/tdicola/following{/other_user}","gists_url":"https://api.github.com/users/tdicola/gists{/gist_id}","starred_url":"https://api.github.com/users/tdicola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdicola/subscriptions","organizations_url":"https://api.github.com/users/tdicola/orgs","repos_url":"https://api.github.com/users/tdicola/repos","events_url":"https://api.github.com/users/tdicola/events{/privacy}","received_events_url":"https://api.github.com/users/tdicola/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T02:52:03Z","updated_at":"2015-03-07T02:52:03Z","body":"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."}}