串口通讯和仿真. [英] Serial port communication and emulation.

查看:113
本文介绍了串口通讯和仿真.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我目前正在为Windows CE 5设备编写应用程序.
我的PC(c#.net 3.5)上有一个需要通过串行端口与设备进行通信的应用程序.
我的电脑只有一个端口(COM1).

所以现在我可以使用Windows应用程序将数据发送到该端口,但是我也有Windows CE .NET Compact解决方案(用于设备),但是我没有设备.

有没有一种方法可以模拟两个设备之间的通信?

谢谢

Hi there,
I''m currently writing an application for a windows CE 5 device.
I have an application on my pc (c# .net 3.5) that needs to communicate with the device through the serial port.
my pc only has one port (COM1).

so now i can send data to that port with my windows app but i''ve got a windows CE .NET Compact solution as well (for the device) but I don''t have the device with me.

Is there a way I can emulate the communication between the 2 devices?

Thanks

推荐答案

如果我理解正确,则您需要两个应用程序都在同一台PC上运行(因为您正在仿真CE设备),并且您只有1个COM端口.如果是这样,那么会有很多仿真器.我只说一个我曾经用过的名字:

http://sourceforge.net/projects/com0com/ [
If I understand correctly you need both apps to run on the same PC (because you are emulating the CE device) and you only have 1 COM port. If so there are a lot of emulators out there. Let me just name one I have used:

http://sourceforge.net/projects/com0com/[^]

Good luck!


谢谢,我不确定这是否行得通-否则我只是不知道如何使用它...
是的,基本上我的电脑上有两个应用程序.一个运行Windows CE仿真(包括在Visual Studio,智能设备应用程序中),另一个运行普通的Windows Forms应用程序.
我希望2通过虚拟串行端口相互通信.

所以我需要2个虚拟/模拟COM端口(例如COM5和COM6,然后我可以将它们彼此连接起来,然后将一个应用程序链接到COM5,将另一个应用程序链接到COM6.

谢谢
Thanks, I''m not sure if that will work - or i just don''t know how to use it...
Yes, it is basically two applications on my pc. One is running with Windows CE emulation (included in visual studio, smart device application) and the other is a normal windows forms application.
I want the 2 to communicate with each other through virtual Serial Ports.

so i need 2 virtual/emulated COM ports (e.g. COM5 and COM6, which i then can connect to each other and then link the one app to COM5 and the other to COM6.

thanks


尝试 com0com


这篇关于串口通讯和仿真.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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