[ENG] 16.8. [DKSF 70/71.5 IU] GSM Modem Management

An interface of URL-encoded commands in a device can be used for integration with web applications without using an SNMP protocol. Through the interface of URL-encoded commands, it is possible to manage a built-in GSM modem.

Sending SMS

http://192.168.0.100/sendsms.cgi?utf8

URL is called by POST method. Data of the POST are an SMS text in the encoding UTF-8. More detailed information about sending random SMS notification can be read in the section «[ENG] 11.11. [DKSF 70/71.5 IU] How to Send Random SMS?».

Returned Values

Successful completion of a command:

smssend_result('ok');

Error in a text of a request:

smssend_result('error');

GSM modem is busy:

smssend_result('busy');

Requesting the SIM Card Balance

http://192.168.0.100/ussdsend.cgi?кодзапроса

where:

request code – is a100x, which means *100#. In the USSD code request «*» is replaced by «a», «#» is replaced by «x» (Latin characters).

Returned Values

Successful completion of a command:

ussdsend_result('ok');

Receiving a Response to Requesting the SIM Card Balance

http://192.168.0.100/ussdsend.cgi

Must be called 20 seconds after requesting the SIM card balance.

Returned Values

Successful completion of a command:

ussdsend_result("ответ_gsm_оператора");