8000 Bluetooth API Features · Issue #176 · pycom/pycom-micropython-sigfox · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Bluetooth API Features #176

Open
innoagg opened this issue Jun 28, 2018 · 6 comments
Open

Bluetooth API Features #176

innoagg opened this issue Jun 28, 2018 · 6 comments
Assignees
Labels
BLE Issues related to BLE enhancement New feature or request

Comments

@innoagg
Copy link
innoagg commented Jun 28, 2018

Pycom MicroPython 1.18.0 [v1.8.6-849-046b350] on 2018-06-01; GPy with ESP32

The Bluetooth implementation is missing some critical features that make peripheral implementations difficult. The items listed below are not all of them, but cover the most important at least from my perspective in order of importance.

Advertising

  1. No way to set advertisement flags with set_advertisement. For example, the flags ESP_BLE_ADV_FLAG_GEN_DISC | ESP_BLE_ADV_FLAG_BREDR_NOT_SPT are hard coded.
  2. Advertisement intervals are hard coded.
  3. No way to configure a scan response.

Peripheral Connections

  1. The callback for CLIENT_CONNECTED / CLIENT_DISCONNECTED events is missing any information about the client such as Mac address or some kind of connection handle. Connection management is impossible without. All callback should identify which client it is for.
  2. Method to disconnect a particular connected client. There appears to be a method disconnect_client but it is not clear which connection is terminates if there are multiple active.
  3. Bonding or encrypting the BLE connection does not appear to be supported.
@iwahdan88 iwahdan88 self-assigned this Jun 29, 2018
@innoagg innoagg changed the title Bluetooth Bluetooth API Features Jun 29, 2018
@iwahdan88
Copy link
Contributor

Hello @innoagg ,

Currently we are working on updating Wifi and BLE modules for more configurability and new features.
Thanks for pointing out these points, I have them in the Backlog.
I expect these updates to be added by mid of this month.

Thanks
Cheers

@innoagg
Copy link
Author
innoagg commented Jul 23, 2018

Any news on timing for these BLE items. I did not see any changes in the latest release.

@iwahdan88
Copy link
Contributor

Hi @innoagg , BLE updates are still not released , we are working on releasing these updates as soon as possible, sorry for the Delays.

@innoagg
Copy link
Author
innoagg commented Jul 24, 2018

Thanks, Eagerly awaiting as I have found couple more items I hope are addressed...

Characteristics defined on the pycom device as PROP_WRITE only can in fact be read successfully by a client. The pycom device should send back an indication that it cannot be read (normally 0x0403)

Also, perhaps I am not seeing how, but one should be able to send back a response code to a client connection in response to a characteristic write operation to indicate success or to validate values.

@danspndl danspndl added enhancement New feature or request BLE Issues related to BLE labels Sep 3, 2018
@innoagg
Copy link
Author
innoagg commented Oct 23, 2018

Found another BLE implementation shortcoming. Hardcoded scan interval and window is a big issue for us. Can't achieve 100% scan duty cycle.

What BLE enhancements will be included with the 1.19 (soon?) release?

@gretel
Copy link
gretel commented May 8, 2019

it's getting disappointing in terms of what is sold and actually works.

peter-pycom pushed a commit that referenced this issue Aug 25, 2020
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this issue May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BLE Issues related to BLE enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
0