uart via built in usb on esp board

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: uart via built in usb on esp board

Postby fly135 » Thu Jun 07, 2018 10:52 pm

Deouss wrote:I cannot get it working. Tried all 3 uarts 0-2 with UART_PIN_NO_CHANGE
Also noticed according to pinout of devkit board uart0 txd is 41 but undefined
I will try wifi then
This is something I've found confusing. From what I can tell "pin #s" are the GPIO number, not the physical pin on the chip.

Maybe someone will correct me if I'm wrong.

John A

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: uart via built in usb on esp board

Postby Deouss » Thu Jun 07, 2018 11:25 pm

fly135 wrote: This is something I've found confusing. From what I can tell "pin #s" are the GPIO number, not the physical pin on the chip.

Maybe someone will correct me if I'm wrong.

John A
I think it is the case on Arduino Atmel boards.
On Esp and Stm I found pin numbers to be same as their names so far

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: uart via built in usb on esp board

Postby ESP_Angus » Fri Jun 08, 2018 5:02 am

That's right, whenever software asks for a pin number it is asking for the GPIO number not the number of the pin/pad on the QFN package.

So, for example, the default UART 0 TXD pin is GPIO 1. You can find it at pad 41 on the ESP32-D0 QFN package (a different pad on the ESP32-D2, but it's still GPIO 1).

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: uart via built in usb on esp board

Postby Deouss » Fri Jun 08, 2018 11:42 am

So it is still a mistery how to intercept simple printf() calls from esp32 by f.ex. Windows app listening to a serial port...
Anyone has ideas?

kirill_yatsenko
Posts: 1
Joined: Mon Nov 23, 2020 4:12 pm

Re: uart via built in usb on esp board

Postby kirill_yatsenko » Mon Nov 23, 2020 4:35 pm

Hi,

I have a similar question on trying to communicate with PC via UART ports.
I'm expecting to see logs in the serial terminal.
I've connected a USB cable to the dev board and also the FTDI UART-USB converter.

When printing the ports:
1. /dev/ttyUSB0
2. /dev/ttyUSB1

When connecting to serial communication via putty to USB0 I can see logs from the ESP
But when trying to connect to /dev/ttyUSB1 port I don't see any output

Source: https://github.com/KirillYatsenko/temp-uart-echo

Pins:
1. TXD_PIN 18
2. RXD_PIN 19

I'm expecting to see logs with the received message from the putty terminal

Who is online

Users browsing this forum: alimert7, axellin and 109 guests