espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.51k stars 7.26k forks source link

SPP support with NimBLE (IDFGH-5581) #7303

Closed venkateshgr-ayla closed 2 years ago

venkateshgr-ayla commented 3 years ago

Hi All, I wanted to know if SPP can be supported with NimBLE? Currently I am not using Bluedroid. I want to port SPP-Bluedroid to SPP-NimBLE. Is it technically possible and recommended? Does ESP have any plans to support SPP over NimBLE? Kindly help me with your suggestions on SPP feature with NimBLE.

Thanks, GR.Venkatesh

rahult-github commented 3 years ago

Hi @venkateshgr-ayla ,

SPP ( Serial Port profile ) is a basically a bluetooth classic profile. Nimble, is BLE only stack.

We can however achieve the same by implementing a custom LE service running on top of GATT and simulate the behaviour and achieve SPP functionality in BLE.

Currently, there is no such custom service implemented for Nimble. We will check internally and plan if we can release this as part of the SDK.

Thanks, Rahul

venkateshgr-ayla commented 3 years ago

Hi Rahul,

Thanks for the response. Is it possible for this feature release? If so can I know approximate timeline?

Thanks, GR.Venkatesh

rahult-github commented 3 years ago

Hi @venkateshgr-ayla ,

We are planning on including this feature and are currently targeting to include this example in stable release in Q4' 21 quarter.

Thanks, Rahul

IshaESP commented 3 years ago

Hi @venkateshgr-ayla,

Can you try this patch? nimble_spp_patch.txt

Thanks, Isha

Alvin1Zhang commented 2 years ago

@venkateshgr-ayla Thanks for reporting, would you please help share if any updates? Thanks.