Skip to main content

iRidi for Global Cache

a toolkit for creating control interfaces for Global Cache equipment

Documentation updated 01.01.2024

Description​

The iRidi driver for Global Cache network adapters lets you send IR and RS232 commands received from the control panel over TCP/IP. The adapter range also includes dry-contact modules and sensors.

Global Cache can control any equipment with an IR receiver or a control COM port: DVD/BluRay players, switchers, matrices, preamplifiers, and more.

Data received from the controlled equipment's COM port can be processed using JavaScript in iRidi.

Connection​

Equipment configuration and settings for iRidi to control Global Cache equipment.

Global Cache connection methods​

Global Cache equipment includes Ethernet, Wi-Fi, and Ethernet + PoE modules. General connection diagram:

AV_HowItWorks.png

Supported equipment range:

GC-Image-Ico.png

GC-100-06, GC-100-12, GC-100-18, GC-100-18R

  • Ethernet
  • COM ports (1 or 2)
  • independent IR outputs / sensor inputs (3 or 6)
  • dry-contact outputs (3)

GC-iTach-WF-Image.png GC-iTach-IP-Image.png

iTach WiFi to IR / iTach TCP/IP to IR

  • Wi-Fi or Ethernet
  • independent IR outputs / sensor inputs (3)

GC-iTach-WF232-Image.png GC-iTach-IP232-Image.png

iTach WiFi to SL / iTach TCP/IP to SL

  • Wi-Fi or Ethernet
  • COM port (1)

GC-iTach-WFRelay-Image.png GC-iTach-IPRelay-Image.png

iTach WiFi to СС / iTach IP to СС

  • Wi-Fi or Ethernet
  • dry-contact outputs (3)

Configuring Global Cache​

Use the adapter's web interface to configure:

  1. the Global Cache network settings. A static IP address must be set
  2. the IR output operating mode (if available). The 3,5 mm output can operate in IR emitter, IR blaster, or sensor mode
  3. the COM port parameters to match the controlled equipment's settings

See video tutorials on configuring Global Cache hardware

Connecting to Global Cache​

Add the Global Cache driver in the Devices tab:

GlobalCache1.png

GlobalCache9.png

Connection parameters:

  • Host - Global Cache IP address;
  • Port - main port (4998). It carries system data, IR commands, sensor data, and relay commands;
  • Wait for Connect - (ms) time to wait for a connection to GC (reconnect if it expires);
  • Wait for Data - (ms) time to wait for a response from the equipment (retry the request and check the connection if it expires). Set 0 if you want the driver to stay connected to the equipment when no data is received;
  • Keep Alive is the TCP connection check interval. If a Keep Alive request receives no response, the driver is forcibly disconnected;
  • Module Type - adapter model;
  • Send Mode - connection mode for the converter:
    • Always Connected - permanently connected;
    • Connect when Sending - connected only while sending a command. Feedback is unavailable, but commands can be sent from different devices without occupying the connection;
  • Confirm IR - send the next IR command only after the previous one has been sent;
  • Script Mode determines where commands are sent:
    • Direct & Script - send the command directly to GC and also pass it to the script;
    • Script Only - send the command only to the script (pressing the button does not send the command to the adapter);
  • Ping Time - (ms) periodically check the connection to GC. 0 - ping disabled;
  • Disable Queue - disable the iRidi command queue so that data does not accumulate when transmission problems occur. 0 - false, 1 - true;
  • Send Command Attempts - number of attempts to send a command if delivery is not acknowledged; 0 - do not retry;
  • Control Mode - device operating mode (iTach only)
    • Standart Unit - IR control using IR emitters
    • Single LED / Dual LED - control LED lighting through 3,5 mm connectors and a lighting controller (see iTach API)

To connect over the Internet, enter your Internet router's public IP address (or domain name) in Host. Configure port forwarding (Port Forwarding) on the router to control equipment remotely.

You can find your router's public IP address using online services such as Yandex.Internet.

Changing connection settings​

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 template (*.js) (right-click to save the target), then add the template to the script editor Icon_Scripts.png using (+) Add Script from file

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

function Internal_1() {
IR.GetDevice("Global Cache").SetParameters({Host: "192.168.0.100", Port: 4998, SendMode: IR.ALWAYS_CONNECTED, ScriptMode: IR.DIRECT_AND_SCRIPT, IrConfirm: 0, SerialPort1: 4999, SerialPort2: 5000});
}
function External_1() {
IR.GetDevice("Global Cache").SetParameters({Host: "215.110.10.10", Port: 4998, SendMode: IR.ALWAYS_CONNECTED, ScriptMode: IR.DIRECT_AND_SCRIPT, IrConfirm: 0, SerialPort1: 4999, SerialPort2: 5000});
}

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

  1. Select the button that switches between Internal and External parameters. Open Macros Editor for the Release event (Programming > Release), select Script Call and add it by double-clicking. Select the function the button calls:

KNX_Router3.png

Each button press now applies the corresponding connection settings.

Configuring outputs and commands​

The available outputs depend on the Global Cache module type:

IR output​

An output for sending IR commands using IR emitters and IR blasters.

GlobalCache2.png GlobalCache3.png

IR output settings:

  • Mode - the Global Cache 3,5 mm output can operate in one of these modes:
    • IR Output - send IR commands through an IR emitter or IR blaster
    • Sensor Notify - sensor mode
  • Frequency (Hz) - IR command transmission frequency for the selected IR output. It can be changed for the entire output, a command folder, or an individual command.

IR command settings:

  • Delay (ms) - delay before sending the command, measured from the previous command on the output
  • Change Frequency - select the command transmission frequency: the default or a frequency specific to this command
    • Frequency (Hz) - command transmission frequency when Change Frequency: True
  • Repeat - number of times to repeat the IR command (repetition is performed by Global Cache)
  • Offset - used only when Repeat > 1 for IR commands with a preamble. A preamble is the part of a command that does not need to be repeated. Offset is the preamble length, measured in the pulse-pause pairs that make up the IR command. It is always an odd number. For details, see Global Cache API
  • Data - IR command in Global Cache format. If the command was added from the Global Cache database, the Data field is hidden

Feedback configuration:

  • Feedback from IR outputs is not supported

Sensor Notify​

The Sensor Notify output is available when you select "Mode: Sensor Notify" in the IR output settings of the Global Cache module. GC sensors can be connected to it.

GlobalCache4.png

Output configuration. Select an IR output and change Mode:

  • Mode: Sensor Notify - use the output in sensor mode

Sensor status feedback settings:

  • Use Timer - explicitly request the sensor state at the interval specified in Timer (ms)
  • Timer (ms) - how often to request the sensor state

Serial​

An output for sending commands to the equipment's COM port (RS232)

GlobalCache5.png GlobalCache6.png

RS232 output settings:

  • Port - TCP port for commands that Global Cache must send through the RS232 output. Commands are sent to different TCP ports so that GC can determine their destination COM port:
    • 4999 - Serial port 1 of GC-100-ХХ and iTach modules
    • 5000 - Serial port 2 of GC-100-ХХ modules

RS232 command settings:

  • Data - data string to send through the COM port. The data string can be in HEX, ASCII, or DEC format. Data formatting syntax is described below

RS232 feedback settings:

  • specify the feedback channel name. Only JavaScript processing data received from the equipment can pass data to this channel.

Relay​

A dry contact (relay) that closes and opens the equipment's control contacts.

GlobalCache7.png GlobalCache8.png

Output settings:

  • not required

Command settings:

  • not required. To close and open the relay, use the "Relay 1 (2)" command to send 1 and 0 to the module output. You can send the command using a regular button or a trigger button.

Relay status feedback settings:

  • Use Timer - explicitly request the relay state at the interval specified in Timer (ms)
  • Timer (ms) - how often to request the relay state

Creating commands​

Formatting rules for IR commands and data sent over RS232. Relay control.

IR output​

IR commands sent to Global Cache must be converted to a format that represents them as a sequence of infrared pulses and pauses. The IR command database built into iRidi Studio stores commands that have already been converted, making them easy to use.

IR commands that are missing from the database can be converted from HEX (CCF) to Global Cache format using iConvert.

IR commands can be "learned" from an IR remote directly in iRidi Studio or using iLearn. IR commands obtained this way are automatically converted to the required format.

Where to obtain IR commands:

Global Cache IR command database​

The online Global Cache IR command database requires an Internet connection. These commands are stored in the special Global Cache IR command format and will not work with other TCP/IP-to-IR adapters.

GlobalCache10.png

Click the refresh icon to load the command list. Drag the command folder onto the Global Cache IR output in your project. The commands require no configuration.

  • Brands - equipment manufacturers
  • Device type - equipment categories for a manufacturer
  • Model - equipment models and the IR command sets that can control them

Learning with GC-IRL IR Learner​

GC-IRL IR Learner is an IR command learner for Global Cache. It can be connected to your PC's COM port or the COM port of a Global Cache GC-100-06(12,18,18R). Learning with GC-IRL through iTach IP2SL(WF2SL) is not supported

Global Cache iTach IP2IR and WF2IR have built-in IR learners. Point the remote's IR emitter at the module's reset hole. The learner converts the command to Global Cache format and sends it to the PC.

GlobalCache13.png

  1. Select the Global Cache IR output in iRidi Studio
  2. Click "(+) > Add command/feedback folder" to add an IR command folder
  3. Click "(+) > Add command" once for each button on the remote being learned
  4. Name the added commands according to the buttons' functions
  5. Select the first command in the folder and click "Learning"
  6. Select the learner type: GC-IRL > GC-IRL IR Learner, GC iTach > iTach IP2IR / WF2IR
  7. Select the learning interface and settings according to the learner connection:
    1. TCP/IP, Port: 4998 - iTach IP2IR / WF2IR
    2. TCP/IP, Port: 4999 - COM1 on GC-100-(06,12,18,18R)
    3. TCP/IP, Port: 5000 - COM2 on GC-100-(12,18,18R)
    4. RS232 - if GC-IRL is connected to your PC's COM port
  8. Click OK to start learning
  9. Point the IR remote's emitter at the GC-IRL learner and press the button corresponding to the command name currently shown on screen. If learning succeeds, the next command name appears automatically.

GlobalCache14.png

Note
  • If pressing a button on the IR remote does not advance the command name in the window, learning is not taking place! Use Global Cache iLearn to identify the cause. It displays connection errors. Check the connection to the adapter.

Converting HEX (CCF)​

Attention
  • For iRidi Studio v.1.3.8 and earlier only.

AV equipment documentation contains IR commands in HEX (CCF) format. These must be converted to Global Cache format and added to your IR command database.

You can convert commands using iConvert. It converts IR commands between Global Cache and HEX (CCF) formats. Consider this example:

Example of transferring Panasonic TV IR commands to the Global Cache IR command database:

The documentation is Panasonic Plasma TV Remote control (IR). Original HEX (CCF) IR command:

**POWER ON** 
0000 0071 0000 0032 0080 003F 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030
0010 0030 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010
0030 0010 0030 0010 0010 0010 0030 0010 0A98

Convert it using iConvert:

iConvert.png

The resulting command is in Global Cache format, but it is not ready to use yet. Remove the IR command header, which iRidi Studio adds automatically:

 sendir,:
addr>,1,37000,,1, 128,63,16,16,16,48,16,16,256,16,16,16,16,16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,
16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,16,16,16,16,
48,16,48,16,48,16,48,16,48,16,16,16,48,16,2712
  • sendir,<mod-addr>:<conn-addr>,1,37000,<repeatcount>,1, is the part that must NOT be copied into iRidi. These are the parameters before the 6th comma
  • Copy the rest into iRidi. This is the command body after the 6th comma
  • Keep the parameter after the third comma, 37000 - the required command transmission frequency (Hz). Specify this frequency in the Global Cache IR output settings. If the frequency differs by no more than 100 Hz, you can use a common value for all commands on the output

Save the part of the IR command highlighted in blue to the IR command database (as when working with GC-IRL)

AV_IR_Commands_Adding_Manually.png

Add the IR device from the database to the project and enter the frequency copied from iConvert in its Frequency field.

Adding commands to Device Base​

Attention
  • For iRidi Studio v.1.3.8 and earlier only.

In the shared "DEVICE BASE", you can create a list of devices and commands that can be quickly added to any new iRidi project. You can create an IR device only in your own database; the standard database cannot be edited.

Create a user database:

AV_Database_New.png

Add an IR device to it (a folder for an IR command set, rather than a physical device)

AV_Add_IR_Device.png

In the Commands & Feedback tab, create a list of empty IR commands and name them:

AV_IR_Device_Settings.png

  1. Select the first command in the folder and click "Learn..."
  2. Select the learner type: GC-IRL > GC-IRL IR Learner, GC iTach > iTach IP2IR / WF2IR
  3. Select the learning interface and settings according to the learner connection:
    1. TCP/IP, Port: 4998 - iTach IP2IR / WF2IR
    2. TCP/IP, Port: 4999 - COM1 on GC-100-(06,12,18,18R)
    3. TCP/IP, Port: 5000 - COM2 on GC-100-(12,18,18R)
    4. RS232 - if GC-IRL is connected to your PC's COM port
  4. Click Learn... to start learning
  5. Point the IR remote's emitter at the GC-IRL learner and press the button corresponding to the command name currently shown on screen. If learning succeeds, the next command name appears automatically.

A learned IR command is shown in bold in the database. Close the database editor and save the changes.

Add the completed IR device to your project: select your database in DEVICE BASE and drag the IR device onto the Global Cache IR output

GC_IRLearner-MyOwn-base.png

Set Frequency (Hz) - the IR output command transmission frequency for the entire IR output or only the selected device.

Serial​

The Global Cache Serial output sends RS232 commands. These commands cannot be learned; they must be added to iRidi from the equipment documentation. RS232 commands can be stored in one of these formats:

  • ASCII - string
  • HEX - hexadecimal
  • DEC - decimal
Note
  • iRidi must determine the format of the command you added. Therefore, the command must follow iRidi syntax.

ASCII (string)​

Formatting an ASCII string on the Serial output:

  • enclose the string in 'single quotation marks'
  • add the following at the end of the string
    • ,$0D is a carriage return <CR>
    • ,$0A is a line feed <LF>

Command formatting:

In the documentation:PWR01 <CR>VOLUME 50 <CR> <LF>
Format:ASCIIASCII
In iRidi (Data field):'PWR01',0x0D'VOLUME 50',0x0D,0x0A

Formatting carriage returns and line feeds:

In the documentation:<CR><CR><CR><LF><LF><LF>
Format:HEXHEXDECHEXHEXDEC
In iRidi (Data field):,0x0D,$0D,13,0x0A,$0A,10

HEX (hexadecimal)​

Formatting HEX characters on the Serial output:

  • Prefix each HEX character with 0x or $

  • Remove extra notation before HEX codes, for example: 0Ah >> $0A

  • Separate HEX characters with commas and remove all spaces

  • add the following at the end of the string

    • ,$0D is a carriage return <CR>
    • ,$0A is a line feed <LF>

Command formatting:

In the documentation:16 8A FF 81 <CR>19h EEh A1h 00h <CR> <LF>
Format:HEXHEX
In iRidi (Data field):0x16,0x8A,0xFF,0x81,0x0D$19,$EE,$A1,$00,0x0D,0x0A

Formatting carriage returns and line feeds:

In the documentation:<CR><CR><CR><LF><LF><LF>
Format:HEXHEXDECHEXHEXDEC
In iRidi (Data field):,0x0D,$0D,13,0x0A,$0A,10

DEC (decimal)​

Formatting decimal numbers on the Serial output:

  • Separate numbers with commas and remove all spaces
  • add the following at the end of the string
    • ,$0D is a carriage return <CR>
    • ,$0A is a line feed <LF>

Command formatting:

In the documentation:01 255 255 15 <CR>01 10 25 255 <CR> <LF>
Format:DECDEC
In iRidi (Data field):01,255,255,15,1301,10,25,255,13,10

Formatting carriage returns and line feeds:

In the documentation:<CR><CR><CR><LF><LF><LF>
Format:HEXHEXDECHEXHEXDEC
In iRidi (Data field):,0x0D,$0D,13,0x0A,$0A,10

Adding commands to Device Base​

Attention
  • For iRidi Studio v.1.3.8 and earlier only.

In the shared "DEVICE BASE", you can create a list of devices and commands that can be quickly added to any new iRidi project. You can create an RS232 device only in your own database; the standard database cannot be edited.

Create a user database: AV_Database_New.png

Add an RS232 device to it (a folder for a command set, rather than a physical device) RS232_1.png

In the Commands & Feedback tab, create a command list: RS232_4.png

Double-click to open Command Properties and add the command in the Command field:

RS232_5.png

Add the completed RS232 command set to your project: select your database in DEVICE BASE and drag the RS232 device onto the Global Cache Serial output.

Relay​

A dry contact (relay) closes and opens the equipment's control contacts.

Relay commands are preconfigured in the Global Cache driver. To close and open the relay, send 1 and 0 to the module output. You can send the command using a regular button or a trigger button.

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.

Examples of sending commands and receiving feedback are shown below.

Sending commands​

Sending a command from an IR output​

An IR command can be sent only using a "Button" or a script.

  1. To send a command once, link it to the Press or Release event: AV_IR_Command_Dragging_to_item.png

  2. To create a macro command, add several commands to Press or Release: AV_IR_Command_Action_Dragging_Macro.png You can add a Delay() delay between commands to control their transmission rate

  3. To repeatedly send a command while the button is held, select Press and Hold: AV_IR_Command_Hold_Creating.png

Hold settings are in Object Properties > General:

  • Hold Time (ms) - time before Hold is activated while the item is held
  • Repeat Time (ms) - interval for repeating commands from the Hold event.
  1. To repeat a command through Global Cache while the button is held, set the command's Repeat parameter to 50 (or another large number), link it to Press, and link Stop IR to Release. AV_IR_Command_Hold+StopIR_Creating.png

Pressing the button makes the GC IR emitter execute the command the specified number of times; releasing the button stops transmission. The action is similar to Hold but does not require continually sending repeated commands to GC

  1. IR commands can be sent through JavaScript. Use the .Set and .Send methods from Drivers API:
var device = IR.GetDevice("Global Cache");
var CommandString = 'sendir,1:1,1,36127,1,1,96,31,17,16,16,16,16,32,16,32,49,32,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,32,17,16,16,16,16,16,32,16,16,16,16,16,16,16,16,32,32,16,16,16,16,16,16,16,16,32,17,16,16,16,16,16,32,16,4624';
var CommandName = "COMMAND";
IR.AddListener(IR.EVENT_ONLINE , device, function()
{
device.Set(CommandName, ""); // .Set command by name
device.Send([CommandString,0x0D]); // .Send command as string
});

IR command formatting for the Send method is described in detail in iTach API.

Sending a command from a Serial output​

An RS232 command can be sent using a "Button" or a script.

When sending data through a script, you can build a command with variable values. For example, when controlling a level, insert the slider's current position into the command body and send it to the equipment.

  1. To send a command once, link it to the Press or Release event: AV_GC232_Command_Dragging_to_item.png

  2. To create a macro command, add several commands to Press or Release: AV_IR_Command_Action_Dragging_Macro.png

You can insert a Delay() delay between commands to control their transmission rate

  1. To repeatedly send a command while the button is held, select Press and Hold:

AV_GC232_Command_Hold_Creating.png

Hold settings are in Object Properties > General:

  • Hold Time (ms) - time before Hold is activated while the item is held
  • Repeat Time (ms) - interval for repeating commands from the Hold event.
  1. RS232 commands can be sent through JavaScript. Use the .Set and .Send methods from Drivers API:
var device = IR.GetDevice("Global Cache");
var CommandString = "PON";
var CommandName = "COMMAND 1";

IR.AddListener(IR.EVENT_ONLINE , device, function()
{
device.Set(CommandName, ""); // .Set command by name
device.Send([CommandString, '\r\n'], 1); // .Send command as string
// device.Send([<data>], <transport_id>)
// <data> - command string
// <transport_id> 0 - port 4998, 1 - port 4999, 2 - port 5000
});

Sending a Relay command​

The relay accepts 0 - open and 1 - closed. You can send a command using:

BUTTON

A graphical item with 1 or 2 states. Depending on its settings, the button can be latching or momentary. Each press sends the same commands bound to the button beforehand.

  1. Create a variable to receive a number or string. Configure it as shown in the instructions

  2. Create a button and configure it as follows (see all settings:

UImakeAbutton.png

TypeButton
FeedbackButton response to user presses and data received from the equipment
Momentary - the button sends a value but does not display feedback
Channel - sends a value and displays feedback
None - no visual response to a press or received feedback
Invert Channel - sends a value and displays inverted feedback (false - on, true - off)
  1. Drag the variable onto the button and specify the following in the variable-linking dialog:

UIdragCommand.png

ActionSend Number - write a number to the variable. You can switch to Send String to send an ASCII string
Event for ActionInterface event associated with the button. When the event occurs, the specified value is written to the variable
Press - send when the button is pressed
Release - send when the button is released
Hold - send repeatedly while held
Move - does not work with a Button
Several events can be used at the same time. For example, send [100] on press and [0] on release.
ValueThe value to write to the variable. The button always sends the same value entered in Value
Add a feedback channelSelect this checkbox if you want the button both to write a value to the variable and to change state when data is received from the same variable. The received value affects the button state (on/off) and can be displayed in its text field.
  1. The variable is now linked to the button. View all button relations in OBJECT PROPERTIES > Programming

TRIGGER BUTTON

Toggle switching with a "Trigger Button" lets you alternate between 2 arbitrary values specified in Trigger Value 1 and Trigger Value 2. With feedback, the trigger automatically adopts the corresponding state and sends the value opposite to the current one when pressed. A trigger cannot be configured for 3 or more values.

  1. Create a variable to switch between 2 values. Configure it as shown in the instructions

  2. Create a button and configure it as follows (see all item settings):

UImakeAtriggerButton.png

TypeTrigger Button
FeedbackResponse to presses and data received from the equipment
Channel - switches the value and displays feedback (other modes are not used)
Trigger Value 1 / Trigger Value 2values to send alternately when the trigger button is pressed; they depend on the variable type
  1. Drag the variable onto the toggle and specify the following in the variable-linking dialog:

UIdragCommandToTrigger.png

ActionSend Token - send the variable the Value taken from the graphical item (Trigger Value 1 or Value 2, depending on the trigger button's current state)
Event for ActionInterface event associated with the button. When the event occurs, the specified value is written to the variable
Press - send on press
Release - send on release
Only one event can be used for a toggle at a time
Add a feedback channelSelect this checkbox so the trigger button knows its state and changes it when data is received from the variable and when pressed.
  1. The variable is now linked to the trigger. View all relations in OBJECT PROPERTIES > Programming

To send a relay command through JavaScript, use this example: Specify the relay state for the Relay command:

IR.GetDevice("Global Cache").Set("Relay 1", 1) 
// close Relay 1
IR.GetDevice("Global Cache").Set("Relay 1", 0)
// open Relay 1

Feedback​

Feedback is available only from relays, sensors, and RS232. RS232 feedback can be received and processed only through JavaScript.

Sensor Notify, Relay​

Sensors and relays return 1 - closed, 0 - open to iRidi. This value can be displayed as text or visually on an item.

AV_Sensor_State_In_Value.png

A graphical item can display a variable value by changing its state or text:

CHANGE STATE

  1. Configure the graphical item to display received values:

SetUpItemToDisplayValue.png

In General, select:

Feedback: Channel (if 0 = false) or Feedback: Invert Channel (if 0 = true).

This feedback type lets the item process data received from variables

  1. Bind the equipment Feedback channel to the graphical item:

SetUpItemToDisplayValue2.png

Drag the feedback channel or variable onto the item and select In Value

The item must have 2 states to work correctly. The first corresponds to 0, and the second to any nonzero value.

The template $V, added to the item's text, displays the received value in that text.

DISPLAY AS TEXT

  1. Bind the equipment Feedback channel to the graphical item:

DragChannelToDisplayTxt.png

Drag the feedback channel or variable onto the item and select In Text

The item can have any number of states and any settings. The value is displayed in the text fields of all item states.

DragChannelToDisplayValue.png

Add $V to the item's text. Drag the feedback channel or variable onto the item and select In Value in the binding dialog. This displays the received integer with any additional text.

Other templates display fractional numbers and more:

TemplatePurpose
$VInteger part of the received value
$F1 ... $F5Floating-point value with a decimal point. 1 to 5 specifies the number of digits after the point
$F,1 ... $F,5Floating-point value with a decimal comma. 1 to 5 specifies the number of digits after the comma
$SNumber of the selected state
$XValue in HEX format
$$Dollar sign
$P(Levels only) Percentage of the Level's maximum value
$H(Levels only) Maximum value of the Level
$A(Levels only) Current value minus the Level's minimum value
$L(Levels only) Minimum value of the Level
$R(Levels only) Level range: maximum minus minimum

Enter the template in the graphic item's text field. It can be combined with other text and symbols (comments or units of measurement)

Serial​

The Global Cache module's COM port returns equipment status data to iRidi, but this data can be processed only through JavaScript because the data to be received is not known in advance.

See JavaScript guide, driver control API.

GC COM port feedback handler:

IR.AddListener(IR.EVENT_RECEIVE_TEXT, IR.GetDevice("Global Cache"), function(text, id)
{
if (id == 1)
{
IR.Log("COM1 data: "+ text);
}
else if (id == 2)
{
IR.Log("COM2 data: "+ text);
}
});
// id - is a transport id of GC device, 1 - COM port 1, 2 - COM port 2

You can find ready-made drivers with AV equipment feedback on the website in the JS modules section