Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot detect/scan classic bluetooth devices #372

Closed
Lakoja opened this issue Jan 21, 2018 · 9 comments
Closed

Cannot detect/scan classic bluetooth devices #372

Lakoja opened this issue Jan 21, 2018 · 9 comments

Comments

@Lakoja
Copy link

Lakoja commented Jan 21, 2018

I acquired an ESP32 recently (a ESP-WROOM32-Breakout).
And tried the ble_scan example with Arduino. This works ok: Upload works. Some BT devices are listed as found.

However the devices listed there are only "low energy" ones.

This is true even if I define CLASSIC_BT_ENABLED. And as another test I even set the ESP_BT_MODE_CLASSIC_BT for esp_bt_controller_enable() in BLEDevice.cpp.

Parallely I checked this with an app on my Android phone ("BlueScan") which shows some more devices as type "Classic". All of which are not found by the ESP32.
(The one I am actually looking for also shows up as classic there...)

Does this sound like a hardware defect? Or are there any shortcomings in the libraries known?

@chegewara
Copy link
Collaborator

As you can see this is BLE library which means it only works with bluetooth LE. You cant work with bluetooth classic devices or use ESP32 as bluetooth classic device.

@Lakoja
Copy link
Author

Lakoja commented Jan 21, 2018

Is there a purpose for the CLASSIC_BT_ENABLED flag from BLEDevice.cpp?

@chegewara
Copy link
Collaborator

No and yes. When memory release will be implemented eventualy it could crash user application if it will be dual mode app.

@Lakoja
Copy link
Author

Lakoja commented Jan 21, 2018

But the underlying sdk supports classic bluetooth? Because the ESP32 does according datasheets.

Thank you for your time and patience.

@chegewara
Copy link
Collaborator

Yes, esp32 and esp-idf sdk support classic bluetooth. Here you can find nice project:
https://github.com/MrBuddyCasino/ESP32_MP3_Decoder

@krisstakos
Copy link

Is it possible to detect/scan bluetooth classic devices somehow?

@redplane
Copy link

redplane commented Nov 8, 2020

3 years later, and I have the same question

@chegewara
Copy link
Collaborator

This is BLE only library.

@thinairart
Copy link

Just to follow up for future travelers who land here from Google:

CLASSIC_BT_ENABLED tells the BLE library to enable DUAL mode (BLE & SPP). This is important if you want the ESP32 to works as a dual mode device and support either connection type. You still need to use the Bluetooth classic library to actually implement Bluetooth classic SPP, and you handle that connection with that library, not this one. This flag just makes sure that Bluetooth is not enabled as BLE only, which would prohibit the SPP library from working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants