开发者

.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 fo开发者_运维问答r 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.


There's a utility for these devices called DataWedge that lets you treat the built-in scanner as a keyboard device.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜