~/talk

Linux USB HID Interfacing in Userspace

Talkat RustFest 2016 · 2016-09-17..09-18· [rust, web-platform]
slides:none on file

Builds a userspace driver in Rust using mio that reads the hidraw device and a UDP OSC socket and emits MIDI and OSC; reconstructs LED and screen commands by fuzzing and by sniffing USB via usbmon and Wireshark from a Windows VM; decodes button bitmaps with an XOR plus trailing-zero loop, filters pressure pads to implement threshold and aftertouch, keeps only one unsafe block, and hits a 15–25 ms added latency when upgrading mio that forces further investigation.

AI-written summary · about

  1. 0:00Introduction
  2. 4:05Reverse Engineer
  3. 7:22Wireshark
  4. 8:56Driver
  5. 12:38Program
  6. 14:48Unsafe Code
  7. 15:33Latency
  8. 18:47Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.