Windows 10 don't find SPP bluetooth of the ESP32, how to solve it?

allrobot
Posts: 17
Joined: Wed Nov 03, 2021 7:15 am

Windows 10 don't find SPP bluetooth of the ESP32, how to solve it?

Postby allrobot » Wed Mar 30, 2022 7:08 am

I tried a lot of things, but windows10 couldn't get the ESP32 SPP bluetooth to scan.

I am using the SerialToSerialBT project, mobile phone can scan SPP's Bluetooth. I wonder why my laptop can't scan.

Classic bluetooth (Bluetooth to serial):

Code: Select all

//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);
}
How to solve it?

Describe the problem in more detail:
from: https://forum.arduino.cc/t/bluetooth-no ... d/920136/4

I'm trying to use ESP32 to send receive/send data (RFCOMM) through bluetooth to Windows 10, I've already tried with both classic and BLE bluetooth, but despite what I do, Windows 10 won't recognize ESP32 as a Bluetooth device.

This is what I see when I go to the bluetooth and other devices settings in Windows 10:

Image

If I try to add a bluetooth device, it won't detect anything, even if I press the reset button in ESP32. All I can see from ESP32 is that "Silicon Labs CP201x USB to UART Bridge (COM 7)" COM 7 port is working. I also noticed that COM1 port isn't working, it just displays in Arduino IDE, but it won't connect.

I can see that port COM 7 is working because I'm able to upload the code to the ESP32, but then when I test the bluetooth from the Serial Monitor, the Android device won't pair at all, this is all I get from the Serial Monitor:

ets Jun 8 2016 00:22:57

Code: Select all

rst:0x1 (POWERON_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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Waiting a client connection to notify...
I've also installed the drivers CH34x_Install_Windows_v3_4 and CP210x_Universal_Windows_Driver, also tried CH341SER, CP210x_Windows_Drivers_with_Serial_Enumeration and CP210x_Windows_Drivers, still the same results.

All I need to do is to connect a bluetooth controller to Windows 10 through ESP32, that's all. That shouldn't be that hard, right?

This is the board I'm using:

Image


Before, I used Bluetooth LE Explorer software to check Bluetooth characteristics, service names, etc(laptop can find BLE by Bluetooth LE Explorer). I do not have any experience with PC debugging SPP. What scheme do you recommend?

rpiloverbd
Posts: 101
Joined: Tue Mar 22, 2022 5:23 am

Re: Windows 10 don't find SPP bluetooth of the ESP32, how to solve it?

Postby rpiloverbd » Fri Apr 01, 2022 1:52 pm

Quoting from one comment in this thread: https://github.com/espressif/arduino-esp32/issues/5164

"To everyone who will have the same problem: use esp32 core installation 1.0.4 instead of 1.0.6 (which, right now in 2021 is the latest). To do that you go on Arduino IDE - Board manager - uninstall esp32 libraries - reinstall esp32 library but use version 1.0.4"

If you already have not tried this, you can give it a try. And if you ever consider communicating between your ESP-32 and mobile phone using bluetooth you can get help from here:https://www.theengineeringprojects.com/ ... assic.html

allrobot
Posts: 17
Joined: Wed Nov 03, 2021 7:15 am

Re: Windows 10 don't find SPP bluetooth of the ESP32, how to solve it?

Postby allrobot » Mon Apr 04, 2022 2:01 pm

Thank you! It solved.

Who is online

Users browsing this forum: No registered users and 266 guests