首次使用C#编写与COM口有关的程序,期间遇到了很多问题,写下自己的经验总结,如有错漏,欢迎批评指正! 1.新建一个串口类( SerialPort类) //Create a serial port for bluetooth SerialPort BluetoothConnection = new SerialPort(); 2.串口端口号搜索: string[] Ports = SerialPort.GetPortNames();or (int i = 0; i < Ports.Length;…
手机连接电脑使用adb命令,主要是有2种方式,其中最常见的就是第一种,用usb连线使用 1:adb usb - restarts the adbd daemon listening on USB adb usb就是通过USB数据线连接Android设备 2:adb tcpip -restarts the adbd daemon listening on TCP on the specified port adb tcpip则是通过TCPIP的方式连接Android设备(显然这种是无线连接,po…