Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2021-12-10
WUHAN WUTOS
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing device model needs to be defined by the device developer according to the device. When the device is replaced or upgraded, the previously defined device model is no longer applicable to the transformed device. Each upgrade or replacement requires the device developer to fill in a large number of configurations. The definition item can describe the device, and there is a problem that the definition item is complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A device model description method
  • A device model description method
  • A device model description method

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention proposes a device model description method, and defines a general device model framework. The device model frame includes status, configuration, command, and event. Using the device model description method recorded in this embodiment to define the device, the host computer only needs to Read the device model to know which commands, events, states, configurations and formats the device supports, and can be called directly; after the device is upgraded, it is only necessary to re-read the device model without modifying the host computer code; the device developer only needs to It is necessary to fill in the device model frame according to the device model frame, and there is no need to modify the communication protocol, which simplifies the configuration definition items of the device model; for devices with limited memory, only the device model ID is returned, and the device model is not returned. The device model description file needs to be imported, and the device model description can be queried according to the ID.

Description

technical field [0001] The invention relates to the field of device communication of the Internet of Things, in particular to a device model description method. Background technique [0002] Most of the existing Internet of Things device communication is to define the communication protocol first. After the communication protocol is known, the cloud platform or the host computer can operate the device. After the device is upgraded and configured, the cloud platform or the host computer needs to be modified accordingly. , even if it is an IoT platform with the concept of a device model, it needs to import the device model before it can manage the corresponding devices. The existing device model needs to be defined by the device developer according to the device. When the device is replaced or upgraded, the previously defined device model is no longer applicable to the transformed device. Each upgrade or replacement requires the device developer to fill in a large number of co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L12/24
CPCH04L69/06H04L69/22H04L41/0893
Inventor 姚明远欧涛涛杨智龙张金平杨刘阳周扬胡铁
Owner WUHAN WUTOS