SerialPort 对象
portId
string - 端口唯一标识符。portName
string - 端口名称。displayName
string - 用于向用户显示的描述此设备的字符串(可选)。vendorId
string - USB Vendor ID (可选)。productId
string (optional) - The USB product ID.serialNumber
string (可选) - USB 设备序列号usbDriverName
string (optional) macOS - Represents a single serial port on macOS can be enumerated by multiple drivers.deviceInstanceId
string (optional) Windows - A stable identifier on Windows that can be used for device permissions.