I posted this on the opie mailing list, but thought mabey it would be of
some intrest here too.
..................
Hello all.
I've just got around to sorting out connecting to the net using irda and
GPRS ( on a Ericcson T39).
Much of the info here is specific to connecting to Vodafone in the UK
over GPRS, the rest of the scripts are based on the info in the familiar
wiki on IRDA connections.
Fistly to get the detection to work I had to set
/proc/sys/net/irda/discovery to 1 even though one shouldnt have to
bash #:echo 1 >/proc/sys/net/irda/discovery
Then detect the connection
bash #:cat /proc/net/irda/discovery
Find my T39 ( note I have the irda applet installed and irport enabled).
Then I wrote a script and called it irppp , but you can call it wahtever
you like, this I saved in /usr/bin/irppp, and make sure it is excutable.
#!bin/sh
modprobe ircom-tty
modprobe irtty
modprobe sa1100_ir
#check that all worked
lsmod | grep ir
irattach irda0
pppd /dev/ircomm0 115200 \
defaultroute usepeerdns \
nocrtsctc noauth local lock \
connect 'chat -f /etc/ppp/chatfile' \
user "web" &
sleep 15
ifconfig | grep -A 6 ppp
Note user "web" setting comes from the Vodafone setup, more later.
next thing was to setup pap-secrets
Like so
echo 'web'*'web' > /etc/ppp/pap-secrets
as given on the vodafone uk web site
Next was the chat file /etc/ppp/chatfile
ABORT "BUSY"
"" "\d"
"" "ate1"
"" "atz"
OK 'at+cgdcont=1,"ip","internet"
OK "atdt*99#"
CONNECT ""
again put together from stuff on the vodafone web site, particularlly
the stuff about connecting palm os kit.
In the line OK 'at+cgdcont=1,"ip","internet" you must make sure that the
name of the connection ie "internet" is the same as the APN in the data
accounts on your phone.
Check this by going to settings, data comm, data accounts, Vodafone
GPRS, edit , apn.
the last thing I had to do was edit my /etc/ppp/options and comment out
the line
lcp-echo-failure 3
I think you may be able to take out the whole options file as much of
this is specified in the irppp script.
I then could run the irppp script, connect and download my mail to the
opie mail client.
I have one question, is there a text baseed browser ala lynx available
for familiar/opie ?.
I understand that the info above is super specific to my set-up and
location, but I hope it may provide useful pointers to others trying to
do the same.
Brian P Casey
Received on Sun Jun 09 15:06:20 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:38:52 EDT