基于Amazon Cloud Server的FreeRTOS系统OTA

8 篇文章 2 订阅
6 篇文章 1 订阅

1. Over-the-Air Update Prerequisites

参考链接:https://docs.aws.amazon.com/freertos/latest/userguide/ota-prereqs.html

To use over-the-air updates, you need to do the following:

并将ecdsasigner.crt的内容到copy到demos/common/include/aws_ota_codesigner_certificate.h中,如图:

 

 

 

2.进入tools\aws_config_quick_start,配置相应参数,如:

{

"afr_source_dir":"../..",

"thing_name":"freeRTOS_iot7",

"wifi_ssid":"TGI-WiFi",

"wifi_password":"29****00",

"wifi_security":"eWiFiSecurityWPA2"

}

 

3.在当前目录输入:python SetupAWS.py setup 将在iot console生成对应的Thing, Certificate和Policy, 同时demos\common\include目录下的aws_clientcredential.h和aws_clientcredential_keys.h将被更新

 

4.Make sure that vStartOTAUpdateDemoTask is the only function called in the DEMO_RUNNER_RunDemos() function in demos/common/demo_runner/aws_demo_runner.c. You can define CONFIG_OTA_UPDATE_DEMO_ENABLED in the file amazon-freertos\vendors\espressif\boards\esp32\aws_demos\config_files\aws_demo_config.h

 

5.进入demos\espressif\esp32_devkitc_esp_wrover_kit\make或amazon-freertos\vendors\espressif\boards\esp32\aws_demos目录,输入make menuconfig配置端口

 

6.Creating an OTA Update Job in AWS IoT Console like some of the below screenshots.

 

7. Input an unique ID:

 

 

8. After creating a job to tigger an OTA update and updating successfully, it will show below

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值