iRidi for Crestron
Tools for creating interfaces to control processors from Crestron
Documentation updated 01.01.2024
Description
iRidi for Crestron is a set of tools for creating a home or office control interface based on Crestron equipment. iRidi runs on iOS, Android, Windows, and Mac and can connect to several processors simultaneously.
- iRidi has been tested with CP2e / CP-3 / CP-4 / VC-4.
Connection
Equipment configuration and settings required for iRidi to control Crestron equipment
Connecting to a processor

iRidi connects directly to the equipment without additional hardware.
iRidi interacts with Crestron joins. The join list can be obtained from a *.smw project (SIMPL™).
Importing joins from a SIMPL Windows project
- When creating a project in SIMPL Windows, you must add any panel to the project and configure its IP ID. iRidi control devices will use this IP ID to connect to the Crestron controller. Save the project in SIMPL Windows (*.smw ).

- Simpl Windows uses the system encoding, so use only EN characters in the project when working in Simpl Windows.
- Open iRidi Studio and, on the Devices tab, select *Scanner / Import > Crestron (Simpl, smw) .

- In the window that opens, select the project file in *.smw .

- Choose whether to retain the original Crestron driver structure or convert it to the standard iRidi driver structure. Select the devices and joins (commands) to add to the project.

- A tree containing the device (controller) and project joins is created:
Commands & Feedbacks
The import produces two levels of PLC settings:
- Crestron - a driver containing the list of joins for the Crestron processor
- Commands and Feedbacks - commands and feedback channels within devices that control joins. Commands are writable joins, and feedback channels are readable joins.
Commands and feedback channels must be linked to the project's graphic items to control equipment:
- Link a command to a graphical item and specify the value to send to the join when the item is pressed
- Link a feedback channel to a graphical item to display the join state
To link a command or channel to a graphic item, use drag&drop - dragging an object onto another.
Examples of commands for controlling different register types are shown below.
Crestron join types: *Digital - a bit variable (0 .. 1). Used in commands and status channels. *Analog - a 16-bit unsigned variable (0 .. 65535). Used in commands and status channels. *Serial - a data string in ASCII, UNICODE, or Legacy format. ASCII text is transmitted in UTF8 encoding. Legacy is used with 2 Series processors.
Configuring the processor connection
The Crestron driver currently supports two connection modes for 2 Series processors + Crestron mobile and 3,4 Series processors + virtual control.
- CIP or CIP+SCTP - cp2e/crestron mobile (default);
- CIP or SCIP - cp3/4+ vc4.

CIP or CIP+SCTP:
- Host - controller IP address;
- Port - Crestron control port (41794);
- IP ID - panel identifier in the SIMPL project (enter it in decimal format, 0D => 13);
- Telnet Port - Telnet port with SSL disabled (41795);
- Telnet Login - leave empty;
- Telnet Password - leave empty;
- Telnet SSL - encryption disabled (False).

CIP or CIP+SCTP Telnet connection (insecure connection, ssl-false):
- Host - controller IP address;
- Port - Crestron control port (41794);
- IP ID - panel identifier in the SIMPL project (enter it in decimal format, 0D => 13);
- Telnet Port - Telnet port with SSL disabled (41795);
- Telnet Login - leave empty;
- Telnet Password - leave empty;
- Telnet SSL - encryption disabled (False).

CIP or CIP+SCTP Telnet connection (secure connection, ssl-true):
- Host - controller IP address;
- Port - Crestron control port (41794);
- IP ID - panel identifier in the SIMPL project (enter it in decimal format, 0D => 13);
- Telnet Port - Telnet port with SSL enabled (41797);
- Telnet Login - Telnet login;
- Telnet Password - Telnet password;
- Telnet SSL - encryption enabled (True).

CIP or SCIP (insecure connection):
- Host - controller IP address;
- Port - Crestron control port (41794);
- IP ID - panel identifier in the SIMPL project (enter it in decimal format, 0D => 13);
- Secure Connection - SSL encryption disabled (false);
- Room ID - Instance Room ID.

CIP or SCIP (secure connection):
- Host - controller IP address;
- Port: Crestron control port (41794);
- IP ID - panel identifier in the SIMPL project (enter it in decimal format, 0D => 13);
- Secure Connection - SSL encryption enabled (true);
- Login - SSL login;
- Password - SSL password;
- Room ID - Instance Room ID;
For Internet access, specify the public IP address of the router to which the processor is connected and configure forwarding for the control port (Port Forwarding).
You can find the router's public IP address using, for example, 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.
-
Download the template (*.js) (right-click and save the target), then add it to the script editor using (+) Add Script from file
-
Configure the script parameters as shown in the example:
function Internal_1() {
IR.GetDevice("Crestron").SetParameters({Host: "192.168.0.100", Port: 41794, NetID: 3, TelnetPort: 41795, TelnetSSL: 0});
}
function External_1() {
IR.GetDevice("Crestron").SetParameters({Host: "215.110.10.10", Port: 41794, NetID: 3, TelnetPort: 41797, TelnetLogin: "admin", TelnetPassword: "pass", TelnetSSL: 1});
}
Copy the driver name from Project Device Panel; copy the parameter list exactly as shown in the example.
- 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:

Each button press now applies the corresponding connection settings.
Examples:
// SSL turned Off
IR.GetDevice("Crestron").SetParameters({Host: "192.168.0.100", Port: 41794, NetID: 3, TelnetPort: 41795, TelnetSSL: 0})
//SSL turned On
IR.GetDevice("Crestron").SetParameters({Host: "215.110.10.10", Port: 41794, NetID: 3, TelnetPort: 41797, TelnetLogin: "admin", TelnetPassword: "pass", TelnetSSL: 1})
//Host - IP address
//Port - connection port
//Login - login, if needed
//Password - password, if needed
//NetID - Panel ID from SIMPL project in DEC format (not HEX!)
//TelnetPort - 41795 if SSL disabled, 41797 if SSL enabled
//TelnetLogin - Telnet login
//TelnetPassword - Telnet password
//TelnetSSL - 0 - don't use / 1 - use
Configuring commands and feedbacks

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.
The available command, channel, and graphical item settings are shown below:
Digital
Command:
| Parameter | Value | Description |
|---|---|---|
| Type | Digital | Digital join (boolean), readable and writable |
| Join | 1 .. n | join address |
| Value* | 0 .. 1 | 0 = Off, 1 = On |
-
- specify this when dragging the command onto a graphical item
Feedback:
The settings are the same as for the command. The Value is received by the Feedback and can be used to display join status on items.
Analog
Command:
| Parameter | Value | Description |
|---|---|---|
| Type | Analog | Analog join (2 bytes), readable and writable |
| Join | 1 .. n | join address |
| Value | 0 .. 65535 | 2 bytes |
Feedback:
The settings are the same as for the command. The Value is received by the Feedback and can be used to display join status on items.
Serial
Command:
| Parameter | Value | Description |
|---|---|---|
| Type | Serial | Serial join |
| Join | 1 .. n | join address |
| Value | string | ASCII, UNICODE, Legacy |
Feedback:
The settings are the same as for the command. The Value is received by the Feedback and can be used to display join status on items.
Receiving images through a Serial Join: