Page 1 of 1

【已关闭】蓝牙配网 tkl_ble_gap_adv_rsp_data_set 调用问题

Posted: 2024年 Aug 14日 21:07
by 15221584146

如下面日志,
tkl_ble_gap_callback_register
tkl_ble_gatt_callback_register
tkl_ble_gatts_service_add
tkl_ble_gap_adv_start

依次被sdk调用
tkl_ble_gap_adv_rsp_data_set 没有被sdk调用,三元组都写死在测试代码里了。
这个方法需要额外做一些什么设置吗

01-01 00:00:00 ty D][tuya_wifi_netcfg.c:787] nc_tp:2, md:0
[01-01 00:00:00 ty N][tuya_bt_link.c:61] bt startup attr:1
[01-01 00:00:00 ty D][tuya_bt_link.c:76] bt link open
[01-01 00:00:00 ty D][tuya_ble_svc.c:2018] get_wifi_list eanbled
[01-01 00:00:00 ty D][tuya_ble_svc.c:2023] get_netcfg_stat eanbled
[01-01 00:00:00 ty D][tuya_ble_svc.c:2035] get_ap_name eanbled
[01-01 00:00:00 ty N][tuya_ble_svc.c:978] upd product_id type:0 h5j4ieigoz658tla
[01-01 00:00:00 ty D][tuya_ble_svc.c:99] uuid: 20 <0x59a338>
75 75 69 64 31 33 30 33 35 38 61 32 64 63 63 65 37 62 31 38

[01-01 00:00:00 ty D][tuya_ble_svc.c:99] devid_tmp: 16 <0xffffb8915890>
79 e4 8d 04 30 03 14 82 82 34 c3 0e 1c b0 48 ff

tkl_ble_gap_callback_register
tkl_ble_gatt_callback_register
tkl_ble_gatts_service_add
[01-01 00:00:00 ty E][tuya_ble_svc.c:946] bt init err:ffff8ffa
[01-01 00:00:00 ty N][tuya_ble_svc.c:1045] ty bt sdk init success finish
[01-01 00:00:00 ty D][tuya_ble_netcfg.c:151] net_cfg sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:1992] get_wifi_list sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:1996] get_netcfg_stat sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:2004] get_ap_name sub session created
tkl_ble_gap_adv_start
[01-01 00:00:00 ty D][tuya_ble_svc.c:1347] start ble monitor
[01-01 00:00:00 ty N][tuya_svc_devos.c:216] __devos_init_evt success
[01-01 00:00:00 ty D][netcfg_module.c:116] start 0x10100 ret:0
[01-01 00:00:00 ty D][netcfg_module.c:334] netcfg module start type:0x10002
[01-01 00:00:00 ty D][ap_netcfg.c:1282] ap cfg start:65538
WIFI[1] Get IP:192.168.0.1
[01-01 00:00:00 ty D][ap_netcfg.c:1160] ap netcfg server ip:192.168.0.1
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:ap_tcp_v4,stackDepth:3584,totalstackDepth:20480,priority:5
[01-01 00:00:00 ty D][netcfg_module.c:116] start 0x10002 ret:0
[01-01 00:00:00 ty D][tal_thread.c:204] Thread:ap_tcp_v4 Exec Start. Set to Running Stat
[01-01 00:00:00 ty D][ap_netcfg.c:749] start TCP ap thread
[01-01 00:00:00 ty E][ap_netcfg.c:322] bind socket fail:-16, port:6668
[01-01 00:00:00 ty E][ap_netcfg.c:770] create server socket err
WIFI[1] Get IP:192.168.0.1
[01-01 00:00:01 ty E][ap_netcfg.c:322] bind socket fail:-16, port:6668
[01-01 00:00:01 ty E][ap_netcfg.c:770] create server socket err
WIFI[1] Get IP:192.168.0.1
WIFI[1] Get IP:192.168.0.1