User Tools

Site Tools


esp:esp32:esp-idf-environment:serialconnection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
esp:esp32:esp-idf-environment:serialconnection [2026/08/29 11:42] – oscaresp:esp32:esp-idf-environment:serialconnection [2026/09/08 14:54] (current) – [Connect with Miniterm] oscar
Line 24: Line 24:
   * original ESP32-Devkit-WROOM --> **/dev/ttyUSB0**   * original ESP32-Devkit-WROOM --> **/dev/ttyUSB0**
   * ESP32-C3 mini --> **/dev/ttyACM0**   * ESP32-C3 mini --> **/dev/ttyACM0**
- +There are 2 methods to figure out the actually used USB port. 
-To find out which port is used, run the following command and unplug/plug the ESP32 board:+==== Method 1: via udevadm ==== 
 +To find out which port is used, run the following command: 
   sudo udevadm monitor -u   sudo udevadm monitor -u
- +Then unplug/plug the ESP32 board (enabling/disabling via Redirect USB device). This changes show the following output. In this case indicating that the used port is /ttyUSB0. 
- +<code> 
- +UDEV  [2304.408314] add      /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3 (usb) 
-===== Check port on Linux =====+UDEV  [2304.408372] add      /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3/1-3:1.0 (usb) 
 +UDEV  [2304.417209] add      /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3/1-3:1.0/ttyUSB0 (usb-serial) 
 +UDEV  [2304.423267] add      /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3/1-3:1.0/ttyUSB0/tty/ttyUSB0 (tty) 
 +UDEV  [2304.431423] bind     /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3/1-3:1.0/ttyUSB0 (usb-serial) 
 +UDEV  [2304.433667] bind     /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3/1-3:1.0 (usb) 
 +UDEV  [2304.433728] bind     /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-3 (usb) 
 +</code> 
 +==== Method 2: via /dev/tty ====
 To check the device name for the serial port of your ESP32 board (or external converter dongle), run this command two times, first with the board / dongle unplugged, then with plugged in. The port which appears the second time is the one you need: To check the device name for the serial port of your ESP32 board (or external converter dongle), run this command two times, first with the board / dongle unplugged, then with plugged in. The port which appears the second time is the one you need:
  
Line 41: Line 49:
      
 ===== Connect with Miniterm ===== ===== Connect with Miniterm =====
-Connect to the ESP with the miniterm that is part of the ESP-IDF installation: +Connect to the ESP with the miniterm that is part of the ESP-IDF installation. 
-  ~/development/esp32/idf-tools/python_env/idf4.2_py3.7_env/bin/miniterm.py /dev/ttyUSB0 115200 +The used terminal emulator is: 
-  +  ~/development/esp32/idf-tools/python_env/idf6.1_py3.13_env/bin/pyserial-miniterm
  
 +Various examples with different ports and speed:
 +<code>
 +~/development/esp32/idf-tools/python_env/idf6.1_py3.13_env/bin/pyserial-miniterm /dev/ttyUSB0 74880
 +~/development/esp32/idf-tools/python_env/idf6.1_py3.13_env/bin/pyserial-miniterm /dev/ttyUSB1 74880
 +~/development/esp32/idf-tools/python_env/idf6.1_py3.13_env/bin/pyserial-miniterm /dev/ttyUSB0 115200
 +~/development/esp32/idf-tools/python_env/idf6.1_py3.13_env/bin/pyserial-miniterm /dev/ttyUSB1 115200
 +</code>
  
  
esp/esp32/esp-idf-environment/serialconnection.1788003729.txt.gz · Last modified: by oscar