Solution to all these problems
Well guys...i m posting this message in case if any one of you still facing problem in connecting dial-up over mobile-phone.
i hav used this method to successfully connect to my Samsung SGH-P310
phone. i should remind you tht "wvdial" is not able to connect successfully with this phone or some other phone from Samsung and possibly
other Vendors too.
If you still unable to connect , lets keep posting to this thread.
Here is Procedure...................................................
we will create two files[ i assume you are connecting using USB cable]
1. chatscript
2. connection
/////////\\\\\\\\\///////////\\\\\\\\\\\\
$nano chatscript
TIMEOUT 30
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
OK 'AT+CGDCONT=1,"IP","airtelgprs.com"'
OK ATD*99***1#
CONNECT ""
------------------------------------------------------------------------
Remember here:
Access point for my Internet service provider is airtelgprs.com and you should change it to according to your service provider.
Dialing number is *99***1#
you should also change it according to your service provider
=-----------------------------------------------------------------------
$nano connection
debug
nopcomp
noaccomp
nomagic
receive-all
noccp
novj
novjccomp
noauth
connect "/usr/sbin/chat -v -f /etc/ppp/chatscript"
usepeerdns
/dev/ttyACM0 115200
defaultroute
lcp-echo-failure 0
------------------------------------------------------------------------
here ttyACM0 is my mobile modem node.
------------------------------------------------------------------------
//////////\\\\\\\\\\///////////\\\\\\\\\\\\
after creating these two files
#mv connection /etc/ppp/peers
#mv chatscript /etc/ppp
now dial the connection as
#/usr/sbin/pppd call connection
this will dial the connection. you can watch dialing progress through reading log file
#tail -f /var/log/messages
************************************************************************
for easily connecting each time ,make a script, say connectinternet.sh
and put it into /usr/sbin
$nano connectinternet.sh
#!/bin/sh
/usr/sbin/pppd call connection
tail -f /var/log/messages
save the file
$chmod +x connectinternet.sh
#mv connectinternet.sh /usr/sbin
now you have to use only
#connectinternet.sh
and you will be connected.
************************************************************************
hope this post will help somebody. for further clarification you can mail me at parijat.chauhan@aol.in
|