From: matt@proweb.co.uk
To: 9fans@cse.psu.edu
Subject: Re: [9fans] using dvd/rw as WORM drive for venti on USB interface
Date: Mon, 21 Jun 2004 12:25:46 +0100 [thread overview]
Message-ID: <5ac6ec8bdab9695b1b378c1444c48e05@juice.thebigchoice.com> (raw)
In-Reply-To: <4e24f2fa04062017494110b620@mail.gmail.com>
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 = open(datafile1, OREAD);
fdout = 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 protocols of course some decide to use ID=FF which means "we're using our own protocol"
I imagine your mass storage device will use an agreed ID - which is why they just *work* in Windows™
m
next prev parent reply other threads:[~2004-06-21 11:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-21 0:49 Matt Pidd-Cheshire
2004-06-21 6:10 ` vdharani
2004-06-21 11:25 ` matt [this message]
2004-06-23 13:20 Matt Pidd--Cheshire
2004-06-23 13:54 ` matt
2004-06-23 14:14 Matt Pidd--Cheshire
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ac6ec8bdab9695b1b378c1444c48e05@juice.thebigchoice.com \
--to=matt@proweb.co.uk \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).