Template:Networking rutos manual mobile utilities: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 211: | Line 211: | ||
===Modify SMS Rule=== | ===Modify SMS Rule=== | ||
---- | ---- | ||
Every SMS rule can be edited to your liking. | Every SMS rule can be edited to your liking. To begin configuring a rule, click the click the 'Edit' button located next to it: | ||
[[File:Networking_rutos_manual_mobile_utilities_sms_utilities_edit_button.png|border|class=tlt-border]] | |||
After this you should redirected to configuration page for that rule. Below are examples of what the configuration page for the <i>reboot</i> rule looks like. | |||
<b>General settings</b> | <b>General settings</b> | ||
| Line 237: | Line 241: | ||
Most rules are configured in a similar manner. However, the configuration does differ from rule to rule, depending on a rule's purpose (selected 'Action'). If you run into trouble when configuring a rule, hover your mouse cursor over the name of a field to see a hint that explains what that field does. | Most rules are configured in a similar manner. However, the configuration does differ from rule to rule, depending on a rule's purpose (selected 'Action'). If you run into trouble when configuring a rule, hover your mouse cursor over the name of a field to see a hint that explains what that field does. | ||
===Change mobile | ===Change mobile settings (cellular) rule=== | ||
---- | ---- | ||
The Change mobile | The <b>Change mobile settings</b> rule is used to change the configuration settings of the mobile data connection. The usage of this rule is a bit more complex because the SMS text in and of itself does nothing, as you must also specify the parameters and values that you wish to set. For example, you can send a message that will change your APN only or a message that will change multiple parameters at once. | ||
[[File:Networking_rutos_manual_mobile_utilities_sms_utilities_modify_sms_rule_cellular_dualsim_{{{dualsim}}}.png|border|class=tlt-border]] | |||
Below is the full list of parameters that can be changed with this rule. | |||
<table class="nd- | <table class="nd-othertables_2" style="width: 100%;"> | ||
<tr> | <tr> | ||
<th>Parameter</th> | <th width=20%>Parameter</th> | ||
<th | <th width=50%>Description</th> | ||
<th width=30%>SMS text example</th> | |||
<th> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>apn=</ | <td><b>apn=</b></td> | ||
<td>Sets APN</td> | <td>Sets APN</td> | ||
<td> | <td><i>cellular apn=internet</i></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>dialnumber=</td> | <td><b>dialnumber=</b></td> | ||
<td>e.g., *99***1#</td> | <td>e.g., *99***1#</td> | ||
<td>Sets Dialing number</td> | <td>Sets Dialing number</td> | ||
<td> | <td><i>cellular dialnumber=*99***1#</i></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>auth_mode=</td> | <td><b>auth_mode=</b></td> | ||
<td> | <td>Sets the authentication method. Possible values are: | ||
<ul> | |||
<li><i>none</i></li> | |||
<li><i>pap</i></li> | |||
<li><i>chap</i></li> | |||
</ul> | |||
</td> | </td> | ||
<td> | <td><i>cellular auth_method=pap</i></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>service=</td> | <td><b>service=</b></td> | ||
<td> | <td>Sets the service mode. Possible values are: | ||
<ul> | |||
<li>3gonly</li> | |||
<li>4gonly</li> | |||
<li>auto</li> | |||
</ul> | |||
</td> | </td> | ||
<td> | <td><i>cellular service=auto</i></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>username=</ | <td><b>username=</b></td> | ||
<td>Sets the user name for PAP or CHAP authentication.</td> | |||
<td>Sets the user name for PAP or CHAP authentication</td> | <td><i>cellular username=user</i></td> | ||
<td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>password= | <td><b>password=</b></td> | ||
<td>Sets the password for PAP or CHAP authentication.</td> | |||
<td>Sets the password for PAP or CHAP authentication</td> | <td><i>cellular password=pass</i></td> | ||
<td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>roaming=</td> | <td><b>roaming=</b></td> | ||
<td> | <td>Turns mobile data roaming on or off. Possible values are: | ||
<ul> | |||
<td> | <li><i>0</i> - for off.</li> | ||
<li><i>1</i> - for on.</li> | |||
</ul> | |||
</td> | |||
<td><i>cellular roaming=0</i></td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
Each | Each example above contains a single parameter but you can also send out multiple parameters in one message. For example: | ||
cellular apn=internet service=3gonly | |||
This message would set your APN to "internet" and the service mode of the mobile connection to "3G Only". You can also send a message that would include all of the parameters above: | |||
cellular apn=internet dialnumber=*99***1# auth_mode=pap service=3gonly username=user password=pass roaming=0 | |||
===UCI API rule=== | ===UCI API rule=== | ||
---- | ---- | ||
The <b>UCI API</b> rule | The <b>UCI API</b> rule is used to configure any parameters on the device. The following are syntax examples for the UCI API rule: | ||
<table class="nd- | <table class="nd-othertables_2" style="width: 100%;"> | ||
<tr> | <tr> | ||
<th> | <th width=25%>Example structure</th> | ||
<th>Description</th> | <th width=25%>Description</th> | ||
<th> | <th width=50%>Example SMS text</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>uci <b>get</b> <config>.<section>.<option_name></td> | ||
<td> | <td>Returns the value of a single configuration option.</td> | ||
<td> | <td><i>uci get network.wan.ipaddr</i> - returns the router's WAN IP address.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>uci <b>set</b> <config>.<section>.<option_name>="value"</td> | ||
<td> | <td>Sets the value of a specified configuration option.</td> | ||
<td> | <td><i>uci set network.mobile.apn=example</i> - changes mobile APN value to "example".</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>uci <b>show</b> <config></td> | ||
<td> | <td>Returns the contents of a config file</td> | ||
<td> | <td><i>uci show openvpn</i> - returns the contents of the "openvpn" config file.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>uci <b>show</b> <config>.<section></td> | ||
<td> | <td>Returns the exact part (section) of a config file.</td> | ||
<td> | <td><i>uci show network.lan</i> - returns the configuration of the "lan" section from the "network" config file.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>uci <b>delete</b> <config>.<section></td> | ||
<td>Deletes the specified section in a configuration file. To avoid operation issues, please use this command to delete optional configuration sections only (not mandatory ones).</td> | |||
<td><i>uci delete network.lan4</i> - deletes a network interface called "lan4".</td> | |||
<td> | |||
<td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>uci | <td>uci <b>delete</b> <config>.<section>.<option_name></td> | ||
<td> | <td>Deletes the specified configuration option. To avoid operation issues, please use this command to delete optional configuration options only (not mandatory ones).</td> | ||
<td> | <td><i>uci delete dhcp.lan.force</i> - deletes the "force" option for DHCP server of the "lan" interface (which in turn disables the "Force DHCP" function of that DHCP server).</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||