• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Serial only works every second connection

Q&A Forum › Serial only works every second connection
0 Vote Up Vote Down
Ian Beaver asked 4 years ago

Hi..I thought I had issues with my SD card but turns out I have an issue that is far more generic than that. Every second time that I connect my ESP32 TTGO board to my PC, the Serial comms does not work. I have added some blinky code so that I can see that the script is running, just no Serial.print() statements result in output to the serial monitor. Unplug the USB and replug and it runs fine. But next time it will not. This behaviour is very consistent and reproduceable and occurs with any script.

The board I am using is a TTGO LoRa V2.1.6.

Maybe I am also seeing the same issue in another situation where occasionally the code upload, following a compile, fails. Then re-compile and it loads fine and runs normally.

I have tried this on my laptop with the same results. I also have a second TTGO LoRa V2.1.6 board that also has this same issue.  Does anyone have any ideas I could try? TIA

 

 

 

 

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Ian.
That’s very weird behavior.
Does that happen with other models?
I guess it must be related to the board itself. Do you know what pins does it use to communicate with the SD card?
Maybe it is using the serial pins??
Unfortunately, I don’t have a board like that to experiment with.
Maybe you can try to share your issue in our Facebook group to see if anyone has faced the same issue with that or another board.
Here’s the link: https://www.facebook.com/groups/RandomNerdTutorials
Regards,
Sara
 

0 Vote Up Vote Down
Ian Beaver answered 4 years ago

Turns out to be a very simple answer. The issue was not with the ESP32 board at all but was with the ‘Serial Monitor’ not re-connecting to the COM port. I did not have to make any changes to the code, merely to restart the serial monitor each time that I restart the device.
I have it on good authority that this is a USB driver issue. 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Ian.
I’m glad you found a workaround for the issue.
I’m not sure what might be the problem. But, as you said, it must be something related with the USB drivers.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.