Olimex Support Forum

Others => UEXT => Topic started by: enviroOpen on January 04, 2014, 04:02:43 PM

Title: MODIO and Raspberry PI I2C Communication Woes.
Post by: enviroOpen on January 04, 2014, 04:02:43 PM
I'm having trouble communicating to the MODIO board with the Raspberry Pi.
The MODIO is connected to pi via the RPI-UEXT board.
Data is received correctly on the first time it's polled, but afterwards all data is recieved as zeros?
This is true for both analog and digital inputs, yet writing to digital outputs work correctly?
Is this issue related to Pi's i2c driver and lack of support of clock stretching?
I've tried two methods to poll data, i2cget command from terminal and modio.py master found on GitHub.
Title: Re: MODIO and Raspberry PI I2C Communication Woes.
Post by: RazZziel on January 05, 2014, 08:34:59 PM
In order to rule out whether the problem is in the MOD-IO or in the RaspberryPi, have you tried substituting the Raspberry with another computer? Or communicating from the RaspberryPi with another i2c module (i.e. MOD-RTC)?
Title: Re: MODIO and Raspberry PI I2C Communication Woes.
Post by: enviroOpen on January 05, 2014, 11:06:21 PM
RazZziel,

Yes, I'm currently reading temperature from a TMP102 reliably.
I have no means to replace the PI as a master controller.

Thanks for the reply.