Hi Erwin,

Thanks for helping.
You were right; I was using the chat in a wrong way.
Today I made some new tests and I saw that it worked fine.

I used the following command to test:
pppd ttyS1 115200 noauth defaultroute noipdefault local connect
"/bin/chat -t 2 -f /var/tmp/chat_script"
and in the chat_script file I used:
'' AT+CGDCONT=1,"IP","claro.com.br" OK ATD*99***1# CONNECT

I am sure that the modem is receiving the command from the file
(chat_script) but it doesn't connect GPRS. I believe the problem is the
authentication process; I need to send the username e the password to
establish this connection but I don't know how to do this. Any
suggestion?

I tried the following command:
pppd ttyS1 115200 auth user claro password claro defaultroute
noipdefault local connect "/bin/chat -t10 -f /var/tmp/chat_script"


and I got the error message:
pppd version 2.3.8
Usage: pppd [ options ]
See pppd(8) for more options.
pppd: unrecognized option 'password'
pppd version 2.3.8
Usage: pppd [ options ]
See pppd(8) for more options

I also tried to compile a new kernel image to have the syslog and to see
what is happing during the connecting, but I don't know how I can have
this file. Where can I set an option to create this syslog file? In
which folder it will be created?

Thanks,
Roger

-----Mensagem original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Em nome de Erwin Authried
Enviada em: quinta-feira, 26 de abril de 2007 08:24
Para: uClinux development list
Assunto: Re: [uClinux-dev] Connecting GPRS using PPP

Am Mittwoch, den 25.04.2007, 17:59 -0300 schrieb Roger Feltrin
Escanhola:
>  
> 
> 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?
> 
Hi,
chat works just fine. Your way of testing seems wrong, however. If you
invoke chat from the commandline, it will use the stdio, not the modem
device. It is possible to let "chat" write to the syslog to see what's
going on.

Regards,
Erwin



_______________________________________________
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

_______________________________________________
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