{"id":310,"date":"2005-02-13T05:13:55","date_gmt":"2005-02-13T03:13:55","guid":{"rendered":"\/?p=306"},"modified":"2005-02-13T05:13:55","modified_gmt":"2005-02-13T03:13:55","slug":"mobiles-internet-via-infrarot-und-gprs-nokia-8310","status":"publish","type":"post","link":"https:\/\/old.wienerlloyd.net\/?p=310","title":{"rendered":"Mobiles Internet via Infrarot und GPRS (Nokia 8310)"},"content":{"rendered":"<p>Nachdem der kabellose Zugang ins Netz per WLAN noch ;) nicht \u00c3\u00bcberall gegeben ist, habe ich mich heute daran gemacht, meinem neuen Notebook die M\u00c3\u00b6glichkeit zu geben, per Mobiltelephon und GPRS ins Netz zu kommen.<\/p>\n<p>Hardware:<\/p>\n<ul>\n<li>Asus S5600N Notebook<\/li>\n<li>(da das Notebook ohne IrDA daher kommt) ednet USB to IrDA dongle (ca. EUR 20)<\/li>\n<li>Nokia 8310 Mobiltelephon (\u00c3\u00b6sterr. Netzbetreiber ONE)<\/li>\n<\/ul>\n<p>Software:<\/p>\n<ul>\n<li>Debian GNU\/Linux Unstable (Kernel 2.6.8-2-686)<\/li>\n<li>irda-utils<\/li>\n<li>pppd<\/li>\n<li>wvdial<\/li>\n<\/ul>\n<p>Nach Einstecken des (ohne zuvor seine Linux-Tauglichkeit zu recherchieren gekauften) USB to IrDA Adapters l\u00c3\u00a4sst mich ein Blick in \/var\/log\/syslog aufatmen:<br \/>\n<code>Feb 13 02:55:12 r5d5 kernel: usb 2-1: new full speed USB device using address 3<br \/>\nFeb 13 02:55:13 r5d5 kernel: SigmaTel STIr4200 IRDA\/USB found at address 3, Vendor: 66f, Product: 4200<br \/>\nFeb 13 02:55:13 r5d5 kernel: IrDA: Registered SigmaTel device irda0<br \/>\nFeb 13 02:55:13 r5d5 usb.agent[3475]:      stir4200: already loaded<br \/>\n<\/code><\/p>\n<p>Unter der Haube dieses Adapters steckt also von Linux unterst\u00c3\u00bctzte SigmaTel Hardware.<\/p>\n<p>Nun kommen zum ersten Mal die irda-utils zum Einsatz. Mit<br \/>\n<code>markus@r5d5:~ $ sudo irattach irda0 -s<\/code><\/p>\n<p>bringt man den IrDA-Adapter nun dazu, nach Remote-Ger\u00c3\u00a4ten ausschau zu halten. Ob dies funktioniert hat, k\u00c3\u00b6nnen wir folgenderma\u00c3\u0178en \u00c3\u00bcberpr\u00c3\u00bcfen:<br \/>\n<code>markus@r5d5:~ $ sudo irdadump<br \/>\n02:13:45.381616 xid:cmd acff0841 > ffffffff S=6 s=3 (14)<br \/>\n02:13:45.481599 xid:cmd acff0841 > ffffffff S=6 s=4 (14)<br \/>\n02:13:45.581585 xid:cmd acff0841 > ffffffff S=6 s=5 (14)<br \/>\n02:13:45.681570 xid:cmd acff0841 > ffffffff S=6 s=* r5d5 hint=0400 [ Computer ] (20)<br \/>\n02:13:48.081206 xid:cmd acff0841 > ffffffff S=6 s=0 (14)<br \/>\n02:13:48.181191 xid:cmd acff0841 > ffffffff S=6 s=1 (14)<br \/>\n02:13:48.281176 xid:cmd acff0841 > ffffffff S=6 s=2 (14)<br \/>\n02:13:48.381162 xid:cmd acff0841 > ffffffff S=6 s=3 (14)<br \/>\n02:13:48.481143 xid:cmd acff0841 > ffffffff S=6 s=4 (14)<br \/>\n02:13:48.581129 xid:cmd acff0841 > ffffffff S=6 s=5 (14)<br \/>\n02:13:48.681114 xid:cmd acff0841 > ffffffff S=6 s=* r5d5 hint=0400 [ Computer ] (20)<br \/>\n02:13:51.080752 xid:cmd acff0841 > ffffffff S=6 s=0 (14)<br \/>\n02:13:51.180734 xid:cmd acff0841 > ffffffff S=6 s=1 (14)<br \/>\n02:13:51.280718 xid:cmd acff0841 > ffffffff S=6 s=2 (14)<br \/>\n02:13:51.380703 xid:cmd acff0841 > ffffffff S=6 s=3 (14)<br \/>\n02:13:51.480687 xid:cmd acff0841 > ffffffff S=6 s=4 (14)<br \/>\n02:13:51.580673 xid:cmd acff0841 > ffffffff S=6 s=5 (14)<br \/>\n02:13:51.680657 xid:cmd acff0841 > ffffffff S=6 s=* r5d5 hint=0400 [ Computer ] (20)<br \/>\n02:13:54.080300 xid:cmd acff0841 > ffffffff S=6 s=0 (14)<br \/>\n02:13:54.180278 xid:cmd acff0841 > ffffffff S=6 s=1 (14)<br \/>\n02:13:54.280262 xid:cmd acff0841 > ffffffff S=6 s=2 (14)<br \/>\n<\/code><\/p>\n<p>Kurzerhand am Handy Infrarot aktiviert und es in Reichweite des Dongles gelegt \u00c3\u00a4ndert sich die Ausgabe von irdadump folgenderma\u00c3\u0178en:<br \/>\n<code>02:13:54.580216 xid:cmd acff0841 > ffffffff S=6 s=5 (14)<br \/>\n02:13:54.680202 xid:cmd acff0841 > ffffffff S=6 s=* r5d5 hint=0400 [ Computer ] (20)<br \/>\n02:13:57.079837 xid:cmd acff0841 > ffffffff S=6 s=0 (14)<br \/>\n02:13:57.179821 xid:cmd acff0841 > ffffffff S=6 s=1 (14)<br \/>\n02:13:57.279806 xid:cmd acff0841 > ffffffff S=6 s=2 (14)<br \/>\n02:13:57.379792 xid:cmd acff0841 > ffffffff S=6 s=3 (14)<br \/>\n02:13:57.458963 xid:rsp acff0841 < f29d0000 S=6 s=3 Nokia 8310 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)\n02:13:57.479776 xid:cmd acff0841 > ffffffff S=6 s=4 (14)<br \/>\n02:13:57.579761 xid:cmd acff0841 > ffffffff S=6 s=5 (14)<br \/>\n02:13:57.679746 xid:cmd acff0841 > ffffffff S=6 s=* r5d5 hint=0400 [ Computer ] (20)<br \/>\n02:14:00.079388 xid:cmd acff0841 > ffffffff S=6 s=0 (14)<br \/>\n02:14:00.160512 xid:rsp acff0841 < f29d0000 S=6 s=0 Nokia 8310 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)\n02:14:00.179366 xid:cmd acff0841 > ffffffff S=6 s=1 (14)<br \/>\n02:14:00.279351 xid:cmd acff0841 > ffffffff S=6 s=2 (14)<br \/>\n02:14:00.379335 xid:cmd acff0841 > ffffffff S=6 s=3 (14)<br \/>\n<\/code><\/p>\n<p>Soweit sogut! Nun geht&#8217;s daran, \u00c3\u00bcber&#8217;s Modem des Mobiltelephons mit ppp eine Verbindung ins Netz aufzubauen.<\/p>\n<p>Hier die Konfigurationsskripts:<br \/>\n<code>markus@r5d5:~ $ cat \/etc\/ppp\/peers\/gprs<br \/>\n# Most GPRS phones don't reply to LCP echo's<br \/>\nlcp-echo-failure 0<br \/>\nlcp-echo-internal 0<\/p>\n<p># Keep pppd attached to the terminal<br \/>\nnodetach<\/p>\n<p># Debug info<br \/>\ndebug<\/p>\n<p>show-password<\/p>\n<p># (Dis-)Connect scripts<br \/>\nconnect \"\/usr\/bin\/wvdial --chat --config \/etc\/ppp\/peers\/gprs-wvdial.conf one\"<br \/>\ndisconnect \/etc\/ppp\/peers\/gprs-disconnect-chat<\/p>\n<p># IrDA serial device and speed<br \/>\n\/dev\/ircomm0<br \/>\n115200<\/p>\n<p># Disable hardware flow control<br \/>\nnocrtscts<\/p>\n<p># IP configuration<br \/>\nlocal<br \/>\n:10.0.0.1<br \/>\nnoipdefault<br \/>\nipcp-accept-local<br \/>\nusepeerdns<\/p>\n<p># ppp compression (disabled because the serial connection isn't the bottleneck in GPRS)<br \/>\nnovj<br \/>\nnobsdcomp<br \/>\nnovjccomp<br \/>\nnopcomp<br \/>\nnoaccomp<\/p>\n<p># The phone is not required to authenticate:<br \/>\nnoauth<\/p>\n<p># Username and password<br \/>\n# add your information to \/etc\/ppp\/pap-secrets<br \/>\n# e.g. \"web\"   *   \"web\"   *<br \/>\nuser \"web\"<\/p>\n<p>markus@r5d5:~ $ cat \/etc\/ppp\/peers\/gprs-wvdial.conf<br \/>\n[Dialer one]<br \/>\nInit1 = ATH<br \/>\nInit2 = ATE1<br \/>\nInit3 = AT+CGDCONT=1,\"IP\",\"web.one.at\"<br \/>\nDial Command = ATD<br \/>\nPhone = *99#<br \/>\nUsername = web<br \/>\nPassword = web<\/p>\n<p>markus@r5d5:~ $ cat \/etc\/ppp\/peers\/gprs-disconnect-chat<br \/>\n#!\/bin\/sh<br \/>\nexec \/usr\/sbin\/chat -V -s -S<br \/>\nABORT           \"BUSY\"<br \/>\nABORT           \"ERROR\"<br \/>\nABORT           \"NO DIALTONE\"<br \/>\nSAY             \"nSending break to the modemn\"<br \/>\n\"\"              \"K\"<br \/>\n\"\"              \"K\"<br \/>\n\"\"              \"K\"<br \/>\n\"\"              \"+++ATH\"<br \/>\n\"\"              \"+++ATH\"<br \/>\n\"\"              \"+++ATH\"<br \/>\nSAY             \"nPDP context detachedn\" <\/p>\n<p><\/code><\/p>\n<p>Fertig! Ein kurzer Test zeigt, dass alles funktioniert:<br \/>\n<code>markus@r5d5:~ $ sudo pppd call gprs<br \/>\n--> WvDial: Internet dialer version 1.54.0<br \/>\n--> Initializing modem.<br \/>\n--> Sending: ATH<br \/>\nATH<br \/>\nOK<br \/>\n--> Sending: ATE1<br \/>\nATE1<br \/>\nOK<br \/>\n--> Sending: AT+CGDCONT=1,\"IP\",\"web.one.at\"<br \/>\nAT+CGDCONT=1,\"IP\",\"web.one.at\"<br \/>\nOK<br \/>\n--> Modem initialized.<br \/>\n--> Sending: ATD*99#<br \/>\n--> Waiting for carrier.<br \/>\nATD*99#<br \/>\nCONNECT<br \/>\n~[7f]}#@!}!} } }2}#}$@#}!}$}%}\"}&} }*} } g}%~<br \/>\n--> Carrier detected.  Waiting for prompt.<br \/>\n~[7f]}#@!}!} } }2}#}$@#}!}$}%}\"}&} }*} } g}%~<br \/>\n--> PPP negotiation detected.<br \/>\nSerial connection established.<br \/>\nusing channel 3<br \/>\nUsing interface ppp0<br \/>\nConnect: ppp0 < --> \/dev\/ircomm0<br \/>\nsent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x501a2707>]<br \/>\nrcvd [LCP ConfRej id=0x1 <\/magic><magic 0x501a2707>]<br \/>\nsent [LCP ConfReq id=0x2 <asyncmap 0x0>]<br \/>\nrcvd [LCP ConfAck id=0x2 <\/asyncmap><asyncmap 0x0>]<br \/>\nsent [LCP ConfReq id=0x2 <\/asyncmap><asyncmap 0x0>]<br \/>\nrcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]<br \/>\nsent [LCP ConfAck id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]<br \/>\nrcvd [LCP ConfAck id=0x2 <\/asyncmap><asyncmap 0x0>]<br \/>\nsent [PAP AuthReq id=0x1 user=\"web\" password=\"web\"]<br \/>\nrcvd [PAP AuthAck id=0x1 \"\"]<br \/>\nPAP authentication succeeded<br \/>\nsent [CCP ConfReq id=0x1 <deflate 15> <\/deflate><deflate (old#) 15>]<br \/>\nsent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms -dns1 0.0.0.0> <\/ms><ms -dns3 0.0.0.0>]<br \/>\nrcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]<br \/>\nsent [IPCP ConfNak id=0x0 <\/addr><addr 10.0.0.1>]<br \/>\nrcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]<br \/>\nrcvd [IPCP ConfNak id=0x1 <\/addr><addr 10.100.186.77> <ms -dns1 194.24.128.100> <\/ms><ms -dns3 194.24.128.102>]<br \/>\nsent [IPCP ConfReq id=0x2 <addr 10.100.186.77> <ms -dns1 194.24.128.100> <\/ms><ms -dns3 194.24.128.102>]<br \/>\nrcvd [IPCP ConfReq id=0x1 <addr 10.0.0.1>]<br \/>\nsent [IPCP ConfAck id=0x1 <\/addr><addr 10.0.0.1>]<br \/>\nrcvd [IPCP ConfAck id=0x2 <\/addr><addr 10.100.186.77> <ms -dns1 194.24.128.100> <\/ms><ms -dns3 194.24.128.102>]<br \/>\nnot replacing default route to eth0 [192.168.0.1]<br \/>\nCannot determine ethernet address for proxy ARP<br \/>\nlocal  IP address 10.100.186.77<br \/>\nremote IP address 10.0.0.1<br \/>\nprimary   DNS address 194.24.128.100<br \/>\nsecondary DNS address 194.24.128.102<br \/>\nScript \/etc\/ppp\/ip-up started (pid 17444)<br \/>\nScript \/etc\/ppp\/ip-up finished (pid 17444), status = 0x0<br \/>\n<\/ms><\/addr><\/ms><\/addr><\/ms><\/addr><\/ms><\/addr><\/deflate><\/asyncmap><\/mru><\/auth><\/asyncmap><\/mru><\/auth><\/asyncmap><\/magic><\/asyncmap><\/code><\/p>\n<p>Nachdem auf meinem Rechner eine default Route auf eth0 eingestellt war, musste ich diese nur noch l\u00c3\u00b6schen und eine Neue setzten, um meinen Browser nun endlich per Handy ins Netz zu bringen.<br \/>\n<code>markus@r5d5:~ $ sudo route del default<br \/>\nmarkus@r5d5:~ $ sudo route add default ppp0<\/code><\/p>\n<p>Das Ganze ist mit Sicherheit noch nicht perfekt. F\u00c3\u00bcr Verbesserungsvorschl\u00c3\u00a4ge bin ich also sehr dankbar!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nachdem der kabellose Zugang ins Netz per WLAN noch ;) nicht \u00c3\u00bcberall gegeben ist, habe ich mich heute daran gemacht, meinem neuen Notebook die M\u00c3\u00b6glichkeit zu geben, per Mobiltelephon und GPRS ins Netz zu kommen. Hardware: Asus S5600N Notebook (da das Notebook ohne IrDA daher kommt) ednet USB to IrDA dongle (ca. EUR 20) Nokia &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/old.wienerlloyd.net\/?p=310\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mobiles Internet via Infrarot und GPRS (Nokia 8310)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=310"}],"version-history":[{"count":0,"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=\/wp\/v2\/posts\/310\/revisions"}],"wp:attachment":[{"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/old.wienerlloyd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}