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.
...
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:
Info | ||
---|---|---|
| ||
smssend_result('ok'); |
Ошибка в тексте запросаError in a text of a request:
Info | ||
---|---|---|
| ||
smssend_result('error'); |
GSM модем занятmodem is busy:
Info | ||
---|---|---|
| ||
smssend_result('busy'); |
...
Requesting the SIM Card Balance
Info | ||
---|---|---|
| ||
http://192.168.0.100/ussdsend.cgi?кодзапроса |
гдеwhere:
кодзапроса – request code – is a100x, что означает which means *100#. В коде USSD запроса In the USSD code request «*» заменяется на is replaced by «a», «#» заменяется на «x» (латинские символыis replaced by «x» (Latin characters).
Возвращаемые значения
...
Returned Values
Successful completion of a command:
Info | ||
---|---|---|
| ||
ussdsend_result('ok'); |
...
Receiving a Response to Requesting the SIM Card Balance
Info | ||
---|---|---|
| ||
http://192.168.0.100/ussdsend.cgi |
Вызывать через 20 секунд после запроса баланса SIM карты.
Возвращаемые значения
Успешное выполнение командыMust be called 20 seconds after requesting the SIM card balance.
Returned Values
Successful completion of a command:
Info | ||
---|---|---|
| ||
ussdsend_result("ответ_gsm_оператора"); |