Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Getting started with AWS IOT (1) FreeRTOS

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

AWS IOT is similar to azure IOT in that data is collected and sent to the cloud by field devices, except that different components are called by different names.

Architecture diagram

Edge software

Edge computing reduces computing power to the data source without having to bring it all back to the cloud. The AWS IoT edge can power small and large equipment from sensors to wind turbines. AWS IoT devices can securely collect data, keep device data synchronized, and communicate with each other while still using the cloud for management, analysis, and persistent storage.

Amazon FreeRTOS

Amazon FreeRTOS is an operating system for microcontrollers that allows you to easily program, deploy, secure, connect, and manage small, low-power edge devices.

Amazon FreeRTOS extends the FreeRTOS kernel, a common open source operating system for microcontrollers, through software libraries, making it easy to securely connect small, low-power devices to AWS cloud services such as AWS IoT Core or more powerful edge devices running AWS IoT Greengrass.

The microcontroller (MCU) is a single chip that contains a simple processor commonly used in electrical appliances, sensors, fitness trackers, industrial automation, automobiles and many other devices. Many of these small devices can benefit by connecting to the cloud or other local devices. For example, smart meters need to be connected to the cloud to report usage, and building security systems need to communicate locally to unlock the door when you enter the door with an identification card. Microcontrollers have limited computing power and memory capacity, and usually perform simple functional tasks. Microcontrollers often run operating systems that do not support built-in capabilities to connect to the local network or the cloud, making IoT applications a challenge. Amazon FreeRTOS can help solve this problem by providing not only the core operating system to run edge devices, but also software libraries to support easy and secure connections to the cloud (or other edge devices) from which you can collect data and perform operations for IoT applications.

Amazon FreeRTOS architecture

Amazon FreeRTOS is designed for embedded microcontrollers. It is usually brushed into the device as a single compiled image, along with all the components required by the device application. This image combines the functions written by embedded developers for the application, the software libraries provided by Amazon, the FreeRTOS kernel, and drivers and board support packages (BSP) for hardware platforms. No matter what kind of microprocessor is used, embedded application developers can use the same standardized interface for the FreeRTOS kernel and all Amazon FreeRTOS software libraries.

Start using Amazon FreeRTOS

To get started quickly, you can select hardware that supports Amazon FreeRTOS functionality from AWS Partner Device Catalog. If you want to get started quickly, but don't have the hardware, you can use the Amazon FreeRTOS Windows emulator.

Next, you can use the Amazon FreeRTOS console to customize and download the operating system by selecting the library associated with the use case. The console will guide you through this process so that you can start development immediately.

You can also find Amazon FreeRTOS on GitHub, SourceForge, or FreeRTOS.org. The console will contain all library and hardware-specific migration layers that you can selectively include or remove after download, depending on your use case. You can also access a separate FreeRTOS kernel through any of these channels. For low-power Bluetooth (BLE), you can download the source code from the Amazon FreeRTOS GitHub repository and download the Android and iOS software development kits from GitHub.

Amazon FreeRTOS is open source, so you can extend, modify, or delete any source code base at will.

Gain practical experience with these simple getting started guides.

Git download

Https://github.com/aws/amazon-freertos

Start using the FreeRTOS Windows simulator

Https://docs.aws.amazon.com/zh_cn/freertos/latest/userguide/getting_started_windows.html

Winpcap download

Https://www.winpcap.org/install/default.htm

Download Visual Studio 2017

Https://visualstudio.microsoft.com/zh-hans/downloads/?rr=https%3A%2F%2Fdocs.aws.amazon.com%2Fzh_cn%2Ffreertos%2Flatest%2Fuserguide%2Fgetting_started_windows.html

After the network card is finally configured

0 [None] FreeRTOS_IPInit 1 0 [None] vTaskStartScheduler 1. Rpcap://\ Device\ NPF_ {AD01B877-A0C1-4F33-8256-EE1F4480B70D} (Network adapter 'Intel (R) Ethernet Connection (4) I219LM'on local host) 2. Rpcap://\ Device\ NPF_ {337F7AF9-2520-4667-8EFF-2B575A98B580} (Network adapter' Microsoft' on local host) The interface that will be opened is set by "configNETWORK_INTERFACE_TO_USE" which should be defined in FreeRTOSConfig.h Attempting to open interface number 1.

Build and run the Amazon FreeRTOS demo project

Load the Amazon FreeRTOS demo into Visual Studio

In Visual Studio, from the File menu, select Open. Select File/Solution (File / solution), navigate to\ demos\ pc\ windows\ visual_studio\ aws_demos.sln, and then select Open. From the Build menu, select Build Solution to ensure that the solution has been built and there are no errors or warnings.

Run the Amazon FreeRTOS demo

Rebuild the Visual Studio project to accept the changes made in the header file. Log into the AWS IoT console. "in the navigation pane, select Test to open the MQTT client." In the subscription topic, enter freertos/demos/echo, and then select the subscription topic. From the Debug menu in Visual Studio, select Start Debugging (start debugging).

In the AWS IoT console, the MQTT client displays messages received from the FreeRTOS Windows emulator.

3 demo

Low power Bluetooth demo application (beta version)

Https://docs.aws.amazon.com/zh_cn/freertos/latest/userguide/ble-demo.html

Secure socket Echo client demo

Https://docs.aws.amazon.com/zh_cn/freertos/latest/userguide/secure-sockets-demo.html

Device Shadow Demo Application

Https://docs.aws.amazon.com/zh_cn/freertos/latest/userguide/shadow-demo.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report