I have a database of Parts including Part#,Bin_Location,Description. I have a process requirement to "RECEIVE" part which involves 1. Scan part bar code with a hand-held scanner. 2. Print label with "PartNo,Description, BIN_Location. Has anyone encountered an off the shelf solution that would meet this requirement ?
2 Answers
I'm using Motorola Scanner Software Developer Kit (SDK) in my current application. The Motorola Scanner Software Developer Kit for Windows defines an architectural framework providing a single programming interface across multiple programming languages (such as MS .NET, C++, Java) for all scanners communication variants (such as IBMHID, SNAPI, HIDKB, Nixdorf Mode B, etc.).

- 4,773
- 8
- 53
- 91
Most barcode scanners have a keyboard emulation mode, which will allow scanning to be read directly into a field in your GUI.
[...] the barcode scanner is recognized by the PC as a second keyboard device and when you scan a barcode, all barcode data goes into the PC just as if it were being typed in on a keyboard. Just like a standard keyboard wedge scanner, no additional software is needed. Windows will automatically recognize the scanner and treat it as if it were a second keyboard connected to your PC. [taltech.com]
On the other hand, if you decide to code directly against the hardware, RS232 and USB/HID are fairly common but generally involve much more coding.
In regards to printing the barcode, if you are ok with raw printing, you can write directly to a label printer with plain text using a language such as ZPL. Since you didn't mention the language you are using, here's examples in:
- CMD https://stackoverflow.com/a/6296182/3196753
- Java https://stackoverflow.com/a/9309845/3196753
- .NET https://stackoverflow.com/a/20315926/3196753, https://stackoverflow.com/a/13201219/3196753
Note that whenever sending plain text a printer, the driver may need to be explicitly configured to bypass the printer driver and use a plain text driver instead.