avistel / drcontrol

Automatically exported from code.google.com/p/drcontrol
0 stars 0 forks source link

On a denkovi 8 relay board the state function doesn't work correctly #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On a denkovi 8 relay board the state function doesn't work correctly

What steps will reproduce the problem?
1.  power on one of the relay
2.  send the state command
3.  still says off, however relay is on

With the all on command, state of 7 of the 8 becomes on, but they're all on.  I 
did change 

What is the expected output? What do you see instead?
When you send the on command, relay should be powered up, and state should say 
on

What version of the product are you using? On what operating system?
I run the last version (0.12c) on a Raspberry pi running debian 7.6

I already change line 193 as suggested in issue 2:

for i in range(1,9):

I also did have to change the numbering to get the relays in the right order:
   address = {
            "1":"1",
            "2":"2",
            "3":"4",
            "4":"8",
            "5":"10",
            "6":"20",
            "7":"40",
            "8":"80",
            "all":"FF"
            }

Please provide any additional information below.

Original issue reported on code.google.com by joris0...@gmail.com on 20 Mar 2015 at 4:35

GoogleCodeExporter commented 8 years ago
Fixed it.   I had to change the addresses used in in the get_relay_state 
function too.

If you want I can upload a fully functional version for the Denkovi 8 relay 
board.  

Original comment by joris0...@gmail.com on 2 May 2015 at 1:24

GoogleCodeExporter commented 8 years ago
I also have the numbering issue - I would love the updated version!  I was just 
going to wire my project according to your current numbers haha!

Original comment by rohan.ha...@gmail.com on 14 Aug 2015 at 12:03