I need to have multiple uarts, one for device comms, one for peripheral device and one for debug/programming

wegunterjr
Posts: 37
Joined: Thu Jun 07, 2018 3:05 am

I need to have multiple uarts, one for device comms, one for peripheral device and one for debug/programming

Postby wegunterjr » Fri Aug 10, 2018 3:19 am

How do i choose this with the esp-idf? Do i just set the port for the uart to whatever pin I want (with the exception of some reserved ones...)

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: I need to have multiple uarts, one for device comms, one for peripheral device and one for debug/programming

Postby kolban » Fri Aug 10, 2018 4:02 am

An ESP32 has 3 UARTs available to it. UART0 is by default used for flashing and log. UARTs 1 and 2 are wide open to you. You can map the RX, TX and other pins as you desire.

See here for more info.

http://esp-idf.readthedocs.io/en/latest ... /uart.html
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

wegunterjr
Posts: 37
Joined: Thu Jun 07, 2018 3:05 am

Re: I need to have multiple uarts, one for device comms, one for peripheral device and one for debug/programming

Postby wegunterjr » Fri Aug 10, 2018 12:52 pm

Thanks a ton! I was getting confused as to what is on the ESP32 and what is in the WROVER32-I module I am using. I appreciate the assist.

Who is online

Users browsing this forum: ESPBoards and 118 guests