12 063
правки
(Новая страница: «=== PPP settings ===») |
(Новая страница: «The pppd daemon is pre-installed on the controller, which is used to create a connection to the provider's network via 3G/2G modem. The PPP daemon creates when yo…») |
||
Строка 129: | Строка 129: | ||
=== PPP settings === | === PPP settings === | ||
The pppd daemon is pre-installed on the controller, which is used to create a connection to the provider's network via 3G/2G modem. The PPP daemon creates when you connect the network interface ppp (ppp0 is the default). In the factory configuration settings for the ppp0 port is commented out, and there is no connection with the mobile provider. In our [[GSM/GPRS/en|Wiki]] we recommend using the following settings for the ppp0 interface in the <code>/etc/network/interfaces</code>file: | |||
<pre> | <pre> | ||
auto ppp0 | auto ppp0 | ||
iface ppp0 inet ppp | iface ppp0 inet ppp | ||
provider mts | provider mts | ||
# | #Restart modem if it's 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> | ||
Even if the modem is in a hung or disconnected state, the <code>pre-up wb-gsm restart_if_broken</code> command will reboot the modem and make sure it is available before starting the connection. A ten-second delay (<code>pre-up sleep 10</code>) before connection is usually enough to establish a network connection from the first time. | |||
Строка <code>provider</code> заставляет <code>pppd</code> искать файл настроек для конкретного провайдера в директории <code>/etc/ppp/peers</code>, в нашем случае это файл <code>/etc/ppp/peers/mts</code>. В целях совместимости в качестве устройства модема в заводской настройке в этом файле указано использовать устройство <code>/dev/ttyGSM</code>. Если на вашем контроллере установлен 3G-модем, замените это устройство его на более быстрое <code>/dev/ttyACM0</code>. | Строка <code>provider</code> заставляет <code>pppd</code> искать файл настроек для конкретного провайдера в директории <code>/etc/ppp/peers</code>, в нашем случае это файл <code>/etc/ppp/peers/mts</code>. В целях совместимости в качестве устройства модема в заводской настройке в этом файле указано использовать устройство <code>/dev/ttyGSM</code>. Если на вашем контроллере установлен 3G-модем, замените это устройство его на более быстрое <code>/dev/ttyACM0</code>. |
правки