USB Device connection and access under Mac OS x

Source: Internet
Author: User



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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.