adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.12k stars 1.22k forks source link

Enabling BLE workflow on Espressif ? #7171

Open Neradoc opened 2 years ago

Neradoc commented 2 years ago

Do we want to implement BLE workflow on Espressif ? It could be an alternative to web workflow or enabled by default, solving the problem of the creation of .env which otherwise requires serial access. And maybe it would be turned off if web workflow is enabled.

dhalbert commented 2 years ago

Assigning to 8.0.0 to make a decision one way or the other.

ThomasAtBBTF commented 2 years ago

For me, this is an "academic" discussion! As long as BLE on ESP32(s3) is not working and developed as on the Adafruit ItsyBitsy nRF52840 (which is "out of stock"), I think you should work on getting _bleio and the other libs working as well as on the Nordic chip !

What is the use-case here and where is the customer benefit? Who really can not connect a board to USB while developing code? For the benefit of being able to "play" with the board via BLE ?

dhalbert commented 2 years ago

On second thought, I don't think we can do BLE workflow given #7170 :

This is about half done. The two remaining large pieces are adding GATT server support and bonding support. Unfortunately GATT server support probably needs NimBLE modifications to allow for adding servers, characteristics and descriptors after things are running. The SoftDevice can do this so we've assumed it in our APIs ability to just Service() at any point.

dhalbert commented 2 years ago

As long as BLE on ESP32(s3) is not working and developed as on the Adafruit ItsyBitsy nRF52840 (which is "out of stock"), I think you should work on getting _bleio and the other libs working as well as on the Nordic chip !

It's in stock at the moment: https://www.adafruit.com/product/4481

ThomasAtBBTF commented 2 years ago

image Not everywhere !

dhalbert commented 2 years ago

This would be a lot of work - deferring past 8.0.0.

ThomasAtBBTF commented 2 years ago

Sad!

tannewt commented 2 years ago

It is something we want to do. Just not for 8.0.

KarolDuzinkiewiczDAC commented 1 year ago

@tannewt @dhalbert any ETA on this one in CircuitPython?

tannewt commented 1 year ago

Nope, it is still blocked on #5926. Why do you want it on espressif instead of using nrf?

KarolDuzinkiewiczDAC commented 1 year ago

Because I just bought Adafrtuit ESP32-S3 Feather :) But no worries, thanks for the update.

śr., 31 maj 2023, 19:26 użytkownik Scott Shawcroft @.***> napisał:

Nope, it is still blocked on #5926 https://github.com/adafruit/circuitpython/issues/5926. Why do you want it on espressif instead of using nrf?

— Reply to this email directly, view it on GitHub https://github.com/adafruit/circuitpython/issues/7171#issuecomment-1570627197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJ7WCZ6M2EAVRFU4V5UNE3XI55N5ANCNFSM6AAAAAARXWVX2Y . You are receiving this because you commented.Message ID: @.***>

-- This message, including attachments, is confidential and intended only for the named recipient(s). If you are not the addressee on this message please inform the sender immediately and delete the message.  Any unauthorized use, disclosure, publication, copying, or distribution of this message, including attachments, is strictly prohibited.

jloic commented 1 year ago

hello ! I've been working on keyboard with kmk/circuitpython for an esp32s3 and now the only thing I'm missing for going full wireless is the ble workflow. KMKfw is awesome and I'm sure this would be a terrific feature to support espressif chips for building nice bt keybs :) Any idea if that feature is still being considered for future releases ?

Anutrix commented 1 year ago

I wonder if https://github.com/asterics/esp32_mouse_keyboard provides some ideas or inspiration