Author Topic: Read barcode from USB scanner  (Read 745 times)

William

  • Newbie
  • *
  • Posts: 5
    • View Profile
Read barcode from USB scanner
« on: October 11, 2014, 05:27:59 pm »
Hi,
Any solution or example on how to read barcode from connected USB scanner ?


Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Read barcode from USB scanner
« Reply #1 on: October 12, 2014, 10:43:36 am »
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

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Read barcode from USB scanner
« Reply #2 on: October 12, 2014, 04:16:25 pm »
Yes the scanner is connected like a keyboard wedge, I will try HIDDemo.

Thanks

William

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Read barcode from USB scanner
« Reply #3 on: October 12, 2014, 06:11:49 pm »
I opened the HID Demo but I dont know where I should receive the scanner data, please advise


William

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Read barcode from USB scanner
« Reply #4 on: October 14, 2014, 11:10:05 pm »
advise please

hid1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Read barcode from USB scanner
« Reply #5 on: October 20, 2014, 09:21:45 am »
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
Quote
Yes the scanner is connected like a keyboard wedge,

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



William

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Read barcode from USB scanner
« Reply #6 on: October 20, 2014, 09:32:39 pm »
thanks hid1