GithubHelp home page GithubHelp logo

vaibhavantil2 / amazon-freertos-ota-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-freertos-ota-scripts

0.0 0.0 0.0 33 KB

Scripts to aid initiating OTA updates for Amazon FreeRTOS devices.

Home Page: https://aws.amazon.com/blogs/iot/perform-ota-firmware-updates-on-espressif-esp32-devices-using-amazon-freertos-bluetooth-low-energy-mqtt-proxy/

License: MIT No Attribution

Python 100.00%

amazon-freertos-ota-scripts's Introduction

Amazon Freertos OTA Scripts

Scripts to aid initiating OTA updates for Amazon FreeRTOS devices.

For more information on Amazon FreeRTOS OTA updates, please refer to the documentation

Folder Contents

start_ota.py

This script is used to update the firmware on the device without creating a separate stream

usage: start_ota.py [-h] --profile PROFILE [--region REGION]
                    [--account ACCOUNT] [--devicetype DEVICETYPE] --name NAME
                    --role ROLE --s3bucket S3BUCKET --otasigningprofile
                    OTASIGNINGPROFILE --signingcertificateid
                    SIGNINGCERTIFICATEID [--codelocation CODELOCATION]

Script to start OTA update

optional arguments:
  -h, --help            show this help message and exit
  --profile PROFILE     Profile name created using aws configure
  --region REGION       Region
  --account ACCOUNT     Account ID
  --devicetype DEVICETYPE
                        thing|group
  --name NAME           Name of thing/group
  --role ROLE           Role for OTA updates
  --s3bucket S3BUCKET   S3 bucket to store firmware updates
  --otasigningprofile OTASIGNINGPROFILE
                        Signing profile to be created or used
  --signingcertificateid SIGNINGCERTIFICATEID
                        certificate id (not arn) to be used
  --codelocation CODELOCATION
                        base folder location (can be relative)

start_ota_stream.py

This script is used to update the firmware on the device after creating a stream. The stream creation step is needed if the file Id needs to be injected into the OTA update.

usage: start_ota_stream.py [-h] [--fileId FILEID] --profile PROFILE
                          [--region REGION] [--account ACCOUNT]
                          [--devicetype DEVICETYPE] --name NAME --role ROLE
                          --s3bucket S3BUCKET --otasigningprofile
                          OTASIGNINGPROFILE --signingcertificateid
                          SIGNINGCERTIFICATEID [--codelocation CODELOCATION]

Script to start OTA update

optional arguments:
  -h, --help            show this help message and exit
  --fileId FILEID       ID of file being streamed to the device
  --profile PROFILE     Profile name created using aws configure
  --region REGION       Region
  --account ACCOUNT     Account ID
  --devicetype DEVICETYPE
                        thing|group
  --name NAME           Name of thing/group
  --role ROLE           Role for OTA updates
  --s3bucket S3BUCKET   S3 bucket to store firmware updates
  --otasigningprofile OTASIGNINGPROFILE
                        Signing profile to be created or used
  --signingcertificateid SIGNINGCERTIFICATEID
                        certificate id (not arn) to be used
  --codelocation CODELOCATION
                        base folder location (can be relative)

ota-ble.cform.json

This file is used to create infrastructure needed to support OTA updates including S3 buckets, roles, policies and users needed to perform the updates.

Note: Access Keys are not automatically generated in the cloudformation scripts and need to be generated manually.

Warning

Before you distribute the CloudFormation template to your organization, review the template. Check IAM permissions, Deletion policies, update stack behavior, other aspects of the template, and ensure that they are as per your expectations and processes. These sample CloudFormation templates may need updates before you can use them in production. Running these templates may result in charges to your AWS account. Provisioning the supplied Products through ServiceCatalog will create AWS Services which will be billed to your account.

License Summary

This sample code is made available under the MIT-0 license. See the LICENSE file.

amazon-freertos-ota-scripts's People

Contributors

danahern avatar hyandell avatar mtalreja-a avatar tatsuhiroiida avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.