I have not worked on GPRS modem, but as per basic modem knowledge, 
 
first u need to confirm that connection is established or not,
and than script, its better once run commands manually
and OK, CONNECT all those are not AT commands for the modem, those are the
responses from the modem,
so ur script should not contain OK, CONNECT etc,
 
try commands by sending to the modem
-------------------------
AT command
Command : AT [CR]    
Response : OK
-------------------------
Reset command
Command : ATZ[CR]    
Response : OK
-------------------------
Setting parameters
AT+CGDCONT=1,"IP","claro.com.br" [CR]    
Response : OK
------------------------- 
Dial  command
ATDT*99***1#
Response : CONNECT
-------------------------
After all these successfull commands, run pppd applications, And check
whether ttyS1 is connected to modem, 
pppd ttyS1 115200 noauth defaultroute noipdefault local connect "/bin/chat
-f /var/tmp/chat_script"
 
-Steven
 
 -----Original Message-----
From: Roger Feltrin Escanhola [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 26, 2007 2:30 AM
To: [email protected]
Subject: [uClinux-dev] Connecting GPRS using PPP


 
Hi,
 
I am trying to establish a GPRS connection using PPP in uClinux. I'm using a
Freescale M5208EVB (Coldfire) and my modem is a Siemens TC65 terminal. I
searched in internet and I found a good document teaching how to do this
(this is the link to the document
http://mailman.uclinux.org/pipermail/uclinux-dev/2004-August/027637.html) it
helped me to take the first steps but I am having problems to connect GPRS.
I used the com1 of my evaluation board connected to my desktop and the com2
connected to the modem. So I made a new kernel image with 'tip' to use in
uClinux as a terminal to send commands to the modem and it worked fine (I
could send AT commands to the modem and I received the answers). My problem
appears when I try the following command:
 
 pppd ttyS1 115200 noauth defaultroute noipdefault local connect "/bin/chat
-f /var/tmp/chat_script"
the chat_script file has the following commands
"" ATZ OK AT+CGDCONT=1,"IP","claro.com.br" OK ATD*99***1# CONNECT
This command seems has no effect on modem. So I tried to test the 'chat' to
see if it was working properly. I tried to commands:
 
/>exec /bin/chat -v '' AT OK ATDT*99***1# CONNECT ''
AT
 
This first command just writes AT on screen and after timeout (about 30
sec.) the shell prompt returns and it has no affect on modem. So I tried:
 
/> exec /bin/chat -v '' AT^SMSO ''
ATMSO
Sash command shell (version 1.1.1)
 
The answer to this command is the second and the third line. This command
should turn the modem off, but it doesn't happen (AT^SMSO works if I send
the command from 'tip'), so I believe the problem is the chat program.
 
Does anybody has any suggestion? Am I using wrong command? Is there another
way to connect ppp without using chat?
 
Thanks
Roger
 
 
 
 
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to