Coder Social home page Coder Social logo

drcontrol's People

Watchers

 avatar

drcontrol's Issues

request

Hi,

your script is very good. Only one question: i have the 4 relay board with 
temperature sensor. How can I read the temperature with your script? can you 
add some option to read it?

thanks
lorenzo


Original issue reported on code.google.com by [email protected] on 22 Mar 2014 at 10:16

invalidates the opening sequence of the relays

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 [email protected] on 11 Aug 2013 at 7:08

OS X Mavericks 10.9.1 "Error: device not found (-3)"

What steps will reproduce the problem?
1. Have a Mac Mini with OS X Mavericks 10.9.1
2. Perform all the steps (included troubleshooting) of the OX X installation 
guide (https://code.google.com/p/drcontrol/wiki/Install_MacOSX)
3. After successfully getting the device serial (with -l), trying to set the 
relays with -r

What is the expected output? What do you see instead?
Expected: Relays being set, confirmation
Getting instead: Relays not being set, Error "Error: device not found (-3)"

What version of the product are you using? On what operating system?
Rev: 53 - 2013-01-03 18:13:01
OS X Mavericks 10.9.1

Please provide any additional information below.
I installed the drivers from http://www.ftdichip.com/Drivers/VCP.htm
I also performed the kextunload and kextload

Is the function of drcontrol with Mavericks confirmed yet?
Thank You!

Original issue reported on code.google.com by [email protected] on 8 Feb 2014 at 9:39

"list all states" only lists 7 of 8 relays

As you see, it only lists 7 relays if i use the "all"-option while it's 
possible to ask for the state of relay 8. It's version 0.12c

{{{
root@machine:~/drcontrol# ./drcontrol.py -h
Usage: drcontrol.py [options]

Options:
  -h, --help            show this help message and exit
  -d DEVICE, --device=DEVICE
                        The device serial, example A6VV5PHY
  -l, --list            List all devices
  -r RELAY, --relay=RELAY
                        Relay to command by number: 1...8 or all
  -c COMMAND, --command=COMMAND
                        State: on, off, state
  -v, --verbose         Verbose, print all info on screen
root@machine:~/drcontrol# ./drcontrol.py -v -l
DRControl 0.12
Vendor          Product                 Serial
FTDI            USB Serial Converter            FTG63F5K
FTDI            FT245R USB FIFO         A601S3OQ
wh Berlin               EMP800.14               whEMP00254594
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r all -c state
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay all (0xFF) to STATE
Relay 1 state:  OFF (0)
Relay 2 state:  OFF (0)
Relay 3 state:  OFF (0)
Relay 4 state:  OFF (0)
Relay 5 state:  OFF (0)
Relay 6 state:  OFF (0)
Relay 7 state:  OFF (0)
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r all -c on
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay all (0xFF) to ON
Relay all to ON
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r 8 -c on
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay 8 (0x40) to ON
Relay 8 to ON
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r 8 -c on
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay 8 (0x40) to ON
Relay 8 to ON
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r all -c on
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay all (0xFF) to ON
Relay all to ON
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r all -c state
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay all (0xFF) to STATE
Relay 1 state:  ON (2)
Relay 2 state:  ON (8)
Relay 3 state:  ON (32)
Relay 4 state:  ON (128)
Relay 5 state:  ON (4)
Relay 6 state:  ON (16)
Relay 7 state:  ON (64)
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r all -c off
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay all (0xFF) to OFF
Relay all to OFF
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r all -c on
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay all (0xFF) to ON
Relay all to ON
root@machine:~/drcontrol# ./drcontrol.py -v -d A601S3OQ -r 8 -c off
DRControl 0.12
Device:         A601S3OQ
Send command:   Relay 8 (0x40) to OFF
Relay 8 to OFF
}}}

Original issue reported on code.google.com by ladiko on 29 Aug 2013 at 12:37

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

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 [email protected] on 20 Mar 2015 at 4:35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.