hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

hid_write for barcode scanner

Open flaz83 opened this issue 6 years ago • 1 comments

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 avatar Nov 21 '17 13:11 flaz83

@flaz83 can you show the code you use to detect and read the barcode?

aberba avatar Nov 16 '20 22:11 aberba