One nice thing about the Mac (as opposed to Windows) is that you don't
necessarily need a "driver". You only need a driver if you need to
arbitrate between several client applications talking to the same
device (and the driver will probably actually be a daemon of some
sort).
You can talk to USB devices directly from a user-mode application.
It's worth looking at the sample code here:
It really is quite straightforward! You register a notification
callback for your device (this will tell you when it is attached).
Once it is attached you open a connection to it and read and write from
any endpoint. The sample code above is maybe slightly more complicated
than necessary as it registers for a "raw" device, downloads firmware
to it and then brings it up as a "programmed" device. If your device
has firmware in an EEPROM or similar, the code gets much simpler.
Cheers,
Steve.
On 7 Feb 2005, at 4:04, Stephen Bannasch wrote:
I looking to re-engineer a small datacollection interface that
currently uses a serial port to use a usb port. I've looked at the
the chips from http://www.ftdichip.com/ and was wondering if people on
this list have other suggestions.
Cypress supplies a usb reference design but does not supply macos
drivers.
I'm looking at an initial manufacturing run of 1500 and I'd like to
supply drivers for macosx, windows, and linux. Basic emulation of a
serial port is all I need. I would like to be able to power the
device and charge a battery while it is plugged in but I assume this
has no relationship to the driver.
Nobody here has programmed a usb driver which is why I'm looking for
an external solution. But if you think that this is a relatively
straightforward programming task let me know.
If anybody knows of a better list to ask this questions on please let
me know.
Thanks
--
Stephen Bannasch
Director of Technology, Concord Consortium
10 Concord Crossing, Suite 300, Concord, MA 01742
direct: 978 371 3477, fax: 978 371 0696, main: 978 369 4367
http://www.concord.orgmailto:email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden
Steve Baxter
Software Development Manager
Improvision
+44-2476-692229
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden