Re: USB code, PICDEM FS USB and Linux

Ben Dugan <[email protected]> Tue, 27 Sep 2005 08:33:29 -0400
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
Alessandro Zummo wrote:
> 
>  Hello,
> 
>    I'm working on the USB HID code sent a few days ago
>  by Ben Dugan and I'm trying to modify to do
>  simple input / output using Linux.
> 
>   I've modified the USB descriptor and altered
>  the code to send out 8 ascii chars which I read
>  with a simple perl script
> 
>   I now need to add support for receiving data
>  from the host, but found no examples so far.
> 
>   If anyone could help I'd be happy to share
>  the code.

Alessandro,

I'd be interested in seeing your code when you think its at a "useful" 
stage.  I'm curious what the new descriptor looks like, especially 
whether its still an HID keyboard.

I also wanted to point out something that might be relevent: I remember 
reading that there is no guarantee that the byte ordering (of the bytes 
within an individual HID keyboard packet) will be preserved.  I have 
noticed that it does seem to be preserved, but this is not guaranteed by 
the HID keyboard spec. as I understand it.  So: its probably safer to 
send ordered packets rather than ordered bytes if you're operating 
within the HID keyboard domain (maybe you're not, though!).

Ben