Alex, 
thanks - I think I will try to get my hands on an E160. Ebay has them at 45$+- which seems fair. 
I will probably be back with more questions :)
Thanks again

On Wed, Mar 3, 2010 at 8:39 AM, Alex Gibson <alxx@alexthegeek.com> wrote:
On 3/03/2010 4:13 AM, J wrote:
> A simple way would be to purchase a 3g USB data stick from a carrier
> and ensure it has support for linux.
>

Thats what we are doing.

Using a Huawei E160 which has the drivers in the kernel.

Then all you need to do is

create the device for ppp
mknod /dev/ppp c 108 0

In /etc/ppp create a file called chat
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
OK 'AT+CGDCONT=1,"IP",""'
OK ATH
OK ATE1
OK AT+CSQ
OK ATD*99#
CONNECT ''

Then /etc/ppp/peers/
create a file call it whatever you want
I called mine dodo1 as thats the isp
/dev/ttyUSB0 460800
connect '/usr/sbin/chat -v -f /etc/ppp/chat'
defaultroute
replacedefaultroute
noauth
#usepeerdns
init 'echo -e "nameserver 202.136.43.228\nnameserver 202.136.42.228" >
/etc/resolv.conf'


May need to uncomment the second last line and comment the last line
depending on my isps nameservers and if their settings work properly or not.

Then
to dial
pppd call dodo1

We do the call in an init script (/etc/init.d/xxxx )
#create device for ppp
mknod /dev/ppp c 108 0

#connect using dodo 3G modem
pppd call dodo1

#sleep for 30 seconds to give time for pppd to start and to connect to dodo
sleep 10

then its connected and ready to use.


Alex

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and
defects.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users