OpenMarine

Full Version: (CLOSED) Failed to open I2C e SPI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
No body knows?


Inviato dal mio iPad utilizzando Tapatalk
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
(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)
in the attachment the answer!!!
[attachment=268]
 I'm so sorry