C#实现串口检测及连接功能
private void SerialPortCheck() // 串口检测
{
try
{
bool comExistence = false;
BAUD_comboBox.Items.Clear();
for (int BAUD_i = 0; BAUD_i < 5; BAUD_i++)
{
try
{
SerialPort sp = new SerialPort("COM" + (BAUD_i + 1).ToString