From owner-freebsd-usb@FreeBSD.ORG Thu Apr 12 07:43:59 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C423716A407 for ; Thu, 12 Apr 2007 07:43:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6483D13C4B8 for ; Thu, 12 Apr 2007 07:43:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 293338035; Thu, 12 Apr 2007 09:43:57 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 12 Apr 2007 09:43:36 +0200 User-Agent: KMail/1.9.5 References: <437e81e00704112329h634c0b22y782f32214054b4f@mail.gmail.com> In-Reply-To: <437e81e00704112329h634c0b22y782f32214054b4f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704120943.36931.hselasky@c2i.net> Cc: "Z3tbl4 \[\]" Subject: Re: FBSD 6.0 UGEN 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, 12 Apr 2007 07:43:59 -0000 On Thursday 12 April 2007 08:29, Z3tbl4 [] wrote: > Greetings everyone! > Could someone ,please, advice me a solution to solve such problem- > i have an usb device, which is present in my FBSD 6.0 as /dev/ugen0 > and /dev/ugen0.1 > i need to send to this device 5 bytes and read from it 3 bytes but i'm > not good in usb protocol and i don't get a right result . here is my > test code in C. > Thank you. There are many ways to write data to an USB device. Do you have the documentation for your USB device? And what does it say? What endpoint should be used? [control, bulk or isochronous] --HPS