Customer:
I encountered a problem when trying to connect a Dasduino CONNECTPLUS board to Bluetooth using the “SerialToSerialBT” example from the Arduino IDE. I cannot find a solution online.
Here is the code:
//This example code is in the Public Domain (or CC0 licensed, at your option.)
//By Evandro Copercini – 2018
//
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
#include "BluetoothSerial.h"
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("The device started, now you can pair it with bluetooth!");
}
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(20);
}
This is what appears in the Serial Monitor:
Backtrace: 0x400def30:0x3ffcffb0 0x400df5ce:0x3ffd0000 0x400d5969:0x3ffd0020 0x4008f49e:0x3ffd0050
Rebooting…
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load: ,len:10900
load: ,len:6360
entry 0x400806b4
Original message (Croatian)
Dobar dan.
Naišao sam na problem kada sam pokušavao spojiti pločicu Dasduino CONNECTPLUS na Bluetooth na primjeru “SerialToSerialBT” iz aplikacije Arduino IDE. Svaka pomoć bi mi bila korisna jer na internetu ne mogu naći riješenje. Hvala.
Ovako glasi kod:
//This example code is in the Public Domain (or CC0 licensed, at your option.)
//By Evandro Copercini – 2018
//
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
#include “BluetoothSerial.h”
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run make menuconfig to and enable it
#endif
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin(“ESP32test”); //Bluetooth device name
Serial.println(“The device started, now you can pair it with bluetooth!”);
}
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(20);
}
A ovo mi izbaci u Serial Monitoru:
Backtrace: 0x400def30:0x3ffcffb0 0x400df5ce:0x3ffd0000 0x400d5969:0x3ffd0020 0x4008f49e:0x3ffd0050
Rebooting…
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load: ,len:10900
load: ,len:6360
entry 0x400806b4
Originally submitted via email support on 2 April 2023. Migrated to the forum for community visibility.