A device model description method
A device model and model technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve problems such as unsuitable equipment and complex definition items, and achieve the effect of simplifying configuration definition items
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] The device model is a tree-like data structure, which is used to describe the function of the device, the format of receiving data and sending data, the status of the device, configuration parameters and their format, and which commands and events the device supports. Among them, the status, configuration, and event of the device are customized by the specific device. The device has the following predefined commands: read and write configuration, read and write status, read device model, subscribe to events, unsubscribe from events, and upgrade. In addition, the device can customize commands. Because the existing device model is too abstract, device developers need to fill in a large number of configuration definition items to describe the device, and there is a problem of complex definition items. Therefore, if figure 1 As shown, the present invention provides a device model description method, which includes:
[0036] S1. Use a device function model to define all fu...
Embodiment 2
[0044] On the basis of Embodiment 1, this embodiment provides a specific structure of the device function model. In this embodiment, the device function model includes a downlink data model, an uplink data model, a predefined field model, a custom object list, and a custom enumeration list; wherein, the predefined field model includes: a device status model, a device configuration model, a command lists and event lists. Among them, it is used to describe the downlink data object, the uplink data model is used to describe the uplink data object, the device status model and the device configuration model are used to describe the device status object and the device configuration object, and these models belong to the object model; the command list and the event list belong to An enumeration type, the enumeration type is defined by the enumeration model; a custom object list is an array whose elements are objects, and the object is defined by the object model; a custom enumeration...
Embodiment 3
[0068] On the basis of Embodiment 2, this embodiment provides an embodiment of querying a device model. Assume that the lower computer in this embodiment is a water pressure gauge.
[0069] When the upper computer needs to query the device model of the lower computer, the upper computer sends a downlink data, the value is as follows:
[0070]
[0071] The lower computer replies an uplink data to the upper computer, the value is as follows:
[0072]
[0073]
[0074] The upper computer receives the uplink data and analyzes the device model. Uplink data includes status field, config field, command field and event field. Since the model is relatively long, the upper computer parses the device model, and the model is relatively long. The following explains in sequence by field:
[0075] First parse the status field. The status field is an ObjectModel structure. Examples of values are as follows:
[0076] Field ID Field Name Field type and description ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


