Windows Mobile串行端口名称 [英] Windows Mobile Serial Port Names

查看:94
本文介绍了Windows Mobile串行端口名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否有人知道如何在Windows移动设备(WM6)上最好使用C#或VB获取所有端口名. System.IO.Ports.SerialPort.GetPortNames()方法似乎无法获取设备上存在的所有它们.

谢谢.

安迪
(MCTS)

Hi,

Does anybody know how to get all of the port names on a windows mobile device (WM6) in C# preferably or VB. The System.IO.Ports.SerialPort.GetPortNames() method doesn''t seem to get all of them that exist on the device.

Thanks.

Andy
(MCTS)

推荐答案

安迪,

这似乎是带有非空终止的帖子名称的错误.看看这个线程,还有一个vb.net解决方案可以轻松移植.

http://connect.microsoft.com/VisualStudio/feedback/details/236183/system-io-ports-serialport-getportnames-error-with-bluetooth [
Hi Andy,

This seems to be a bug with non null terminated post names. Look at this thread, there is also a vb.net work around that could easily be ported.

http://connect.microsoft.com/VisualStudio/feedback/details/236183/system-io-ports-serialport-getportnames-error-with-bluetooth[^]

Good luck!


谢谢你,这很有趣.但是,我的问题更多是在 System.IO.Ports.SerialPort.GetPortNames()不会返回虚拟端口(如Bluetooth和Infrared)的方向上.它似乎只返回物理硬件端口.

您对如何将这些端口作为列表有任何想法吗?

谢谢

安迪
Hi, thanks for that, that is very interesting to know. However, my problem is more in the direction of that the System.IO.Ports.SerialPort.GetPortNames() does not return the virtual ports such as Bluetooth and Infra red. It only seems to return the physical hardware ports.

Do you have any ideas about how to get these ports as a list?

Thanks

Andy


这篇关于Windows Mobile串行端口名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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