Subject: uplcom(4) problem [Re: CVS commit: src/sys/dev/usb]
To: Martin Husemann <martin@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-kern
Date: 09/25/2005 08:14:52
--MW5yreqqjyrRcusr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Sat, Aug 13, 2005 at 09:50:45PM +0000, Martin Husemann wrote:
>=20
> Module Name:	src
> Committed By:	martin
> Date:		Sat Aug 13 21:50:45 UTC 2005
>=20
> Modified Files:
> 	src/sys/dev/usb: uplcom.c
>=20
> Log Message:
> Back out the "it is not completely clear" part of revision 1.37 - it
> effectively swapped RTS and DTR, apparently on all versions of the chip.
> This fixes PR kern/30685.

fwiw, this change broke my usb->serial adapter i use with my Nokia
DLR-3P cable (i didn't notice earlier since i didn't need to use gprs
for some time).  the chat script just sits there, waiting for a reply
from the phone:

 pppd[564]: pppd 2.4.3 started by salo, uid 1000
 chat[534]: timeout set to 45 seconds
 chat[534]: abort on (BUSY)
 chat[534]: abort on (NO CARRIER)
 chat[534]: abort on (ERROR)
 chat[534]: send (ATE1^M)
 chat[534]: expect (OK)

reverting the revision 1.45 makes it work again:

 pppd[2590]: pppd 2.4.3 started by salo, uid 1000
 chat[1638]: timeout set to 45 seconds
 chat[1638]: abort on (BUSY)
 chat[1638]: abort on (NO CARRIER)
 chat[1638]: abort on (ERROR)
 chat[1638]: send (ATE1^M)
 chat[1638]: expect (OK)
 chat[1638]: <^G8^?^?^?^?`^?^?}ATE1^M^M
 chat[1638]: OK
 chat[1638]:  -- got it=20
 chat[1638]: send (AT+CGDCONT=3D1,"IP","internet.t-mobile.cz"^M)
 chat[1638]: expect (OK)
 chat[1638]: ^M
 chat[1638]: AT+CGDCONT=3D1,"IP","internet.t-mobile.cz"^M^M
 chat[1638]: OK
 chat[1638]:  -- got it=20
 chat[1638]: send (ATD*99***1#^M)
 chat[1638]: expect (CONNECT)
 chat[1638]: ^M
 chat[1638]: ATD*99***1#^M^M
 chat[1638]: CONNECT
 chat[1638]:  -- got it=20
 chat[1638]: send (\d)
 pppd[2590]: Serial connection established.

the adapter in question is:

 uplcom0 at uhub1 port 1
 uplcom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), r=
ev 1.10/2.02, addr 2
 ucom0 at uplcom0

i haven't tested the adapter with anything else (e.g., serial console).


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

--MW5yreqqjyrRcusr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFDNkBciwjDDlS8cmMRAp4GAJ9Fmz929OWjNs49+zINhgnibXKYYQCcCRl9
8rLW18q8qTl93QlemwowGdM=
=J/p/
-----END PGP SIGNATURE-----

--MW5yreqqjyrRcusr--