• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 23, 2024, 02:00:36 pm

News:

SMF - Just Installed!


Read barcode from USB scanner

Started by William, October 11, 2014, 02:27:59 pm

Previous topic - Next topic

William

Hi,
Any solution or example on how to read barcode from connected USB scanner ?


Roman Novgorodov

Hello

Often USB barcode scanner is visible as keyboard HID device and you need read keys as ordinary system messages.
Can you show device model name or URL to device description?

You can try HIDDemo for access to device and read data directly.
Also you can take a look USBIODemo for direct reading usb pipes. But it is not suitable because you need install special usb driver.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

William

Yes the scanner is connected like a keyboard wedge, I will try HIDDemo.

Thanks

William

I opened the HID Demo but I dont know where I should receive the scanner data, please advise



hid1

If scanner device appears as Custom HID device?  not keyboard or mouse

1- Select your device from device combobox
2-Click Activate selected hid device
3- Scan  barcode. Data should present at event logs.

BUT you said
QuoteYes the scanner is connected like a keyboard wedge,


So, This demo cannot show scanner data ! "Activate selected hid device" imposible! from this demo.