Thanks again David for your help.

As I said, I used to connect it in Linux, so I got your config files and
just adapted to my config. But I'm receving a modem Hangup.
Here is my log:
Mar 16 12:06:03 pppd[24222]: pppd 2.3.5 started by root, uid 0
Mar 16 12:06:06 pppd[24222]: Serial connection established.
Mar 16 12:06:07 pppd[24222]: Using interface ppp0
Mar 16 12:06:07 pppd[24222]: Connect: ppp0 <--> /dev/cuaU3
Mar 16 12:06:07 pppd[24222]: sent [LCP ConfReq id=0x1 <magic 0xc2a72929>
<pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ConfReq id=0xc <asyncmap 0x0> <auth
chap 05> <magic 0xb5a3152a> <pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: sent [LCP ConfRej id=0xc <auth chap 05>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ConfAck id=0x1 <magic 0xc2a72929>
<pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ConfReq id=0xd <asyncmap 0x0> <magic
0xb5a3152a> <pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: sent [LCP ConfAck id=0xd <asyncmap 0x0> <magic
0xb5a3152a> <pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: sent [IPCP ConfReq id=0x1 <addr 200.137.64.23>
<compress VJ 0f 01>]
Mar 16 12:06:07 pppd[24222]: sent [CCP ConfReq id=0x1 <deflate 15>
<deflate(old#) 15> <bsd v1 15>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP DiscReq id=0xe magic=0xb5a3152a]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ProtRej id=0xf 80 fd 01 01 00 0f 1a
04 78 00 18 04 78 00 15 03 2f]
Mar 16 12:06:08 pppd[24222]: rcvd [IPCP ConfNak id=0x1 <ms-dns 10.11.12.13>
<ms-dns 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Mar 16 12:06:08 pppd[24222]: sent [IPCP ConfReq id=0x2 <addr 200.137.64.23>
<compress VJ 0f 01>]
Mar 16 12:06:08 pppd[24222]: Modem hangup
Mar 16 12:06:08 pppd[24222]: Connection terminated.
Mar 16 12:06:10 pppd: Exit.

My config file:
/dev/cuaU3
debug
crtscts
460800
defaultroute
noauth
:10.64.64.64
connect '/usr/sbin/chat -v -f /etc/ppp/peers/tim.chat'

And my chat config file:
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
ABORT "Username/Password Incorrect"
TIMEOUT 15
"" "ATZ"
OK "ATZ"
OK 'AT+CGDCONT=1, "ip","tim.br"'
TIMEOUT 15
OK "ATDT*99***1#"
TIMEOUT 30
CONNECT \d\c

I had to add a TIMEOUT before ATDT. Else I get an ERROR. My chat commands
are just like in Linux (wvdial). I think the difference is that there I use
a username and password. I don't know how to set this in ppp.

Here is my wvdial.conf:
[Dialer Defaults]
Init2 = ATZ
Init3 = AT+CGDCONT=1, "ip","tim.br"
Init4 = AT+CSQ
Stupid Mode = 1
ISDN = 0
Phone = *99***1#
Ask Password = 0
Modem = /dev/ttyUSB3
Username = tim
Dial Command = ATDT
Password = tim
Baud = 460800
New PPPD = yes
Auto DNS = 0

Any ideas what could be the problem?

Thanks again.

2011/3/16 David Coppa <dco...@gmail.com>

> On Wed, Mar 16, 2011 at 2:40 PM, Sergio Charpinel Jr.
> <sergiocharpi...@gmail.com> wrote:
> > Hi,
> > I think it worked. Here is my dmesg now;
>
> Yes, It's working.
>
> > The problem now is to configure ppp. Just one more quention.
> > When I run:
> > # cu -l /dev/ttyU0
> > Connected
> > And it freezes until I kill the proccess. Is it normal?
>
> You need to find the correct port for ppp (the one that accepts AT
> commands).
> Try with ttyU2 or ttyU3 and check if it accepts some simple AT
> commands, like "ATZ"
>
> I've already explained this stuff to another user in the past. Please,
> read:
>
> http://marc.info/?l=openbsd-misc&m=128816834527997
>
> Ciao
> david
>



-- 
Sergio Roberto Charpinel Jr.

Reply via email to