12 063
правки
(Новая страница: «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…») |
(Новая страница: «String <code>provider</code> makes <code>pppd</code> find the settings file for a specific provider in the directory <code>/etc/ppp/peers</code>, in this example…») |
||
Строка 141: | Строка 141: | ||
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. | 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. | ||
String <code>provider</code> makes <code>pppd</code> find the settings file for a specific provider in the directory <code>/etc/ppp/peers</code>, in this example it is the file <code>/etc/ppp/peers/mts</code>. For compatibility reasons, this file specifies that the modem device <code>/dev/ttyGSM</code>should be used as the modem device in the factory setting. If you have a 3G modem installed on your controller, replace it with a faster one <code>/dev/ttyACM0</code>. | |||
Чтобы при обрыве соединения контроллер не прекращал бы попытки установить связь, в файле настроек провайдера <code>/etc/ppp/peers/</code> должны быть раскомментированы опции | Чтобы при обрыве соединения контроллер не прекращал бы попытки установить связь, в файле настроек провайдера <code>/etc/ppp/peers/</code> должны быть раскомментированы опции |
правки