Closed martinling closed 1 year ago
If your Pi 2 was powered by its own power supply, it boot directly and you most probably did not tap the button on Witty Pi 4 (so its white LED blinks), is it the case?
When the white LED blinks, Witty Pi 4's MCU is in sleep mode, and gets woke up every few seconds (for blinking the LED etc.). If your I2C request comes when MCU is awake, it gets processed properly, otherwise not.
Ah OK, that makes sense. I was trying to get everything set up before installing it with a 12V supply, but I guess I'll need to do that first, or at least tap the button to wake it.
I pressed the button when starting up the Pi so that the MCU would be in the right state, and now I2C is reliable. Thanks!
I have a Witty Pi 4 attached to a Raspberry Pi 2, running a freshly installed Raspbian. I installed the software with
https://www.uugear.com/repo/WittyPi4/install.sh
and rebooted the Pi.Currently the Pi 2 is being powered from its own 5V input. There is a CR2032 cell installed in the Witty. Nothing else is attached to the GPIO header or to the Witty Pi.
It seems that accessing the I2C interface does not work reliably:
Running
i2cdetect
reliably shows the device at address 0x08:However, reading a single register with
i2cget
only works about 25% of the time:Using
i2cdump
will read out most of the registers successfully, but 4-5 consecutive reads will always fail, as indicated by theXX XX XX XX XX
entries here:The issue is not with specific registers, these
XX
groups may occur anywhere in the register map.Any ideas?