Home > igalia, linux, mobile > Setting up a Nokia 6120 as a modem in GNU/Linux (or how to waste your precious time but having lots of fun)

Setting up a Nokia 6120 as a modem in GNU/Linux (or how to waste your precious time but having lots of fun)

<meta content="OpenOffice.org 2.4 (Unix)" name="GENERATOR" /><br /> <style type="text/css"> <!-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } --> </style> <p style="margin-bottom: 0cm">Recently I decided to switch my mobile phone supplier and move to other one with more competitive data transfer fees. Yesterday I got my new SIM card, and today I decided to try to connect to the internet using my mobile phone, a <strong>Nokia 6120c</strong>, as a modem.</p> <p style="margin-bottom: 0cm"><a href="http://blogs.igalia.com/eocanha">Quique</a> kindly helped me with the setup as we both got the same provider, and he is more experienced than me on doing this kind of things.</p> <p style="margin-bottom: 0cm">First step, was to install <strong>wvdial</strong> and configure <em>/etc/wvdial.conf</em> with the right options.I first tried:</p> <p style="margin-bottom: 0cm"><em># wvdialconf /etc/wvdial.conf</em></p> <p style="margin-bottom: 0cm">But no success. I finally end up copying verbatim a <em>wvdial.conf</em> file I found on <a href="http://ortigosano.wordpress.com/2007/03/11/internet-con-ubuntu-y-n70-yoigo/">this website</a>. It was initially aimed for a <strong>N70</strong>, but other user reported the same setup also <a href="http://www.nosoyeltipicofriki.com/2008/09/21/3-anitos-y-un-eeepc/">worked for a 6120c</a>.</p> <p style="margin-bottom: 0cm">Later, I noticed that for using a USB port for serial communication I needed a special device <em>/dev/ttyACM0</em>, as it was demanded on the conf file.</p> <p style="margin-bottom: 0cm"><em>Modem = /dev/ttyACM0 </em></p> <p style="margin-bottom: 0cm">This node is created on-demand whenever a mobile phone is plugged into the laptop. However, I couldn’t find it on my filesystem. And that’s when the orgy of digging the internet and trying more and more weird commands started. I think we tried almost anything:</p> <p style="margin-bottom: 0cm">Create the node by hand:</p> <p style="margin-bottom: 0cm"><em># mknod /dev/ttyACM0 c 166 0</em></p> <p style="margin-bottom: 0cm">Add some lines to /etc/rc.local to create whenever the system boots.</p> <p style="margin-bottom: 0cm"><em>If [ ! -e /dev/ttyACM0 ]; then</em></p> <p style="margin-bottom: 0cm"><em>    mknod /dev/ttyACM0 c 166 0</em></p> <p style="margin-bottom: 0cm"><em>fi</em></p> <p style="margin-bottom: 0cm">Nothing of this worked. After that, we started trying loading different drivers:</p> <p style="margin-bottom: 0cm"><em># modprobe cdc_acm</em></p> <p style="margin-bottom: 0cm"><em># modprobe usbserial</em></p> <p style="margin-bottom: 0cm"><em># modprobe cdc_ether</em></p> <p style="margin-bottom: 0cm">Again, nothing worked. Then, I found an interesting thread on a forum where an user exposed the same symptons. At the end, I coudl find a reply where an user claimed to have solved the problem by changing the order of how modules are loaded. It’s supposed that <strong>cdc_acm</strong> should be more prioritary than <strong>usbserial</strong>. So, here I went again trying different combinations. Same result, no luck.</p> <p style="margin-bottom: 0cm">Then I took Quique’s phone, which successfully worked, and explore a bit what it did whenever it was plugged. I noticed that when the 6120 was plugged, the <strong>storage partition</strong> (SDcard) was automatically mounted, and that didn’t happen on Quique’s phone. We decided to remove the SDcard.</p> <p style="margin-bottom: 0cm">Finally, Quique took the phone and plug it on his laptop. It’s important to mention that when the 6120 is plugged, a menu with three options pops up. The option by default is to mount the SDCard (<strong><em>Data transfer</em></strong>), this is the option if no options is picked and the time expires. We leave it as usual, and then got an error since the Sdcard was no longer on the phone, so Quique went for the other option <strong><em>PC-Suite</em></strong>, and voila!</p> <p style="margin-bottom: 0cm">The bottom line of this is story could be something like it’s always much better going for a <a href="http://en.wikipedia.org/wiki/Kiss">KISS</a> approach rather than starting trying the most obscure linux commands that first come to your mind.</p> <p style="margin-bottom: 0cm">By the way, it’s no coincidence that in fact today I learnt that the last <strong>S</strong> of <strong>KISS</strong> stands for <strong>stupid</strong>, and that’s exactly how you feel after having spent two hours setting up a mobile phone for going on the internet, believe me.</p> <div class="fixed"></div> </div> <div class="under"> <span class="categories">Categories: </span><span><a href="http://blogs.igalia.com/dpino/?cat=2" title="View all posts in igalia" rel="category">igalia</a>, <a href="http://blogs.igalia.com/dpino/?cat=8" title="View all posts in linux" rel="category">linux</a>, <a href="http://blogs.igalia.com/dpino/?cat=9" title="View all posts in mobile" rel="category">mobile</a></span> <span class="tags">Tags: </span><span></span> </div> </div> <!-- related posts START --> <!-- related posts END --> <script type="text/javascript" src="http://blogs.igalia.com/dpino/wp-content/themes/inove/js/comment.js"></script> <div id="comments"> <div id="cmtswitcher"> <a id="commenttab" class="curtab" href="javascript:void(0);" onclick="MGJS.switchTab('thecomments,commentnavi', 'thetrackbacks', 'commenttab', 'curtab', 'trackbacktab', 'tab');">Comments (0)</a> <a id="trackbacktab" class="tab" href="javascript:void(0);" onclick="MGJS.switchTab('thetrackbacks', 'thecomments,commentnavi', 'trackbacktab', 'curtab', 'commenttab', 'tab');">Trackbacks (0)</a> <span class="addcomment"><a href="#respond">Leave a comment</a></span> <span class="addtrackback"><a href="http://blogs.igalia.com/dpino/wp-trackback.php?p=16">Trackback</a></span> <div class="fixed"></div> </div> <div id="commentlist"> <!-- comments START --> <ol id="thecomments"> <li class="messagebox"> No comments yet. </li> </ol> <!-- comments END --> <!-- trackbacks START --> <ol id="thetrackbacks"> <li class="messagebox"> No trackbacks yet. </li> </ol> <div class="fixed"></div> <!-- trackbacks END --> </div> </div> <form action="http://blogs.igalia.com/dpino/wp-comments-post.php" method="post" id="commentform"> <div id="respond"> <div id="author_info"> <div class="row"> <input type="text" name="author" id="author" class="textfield" value="" size="24" tabindex="1" /> <label for="author" class="small">Name (required)</label> </div> <div class="row"> <input type="text" name="email" id="email" class="textfield" value="" size="24" tabindex="2" /> <label for="email" class="small">E-Mail (will not be published) (required)</label> </div> <div class="row"> <input type="text" name="url" id="url" class="textfield" value="" size="24" tabindex="3" /> <label for="url" class="small">Website</label> </div> </div> <!-- comment input --> <div class="row"> <textarea name="comment" id="comment" tabindex="4" rows="8" cols="50"></textarea> </div> <!-- comment submit and rss --> <div id="submitbox"> <a class="feed" href="http://blogs.igalia.com/dpino/?feed=comments-rss2">Subscribe to comments feed</a> <div class="submitbutton"> <input name="submit" type="submit" id="submit" class="button" tabindex="5" value="Submit Comment" /> </div> <input type="hidden" name="comment_post_ID" value="16" /> <div class="fixed"></div> </div> </div> </form> <div id="postnavi"> <span class="prev"><a href="http://blogs.igalia.com/dpino/?p=19" rel="next">Software Craftsmanship: The New Imperative</a></span> <span class="next"><a href="http://blogs.igalia.com/dpino/?p=15" rel="prev">After a long break…</a></span> <div class="fixed"></div> </div> </div> <!-- main END --> <!-- sidebar START --> <div id="sidebar"> <!-- sidebar north START --> <div id="northsidebar" class="sidebar"> <!-- feeds --> <div class="widget widget_feeds"> <div class="content"> <div id="subscribe"> <a rel="external nofollow" id="feedrss" title="Subscribe to this blog..." href="http://blogs.igalia.com/dpino/?feed=rss2"><abbr title="Really Simple Syndication">RSS</abbr> feed</a> <ul id="feed_readers"> <li id="google_reader"><a rel="external nofollow" class="reader" title="Subscribe with Google" href="http://fusion.google.com/add?feedurl=http://blogs.igalia.com/dpino/?feed=rss2"><span>Google</span></a></li> <li id="youdao_reader"><a rel="external nofollow" class="reader" title="Subscribe with Youdao" href="http://reader.youdao.com/#url=http://blogs.igalia.com/dpino/?feed=rss2"><span>Youdao</span></a></li> <li id="xianguo_reader"><a rel="external nofollow" class="reader" title="Subscribe with Xian Guo" href="http://www.xianguo.com/subscribe.php?url=http://blogs.igalia.com/dpino/?feed=rss2"><span>Xian Guo</span></a></li> <li id="zhuaxia_reader"><a rel="external nofollow" class="reader" title="Subscribe with Zhua Xia" href="http://www.zhuaxia.com/add_channel.php?url=http://blogs.igalia.com/dpino/?feed=rss2"><span>Zhua Xia</span></a></li> <li id="yahoo_reader"><a rel="external nofollow" class="reader" title="Subscribe with My Yahoo!" href="http://add.my.yahoo.com/rss?url=http://blogs.igalia.com/dpino/?feed=rss2"><span>My Yahoo!</span></a></li> <li id="newsgator_reader"><a rel="external nofollow" class="reader" title="Subscribe with newsgator" href="http://www.newsgator.com/ngs/subscriber/subfext.aspx?url=http://blogs.igalia.com/dpino/?feed=rss2"><span>newsgator</span></a></li> <li id="bloglines_reader"><a rel="external nofollow" class="reader" title="Subscribe with Bloglines" href="http://www.bloglines.com/sub/http://blogs.igalia.com/dpino/?feed=rss2"><span>Bloglines</span></a></li> <li id="inezha_reader"><a rel="external nofollow" class="reader" title="Subscribe with iNezha" href="http://inezha.com/add?url=http://blogs.igalia.com/dpino/?feed=rss2"><span>iNezha</span></a></li> </ul> </div> <div class="fixed"></div> </div> </div> <!-- showcase --> <div id="twitter-1" class="widget widget_twitter"><h3><a href="http://twitter.com/pinowsky" class="twitter_title_link">Twitter</a></h3><ul class="twitter"><li class="twitter-item"> @jisampedro por cierto, para cuando un video del cruce de líneas de Admiralty? </li><li class="twitter-item"> @jisampedro De nada; creo que he descargado toda la frustación que tenía acumulada después del viaje a Tokio :P </li><li class="twitter-item"> RT @juanjosanchez: Want to try a cutting edge version of Epiphany in Ubuntu? <a href="http://blogs.igalia.com/mario/2010/02/03/trying-latest-epip" class="twitter-link">http://blogs.igalia.com/mario/2010/02/03/trying-latest-epip</a> ... </li><li class="twitter-item"> Haven't watched any anime for a long time, now kind of addicted to "The time of Eve", although is just 6 episodes <a href="http://bit.ly/bkEt9M" class="twitter-link">http://bit.ly/bkEt9M</a> </li><li class="twitter-item"> @lfnoya yo no la sigo, pero está a punto de empezar la 6 temporada en Cuatro </li></ul></div></div> <!-- sidebar north END --> <div id="centersidebar"> <!-- sidebar east START --> <div id="eastsidebar" class="sidebar"> <!-- categories --> <div class="widget widget_categories"> <h3>Categories</h3> <ul> <li class="cat-item cat-item-10"><a href="http://blogs.igalia.com/dpino/?cat=10" title="View all posts filed under agile">agile</a> </li> <li class="cat-item cat-item-6"><a href="http://blogs.igalia.com/dpino/?cat=6" title="View all posts filed under firefox">firefox</a> </li> <li class="cat-item cat-item-7"><a href="http://blogs.igalia.com/dpino/?cat=7" title="View all posts filed under gadgets">gadgets</a> </li> <li class="cat-item cat-item-5"><a href="http://blogs.igalia.com/dpino/?cat=5" title="View all posts filed under google">google</a> </li> <li class="cat-item cat-item-2"><a href="http://blogs.igalia.com/dpino/?cat=2" title="View all posts filed under igalia">igalia</a> </li> <li class="cat-item cat-item-13"><a href="http://blogs.igalia.com/dpino/?cat=13" title="View all posts filed under java">java</a> </li> <li class="cat-item cat-item-14"><a href="http://blogs.igalia.com/dpino/?cat=14" title="View all posts filed under javascript">javascript</a> </li> <li class="cat-item cat-item-8"><a href="http://blogs.igalia.com/dpino/?cat=8" title="View all posts filed under linux">linux</a> </li> <li class="cat-item cat-item-9"><a href="http://blogs.igalia.com/dpino/?cat=9" title="View all posts filed under mobile">mobile</a> </li> <li class="cat-item cat-item-4"><a href="http://blogs.igalia.com/dpino/?cat=4" title="View all posts filed under social">social</a> </li> <li class="cat-item cat-item-11"><a href="http://blogs.igalia.com/dpino/?cat=11" title="View all posts filed under uncategorized">uncategorized</a> </li> <li class="cat-item cat-item-3"><a href="http://blogs.igalia.com/dpino/?cat=3" title="View all posts filed under web">web</a> </li> <li class="cat-item cat-item-15"><a href="http://blogs.igalia.com/dpino/?cat=15" title="View all posts filed under zk">zk</a> </li> </ul> </div> </div> <!-- sidebar east END --> <!-- sidebar west START --> <div id="westsidebar" class="sidebar"> <!-- blogroll --> <div class="widget widget_links"> <h3>Blogroll</h3> <ul> <li><a href="http://blog.mozilla.com/faaborg/" title="User experience design at Mozilla" target="_blank">Alex Faaborg</a></li> <li><a href="http://www.beijinga2d.com/" title="American entrepreneur doing business in Beijing">Beijing Analog to Digital</a></li> <li><a href="http://autonome.wordpress.com/" title="Author of NuSoap, now at Mozilla">Dietrich Ayala</a></li> <li><a href="http://erik.eae.net/" title="Sage Firefox extension author, now Googler">Erik Arvidsson</a></li> <li><a href="http://www.snellspace.com/wp/" title="Abdera & AtomPP">James M. Snell</a></li> <li><a href="http://devtcg.blogspot.com/" title="Android advocate">Josh Guilfoyle</a></li> <li><a href="http://starkravingfinkle.org/blog/" title="Fennec and Mozilla Evangelist">Mark Finkle</a></li> <li><a href="http://blog.paulbetts.org/" title="Microsoft, Free SW and Gnome">Paul Betts</a></li> <li><a href="http://planet.igalia.com" rel="co-worker" title="The best planet on earth" target="_blank">Planet Igalia</a></li> </ul> </div> </div> <!-- sidebar west END --> <div class="fixed"></div> </div> <!-- sidebar south START --> <div id="southsidebar" class="sidebar"> <!-- archives --> <div class="widget"> <h3>Archives</h3> <ul> <li><a href='http://blogs.igalia.com/dpino/?m=200909' title='September 2009'>September 2009</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200908' title='August 2009'>August 2009</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200907' title='July 2009'>July 2009</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200903' title='March 2009'>March 2009</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200902' title='February 2009'>February 2009</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200901' title='January 2009'>January 2009</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200811' title='November 2008'>November 2008</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200810' title='October 2008'>October 2008</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200809' title='September 2008'>September 2008</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200808' title='August 2008'>August 2008</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200806' title='June 2008'>June 2008</a></li> <li><a href='http://blogs.igalia.com/dpino/?m=200805' title='May 2008'>May 2008</a></li> </ul> </div> <!-- meta --> <div class="widget"> <h3>Meta</h3> <ul> <li><a href="http://blogs.igalia.com/dpino/wp-login.php">Log in</a></li> </ul> </div> </div> <!-- sidebar south END --> </div> <!-- sidebar END --> <div class="fixed"></div> </div> <!-- content END --> <!-- footer START --> <div id="footer"> <a id="gotop" href="#" onclick="MGJS.goTop();return false;">Top</a> <a id="powered" href="http://wordpress.org/">WordPress</a> <div id="copyright"> Copyright © 2007-2009 Unweaving the Web </div> <div id="themeinfo"> Theme by <a href="http://www.neoease.com/">NeoEase</a>. Valid <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3">CSS 3</a>. </div> </div> <!-- footer END --> </div> <!-- container END --> </div> <!-- wrap END --> <p><a href="http://www.bad-behavior.ioerror.us/">Bad Behavior</a> has blocked <strong>22</strong> access attempts in the last 7 days.</p> </body> </html>