Currency:
USD
  • USD
  • EUR
  • AUD
  • BRL
  • GBP
  • BGN
  • CAD
  • CNY
  • HRK
  • CZK
  • DKK
  • HKD
  • HUF
  • INR
  • IDR
  • MYR
  • MXN
  • NZD
  • NOK
  • PHP
  • PLN
  • RON
  • RUB
  • SGD
  • ZAR
  • KRW
  • SEK
  • CHF
  • THB
  • TRY
  • JPY
  • AED
  • EGP
  • MDL
  • RSD
  • UAH
Welcome to our store!

Shopping Cart

0 items

Shipping

Registered mail (Posts), table based cost.
DHL Express service, fixed cost at 42.00 USD per order.
GLS, fixed cost at 26.00 USD per order.
DPD, fixed cost at 22.00 USD per order.

Payment

Credit Cards, we accept Visa, MasterCard, Maestro
Paypal, you can place the order directly via our web shop
Wire transfer, please contact with us for Proforma-Invoice

Verified by

website security

For EU Customers

All prices are WITHOUT VAT 20.00%

If you are located in EU and your company has valid VAT number we will reduce the VAT charge AFTER you make the order as our site does not support online VAT number validation. We do it as partial refund. You can use this online tool for VAT validation: http://ec.europa.eu/taxation_customs/vies/

Denkovi Relay Command Line Tool

Denkovi Relay Command Line Tool is Linux/Windows software for controlling all Denkovi USB relay boards from command line promt

 

 

The main goal of this project is to help to all our customers to use our USB relay boards easily and without any programming knowledge. This tool is actually shell for all our USB relay boards and it does not matter which is the relay board, the command is the same. Just type one command and the the tool will set, get relay status or even will take temperature value from the board sensor (if any). It can be integrated in other software and you don't need to know much about how the USB relay board work. With this tool it is like a "game" and it takes literaly minutes to create for example PHP script and control the USB relay board from smartphone browser.

 

  • Multiplatform software: supported by Windows and Linux
  • Simple and user friendly commands
  • Practically supports unlimited number of relay boards connected to the host computer
  • Typical applications for this software are:
    • Create desktop icons to turn particular relays
    • Create BAT/BASH files to make more complex logic (like timers for example)
    • The commands can be executed from PHP script
    • Control our USB relay boards from Android / iPhone mobile devices
    • The USB relays can be controlled from each software/platform which can run external executable files or commands in command line promt

 

 

Quick links

 

 

Who can use Denkovi Relay Command Line Tool

Denkovi Relay Command Line Tool may be used by anyone who has at least one of Denkovi relay boards from the current version supported list.

It is not allowed to use Denkovi USB Relay Control Software with relay boards which are not manufactured by Denkovi Assembly Electronics LTD.

 

 [back to top]

 

List with currently supported Denkovi relay boards 

Order number
Relay board name and link
DAE-CB/Ro4/MCP2200-USB USB Four(4) Relay Output Module,Board for Home Automation v2
DAE-CB/Ro4-USB USB Four Channel Relay Board for Automation
DAE-CB/Ro8/12V-USB USB Eight Channel Relay Board for Automation
DAE-RB/Ro16-12V + DAE-CM/Do16-USB USB 16 Channel Relay Module - RS232 Controlled, 12V - ver.1
DAE-CB/Ro16/Di4-USB USB 16 Channel Relay Module - RS232 Controlled, 12V - ver.2
DAE-CB/Ro4-JQC/TCN75A-USB USB Four Channel Relay Board with temperature sensor TCN75A

 

 [back to top]

 

Current version download

Version
Release date
Windows/Linux (.rar)
2.6 16.06.2016

DenkoviRelayCommandLineTool.rar

DenkoviRelayCommandLineTool.zip

2.3 04.12.2015

DenkoviRelayCommandLineTool.rar

DenkoviRelayCommandLineTool.zip

1.0 10.07.2013 DenkoviRelayCommandLineTool.rar

Version history may be downloaded from here

 [back to top]

 

System requirements

Operating systems:

  • Windows (tested on Windows XP, Windows Vista, Windows 7 and Windows 8, Windows 10)
  • Linux (tested on Ububtu and OpenSuse)
  • Raspberry PI

Requires: Java
Requires: FTDI drivers

 [back to top]

How to run it

Open CMD (on Windows), Terminal/Console (on Linux/BSD) and type:

java -jar "path/to/the/folder/of/this/tool/"DenkoviRelayCommandLineTool.jar

Without any parameters, it simple prints help instructions and shows the current version.

 

If you are behind proxy or firewall, you can use the following format of the java command. It is possible the proxy server and port to be different for your case:

java -Dhttp.proxyHost=proxy.server.com -Dhttp.proxyPort=8000 -jar "path/to/the/folder/of/this/tool/"DenkoviRelayCommandLineTool.jar

 

 [back to top]

 

Available commands

  • LIST COMMAND - lists all devices connected to computer.

To see devices connected to computer, type:

java -jar DenkoviRelayCommandLineTool.jar list

Expected answer:
[DEVICE SERIAL NUMBER] [[DEVICE TYPE]]

Examples:
Input:
java -jar DenkoviRelayCommandLineTool.jar list

Output:
DAE0006K [FT245R USB FIFO]
DAE0007l [FT232R USB UART]

Please note that denkovi USB 4 and USB 8 Relay Boards are FT245R USB FIFO and USB16 Relay Boards are FT232R USB UART based. They can not be mixed.

 

Important !

In most Linux OS in order to run our USB relay boards (based on FTDI chipset) you must do the following each time when you connect USB relay board based on FTDI chipset: you must unload this driver (and usbserial) if it is attached to your device ("rmmod ftdi_sio" and "rmmod usbserial" as root user). After that the USB relay board(s) will be shown when the "list" command is invoked.

 

  • LIST COMMAND - lists all available devices (sorted lexicographically by its serial number) connected to the current machine.

java -jar DenkoviRelayCommandLineTool.jar list

Examples:
Input:

java -jar DenkoviRelayCommandLineTool.jar list

Output:

DAE001d3 [FT245R USB FIFO] [id=0]
DAE002iD [FT232R USB UART] [id=1]

 

 

  • STATUS COMMAND - displays relay(s) status(es).

If you want to get status for one relay, type:

java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] [RELAY COUNT] [RELAY NUMBER] status

Relay count can be: 4 (USB 4 Relay Board),8 (USB 8 Relay Board),16 (USB 16 Relay Board)

Expected results: 1 – for ON relay and 0 – for OFF relay.

Examples:
Input:
java -jar DenkoviRelayCommandLineTool.jar DAE0006K 4 2 status
java -jar DenkoviRelayCommandLineTool.jar DAE0007l 16 12 status

Output:
0 // relay N 2 on USB 4 relay board is turned off
1 // relay N 12 on USB 16 relay board is turned on


If you want to get status for all relays, type:

java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] [RELAY COUNT] all status

Expected results: 1n – for working relays and 0n – for stopped relays.
 

Examples:
Input:
java -jar DenkoviRelayCommandLineTool.jar DAE0006K 4 all status
java -jar DenkoviRelayCommandLineTool.jar DAE0007l 16 all status

Output:
1011 //only relay N 2 on USB 4 relay board is turned off
0100000000000000 //only relay 2 on USB 16 relay based device is turned on

 

  • SET COMMAND - sets relay(s) state(s).

If you want to set status for single relay, type:

java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] [RELAY COUNT] [RELAY NUMBER] [{0,1}]

Expected results:  returns the status of all relays if the command is successful.

Examples:
Input:
java -jar DenkoviRelayCommandLineTool.jar DAE0006K 4 2 1
java -jar DenkoviRelayCommandLineTool.jar DAE0007l 16 12 0

Output:
1100
0000000001101100

After executing, relay 2 on USB 4 relay board will be turned on, all other will be unchanged, and relay 12 on USB 16 relay board will be turned off, all others - unchanged.
 

If you want to set on/off all the relays at once, type:

java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] [RELAY COUNT] all [{0,1}]

Examples:
Input:
java -jar DenkoviRelayCommandLineTool.jar DAE0006K 4 all 1
java -jar DenkoviRelayCommandLineTool.jar DAE0007l 16 all 0

Output:
1111 //all the four relays are ON
0000000000000000 //all sixteen relays are OFF

 

If you want to set different status for all relays at once with one command, type:

java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] turn [{0,1}n]

Examples:
Input:
java -jar DenkoviRelayCommandLineTool.jar DAE0006K 4 turn 1110
java -jar DenkoviRelayCommandLineTool.jar DAE0007l 16 turn 1111111111110110

Output:
1110
1111111111110110

After executing all relays on USB 4 relay board will be turned on except relay 4, and only relays 12 and 16 on USB 16 relay board will be turned off, but all others will be turned on.

 

  • TEMPERATURE COMMAND - get the temperature value (only if the relay board support temperature sensors)


java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] [RELAY COUNT=4] temp [{C,F}]

Expected results:  the temperature value in C or F

Examples:

Input:
java -jar DenkoviRelayCommandLineTool.jar DAE0006K 4 temp C
java -jar DenkoviRelayCommandLineTool.jar DAE0007l 4 temp F

Output:
29.5C
85.0F

The first answer is in Celsius and the second is in Fahrenheit.

 

  • TIMER COMMAND - exectues time-critical operations. Well known fact is that every time when we run the command line tool the jvm is runned and this takes significant time. Many users contacted us with requests to execute timer commands for time-critical operations. That's why we added such command. It can perform single pulse, many pulses and even cycles with more complex sequences of pulses and every pulse can be with different time (in miliseconds). Please note the state bits must be equal to the relay numer!


java -jar DenkoviRelayCommandLineTool.jar [DEVICE SERIAL NUMBER or ID] [RELAY COUNT] timer [cycles,state1,time1,state2,time2...]

Expected results:  current cycle and relays statuses during every switching

Examples:

Example 1:
java -jar DenkoviRelayCommandLineTool.jar id=1 4 timer 1,1111,10,0000,50,1111,25 //makes all relays ON for 10ms, all OFF for 50ms and all ON for 25ms

Cycle 1/1
1111
0000
1111

Example 2:
java -jar DenkoviRelayCommandLineTool.jar id=1 8 timer 5,11111111,10,00000000,100 //makes all relays ON for 10ms and all OFF for 100ms - 5 times

Cycle 1/5
11111111
00000000
Cycle 2/5
11111111
00000000
Cycle 3/5
11111111
00000000
Cycle 4/5
11111111
00000000
Cycle 5/5
11111111
00000000

Example 3:
java -jar DenkoviRelayCommandLineTool.jar id=1 16 timer 5,1000000000000000,10,0000000000000000,1000 //makes first relay ON for 10ms and OFF for 1sec - 5 times

Cycle 1/5
1000000000000000
0000000000000000
Cycle 2/5
1000000000000000
0000000000000000
Cycle 3/5
1000000000000000
0000000000000000
Cycle 4/5
1000000000000000
0000000000000000
Cycle 5/5
1000000000000000
0000000000000000

 

 [back to top]

 

 

Typical applications:

  • Run it from the command promt
    The commands are the same for Windows / Linux.

 

  • Create shortcut in Windows

Now type

java -jar "path/to/the/jar/file" and the command in our case which is "DAE0007l 16 all 1"

Name it "ALL ON". When you click it if all the settings are correct, the relays should be all ON.

Now, you can create the same way ALL OFF command or whatever shortcut you need.

 

  • How to use it with BAT / BASH files.

Very often for many applications it is required some relay to be turned on, wait several seconds and then off. This is so called timer function. With our command line tool this can be done in several easy steps in Windows:

  1. Create new text file and save it as .BAT file. For example "Pulse5.BAT".
  2. Open the file and type the following commands (USB 16, work with relay 1) and save it.
    • java -jar DenkoviRelayCommandLineTool.jar DAE00000 16 1 1
    • PING 1.1.1.1 -n 1 -w 5000 >NUL
    • java -jar DenkoviRelayCommandLineTool.jar DAE00000 16 1 0
  3. Now you can just click it. Relay 1 will be turned ON for 5 seconds and then will be turned OFF.

It is the same story for Linux:

  1. Create new text file and save it as .VIM file. For example "Pulse5.VIM".
  2. Open the file and type the following commands (USB 16, work with relay 1) and save it.
    • #!/bin/bash
    • java -jar DenkoviRelayCommandLineTool.jar DAE00000 16 1 1
    • sleep 5
    • java -jar DenkoviRelayCommandLineTool.jar DAE00000 16 1 0
  3. Now you can just click it. Relay 1 will be turned ON for 5 seconds and then will be turned OFF.

 

  • Call it from PHP script:

Just use the function shell_exec() :

<?php

$output = shell_exec('java -jar DenkoviRelayCommandLineTool.jar DAE00000 16 1 0');

?>

Bellow it is shown video how it is possible to acess USB 4 relay board from Android tablet

 

 [back to top]

We accept

 

 

 

Stores

Scroll To Top