Changes

2,866 bytes added ,  15:49, 4 October 2017
no edit summary
Line 818: Line 818:     
Each of the above examples contain a single parameter but you can send out multiple parameters in one message. For example, '''"cellular apn=internet.gprs service=3gonly"'''. This message would set your APN to "internet.gprs" and you Service mode to 3G Only. You can also send a message that would include all of the parameters above: '''"cellular apn=internet.gprs dialnumber=*99***1# auth_mode=pap service=3gonly username=user password=pass"'''
 
Each of the above examples contain a single parameter but you can send out multiple parameters in one message. For example, '''"cellular apn=internet.gprs service=3gonly"'''. This message would set your APN to "internet.gprs" and you Service mode to 3G Only. You can also send a message that would include all of the parameters above: '''"cellular apn=internet.gprs dialnumber=*99***1# auth_mode=pap service=3gonly username=user password=pass"'''
 +
 +
===UCI API rule===
 +
 +
The UCI rule lets you set or get any parameter from the router's configuration files.
 +
 +
{| class="wikitable"
 +
|+ style="text-align: left;" | UCI API
 +
! style="width: 250px; background: black; color: white;" | Field name
 +
! style="width: 500px; background: black; color: white;" | Explanation
 +
! style="width: 950px; background: black; color: white;" | Notes
 +
|-
 +
! style="text-align: left; vertical-align: top;" | Enable
 +
| style="vertical-align: top;" | This check box will enable or disable the UCI API function
 +
| style="vertical-align: top;" | Allows you to set or get any configurations from the router
 +
|-
 +
! style="text-align: left; vertical-align: top;" | Action
 +
| style="vertical-align: top;" | The action to be performed when this rule is met.
 +
|
 +
|-
 +
! style="text-align: left; vertical-align: top;" | SMS text
 +
| style="vertical-align: top;" | SMS text that will trigger the rule. In this case, set/send router parameters
 +
| style="vertical-align: top;" | SMS text can contain letters, numbers, spaces and special symbols. Capital letters also matter
 +
'''Detailed explanations on how to use this function are presented in the table below'''
 +
|-
 +
! style="text-align: left; vertical-align: top;" | Authorization method
 +
| style="vertical-align: top;" | What kind of authorization to use for SIM management
 +
| style="vertical-align: top;" | Possible values:
 +
No authorization {{!}} By serial {{!}} By router admin password; Default: '''By router admin password'''
 +
|-
 +
! style="text-align: left; vertical-align: top;" | Allowed users
 +
| style="vertical-align: top;" | White list of allowed users
 +
| style="vertical-align: top;" | Possible values:
 +
From all numbers {{!}} From group {{!}} From single number; Default: '''From all numbers'''
 +
|-
 +
|}
 +
 +
The following are syntax examples for the UCI API rule:
 +
 +
{| class="wikitable"
 +
|+ style="text-align: left;" | UCI API syntax
 +
! style="width: 250px; background: black; color: white;" | Syntax
 +
! style="width: 500px; background: black; color: white;" | Description
 +
! style="width: 9500px; background: black; color: white;" | Default message example
 +
|-
 +
! style="text-align: left; vertical-align: top;" | uci get config.section.option"
 +
| style="vertical-align: top;" | Returns config option value
 +
| style="vertical-align: top;" | example
 +
|-
 +
! style="text-align: left; vertical-align: top;" | uci set config.section.option=value"
 +
| style="vertical-align: top;" | Sets config option
 +
| style="vertical-align: top;" | example
 +
|-
 +
! style="text-align: left; vertical-align: top;" | uci show config
 +
| style="vertical-align: top;" | Shows the config file
 +
| style="vertical-align: top;" | example
 +
|-
 +
! style="text-align: left; vertical-align: top;" | uci show config.section
 +
| style="vertical-align: top;" | Shows the exact part of config file (e.g.. uci show network.ppp.apn" )
 +
| style="vertical-align: top;" | example
 +
|-
 +
|}

Navigation menu