OpenMarine
(CLOSED) Failed to open I2C e SPI - 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: (CLOSED) Failed to open I2C e SPI (/showthread.php?tid=905)



(CLOSED) Failed to open I2C e SPI - callmecalanca - 2017-12-20

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


Failed to open I2C e SPI - callmecalanca - 2018-02-22

No body knows?


Inviato dal mio iPad utilizzando Tapatalk


RE: Failed to open I2C e SPI - Sailoog - 2018-03-02

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


RE: Failed to open I2C e SPI - cepicscepics - 2018-05-02

(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)


RE: Failed to open I2C e SPI - cepicscepics - 2018-05-02

in the attachment the answer!!!
   
 I'm so sorry