Перейти к содержанию

Навигация

Modem-stretch/en: различия между версиями

Новая страница: «*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…»
(Новая страница: «==== 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 ====


* Подсоедините антенну к разъему GSM  
*Connect the antenna to the GSM connector
* СИМ-карту в слот micro SIM 1
*Insert SIM card into micro-SIM slot 1
* Включите модем командой wb-gsm restart_if_broken
*Turn on the modem executing  wb-gsm restart_if_broken
* Если ваш контроллер укомплектован 3G-модемом, в файле /etc/ppp/peers/ваш_провайдер_сотовой_связи (в примере — МТС) замените устройство <code>/dev/ttyGSM</code> на <code>/dev/ttyACM0</code>
*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>
* В файле <code>/etc/networks/interfaces</code> закомментируйте раздел, связанный с <code>ppp0</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>
* Выполните команду <code>ifup ppp0</code> — через 15 секунд интерфейс ppp0 будет доступен.  
*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.




12 063

правки