Serial Communication From Teensy 4.1 to Firebeetle 2 ESP32-E, and then to App

jgangano

Member
Hello,

i am trying to send data from a Teensy to a Firebeetle 2 ESP32-E, which will then send data to an app, specifically nRF connect using bluetooth.

I have managed to get the serial communication between the microcontrollers, but whenever I try extracting that data using bluetooth I get this error:

Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.

This is very weird to me, as when I just connect my teensy and esp32, it works fine, but whenever I try bluetooth, it gets an error.

Here is my 3 sets of code I am using, but if you can give advice on how to proceed or what's wrong, or if you want some clarification, please let me know!

Teensy Code
Code:
#include <Arduino.h>

#define SERIAL_SPEED 9600

void setup() {
  Serial.begin(SERIAL_SPEED);
  while (!Serial);
  Serial1.begin(SERIAL_SPEED);
}

void loop() {
  // Send some numbers over Serial1 to ESP32
  for (int i = 0; i < 10; i++) {
    Serial1.println(i);
    delay(1000); // Adjust delay according to your requirements
  }
}


Teensy->ESP32 Code
Code:
#include <Arduino.h>

#define SERIAL_SPEED 9600

void setup() {
  Serial.begin(SERIAL_SPEED);
  while (!Serial);
}

void loop() {
  if (Serial.available()) {
    int data = Serial.parseInt();
    Serial.print("Received: ");
    Serial.println(data);
  }
}

Teensy->ESP32 Code->App
Code:
#include <Arduino.h>
#include <BluetoothSerial.h>

#define SERIAL_SPEED 9600

BluetoothSerial SerialBT;

void setup() {
  Serial.begin(SERIAL_SPEED);
  SerialBT.begin("ESP32");
 
  while (!Serial);
  Serial.println("Bluetooth Serial Started");
}

void loop() {
  if (Serial.available()) {
    int data = Serial.parseInt();
    Serial.print("Received: ");
    Serial.println(data);
    
    // Send data over Bluetooth
    SerialBT.print("Received: ");
    SerialBT.println(data);
  }
}
 
i am trying to send data from a Teensy to a Firebeetle 2 ESP32-E, which will then send data to an app, specifically nRF connect using bluetooth.

I have managed to get the serial communication between the microcontrollers, but whenever I try extracting that data using bluetooth I get this error:

Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down.

Code:
[Teensy]<---serial--->[ESP32]<---bluetooth--->[PC]

You've got hard-wired serial communication between Teensy and ESP32, and that is working, right? You're trying to get bluetooth communication between ESP32 and your host PC, and you want to know why that isn't working? If the error message coming from your PC, you need to start there.
 
Back
Top