12 063
правки
(Новая страница: «==== Step-by-step instructions for setting up a permanent GPRS connection ====») |
(Новая страница: «*Connect the antenna to the GSM connector *Insert SIM card into micro-SIM slot 1 *Turn on the modem executing wb-gsm restart_if_broken *If your controller is equ…») |
||
Строка 118: | Строка 118: | ||
==== Step-by-step instructions for setting up a permanent GPRS connection ==== | ==== Step-by-step instructions for setting up a permanent GPRS connection ==== | ||
* | *Connect the antenna to the GSM connector | ||
* | *Insert SIM card into micro-SIM slot 1 | ||
* | *Turn on the modem executing wb-gsm restart_if_broken | ||
* | *If your controller is equipped with 3G-modem, open file /etc/ppp/peers/your_provider (e.g. MTS) replace the <code>/dev/ttyGSM</code> with <code>/dev/ttyACM0</code> | ||
In the <code>/etc/networks/interfaces</code> file, comment out the section associated with <code>ppp0</code> and add the following lines: | |||
<pre> | <pre> | ||
auto ppp0 | auto ppp0 | ||
iface ppp0 inet ppp | iface ppp0 inet ppp | ||
provider mts | provider mts | ||
# | #restart modem if it's broken or frozen | ||
pre-up wb-gsm restart_if_broken | pre-up wb-gsm restart_if_broken | ||
# | #Then wait for it to load and find the network. | ||
pre-up sleep 10 | pre-up sleep 10 | ||
</pre> | </pre> | ||
* | *Run the <code>ifup ppp0 command</code> — after 15 seconds, the ppp0 interface will be available. | ||
* | *After rebooting, the interface will be automatically turning on and restore the connection after the cellular connection is lost. | ||
правки