1 / 5

USB Card Scanner Driver

Patrick Tully Steven Bronson. USB Card Scanner Driver. Motivation. Monitors in Majors Lab scan FSU cards using a USB card reader USB card reader generates keystrokes Program must have focus at all times, in the correct textbox. Pre-existing Projects. Read from /dev/usb/hiddev

eyal
Télécharger la présentation

USB Card Scanner Driver

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Patrick Tully Steven Bronson USB Card Scanner Driver

  2. Motivation • Monitors in Majors Lab scan FSU cards using a USB card reader • USB card reader generates keystrokes • Program must have focus at all times, in the correct textbox

  3. Pre-existing Projects • Read from /dev/usb/hiddev • Only works for the USB HID card scanner • Write a userspace program using libusb or PyUSB • Requires root privileges each time • Depends on deprecated (obsolete?) usbfs

  4. Contribution • Used a small part (boilerplate) of the usbkbd driver as a starting point. • Most of the work went into implementing read, which did not exist in usbkbd. • Create /dev/cardscanner that can be opened and read.

  5. Challenges • USB probe order • Determined by module insertion order • Fixed with USB quirks • Kernel circular buffer implementation is not really • Record API makes more sense, but Unix loves byte streams (why pass records when you can design ambiguous grammars?)

More Related