PhilE wrote:I know this doesn't help you, but I2C isn't completely dead. The Sense HAT seems to work as normal - display, compass, joystick etc. - as does an I2C RTC.
1) Make sure you don't load the i2c-bcm2708 driver - no overlay, not in /etc/modules.
2) Add " i2c_bcm2835.debug=3" to /boot/cmdline.txt.
3) Reboot.
4) Try to access the UPS devices via i2cget etc., then dump the output of dmesg into a text file and upload it where we can see it.
Just a little bit earlier then expected.
But here are my findings.
Information on 4.4.50 PI3 in working condition:
Some screenshots while running 4.4.50 kernel on my Pi3.
On which everything is working as it should be.
When doing i2cget -y 1 0x69 0x26 i get a output of 0x24, in this case i read the current firmware version
System Info:
https://dl.dropboxusercontent.com/u/232 ... ebug_1.png
UPS HV3.0A Stack Plus:
https://dl.dropboxusercontent.com/u/232 ... ebug_2.png
i2cdetect -y 1 output
Code: Select all
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU 69 6a 6b 6c 6d 6e 6f
70: -- -- -- -- -- -- -- --
Next i went into /etc/modules and comment out all driver loads.
Only let i2c-dev untouched and added i2c_bcm2835.debug=3 to the cmdline.txt
Connected to the UPS by i2cget -y 1 0x69 0x26.
Output :
http://pastebin.com/bJjGzBev
Information on 4.9.11 PI3 in non working condition:
Next i ran rpi-update and upgraded to 4.9.11-v7+ armv7l
Rebooted and and connected to the UPS by i2cget -y 1 0x69 0x26 i got a output of 0xff which should output 0x24
Output :
http://pastebin.com/f9vXqqhn
i2cdetect -y 1 output on 4.9.11
Code: Select all
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 69 6a 6b 6c 6d 6e 6f
70: -- -- -- -- -- -- -- --
edit: Just notice that after doing i2cget -y 1 0x69 0x26 it also wrote instead of reading.
After returning to 4.4.50 a saw it wrote 0xde to the ups, weird...