Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET compact framework - barcode scanner

I have Motorola MC55 with Windows Mobile 6.5 on-board. This nice palm contains also an embedded bar-code scanner. My question is - Will I need anything special in .NET CF in order to use the bar-code scanner? I would expect that the bar-code are read as normal strings and delivered as keyboard events? Is any special .NET CF library necessary?

Thanks for help

Dominik

like image 650
cubesoft Avatar asked May 24 '26 11:05

cubesoft


2 Answers

That entirely depends on what you want to achieve.

Handheld barcode scanners based on Windows Mobile usually come with a piece of software that translates barcode module output to keystrokes -- you can put it in the autorun folder and then handle text input in your textbox.

Alternatively, there's usually an SDK that contains libraries with which you can hook the scanner directly and have all the additional information (type of the barcode, binary data etc).

We use MC9090 here, and we went the SDK way. Works like a charm. The SDK can be dowloaded here. If the link doesn't work (I had to crop it), go to the seach form and search for "SDK".

like image 91
GSerg Avatar answered May 26 '26 01:05

GSerg


Usually, for Motorola (earlier Symbol) scanners there's a set of libraries for the Comapact Framework including samples.

We use mobile devices a lot with our customers (not only Motorola) and I strongly advise against using keyboard emulation if possible, as you will run into trouble when there are multiple input fields (or no input fields at all). Also, you will not be able to detect special characters within barcodes when you get them through keyboard emulation.

Link to SDK is provided by GSerg in his answer. I strongly recommend using the SDK as it provides access to other device functionality as well.

like image 28
Thorsten Dittmar Avatar answered May 26 '26 00:05

Thorsten Dittmar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!