diff --git a/components/bt/common/ble_log/extension/log_compression/Kconfig.in b/components/bt/common/ble_log/extension/log_compression/Kconfig.in index 47c33795121..9b2f442a547 100644 --- a/components/bt/common/ble_log/extension/log_compression/Kconfig.in +++ b/components/bt/common/ble_log/extension/log_compression/Kconfig.in @@ -15,6 +15,7 @@ config BLE_COMPRESSED_LOG_ENABLE for installation instructions. if BLE_COMPRESSED_LOG_ENABLE - source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.in" - source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.host.in" + source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.in" + source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.in" + source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.in" endif diff --git a/components/bt/common/ble_log/extension/log_compression/Kconfig.host.bluedroid.in b/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.bluedroid.in similarity index 100% rename from components/bt/common/ble_log/extension/log_compression/Kconfig.host.bluedroid.in rename to components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.bluedroid.in diff --git a/components/bt/common/ble_log/extension/log_compression/Kconfig.host.in b/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.in similarity index 92% rename from components/bt/common/ble_log/extension/log_compression/Kconfig.host.in rename to components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.in index e48fe7cc651..a4b6e0ec5bc 100644 --- a/components/bt/common/ble_log/extension/log_compression/Kconfig.host.in +++ b/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.in @@ -22,5 +22,5 @@ config BLE_HOST_COMPRESSED_LOG_BUFFER_LEN help Maximum output length for a single log -source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.host.bluedroid.in" -source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.host.nimble.in" +source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.bluedroid.in" +source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.nimble.in" diff --git a/components/bt/common/ble_log/extension/log_compression/Kconfig.host.nimble.in b/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.nimble.in similarity index 100% rename from components/bt/common/ble_log/extension/log_compression/Kconfig.host.nimble.in rename to components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.nimble.in diff --git a/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.in b/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.in new file mode 100644 index 00000000000..b9be9c9bdc4 --- /dev/null +++ b/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.in @@ -0,0 +1,28 @@ + +menuconfig BLE_ISO_COMPRESSED_LOG_ENABLE + bool "Enable BLE Audio/ISO log compression(Preview)" + depends on BLE_COMPRESSED_LOG_ENABLE + depends on BT_ISO + default n + help + Apply compression to BLE Audio/ISO protocol stack logs. Requires + base BLE compression to be enabled. Specifically optimizes log + storage and transmission for BLE Audio and ISO. + + Note: This library depends on additional Python packages. It will + function correctly only after these dependencies are installed; + refer to: + "components/bt/common/ble_log/log_compression/README.en.md" + for installation instructions. + + If the required packages are not installed, the log-compression + mechanism will remain disabled even when this Config is enabled. + +config BLE_ISO_COMPRESSED_LOG_BUFFER_LEN + int "BLE Audio/ISO log buffer length" + depends on BLE_ISO_COMPRESSED_LOG_ENABLE + default 300 + help + Maximum output length for a single log + +source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.tags.in" diff --git a/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.tags.in b/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.tags.in new file mode 100644 index 00000000000..50a1b08ee18 --- /dev/null +++ b/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.tags.in @@ -0,0 +1,62 @@ +if BLE_ISO_COMPRESSED_LOG_ENABLE + menu "Select the Audio/ISO stack log tag to be compressed" + config BLE_ISO_STACK_ERR_LOG_COMPRESSION + bool "Compress ERROR log of BLE Audio/ISO" + default y + help + The error log in the BLE Audio/ISO component will be compressed + config BLE_ISO_STACK_ERR_LOG_PRESERVE + bool "Keep the original error log statement" + depends on BLE_ISO_STACK_ERR_LOG_COMPRESSION + default y + help + When this option is enabled, the log data will be output + through both the compressed log interface and the original + UART interface at the same time, meaning that the log + statements will appear on both paths. However, please note + that this dual-output approach introduces additional code + and string constants, which will increase the size of the + firmware binary file. When this option is disabled, the + logs will no longer be printed through the original UART + output path; instead, they will only be output through the + compressed log interface. As the code and strings related + to the original UART output are omitted, the size of the + firmware binary file can be effectively reduced. + + config BLE_ISO_STACK_WARN_LOG_COMPRESSION + bool "Compress WARN log of BLE Audio/ISO" + default y + help + The warn log in the BLE Audio/ISO component will be compressed + config BLE_ISO_STACK_WARN_LOG_PRESERVE + bool "Keep the original warn log statement" + depends on BLE_ISO_STACK_WARN_LOG_COMPRESSION + default y + help + Please refer to the help information in BLE_ISO_STACK_ERR_LOG_PRESERVE + + config BLE_ISO_STACK_INFO_LOG_COMPRESSION + bool "Compress INFO log of BLE Audio/ISO" + default y + help + The info log in the BLE Audio/ISO component will be compressed + config BLE_ISO_STACK_INFO_LOG_PRESERVE + bool "Keep the original info log statement" + depends on BLE_ISO_STACK_INFO_LOG_COMPRESSION + default n + help + Please refer to the help information in BLE_ISO_STACK_ERR_LOG_PRESERVE + + config BLE_ISO_STACK_DEBUG_LOG_COMPRESSION + bool "Compress DEBUG log of BLE Audio/ISO" + default y + help + The debug log in the BLE Audio/ISO component will be compressed + config BLE_ISO_STACK_DEBUG_LOG_PRESERVE + bool "Keep the original debug log statement" + depends on BLE_ISO_STACK_DEBUG_LOG_COMPRESSION + default n + help + Please refer to the help information in BLE_ISO_STACK_ERR_LOG_PRESERVE + endmenu +endif diff --git a/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.in b/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.in similarity index 96% rename from components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.in rename to components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.in index 3a4b820d07b..2fcc2e04682 100644 --- a/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.in +++ b/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.in @@ -25,4 +25,4 @@ config BLE_MESH_COMPRESSED_LOG_BUFFER_LEN help Maximum output length for a single log -source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.tags.in" +source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.tags.in" diff --git a/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.tags.in b/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.tags.in similarity index 100% rename from components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.tags.in rename to components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.tags.in