BLEclient
Posted: Mon Oct 23, 2017 11:34 am
I use BLEclient to print to BLEprinter. It works well, but ...
My application without BT stack, heap_free = 0x24000
If I compile with BTstack, it gives heap_free = 0x12000
After running BLEclient, connect and print, it gives heap_free = 0x9000
That means push, the system takes about 100kByte ram.
It's not too much?
Setting up BT in sdkconfig is:
CONFIG_AWS_IOT_SDK =
CONFIG_BT_ENABLED = y
CONFIG_BLUEDROID_ENABLED = y
CONFIG_BTC_TASK_STACK_SIZE = 3072
CONFIG_BLUEDROID_MEM_DEBUG =
CONFIG_CLASSIC_BT_ENABLED =
CONFIG_GATTS_ENABLE =
CONFIG_GATTC_ENABLE = y
CONFIG_BLE_SMP_ENABLE =
CONFIG_BT_STACK_NO_LOG = y
CONFIG_BT_ACL_CONNECTIONS = 2
CONFIG_BTDM_CONTROLLER_RUN_CPU = 0
CONFIG_SMP_ENABLE =
CONFIG_BT_RESERVE_DRAM = 0x10000
The last item can not be changed !!!!!
Thank you for your response.
My application without BT stack, heap_free = 0x24000
If I compile with BTstack, it gives heap_free = 0x12000
After running BLEclient, connect and print, it gives heap_free = 0x9000
That means push, the system takes about 100kByte ram.
It's not too much?
Setting up BT in sdkconfig is:
CONFIG_AWS_IOT_SDK =
CONFIG_BT_ENABLED = y
CONFIG_BLUEDROID_ENABLED = y
CONFIG_BTC_TASK_STACK_SIZE = 3072
CONFIG_BLUEDROID_MEM_DEBUG =
CONFIG_CLASSIC_BT_ENABLED =
CONFIG_GATTS_ENABLE =
CONFIG_GATTC_ENABLE = y
CONFIG_BLE_SMP_ENABLE =
CONFIG_BT_STACK_NO_LOG = y
CONFIG_BT_ACL_CONNECTIONS = 2
CONFIG_BTDM_CONTROLLER_RUN_CPU = 0
CONFIG_SMP_ENABLE =
CONFIG_BT_RESERVE_DRAM = 0x10000
The last item can not be changed !!!!!
Thank you for your response.