问题1:在porting新的开发版至tuya平台上后,在运行tuyaos_demo_quickstart后,iphone手机可以扫描到设备,输入wifi密码后下一步直接显示配网失败;安卓手机会有log,显示bt超时,断开连接。iphone的log如下,请问是否能看出来什么模块有问题,log见附件。
问题2:
请问如下struct中:
typedef struct { UCHAR_T adv_type; /< Adv Type. Refer to TKL_BLE_GAP_ADV_TYPE_CONN_SCANNABLE_UNDIRECTED etc.*/ TKL_BLE_GAP_ADDR_T direct_addr; /< For Directed Advertising, you can fill in direct address */
USHORT_T adv_interval_min; /**< Range: 0x0020 to 0x4000 Time = N * 0.625 msec Time Range: 20 ms to 10.24 sec */ USHORT_T adv_interval_max; /**< Range: 0x0020 to 0x4000 Time = N * 0.625 msec Time Range: 20 ms to 10.24 sec */ UCHAR_T adv_channel_map; /**< Advertising Channel Map, 0x01 = adv channel index 37, 0x02 = adv channel index 38, 0x04 = adv channel index 39. Default Value: 0x07*/ } TKL_BLE_GAP_ADV_PARAMS_T;
adv_interval_min是在range0x0020 to 0x4000还是在后面的range 20 ms to 10.24 sec 中,这个参数是代表时间,还是需要乘0.625才代表时间,目前测试出来的是不需要乘0.625