Need help regarding UART1 and UART2 communication for ESP32

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: Need help regarding UART1 and UART2 communication for ESP32

Postby rudi ;-) » Fri Dec 02, 2016 10:12 pm

Ritesh wrote:Hi,

I think UART driver is released into ESP32-idf stack. So, does anyone has verified that code with UART0, UART1 and UART2 interfaces?

Please provide me sample code to verify that code in polling as well as in ISR mode.
Ritesh,
yes and they run quickly nice.
not sure, that you have read the things,
but there are samples in the esp-idf too.

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help regarding UART1 and UART2 communication for ESP32

Postby Ritesh » Sat Dec 03, 2016 5:38 am

Hi,

Thanks for Reply. That code i have checked when UART driver is released but well tested from my side.

Let me check again in details and will let you know if need any help from your side.
Regards,
Ritesh Prajapati

jakkra
Posts: 7
Joined: Mon Sep 11, 2017 12:49 pm

Re: Need help regarding UART1 and UART2 communication for ESP32

Postby jakkra » Mon Sep 11, 2017 2:11 pm

rudi ;-) wrote:
ESP_Me-no-dev wrote:Ritesh, you can look into HardwareSerial.cpp as well and see what happens when you start arduino Serial :) it's pretty straight forward.
hi Me-no-dev,

ok - UART runs in IDF environment :)

btw:

Code: Select all

void checkForData()
can we trigger this?
or do we must create a task for lookup?
txs!

best wishes
rudi ;-)


( FYI )
on 115200 -is ur uart bitbang?- there is the first byte 0xFF then comes data
on 9600 the data are fine, but i will check all again
FYI_small_thing.png
Do you know if there is a fix or workaround on the initial 0xFF received when baud rate is 115200? i'm having this problem, and I realy would like to get rid of it.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help regarding UART1 and UART2 communication for ESP32

Postby Ritesh » Tue Sep 12, 2017 3:36 am

jakkra wrote:
rudi ;-) wrote:
ESP_Me-no-dev wrote:Ritesh, you can look into HardwareSerial.cpp as well and see what happens when you start arduino Serial :) it's pretty straight forward.
hi Me-no-dev,

ok - UART runs in IDF environment :)

btw:

Code: Select all

void checkForData()
can we trigger this?
or do we must create a task for lookup?
txs!

best wishes
rudi ;-)


( FYI )
on 115200 -is ur uart bitbang?- there is the first byte 0xFF then comes data
on 9600 the data are fine, but i will check all again
FYI_small_thing.png
Do you know if there is a fix or workaround on the initial 0xFF received when baud rate is 115200? i'm having this problem, and I realy would like to get rid of it.
Hi,

Please let me know which ESP32-IDF RTOS SDK version are you using?
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Google [Bot] and 242 guests