From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5ac6ec8bdab9695b1b378c1444c48e05@juice.thebigchoice.com> From: matt@proweb.co.uk Date: Mon, 21 Jun 2004 12:25:46 +0100 To: 9fans@cse.psu.edu Subject: Re: [9fans] using dvd/rw as WORM drive for venti on USB interface In-Reply-To: <4e24f2fa04062017494110b620@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: a87ef2ec-eacd-11e9-9e20-41e7f4b1d025 run usb/usbd you can then see which USB datafiles appear in /dev ls -d /dev/usb* then write a program that includes this : sprint(datafile1, "/dev/usb%d/%d/ep1data", usbport, usbchannel); sprint(datafile2, "/dev/usb%d/%d/ep2data", usbport, usbchannel); fdin =3D open(datafile1, OREAD); fdout =3D open(datafile2, OWRITE); free(datafile1); free(datafile2); as to what you need to read and write - good luck ! when usb/usbd is run it collects the device type ID from the device, the = ID is an agreeement about the protocol : certain ID's have published prot= ocols of course some decide to use ID=3DFF which means "we're using our = own protocol" I imagine your mass storage device will use an agreed ID - which is why t= hey just *work* in Windows=E2=84=A2 m