CN114900558A - Universal equipment management protocol control method and device - Google Patents
Universal equipment management protocol control method and device Download PDFInfo
- Publication number
- CN114900558A CN114900558A CN202210423898.8A CN202210423898A CN114900558A CN 114900558 A CN114900558 A CN 114900558A CN 202210423898 A CN202210423898 A CN 202210423898A CN 114900558 A CN114900558 A CN 114900558A
- Authority
- CN
- China
- Prior art keywords
- equipment
- request
- device management
- equipment management
- information body
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012545 processing Methods 0.000 claims abstract description 56
- 230000004044 response Effects 0.000 claims abstract description 34
- 230000003993 interaction Effects 0.000 claims description 16
- 230000000737 periodic effect Effects 0.000 claims description 15
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 230000009471 action Effects 0.000 claims description 12
- 230000010365 information processing Effects 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 claims description 10
- 238000003032 molecular docking Methods 0.000 abstract description 10
- 238000004458 analytical method Methods 0.000 abstract description 5
- 238000007726 management method Methods 0.000 description 296
- 230000008569 process Effects 0.000 description 15
- 238000004891 communication Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000007429 general method Methods 0.000 description 2
- 210000001503 joint Anatomy 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000010399 physical interaction Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a universal equipment management protocol control method and a device, wherein the method comprises the following steps: receiving a device management request; converting the device management request into a corresponding device management request message body; analyzing the equipment management request message body and determining the request type of the equipment management request message body; and calling a corresponding request processing strategy according to the type of the equipment management request message body. According to the universal equipment management protocol control method and device, the equipment management protocol format is determined, the analysis and judgment, the service is reported and the strategy is updated and selected for the equipment management request, so that various types of equipment management requests can be responded without developing a corresponding equipment management protocol docking module in the equipment management request, the operation is simple, and the response speed is high.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a universal device management protocol.
Background
The communication between intelligent devices is generally based on a TCP/IP technology, a computer serial interface, a CAN interface or other bus interfaces are adopted as communication interfaces, and the communication between different devices needs to be carried out through corresponding protocols.
With the development of industrial technology and social requirements, various device management protocols exist on the market, such as LwM2M device management protocol, oma dm device management protocol, device management protocol set by different device manufacturers, and the like. The intelligent device has no unified communication protocol, and the involved protocols are more complex and diversified. In the prior art, an equipment management server directly communicates with an interface of equipment to be connected, and when different equipment protocols are in butt joint with actual equipment, a butt joint module needs to be developed on the equipment according to the different equipment management protocols, including work of installing a development environment, reading a development document, calling library functions provided by the development environment and the like, so that the workload is large, the consumed time is long, special software engineers are required to participate, the requirement on personnel is high, and the quick access of the different equipment management protocols to the equipment cannot be realized.
Disclosure of Invention
The application provides a universal equipment management protocol control method and a universal equipment management protocol control device, which are used for solving the problems that communication among different equipment needs to develop a docking module according to different equipment management protocols and the workload is large in the prior art, and realizing that different equipment management protocols are quickly accessed into the equipment.
In a first aspect, the present application provides a method for controlling a generic device management protocol, including:
receiving a device management request issued by a device management server to a first device;
converting the equipment management request into an equipment management request information body corresponding to the first equipment;
analyzing the equipment management request information body, and determining the request type of the equipment management request information body;
monitoring the service resources of the first equipment in real time, actively reporting when the service resources of the first equipment are changed, and updating the service resources to a service cache list of the equipment management server;
calling a corresponding request processing strategy according to the type of the equipment management request information body; wherein the request processing policy specifically includes: when the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of the device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
Therefore, the received equipment management request is directly converted into the equipment management request information body corresponding to the first equipment, so that the equipment management server can better transmit the equipment management request to the first equipment. The type of the equipment management request information body is judged, and a corresponding request processing strategy is selected according to the request type, so that a more flexible processing mode can be provided for the equipment management request. And monitoring the service resources in the first equipment in real time, actively reporting when the service resources are changed, and updating the service resources to a service cache list of the equipment management server, so that the information interaction between the equipment management server and the first equipment is facilitated. Furthermore, when the device management request information body is a read operation type request or a periodic action type request, the device management request information body can directly obtain the response result of the device request from the service cache list of the device management server, the processing strategy can be used without reestablishing the interactive connection between the device management server and the first device, the load can be effectively reduced, the bandwidth, the flow and other resources can be saved, and when the device is in an off-line state, the device management request can also be responded. Compared with the prior art that when the first device is connected with different device management protocols, complex operation of corresponding docking modules needs to be developed on the device according to the different device management protocols, the device management protocol format determination, the analysis judgment, the service reporting and the strategy updating selection are carried out on the device management request, the device management protocol docking modules which do not need to be developed and responded on the device can also respond to various types of device management requests, the operation is simple, and the response speed is high.
In one implementation, the converting the device management request into a device management request information body corresponding to the first device specifically includes:
calling the storage content of an equipment management protocol stack;
the device management protocol stack is used for storing different types of device management protocols;
acquiring a device management protocol type according to the type parameter of the first device;
and converting the equipment management request into a corresponding equipment management request information body according to the equipment management protocol type.
Therefore, the device management protocol type is determined in advance according to the type parameter of the device and is converted into the corresponding device request message body, the device management request message body is the message type acceptable by the first device, the first device can directly receive the device management request message body, and the device management server is favorable for better issuing the device management request to the first device.
In an implementation manner, monitoring a service resource of a first device in real time, and actively reporting when the service resource of the first device changes includes:
when the equipment management server issues the equipment management request to the first equipment, initializing a service cache list of the equipment management server, and actively subscribing service resources of the first equipment;
when the service resource of the first device is changed, the service resource is actively reported to an intermediate information processing layer;
the intermediate information processing layer selects a corresponding updating processing strategy according to the equipment management protocol type corresponding to the first equipment; wherein the update processing policy specifically includes: if the device management protocol type needs to be actively reported, processing and converting the reported content into a corresponding device management protocol format and reporting the device management protocol format to the device management protocol stack; if the device management protocol type does not need to be actively reported, the reported content is updated to a service cache list of the device management server, and the device management protocol is directly called when the device management protocol stack initiates a request.
Therefore, the service resource of the first device is actively subscribed, and the information interaction between the device management server and the first device can be realized by actively reporting when the service resource of the first device is changed, so that the device management server can more timely acquire the service resource state of the first device. Furthermore, when receiving a service resource change reported by the first device, the corresponding update processing policy is selected according to the device management protocol type corresponding to the first device, and in the subsequent device management request process, if the request is a read operation type request or a periodic action type request, the response result can be directly obtained according to the updated service cache list, so that the device management request does not need to be issued to the first device, the response speed and efficiency of the device management request are further improved, and the response flow is simplified.
In a second aspect, the present application provides a generic device management protocol control apparatus, including: the device comprises a receiving module, a conversion module, an interaction module and a response module;
the receiving module is used for receiving a device management request sent by the device management server to the first device;
the conversion module is used for converting the equipment management request into an equipment management request information body corresponding to the first equipment; analyzing the equipment management request information body, and determining the request type of the equipment management request information body;
the interaction module is used for monitoring the service resources of the first equipment in real time, actively reporting the service resources when the service resources of the first equipment are changed, and updating the service resources to a service cache list of the equipment management server;
the response module is used for calling a corresponding request processing strategy according to the type of the equipment management request information body; wherein the request processing policy specifically includes: when the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of the device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
Therefore, the received equipment management request is processed and converted through the receiving module, the conversion module, the interaction module and the response module, and different equipment management protocols are rapidly accessed into the equipment. The conversion module directly converts the received equipment management request into an equipment management request information body in a corresponding equipment management request protocol format, so that the equipment management server can better transmit the equipment management request to the first equipment. The response module selects a corresponding request processing strategy according to the request type, and can have a more flexible processing mode for the equipment management request. The interaction module monitors the service resources in the first device in real time, actively reports the service resources when the service resources are changed, and updates the service resources to the service cache list of the device management server, so that information interaction between the device management server and the first device is facilitated. Furthermore, when the device management request information body is a read operation type request or a periodic action type request, the response module may directly obtain the response result of the device request from the service cache list of the device management server, the processing policy may not require the device management server to reestablish the interactive connection with the first device, may effectively reduce the load, save resources such as bandwidth and traffic, and may also respond to the device management request when the device is in an offline state. Compared with the prior art that when the first device is connected with different device management protocols, complex operation of developing corresponding docking modules on the device according to the different device management protocols is required, the method and the device for managing the devices realize device management protocol format determination, analysis judgment, service reporting and strategy updating selection through a plurality of combinations, and the device management protocol docking modules which do not need to develop responses on the devices can also respond to various types of device management requests.
Drawings
Fig. 1 is a flowchart illustrating a general method for controlling a device management protocol according to an embodiment of the present invention;
fig. 2 is a block diagram of a general device management protocol control apparatus according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The embodiments of the present application will be described below with reference to the drawings.
The terms "first" and "second," and the like in the description and claims of this application and in the drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
First, some terms in the present application are explained so as to be easily understood by those skilled in the art.
(1) Protocol stack: protocol stack, also called Protocol stack, is a specific software implementation of a computer network Protocol suite. Since each protocol module usually has to communicate with two other protocol modules above and below, they can usually be imagined as layers in a protocol stack. The lowest level of protocols always describes physical interactions with the hardware. Each advanced level adds more features. The user application is only handling the top-most protocol.
(2) LwM2M device management protocol: (Lightweight M2M ), proposed by the development mobile alliance (OMA), is a Lightweight, standard and general internet of things device management protocol, and can be used for rapidly deploying internet of things services in a client/server mode.
(3) Oma dm device management protocol: OMA DM, also known as Client provisioning, is a protocol for managing terminals in a network via a remote server. Through OMA DM, the server can perform various management functions such as firmware update, parameter configuration, data acquisition and the like on the terminal equipment.
(4) And (4) process: the (Process) is a running activity of a program in a computer on a data set, is a basic unit for resource allocation and scheduling of a system, and is the basis of an operating system structure. A process is a running activity of a program with some independent functionality with respect to a certain data set. It is the basic unit that the operating system executes dynamically, and in the traditional operating system, the process is the basic allocation unit and the basic execution unit.
(5) A callback function: the callback function is a function passed as a parameter, and allows a user to pass a pointer of a function to be called as a parameter to a function, so that the function can flexibly use different methods when processing similar events.
Example 1
Referring to fig. 1, fig. 1 is a flowchart illustrating a general method for controlling a device management protocol according to an embodiment of the present invention. The embodiment of the invention provides a universal device management protocol control method, which comprises steps 101 to 105, and the steps are as follows:
step 101: receiving a device management request issued by a device management server to a first device;
step 102: converting the equipment management request into an equipment management request information body corresponding to the first equipment; analyzing the equipment management request information body, and determining the type of the equipment management request information body;
step 103: monitoring the service resources of the first equipment in real time, actively reporting when the service resources of the first equipment are changed, and updating the service resources to a service cache list of the equipment management server;
step 104: calling a corresponding request processing strategy according to the type of the equipment management request information body; wherein the request processing policy specifically includes: when the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of the device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
In the embodiment of the present invention, the device management server is a computing machine capable of directly issuing a control command, and includes, but is not limited to, a computer, a mobile phone, a tablet, a panel, a touch screen, and other server devices. The universal equipment management protocol control method provided by the embodiment of the invention is suitable for entity equipment needing networking, such as a telephone, a sensor and a gateway.
In the embodiment of the invention, after receiving the equipment management request sent by the equipment management server to the first equipment, the storage content of the equipment management protocol stack is called to process the equipment management request. The device management protocol stack is used for storing different types of device management protocols, including but not limited to LwM2M device management protocol, oma dm device management protocol, and proprietary device management protocol. And after receiving the equipment management request, the equipment management protocol stack selects a corresponding equipment management protocol according to the interface type parameter of the equipment to be connected, namely the first equipment, and converts the equipment management request into a corresponding equipment management request information body.
In a specific embodiment, if the device management protocol is the LwM2M device management protocol, the device management request is issued in the form of an object or resource information body; if the device is OMADM device management protocol, the device management request is issued in the form of tree structure information body; and if the private equipment management request is the private equipment management request, the management request is issued in a form of a negotiated information body.
After the information body form of the equipment management request is determined, the equipment management method also comprises the steps of analyzing the equipment request information body and judging the request type of the equipment management request information body. The type of the device management request specifically includes: an action execution class request, a write operation class request, a read operation class request, and a periodic action class request.
The service cache list of the embodiment of the present invention is used for storing device-related information of the first device, including but not limited to a hardware composition, a software version number, a module version number, a power supply mode, and the like of the first device.
As a preferred example of the embodiment of the present invention, when the device management server issues the device management request to the first device, the method further includes: and monitoring the service resources of the first equipment in real time, initializing a service cache list of the equipment when the equipment management server sends an equipment management request to the first equipment, and actively subscribing the service resources of the first equipment. Wherein the content of the service resource differs according to the type of the first device. For example, the service resources of the phone device include registration condition, firmware version, call condition, and the like; and the service resources of the devices such as the sensors comprise temperature, moderation and illumination intensity. In a specific embodiment, different first devices are connected, and corresponding service resources are also different, and the service resources of the device type are only used for describing the service resources and are not used for limiting the types and ranges of the service resources. When the service resource of the first device is changed, the service resource is actively reported to an intermediate information processing layer, and the intermediate layer selects a corresponding updating processing strategy according to the device management protocol type corresponding to the first device. Wherein the update processing policy specifically includes: if the device management protocol type needs to be actively reported, processing and converting the reported content into a corresponding device management protocol format and reporting the device management protocol format to the device management protocol stack; if the device management protocol type does not need to be actively reported, the reported content is updated to a service cache list of the device management server, and the device management protocol is directly called when the device management protocol stack initiates a request.
When the service resource of the first device is changed and the changed service resource is the resource subscribed by the device management server, the service resource is judged to be the device management protocol type needing to be actively reported, and the updated service resource is converted into a corresponding device management protocol format and uploaded to the device management protocol stack. In a specific embodiment, the intermediate information processing layer may be understood as a process of the server, where the process includes a parameter for starting a service cache list and a program for acquiring a service resource with the first device, and the process implements data acquisition and transfer through a callback function.
In the embodiment of the invention, the corresponding request processing strategy is called according to the type of the equipment management request information body. When the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of a device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
In a specific embodiment, when the request type of the device requesting the information body is a read operation type request, for example: the equipment management server issues an equipment management request for reading the software version number, and the equipment management server can directly obtain the current software version number of the first equipment from the business cache list and then return the current software version number to the equipment management server. When the equipment management server issues a restarted equipment management request, the equipment management request is converted into an equipment request information body and then is sent to the first equipment, the first equipment receives the equipment request information body and then carries out processing, a restart interface of the system is called, the equipment is restarted, and the response to the equipment management request is completed.
The embodiment of the invention provides a universal equipment management protocol control method, which directly converts a received equipment management request into an equipment management request information body corresponding to first equipment so that an equipment management server can better transmit the equipment management request to the first equipment. The type of the equipment management request information body is judged, and a corresponding request processing strategy is selected according to the request type, so that a more flexible processing mode can be provided for the equipment management request. And monitoring the service resources in the first equipment in real time, actively reporting when the service resources are changed, and updating the service resources to a service cache list of the equipment management server, so that the information interaction between the equipment management server and the first equipment is facilitated. Furthermore, when the device management request information body is a read operation type request or a periodic action type request, the device management request response result may be directly obtained from the service cache list of the device management server, the processing policy may not require the device management server to reestablish the interactive connection with the first device, may effectively reduce the load, save the resources such as bandwidth and traffic, and may also respond to the device management request when the device is in an offline state. Compared with the prior art that when the first device is connected with different device management protocols, complex operation of corresponding docking modules needs to be developed on the device according to the different device management protocols, the device management protocol format determination, the analysis judgment, the service reporting and the strategy updating selection are carried out on the device management request, the device management protocol docking modules which do not need to be developed and responded on the device can also respond to various types of device management requests, the operation is simple, and the response speed is high.
Example 2
Referring to fig. 2, fig. 2 is a block diagram of a general device management protocol control apparatus according to an embodiment of the present invention. The embodiment of the present invention further provides a universal device management protocol control module, which includes a receiving module 201, a converting module 202, an interacting module 203, and a responding module 204.
The receiving module 201 is configured to receive a device management request issued by a device management server to a first device;
the conversion module 202 is configured to convert the device management request into a device management request information body corresponding to the first device; analyzing the equipment management request information body, and determining the type of the equipment management request information body;
the interaction module 203 is configured to monitor the service resource of the first device in real time, actively report when the service resource of the first device changes, and update the service resource to a service cache list of the device management server;
the response module 204 is configured to invoke a corresponding request processing policy according to the type of the device management request information body; wherein the request processing policy specifically includes: when the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of the device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
In the embodiment of the present invention, the device management server is a computing machine capable of directly issuing a control command, and includes, but is not limited to, a computer, a mobile phone, a tablet, a panel, a touch screen, and other server devices. The universal equipment management protocol control method provided by the embodiment of the invention is suitable for entity equipment needing networking, such as a telephone, a sensor and a gateway.
In this embodiment of the present invention, the receiving module 201 is configured to receive an equipment management request issued by an equipment management server to a first device, and send the equipment management request to the converting module 202 after receiving the equipment management request issued by the equipment management server to the first device. And the conversion module calls the storage content of the equipment management protocol stack. The device management protocol stack is used for storing different types of device management protocols, including but not limited to device management protocol types such as LwM2M device management protocol, oma dm device management protocol, and private device management protocol. And after receiving the equipment management request, the equipment management protocol stack selects a corresponding equipment management protocol according to the interface type parameter of the equipment to be connected, namely the first equipment, and converts the equipment management request into a corresponding equipment management request information body.
In a specific embodiment, if the device management protocol is LwM2M, the conversion module 202 issues the device management request in the form of object or resource information; if the device is an OMADM device management protocol, the conversion module 202 issues the device management request in the form of a tree structure information body; if the device is a private device management request, the conversion module 202 issues the management request in the form of a negotiated information body.
After determining the information body form of the device management request, the conversion module 202 further analyzes the device request information body, and determines the request type of the device management request information body. The type of the device management request specifically includes: an action execution class request, a write operation class request, a read operation class request, and a periodic action class request.
The service cache list of the embodiment of the present invention is used for storing device-related information of the first device, including but not limited to a hardware composition, a software version number, a module version number, a power supply mode, and the like of the first device.
As a preferred example of the embodiment of the present invention, when the device management server issues the device management request to the first device, the method further includes: the interaction module 203 monitors the service resource of the first device in real time. When the device management server sends a device management request to the first device, initializing a service cache list of the device management server, and actively subscribing service resources of the first device. When the service resource of the first device is changed, the service resource is actively reported to an intermediate information processing layer, and the intermediate layer selects a corresponding updating processing strategy according to the device management protocol type corresponding to the first device. Wherein the update processing policy specifically includes: if the device management protocol type needs to be actively reported, processing and converting the reported content into a corresponding device management protocol format and reporting the device management protocol format to the device management protocol stack; if the device management protocol type does not need to be actively reported, the reported content is updated to a service cache list of the device management server, and the device management protocol is directly called when the device management protocol stack initiates a request.
In a specific embodiment, the intermediate information processing layer may be understood as a process of the server, where the process includes a parameter for starting a service cache list and a program for acquiring a service resource with the first device. The process realizes data acquisition and transfer through a callback function.
In this embodiment of the present invention, the response module 204 invokes a corresponding request processing policy according to the type of the device management request information body. When the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of a device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
In a specific embodiment, when the request type of the device requesting the information body is a read operation type request, for example: the equipment management server issues an equipment management request for reading the software version number, and the equipment management server can directly obtain the current software version number of the first equipment from the service cache list and then return the current software version number to the equipment management server. When the equipment management server issues a restarted equipment management request, the equipment management request is converted into an equipment request information body and then is sent to the first equipment, the first equipment receives the equipment request information body and then carries out processing, a restart interface of the system is called, the equipment is restarted, and the response to the equipment management request is completed.
The embodiment of the invention provides a universal device management protocol control device, which processes and converts received device management requests through a receiving module, a conversion module, an interaction module and a response module, so that different device management protocols can be rapidly accessed into devices. The conversion module directly converts the received equipment management request into an equipment management request information body in a corresponding equipment management request protocol format, so that the equipment management server can better transmit the equipment management request to the first equipment. The response module selects a corresponding request processing strategy according to the request type, and can have a more flexible processing mode for the equipment management request. The interaction module monitors the service resources in the first device in real time, actively reports the service resources when the service resources are changed, and updates the service resources to the service cache list of the device management server, so that information interaction between the device management server and the first device is facilitated. Furthermore, when the device management request information body is a read operation type request or a periodic action type request, the response module may directly obtain the response result of the device request from the service cache list of the device management server, the processing policy may not require the device management server to reestablish the interactive connection with the first device, may effectively reduce the load, save resources such as bandwidth and traffic, and may also respond to the device management request when the device is in an offline state. Compared with the prior art that when the first device is connected with different device management protocols, complex operation of developing corresponding docking modules on the device according to the different device management protocols is required, the method and the device for managing the devices realize device management protocol format determination, analysis judgment, service reporting and strategy updating selection through a plurality of combinations, and the device management protocol docking modules which do not need to develop responses on the devices can also respond to various types of device management requests.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and substitutions can be made without departing from the technical principle of the present invention, and these modifications and substitutions should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for controlling a generic device management protocol, comprising:
receiving a device management request issued by a device management server to a first device;
converting the equipment management request into an equipment management request information body corresponding to the first equipment;
analyzing the equipment management request information body, and determining the request type of the equipment management request information body;
monitoring the service resources of the first equipment in real time, actively reporting when the service resources of the first equipment are changed, and updating the service resources to a service cache list of the equipment management server;
calling a corresponding request processing strategy according to the type of the equipment management request information body; wherein the request processing policy specifically includes: when the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of the device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
2. The method of claim 1, wherein the converting the device management request into a device management request body corresponding to the first device specifically includes:
calling the storage content of the equipment management protocol stack;
the device management protocol stack is used for storing different types of device management protocols;
acquiring a device management protocol type according to the type parameter of the first device;
and converting the equipment management request into a corresponding equipment management request information body according to the equipment management protocol type.
3. The method as claimed in claim 2, wherein the step of monitoring the service resource of the first device in real time and actively reporting when the service resource of the first device changes includes:
when the equipment management server issues the equipment management request to the first equipment, initializing a service cache list of the equipment management server, and actively subscribing service resources of the first equipment;
when the service resource of the first device is changed, the service resource is actively reported to an intermediate information processing layer;
the intermediate information processing layer selects a corresponding updating processing strategy according to the equipment management protocol type corresponding to the first equipment; wherein the update processing policy specifically includes: if the device management protocol type needs to be actively reported, processing and converting the reported content into a corresponding device management protocol format and reporting the device management protocol format to the device management protocol stack; if the device management protocol type does not need to be actively reported, the reported content is updated to a service cache list of the device management server, and the device management protocol is directly called when the device management protocol stack initiates a request.
4. The method according to any one of claims 1 to 3, wherein the service cache list of the device management server is used to store the device-related information of the first device, and specifically includes: the first equipment comprises hardware composition, a software version number, a module version number and a power supply mode.
5. The method according to claim 1, wherein when the device management request information body is an action execution type request or a write operation type request, the method issues the device management request information body to the first device for processing, specifically:
and after receiving the equipment management request information body, the first equipment calls an equipment interface corresponding to the first equipment to respond to the equipment management request information body.
6. A generic device management protocol control apparatus, comprising: the device comprises a receiving module, a conversion module, an interaction module and a response module;
the receiving module is used for receiving a device management request sent by the device management server to the first device;
the conversion module is used for converting the equipment management request into an equipment management request information body corresponding to the first equipment; analyzing the equipment management request information body, and determining the request type of the equipment management request information body;
the interaction module is used for monitoring the service resources of the first equipment in real time, actively reporting the service resources when the service resources of the first equipment are changed, and updating the service resources to a service cache list of the equipment management server;
the response module is used for calling a corresponding request processing strategy according to the type of the equipment management request information body; wherein the request processing policy specifically includes: when the device management request information body is a read operation request or a periodic action request, acquiring a response result of the device request from a service cache list of the device management server; and when the equipment management request information body is an action execution type request or a write operation type request, the equipment management request information body is issued to the first equipment for processing.
7. The apparatus according to claim 6, wherein the converting module is configured to convert the device management request into a device management request information body corresponding to the first device, and specifically includes:
calling the storage content of the equipment management protocol stack;
the device management protocol stack is used for storing different types of device management protocols;
acquiring a device management protocol type according to the type parameter of the first device;
and converting the equipment management request into a corresponding equipment management request information body according to the equipment management protocol type.
8. The apparatus according to claim 7, wherein the interaction module is configured to monitor a service resource of a first device in real time, actively report the service resource of the first device when the service resource of the first device is changed, and update the service resource to a service cache list of the device management server, and specifically includes:
when the equipment management server issues the equipment management request to the first equipment, initializing a service cache list of the equipment management server, and actively subscribing service resources of the first equipment;
when the service resource of the first device is changed, the service resource is actively reported to an intermediate information processing layer;
the intermediate information processing layer selects a corresponding updating processing strategy according to the equipment management protocol type corresponding to the first equipment; wherein the update processing policy specifically includes: if the device management protocol type needs to be actively reported, processing and converting the reported content into a corresponding device management protocol format and reporting the device management protocol format to the device management protocol stack; if the device management protocol type does not need to be actively reported, the reported content is updated to a service cache list of the device management server, and the device management protocol is directly called when the device management protocol stack initiates a request.
9. The apparatus according to any one of claims 6 to 8, wherein the service cache list of the device management server is used to store the device-related information of the first device, and specifically includes: the first equipment comprises hardware composition, a software version number, a module version number and a power supply mode.
10. The apparatus according to claim 6, wherein when the device management request information body is an action execution type request or a write operation type request, the apparatus management request information body is issued to the first device for processing, specifically:
and after receiving the equipment management request information body, the first equipment calls an equipment interface corresponding to the first equipment to respond to the equipment management request information body.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210423898.8A CN114900558B (en) | 2022-04-21 | 2022-04-21 | Universal equipment management protocol control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210423898.8A CN114900558B (en) | 2022-04-21 | 2022-04-21 | Universal equipment management protocol control method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114900558A true CN114900558A (en) | 2022-08-12 |
| CN114900558B CN114900558B (en) | 2024-04-19 |
Family
ID=82717292
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210423898.8A Active CN114900558B (en) | 2022-04-21 | 2022-04-21 | Universal equipment management protocol control method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114900558B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024103943A1 (en) * | 2022-11-15 | 2024-05-23 | 西安广和通无线软件有限公司 | Service processing method and apparatus, storage medium, and device |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000134208A (en) * | 1998-10-21 | 2000-05-12 | Hitachi Ltd | Information relay device |
| EP1067732A2 (en) * | 1999-07-09 | 2001-01-10 | Lsi Logic Corporation | Methods and apparatus for managing devices without network attachments |
| US20070280236A1 (en) * | 2006-06-01 | 2007-12-06 | Huawei Technologies Co., Ltd. | System and method for providing multicast service |
| WO2009129741A1 (en) * | 2008-04-25 | 2009-10-29 | 华为技术有限公司 | Method, system and apparatus for implementing cache policy control |
| CN102171993A (en) * | 2011-04-14 | 2011-08-31 | 华为技术有限公司 | Linkage strategy implementation method and apparatus, open platform veneer and device |
| CN102769630A (en) * | 2012-08-01 | 2012-11-07 | 烽火通信科技股份有限公司 | Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management |
| US20140149554A1 (en) * | 2012-11-29 | 2014-05-29 | Ricoh Co., Ltd. | Unified Server for Managing a Heterogeneous Mix of Devices |
| US20170331577A1 (en) * | 2016-05-13 | 2017-11-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Network Architecture, Methods, and Devices for a Wireless Communications Network |
| CN108234149A (en) * | 2016-12-09 | 2018-06-29 | 沈阳美行科技有限公司 | Network request management method and device |
| CN113067811A (en) * | 2021-03-17 | 2021-07-02 | 北京自如信息科技有限公司 | Protocol conversion method, device, system, electronic equipment and storage medium |
-
2022
- 2022-04-21 CN CN202210423898.8A patent/CN114900558B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000134208A (en) * | 1998-10-21 | 2000-05-12 | Hitachi Ltd | Information relay device |
| EP1067732A2 (en) * | 1999-07-09 | 2001-01-10 | Lsi Logic Corporation | Methods and apparatus for managing devices without network attachments |
| US20070280236A1 (en) * | 2006-06-01 | 2007-12-06 | Huawei Technologies Co., Ltd. | System and method for providing multicast service |
| WO2009129741A1 (en) * | 2008-04-25 | 2009-10-29 | 华为技术有限公司 | Method, system and apparatus for implementing cache policy control |
| CN102171993A (en) * | 2011-04-14 | 2011-08-31 | 华为技术有限公司 | Linkage strategy implementation method and apparatus, open platform veneer and device |
| CN102769630A (en) * | 2012-08-01 | 2012-11-07 | 烽火通信科技股份有限公司 | Conversion method for CWMP (CPE WAN Management Protocol) and UPnP (Universal Plug and Play) protocol in terminal management |
| US20140149554A1 (en) * | 2012-11-29 | 2014-05-29 | Ricoh Co., Ltd. | Unified Server for Managing a Heterogeneous Mix of Devices |
| US20170331577A1 (en) * | 2016-05-13 | 2017-11-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Network Architecture, Methods, and Devices for a Wireless Communications Network |
| CN108234149A (en) * | 2016-12-09 | 2018-06-29 | 沈阳美行科技有限公司 | Network request management method and device |
| CN113067811A (en) * | 2021-03-17 | 2021-07-02 | 北京自如信息科技有限公司 | Protocol conversion method, device, system, electronic equipment and storage medium |
Non-Patent Citations (4)
| Title |
|---|
| "American Academy of Periodontology Task Force Report on the Update to the 1999 Classification of Periodontal Diseases and Conditions.", JOURNAL OF PERIODONTOLOGY, vol. 86, 31 December 2015 (2015-12-31) * |
| HIROKAZU TANAKA;TAKUSIGE KATURA: "Classification of change detection and change blindness from near-infrared spectroscopy signals", JOURNAL OF BIOMEDICAL OPTICS, vol. 16, no. 8, 31 December 2011 (2011-12-31) * |
| 尹远阳;孙嘉琪;卢泉;杨广铭;: "基于SDN的IP RAN网络智能路由管理系统应用研究", 移动通信, no. 20, 30 October 2016 (2016-10-30) * |
| 许世明;周卫东;许波;: "电话网管理系统嵌入式协议适配器", 电信快报, no. 01, 25 February 2007 (2007-02-25) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024103943A1 (en) * | 2022-11-15 | 2024-05-23 | 西安广和通无线软件有限公司 | Service processing method and apparatus, storage medium, and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114900558B (en) | 2024-04-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112799789B (en) | Node cluster management method, device, equipment and storage medium | |
| CN114553873A (en) | SOA-based vehicle cloud cooperative control system and method and readable storage medium | |
| EP4270204A1 (en) | Multi-cloud interface adaptation method and system based on micro-service, and storage medium | |
| CN102790781B (en) | The M2M system of a kind of middleware, band sector application middleware and application process thereof | |
| CN104639654A (en) | Integrated access system and integrated access method for mass electricity information acquisition terminals | |
| CN110166524B (en) | Data center switching method, device, equipment and storage medium | |
| CN110557357A (en) | remote procedure call protocol self-adaption method, related device and server | |
| JP2012053882A (en) | Method and system for processing a scheduling task in device management | |
| US9425982B2 (en) | Server and method for providing device management service and device receiving the device management service | |
| CN104750544A (en) | Process management system and process management method applied in distributed system | |
| JP2016511451A (en) | System and method for opening network functions and associated network elements | |
| CN119030823A (en) | A distributed soft bus-based networking method, system and terminal | |
| CN114900558B (en) | Universal equipment management protocol control method and device | |
| CN104935484A (en) | A method and device for invoking home appliance services through a gateway | |
| CN101895441B (en) | Service debugging device and method for JAVA application of terminal of Internet of things | |
| CN105429900B (en) | A kind of method, apparatus and system of bandwidth speed-raising | |
| CN112953992A (en) | Network system, communication and networking method, device and storage medium | |
| CN109274715A (en) | The platform resource management system of vehicle-mounted multi-channel communication systems | |
| CN116887223A (en) | Edge controller, communication system, communication method and computer device | |
| CN113542424B (en) | Data processing method, device, equipment and readable storage medium | |
| CN113238928B (en) | A device-cloud collaborative evaluation system for audio and video big data tasks | |
| CN113099551B (en) | Communication method based on self-adaptive Beidou communication node | |
| CN100505645C (en) | Method for Detecting the Status of Devices in the Network | |
| MXPA05003667A (en) | Method and apparatus for a service integration system. | |
| JP2010146246A (en) | Framework computer program for multi-agent system, network system and inter-agent communication method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |