以下代碼僅返回三個串行端口(com3,com4和com5)。我想訪問的固件位於USB插頭倍增器上。如何訪問此多路複用器的串行端口,以及如何識別包含我想要發送信息的固件的特定USB?如何找到特定的串行端口?
using System;
using System.IO.Ports;
namespace SerialPortExample
{
class SerialPortExample
{
public static void Main()
{
string[] ports = SerialPort.GetPortNames();
Console.WriteLine("The following serial ports were found:");
foreach (string port in ports)
{
Console.WriteLine(port);
}
Console.ReadLine();
}
}
}
非常感謝提前!
這是一個USB驅動器?像H:或者類似的東西? – 2012-08-14 12:53:49
我認爲你需要軟件來先創建USB虛擬COM端口。 – Reniuz 2012-08-14 12:53:50
@DorCohen我怎麼看? – 2012-08-14 12:55:05