Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
iconfalse

smssend_result('ok');

Ошибка в тексте запросаError in a text of a request:

Info
iconfalse

smssend_result('error');

GSM модем занятmodem is busy:

Info
iconfalse

smssend_result('busy');

...

Requesting the SIM Card Balance

Info
iconfalse

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
iconfalse

ussdsend_result('ok');

...

Receiving a Response to Requesting the SIM Card Balance

Info
iconfalse

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
iconfalse

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