ICX (Intercom eXchange) is the integration protocol of Commend intercom systems. The Weble universal gateway ICX driver connects to the Commend intercom server over TCP/IP and exchanges ICX messages in both directions:
The ICX driver needs a licence on the gateway. Without it the gateway cannot run and its log shows
missing license. Contact support@weble.ch to enable it.
Combined with routes, this bridges the intercom world to every other protocol of the gateway: forward call events to email or SMS, raise a BACnet alarm when an emergency station is triggered, start an intercom call from a KNX push button, and so on.
On the gateway, the ICX licence must be enabled (see above). On the Commend side, the ICX interface must be enabled on the intercom server and reachable over IP. You need three pieces of information:
18000),intercom).The catalogue of ICX task numbers (which message starts a call, signals a conversation, activates a function…) is defined by the Commend ICX protocol specification and by your system configuration. Keep your Commend ICX documentation at hand — or simply use auto-discovery (below) to observe the real messages of your installation.
The driver opens the TCP connection, answers the server's authentication challenge and starts listening.
The easiest way to map your installation is to let it talk: every message received creates its address automatically. Operate the intercom — press a call button, answer, hang up — and watch the corresponding addresses appear in the address grid, their value pulsing to 1 at each occurrence.
To send a message, write any value (typically 1) to its address. Example:
%icx:00-60-00-80-f102-f101 — writing 1 starts a call from station 102 to station 101.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name for this ICX gateway instance. |
| Cluster ID | cluster | Process grouping. 0 (default): the gateway runs in its own process. Any other number: the gateway shares one process with the other gateways that have the same number, which saves memory. |
| Description | description | Optional description. |
| Password | json.password | The ICX password configured on the Commend server. Only the first 8 characters are used. Left empty, the driver uses the protocol default intercom. |
| Hostname | json.hostname | IP address or hostname of the Commend intercom server. Left empty, the driver logs a warning and tries 192.168.1.201. |
| Port | json.port | TCP port of the ICX interface. Default: 18000. |
{
"hostname": "192.168.1.201",
"port": 18000,
"password": "intercom"
}
An ICX address is an ICX message: the six protocol fields written as lowercase hexadecimal groups separated by -:
%icx:SR-TA-SS-TY-P1-P2
| Field | Hex digits | Description |
|---|---|---|
SR |
2 | Message header field — 00 in typical setups (see your Commend ICX reference). |
TA |
2 | Task number — selects the ICX function (call handling, conversation signalling, function control…). Also fixes the parameter sizes, see below. |
SS |
2 | Message header field — 00 in typical setups (see your Commend ICX reference). |
TY |
2 | Task type / subtype. |
P1 |
4 or 8 | First parameter — typically a station or call number, written as digits left-padded with f (f102 = number 102). |
P2 |
1 – 480 | Second parameter — a second station / call number, or the task's data payload. |
The parameter sizes are fixed by the task number:
Task number TA |
P1 |
P2 |
|---|---|---|
00 – 5f |
4 digits | 4 digits |
60 – 7f |
4 digits | 1 – 480 digits |
80 – 9f |
8 digits | 1 – 476 digits |
a0 – ff |
rejected | rejected |
The address always uses the
SR-TA-SS-TY-P1-P2order, whatever the task family. On the wire the field order differs between short and long tasks — the driver reorders automatically in both directions.
Example: %icx:00-60-00-80-f102-f101 — task 60, type 80, P1 = station 102, P2 = station 101: a call from 102 to 101.
Any hex digit of the address can be replaced by * to build a monitoring pattern:
%icx:00-60-00-80-****-****
matches the call message above whatever the two station numbers are. When a received message matches a wildcard address, the address value becomes a JSON object containing the fields that differ from the pattern — i.e. exactly the parts you wildcarded:
{
"p1": "f102",
"p2": "f101"
}
One wildcard address can therefore monitor a whole family of messages while still telling you precisely which stations were involved — ideal as the source of a routing function.
Wildcards are compared digit by digit: a pattern only matches messages of exactly the same length. For tasks 60 to 7f, whose P2 length varies, create one pattern per expected length.
A wildcard address cannot be written with a plain value such as
1(invalid icx message). Writing a JSON object that supplies the wildcarded fields sends the completed message: writing{ "p1": "f102", "p2": "f101" }to%icx:00-60-00-80-****-****sends%icx:00-60-00-80-f102-f101. The field names aresr,ta,ss,ty,p1andp2, and each value replaces the whole field. The wildcard address must already exist in the gateway.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | The ICX message or pattern (the %icx: prefix is fixed). |
| Description | description | Optional description. |
| Log | log | Logging mode: never, on update, always, or a fixed duration in ms. |
An exact address pulses the same value
1at each occurrence — on update logging would record nothing after the first event. Usealwaysto log every occurrence.
| Property | Value |
|---|---|
| Readable | No bus read — a read returns the value the driver had when it loaded the address; use the newValue events or the last value shown in the grid |
| Writable | Yes — writing any value to an exact address sends its message; a wildcard address only accepts an object that supplies the wildcarded fields |
| Routable | Yes |
| Loggable | Yes |
For every valid message received from the intercom server, the driver:
1 on it — re-emitted at every occurrence, so routes fire each time and the Last change column shows the last occurrence,Writing any value (typically 1) to an exact address encodes the corresponding message and transmits it to the intercom server. The driver validates the message first (hex format, task-number range, parameter sizes) and rejects invalid ones.
Sent messages are also reflected locally: the address and any matching wildcard addresses update exactly as if the message had been received — logs and routes therefore see outgoing traffic too.
Writing to a valid %icx: address that does not exist yet creates it on the fly — a route can target a new ICX destination directly.
%icx:00-60-00-80-****-**** (the call message, stations wildcarded)function(value){
var from = (value.p1 || '').replace(/^f+/, '');
var to = (value.p2 || '').replace(/^f+/, '');
return 'Intercom call from station ' + from + ' to station ' + to;
}
%smtp:security@acme.com:Intercom activity on an SMTP gateway.Every intercom call now sends an email naming the two stations involved.
The gateway status reflects the TCP connection state. Route it with a status route to be alerted when the intercom link goes down.
| Log message or error | Meaning |
|---|---|
missing license |
The ICX licence is not enabled on the gateway. |
no hostname configured, using default 192.168.1.201 |
Hostname is empty. |
connection error to <host>:<port> |
The server is unreachable or refuses the TCP connection; the gateway restarts and retries. |
disconnected from <host>:<port> (server closed connection) |
The intercom server closed the connection; the gateway restarts and reconnects. |
socket timeout: no data from <host>:<port> for 120s, dropping connection |
Nothing was received for 120 seconds, not even idle frames; the driver reconnects. |
received invalid message |
A received message failed validation and was ignored. |
invalid icx message (write) |
The address, or the written object, does not form a valid message. |
address does not match value (write) |
The written object changes a field that is fixed in the address name. |