如何模拟使用扫描仪(Symbol.Barcode)的Windows移动设备?
有没有办法模拟条形码扫描? 我的应用程序在具有扫描仪的 Motorola MC9090 Windows 移动设备上运行。 我正在使用 Symbol.Barcode 类在 .net c# 中创建我的应用程序。
提前致谢
Is there any way to emulate a Barcode scaning?
My application runs on a Motorola MC9090 Windows mobile device that have Scanner. I'm using Symbol.Barcode class to create my application in .net c#.
thank's in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这些扫描仪的默认设置是键盘模拟,因此您应该只需键入条形码即可获得相同的效果。
The default setup on these scanners is keyboard emulation so you should be able to just type your barcode for the same effect.
模拟扫描仪就像模拟编程中的任何东西一样,我的猜测是您对问题的看法是错误的。 无论消耗“扫描仪”什么,都应该消耗接口,而不是实现(请参阅 固体)。 这将允许您创建一个单独的实现,即硬件的模拟版本。
现在,在这种情况下,界面中可能不需要很多东西 - 也许是一些设置/初始化、启用/禁用以及用于数据接收的事件或委托。
Emulating the scanner is like emulating just about anything in programming and my guess is you're looking at the problem wrong. Whatever is consuming the "scanner" should be consuming an interface, not an implementation (see the "D" in SOLID). This would allow you to create a separate implementation that is an emulated version of the hardware.
Now in this case there probably aren't a lot of things you need in the interface - maybe some setup/initialization, enable/disable and an even or delegate for data reception.
我自己经常使用 MC9090,但尚未找到模拟扫描仪行为的方法。 调试的唯一方法是直接在测试扫描仪上进行调试。
I'm using the MC9090 a lot myself and have not yet found a way of emulating the scanner behaviour. The only way to debug things is directly debugging on a test scanner.
我知道我已经迟到了,但是 @ctacke 对另一个问题的回复可能对某人有帮助。 它给了我一个方向。
使用模拟器进行条形码扫描的 Windows Mobile 应用程序
I know i am pretty much late for this but this reply by @ctacke on another question might be helpful for someone. It gave me a direction.
Windows Mobile Application for barcode scanning with Emulator