Bug: v/87379
Refactor gattc_service.c to use the new debug module:
- Include gattc_internal.h and gattc_debug.h
- Remove local struct definitions (moved to gattc_internal.h)
- Replace inline logging with debug module functions
- Remove dump_services() (moved to gattc_debug.c)
Add CONFIG_BLUETOOTH_GATT_CLIENT_DEBUG Kconfig option:
- Default enabled (y) for backward compatibility
- When disabled, debug functions become empty macros
- Reduces code size by removing log strings
Update Makefile and CMakeLists.txt to conditionally compile
gattc_debug.c based on the config option.
Signed-off-by: Zihao Gao <gaozihao@xiaomi.com>
bug: v/79394
Implement the SAL layer callback function for settings storage.
include:
1. SAL zblue_on_ltk_notify & zblue_on_ltk_load
2. add adapter_get_smp_data API
3. add adapter_get_local_csrk API
Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
bug: v/62106
Add feature-layer GATT client (gatt_client_t) wrapping low-level GATTC callbacks.
Build a local services DB from discovery (service/characteristic/descriptor).
Provide stable UUID handle lookups and helpers (service/char/desc finders).
Implement async read/write for characteristics and descriptors, notify subscribe/unsubscribe, and MTU exchange.
Signed-off-by: zhongzhijie1 <zhongzhijie1@xiaomi.com>
bug: v/61147
Rootcause:The stack size parameter of the Bluetooth task should be set through configuration options to allow adaptation on different platforms.
Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
bug: v/59903
Root cause: When removing the bond, zblue only disconnects the ACL, not the profile. As a result, the A2DP connection fails when reconnecting next time.
Signed-off-by: jialu <jialu@xiaomi.com>
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>
bug: v/47945
Rootcause: Due to the differences in the storage format of Bluetooth information in different system versions, in order to ensure that saved information can continue to be used after system upgrades, the storage transformation tool has been added.
Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
bug: v/43848
Rootcause: Some ACL need to add some enhanced features to provide a better Bluetooth communication experience. This submission is a part of the project and is intended for building a management framework.
Signed-off-by: chejinxian1 <chejinxian1@xiaomi.com>
Implement the SAL layer callback function for settings storage.
include:
1. SAL zblue_on_ltk_notify & zblue_on_ltk_load
2. add adapter_get_smp_data API
3. add adapter_get_local_csrk API
Signed-off-by: liuxiang18 <liuxiang18@xiaomi.com>
This commit implements the HID Service Abstraction Layer (SAL) for
Zephyr Bluetooth stack integration. The main changes include:
- Add HID device compilation support in Makefile when
CONFIG_BLUETOOTH_HID_DEVICE is enabled
- Implement HID device service abstraction layer interface
(sal_hid_device_interface) with complete API set
- Support HID device registration and SDP service record management
- Provide connection management for HID device profiles
- Implement report data handling (send/receive) and error reporting
- Support virtual cable unplug functionality
Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
This patch adds SPP feature to the Bluetooth stack, including server and client implementation based on RFCOMM and SDP.
Changes:
Add SPP compilation option in Makefile.
Add debug log in spp_service.c.
Implement SPP interface in sal_spp_interface.h and sal_spp_interface.c.
Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
/apps/frameworks/connectivity/bluetooth/dfx/event_bt.xml are the same file
make[3]: *** [Makefile:487: context] Error 1
Signed-off-by: jialu <jialu@xiaomi.com>