Commit Graph

55 Commits

Author SHA1 Message Date
Island 4b434bd71d Merge branch 'fix/ble_log_v2_dual_core_iwt_v5.5' into 'release/v5.5'
fix(ble): added missed spin lock initialization (v5.5)

See merge request espressif/esp-idf!44381
2025-12-26 10:39:07 +08:00
Island 857b5192b2 Merge branch 'fix/ble_log_v2_cache_error_v5.5' into 'release/v5.5'
BLE Log v2 Function Update 251125 (v5.5)

See merge request espressif/esp-idf!43870
2025-12-26 10:38:57 +08:00
Zhou Xiao a961d7da47 fix(ble): added null pointer check in ble log ts submodule
(cherry picked from commit 2b9c7471d0f3841f36f8a4a01aae79b6d08e0cbd)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-24 17:05:04 +08:00
Zhou Xiao 4c21f792fa fix(ble): added missed ts sync reset
(cherry picked from commit d1d07eb60a6e822c61516154b090e69f61a0a765)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-24 17:05:04 +08:00
Zhou Xiao 05ff6f2d95 feat(ble): added xor checksum for integrity check performance optimization
(cherry picked from commit c604afa272f9b4e81835562eb812d86288f040c5)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-24 17:05:03 +08:00
Zhou Xiao 7e93257ed1 fix(ble): added missed spin lock initialization
(cherry picked from commit 069262e513e822da1901ecfa0023e684b457516d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-18 17:13:38 +08:00
Zhou Xiao 63ceae8dd9 feat(ble): enabled lc get time for ceva controller
(cherry picked from commit 6924b8b372e6fca15e2f1b49f895f3e95ff131c2)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-01 11:10:35 +08:00
Zhou Xiao b940b46af1 fix(ble): put ble_log_write_hex in iram to avoid cache error
(cherry picked from commit dc4e41fab83ff2bebb89f02b77e83fc221101f71)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-01 11:10:35 +08:00
Zhou Xiao db3d0646b8 fix(ble): increase default ble log stack size for xtensa chips
(cherry picked from commit 3e0d0059878c7081ec5301f935d8b2e6662df75d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-11-12 17:13:57 +08:00
Jiang Jiang Jian 91dd2aee23 Merge branch 'feat/support_cble50y25_277_v5.5' into 'release/v5.5'
feat(ble): Support controller log compression for ESP32-C3 and ESP32-S3(0871069) (v5.5)

See merge request espressif/esp-idf!43108
2025-11-11 19:36:25 +08:00
Chen Jian Hua 6c65b25d0e feat(ble): make ble log task stack size configurable
(cherry picked from commit b525e6555b153deff11d9dc5365036eee3a5f9ee)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-11-05 13:33:23 +08:00
Chen Jian Hua 7910b5dbec feat(ble): Enable get bt ts for ESP32-C3 and ESP32-S3
(cherry picked from commit b870a8fb5afb278ea29bbf70744589e41cdfe26a)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-11-05 13:33:23 +08:00
Zhou Xiao c087ced66f fix(ble): fixed hci event log when link layer logging is disabled
(cherry picked from commit 777f21783b3cf003edda409d8716f562b26fb69c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-30 21:13:16 +08:00
Zhou Xiao dec62e60f4 fix(ble): copy acl data by omdata buffer copy
(cherry picked from commit 322eb33f0d19a7abdd8d430c6e742224fe3274f5)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-13 09:13:53 +08:00
luoxu 2d2ec6c34e feat(ble): Support ble log compression(draft) 2025-09-22 00:05:02 +08:00
Zhou Xiao bc5b61b56c fix(ble): fixed ble log v2 configuration issues 2025-09-16 19:07:45 +08:00
Zhou Xiao 8f6e654773 feat(ble): refactored ble log module with layered design
(cherry picked from commit 797a0c4e6eafaf6164e0f9c34f3867a46733924c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-09-01 13:13:49 +08:00
Zhou Xiao 1b48a697c4 fix(ble): disabled get lc ts for ESP32-C3 and ESP32-S3
(cherry picked from commit c17bf638744dec55292d1128854f69159c8d84b4)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-08-14 11:14:08 +08:00
Jiang Jiang Jian 7704a9e93e Merge branch 'change/ble_update_lib_20250728_v5.5' into 'release/v5.5'
change(ble): [AUTO_MR] 20250728 - Update ESP BLE Controller Lib (v5.5)

See merge request espressif/esp-idf!40912
2025-08-01 10:37:34 +08:00
Zhou Xiao 1665cac638 feat(ble): support ble log uart dma out 2025-07-30 17:39:01 +08:00
Zhou Xiao 0421e10396 feat(ble): ble log spi out dev phase 5
* supported ts sync for light sleep
* removed controller event queue dependency
* supported get lc ts for ESP32-C3/S3
* optimized ble log spi out code size


(cherry picked from commit f99389e00da1c12971e654037ed009bb172331c9)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-30 13:14:58 +08:00
Zhou Xiao e9f096a079 change(ble): upgraded spi log frame header
(cherry picked from commit 5f3ac91d6305eb4daecc340fe669a13fe3d1daad)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:16:09 +08:00
Zhou Xiao 9e286cb5c3 fix(ble): nimble host & hci log write race condition workaround
(cherry picked from commit 6e384644c86acf450edaf0016826f910c99c7682)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:16:07 +08:00
Zhou Xiao 8d2710c3b6 change(ble): support task buffer number configuration
(cherry picked from commit 4946a1fe8dd140218e20715763f94cd98980222d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:16:04 +08:00
Zhou Xiao 1d0be054ec change(ble): removed esp log to save code size
(cherry picked from commit 0088541f543158ff1fc7b6173f004a90efd4042f)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:57 +08:00
Zhou Xiao fe6be04970 feat(ble): support ble mesh log module
(cherry picked from commit 066e1d3f1b155e14942c7bfab36147c7b5b60d93)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:49 +08:00
Zhou Xiao 3d99a1d8b1 feat(ble): support host & hci log module
(cherry picked from commit dd4cbe5e001aa9c89d45ce6bd72822f80f220e89)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:47 +08:00
Zhou Xiao 5b0776ab2d change(ble): replaced ul log codes with template
(cherry picked from commit d353bf280257b8e1f9e34b6d676f5a8af2eb2245)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:44 +08:00
Zhou Xiao c33b69e073 change(ble): replaced le audio log codes with template
(cherry picked from commit feaee0a6fee8e65c420cf4852a2edd00aa740286)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:42 +08:00
Zhou Xiao 26a592f8a2 change(ble): implemented log module template
(cherry picked from commit 8b2c176eff241a16381cfe7a95c551dd9212304a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:39 +08:00
Zhou Xiao 79f8537eb2 change(ble): updated ble log spi out ts sync module
* use freertos ts instead of esp ts for better performance
* enable ts sync sleep support by default
* use esp ts as fallback of lc time getter


(cherry picked from commit 56e42be85954bf737cd11fbc7bbbb2300750b64b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-07-08 13:15:37 +08:00
Zhou Xiao aae5e12d77 fix(ble): ensure internal malloc in ble log spi out
(cherry picked from commit d300617aa65938c54b3a77ed84dd456fd93a450d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-06-26 20:33:29 +08:00
Zhou Xiao a2cd564044 fix(ble): set timer handle to null after deletion 2025-05-30 22:37:55 +08:00
Zhou Xiao 6687749fae change(ble): make falling edge when disabling ts sync 2025-05-26 15:35:29 +08:00
Zhou Xiao 80c92bae34 fix(ble): fixed ts sync sleep support trigger 2025-05-23 19:13:12 +08:00
Zhou Xiao 0904640409 fix(ble): fixed printf va list cross function pass failure 2025-05-23 12:31:55 +08:00
Zhou Xiao 1c81d11ec3 fix(ble): fixed upper layer trans append failure bug
(cherry picked from commit 1e6bc70837410ffe7c09a77f8793d16ef042158d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:39 +08:00
Zhou Xiao 059a675e5c feat(ble): support ts sync for sleep app
(cherry picked from commit e10460ce14b9493990d7cf4e2ed330ca0233cdbe)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:36 +08:00
Zhou Xiao 4c7a13b570 feat(ble): support controller raw log print out
(cherry picked from commit ed09e97c66618f49df4070b46abe25ed315992e9)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:34 +08:00
Zhou Xiao 5be9ac3d93 feat(ble): refactored loss report module and represent frame using struct
(cherry picked from commit 9800d715a516f6c92110a015a14be1137df79edf)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:31 +08:00
Zhou Xiao e100fc790c feat(ble): support le audio log buffer separation
(cherry picked from commit cd3aa6527c558e61c225834f31bb3add0ef30b10)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:29 +08:00
Zhou Xiao a73197e886 feat(ble): optimized printf functions code size and speed
(cherry picked from commit e4be25ba6388086b93e3d10a384a3d951aa0cc20)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:26 +08:00
Zhou Xiao 9e0c4d226a feat(ble): refactored flush module and provided public flush api
(cherry picked from commit 70792443c73b279b599fece2d3b9512df010c583)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:24 +08:00
Zhou Xiao 68dd2c9a3c feat(ble): refactored ll isr buffer append and buffer flush using event handler
(cherry picked from commit bba90309e75b1cfce58372c08ccba136fd636b14)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:22 +08:00
Zhou Xiao 3d3b7caf95 feat(ble): provided dynamic spi enable/disable api
(cherry picked from commit 3568f19fef2c205556eb95c3e2ba116368f4be97)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:19 +08:00
Zhou Xiao 0e59feac9d feat(ble): support hci log buffer separation
(cherry picked from commit 16a3b2c71bb4a777f72da9a67598430d816e5e38)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:17 +08:00
Zhou Xiao c0f77d8993 feat(ble): optimized macros readability
(cherry picked from commit f8699785e9d177e9de6b9b1db73dab533f1e5bb3)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-05-22 16:55:15 +08:00
Zhou Xiao 243705c143 feat(ble): Improved SPI BLE Log functionality
* Added checksum for every frame
* Added SPI slave transaction interval workaround
* Added SPI tx done isr issue workaround
* Turned buffer flush to a menuconfig and disabled by default
* Modified packet loss write operation and trigger condition
* Optimized buffer append efficiency for controller ISR
2025-04-24 12:21:59 +08:00
Zhou Xiao 7c3b9fa56f change(ble): bugs fixed on spi ble log
* removed spi master in iram select for flash only firmware
* fixed memory issue in transaction init function
* fixed memory issue in transaction deinit function
2025-04-16 14:36:48 +08:00
Zhou Xiao 5215284a9d feat(ble): support ble log simple output via SPI interface 2025-03-17 10:44:21 +08:00