На сайте Velcom нашёл инструкцию
Всё сделал как в ней написано (тока вместо USB0 у меня ACM0)
При подключении (pppd call gprs nodetach) написано следующее
Код: Выделить всё
Sep 22 16:03:11 Humans pppd[9209]: pppd 2.4.4 started by humans, uid 1000
Sep 22 16:03:12 Humans chat[9211]: abort on (\nBUSY\r)
Sep 22 16:03:12 Humans chat[9211]: abort on (\nERROR\r)
Sep 22 16:03:12 Humans chat[9211]: abort on (\nNO ANSWER\r)
Sep 22 16:03:12 Humans chat[9211]: abort on (\nNO CARRIER\r)
Sep 22 16:03:12 Humans chat[9211]: abort on (\nNO DIALTONE\r)
Sep 22 16:03:12 Humans chat[9211]: abort on (\nRINGING\r\n\r\nRINGING\r)
Sep 22 16:03:12 Humans chat[9211]: send (^MAT^M)
Sep 22 16:03:12 Humans chat[9211]: timeout set to 12 seconds
Sep 22 16:03:12 Humans chat[9211]: expect (OK)
Sep 22 16:03:12 Humans chat[9211]: ^MAT^M^M
Sep 22 16:03:12 Humans chat[9211]: OK
Sep 22 16:03:12 Humans chat[9211]: -- got it
Sep 22 16:03:12 Humans chat[9211]: send (ATH^M)
Sep 22 16:03:12 Humans chat[9211]: expect (OK)
Sep 22 16:03:12 Humans chat[9211]: ^M
Sep 22 16:03:12 Humans chat[9211]: ATH^M^M
Sep 22 16:03:12 Humans chat[9211]: OK
Sep 22 16:03:12 Humans chat[9211]: -- got it
Sep 22 16:03:12 Humans chat[9211]: send (ATE1^M)
Sep 22 16:03:12 Humans chat[9211]: expect (OK)
Sep 22 16:03:12 Humans chat[9211]: ^M
Sep 22 16:03:12 Humans chat[9211]: ATE1^M^M
Sep 22 16:03:12 Humans chat[9211]: OK
Sep 22 16:03:12 Humans chat[9211]: -- got it
Sep 22 16:03:12 Humans chat[9211]: send (AT+CGDCONT=1,"IP","web.velcom.by"^M)
Sep 22 16:03:13 Humans chat[9211]: expect (OK)
Sep 22 16:03:13 Humans chat[9211]: ^M
Sep 22 16:03:13 Humans chat[9211]: AT+CGDCONT=1,"IP","web.velcom.by"^M^M
Sep 22 16:03:13 Humans chat[9211]: OK
Sep 22 16:03:13 Humans chat[9211]: -- got it
Sep 22 16:03:13 Humans chat[9211]: send (ATD*99***1#^M)
Sep 22 16:03:13 Humans chat[9211]: timeout set to 22 seconds
Sep 22 16:03:13 Humans chat[9211]: expect (CONNECT)
Sep 22 16:03:13 Humans chat[9211]: ^M
Sep 22 16:03:14 Humans chat[9211]: ATD*99***1#^M^M
Sep 22 16:03:14 Humans chat[9211]: CONNECT
Sep 22 16:03:14 Humans chat[9211]: -- got it
Sep 22 16:03:14 Humans pppd[9209]: Serial connection established.
Sep 22 16:03:14 Humans pppd[9209]: Using interface ppp0
Sep 22 16:03:14 Humans pppd[9209]: Connect: ppp0 <--> /dev/ttyACM0
Sep 22 16:03:15 Humans pppd[9209]: Remote message: Congratulations!
Sep 22 16:03:15 Humans pppd[9209]: PAP authentication succeeded
Sep 22 16:03:15 Humans pppd[9209]: LCP terminated by peer
Sep 22 16:03:16 Humans pppd[9209]: Modem hangup
Sep 22 16:03:16 Humans pppd[9209]: Connection terminated.
Sep 22 16:03:17 Humans pppd[9209]: Exit.
И как сделать чтобы он не вешал трубку?