Connect esp32 BLE to PC BT

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
2dof
Posts: 3
Joined: Wed Aug 10, 2022 2:42 pm

Connect esp32 BLE to PC BT

Post by 2dof » Thu Aug 25, 2022 5:09 pm

I have problem with connecting Windows 10 machine (dell laptop) to ESP32 ble, i have done procedure described in :
https://www.techcoil.com/blog/how-to-co ... indows-10/

and and system installed esp32 bt driver and paired esp32 but in More Bluetooth options -> COM port tab it cant find/Add any Com Ports (- where win10 should detect BLE as incoming and outgoing ports ). On esp i implemented GATT server ( example from https://techtotinker.blogspot.com/2021/ ... tooth.html ).
When i reset esp32 sometimes my PC show "connected" but after 2 sec return to paired status.

On the other hand i tested my program with smartphone connection via serialBT terminal all work OK, also i have another device working as
BLE ( mindWave bt ) an I did not have problem with connection as virtual com ports on laptop.

So i wonder where problem is - any idea??

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Connect esp32 BLE to PC BT

Post by jimmo » Fri Aug 26, 2022 12:20 am

2dof wrote:
Thu Aug 25, 2022 5:09 pm
So i wonder where problem is - any idea??
Unfortunately the two links you provided are for two quite different things.

The first is for "Classic Bluetooth" which provides a Serial profile. It isn't BLE. (The ESP32 supports both "classic" and "BLE", although MicroPython only allows access to the BLE part).

The second is how to set up a Nordic UART Service (NUS) which is one of the GATT services you can run over BLE. It behaves much like the serial profile, but isn't supported as widely. I do not know if you can make Windows 10 talk to a BLE NUS device as a COM port (have not investigated).

Post Reply