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

Enhance Zephyr bluetooth GAP #7

Merged
merged 12 commits into from
Jan 13, 2025

Conversation

Frozen935
Copy link
Contributor

Summary

*Enhance Zephyr bluetooth GAP

  1. add power mode control
  2. add link role control
  3. link supervision timeout
  4. page and inquiry
  5. improve set name
  6. connection handle query
  7. link policy settings
  8. remote name request
  9. classic bond info
  10. pair

.*

Impact

GAP.

Testing

CI.

bug: v/40755

Rootcause:type of sem->limit is unsigned int and the type of semcount on nuttx os is singed int,
(int)sem->limit is minimum when sem->limit value is 0xFFFFFFF, unexpected result of semcount compare with (int)sem->limit
is true.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/40756

Add bt_conn_enter_sniff_mode/bt_conn_exit_sniff_mode api control
the sniff mode, handle BT_HCI_EVT_MODE_CHANGE event to notify
the host that the mode has been changed and link_mode_changed
callback to notify application.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/40756

Discover and switch the role of the connection
and notify the application role_changed callback
when the role is changed.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/40756

Each physical link has a timer that is used for link
supervision. This timer is used to detect physical link
loss caused by devices moving out of range, or being
blocked by interference, a device’s power-down, or
other similar failure cases.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/40756

Support for inquiry/page scan activity and type configuration,
and class of device configuration.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/42860

Set name need send SET_LOCAL_NAME hci cmd to
update controller when classci bt is enabled, the
same when 'setting_load' successed and
bt_dev.name is not empty.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/43176

Some connection-related VSC require conn handle,
'bt_conn_get_info' support to query (ACL/SCO)
conn handle.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/43207

Add 'bt_conn_set_link_policy_settings' api,
application set parameter let link manager
determines itself to change role or to enter
Hold or Sniff mode.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/43689

add 'bt_br_remote_name_request' to request remote
dvice name without requiring an explicit ACL
connection, notify RNR status and result by
bt_br_remote_name_req_cb_t.

Using parameters from inquiry results when
inquiring, otherwise use default.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/40756

'BT_CONN_REQ_AUTO_HANDLE' If this option is
enabled, the stack will automatically accept
incoming connection requests.

If this option is disabled, connect_req callback
will be called for the application to decide
whether to allow for the connection to continue.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/43281

Add link_key_notify to notify application the
link key has been genrated.

Support application get the key of the specified
address from stack or save key to stack settings.

Signed-off-by: fangzhenwei <[email protected]>
bug: v/43281

bt_conn_pair_br: pair with a remote device and
return the connection.
bt_br_unpair: remove paired device and linkkey.

Signed-off-by: fangzhenwei <[email protected]>
@pengxianghao21 pengxianghao21 merged commit a65ba7e into open-vela:dev-upgrade-4.0.0 Jan 13, 2025
12 of 14 checks passed
@hyson710 hyson710 added the enhancement New feature or request label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants