EsP32 C3 mini in serial communication not transmitting value

EsP32 C3 mini in serial communication not transmitting value. Error in transmitting data.

I moved your topic to an appropriate forum category @ramaru.

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

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @ramaru. It will not be possible for us to help you with that problem based on such a vague description. Please provide a detailed description of what you mean by this in a reply on this forum thread, including:

  • What did you do?
  • What were the results you expected from doing that thing?
  • What were the results you observed that did not match your expectations?

Make sure to include the following information:

  • Your full sketch code
  • Your wiring schematic if you have connected external circuitry or modules to the Arduino board.
  • The full and exact text of any error or warning messages you might have encountered.

Hi,
I am using multiple threads in that when I used receiving value to write on serial port by serial. Write. It's writing wrong value.
FINAL_Gateway.zip (96.9 KB)

Just in case it is the classic error with native USB devices, there is a simple fix:


hi,
Same thing happening .Not showing correct value.

on a ESP32-C3-MINI-1 I used Serial1 on pins 2 and 3, e.g.

// ESP32-C3-MINI-1 Serial1 test - for loopback test connect pins 2 and 3

// note GPIO20 U0RXD and GPIO21 U0TXD are used for Serial programming/debugging

#define RXD1 3
#define TXD1 2

void setup() {
  // initialize both serial ports:
  Serial.begin(115200);
  Serial1.begin(115200, SERIAL_8N1, RXD1, TXD1);
  Serial.println();
  Serial.println("\n\nESP32-C3 serial1  test Rx pin 3 Tx pin 2");
  Serial.write("   for loopback test connect pin 3 to pin 2\n");
}

void loop() {
  // read from port 1, send to port 0:
  if (Serial1.available()) {
    int inByte = Serial1.read();
    Serial.write(inByte);
  }

  // read from port 0, send to port 1:
  if (Serial.available()) {
    int inByte = Serial.read();
    //Serial.write(inByte);   //echo keyboard
    Serial1.write(inByte);
  }
}

connecting pins 2 and 3 together forms a loopback test - text entered on keyboard echo back to display - serial monitor output

ESP32-C3 serial1  test Rx pin 3 Tx pin 2
   for loopback test connect pin 3 to pin 2
test 1 hello
test2 1234567890
test 3 !"£$%^&*()
test 4 abcdefghijklmnopqrstuvwxyz
   mySerial.begin(9600) ;  // Initailise serial port with baud rate 9600
    Serial1.begin(9600, SERIAL_8N1, RXD1, TXD1);
    delay(1000);

    Serial1.println("CPU0 reset reason:");
    print_reset_reason(rtc_get_reset_reason(0));
    verbose_print_reset_reason(rtc_get_reset_reason(0));

             Serial1.print("CFG_SIZE ->");
             Serial1.println(sizeof(ST_Cfg_RAM), DEC);

////////////////////////////////////////////////////////////////////////////////////////
As per your suggestion added in my program then also not working