[PD-dev] making a libusb object (expanding on [hid] toolkit)
Hans-Christoph Steiner
hans at eds.org
Sat Jan 21 06:58:35 CET 2006
On Jan 20, 2006, at 11:52 AM, Christian Klippel wrote:
> 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".
Sounds like you are covering all possibilities. So for a usb-cdc
device, is that the same as a tty? I.e., could you use [comport] to
access a usb-cdc device?
.hc
>
> greetings,
>
> chris
>
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>
________________________________________________________________________
____
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously.
- Benjamin Franklin
More information about the Pd-dev
mailing list