The main goal of this project is to help to all our customers to use our DAEnetIP3 boards easily and without any programming knowledge. This tool is actually shell for all our DAEnetIP3 boards and it does not matter which is the module, the command is the same. Just type one command and the the tool will set, get relay status or even will take inputs value from the board. It can be integrated in other software. With this tool it is like a "game" and it takes literaly minutes to create for example PHP script and control the DAEnetIP3 relay board from smartphone browser.
- Multiplatform software: supported by Windows (32/64) and Linux 32/64 bit, osX
- 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 DAEnetIP3 relay boards from Android / iPhone mobile devices
- The DAEnetIP3 modules can be controlled from each software/platform which can run external executable files or commands in command line promt
- Who can use the software
- List with currently supported DAEnetIP3 modules
- Current version download
- How to run it
- Available commands
- Typical applications
Who can use DAEnetIP3 Command Line Tool
DAEnetIP3 Command Line Tool may be used by anyone who has at least one of DAEnetIP3 boards from the current version supported list.
List with currently supported DAEnetIP3 devices
Order number
|
Device name and link
|
DAEnetIP3-Ex | DAEnetIP3-Ex |
DAEnetIP3-Wx | DAEnetIP3-Wx |
DAE-RB/Ro8-12V + DAEnetIP3-ET | DAEnetIP3 with 8 relay Board (Ethernet version) |
DAE-RB/Ro8-12V + DAEnetIP3-WT | DAEnetIP3 with 8 relay Board (Ethernet version) |
DAE-PB-RO12-JQC/DI8/AI8 + DAEnetIP3-EB | Ethernet 12 relay module - Web, TCP/IP, Telnet, HTTP API, E-mails |
DAE-PB-RO12-JQC/DI8/AI8 + DAEnetIP3-WB | Wi-Fi 12 relay module - Web, TCP/IP, Telnet, HTTP API, E-mails |
Version
|
Release date
|
Windows/Linux (.rar)
|
1.0 | 06.10.2014 | DenkoviRelayCommandLineTool.jar |
System requirements
Operating systems:
- Windows, Linux, OsX
- Java - the recommended is Oracale Java 8 Java SE Runtime Environment (JRE) / Java SE Development Kit (JDK), but other JRE / JDK builds and versions (8 or above) also should work;
Open CMD (on Windows), Terminal/Console (on Linux/BSD) and type:
java -jar "path/to/the/folder/of/this/tool/"DAEnetIP3CommandLine.jar
Without any parameters, it simple prints help instructions and shows the current version
Example 1: Receive the status of PortA
Input:
java -jar DAEnetIP3CommandLine.jar 192.168.0.100 admin ASG=?
Output:
ASG=FFFF
Example 2: The above example but this time with setting the port
Input:
java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin ASG=?
Output:
ASG=0F0F
Example 3: Get many parameters at a time
Input:
java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin "CV0=?&CV1=?"
Output:
CV0=123;CV1=234;
Example 4: Set many parameters at a time
Input:
java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin "AS0=1&AS1=1"
Output:
AS0=1;AS1=1;
Example 5: Tricky example how to set relay for 5 second and turn it off automatically
Input:
java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin "AM0=F&AD0=5&AS0=1"
Output:
AM0=F;AD0=5;AS0=1;
Example 6: Turn on Relay 1 saying that it must work in mode "On/Off settings"
Input:
java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin "AM0=0&AS0=1"
Output:
AM0=0;AS0=1;
- Create Windows shortcut
- Run it from the command promt
The commands are the same for Windows / Linux / osX.
- 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:
- Create new text file and save it as .BAT file. For example "Pulse5.BAT".
- Open the file and type the following commands (work with relay 1) and save it.
- java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin AS0=1
- PING 1.1.1.1 -n 1 -w 5000 >NUL
- java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin AS0=0
- 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:
- Create new text file and save it as .VIM file. For example "Pulse5.VIM".
- Open the file and type the following commands (work with relay 1) and save it.
- #!/bin/bash
- java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin AS0=1
- sleep 5
- java -jar DAEnetIP3CommandLine.jar 192.168.0.100:80 admin AS0=0
- 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 DAEnetIP3CommandLine.jar 192.168.0.100:80 admin AS0=0');
?>