{"id":24,"date":"2009-04-12T21:35:56","date_gmt":"2009-04-12T21:35:56","guid":{"rendered":"http:\/\/clayb.net\/blog\/?p=24"},"modified":"2012-05-04T19:37:58","modified_gmt":"2012-05-04T19:37:58","slug":"im-connected-through-the-aether-well-using-1900mhz-cellular","status":"publish","type":"post","link":"https:\/\/clayb.net\/blog\/im-connected-through-the-aether-well-using-1900mhz-cellular\/","title":{"rendered":"I&#8217;m connected through the aether! (Well using 1900Mhz &#8212; cellular)"},"content":{"rendered":"<h1>Cingular cellular using a Lenovo X200 and Ericcson F3507g built-in cellular modem<\/h1>\n<h2>Background<\/h2>\n<p>Internet connectivity is necessary in this day and age, especially for an engineer at Sun! So, one day at my Father&#8217;s house I was playing with his Sierra Wireless USB dongle and not succeeding at figuring out what to do without internet (<a href=\"http:\/\/www.sierrawireless.com\/faq\/ShowFAQ.aspx?ID=601\">this<\/a> might help for those with one), but I remembered my work <a href=\"http:\/\/gizmodo.com\/5025193\/hands-on-lenovo-x200-tiny-cheap-means-business-but-forgot-the-trackpad\">Lenovo X200<\/a> had a Cingular capable WWAN (Wireless Wide Area Network) card.<\/p>\n<p><!--more--><\/p>\n<h2>Basic Solaris Implementation<\/h2>\n<p>So, I pulled the battery on the Lenovo and stuck the SIM card in from the Sierra Wireless dongle. From this point I fired up the Solaris Device Driver Utility (Applications->System Tools->Device Driver Utility or <tt>\/usr\/bin\/python \/usr\/ddu\/ddu.py<\/tt>). The DDU told me that the <a href=\"http:\/\/opensolaris.org\/os\/project\/wwan\/\">usbsacm<\/a> driver was attached (actually twice and why, I&#8217;m not sure) which meant Solaris could talk to the card okay. To confirm I fired up <a href=\"http:\/\/docs.sun.com\/app\/docs\/doc\/816-0210\/6m6nb7mn9?a=view\">tip(1)<\/a> and typed <tt>ATZ<\/tt> which on a modem will usually give <tt>OK<\/tt> meaning all&#8217;s well and the modem&#8217;s ready to accept further commands to setup a data call. The Ericsson didn&#8217;t respond <tt>OK<\/tt> but instead <tt>ERROR<\/tt>, this required some digging&#8230;<\/p>\n<h2>Modem\/PPP Setup<\/h2>\n<p>Since, the modem wasn&#8217;t in the right state to accept <a href=\"http:\/\/en.wikipedia.org\/wiki\/Hayes_command_set\">AT commands<\/a> I looked around for what was up. The Ericsson F3507g has a offline and online mode. The command to bring the modem online is <tt>AT+CFUN=1<\/tt> and sure enough the wireless modem light on the Lenovo lit up green (yes, <tt>AT+CFUN=0<\/tt> turns it off again). This was a good sign!<\/p>\n<p>Next, was setting up the files to run <a href=\"http:\/\/docs.sun.com\/app\/docs\/doc\/816-5166\/pppd-1m?a=view\">pppd(1)<\/a>. I usually use as a template, the instructions on the <a href=\"http:\/\/opensolaris.org\/os\/project\/wwan\/\">page<\/a> for the OpenSolaris WWAN Project (see the &#8220;Configuration&#8221; heading). Here was no exception, however, I found that some things were going to be special for the Ericsson modem and Cingular. Thus I would have custom <tt>\/etc\/ppp\/peers\/evdo<\/tt> and <tt>\/etc\/ppp\/evdo-chat<\/tt> files (and as it turns out a custom <tt>\/etc\/ppp\/chap-secrets<\/tt> file). Indeed I did, they&#8217;re available below (to use also make a symlink for the modem to <tt>\/dev\/evdo<\/tt> &#8212; usually <tt>pfexec ln -s \/dev\/term\/0 \/dev\/evdo<\/tt>):<\/p>\n<ul>\n<li><a href=\"https:\/\/clayb.net\/blog\/wp-content\/uploads\/2012\/02\/evdo-chat.txt\">evdo-chat<\/a> (goes in <tt>\/etc\/ppp<\/tt>)<\/li>\n<li><a href=\"https:\/\/clayb.net\/blog\/wp-content\/uploads\/2012\/02\/evdo.txt\">evdo<\/a> (goes in <tt>\/etc\/ppp\/peers<\/tt>)<\/li>\n<li><a href=\"https:\/\/clayb.net\/blog\/wp-content\/uploads\/2012\/02\/chap-secrets.txt\">chap-secrets<\/a> (goes in <tt>\/etc\/ppp<\/tt>)<\/li>\n<\/ul>\n<p>Now all I have to do when I want to use the cellular modem is type <tt>pfexec pppd call evdo<\/tt>!<\/p>\n<h2>References:<\/h2>\n<ul>\n<li><a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=934013&#038;page=2\">[ubuntu] [SOLVED] Setup and Configuration of Ericsson F3507g WWAN Card &#8211; Page 2 &#8211; Ubuntu Forums<\/a> &#8212; Provided how to initialize the modem<\/li>\n<li><a href=\"http:\/\/redmonk.com\/sogrady\/2008\/09\/24\/apone\/#comment-483236\">tecosystems &raquo; Meet Apone: The X301 Review (Linux and Vista)<\/a> &#8212; How to use the cellular card as a GPS device<\/li>\n<li><a href=\"http:\/\/www.ctiforum.com\/standard\/standard\/etsi\/0707.pdf\">AT command set for GSM Mobile Equipment<\/a> &#8212; Provides insight into the <tt>AT+CFUN<\/tt> and <tt>AT+CGDCONT<\/tt> commands used to initialize the GSM modem<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How I got the Lenovo X200&#8217;s Ericsson F3507g GSM modem working on OpenSolaris build 111&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/posts\/24"}],"collection":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clayb.net\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}