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
