Device control method, server and storage medium

By pre-establishing the communication protocol model of each device on the server and determining the target protocol model based on the device identification and control instructions, the problem of the inability to uniformly manage different communication protocol devices in the prior art is solved, and an efficient remote management platform is realized, which reduces the Operation and maintenance costs and improve user experience.

CN114363313BActive Publication Date: 2024-11-12ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011034701.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-27
Publication Date
2024-11-12
Estimated Expiration
2040-09-27

AI Technical Summary

Technical Problem

The existing remote management platform can only manage devices that support a certain communication protocol, but cannot uniformly manage devices that support different communication protocols, resulting in high management complexity and operation and maintenance costs.

Method used

By pre-establishing the communication protocol model supported by each device on the server, determining the target protocol model based on the device identification and control instructions of the target device, issuing corresponding control parameters to execute the control instructions, and remote management of different communication protocol devices is realized.

Benefits of technology

It realizes a remote management platform that can uniformly manage devices that support different communication protocols, reduces the operation and maintenance costs of managers, and improves management convenience and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114363313B_ABST
    Figure CN114363313B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a device control method, a server and a storage medium. For devices that support different communication protocols, corresponding protocol models can be pre-established. In this way, when a remote management platform receives a control instruction for controlling a target device, the target protocol model can be determined according to the device identification of the target device and the control instruction, so that the first control parameter corresponding to the control instruction in the target protocol model is sent to the target device, so that the target device performs a corresponding operation and realizes remote management, wherein the target protocol model is a model pre-established according to the communication protocol supported by the target device. Compared with the prior art, the embodiment of the present application can manage devices that support different communication protocols with one remote management platform, so there is no need to build multiple remote management platforms, which is very convenient and reduces the operation and maintenance costs of managers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of remote control technology, and in particular to a device control method, a server and a storage medium. Background Art

[0002] Managers can remotely manage devices through the remote management platform, that is, remotely operate devices. For example, managers can use the remote management platform to enable smart meters to report the user's current electricity usage. Specifically, the remote management platform and the device exchange data based on a certain communication protocol to achieve remote management. For example, the remote management platform and the device exchange data based on the MQTT (Message Queuing Telemetry Transport) protocol to achieve remote management. Usually, a remote management platform can only manage devices that support a certain communication protocol. Summary of the invention

[0003] Based on this, the embodiments of the present application provide a device control method, a server and a storage medium, so that a remote management platform can manage devices that support different communication protocols.

[0004] In a first aspect, an embodiment of the present application provides a device control method, the method comprising: when a control instruction for controlling a target device is received, determining a target protocol model corresponding to the target device according to a device identification of the target device and the control instruction, wherein the target protocol model is a model pre-established according to a communication protocol supported by the target device; and sending a first control parameter corresponding to the control instruction in the target protocol model to the target device, so that the target device performs an operation corresponding to the control instruction.

[0005] In a second aspect, an embodiment of the present application provides a server comprising at least one processor and at least one memory; the memory is used to store a computer program; the processor is used to execute the computer program and implement the device control method as described in the first aspect when executing the computer program.

[0006] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor enables the processor to implement the device control method as described in the first aspect.

[0007] The embodiment of the present application provides a device control method, a server and a storage medium. For devices that support different communication protocols, corresponding protocol models can be pre-established. In this way, when a remote management platform receives a control instruction for controlling a target device, the target protocol model can be determined according to the device identification of the target device and the control instruction, so that the first control parameter corresponding to the control instruction in the target protocol model is sent to the target device, so that the target device performs a corresponding operation and realizes remote management, wherein the target protocol model is a model pre-established according to the communication protocol supported by the target device. Compared with the prior art, the embodiment of the present application can manage devices that support different communication protocols with one remote management platform, so there is no need to build multiple remote management platforms, which is very convenient and reduces the operation and maintenance costs of managers. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 This is a schematic diagram of an optional application scenario of each embodiment of the present application;

[0009] Figure 2 A schematic diagram of a flow chart of a device control method provided in an embodiment of the present application;

[0010] Figure 3 Another schematic diagram of a flow chart of a device control method in an embodiment of the present application;

[0011] Figure 4 A schematic block diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0012] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0013] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0014] In conjunction with the accompanying drawings, some implementation methods of this specification are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0015] The device control method in the embodiment of the present application can be applied to Figure 1In this scenario, the remote management platform 10 can connect multiple devices 20, wherein the communication protocols supported by each device 20 are different, that is, the protocol types supported by each device 20 are different. For example, some devices 20 support the MQTT protocol, while some devices 20 support the TR069 protocol, and some devices 20 support the OMADM (Open Mobile Alliance Device Management) protocol, etc.

[0016] In some embodiments, the remote management platform 10 can be deployed on a server, and the administrator can access the remote management platform 10 through a browser or an application with a browser kernel embedded therein, thereby realizing remote operation of the device 20. For example, the administrator can access the remote management platform 10 through a browser on a computer terminal, thereby remotely operating the device 20 on the browser. When the administrator accesses the remote management platform 10, the administrator can determine the administrator's management authority by logging into an account. In some embodiments, the device 20 can be a wired device, a wireless device, etc. with network access capability, for example, the device 20 can be a smart water meter, a smart electric meter, etc.

[0017] In one embodiment, a device control method is provided, such as Figure 2 As shown, the method can be applied to a remote management platform deployed on a server, and the method includes but is not limited to steps S210 to S220.

[0018] Step S210: When a control instruction for controlling a target device is received, a target protocol model corresponding to the target device is determined according to a device identification of the target device and the control instruction.

[0019] Step S220: Send the first control parameter corresponding to the control instruction in the target protocol model to the target device, so that the target device executes the operation corresponding to the control instruction.

[0020] The remote management platform receiving the control instruction may be receiving the control instruction sent by the device or terminal to the remote management platform. In some embodiments, the remote management platform receiving the control instruction may include but is not limited to the following methods:

[0021] (1) The remote management platform receives the control instructions sent by the terminal. For example, when the manager needs the smart water meter to report the water consumption, the manager can access the remote management platform through the terminal and send the control instructions of the corresponding smart water meter to the platform. In this way, the remote management platform can receive the control instructions.

[0022] (2) The remote management platform receives a control instruction sent by the first device. For example, the first device is a current sensor for detecting the working current of the second device. Based on this, when the current sensor detects that the working current of the second device is abnormal, the current sensor sends a control instruction to shut down the second device to the remote management platform. In this way, the remote management platform can receive the control instruction.

[0023] Device identification refers to information that can represent the target device. Simply put, the device identification is the identity information of the target device. For example, the device identification can include IMEI (International Mobile Equipment Identity), SN code (Serial Number), IP address, etc.

[0024] It should be noted that multiple protocol models can be pre-established on the server, and each protocol model is pre-established according to a communication protocol, that is, one protocol model corresponds to one communication protocol. In addition, control parameters are recorded in each protocol model, and the control parameters recorded in a protocol model correspond to a control instruction, for example, the control parameters recorded in the first protocol model correspond to the control instruction "monitor data traffic", and the control parameters recorded in the second protocol model correspond to the control instruction "turn on the WiFi switch". In some embodiments, the control parameter can be one or more protocol nodes, or one or more protocol parameters. It can be understood that the target protocol model is a model pre-established according to the communication protocol supported by the target device, and the first control parameter in the target protocol model corresponds to the control instruction described in step S210.

[0025] Based on this, when the remote management platform receives a control instruction, the target protocol model corresponding to the target device can be determined according to the device identification of the target device and the control instruction. It can be understood that the communication protocol corresponding to the target protocol model is the communication protocol supported by the target device. After determining the target protocol model, since the first control parameter in the target protocol model corresponds to the control instruction received by the remote management platform, the first control parameter in the target protocol model is sent to the target device, and the target device can perform the operation corresponding to the control instruction after receiving the first control parameter.

[0026] Exemplarily, two protocol models have been pre-established on the server, wherein the first protocol model corresponds to the MQTT protocol, and the first control parameter in the first protocol model includes one or more protocol parameters. For example, the first protocol model includes: [{"gpsTime":1590374995000,"latitude":23.456789,"longitude":12.345678}], then three protocol parameters are recorded in the first protocol model, namely gpsTime (representing gps time), latitude (representing longitude) and longitude (representing latitude); the second protocol model corresponds to the TR181 (Technical Report-181) protocol, then the first control parameter in the second protocol model includes one or more protocol nodes, for example, the second protocol model includes: Device.WiFi.Radio.2.Enable, then the second protocol model records the protocol nodes Device, WiFi, Radio, 2, Enable, and in addition, the first control parameter in the second protocol model corresponds to the control instruction "turn on the WiFi switch". Based on this, when the remote management platform receives the control instruction "turn on the WiFi switch" for controlling the target device, it can determine that the target protocol model is the second protocol model according to the SN code and the control instruction "turn on the WiFi switch", thereby sending the first control parameter corresponding to the control instruction in the second protocol model to the target device to turn on the WiFi switch of the target device.

[0027] In one embodiment, step S210 includes but is not limited to steps S211 to S212.

[0028] Step S211, determining the communication protocol supported by the target device according to the device identification of the target device and a preset mapping relationship table.

[0029] Step S212, determining the target protocol model according to the communication protocol and control instructions supported by the target device.

[0030] From the above, it can be known that multiple protocol models can be pre-established on the server and each protocol model corresponds to a communication protocol. In addition, each protocol model is established according to the controlled device and the controlled device usually supports a communication protocol. Therefore, when establishing the protocol model, the device identification of one or more controlled devices and the communication protocols they support can be recorded in the mapping relationship table. Based on this, the communication protocol supported by the device can be found in the mapping relationship table according to the device identification of the target device, and then the target protocol model can be determined according to the protocol type and the control instruction.

[0031] In one embodiment, step S212 includes but is not limited to steps S213 to S214.

[0032] Step S213: Filter out one or more corresponding protocol models from a plurality of preset protocol models according to the communication protocol supported by the target device.

[0033] Step S214: According to the control instruction, a protocol model corresponding to the control instruction is determined from one or more protocol models as a target protocol model.

[0034] For different types of devices, the communication protocol supported by these devices may be the same communication protocol, but these devices may have different functions due to their own hardware configurations. For example, device A, device B, and device C all support the TR181 protocol, and device A has the function of network locking, device B has the function of device binding, and device C has the function of data flow monitoring. Based on this, the three protocol models, protocol model A established according to device A, protocol model B established according to device B, and protocol model C established according to device C, all correspond to the same communication protocol, such as the TR181 protocol, but the control parameters recorded in these three protocol models are different. For example, one or more control parameters recorded in protocol model A are about network locking, one or more control parameters recorded in protocol model B are about device binding, and one or more control parameters recorded in protocol model C are about data flow monitoring. It can be understood that each protocol model corresponds to a communication protocol and a control instruction.

[0035] Based on this, one or more protocol models can be first screened out according to the communication protocols supported by the target device. These protocol models all correspond to this type of communication protocol. Then, according to the control instruction, the protocol model corresponding to the control instruction is determined among these protocol models as the target protocol model. For example, if the control instruction is to turn on the WiFi switch, the target protocol model can be determined based on this control instruction, and the first control parameter in the target protocol model corresponds to the control instruction to turn on the WiFi switch.

[0036] Exemplarily, a target protocol model corresponding to the target device has been pre-established on the server, and the target protocol model can correspond to the TR181 protocol, and when the target protocol model is established, the device identification of the target device and the communication protocol supported by the target device have been recorded in a mapping relationship table. Based on this, when the remote management platform receives a control instruction for controlling the target device, it can determine in the mapping relationship table that the communication protocol supported by the target device is the TR181 protocol according to the device identification of the target device (such as the SN code), and then find one or more protocol models corresponding to the TR181 protocol on the server, and then determine the target protocol model in these protocol models according to this control instruction. For example, if the control instruction is to turn on the WiFi switch, the first control parameter in the determined target protocol model corresponds to the control instruction to turn on the WiFi switch.

[0037] In one embodiment, if Figure 3 As shown, before step S210, the method includes but is not limited to steps S110 to S140.

[0038] Step S110: receiving device information reported by the target device, and extracting a second control parameter preset in the device information.

[0039] Step S120: determining whether a target protocol model exists according to the second control parameter.

[0040] Step S130: When it is determined that the target protocol model does not exist, a full parameter collection instruction is sent to the target device, so that the target device reports a preset third control parameter.

[0041] Step S140: establishing a target protocol model according to the third control parameter.

[0042] Before determining the target protocol model corresponding to the target device, it can be determined whether the target protocol model exists. If it exists, step S210 can be executed. If it does not exist, the target protocol model corresponding to the target device needs to be established. Based on this, the device information reported by the target device can be received. Since the device information is the reporting information generated by the target device according to the communication protocol supported by the target device, that is, the device information includes the second control parameter corresponding to the communication protocol, for example, including some necessary protocol nodes or protocol parameters specified by the communication protocol, the second control parameter can be extracted from the device information, so as to determine whether the target protocol model exists according to the second control parameter.

[0043] In some embodiments, step S120 includes but is not limited to step S121.

[0044] Step S121, matching the second control parameter with the control parameters recorded in each preset protocol model to determine whether there is a target protocol model.

[0045] Since control parameters are recorded in each protocol model, the second control parameter can be matched with each pre-established protocol model, that is, the second control parameter can be matched with the control parameters recorded in the protocol model. For example, it is determined whether the control parameters recorded in the protocol model include the second control parameter. If so, it means that the match can be made, that is, the target protocol model exists; otherwise, the target protocol model does not exist.

[0046] Therefore, it can be known from the above that when it is determined that the target protocol model does not exist, it is necessary to establish the target protocol model. Based on this, since the second control parameter in the device information can include some protocol nodes or some protocol parameters, such as mainly including some necessary protocol nodes or protocol parameters specified by the communication protocol, a full parameter collection instruction can be issued to the target device so that the target device reports the preset third control parameter. In some embodiments, the third control parameter includes all protocol nodes or all protocol parameters, such as including necessary protocol nodes or protocol parameters and optional protocol nodes or protocol parameters. It can be understood that the third control parameter includes the second control parameter. In this way, the target protocol model can be established according to the third control parameter. In some embodiments, the third control parameter can be processed and recorded in the newly created protocol model to obtain the protocol model of the corresponding target device.

[0047] In one embodiment, if Figure 3 As shown, after step S120, the method includes but is not limited to step S150.

[0048] Step S150: When it is determined that the target protocol model exists, the target protocol model is updated according to the second control parameter.

[0049] When it is determined that the target protocol model exists, it means that the corresponding protocol model has been established for the target device, and it is not necessary to establish the target protocol model. In some embodiments, the target protocol model can be updated according to the second control parameter, for example, one or more protocol nodes or protocol parameters in the second control parameter can be used to replace the same protocol nodes or protocol parameters in the target protocol model, and / or some protocol nodes or protocol parameters in the target protocol model that do not belong to the model can be deleted.

[0050] In summary, it can be understood that for devices supporting different communication protocols, corresponding protocol models can be established on the server. In this way, when the remote management platform receives a control instruction for controlling the target device, the target protocol model can be determined according to the device identification and the control instruction, and then the first control parameter corresponding to the control instruction in the target protocol model is sent to the target device, so that the target device performs the corresponding operation and realizes remote management. For example, for devices A, B and C that support different communication protocols, corresponding protocol models A, B and C can be pre-established on the server. In this way, when the remote management platform receives a control instruction for controlling device A, protocol model A can be determined, and then the first control parameter corresponding to the control instruction in protocol model A is sent to device A, so that device A performs the corresponding operation. Device B and device C are similar, and will not be repeated here. Compared with the prior art, in the embodiment of the present application, one remote management platform can manage devices that support different communication protocols, so there is no need to build multiple remote management platforms, which is very convenient and reduces the operation and maintenance costs of managers; in addition, when the manager adds a new device, the remote management of the device can be realized by establishing a corresponding protocol model on the server, thereby improving the user experience of the manager.

[0051] The present application also provides a server, such as Figure 4 As shown, it includes at least one processor and at least one memory, the memory is used to store a computer program; the processor is used to execute the computer program and implement any device control method provided in the embodiments of the present application when executing the computer program.

[0052] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0053] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements any device control method provided in the embodiment of the present application.

[0054] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed cooperatively by one or more physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a transient medium).

[0055] As is known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

[0056] Exemplarily, the computer-readable storage medium may be an internal storage unit of the server described in the foregoing embodiment, such as a hard disk or memory of the server. The computer-readable storage medium may also be an external storage device of the server, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the server.

[0057] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A device control method, characterized in that: The method comprises: When a control instruction for controlling a target device is received, a target protocol model corresponding to the target device is determined according to a device identification of the target device and the control instruction, wherein the target protocol model is a model pre-established according to a communication protocol supported by the target device; Sending a first control parameter corresponding to the control instruction in the target protocol model to the target device, so that the target device performs an operation corresponding to the control instruction; Before receiving a control instruction for controlling a target device, including: Receiving device information reported by the target device, and extracting a second control parameter preset in the device information; Determining whether the target protocol model exists according to the second control parameter; When it is determined that the target protocol model does not exist, issuing a full parameter collection instruction to the target device so that the target device reports a preset third control parameter; The target protocol model is established according to the third control parameter.

2. The method according to claim 1, characterized in that The step of determining a target protocol model corresponding to the target device according to the device identification of the target device and the control instruction includes: Determine the communication protocol supported by the target device according to the device identification of the target device and a preset mapping relationship table, wherein the mapping relationship table records the device identification of the controlled device and the communication protocol supported by the controlled device; The target protocol model is determined according to the communication protocol supported by the target device and the control instruction.

3. The method according to claim 2, characterized in that Determining the target protocol model according to the communication protocol supported by the target device and the control instruction includes: According to the communication protocol supported by the target device, one or more corresponding protocol models are selected from a plurality of preset protocol models, wherein each of the protocol models corresponds to a communication protocol and a control instruction; According to the control instruction, a protocol model corresponding to the control instruction is determined from one or more protocol models as the target protocol model.

4. The method according to claim 1, characterized in that Determining whether the target protocol model exists according to the second control parameter includes: The second control parameter is matched with the control parameters recorded in each preset protocol model to determine whether the target protocol model exists.

5. The method according to claim 1, characterized in that The method further comprises: When it is determined that the target protocol model exists, the target protocol model is updated according to the second control parameter.

6. The method according to claim 1, characterized in that The device information is reporting information generated by the target device according to a communication protocol supported by the target device.

7. A server, characterized in that: comprising at least one processor and at least one memory; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the device control method according to any one of claims 1 to 6 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the device control method according to any one of claims 1 to 6.