Hi everyone,<br><br>I&#39;m just dropping a line here so there is a record of a solution I found for GPRS in New Zealand on the Vodafone network, as I had terrible trouble getting things configured. I also had trouble with the scripts on the OpenMoko wiki which didn&#39;t really work.<br>
<br>First of all I have a script for starting GPRS which turns off gsmd, as gsmd apparently conflicts with pppd. Note that this script almost certainly disables your Neo&#39;s phone functions.<br><br>/etc/init.d/gsmd stop<br>
echo &quot;1&quot; &gt; /sys/bus/platform/devices/gta01-pm-gsm.0/power_on<br>chown uucp.uucp /dev/ttySAC0<br>stty -F /dev/ttySAC0 crtscts<br>pppd call gprs<br><br><br>This was prepared by looking at the manually setting up GSM on the OpenMoko wiki. I also wrote my own chat script which is similar to the one on the Wiki, but corrects a few problems:<br>
<br>#!/bin/sh -e<br>exec chat -v\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT BUSY\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT DELAYED\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT &quot;NO ANSWER&quot;\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT &quot;NO DIALTONE&quot;\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT VOICE\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT ERROR\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ABORT RINGING\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TIMEOUT 60\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot; +++\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AT ATZ\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK ATE1\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK AT+CFUN=1\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK AT+COPS\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK AT+CGDCONT=1,\&quot;IP\&quot;,\&quot;live.vodafone.com\&quot;\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK ATD*99***2#\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECT /n/d<br><br>Note here that the phone number is &quot;*99***2&quot;, not &quot;*99#&quot; - this is critical to making a internet connection vs just making a WAP connection, at least on the NZ vodafone network.<br>
<br>For connection diagnosis the section on the wiki dealing with manually setting up GSM was useful. The following script will connect to the modems AT command system and allow you to manually enter commands. This will allow you to experiment if for any reason the chat script above doesn&#39;t work for you.<br>
<br><span class="HcCDpe"></span>/etc/init.d/gsmd stop<br>echo &quot;1&quot; &gt; /sys/bus/platform/devices/gta01-pm-gsm.0/power_on<br>chown uucp.uucp /dev/ttySAC0<br>stty -F /dev/ttySAC0 crtscts<br>cu -l /dev/ttySAC0<br><br>
<br>By the way, you may all be interested in what I&#39;m doing with the OpenMoko. I&#39;m using it as the brains in a robot; a autonomous marine vehicle. <br><br>My blog on progress is here:<br><a href="http://www.devcentre.org/index.php?option=com_content&amp;task=blogcategory&amp;id=68&amp;Itemid=44">http://www.devcentre.org/index.php?option=com_content&amp;task=blogcategory&amp;id=68&amp;Itemid=44</a><br>
<br>Youtube videos:<br><a href="http://www.youtube.com/watch?v=7NUJ4dnI-54">http://www.youtube.com/watch?v=7NUJ4dnI-54</a><br><a href="http://www.youtube.com/watch?v=ab8tF5bYF-k">http://www.youtube.com/watch?v=ab8tF5bYF-k</a><br>
<a href="http://www.youtube.com/watch?v=k9wtjRpL7tA">http://www.youtube.com/watch?v=k9wtjRpL7tA</a><br><br>Also I&#39;m going to make all the command and control software available as open source. Its all written in Python.<br>