Commit Graph

14 Commits

Author SHA1 Message Date
zhangyuan20 49453c7ba7 CS: add cs socket server and client.
bug: v/80281

Rootcause: Add a socket server and client to enable communication between the user and Bluetooth.

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2026-03-02 12:07:54 +08:00
zhongzhijie1 73aea9c852 pm: add bt_cm_enable/disable_enhanced_mode for BR/EDR low-latency sniff
bug: v/67000

Add bt_cm_enable_enhanced_mode() and bt_cm_disable_enhanced_mode().
Support EM_BR_SNIFF_LOW_LATENCY and EM_BR_SNIFF_ULTRA_LOW_LATENCY.
They switch to lower sniff intervals for short-term low latency needs.
Disable API restores the default sniff parameters.

Note: idle timeout is not changed in current design. It may be extended in the future.

Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
2026-02-27 14:14:46 +08:00
liuxiang18 765755dbb2 socket: Move the generic macro to the public header file.
bug: v/83666

In the current bt_socket_profile file, all client-side callbacks use the generic macro interface
BREDR & common: CALLBACK_FOREACH
BLE: CALLBACK_REMOTE

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2026-01-22 09:28:28 +08:00
chejinxian1 efe2486d8d bluetooth: Restrict the scope of use for `bt_oob_data_t`
bug: v/79135

Rootcause: The current definition of `bt_oob_data_t` conflicts with the Android Bluetooth. In practice, this type definition is restricted to internal service usage and is not currently exposed externally.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2025-11-28 21:36:20 +08:00
liuxiang18 3f7b0c707c PTS: add pts property for dynamic control disconnect or not when pair failed.
bug: v/71321

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2025-09-25 20:01:14 +08:00
Lu Jia 2f7d2053ac bluetooth: Add bluetooth_get_async_instance()
bug: v/63432

Signed-off-by: jialu <jialu@xiaomi.com>
2025-08-08 13:52:12 +08:00
fangzhenwei 97982aedca ipc: socket ipc support async call
bug: v/46316

1.add api bt_socket_client_send_with_reply

Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2025-02-18 18:21:13 +08:00
liuxiang18 fd36cb8242 Android-vela: bt_client-add bt_socket disconnect handling
bug: v/53721

Fix lost BT connection between android and vela as vela/Android reboot.

Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
2025-02-14 18:16:58 +08:00
jialu 741a829251 HFP: Adding vendor specific AT command process for AG
bug: v/17775

In order to implement the PTT function of headphone control, it is necessary to add the process of AG send and receive vendor specific AT commands.

Signed-off-by: jialu <jialu@xiaomi.com>
2025-01-16 23:03:41 +08:00
zhangyuan20 090d7d3034 framework/avrcp: add metadata support for avrcp control in BT Service
bug: v/42362

Rootcause: Avrcp control lacks metadata interface, add get metadata interface and callback for avrcp control

Signed-off-by: zhangyuan20 <zhangyuan20@xiaomi.com>
2025-01-03 18:07:52 +08:00
fangzhenwei 8952e6ddb7 adapter: service adapte to new sal2.0 api
bug: v/42144

Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2024-12-26 22:39:45 +08:00
fangzhenwei 4e888cbbe4 sal: stack adapter layer api version 2.0
bug: v/42144

1. define controller id type 'bt_controller_id_t'
2. new parameter 'devid' for all api
3. modified some api name and optimization parameters
4. remove useless api

Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2024-12-26 22:39:45 +08:00
chejinxian1 dac351422b Bluetooth: Add API for supplying enhanced mode for application calling.
bug: v/43848

Rootcause: Due to the diversity of application scenarios, the API for invoking the Connection Enhanced Mode is provided for applications to call. Applications can enable or disable specific enhanced modes according to their own needs.

Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
2024-12-23 00:07:54 +08:00
openvela-robot cf07bea530 Merge commit
Change-Id: If26995eebd18a82ac4cd827e6801458e57a6ead3
2024-11-25 17:34:53 +08:00