How do you enable INTERRUPT transfers?
Posted: Fri Jan 01, 2010 9:54 am
I'm going bananas trying to figure out what method to use to send info between the host and USB device (honestly this USB spec seems like the most overly complicated way to accomplish the simplest task - Rube Goldberg would shake his head).
I want to make linux host software that will "sit there" forever and spend 99.9% of the time waiting for info from the USB device.
After tons of research, it appears to me that the only reasonable method to do this is using INTERRUPT transfers. My reasons are (correct me if I'm wrong):
-Control transfers would require the host program to st in a loop and waste CPU
-Bulk transfers don't work unless Mercury and Jupiter align *and* Virgo is in the seventh house.
So that only leaves INTERRUPT transfers as a method whee the host will "block" while it waits.
The question then is... How do you tell the AVR firmware that you are using INTERRUPT transfers rather than BULK transfers? I understand this is important so that the firmware tells the host USB controller to use INTERRUPT polling rather than BULK.
I had a look through most of the example projects trying to find one that had host software that "sits there" waiting for information. However they all seem to have host software that just does one "read" and that's it. There were data loggers and the like, where I thought they would be good candidates, but no luck.
Thanks
I want to make linux host software that will "sit there" forever and spend 99.9% of the time waiting for info from the USB device.
After tons of research, it appears to me that the only reasonable method to do this is using INTERRUPT transfers. My reasons are (correct me if I'm wrong):
-Control transfers would require the host program to st in a loop and waste CPU
-Bulk transfers don't work unless Mercury and Jupiter align *and* Virgo is in the seventh house.
So that only leaves INTERRUPT transfers as a method whee the host will "block" while it waits.
The question then is... How do you tell the AVR firmware that you are using INTERRUPT transfers rather than BULK transfers? I understand this is important so that the firmware tells the host USB controller to use INTERRUPT polling rather than BULK.
I had a look through most of the example projects trying to find one that had host software that "sits there" waiting for information. However they all seem to have host software that just does one "read" and that's it. There were data loggers and the like, where I thought they would be good candidates, but no luck.
Thanks