From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 11:26:52 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37916106564A for ; Mon, 4 Oct 2010 11:26:52 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id BFB2A8FC08 for ; Mon, 4 Oct 2010 11:26:51 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id CADFE2A28CC4; Mon, 4 Oct 2010 13:26:50 +0200 (CEST) Date: Mon, 4 Oct 2010 13:26:50 +0200 From: Ed Schouten To: Hans Petter Selasky Message-ID: <20101004112650.GF77154@hoeg.nl> References: <20101004100641.GA3403@bsdjail.com> <201010041308.28424.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xaMk4Io5JJdpkLEb" Content-Disposition: inline In-Reply-To: <201010041308.28424.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Ruslan Bukin , freebsd-usb@freebsd.org Subject: Re: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:26:52 -0000 --xaMk4Io5JJdpkLEb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ruslan, * Hans Petter Selasky wrote: > This is not directly related to USB, but rather TTY. >=20 > Ed, any clues? >=20 > --HPS >=20 > On Monday 04 October 2010 12:06:41 Ruslan Bukin wrote: > > Hi! > >=20 > > I am using u3g driver for Gobi 2000 QDL device. > > The open ("/dev/ttyU0", O_RDWR) does not return anything, > > But it returns immediately with only O_NONBLOCK or O_NDELAY flags. > >=20 > > is it normal behavior or not? > >=20 > > The device is answering for commands normally in non-block state, > > but only returns error when I try to write firmware to it. > >=20 > > I think may be the problem is in block/non-block modes. What kind of cable do you have connected to it? Does it have the carried detect (DCD) line properly wired up? If not, the behaviour should be okay, since CLOCAL is turned off by default. If you're not interested in any carrier, you should open it with O_NONBLOCK. --=20 Ed Schouten WWW: http://80386.nl/ --xaMk4Io5JJdpkLEb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkypufoACgkQ52SDGA2eCwU8swCfR/EvQEXzef2z40PBVJQW7eJ7 0gMAn1VGEldrpcJRZjtdfMvV8HqRuP2m =H1k3 -----END PGP SIGNATURE----- --xaMk4Io5JJdpkLEb--