Page 1 of 1

【已解决】【TuyaOS SDK】概率性出现APP上删除设备,没有收到IPC_APP_Reset_System_CB回调

Posted: 2023年 May 25日 17:44
by you.xu

【问题描述】:
概率性出现在APP上删除设备,没有收到IPC_APP_Reset_System_CB回调
我们在IPC_APP_Reset_System_CB函数中会打印日志,但是串口输出没有搜到改日志,代码如下:

Code: Select all

VOID IPC_APP_Reset_System_CB(GW_RESET_TYPE_E type) {
    printf("reset ipc success. please restart the ipc %d\n", type);

if (type == GW_REMOTE_UNACTIVE || type == GW_REMOTE_RESET_FACTORY) {
   reset_device();
}

// IPC_APP_Notify_LED_Sound_Status_CB(IPC_RESET_SUCCESS);
// TODO
/* Developers need to restart IPC operations */
}

【复现步骤】:
1.将设备关机
2.进入APP首页,设备管理,删除设备
3.将设备开机

设备日志等级为3,log文件如附件《no_reset_callback.log》


Re: 【求助】【TuyaOS SDK】概率性出现APP上删除设备,没有收到IPC_APP_Reset_System_CB回调

Posted: 2023年 May 26日 14:36
by fallen-queen

从日志看,可能是wifi没有连上,或者tuya_adapter_wifi_station_get_status接口实现有问题,stat未变成WSS_GOT_IP状态

捕获.PNG