Due to the widespread use of the COM protocol, many devices, although the interface changed to USB, but the internal data communication protocol is still using COM (that is, the traditional RS232 serial port protocol, the new use of TTL). Many devices use PL2302/CH340/FTDI and other chips to simulate the serial port protocol via USB, such as ARDUINO/NODEMCU, etc., using a similar mechanism.
Under Windows, after you install the driver, you can find the emulated COM device directly in Device Manager (if it is not found, there may be a problem with the driver, and sometimes a reboot or reinstall will fix it). Under Linux, the USB port and the emulated COM device ports (such as/DEV/TTY.USB0, etc.) can be listed via Lsusb and DMESG. What do you do under Mac OS x?
There are two ways under Mac OS X, one is to list the device directly, and the management of this device tree is the same as Linux:
Ls/dev/tty.*
The second option is to install the LSUSB command program as follows:
$ Brew update$ Brew Tap jlhonora/lsusb$ Brew Install lsusb$ LSUSB
You can also use the following command to view the system's USB device information:
System_profiler Spusbdatatype
Serial-to-USB devices can access data via standard serial ports, such as Minicom/screen/xconsole. XConsole is a Python-based serial access tool that requires the installation of the Pyserial Support library, which can be obtained from HTTPS://GIT.OSCHINA.NET/SUPERGIS/ESP8266APP.
#Install minicom serial access tool: $ brew Install minicom
USB Device connection and access under Mac OS x