dougstrickland
Junior Member

Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Sept 7, 2017 17:09:04 GMT -8
After a recent reset, the SmartPlantPi.py script crashes immediately on load. Here's the error message:
pi@raspberrypi:~/Adafruit_Python_GPIO/SDL_Pi_SmartPlantPi $ sudo python SmartPlantPi.py Traceback (most recent call last): File "SmartPlantPi.py", line 242, in <module> Sunlight_Sensor = SDL_Pi_SI1145.SDL_Pi_SI1145() File "./SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 165, in __init__ self._reset() File "./SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 172, in _reset self._device.write8(SI1145_REG_MEASRATE0, 0) File "./SDL_Pi_SI1145/I2C.py", line 114, in write8 self._bus.write_byte_data(self._address, register, value) File "/usr/local/lib/python2.7/dist-packages/Adafruit_PureIO-0.2.1-py2.7.egg/Adafruit_PureIO/smbus.py", line 236, in write_byte_data IOError: [Errno 121] Remote I/O error pi@raspberrypi:~/Adafruit_Python_GPIO/SDL_Pi_SmartPlantPi $
Seems like it has to do with the sunlight sensor? What should I do to test?
|
|
|
Post by SDL on Sept 8, 2017 6:09:51 GMT -8
I assumed you powered it down and the powered it back up again?
Did you update or upgrade the operating system?
This is the first time we have seen something like this happen after it has been running for a while.
Here is a couple of tests I would like you to run:
1) type "sudo i2cdetect -y 1" and report the results
2) Power down your pi, remove the sunlight sensor grove cable, power it back up and see what it does.
Thanks!
BP
|
|
dougstrickland
Junior Member

Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Sept 8, 2017 10:21:36 GMT -8
Seems there's a bigger problem. Here's the i2cdetect output:
pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
So I'm not seeing ANY i2c devices?
**EDIT**
I removed and reconnected all cables, and got the same results.
|
|
|
Post by SDL on Sept 11, 2017 4:12:58 GMT -8
Well,no I2C devices is your problem.
Did you enable the I2C bus in your Raspberry Pi? Try going through that procedure.
When you run "i2cdetect -y 1" does the white LED on the Pi2Grover board flash?
BP
|
|
dougstrickland
Junior Member

Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Sept 11, 2017 17:28:42 GMT -8
I haven't changed the I2C settings, this was a working model that has been up for a few weeks. This pi just stopped updating freeboard so I rebooted, and it wouldn't run the SmartPlantPi.py script ever again. I've gone into preferences and rechecked everything, its set correctly.
The Pi2Grover board has both the blue and white led on constantly. Running i2cdetect -y 1 does not change the state of either LED.
Doug
|
|
dougstrickland
Junior Member

Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Sept 13, 2017 12:53:22 GMT -8
Any further suggestions on troubleshooting this? From what I see it looks like either every cable failed or I have a bad Pi2Grover board?
Doug
|
|
|
Post by SDL on Sept 13, 2017 18:37:18 GMT -8
Now that is interesting information. The blue LED on constantly is normal. The white lite on constantly means a problem with the I2C bus.
If you remove all the I2C device plugs from the Pi2Grover board, what happens? I think you may have covered this above, but it isn't clear what the LED did from your previous reply in this case.
If, when you reboot it, the white lite is off then, run i2cdetect again and the light should flash.
One device may be hanging the bus or there is a problem with the Pi2Grover board or the Pi itself.
BP
|
|
dougstrickland
Junior Member

Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Sept 15, 2017 6:26:31 GMT -8
I've disconnected everything and the white LED went off. I reconnected the ADC board and the white LED comes on and stays on. When I run i2cdetect the white LED blinks. Is this a defective ADC board?  Output with the ADC board disconnected: pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- pi@raspberrypi:~ $
|
|
|
Post by Admin on Sept 16, 2017 7:51:22 GMT -8
Doug, You have a bad ADC board.  Please send it in to: SwitchDoc Labs RMA #091617-01 909 S Shelley Lake Lane Spokane Valley, WA 99037 and we will test it and repair (ha!) or send you a new one. Best regards, BP
|
|