{"id":739,"date":"2011-01-13T16:32:04","date_gmt":"2011-01-13T14:32:04","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=739"},"modified":"2011-04-22T08:50:07","modified_gmt":"2011-04-22T05:50:07","slug":"mtsconnect-debian-linux","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=739","title":{"rendered":"Mtsconnect + Debian linux"},"content":{"rendered":"<p>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: Debian linux (kernel 2.6.26), \u043c\u043e\u0434\u0435\u043c AnyData ADU-510A<\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0434\u0430\u0447\u0443 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u043e\u0434\u0435\u043c\u043e\u0432\u00a0<strong>AnyData ADU510 \u043e\u0442 MTS<\/strong> \u0438 <strong>Novatel U720<\/strong> \u043e\u0442 \u0418\u043d\u0442\u0435\u0440\u0442\u0435\u043b\u0435\u043a\u043e\u043c\u0430.<\/p>\n<p><!--more--><\/p>\n<p>1) \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443\u0432\u0438\u0434\u0435\u043b\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0435\u043c \u043d\u0443\u0436\u043d\u044b \u0442\u0430\u043a\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430:\u00a0usbserial, usbcore. \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043c\u0430 \u0432 dmesg \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>[ \u00a0 \u00a05.957968] usb 1-1: configuration #1 chosen from 1 choice<br \/>\n[ \u00a0 \u00a06.000222] usb 1-1: New USB device found, idVendor=16d5, idProduct=6502<br \/>\n[ \u00a0 \u00a06.000222] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0<br \/>\n[ \u00a0 \u00a06.000222] usb 1-1: Product: AnyDATA CDMA Products<br \/>\n[ \u00a0 \u00a06.000222] usb 1-1: Manufacturer: AnyDATA Corporation<br \/>\n[ \u00a0 \u00a06.240057] usb 1-2: new full speed USB device using uhci_hcd and address 3<\/p>\n<p>\u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 lsusb:<\/p>\n<p>#lsusb<br \/>\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br \/>\nBus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub<br \/>\nBus 001 Device 002: ID 16d5:6502 AnyDATA Corporation CDMA\/UMTS\/GPRS modem<br \/>\nBus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 ttyUSB*:<\/p>\n<p>#ls \/dev\/ttyU*<br \/>\n\/dev\/ttyUSB0 \u00a0\/dev\/ttyUSB1 \u00a0\/dev\/ttyUSB2<\/p>\n<p>2) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ppp<\/p>\n<p>\u0414\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442 ppp. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e:<\/p>\n<p>#apt-get install ppp<\/p>\n<p>3) \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d \u0443\u0436\u0435 \u0435\u0441\u0442\u044c) \/etc\/chatscripts\/pap \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e:<\/p>\n<p>ABORT \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 BUSY<br \/>\nABORT \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 VOICE<br \/>\nABORT \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8220;NO CARRIER&#8221;<br \/>\nABORT \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8220;NO DIALTONE&#8221;<br \/>\nABORT \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8220;NO DIAL TONE&#8221;<br \/>\n&#8220;&#8221; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0ATZ<br \/>\nOK \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0ATDT\\T<br \/>\nCONNECT \u00a0 \u00a0 \u00a0 \u00a0 &#8220;&#8221;<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b \/etc\/ppp\/chap-secrets<\/p>\n<p>mobile \u00a0 \u00a0 \u00a0mtsconnect \u00a0 \u00a0 \u00a0 \u00a0internet<\/p>\n<p>\u0414\u043b\u044f \u0418\u043d\u0442\u0435\u0440\u0442\u0435\u043b\u0435\u043a\u043e\u043c\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \/etc\/ppp\/pap-secrets:<\/p>\n<p>IT \u00a0 \u00a0 * \u00a0 \u00a0 IT \u00a0 \u00a0*<\/p>\n<p>\u043d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0444\u0430\u0439\u043b-\u043f\u0438\u0440 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \/etc\/ppp\/peers\/mtsconnect:<\/p>\n<p>\/dev\/ttyUSB0<br \/>\n230400<br \/>\ncrtscts<br \/>\nmodem<br \/>\nnoccp<br \/>\nnovj<br \/>\nconnect &#8220;\/usr\/sbin\/chat -e -v -f \/etc\/chatscripts\/pap -T &#8216;#777&#8242;&#8221;<br \/>\nnoauth<br \/>\nuser mobile<br \/>\nremotename mtsconnect<br \/>\nusepeerdns<br \/>\ndefaultroute<br \/>\ndebug<br \/>\nupdetach<\/p>\n<p>\u0414\u043b\u044f \u0418\u043d\u0442\u0435\u0440\u0442\u0435\u043b\u0435\u043a\u043e\u043c\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a \u0436\u0435, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0435\u0442 \u0442\u0430\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<p>230400<\/p>\n<p>remotename mtsconnect<\/p>\n<p>\u0438 \u0441\u0442\u0440\u043e\u043a\u0430<\/p>\n<p>user mobile<\/p>\n<p>\u0437\u0430\u043c\u0435\u043d\u0435\u043d\u0430 \u043d\u0430<\/p>\n<p>user IT<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f:<\/p>\n<p>#pon mtsconnect<\/p>\n<p>\u041b\u0438\u0431\u043e \u0442\u0430\u043a:<\/p>\n<p>#pppd call mtsconnect<\/p>\n<p>\u0427\u0442\u043e \u0431\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b \/etc\/network\/interfaces:<\/p>\n<p>auto mtsconnect<\/p>\n<p>iface mtsconnect inet ppp<br \/>\npre-up \/sbin\/ifconfig eth0 up<br \/>\nprovider mtsconnect<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: Debian linux (kernel 2.6.26), \u043c\u043e\u0434\u0435\u043c AnyData ADU-510A \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0434\u0430\u0447\u0443 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u043e\u0434\u0435\u043c\u043e\u0432\u00a0AnyData ADU510 \u043e\u0442 MTS \u0438 Novatel U720 \u043e\u0442 \u0418\u043d\u0442\u0435\u0440\u0442\u0435\u043b\u0435\u043a\u043e\u043c\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,12],"tags":[],"class_list":["post-739","post","type-post","status-publish","format-standard","hentry","category-linux","category-routers"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=739"}],"version-history":[{"count":10,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":741,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions\/741"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}