From owner-freebsd-usb@FreeBSD.ORG Thu Jan 10 15:37:34 2008 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 61FC716A420 for ; Thu, 10 Jan 2008 15:37:34 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id EC26E13C461 for ; Thu, 10 Jan 2008 15:37:33 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 765108745; Thu, 10 Jan 2008 16:37:31 +0100 From: Hans Petter Selasky To: perryh@pluto.rain.com Date: Thu, 10 Jan 2008 16:38:19 +0100 User-Agent: KMail/1.9.7 References: <477a00ea.73gFojnRSqtUufCO%perryh@pluto.rain.com> <200801091945.18256.hselasky@c2i.net> <4785dec5.qxgU3WUBgrj+jYS7%perryh@pluto.rain.com> In-Reply-To: <4785dec5.qxgU3WUBgrj+jYS7%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801101638.19620.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: ZyXEL Omni 56K Plus USB/serial modem 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: Thu, 10 Jan 2008 15:37:34 -0000 On Thursday 10 January 2008, perryh@pluto.rain.com wrote: > > To me it looks like they are using some kind of propritary > > protocol. You could try and see if any of the endpoints, > > which appear like /dev/ugen0.x files respond with "OK" when > > you send "AT\r\n" to the endpoint ... > > How would I go about doing that? tip(1), or something else? > (In case it is not obvious, I am not all that familiar with > the USB support in FreeBSD.) Hi, I think the best will be to write a small C-program: Here is the basic: if (argc < 2) { err(1, "Usage: ./a.out /dev/ugen0.1"); } f = open(argv[1], O_RDWR); if (f < 0) { err(1, "Cannot open '%s'", argv[1]); } /* allow short transfers */ error = 1; error = ioctl(f, USB_SET_SHORT_XFER, &error); if (error < 0) { err(1, "Cannot set short XFER\n"); } error = 1000; error = ioctl(f, USB_SET_TIMEOUT, &error); if (error < 0) { err(1, "Cannot set timeout"); } error = write(f,"AT\r\n", sizeof("AT\r\n")-1); while (1) { error = read(f,buf,1); printf("%c", buf[0]); } You have to modify the above before it compiles. --HPS