jigneshvasoya / drcontrol

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

invalidates the opening sequence of the relays #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

./drcontrol.py -d DAE0002Y -r 1 -c on (Open relay 2)

./drcontrol.py -d DAE0002Y -r 2 -c on (Open relay 4)

./drcontrol.py -d DAE0002Y -r 3 -c on (Open relay 6)

./drcontrol.py -d DAE0002Y -r 4 -c on (Open relay 8)

./drcontrol.py -d DAE0002Y -r 5 -c on (Open relay 1)

./drcontrol.py -d DAE0002Y -r 6 -c on (Open relay 3)

./drcontrol.py -d DAE0002Y -r 7 -c on (Open relay 5)

./drcontrol.py -d DAE0002Y -r 8 -c on (Open relay 7)

What version of the product are you using? On what operating system?

Slackware 14 (ARM - Raspberry Pi)

root@slack:/api# uname -a
Linux slack 3.6.11+ #518 PREEMPT Fri Aug 2 11:39:53 BST 2013 armv6l 
ARMv6-compatible processor rev 7 (v6l) BCM2708 GNU/Linux

root@slack:/api# ./drcontrol.py -l
Vendor          Product                 Serial
FTDI            FT245R USB FIFO         DAE0002Y

USB Eight Channel Relay Board for Automation - 12/24V

http://www.denkovi.com/productv/31/usb-eight-channel-relay-board-for-automation-
12-24v.html

Please provide any additional information below.

Original issue reported on code.google.com by gustavo....@gmail.com on 11 Aug 2013 at 7:08

GoogleCodeExporter commented 8 years ago
This is old but anyone stopping by may need this info.

You will need to change the address sequence for your specific relay in 
drcontrol.py. Seems like your sequence will need to look something like this,

    address = {
            "1":"1",
            "2":"2",
            "3":"4",
            "4":"8",
            "5":"10",
            "6":"20",
            "7":"40",
            "8":"80",
            "all":"FF"
            }

Original comment by aaronpla...@gmail.com on 13 Oct 2014 at 12:50

GoogleCodeExporter commented 8 years ago
This works, the relays power on in the right order.  However the state command 
still says the relay is of, although it's on.

Original comment by joris0...@gmail.com on 20 Mar 2015 at 4:38