Well, I've no idea if this would work with USB, as I've not worked with USB yet - but on some code I did for the LANC port control of Sony video cameras, I just have a short loop that tests for any activity at all on the LANC line - if no activity, I'd skip off to some other section of the code.