How to emulate a Windows mobile device using Scanner (Symbol.Barcode)?

Is there a way to emulate a barcode scan? My application runs on a Motorola MC9090 Windows mobile device with a scanner. I am using the Symbol.Barcode class to create my application in .net C #.

Thanks in advance

+4
source share
4 answers

Scanner emulation is similar to emulating everything else in programming, and I assume that you are misunderstanding the problem. Everything that the โ€œscannerโ€ consumes should consume an interface, not an implementation (see โ€œDโ€ in SOLID ). This will allow you to create a separate implementation, which is an emulated version of the hardware.

Now in this case, perhaps the interface does not have much that you need in the interface - perhaps some configuration / initialization, on / off, and even or a delegate to receive data.

+3
source

The default setting on these scanners is keyboard emulation, so you can simply enter your barcode for the same effect.

0
source

I myself use the MC9090 and have not yet found a way to emulate the behavior of the scanner. The only way to debug things is to debug directly on the test scanner.

0
source

I know that I am very late for this, but this answer from @ctacke on another question may be useful for someone. It gave me direction.

Windows Mobile application for scanning barcode using emulator

0
source

All Articles