Figure 4-2. Two USB Serial Ports of USB-to-UART dongle in Windows Device Manager
4.3. Check Port on Linux and MacOS
To check the device name for the serial port of your USB-to-UART dongle, run this
command two times, first with the dongle unplugged, then with plugged in. The port
which appears the second time is the one you need:
Linux
ls /dev/tty*
MacOS
ls /dev/cu.*
4.4. Adding User to dialout on Linux
The currently logged user should have read and write access the serial port over USB.
On most Linux distributions, this is done by adding the user to dialout group with the
following command:
sudo usermod -a -G dialout $USER
on Arch Linux this is done by adding the user to uucp group with the following
command:
sudo usermod -a -G uucp $USER
Make sure you re-login to enable read and write permissions for the serial port.
4.5. Verify Serial Connection
Now verify that the serial connection is operational. You can do this using a serial
terminal program. In this example we will use PuTTY SSH Client that is available for
both Windows and Linux. You can use other serial program and set communication
parameters like below.
Содержание ESP32-WATG-32D
Страница 1: ...ESP32 WATG 32D User Manual Preliminary version 0 1 Espressif Systems Copyright 2019...
Страница 7: ......
Страница 9: ......
Страница 22: ...9 Examples For ESP IDF examples please go to ESP IDF GitHub...