hidapi
hidapi copied to clipboard
hid_write for barcode scanner
Good morning. I'm using this library to read scanned barcoded. It works well. Now I need to make a "beep" with the barcode if my application find out the scanned barcode is correct. I'm trying to use hid_write but I can't understand how to use it. I tryed the library with the keyboard and writing 0x00, 0x81 I can turn on the caps lock led. How can I make a sound with a barcode? I've already read the usb documentation and specification and this is what I find out: http://kb.newland-id.com/index.php?n=USB.USB
Thanks a lot, Flavio
@flaz83 can you show the code you use to detect and read the barcode?