Skip to main content

Communication Manager (CM)

Introduction

Communication Manager (CM) is the main AosCore component. It communicates with AosCloud and manages connections with other AosCore components such as IAM, SM, and UM. It consists of the following modules:

Communication Manager modules

ModuleDescription
fcrypta crypto module used to establish a secure connection with AosCloud and AosEdge components and to decrypt end verify data received from AosCloud.
amqphandlerserves AMQP connections with AosCloud.
cloudprotocoldescribes cloud protocol messages, constants, etc.
downloaderdownloads SOTA and FOTA update images
configparses CM configuration files.
databaseused to store persistent CM data.
alertscollects, aggregates, and sends different kinds of alerts. For example, download alerts, service errors, system errors, etc.
monitoringcollects system monitoring data (e.g. CPU, RAM, disk usage) and sends it to AosCloud.
unitstatushandlersends the current unit status and performs SOTA and FOTA updates.
iamclientprovides the communication to the AosEdge IAM.
smcontrollercommunicates with AosEdge SM's.
Update Manager controllerimplements SOTA/FOTA logic
cmservergRPC server to trigger the SOTA/FOTA update. This module is a part of the update scheduler mechanism.
statestorageservice instances state storage realization.
imagemanagerpackage responsible for storing encrypted services and layers images