# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Aos Communication Manager
Aos Communication Manager (CM) is a part of Aos system which responsible for the following tasks:
- communicate with the backend;
- download, verify and decrypt services, layers and component updates;
- monitor system resource usage;
- serve Update Managers (UM's) and Service Managers (SM's).
See architecture document for more details.
Build
Required GO packages
All requires GO packages exist under vendor
folder. Content of this folder is created with GO modules:
go mod init
go mod vendor
Native build
go build
ARM 64 build
Install arm64 toolchain:
sudo apt install gcc-aarch64-linux-gnu
Build:
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build
Configuration
CM is configured through a configuration file. The file aos_communicationmanager.cfg
should be either in current directory or specified with command line option as following:
./aos_communicationmanager -c aos_communicationmanager.cfg
The configuration file has JSON format described here. Example configuration file could be found in aos_communication.cfg
To increase log level use option -v:
./aos_communicationmanager -c aos_communicationmanager.cfg -v debug
Run
Required packages
CM needs Aos Identity and Access Manager (IAM) to be running and configured (see aos_iamanager readme) before start.
Test required packages
- [libssl-dev] - headers for TPM simulator
- [rabbitmq-server] - AMQP server
- [pyftpdlib] - light python ftp server
Test
Test all packages:
sudo -E go test ./... -v