SDK 6.x给外联设备OTA升级的时候,每次升级下载的长度是400个字节,能不能改大点,每次下载完成的时候就会报升级失败,可能是由于信号太弱或电量不足等原因,请检查后再试

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Post Reply
13767401754
Posts: 1

16:02:53.124 DEBUG get_file_data_cb.c:177] download package offset: len: 400, offset: 8af000
[16:02:53.124 ] get_ota_percent percent: 74
[16:02:53.124 DEBUG get_file_data_cb.c:177] download package offset: len: 400, offset: 8af400
[16:02:53.124 ] get_ota_percent percent: 74
[16:02:53.124 DEBUG get_file_data_cb.c:177] download package offset: len: 400, offset: 8af800
[16:02:53.124 ] get_ota_percent percent: 74
[16:02:53.124 DEBUG get_file_data_cb.c:177] download package offset: len: 400, offset: 8afc00
[16:02:53.124 ] get_ota_percent percent: 74
[16:02:53.124 DEBUG get_file_data_cb.c:177] download package offset: len: 400, offset: 8b0000
[16:02:53.124 ] get_ota_percent percent: 74
[16:02:53.125 DEBUG get_file_data_cb.c:177] download package offset: len: 24, offset: 8b0400
[16:02:53.125 ] get_ota_percent percent: 74
[16:02:52.892 ] transfer success, transfer 2800 bytes
[16:02:53.125 ] ota_transfer_percent: 25
[16:02:53.125 ] get_ota_percent percent: 74
[16:02:53.125 ] ready to transfer 2800 bytes, address: 0xda66f0 , count : 460
[16:02:53.125 ] update_unit.checksum 1216752
[16:02:53.118 ] transfer is not finish...sleep...
[16:02:53.126 upgrade_notify_cb.c:145] download finished, wait upgrade
[16:02:53.126 upgrade_notify_cb.c:156] download finished, start upgrade
[07-03 16:02:54 ty E][95e4][tuya_svc_upgrade.c:1212] ret:93
[16:02:53.226 ] transfer success, transfer 5000 bytes
[16:02:53.226 ] ota_transfer_percent: 25
[16:02:53.226 ] get_ota_percent percent: 74
[16:02:53.226 ] ready to transfer 2800 bytes, address: 0xda8ef0 , count : 461
[16:02:53.226 ] update_unit.checksum 1270809

注册的接口函数tuya_ipc_upgrade_sdk(fw, (GET_FILE_DATA_CB)get_file_data_cb, (UPGRADE_NOTIFY_CB)upgrade_notify_cb, NULL);
上报升级进度接口tuya_ipc_upgrade_progress_report_by_type(pps_get_ota_percent(), 10);

帮忙看看什么原因

Attachments
test_log.jpg
Post Reply