obra’s avatarobra’s Twitter Archive—№ 46,143

  1. USB hacking folks: I'm at the point* where I really ought to have a test suite to exercise weird corners of our HID implementation. What's the current state of the art for scripting USB device interaction from a host from init? I only need full speed. *I am well past that point
    1. …in reply to @obra
      Controlling suspend is nice-to-have. I'd *really* like to be able to run this from macOS and Linux, but am willing to use hardware if necessary. Ideally, I'd catch the USB device *before* the host starts negotiating with it.
      1. …in reply to @obra
        Is pyUSB the right thing? Can anyone point me at an example of a protocol-level test suite for a USB device? I sort of assume that the right answer is "Oh, @ktemkin built Xyzlib in an evening. Everyone just uses it. It's amazing. How are you not using it?"