From owner-freebsd-hardware Thu Jul 29 1:46:14 1999 Delivered-To: freebsd-hardware@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id 0BB0114FA8 for ; Thu, 29 Jul 1999 01:46:02 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from kim.ispra.webweaving.org (va-135.skylink.it [194.185.55.135]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id KAA11228; Thu, 29 Jul 1999 10:44:36 +0200 Received: from kim.ispra.webweaving.org (kim.ispra.webweaving.org [10.0.0.2]) by kim.ispra.webweaving.org (8.8.8/8.8.5) with ESMTP id IAA02511; Thu, 29 Jul 1999 08:33:10 GMT X-Passed: MX on Ispra.WebWeaving.org Thu, 29 Jul 1999 08:33:10 GMT and masked X-No-Spam: Neither the receipients nor the senders email address(s) are to be used for Unsolicited (Commercial) Email without the explicit written consent of either party; as a per-message fee is incurred for inbound and outbound traffic to the originator. Posted-Date: Thu, 29 Jul 1999 08:33:10 GMT Date: Thu, 29 Jul 1999 10:33:10 +0200 (CEST) From: Dirk-Willem van Gulik X-Sender: dirkx@kim.ispra.webweaving.org To: USB BSD list Cc: freebsd-hardware@FreeBSD.ORG Subject: Re: [usb-bsd] Re: USB support for Kodak DC240 (umass)? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 29 Jul 1999, Nick Hibma wrote: > The spec is under NDA? If not, could you either tell me where you got it > or send me a copy by mail? Just go to developer at kodak.com and register yourself. After a few days wait you'll have access to the lot. Dw. > Cheers, > > Nick Hibma > > > On Wed, 28 Jul 1999, Oliver Fromme wrote: > > > > > OK, I got the interface specification for the Kodak DC240. > > > > They write that there was no standardized USB protocol for > > digital still cameras when they designed the DC240, so they > > simply use the same protocol for both serial (RS232) and > > USB. > > > > The protocol is pretty well documented, it is a sequence of > > command, data, result and status packets. > > > > I'd be willing to try writing a driver for this, but the > > problem is, I have no clue about USB. I don't know how to > > send a "packet" to an USB device at all. Is there some > > documentation about such basic USB things? Sending data > > to some serial RS232 device is easy, but how do I do that > > to an USB device? > > > > In theory, it would be possible to write a filesystem driver > > for this camera (it has commands to retrieve directory and > > file data from the CompactFlash card, which is basically a > > FAT filesystem). But I think this would not be worth the > > effort. I'd be just happy to have a userland tool that can > > get an "ls" and the actual JPEG images from the camera. > > > > Regards > > Oliver > > > > PS: This camera is just great, I love it! > > > > > > > # usbdevs -v > > > Controller /dev/usb0: > > > addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 addr 2: self powered, config 1, KODAK DC240 Zoom Digital Camera(0x0120), Eastman Kodak Company(0x040a), rev 1.03 > > > port 2 powered > > > > > > # ./usb_dump -c 1 -i -f /dev/ugen0 > > > Product: KODAK DC240 Zoom Digital Camera > > > Vendor: Eastman Kodak Company > > > address 2 > > > > > > # ./usb_dump -c 1 -d -f /dev/ugen0 > > > DEVICE descriptor: > > > bLength=18 bDescriptorType=1 bcdUSB=1.00 bDeviceClass=0 bDeviceSubClass=0 > > > bDeviceProtocol=0 bMaxPacketSize=8 > > > idVendor=0x040a idProduct=0x0120 bcdDevice=103 > > > iManufacturer=1 iProduct=2 iSerialNumber=0 bNumConfigurations=1 > > > > > > CONFIGURATION descriptor: > > > bLength=9 bDescriptorType=2 wTotalLength=32 bNumInterface=1 > > > bConfigurationValue=1 iConfiguration=0 bmAttributes=40 bMaxPower=100 mA > > > > > > INTERFACE descriptor index 0: > > > bLength=9 bDescriptorType=4 bInterfaceNumber=0 bAlternateSetting=0 > > > bNumEndpoints=2 bInterfaceClass=0 bInterfaceSubClass=0 > > > bInterfaceProtocol=0 iInterface=0 > > > > > > ENDPOINT descriptor index 0: > > > bLength=7 bDescriptorType=5 bEndpointAddress=1-out > > > bmAttributes=2 wMaxPacketSize=64 bInterval=0 > > > > > > ENDPOINT descriptor index 1: > > > bLength=7 bDescriptorType=5 bEndpointAddress=2-in > > > bmAttributes=2 wMaxPacketSize=64 bInterval=0 > > > > > > # ./usb_dump -c 1 -D -f /dev/ugen0 > > > DEVICE descriptor: > > > bLength=18 bDescriptorType=1 bcdUSB=1.00 bDeviceClass=0 bDeviceSubClass=0 > > > bDeviceProtocol=0 bMaxPacketSize=8 > > > idVendor=0x040a idProduct=0x0120 bcdDevice=103 > > > iManufacturer=1 iProduct=2 iSerialNumber=0 bNumConfigurations=1 > > > > > > Current configuration is number 1 > > > > > > CONFIGURATION descriptor index 0: > > > bLength=9 bDescriptorType=2 wTotalLength=32 bNumInterface=1 > > > bConfigurationValue=1 iConfiguration=0 bmAttributes=40 bMaxPower=100 mA > > > > > > INTERFACE descriptor index 0, alt index 0: > > > bLength=9 bDescriptorType=4 bInterfaceNumber=0 bAlternateSetting=0 > > > bNumEndpoints=2 bInterfaceClass=0 bInterfaceSubClass=0 > > > bInterfaceProtocol=0 iInterface=0 > > > > > > ENDPOINT descriptor index 0: > > > bLength=7 bDescriptorType=5 bEndpointAddress=1-out > > > bmAttributes=2 wMaxPacketSize=64 bInterval=0 > > > > > > ENDPOINT descriptor index 1: > > > bLength=7 bDescriptorType=5 bEndpointAddress=2-in > > > bmAttributes=2 wMaxPacketSize=64 bInterval=0 > > > > -- > > Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany > > (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) > > > > "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" > > (Terry Pratchett) > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hardware" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message