USing RX and TX while USB is also connected / TTGO ESP32 LORA

Hello.
I'm using 2xESP32 boards with LORA (TTGO board), one sender and one receover. And sometimes (after few days), it happens that I don't receive anymore messages on the RECEIVER FROM THE SENDER.
I would like to trouble shoot and I have included in my code messages with the Serial.print function that shoudl help.

However, as it stops working sometime after few days, I cannot keep on connecting my boards and my PC (I cannot keep my PC running for days).
And so, my design is as follows :

  • I have connected the boards with the USB ports on the public electrical network (using a power outlet in my house);
  • the RX/TX pins of the boards are connected to a "USB to TTL" equipment (G7.200).
    And when the problem occurs, I switch ON my PC, I connect the "USB to TTL" equipment (G7.200) to the PC and I run the IDE tool to check the serial messages that are displayed in the IDE.
    I cannot unplug the board from the public electrical network and connect the board to the PC with the USB port as it will restart the board and the problem will disapear.

The problem is that there is no message displayed in the IDE tool.
So the question is :slight_smile:

  • when I use the USB port of the board, that it "stops" the use of the RX/TX of the board ?

PS : when I load the code into the board with the USB port, the message sent with the Serial.print function are well displayed on the IDE interface. Not when I connect the RX/TX pins to the "USB to TTL" equipment.

I moved your topic to a more appropriate forum category @hanotte78 .

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.