Olimex Support Forum

Others => UEXT => Topic started by: jpacha on August 09, 2014, 07:58:42 PM

Title: MOD-IO - Status of rellays
Post by: jpacha on August 09, 2014, 07:58:42 PM
Hi! Do you know if it is possible to get the actual status of the rellays in the MOD-IO2? (I use the i2c tools for managing this rellays, turning on/off, but for safety in my application I need to poll the status of this rellays)

Thanks in advance!
Title: Re: MOD-IO - Status of rellays
Post by: Lurch on August 11, 2014, 12:37:00 PM
No. You would have to change the firmware code to add a call to track and get the actual state of the relays.
Olimex has the source code published, so you can change it and reprogram the AVR chip.
It would probably be easier to just have a variable in your program to keep track of whether you set a relay or not.
Title: Re: MOD-IO - Status of rellays
Post by: jpacha on August 12, 2014, 10:15:22 AM
Thanks, this is what I was fearing... I think that I'll try to modify the firmware as you suggest.