Subject: Re: Problem with uplcom+pppd
To: None <netbsd-help@netbsd.org>
From: Mateus Caruccio <mateus.caruccio@gmail.com>
List: netbsd-help
Date: 03/13/2006 22:56:33
On 13 Mar 2006 20:03:52 -0500, Greg Troxel <gdt@ir.bbn.com> wrote:
> It might help to post the dmesg output from attaching the prolific
> device.  I have some usb/serial converters, and some are revision 2
> and work and some are revision 3 and do not (but I have not tried
> lately).  The new chip is slightly different.  I tried to read a Linux
> driver to figure out what to add but didn't succeed quickly and set it
> aside.  But, if you can see responses to AT commands, I suspect this
> isn't your problem.  Do the replies come promptly?
>
>

some time AT commands don' t come or come later, on the next read from tty.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
here is dmesg:

uplcom0: at uhub1 port 4 (addr 3) disconnected
ucom0 detached
uplcom0 detached
uplcom0 at uhub1 port 4
uplcom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, add=
r 3
ucom0 at uplcom0

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
here is output from pppd:

$ sudo pppd call vivo
send (ATZ^M)
expect (OK)
^CSIGINT
Connect script failed
^[[A
soft@caruccio ~/svn/NetMetric$ sudo pppd call vivo
send (ATZ^M)
expect (OK)
TZ^M^M
OK
 -- got it

send (AT+MODE=3D0^M)
expect (OK)
^M
AT+MODE=3D0^M^M
OK
 -- got it

send (ATD#777^M)
expect (CONNECT)
^M
ATD#777^M^M
CONNECT
 -- got it

send (^M)
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/ttyU0
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
sent [LCP ConfReq id=3D0x1 <asyncmap 0x0> <magic 0x94ba945b> <pcomp> <accom=
p>]
LCP: timeout sending Config-Requests

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ sudo cat /etc/ppp/peers/vivo
/dev/ttyU0 19200
connect '/usr/sbin/chat -v -S -s -f /etc/ppp/vivo.chat'
noauth
nocrtscts
nodetach
defaultroute
usepeerdns
debug
passive
persist
noipdefault
user **********@vivozap.com.br
password ********
lcp-echo-interval 60
lcp-echo-failure 2

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ cat /etc/ppp/vivo.chat
""                       ATZ
OK                    AT+MODE=3D0
OK                    ATD#777
CONNECT        ""


>
> --
>         Greg Troxel <gdt@ir.bbn.com>
>


--
# ###########################################
# Mateus de Oliveira Caruccio <mateus.caruccio at gmail dot com>
# Linux User #183552 - ICQ #37364320
# In order to understand recursion you must first understand recursion.