UAB "Teltonika" RUT240A Manual Do Utilizador

Página de 150
 
114 
 
8.8.1.2  Syntax of HTTP POST/GET string 
HTTP POST/GET string 
Explanati
on 
http://{IP_ADD
RESS} 
/cgi-bin/sms_read? 
username={your_user_name}&password={your_password}&number={MESSAGE_INDEX} 
Read 
message 
/cgi-bin/sms_send? 
username={your_user_name}&password={your_password}&number={PHONE_NUMBER}
&text={MESSAGE_TEXT} 
Send 
message 
/cgi-bin/sms_delete? 
username={your_user_name}&password={your_password}&number={MESSAGE_INDEX} 
Delete 
message 
/cgi-bin/ sms_list? username={your_user_name}&password={your_password} 
List 
all 
message
/cgi-bin/sms_ total? username={your_user_name}&password={your_password} 
Number 
of 
message
s in 
memory 
Note: parameters of HTTP POST/GET string are in capital letters inside curly brackets. Curly brackets (“{ }”) are not 
needed when submitting HTTP POST/GET string. 
8.8.1.3  Parameters of HTTP POST/GET string 
 
Parameter 
Explanation 
1.  IP_ADDRESS 
IP address of your router 
2.  MESSAGE_INDEX 
SMS index in memory 
3.  PHONE_NUMBER 
Phone number of the message receiver.  
Note:  Phone  number  must  contain  country  code.  Phone  number  format  is: 
00{COUNTRY_CODE} {RECEIVER_NUMBER}. 
E.g.: 0037062312345 (370 is country code and 62312345 is receiver phone number) 
4.  MESSAGE_TEXT 
Text  of  SMS.  Note:  Maximum  number  of  characters  per  SMS  is  160.  You  cannot  send 
longer messages. It is suggested to use alphanumeric characters only. 
After every executed command router will respond with return status. 
8.8.1.4  Possible responses after command execution 
 
Response 
Explanation 
1.  OK 
Command executed successfully 
2.  ERROR 
An error occurred while executing command 
3.  TIMEOUT 
No response from the module received 
4.  WRONG_NUMBER 
SMS receiver number format is incorrect or SMS index number is incorrect 
5.  NO MESSAGE 
There is no message in memory by given index 
6.  NO MESSAGES 
There are no stored messages in memory 
8.8.1.5  HTTP POST/GET string examples 
http://192.168.1.1/cgi-bin/sms_read?username=admin&password=admin01&number=2 
http://192.168.1.1/cgi-bin/sms_send?username=admin&password=admin01&number=0037060000001&text=message 
http://192.168.1.1/cgi-bin/sms_delete?username=admin&password=admin01&number=4 
http://192.168.1.1 /cgi-bin/sms_list?username=admin&password=admin01