|
|
|
|
|
by pilif
1153 days ago
|
|
Reminds me when I had to read barcodes from a USB-connected barcode scanner on a Mac. The manufacturer supplied a closed-source library which only supported PPC code and they told me that they lost the source code, so I couldn't easily add intel support. In the end I sniffed the USB protocol of the windows driver and was delighted to see how they abused the control endpoint rather than setting up proper data endpoints. I was so happy when my Mac application was able to talk to the scanner and, compared to windows, completely without any driver installation thanks to user-space IOKit on macOS. Writing software to make hardware beep is even more fun than writing software that doesn't involve hardware making noise. |
|
Once read, it would send the barcode number as keyboard commands. It was a very tactile experience.