OTA升级

OTA升级前言本文介绍ota升级的流程烧录初始固件在components\joylink_adapter\example\joylink_extern.h文件,确保初始固件号为0#define JLP_VERSION 0烧录固件chip erase 可以清除芯片的数据文件,清除后,softAP联网需要重新连接了ap配网运行芯片,扫描二维码配网编译新版固件在components\joylink_adapter\example\joylink_extern.h文件,修
摘要由CSDN通过智能技术生成

OTA升级

前言

本文介绍ota升级的流程

烧录初始固件

在components\joylink_adapter\example\joylink_extern.h文件,确保初始固件号为0

#define JLP_VERSION  0

烧录固件
chip erase 可以清除芯片的数据文件,清除后,softAP联网需要重新连接了
在这里插入图片描述

ap配网

运行芯片,扫描二维码配网

在这里插入图片描述

编译新版固件

在components\joylink_adapter\example\joylink_extern.h文件,修改固件号,最小是1起步,具体与自增的云端固件ID保存一致

#define JLP_VERSION  5

添加固件

在这里插入图片描述
此处确保固件ID和(刚刚编译的)要添加的固件的ID一致
在这里插入图片描述

手机检查更新升级固件

先确认设备是否在线

在这里插入图片描述

点击我的-检查更新

在这里插入图片描述

立即更新

在这里插入图片描述

开始升级

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
以下是执行joylink_extern_ota.c终端的log

[DEBUG][114093][joylink_extern_ota.c][joylink_ota_get_data][595]
download_len 680496
[INFO][114147][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 1
[INFO][114196][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 2
[INFO][114211][joylink_dev_server.c][joylink_proc_server][1076]
Server org ctrl type:8:
[INFO][114214][joylink_dev_server.c][joylink_proc_server_ota_upload][874]
OTA UPLOAD ACK code 0 msg success

[INFO][114234][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 3
[INFO][114294][joylink_dev_server.c][joylink_proc_server][1076]
Server org ctrl type:12:
[INFO][114294][joylink_dev_server.c][joylink_proc_server_upload][657]
UPLOAD OK timestamp 1600936970 code 0

[INFO][114302][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 4
[INFO][114348][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 5
[INFO][114402][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 6
[INFO][114461][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 7
[INFO][114508][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 8
[INFO][114557][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 9
[INFO][114603][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 10
[INFO][114632][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 11
[INFO][114672][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 12
[INFO][114711][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 13
[INFO][114751][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 14
[INFO][114800][joylink_extern_ota.c][joylink_ota_get_data][690]
OTA download percent: 15
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

唯有云缱绻

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值