简体   繁体   中英

.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

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".

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.

这些设备有一个名为DataWedge的实用程序,可让您将内置扫描仪视为键盘设备。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM