模拟设备 [英] Simulated Devices

查看:90
本文介绍了模拟设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是POS.NET的新手,正在编写一个小应用程序来访问打印机和cashdrawer。我已经阅读了很多关于如何打开现金抽屉的例子,看来要在我的机器上打开现金抽屉,我需要知道逻辑
名称,因为从GetDevice中省略了这个,返回模拟现金抽屉(这可能完全错了,但对我来说似乎是这样)

Hi, I'm totally new to POS.NET and am writing a small application to access the printer and cashdrawer. I have read through quite a few examples of how to open the cash drawer and it appears that to open the cash drawer on my machine I need to know the logical name for is as omitting this from the GetDevice returns the simulated cashdrawer (could be totally wrong here but that what it seems like to me)

我已经编写了一个循环来列出系统中的所有POS设备,它们似乎都被模拟了,即使我我附上了一张收据打印机和一个现金抽屉,我做错了什么 - 如果有人可以对此有所了解,那就是
很棒。

I have written a loop to list all the POS devices on the system and they all seem to be simulated even though I have a receipt printer attached and a cashdrawer attached to that, what am I doing wrong - if someone could shed some light on this, that would be great.

非常感谢

Pete

推荐答案

有一本书涵盖了基础知识:
https://annabooks.com/Book_PGPOS.html

模拟器来自SDK。您可以将组成模拟器的DLL移动到不同的文件夹位置,以便应用程序不会拾取它们。您将需要打印机和Cashdrawer的服务对象或OPOS驱动程序。这些通常是制造商提供的
。安装后,您可以设置逻辑名称。 SDK附带的TestApp.exe可以帮助验证服务对象或OPOS驱动程序是否安装正确。

The Simulators are from the SDK. You can move the DLL that make up the simulators to different folder location so they are not picked up by the application. You will need the service object or OPOS drivers for the Printer and Cashdrawer. These are typically available from the manufacturer. Once you have installed them, you can set a logical name. The TestApp.exe that comes with the SDK can help verify the service object or OPOS drivers are installed correctly.


这篇关于模拟设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆