Page 1 of 1

IP controlled relay board - feedback

Posted: Tue Jun 18, 2019 8:57 am
by Peter M
I've built a remote controlled power supply box based around an eight channel IP controlled relay board that I got from DFRobot -

https://www.dfrobot.com/product-503.html

The board reports the status of all the relays using a single byte of feedback, with one bit for each of the eight channels.

Using Hercules to look at the feedback gives me a single character that is the ASCII equivalent to the returned byte. I've checked the ASCII / binary conversions and it's sending correct feedback.

My problem is that I have no idea how I might be able to convert the byte to binary and look at each bit.

Any ideas ?

Cheers,
Peter

Re: IP controlled relay board - feedback

Posted: Fri Jul 12, 2019 8:46 am
by Peter M
So it eventually became clear that Demopad couldn't solve this problem by itself. Using EventGhost and a bit of python code did the trick.

Cheers,
Peter