[PD-dev] making a libusb object (expanding on [hid] toolkit)
Christian Klippel
ck at mamalala.de
Fri Jan 20 17:52:25 CET 2006
hello hans and all,
Am Freitag 20 Januar 2006 17:38 schrieb Hans-Christoph Steiner:
> Yes, serial and USBserial are close enough to have the same object.
> But the MultIO uses HID, right? Is the libusb interface to MultIO
> USBserial?
>
> .hc
>
about sending usb stuff .....
first, regardless if you send stuff as hid, serial or generic format, the raw
data packets that get sent are always the same (in the case of the multio).
hid just means it gets some extra descriptors during enumeration, that makes
the host understand it as hid device. same for serial devices. if you use the
cdc class descriptors, the host will see it as serial interface, while the
data you send/receive on the side of the microcontroller is still the same.
now, for the multio in special:
the old (=current) firmware defaults to hid all the time, and can be set to
non-hid afterwards by issuing the usb command to select the right
configuration of that device. this was a bad idea as i found out: some
systems claim the multio in hid mode and block it for access by other apps.
the new (=future) firmware, that im working on right now, will have 3 modes:
usb-hid, usb-cdc (to enumerate it as normal serial port), and finally the
generic raw mode for direct access by libusb. furthermore, the box will
remember the last choosen config and defaults to that each time the unit is
powered on or connected tot he usb bus.
i think that by also implementing the usb-cdc class, it should be even more
easy to access the multio. i mean, hey: hid, serial or generic: im sure that
this way any computer with usb can talk to it "out of the box".
greetings,
chris
More information about the Pd-dev
mailing list