Definition of Specification Configuration Files
Configuration Files
DEVM in the OM SDK models device management based on the module and device architectures. An edge product contains multiple modules, and a module can manage multiple devices. For example, as an edge product, Atlas 500 A2 edge stationA500 A2 edge station contains multiple modules such as the CPU, NPU, and mainboard.
- Product specification configuration file: This file defines the devices that are part of a product and specifies a name and owner module for each device. For examples, see Example of the Product Specification Configuration File.
- Module specification configuration file: A module is denoted by a configuration file prefixed with module_. Developers are required to specify both the path of the Dynamic Link Library (DLL) file and the attributes supported by the module. For examples, see Example of the Module Specification Configuration File.
Key Parameters
The following tables describe the key parameters in a product specification configuration file and module specification configuration file.
Parameter |
Mandatory/Optional |
Description |
|---|---|---|
name |
Mandatory |
Product name. |
modules |
Mandatory |
Product module dictionary. |
module_name |
Mandatory |
Module name, which must be unique. |
devices |
Mandatory |
Device list. The device name must contain 1 to 127 characters, including letters, digits, spaces, hyphens (-), and underscores (_). |
Parameter |
Mandatory/Optional |
Description |
|---|---|---|
name |
Mandatory |
Module name, which must be unique. |
id |
Mandatory |
Module ID, which must be unique. |
category |
Mandatory |
Module type. The options are as follows:
Modules obtained through secondary development are classified as extended modules (addition). |
driver |
Mandatory |
Path of the module driver (DLL). The default installation path of a driver is /usr/local/lib. If the driver file name of a custom module is libxxx.so, set the path to /usr/local/lib/libxxx.xo. |
dynamic |
Mandatory |
Device's support for dynamic insertion and removal. true for support, and false for no support. |
attributes |
Mandatory |
A key-value structured table of attributes supported by a module. A key represents an attribute name, while the value is another table containing key attribute information. For details, see Table 3. |
Parameter |
Mandatory/Optional |
Description |
|---|---|---|
id |
Mandatory |
Attribute ID, which is a positive integer and different from other attribute IDs at the same level. |
type |
Mandatory |
Data type. The options are as follows:
|
accessMode |
Mandatory |
Access mode.
NOTE:
|
description |
Optional |
Attribute description. |