Page 1 of 1
How to synchronize the serial port of ESP32 Dual Core
Posted: Wed Jan 16, 2019 1:56 am
by khalil_dz
I have a serial communication problem, because a core does not support transmitting (TX) and receiving (RX) 5 variable in bouck time at 4ms / 5ms.
Is it possible to do two port synchronization serial1> (RX) in core1 and port serial2> (TX) in core 2.
thanck.
Re: How to synchronize the serial port of ESP32 Dual Core
Posted: Wed Jan 16, 2019 8:53 am
by ESP_Sprite
So you need a different baud rate for Tx and Rx? If so, you can indeed use two UARTs for this. I'm not sure why you'd need two separate cores for this, though.
Re: How to synchronize the serial port of ESP32 Dual Core
Posted: Sat Jan 19, 2019 10:32 pm
by khalil_dz
Tx and Rx same speed( baud rate).
insufficient loop time (4 ms)for transmitted (6 Int variable) and receive (4 Int variable) in a Core.
can we share the communication between two core, core==>reception, core==>transmission with synchronization.
Re: How to synchronize the serial port of ESP32 Dual Core
Posted: Sun Jan 20, 2019 9:11 am
by ESP_Sprite
Please go back a little bit and describe the problem, as I can't really make heads or tails of what you want. You want to send and receive something, but you're saying there's 'insufficient loop time'? What protocol are you trying to speak, and what specific timing (between what and what) can you not get?
Re: How to synchronize the serial port of ESP32 Dual Core
Posted: Sun Jan 20, 2019 3:16 pm
by khalil_dz
thank you for the answer.
I use Xbee for transmission
the function that I used (in reception Serial.readStringUntil('\r')
the problem:
prog loop time (5ms) insufficient for transmission (6 Int variables) and reception (4 Int variables) on a core, it can not process this data in a loop <5 ms.