Re: Entirely polled V-USB? [yes, it works!]
Posted: Sun Dec 01, 2013 1:53 am
I made a version of micronucleus only using polling, based on your work above. You can find the branch here:
https://github.com/micronucleus/micronu ... g/firmware
Getting the polling to work with larger datatransfers as well was not easy. Finding the right timing to call usbPoll() in between transmissions was quite difficult. I had no luck with a blocking wait, so in the end i settled with a 100µs loop and calls to the housekeeping functions in between. The current state seems to work pretty reliably on my machine, even when routed through two cascaded hubs. But even slight changes in the loop timing will cause errors during data transfer.
https://github.com/micronucleus/micronu ... g/firmware
Getting the polling to work with larger datatransfers as well was not easy. Finding the right timing to call usbPoll() in between transmissions was quite difficult. I had no luck with a blocking wait, so in the end i settled with a 100µs loop and calls to the housekeeping functions in between. The current state seems to work pretty reliably on my machine, even when routed through two cascaded hubs. But even slight changes in the loop timing will cause errors during data transfer.