Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9841
  • Last Modified:

Emulating a barcode scanner trigger

Hello All,

I am developing apps for a Symbol MC9090 barcode scanner (or similar).  I've installed the Symbol/Motorola EMDK (SDK) for .Net 2.0 and the Windows Mobile 5 SDK.  I have loaded one of the sample EMDK apps, CS_BarcodeControlSample1, via VS2008 and have F5ed it to compile it & deploy it to the emulator.  The app's screen displays on the emulator but I have not figured out how to emulate the barcode scanner's trigger.  Thus, no barcodes appear in the target listview.  I expected to be able to manually enter barcode numbers via the emulator's keyboard device.

My question: what good is the emulator if it cannot emulate the trigger?  If I had a real scanner I wouldn't need the emulator.  Thus, how can I develop and test barcode scanner-aware apps without having a real barcode scanner?

Thanks for your time and wisdom.

Troy
0
woodmark
Asked:
woodmark
  • 3
  • 2
1 Solution
 
woodmarkAuthor Commented:
Hmmm, this question must be tougher than I thought.  I assumed other developers had already figured out how to prototype barcode-aware apps for mobile computers (barcode scanners) without having to actually have a barcode scanner, which is the whole point of emulation, right?

I am still Googling for a solution but thus far, no luck.

Troy
0
 
alexey_gusevCommented:
well, all I can think of is to create either separate small app that will send some keys (or messages with data)  to your main application or assign some "hotkey" and simulate the scan in your main app

on real device, there is a driver that does all the job, so you should simulate something similar
0
 
woodmarkAuthor Commented:
Alexey, thanks for taking the time to respond.  My query really is tougher than what I thought.  Am I to conclude that it isn't possible to emulate a barcode scanner using the existing Microsoft mobile device SDK and Symbol/Motorola SDK?  I was duped into believing it's possible because when I press F5 within VS2008, the app is compiled and actually deploys & executes on the emulator (a Windows Mobile 5 computer).

Anyway, so much for emulation.  I'm glad I didn't have to have an IBM 390 when I learned IBM assembler via an emulator.  :)

Bottom line: it doesn't appear possible to emulate a mobile computer equipped with a barcode scanner, which is beyond my Jethro brain to understand why.

Troy
0
 
alexey_gusevCommented:
at least, I don't know any simply way of doing it :)

recent emulators run ARM code, which is fine, but it depends on the vendor to provide specific "hardware emulation", like scanner. I haven't seen anything like that before. If you're up to creating simple driver - you'll get what you want :)
0
 
woodmarkAuthor Commented:
Thanks again for your time.  Although the answer wasn't what I wanted to hear, I believe you've given me clues on the proper direction I need to go in.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now