Windows 10 don't find SPP bluetooth of the ESP32, how to solve it?
Posted: 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):
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:
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
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:
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?
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);
}
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:
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...
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:
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?