A project of mines invloves sending data from a sensor to Windows via a serial port over bluetooth.
My first test was to compile and upload the "SerialToSerialBT.ino" sketch example:
1) It compiles and upload fine;
2) Discovering the ESP32 as a bluetooth device and pairing it from Windows works fine;
3) Two COM ports are properly created;
4) BUT: Any attempt to open the COM port in Windows to communicate with ESP32 fails (get "impossible to open COMx port" message).
Other trials:
- Rollback the ESP32 espressif board support package (BSP) from 3.3.3 to 1.0.4 makes it work
- Testing with Windows 10 rather than Windows 11 makes it work (even with Espressif BSP V3.3.3)
Complementary information: my bord is a Wemos D1 R32
Considering that transmitting data over bluetooth from an ESP32 to a Windows COM port is so basic that I don't understand how is this possible that it doesn't work the first time!
Please help! What am I doing wrong. Or, if actually a bug in ESP32 Espressif BSP, when will it be fixed?
Arduino IDE: SerialToSerialBT.ino doesn't work with Windows
-
JPPetillon
- Posts: 2
- Joined: Mon Nov 17, 2025 10:45 pm
-
lbernstone
- Posts: 1132
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Arduino IDE: SerialToSerialBT.ino doesn't work with Windows
Did you check this? https://www.tsl.com/windows-11-bluetooth/
Classic bluetooth support is disappearing. Future proof your projects by switching to BLE
Classic bluetooth support is disappearing. Future proof your projects by switching to BLE
-
JPPetillon
- Posts: 2
- Joined: Mon Nov 17, 2025 10:45 pm
Re: Arduino IDE: SerialToSerialBT.ino doesn't work with Windows
Thanks lbernstone for your reply.
In contrast with the TSL devices of your link, my ESP32 is visible in the devices discovery list and can be paired with Windows.
The problem comes when trying to open the relevant COM port. The serial terminal sends a "timeout connecting to COMx".
I understand that Classic Bluetooth (2.0) is a rather old standard, but communication via COM port is so easy that it makes sense to use that rather than GATT services of BLE.
What is the rational for this ESP32 SPP library not working with WIN11 while is works well with WIN10 or Android?
And while WIN11 works well with e.g. HC-05 bluetooth SPP modules?
In contrast with the TSL devices of your link, my ESP32 is visible in the devices discovery list and can be paired with Windows.
The problem comes when trying to open the relevant COM port. The serial terminal sends a "timeout connecting to COMx".
I understand that Classic Bluetooth (2.0) is a rather old standard, but communication via COM port is so easy that it makes sense to use that rather than GATT services of BLE.
What is the rational for this ESP32 SPP library not working with WIN11 while is works well with WIN10 or Android?
And while WIN11 works well with e.g. HC-05 bluetooth SPP modules?
Who is online
Users browsing this forum: ChatGPT-User and 2 guests