ShopLogo
PRODUCTS
Software delivered with USB devices

ClewareControl

The application "ClewareControl" displays the states and values of the found Cleware devices. The values could be stored and retrieved later. The printing of the diagrams is supported.

The device properties like the displayed name, the polling interval or the color of the curve could be modified. Every device could assigned to up to 256 actions, which will be called when a state is reached. For example if the temperature exceeds a limit a alarm tone could be played, at a higher temperature an email will be send and at a third level an USB-Switch with a connected air conditioner may be activated.


ClewareControl may be configured as a display server to control and display Cleware devices available on the LAN. In the screenshot on the right five local devices and one remote temperature device connected to a Linux system in the server room are displayed.

The devices USB-Watchdog and USB-AutoReset will receive signs of life from ClewareControl. The supervision of critical events will also be done here. The first device in the screenshot on the right is an example for this.

USB-Switches are also controlled and visualized with ClewareControl. The events are times, the switch should be turned on or off. The USB-Switch could also be turned as an action initiated by other sensors, e.g. the USB-Temp.

The ClewareControl application could be configured to run as a service in the background. In the background, data is aquired, actions are taken and values are send to display server.

A complete description of ClewareControl and the USB devices are available PDF format.

The application is available in the Download area for testing. A simulator to test the application under real conditions and some sample data could also be found here.

USBswitch

If a switching Cleware device like the USB-Switch or USB-TrafficLight just should be turned on and off without recording, the little application"USBswitch" may be used. The program is located in the system tray when minimized. The state of the switches is represented by red or green icons. A short time timer is integrated in this appiplaction.

When applying USBswitch with an USB-TrafficLight, three lights show up, same as USB-Switch3. By renaming USBswitch to USBampel, the light s show up light a traffic light.
Ampel

 

USBswitchCMD

For easy access to the Cleware switching devices like USB-Switch or USB-TrafficLight, a command line tool is available. Using this program it is possible to access the device from many program or in batch processing The program is called USBswitchCMD and is called with one or more of the following options:

  • -n device take the USB-Switch with the serial number device
  • 0 turn off (0 is the number 0)
  • 1 turn on
  • R turn on red traffic light
  • Y turn on yellow traffic light
  • G turn on green traffic light
  • O turn off all traffic light
  • -# switch when the device consists of multiple switches, choose this one, first=0
  • -i nnn interval test, turn the device on and off, time interval nnn ms, in an endless loop
  • -I nnn interval test, turn on, wait nnn ms and turn off
  • -p t1 .. tn pulse mode, the switch will be turned on for 0.5 seconds then t1 seconds paused, turned on 0.5 s and t2 s pause, etc. after processing the last argument the switch turns off and the program terminates.
Samples:

When a light should turn on when a new mail arrives, call the command in the rules of Outlook, e.g.
USBswitchCMD 1

Given an USB-Switch3, when the third socket should be turned on, use this
USBswitchCmd 1 -# 2

This is a real sample for a cost effective control of a firework battery. The single shots are fired by closing the contact of an USBswitch3,5' for a short time. The pauses are 1 second, 4 seconds, etc.
USBswitchCMD -p 1 4 5 7 12 2 7

To turn the red light of an USB-TrafficLight on and yellow and green off, just call
USBswitchCMD R

 

 

Application programing interface (API)

To integrate Cleware device in user application several API are available. The central interface is USBaccess.dll defined in USBaccess.h. This is the interface all of the Cleware Windows programs are using. The user interface is shown on the right. More information is located in the download area. Delphi and Linux support is also available. Some graphical interface programming tools like LabView offers the ability to load an external library. Using this feature is is possible to doi actions inthe real world, like turning switches/lights or measure temperature/humidity.