BlueTooth crash -> UART2

ThomasK
Posts: 25
Joined: Wed Mar 20, 2019 2:33 am

BlueTooth crash -> UART2

Postby ThomasK » Sun Feb 19, 2023 10:30 pm

Hello,
I have a problem - Chip is ESP32-PICO-V3 (revision 3):
When I use UART2 it only works when Bluetooth is not active. When BT is activated, no more data comes via UART2.
Communication runs normally via UART0.
I need to realize the following:
- Communication "CONSOLE" can work
- Communication "IRDA" must work
"CONSOLE" is the "Serial" function which runs over UART0 by default. "IRDA" is the "Serial2" function over UART2

I tried the following to swap the two UART functions:
#include <HardwareSerial.h>

#if IRDA_NR == 0
HardwareSerial CONSOLE(2);
HardwareSerial IRDA(0);
#endif
#if IRDA_NR == 2
HardwareSerial CONSOLE(0);
HardwareSerial IRDA(2);
#endif

void setup()
{
CONSOLE.begin(115200,SERIAL_8N1,RXD0,TXD0);
IRDA.begin(115200,SERIAL_8N1,RXD2,TXD2);
....
This works in principle, but as soon as BT is activated, IRDA no longer runs, regardless of whether IRDA_NR == 0 or IRDA_NR == 2 is set.
What is wrong? Did I forgot something? Is there a better suggestion? :?
Best regards
Thomas

sgiba73
Posts: 3
Joined: Sat Mar 04, 2023 11:15 am

Re: BlueTooth crash -> UART2

Postby sgiba73 » Sat Mar 04, 2023 11:21 am

Having exactly the same problem.
Did you configure out how to fix that problem ?

Regards,
sgiba73

ThomasK
Posts: 25
Joined: Wed Mar 20, 2019 2:33 am

Re: BlueTooth crash -> UART2

Postby ThomasK » Sun Mar 05, 2023 10:57 am

I don't have a solution yet. When the BT is active, no more data can be received... maybe there is a collision in the interrupt setting. If anyone has an idea for a solution, that would be great.

Who is online

Users browsing this forum: marcelounisb and 113 guests