{"id":46,"date":"2007-10-04T23:34:41","date_gmt":"2007-10-04T21:34:41","guid":{"rendered":"http:\/\/metaviewsoft.de\/wordpress\/?p=46"},"modified":"2007-10-04T23:34:41","modified_gmt":"2007-10-04T21:34:41","slug":"bring-your-linux-laptop-online-using-the-treo-650","status":"publish","type":"post","link":"https:\/\/metaviewsoft.de\/wordpress\/?p=46","title":{"rendered":"Bring your Linux Laptop online using the Treo 650"},"content":{"rendered":"<p>This time I have a small How-To:<\/p>\n<p><strong>Bring your Linux laptop online using your Treo 650 and GPRS (using Simyo as provider)<\/strong><\/p>\n<p><em>What to do on the Treo 650:<br \/>\n<\/em> Switch on Bluetooth and enable &#8220;Netzwerk-Einwahl&#8221; (dial-up networking, DUN). Your might need firmware 1.12 on your Treo 650 to have this option in the Bluetooth preference panel.<\/p>\n<p><em>What to do on your Linux (Ubuntu) laptop:<br \/>\n<\/em> Install the bluez-packets (bluez-utils). Next you use <code>hcitool scan<\/code> to find your Treo and get its hardware address. The address looks like <code>00:07:E0:07:E6:A3<\/code> and is unique for any Bluetooth device. You can connect to the device using:<\/p>\n<p><code>rfcomm connect \/dev\/rfcomm0  00:07:E0:07:E6:A3<\/code><\/p>\n<p>You should now have a serial connection between your laptop and your Treo.<\/p>\n<p>Next we need to configure the scripts to dial in and hangup. In our example we use a German prepaid provider which has a quite cheap data plan, Simyo.<\/p>\n<p>You create some files<\/p>\n<p>1.  at <code>\/etc\/ppp\/peers<\/code> a file called <code>simyo<\/code><\/p>\n<blockquote><p><code>\/dev\/rfcomm0<br \/>\n115200<br \/>\ncrtscts<br \/>\n#debug<br \/>\nidle 300<br \/>\nlcp-echo-failure 0<br \/>\nlcp-echo-interval 0<br \/>\nlocal<br \/>\nlock<br \/>\nnoauth<br \/>\n#nodetach<br \/>\nnoipdefault<br \/>\nnoproxyarp<br \/>\ndefaultroute<br \/>\nusepeerdns<br \/>\nipparam eplus<br \/>\npassword eplus<br \/>\nremotename eplus<br \/>\nuser ''<br \/>\nconnect \"\/usr\/sbin\/chat -f \/etc\/chatscripts\/simyo-connect\"<br \/>\ndisconnect \"\/usr\/sbin\/chat -f \/etc\/chatscripts\/simyo-disconnect\"<\/code><\/p><\/blockquote>\n<p>2. at <code>\/etc\/chatscripts\/<\/code> a file called <code>simyo-connect<\/code><\/p>\n<blockquote><p><code>SAY     'Starting GPRS connect script\\n'<br \/>\nTIMEOUT 10<br \/>\nABORT   'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED<br \/>\n''      ATZ<br \/>\nOK      'AT&amp;F+CGDCONT=1,\"IP\",\"INTERNET.EPLUS.DE\";+CGQREQ=1,0,0,0,5,1'<br \/>\nSAY     'Dialing...\\n'<br \/>\nOK      ATD*99***1#<br \/>\nCONNECT ' '<\/code><\/p><\/blockquote>\n<p>and a file called <code>simyo-disconnect<\/code><\/p>\n<blockquote><p><code>SAY     'Starting GPRS disconnect script\\n'<br \/>\n\"\"      \\K<br \/>\n\"\"      +++ATH0<\/code><\/p><\/blockquote>\n<p>Now you enter a <code>pon simyo<\/code> and you are online. With <code>poff<\/code> you can bring the connection down and with <code>plog<\/code> you can see some log infos about the ppp0 connection.<\/p>\n<p>One problem I had was the <code>default route<\/code>. After the connection was established, <code>ifconfig<\/code> did show me the ppp0 connection and the assigned IP address, <code>plog<\/code> told me also I was connected and even the Treo had the GPRS indication (2 green arrows on the signal reception gadget). I was using the ethernet connection (eth0) during the setup to look for help in the internet. After unplugging the network cable the laptop still had the old route (192.168.0.1) stored as default route. I had to manually enter <code>route add default gw 10.121.30.0<\/code> to add a route to the new mobile connection.<\/p>\n<p>[ Another link doing the same for Windows: <a href=\"http:\/\/www.makezine.com\/blog\/archive\/2005\/06\/howto_legal_dun.html\" target=\"_blank\">http:\/\/www.makezine.com\/blog\/archive\/2005\/06\/howto_legal_dun.html<\/a> ]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This time I have a small How-To: Bring your Linux laptop online using your Treo 650 and GPRS (using Simyo as provider) What to do on the Treo 650: Switch on Bluetooth and enable &#8220;Netzwerk-Einwahl&#8221; (dial-up networking, DUN). Your might need firmware 1.12 on your Treo 650 to have this option in the Bluetooth preference [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,1209],"tags":[],"views":6016,"_links":{"self":[{"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":0,"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"wp:attachment":[{"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metaviewsoft.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}