简体   繁体   English

如何在AWS IoT上创建自定义OTA更新?

[英]How to create custom OTA update on AWS IoT?

I want to update some python code on Raspberry pi Device which is connected to AWS IoT Core . 我想在连接到AWS IoT Core的 Raspberry pi Device更新一些python代码

Note : I am not using Amazon FreeRTOS or Greengrass core. 注意:我没有使用Amazon FreeRTOS或Greengrass核心。

AWS has provision for custom OTA updates but it does not have any proper documentation on how to create job document. AWS提供了自定义OTA更新的规定,但没有有关如何创建作业文档的任何适当文档。 Also the documentation only has information of creating job update for FreeRTOS and Greengrass core. 此外,文档仅包含为FreeRTOS和Greengrass核心创建作业更新的信息。

I need help on how to install OTA agent on Raspberry pi and how to create job document ( document.json ) 我需要有关如何在Raspberry pi上安装OTA代理以及如何创建作业文档document.json )的帮助

Actually AWS offers OTA only for FreeRTOS and Greengrass. 实际上,AWS仅为FreeRTOS和Greengrass提供OTA。 For a Raspberry you need to handle the client side of the update yourself. 对于Raspberry,您需要自己处理更新的客户端。 In case of python this is most likely a file exchange. 如果是python,则很可能是文件交换。

What AWS IoT Jobs can do for you is the job scheduling management (means if there is an update available and status handling) and artefact handling. AWS IoT Jobs可以为您做的是工作计划管理(意味着是否有可用的更新和状态处理)和工件处理。 The artefact is either some configuration in a JSON, a pre-signed S3 link or even login information for AWS ECS to download Docker images. 工件是JSON中的某些配置,预签名的S3链接,甚至是AWS ECS可以下载Docker映像的登录信息。

A good starting point is to create a job via the management console (IoT Core -> Manage -> Jobs -> Create -> Create a custom job) 一个不错的起点是通过管理控制台创建作业(IoT核心->管理->作业->创建->创建自定义作业)

The Job document, Jobs, Job executions are quite well described in the AWS IoT Developer Guide - Jobs AWS IoT开发人员指南-Jobs中很好地描述了Job文档,Jobs,Job执行

The Job is described in the Using the AWS IoT Jobs APIs - CreateJob and contains a link to the job document (documentSource). 作业在使用AWS IoT作业API-CreateJob中进行了描述,并包含作业文档(documentSource)的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM