NewRemoteUpdate-22/7/19
2024-03-19 15:53:14 0 举报
upgrade
作者其他创作
大纲/内容
New App Start
Need uninstall?
no
Delete the downloaded file
Retry 3 times
UpgradeApphas been started?
yes
Record AP data to prevent configurations from being deleted after uninstallation
Display fullscreen alert page
Delete all firmware files
Start AP
Need install AP?
Init local status file
AP has been started?
Y
Wakeup UpgradeApp
Need update firmware?
Setstatus=1
AO AP SOLO need send data to UpgradeApp every time when they start.
Response
Check Sum
Delete the downloaded APK
Set status=3
has order
Delete update Config
End
Request data from AP
Delete upgradeAPK file
Popup countdown Dialog
end
Updating firmware?
AP receive UpgradeAPP's install command
Cover installation
Change status=1 to status=2
N
卸载安装需要将AP要手工输入的信息保存到本地,启动时读取本地信息
no order
1.Wait for the terminal to return information
Close APUpdate firmware
Set status = 5
AP check has order now?
download times are less than 3
{\"SN\": \"P201202000123\
2:30
Has download task?
Has AP's apk?
Notify AO close upgrading alert dialog
Has UpgradeAPK?
Timer task
send basic data to UpgradeAPK
Status file{ \"SN\": \"P201202000123\
AO AP SOLO每次重启必须主动给UPGRADE发消息所有的消息发送,必须对方回复后才停止
status:0:未下载 1:已下载 2:未安装3:安装成功4:安装失败5:下载失败
Notify AOto popup upgrade alert dialog
Check idle each 5s
Has firmware files?
Delete local updateConfig files
将所有updateconfig下载完成后,再将id等信息写到status文件中。
AP启动后还要判断当前是否处于固件安装或apk安装流程,如果是,需要通知ao弹出宕机框,弹出提示或跳转upgrade app,并且都要通知ao,
记录安装固件的结果 保存在本地
Upload Present(All firmware and apk)
Get new version and set status = 3 or 4 (success or fail)
App downloadall files? (Continue download flow?)(Check status == 0)
Need continue upgrade flow?
没有
Set status = 3
Record the versioncode
Has undownloaded files(Traverse)
断点下载思路:建一个文件给每一个固件和APK一个固定且唯一的数值,遍历上传或下载时严格按照此顺序。下载时文件扩展名为.download下载时完毕扩展名改为.apk或.bin网络恢复后找到.download文件并继续下载,如果不是最后一个下载的文件,按照枚举值继续遍历。状态 未下载 已下载 已删除(tms) 已安装 已删除(本地)
AP response data
status:0:undownload 1:has downloaded 2:not install3:install successfully4:install failed5:download failed
span style=\"font-size: inherit;\
Restart UpgradeAPP
Has installed UpgradeAPK?
Jump to UpgradeApp 'Upgrade Page'
Download all UpdateConfig files status file\"reference_id\": \"\
Clear status file
中间逻辑判断是否有未更新的固件中间缺失的流程需要补充,网络请求支持的硬件
Save data to local file
Start the download
Save data
Need install? (Traverse)
AP
0 条评论
下一页