[ENG] 17.5. [DKSF 70/71.6 IU] Controlling 1-Wire Smoke Sensors

The interface of URL-encoded commands in a device can be used for the integration with web applications without the use of an SNMP protocol. Controlling 1-wire smoke sensors is available through the interface of URL-encoded commands.

Requesting a Relay Status

http://192.168.0.100/smoke.cgi?sN

where: 

N  is a number of a smoke sensor

Returned Values

Error in a request (incorrect format, incorrect number of a sensor):

relay_result('error');

Successful execution of a command:

smoke_result('ok', 1, 'Norm');

smoke_result('ok', 1, 'OK');

where:

The first argument is 'ok',

The second argument is a numeric status, the third one is a textual status:

0 - Norm

1 - Alert

4 -  Loop power is switched off

5 - Sensor failure or there is no sensor on a 1-Wire bus 

Controlling Loop Power

Switching on, switching off, short-term switching off the voltage, sent to a current loop for powering the external fire alarm. Taking off the voltage is used for resetting the triggered detector to the initial status:

/smoke.cgi?sN&on

/smoke.cgi?sN&off

/smoke.cgi?sN&reset

where:

N  is a number of a smoke sensor

Returned Values

Error (incorrect format of a request or incorrect relay number):

relay_result('error');

Successful execution of a command:

relay_result('ok');

Authorization

To add a login and password to the structure of a URL-encoded command, it is possible to use the next scheme:

  • http://<username>:<password>@<host>:<port>/<URL‐path>?<parameters>

where:

<username>:<password> – are credentials for authorization in a device web interface;

<host>  is an IP address of a device;

<port>  is a port of an HTTP server;

<URL‐path>?<parameters>  is a URL-encoded command