From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 8 07:19:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BCA137B401 for ; Sun, 8 Jun 2003 07:19:05 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2467043FBF for ; Sun, 8 Jun 2003 07:19:04 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id CB6A4A80F; Mon, 9 Jun 2003 00:19:01 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 8886F5430 for ; Mon, 9 Jun 2003 00:19:01 +1000 (EST) Date: Mon, 9 Jun 2003 00:19:01 +1000 (EST) From: Andrew To: freebsd-hackers@freebsd.org Message-ID: <20030608235915.P49788-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: ugen example X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 14:19:05 -0000 Hi, I'm just having a look at ugen, trying to see if I can get any action out of a USB-serial converter that has no existing driver. This is my first foray into the USB world so I apologise for any stupid questions...is there a good tutorial somewhere? To find my device I open /dev/ugen? and call ioctl(USB_GET_DEVICE_DESC). I look at the returned idVendor and idProduct and check them against my hard coded figures. From what I can see from usbdevs only the last 2 bytes are significant? usbdevs produces 0x0743 for the vendor but I get 0x20743. When I work out what end point I need to talk to I thought opened /dev/ugen?.? but I only have a /dev/ugen? device (I'm using -CURRENT and devfs). I'm guessing I'm on the track here so I wouldn't mind a pointer to an example or some documentation. Thanks for any help, Andrew