This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(CLOSED) Failed to open I2C e SPI
#1
After some test at home on signalk kindle web visualisation, Today I'm trying on the boat (I have 2 rpi3, at home just the rpi3 and on boat a rpi3 with the imu, temperature, pressure, humidity sensors)

But op say:


Code:
pi@openplotter:~ $ openplotter debug
Failed to open I2C bus 1
Failed to open SPI bus 0, select 0
Failed to open SPI bus 0, select 1
No IMU detected
Failed to open I2C bus 1
No pressure sensor detected
Failed to open I2C bus 1
No humidity sensor detected
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
connect failed to localhost:21311
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/ui/autopilot_calibration.py", line 219, in onResetAlignment
    self.client.set('imu/alignmentQ', [1, 0, 0, 0])
AttributeError: 'bool' object has no attribute 'set'
connect failed to localhost:21311
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/ui/autopilot_calibration.py", line 222, in onLevel
    self.StartAlignment()
  File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/ui/autopilot_calibration.py", line 216, in StartAlignment
    self.client.set('imu/alignmentCounter', 100)
AttributeError: 'bool' object has no attribute 'set'
connect failed to localhost:21311
Failed to open I2C bus 1
Failed to open SPI bus 0, select 0
Failed to open SPI bus 0, select 1
No IMU detected
Failed to open I2C bus 1
No pressure sensor detected
Failed to open I2C bus 1
No humidity sensor detected
Traceback (most recent call last):
  File "/home/pi/.config/openplotter/openplotter", line 1762, in on_add_i2c
    dlg = addI2c(self)
  File "/home/pi/.config/openplotter/classes/add_i2c.py", line 95, in __init__
    self.detection()
  File "/home/pi/.config/openplotter/classes/add_i2c.py", line 131, in detection
    bus = smbus.SMBus(1)
IOError: [Errno 2] No such file or directory


My config:


Op 0.16.0
Rpi3
Gps USB
Imu MPU 9250
Pressure BMP180
Temperature HTU21D
Humidity HTU21D
Ais reciver 820t2 & sdr
Reply
#2
No body knows?


Inviato dal mio iPad utilizzando Tapatalk
Reply
#3
Please update to 0.17.1, configure iMU on compass tab and rest of sensors on I2C tab. Unplug USB devices to be sure you do not have power issues
Reply
#4
(2018-03-02, 12:37 PM)Sailoog Wrote: Please update to 0.17.1, configure iMU on compass tab and rest of sensors on I2C tab. Unplug USB devices to be sure you do not have power issues

now on 0.17.1 but same message...

Failed to open I2C bus 1
Failed to open SPI bus 0, select 0
Failed to open SPI bus 0, select 1
No IMU detected
Failed to open I2C bus 1
No pressure sensor detected
Failed to open I2C bus 1
No humidity sensor detected



all usb unplugged
with OP 0.8 the i2c works

Op 0.17.1
Rpi3
official 7" display
Gps USB (unplugged)
Imu MPU 9250
Pressure BMP180
Temperature HTU21D
Humidity HTU21D
Ais reciver 820t2 & sdr (unplugged)
5A (3A+2A)
Reply
#5
in the attachment the answer!!!
   
 I'm so sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)