开发具有集成硬件的专用计算机
我们正在考虑为集成计算机实施读卡器程序。 该计算机是带有嵌入式计算机的触摸屏,运行Windows XP,屏幕上集成了读卡器。
阅读器是一个 USB 设备,但不幸的是,它与此屏幕/计算机的集成如此紧密,以至于我无法将其拆下并将其连接到其他设备。
启动时,SDK 很痛苦,因为它不存在。 SDK 由一个 VB(不是 .NET)应用程序组成,该应用程序通过 HID 子系统通过一些 Windows API 函数与 USB 设备进行通信,并且由于我们需要它成为 .NET 应用程序的一部分,因此我们需要使用 P 重新实现它/调用。
因此,测试这将是一件痛苦的事情,因为我可能必须不断地将新文件复制到机器上,并进行大量日志记录才能找出问题所在。
或者我也这样? 我还可以做些什么? 在该计算机上运行 Visual Studio 将比仅仅复制程序并使用日志记录更加痛苦,因此这不是一个选择,但还有什么? 我可以从我自己的机器上远程调试它吗? 该机器具有网络功能,因此我可以通过网络很好地访问它。
任何人都可以提供任何提示或建议吗?
We are looking at implementing a card-reader program for a integrated computer. The computer is a touch-screen with an embedded computer, running Windows XP, and a cardreader integrated into the screen.
The reader is a USB device, but unfortunately integrated so tightly into this screen/computer that I cannot detach it and connect it to something else.
To boot, the SDK is a pain, since it is non-existant. The SDK consists of a VB (not .NET) application which communicates with the USB device through the HID subsystem through a handful of windows api functions, and since we need this to be part of a .NET application we need to reimplement it using P/Invoke.
Thus, testing this will be a pain since I will probably have to continously copy new files onto the machine and have a ton of logging to figure out what goes wrong.
Or do I? What else can I do? Running Visual Studio on that machine will be a bigger pain than just copying the program and using logging so that's not an option, but what else? Can I remote debug this from my own machine? The machine has networking capabilities so I can reach it over the network just fine.
Any tips or advice anyone can give?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Visual Studio 和 命令行调试器都支持远程调试。
Visual Studio and the command line debuggers all support remote debugging.
查看 USB Over Network 或类似程序。 您可以使远程 USB 端口在您的开发计算机上显示为虚拟端口,并在本地进行调试。
Take a look at USB Over Network or a similar program. You can make the remote USB port appear as a virtual port on your dev machine and do your debugging locally.