经过进一步测试发现,esp_ble_get_cur_sendable_packets_num的值在刚开始的时候是一样的,只是进行了fast ble mesh prov的初始化的程序在开始调用了esp_ble_gattc_write_char的方法发送数据后,esp_ble_get_cur_sendable_packets_num恢复的慢,应该就是发送的慢,两者对比的打印日志如下:
进行了fast ble mesh prov的初始化的程序的OTA打印:
I (27839) hyz_gattc.c: [106] gattc_profile_event_handler event 9
I (27849) hyz_gattc.c: [288] write descr success
E (27929) hyz_ble_ota_svr.c: [87] free_buff_num 10
E (27929) hyz_ble_ota_svr.c: [87] free_buff_num 4
E (27939) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (27949) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (27959) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (27959) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (27969) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (27979) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (27989) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (27999) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28009) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28019) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28029) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28039) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (28039) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28049) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28059) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28069) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28079) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28089) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28099) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28109) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (28119) hyz_ble_ota_svr.c: [87] free_buff_num 1
未进行fast ble mesh prov的初始化的程序的OTA打印:
I (5600) hyz_gattc.c: [288] write descr success
E (5970) hyz_ble_ota_svr.c: [87] free_buff_num 10
E (5970) hyz_ble_ota_svr.c: [87] free_buff_num 4
E (5980) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (5990) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (5990) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (6000) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6000) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6000) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (6010) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6010) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6010) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6020) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6020) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (6040) hyz_ble_ota_svr.c: [87] free_buff_num 2
E (6040) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6040) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (6050) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6050) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6060) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6060) hyz_ble_ota_svr.c: [87] free_buff_num 1
E (6070) hyz_ble_ota_svr.c: [87] free_buff_num 0
E (6080) hyz_ble_ota_svr.c: [87] free_buff_num 2
- 发送部分代码
- send.png (58.38 KiB) Viewed 2645 times