EasyManua.ls Logo

CSS CANedge2 - Page 56

CSS CANedge2
66 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CANedge2 Docs, Release FW 01.04.02
Meta data
S3 allows additional meta data to be attached to each file. The device adds below S3 meta data:
X-Amz-Meta-Hw: The device hardware revision
X-Amz-Meta-Fw: The device firmware revision
X-Amz-Meta-Ssid: The WiFi SSID which was used to upload the file/object
X-Amz-Meta-Timestamp: The last-modified local time timestamp of the file/object in format
YYYYMMDDTHHMMSS
X-Amz-Meta-Put-Index: S3 PUT operation counter
0.7.3.4 Heartbeat (Device File)
The device can be configured to periodically push a Heartbeat object (Device File) to the server:
[BUCKET_NAME]/[DEVICE_ID]/device.json
0.7.3.5 Configuration Over-The-Air (COTA)
The device configuration can be managed directly from the S3 server. Both the Rule Schema and the
Configuration File are synchronised with the S3 Server if OTA (over-the-air) is enabled.
Rule Schema
The Rule Schema is automatically uploaded once for each power cycle. This ensures that the server always
knows the configuration rules of a specific device. If the firmware is updated, the device automatically
uploads the Rule Schema matching the new firmware.
The Rule Schema is placed in the device root path and named as below:
[BUCKET_NAME]/[DEVICE_ID]/schema-01.02.json
Configuration File
The device periodically checks the S3 Bucket for updates to the Configuration File. If the Configuraton
File is updated on the server it is automatically downloaded and applied by the device (causing a power
cycle). If no Configuration File is located on the server it is automatically uploaded by the device.
The Configuration File is placed in the device root path and named as below:
[BUCKET_NAME]/[DEVICE_ID]/config-01.02.json
Warning: Configuration changes made via the SD card will be overwritten if a Configuration File
is on the server. To apply local changes, first remove the server Configuration File
0.7.3.6 Firmware Over-The-Air (FOTA)
The device periodically checks the S3 bucket for firmware updates if OTA (over-the-air) is enabled.
Updating firmware over-the-air works similarly to updating firmware via the SD card. The Firmware
File is placed in the device S3 root path and named firmware.bin:
[BUCKET_NAME]/[DEVICE_ID]/firmware.bin
If a valid Firmware File is added to this path, the device downloads and stores it on the SD. If the new
firmware is a MAJOR or MINOR upgrade, an updated Configuration File must also be provided.
52 CONTENTS