<!-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } --> <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> <hr> <span class="caption text-muted">Please drop me a line if you have any feedback. Thanks!</span> <p class="tags"> <i class="fa fa-tags tags"></i> <a href="/dpino/tag/igalia"><code>igalia</code></a> <a href="/dpino/tag/linux"><code>linux</code></a> <a href="/dpino/tag/mobile"><code>mobile</code></a> </p> <ul class="pager"> <li class="previous"> <a href="/dpino/2008/11/11/after-a-long-break/" data-toggle="tooltip" data-placement="top" title="After a long break…">← Previous Post</a> </li> <li class="next"> <a href="/dpino/2009/02/10/software-craftsmanship-a-new-imperative/" data-toggle="tooltip" data-placement="top" title="Software Craftsmanship: The New Imperative">Next Post →</a> </li> </ul> </div> </div> </div> </article> <hr> <!-- Footer --> <footer> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul class="list-inline text-center"> <li> <a href="/dpino/feed.xml"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-rss fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="http://people.igalia.com/dpino/"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-home fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="mailto:dpino@igalia.com"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-envelope fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="https://twitter.com/diepg"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-twitter fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="https://github.com/dpino"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-github fa-stack-1x fa-inverse"></i> </span> </a> </li> <li> <a href="https://linkedin.com/in/diegopino"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-linkedin fa-stack-1x fa-inverse"></i> </span> </a> </li> </ul> <p class="copyright text-muted"> Copyright © Unweaving the Web 2022 <br> <a href="/dpino/about/#license"><i class="fa fa-cc" style="margin-right: 0.5em;" ></i>Some rights reserved</a> </p> </div> </div> </div> </footer> <!-- jQuery --> <script src="/dpino/js/jquery.min.js "></script> <!-- Bootstrap Core JavaScript --> <script src="/dpino/js/bootstrap.min.js "></script> <!-- Custom Theme JavaScript --> <script src="/dpino/js/clean-blog.min.js "></script> </body> </html>