Skip to main content

iRidi for Duotecno

Tools for creating a visualization interface

The driver controls Duotecno equipment. Use the sample projects to explore its capabilities:

Description​

iRidi for Duotecno is a set of tools for creating a home or office control interface based on Duotecno equipment. It implements commands from the Duotecno TCP/IP protocol.

Connection​

Note

Control panels (iOS, Android, Windows, Mac) can control equipment on the Duotecno CAN bus only through TCP/IP Homeserver (DT18-HS).

Smartbox modules have their own TCP/IP interface and can be controlled directly. However, when connected to a Smartbox, you can control only that Smartbox (even if other modules are connected to its CAN interface). All other CAN bus modules are accessible only through TCP/IP Homeserver.

DuoConnecttoBus.png

Scanning the bus to add modules​

Scanning the Duotecno CAN bus through TCP/IP Homeserver is the easiest way to add Duotecno equipment that is already connected to the bus and available for control to an iRidi project.

Open iRidi Studio, create a new project, and open the Devices side panel (PROJECT DEVICE PANEL):

  • Open Scanner / Import and select DuoTecno network scanner
  • Specify the IP address and port of TCP/IP Homeserver
  • Select the checkboxes for the modules you want to control from iRidi (all are selected by default)

DuoTecno1.png

Find the TCP/IP Homeserver IP address and connection port in Duotecno Config Tool:

ConfigToolDuoConnecttoBus-1.png

IP: 192.168.X.XX - Homeserver IP address; specify it as Host in the scan and connection settings

ConfigToolDuoConnecttoBus-2.png

Server IP-Port: 5001 - Homeserver port; specify it as Port in the scan and connection settings

Adding modules manually​

If you cannot scan the bus through TCP/IP Homeserver, or if you have new devices, add Duotecno modules to the project from the iRidi database:

  • Start iRidi Studio and create a new iRidi project
  • Open the device database (DEVICE BASE), DuoTecno tab. Drag DuoTecno Network to the project device panel (PROJECT DEVICE PANEL)
  • Open the DuoTecno > Units database tab. Drag the required modules onto the DuoTecno Network device. They are added to your project and become available on the tabs for the corresponding device types.

DuoTecno2.png

Add DuoTecno Network (the bus access interface)

DuoTecno3.png

Add the modules you want to control

Note

When adding modules manually, you need to specify their addresses in the project. An address consists of two parts:

  • NodeID - node identifier (HEX format)
  • UnitID - unit identifier (HEX format)

You must specify device addresses in the iRidi project; otherwise, the devices will not work. You can find the addresses of dimmers, relays, sensors, etc. in, for example, Duotecno Binding Software. Network scanning adds the addresses automatically.

Configuring connection parameters​

After adding modules to the project by scanning or manually, specify the connection settings for TCP/IP Homeserver in DuoTecno Network.

DuoTecno4.png

  • Host - IP address of the TCP/IP Homeserver interface;
  • Port - TCP/IP Homeserver connection port, usually 5001;
  • Login - server access login;
  • Keep Alive - connection hold time in seconds.

Find the TCP/IP Homeserver IP address and connection port in Duotecno Config Tool:

ConfigToolDuoConnecttoBus-1.png

IP: 192.168.X.XX - Homeserver IP address; specify it as Host in the scan and connection settings

ConfigToolDuoConnecttoBus-2.png

Server IP-Port: 5001 - Homeserver port; specify it as Port in the scan and connection settings

Changing connection parameters​

You need to change connection parameters when you disconnect from the automation site's Wi-Fi network and start using 3G or another Wi-Fi network. For control to continue working, switch from the local IP address to the Internet router's public IP address.

Switching is not automatic; you need to press the connection mode selection button. For remote access, the automation system's control ports must be made public. To do this, configure Port Forwarding on the Internet router. A VPN can provide a secure connection.

  1. Download the template (*.js) (right-click and save the target), then add it to the script editor using (+) Add Script from file

  2. Configure the script parameters as shown in the example:

function Internal_1() {
IR.GetDevice('DuoTecno Network').SetParameters({Host: "192.168.0.95", Port: 5001, Login: "duotecno"});
}
function External_1() {
IR.GetDevice('DuoTecno Network').SetParameters({Host: "215.110.10.10", Port: 5001, Login: "duotecno"});
}

Copy the driver name from Project Device Panel; copy the parameter list exactly as shown in the example.

  1. Select the button that will switch between the Internal and External parameters. Open the macros editor for the Press event (Object Properties > Programming), select the Script call command, and double-click to add it. Select the name of the function the button will call:

Script call internal-external.png

Each button press now applies the corresponding connection settings.

Configuring commands and feedbacks​

SendRecieve.png

To control equipment, configure Commands and Feedbacks. To send a command, drag it onto a graphical item and specify the Value to send. To display feedback, drag the Feedback onto a graphical item and specify how to display its Value.

For more information about graphical items, see Graphical item types.

Control​

Dimmer Units​

A dimmer can be turned on and off. Its brightness can be controlled only when the dimmer is on.

Commands

CommandPurposeDescription
On/Off ToggleTurn the dimmer on/offlink the command to the Press (Release) event of a Button item
OnTurn the dimmer onlink the command to the Press (Release) event of a Button item
OffSwitch the dimmer offlink the command to the Press (Release) event of a Button item
Value SetSet dimmer brightness (1-99)
Brightness can be changed only when the dimmer is ON.
Send "Dimmer set on" before use
link "On", then "Value Set", to the Release event of a Level/Button item
UpIncrease dimmer brightness
Brightness increases until you send "Dimmer set on"
link "Up" to Press and "On" to Release
DownDecrease dimmer brightness
Brightness decreases until you send "Dimmer set on"
link "Down" to Press and "On" to Release
Up/Down ToggleChange brightness up/downlink "Up/Down Toggle" to Press and "On" to Release

Feedback

CommandPurposeDescription
Status OnOn state1 - on, 0 - off
Status OffOff state1 - off, 0 - on
Status ValueBrightness1–99
Status PIR TimedMotion sensor1 - light turned on by the motion sensor

Switch/Relay Units​

A relay (switch) can be turned on and off.

Commands

CommandPurposeDescription
On/Off ToggleTurn the relay on/offlink the command to Press (Release)
OnTurn the relay onlink the command to Press (Release)
OffTurn the relay offlink the command to Press (Release)

Feedback

CommandPurposeDescription
Status OnOn state1 - on, 0 - off
Status OffOff state1 - off, 0 - on
Status PIR TimedMotion sensor control1 - relay turned on by the motion sensor

Control Input Unit​

The control module, also called the input module, can be physically connected to input devices (motion sensor, doorbell, etc.). You can control the module to trigger events and monitor its state.

Commands

CommandPurposeDescription
Short pulsShort pulselink to Press (Release)
Long pulsLong pulse1 - start of a long pulse, 0 - end of a long pulse.
Link "Long puls" [Value: 1] to the Hold event of a Button item
Link "Long puls" [Value: 0] to the End Of Hold event of a Button item

Feedback

CommandPurposeDescription
Status onInput closed1 - closed, 0 - open
Status offInput state1 - closed, 0 - open

Sensor Units​

A temperature sensor module can control heating and cooling, but only if the sensor is part of a temperature gateway node.

The sensor has predefined temperature setpoints. The actual temperature is periodically compared with the setpoint. Based on this comparison, the module can enter idle, heating, or cooling mode. The sensor can be turned on and off.

Commands

CommandPurposeDescription
Preset <MODE> selectMode selectionSUN / HALF SUN / MOON / HALF MOON
Setpoint <MODE> setTemperature settingvalue in °C with 0.1 precision
Sensor On/Off ToggleTurn the sensor on/off0 - on, 1 - off
Setpoint UpIncrease the setpoint+0.5°
Setpoint DownDecrease the setpoint-0.5°

Feedback

CommandPurposeDescription
Status Measured ValueTemperaturecurrent value
Status Sensor OnSensor state1 - on, 0 - off
Status Sensor OffSensor state1 - off, 0 - on
Status Sensor CoolingCooling1 - active
Status Sensor HeatingHeating1 - active
Status Sensor IdleStandby1 - no activity
Status Sensor Preset <MODE>Modeactive preset
Status Setpoint <MODE>Setpointtemperature in °C

Basic Audio Units​

The audio module controls audio devices. An audio device represents a "room" (audio zone) that can have up to 8 audio sources and 1 playback device (audio output).

Commands

CommandPurpose
Destination Offturn the audio output off
Destination Onturn the audio output on
Destination On/Off Toggleturn the audio output on/off depending on its state
Source Select <1-8>Source selection
Source Function PLAYsource function: start playback
Source Function PAUSEsource function: pause playback
Source PRESS UPsource function: press Up
Source PRESS DOWNsource function: press Down
Volume Upincrease volume. Volume continues to increase until you send "Destination On"
Volume Downdecrease volume. Volume continues to decrease until you send "Destination On"
Volume Up/Down Toggleincrease/decrease volume depending on the previous direction of change
Commands that work only with the BOSE V35 playback device:
Source Extra Functionadditional remote control commands (numeric input, arrows, etc.)
Source FFWDFast forward
Source FRWDRewind
Source NEXTNext source
Source PREVPrevious source
Source PLAYstart playback
Source PAUSEpause playback
Source STOPstop playback

Feedback

CommandPurposeDescription
Status destination On/OffOutput state1 - enabled
Status source <1-8>Sourceactive source
Status VolumeVolumecurrent playback volume (0-99). Only BOSE Lifestyle 50 and BOSE Lifestyle V-class support retrieving volume (sometimes even these systems cannot return the current volume)
Status Disc InfoDiscdisc information (1-9). Only BOSE Lifestyle 50 can return this information
Status Track InfoTracktrack information (1-32). Only BOSE Lifestyle 50 can return this information
Status Tuner PresetTuner presettuner mode. BOSE Lifestyle 50 returns 0-254, BOSE Lifestyle 48 returns 1-9, and BOSE Lifestyle V-class returns 1-25
Status Tuner FrequencyFrequencytuner frequency. BOSE Lifestyle 50 returns an FM band value, BOSE Lifestyle 48 returns 0 = AM, 1 = FM (or nothing), and BOSE Lifestyle V-class returns the AM band or FM band (or nothing)

Motor Units​

The motor control module is a three-contact relay that switches a motor drive in two directions: up and down.

When the motor is on, it turns off automatically after a specified time and returns to the STOP state. Reversing direction takes some time. Travel time and direction change time are set during system configuration.

Commands

CommandPurposeDescription
UpUpward movementPress (Release)
DownDownward movementPress (Release)
StopStopPress (Release)
Up/Down ToggleReverse directionPress (Release)

Feedback

CommandPurposeDescription
Status Running upUpward movementactive
Status Running downDownward movementactive
Status StoppedStoppedunknown state
Status Stopped upStopped, upwardlast direction
Status Stopped downStopped, downwardlast direction

AV Matrix Units (Advanced)​

The AV Matrix module controls audio/video matrix switchers. These switchers are usually connected to Duotecno through an RS232 interface. The advanced audio control module supports commands for controlling switcher functions.

Duotecno servers with firmware v65.50 and later support the AV Matrix module. It can control third-party AV switchers over the open TCP/IP protocol.

Matrices up to 8x16 are supported.

Commands

CommandPurposeDescription
Input to Output [I]-[O]connect the specified switcher input and outputPress (Release)
On - Out [n]Turn the output onPress (Release)
Off - Out [n]Turn the output offPress (Release)
On/Off - Out [n]Toggle the outputPress (Release)
Volume value - Out [n]Volume levelLevel Release
Volume up - Out [n]Volume +Press (Release)
Volume down - Out [n]Volume -Press (Release)
Volume mute - Out [n]MutePress (Release)

Feedback

CommandPurposeDescription
Status - Out [n]Output state1/0
Status volume - Out [n]Volume0–50