CN116915529A - Device management method and device, electronic device and storage medium - Google Patents

Device management method and device, electronic device and storage medium Download PDF

Info

Publication number
CN116915529A
CN116915529A CN202211441613.XA CN202211441613A CN116915529A CN 116915529 A CN116915529 A CN 116915529A CN 202211441613 A CN202211441613 A CN 202211441613A CN 116915529 A CN116915529 A CN 116915529A
Authority
CN
China
Prior art keywords
target
attribute
attributes
target equipment
equipment
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.)
Pending
Application number
CN202211441613.XA
Other languages
Chinese (zh)
Inventor
李科林
翁贵清
伍卉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211441613.XA priority Critical patent/CN116915529A/en
Publication of CN116915529A publication Critical patent/CN116915529A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a device management method, a device, electronic equipment and a computer readable storage medium, wherein the device management method comprises the following steps: acquiring first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and attributes of each device in a plurality of devices produced by the target manufacturer; based on the first information of the target manufacturer, an extensible markup language (XML) file packet corresponding to the target equipment is obtained; the target equipment refers to equipment with at least two attributes produced by the target manufacturer; receiving and responding to the request information of the client, and sending the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.

Description

Device management method and device, electronic device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a device management method, an apparatus, an electronic device, and a computer storage medium.
Background
Along with the rapid development of the Internet of things and intelligent home technology, the functions of the intelligent composite equipment are more and more abundant. For example, the intelligent composite visual door lock integrates the functions of a security camera and an intelligent doorbell besides basic functions of remote unlocking, log management, user management, temporary passwords and the like. For the novel intelligent composite equipment, a new management and control template needs to be redeveloped. But the new management and control template has long development period and high cost.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the application provides a device management method, a device, an electronic device and a computer readable storage medium, which are used for solving the problems of long development period and high cost of a management and control template of intelligent composite equipment.
The embodiment of the application provides a device management method, which is applied to a server and comprises the following steps:
acquiring first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and attributes of each device in a plurality of devices produced by the target manufacturer;
based on the first information of the target manufacturer, an extensible markup language (XML) file packet corresponding to the target equipment is obtained; the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
receiving and responding to the request information of the client, and sending the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.
The embodiment of the application also provides a device management method, which is applied to the client and comprises the following steps:
receiving second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment, and the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
Based on the second information of the target equipment, sending request information to a server, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment;
receiving an XML file packet corresponding to the target device sent by the server;
analyzing the XML file package to obtain an analysis result;
and generating a management and control template corresponding to the target equipment based on the analysis result.
The embodiment of the application also provides a device management device, which is applied to the server and comprises:
the device comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and an attribute of each device in a plurality of devices produced by the target manufacturer;
the first generation module is used for obtaining an extensible markup language (XML) file packet corresponding to the target equipment based on the first information corresponding to the target manufacturer; the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
the first sending module is used for receiving and responding to the request information of the client and sending the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.
The embodiment of the application also provides a device management device, which is applied to the client and comprises:
the first receiving module is used for receiving second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment, and the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
the second sending module is used for sending request information to a server based on the second information of the target equipment, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment;
the second receiving module is used for receiving the XML file packet corresponding to the target device sent by the server;
the analysis module is used for analyzing the XML file package to obtain an analysis result;
and the second generation module is used for generating a management and control template corresponding to the target equipment based on the analysis result.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory to execute the steps of the equipment management method according to the embodiment of the application.
The embodiment of the application also provides a computer readable storage medium which stores executable instructions which, when executed by a processor, implement the steps of the device management method according to the embodiment of the application.
The embodiment of the application provides a device management method, a device, electronic equipment and a computer storage medium. The device management method comprises the following steps: the method comprises the steps that a server obtains first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and attributes of each device in a plurality of devices produced by the target manufacturer; the server obtains an extensible markup language (XML) file packet corresponding to the target equipment based on the first information of the target manufacturer; the target equipment refers to equipment with at least two attributes produced by the target manufacturer; the client receives second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment; the client sends request information to the server based on the second information of the target equipment, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment; the server receives and responds to the request information of the client and sends the XML file packet to the client; the client receives an XML file packet corresponding to the target device sent by the server; the client analyzes the XML file package to obtain an analysis result; and the client generates a management and control template corresponding to the target equipment based on the analysis result. According to the device management method provided by the embodiment of the application, the client side realizes automatic generation of the management and control template of the target device through the XML file packet configured on the server, shortens the development period of the management and control template of the target device, and reduces the development cost of the management and control template of the target device.
Drawings
Fig. 1 is a schematic flow chart of a device management method according to an embodiment of the present application;
fig. 2 is a flow chart of a second device management method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a device management method according to a first application example of the present application;
FIG. 4 is a schematic architecture diagram of a control system of an intelligent composite device according to a first application example of the present application;
FIG. 5 is a flowchart of a device management method according to a second embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus management device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a second device management apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
So that the manner in which the features and objects of the present application can be understood in more detail, a more particular description of the application, briefly summarized above, may be had by reference to the appended drawings, which are not necessarily limited to the embodiments described.
The following description of the technical solutions according to the embodiments of the present application will be given with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, in the embodiment of the present application, the term "and/or" is merely an association relationship describing the association object, which means that three relationships may exist, for example, a and/or B may be represented: a exists alone, A and B exist together, and B exists alone.
In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct correspondence or an indirect correspondence between the two, or may indicate that there is an association between the two, or may indicate a relationship between the two and the indicated, configured, etc.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following description describes related technologies of the embodiments of the present application, and the following related technologies may be optionally combined with the technical solutions of the embodiments of the present application as alternatives, which all belong to the protection scope of the embodiments of the present application.
Along with the rapid development of the Internet of things and intelligent home technology, the functions of the intelligent composite equipment are more and more abundant. For example, the intelligent composite door lock integrates the properties of a security camera and an intelligent doorbell besides basic properties such as remote unlocking, log management, user management, temporary passwords and the like. Aiming at the intelligent composite equipment, the related technology mainly adopts a method for developing a new control template to control the intelligent composite equipment.
But the method of developing new management templates has the following drawbacks:
first, the intelligent composite equipment is complicated to dock with the management and control template, and the binding and management and control template of the intelligent composite equipment needs to be redeveloped. And the development period of the management and control template is long, and during the period, for example, the intelligent complex door lock, the management and control template which is used as the door lock attribute of the basic attribute is also developed, so that the problem of repeated development exists.
Second, in the related art, the control template of the intelligent composite device has the characteristic of high customization. The newly developed control templates are only suitable for a certain specific intelligent composite device, such as an intelligent composite door lock, and if the corresponding control templates are in butt joint with an intelligent composite desk lamp, the related technology cannot meet the requirements. Further, for example, if the control template corresponding to the security camera attribute of the intelligent composite door lock is to be switched to the control template corresponding to the intelligent doorbell attribute, the related technology cannot meet the above requirements.
In order to solve the above-mentioned drawbacks, an embodiment of the present application provides an apparatus management method, which is used for shortening a development period of a management and control template of an intelligent composite apparatus and reducing development cost of the management and control template of the intelligent composite apparatus. The application scenario of the embodiment of the present application is described below.
The application scene of the embodiment of the application comprises a server and a client. The server and the client can communicate, and the server and the client cooperate with each other to realize the management of the intelligent composite equipment. In practical applications, the number of clients is not limited. The server may be a cloud server or an entity server. The client may be a physical device, such as a terminal device, e.g., a cell phone, a personal computer, or a tablet computer, etc. Alternatively, the client may be a software module, for example, an application installed in a physical device, or the like.
The application scenario of the embodiment of the present application is described above, and the process of executing the device management method by the server and the client is described below in conjunction with the application scenario.
Fig. 1 is a schematic flow chart of a device management method according to an embodiment of the present application. In fig. 1, the device management method is applied to a server, and includes:
step 101: acquiring first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and attributes of each device in a plurality of devices produced by the target manufacturer;
step 102: based on the first information of the target manufacturer, obtaining an extensible markup language (Extensible Markup Language, abbreviated as XML) file packet corresponding to the target equipment; the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
Step 103: receiving and responding to the request information of the client, and sending the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.
Specifically, to manage the target device, the server needs to generate a control file corresponding to the target vendor. And the server manages the target equipment of the target manufacturer according to the control file. The target vendor associated in the server may be one or more target vendors. Control files of devices produced by different target vendors are typically not interoperable. In step 101, the devices produced by the target manufacturer may be an intelligent door lock, an intelligent doorbell, an intelligent desk lamp, and the like. The attribute of the device refers to the name or purpose of the device attribute, such as an intelligent door lock, an intelligent doorbell, an intelligent desk lamp, and the like.
In practical applications, the manner of executing step 101 may be that the server obtains the first information of the target manufacturer through the database. Specifically, the server may pre-store the content of the first information to be acquired in advance, or the server may acquire the first information corresponding to the equipment manufacturer from an online database or a database of other equipment. The step 101 may be performed in such a manner that the first information of the target manufacturer is obtained according to the input operation of the user.
In practical applications, the manner of executing step 102 may be that the server automatically generates an XML file packet corresponding to the target device according to the attribute of the target device and the pre-stored XML file template. The manner of executing step 102 may be that the server obtains the XML file package of the target device according to the input operation of the developer of the target vendor.
Based on this, in an embodiment, the obtaining, based on the first information of the target vendor, an XML file packet corresponding to the target device includes:
acquiring each of at least two attributes of the target equipment based on the first information of the target manufacturer;
based on each attribute of at least two attributes of the target equipment, obtaining an instantiation data template corresponding to each attribute of the at least two attributes of the target equipment;
based on the instantiation data templates corresponding to each of at least two attributes of the target device, configuring function jump inlets of other attributes at the dynamically configured function jump inlets of the instantiation data templates corresponding to the first attribute of the target device, and generating XML file packages corresponding to the target device; the other attributes refer to attributes of the target device other than the first attribute.
In practical application, the first information of the target manufacturer includes the attribute of each device produced by the target manufacturer, that is, includes the attribute of the target device, so that the attribute of the target device can be obtained based on the first information of the target manufacturer. In the embodiment of the application, the target device refers to an intelligent composite device, and has at least two different attributes, such as an intelligent composite door lock with an intelligent door lock attribute and an intelligent doorbell attribute. The basic attribute of the intelligent door lock as the intelligent composite door lock can be defined as a first attribute of the intelligent composite door lock, and the additional attribute of the intelligent door bell as the intelligent composite door lock can be defined as a second attribute of the intelligent composite door lock.
In the embodiment of the application, the XML file is used as a configuration file and is used for generating the management and control template corresponding to the target equipment by the client, so that the data template corresponding to each of at least two attributes of the target equipment is required to be instantiated. In general, the way the data templates are instantiated is: and setting attribute values of nodes of the XML template according to the requirements aiming at the XML template to obtain an instantiation data template. The XML template can be an existing template or a template written by a developer according to the needs.
Based on this, in an embodiment, the obtaining, based on each of the at least two attributes of the target device, an instantiation data template corresponding to each of the at least two attributes of the target device includes:
based on each attribute of at least two attributes of the target equipment, abstract definition is carried out on each attribute of the at least two attributes of the target equipment and the hierarchical structure of each attribute of the at least two attributes, so that an abstract data template corresponding to each attribute of the at least two attributes of the target equipment is obtained;
and setting an attribute value for a node of the abstract data template corresponding to each attribute in at least two attributes of the target equipment based on the abstract data template corresponding to each attribute in at least two attributes of the target equipment, so as to obtain an instantiation data template corresponding to each attribute in at least two attributes of the target equipment.
In practical application, taking the target equipment as a composite intelligent door lock as an example, the intelligent composite door lock has two properties of an intelligent door lock and an intelligent doorbell. The hierarchical structure of intelligent lock and intelligent doorbell corresponds its at the hierarchical structure of thing networking platform, for example intelligent lock, and it generally possesses perception layer, transmission layer and the three-layer structure of application layer at thing networking platform. The sensing layer corresponds to a composite intelligent door lock and a smart phone APP (device and client), the transmission layer corresponds to a home gateway, a base station and the like, and the application layer corresponds to an Internet of things platform (server). The developer may abstract define the hierarchy of each attribute of the target device to obtain an abstract data template that matches the target device. Taking an abstract data template of the door lock attribute of the composite intelligent door lock as an example, the node of the abstract data template is required to be configured with functions of the intelligent door lock in a physical network platform, such as fingerprint unlocking, password unlocking and the like, and is also required to be configured with a relevant platform and a protocol for docking.
Further, in practical application, taking setting an attribute value for a node of an intelligent door lock attribute of the composite intelligent door lock as an example: the propertyList node is configured with a security platform related function, the deviceTemplate node is configured with a function template of the security platform in the composite intelligent device, such as a doorbell template, a camera template, a sound box template and the like, the settingTemplate node is configured with a related docking platform and protocol, and the lockControlParam node is configured with a physical network platform related function.
After the instantiation data template corresponding to each attribute of at least two attributes of the target device is obtained, the function jump-in port of dynamic configuration of the instantiation data template corresponding to the first attribute of the target device is configured with the function jump-in ports of other attributes, and then an XML file packet corresponding to the target device can be generated.
The following describes the process of the client executing the device management method in connection with the above application scenario.
Fig. 2 is a schematic flow chart of a second device management method according to an embodiment of the present application. In fig. 2, the device management method, applied to a client, includes:
step 201: receiving second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment, and the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
Step 202: based on the second information of the target equipment, sending request information to a server, wherein the request information is used for requesting the server to acquire an XML file packet corresponding to the target equipment;
step 203: receiving an XML file packet corresponding to the target device sent by the server;
step 204: analyzing the XML file package to obtain an analysis result;
step 205: and generating a management and control template corresponding to the target equipment based on the analysis result.
In practical applications, the manner in which the client performs the step 201 may be that the client receives the second information of the target device through the operation request of the target device. Specifically, the operation request of the target device may be a binding operation and a management operation performed by the user on the client.
After receiving the attribute information of the target manufacturer and the target device to which the target device belongs, the client can request the server to acquire the XML file packet corresponding to the target device.
In order to generate a management and control template corresponding to the target device based on the XML file packet corresponding to the target device, the client must parse the XML file packet corresponding to the target device, and generate the management and control template corresponding to the target device based on the parsing result. The client may use a document object model (Document Object Model, abbreviated as DOM) parsing method, specifically: the parsing the XML file package to obtain a parsing result comprises the following steps:
Analyzing the XML file package to obtain a first attribute and other attributes of the target equipment, wherein the other attributes refer to the attributes of the target equipment except the first attribute;
based on the first attribute of the target equipment, obtaining a dynamically configured function jump-in port corresponding to the first attribute;
and obtaining a function template entry of the other attribute of the target equipment based on the dynamically configured function jump-in entry corresponding to the other attribute and the first attribute of the target equipment.
In an actual application, the generating a management and control template corresponding to the target device based on the analysis result includes:
based on the analysis result, dynamically combining attribute templates in the client side to generate a management and control template corresponding to the target equipment; the attribute templates refer to developed management and control templates corresponding to a plurality of devices produced by the target manufacturer.
The embodiment of the application provides a device management method, which comprises the following steps: the method comprises the steps that a server obtains first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and attributes of each device in a plurality of devices produced by the target manufacturer; the server obtains an extensible markup language (XML) file packet corresponding to the target equipment based on the first information of the target manufacturer; the target equipment refers to equipment with at least two attributes produced by the target manufacturer; the client receives second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment; the client sends request information to the server based on the second information of the target equipment, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment; the server receives and responds to the request information of the client and sends the XML file packet to the client; the client receives an XML file packet corresponding to the target device sent by the server; the client analyzes the XML file package to obtain an analysis result; and the client generates a management and control template corresponding to the target equipment based on the analysis result. According to the device management method provided by the embodiment of the application, the client side realizes automatic generation of the management and control template of the target device through the XML file packet configured on the server, shortens the development period of the management and control template of the target device, and reduces the development cost of the management and control template of the target device.
The application is further described below in connection with specific examples of applications:
fig. 3 is a schematic flow chart of a device management method according to a first application example of the present application. The device management method comprises the following steps:
step 301: the method comprises the steps that a server obtains first information of a target manufacturer; specific:
the first information comprises a name identifier of a target manufacturer and an attribute of each device in a plurality of devices produced by the target manufacturer; in the application example of the application, the equipment produced by the target manufacturer comprises an intelligent door lock, an intelligent doorbell, a security camera, an intelligent desk lamp and the like, which correspond to the door lock, the doorbell, the camera and the desk lamp, and the equipment has developed corresponding attribute templates. For example, a door lock control template, a doorbell control template, a camera control template, and a table lamp control template.
Step 302: the server obtains an XML file packet corresponding to the target equipment based on the first information of the target manufacturer, and the XML file packet is specifically:
the target device has at least two attributes and is an intelligent composite device. Fig. 4 is a schematic architecture diagram of a management and control system of an intelligent composite device according to a first application example of the present application. In fig. 4, the intelligent composite apparatus includes a power module (not shown), a wireless communication module, an intelligent security module, and the like. The wireless communication module can adopt one or more of a ZigBee module, a Bluetooth module, a Long Range Radio (LoRa) module and a WiFi module. The wireless communication module is used for interacting with a physical network platform. The intelligent communication module is used for interacting with the intelligent communication platform to realize voice and/or video communication functions. The intelligent security module is used for interacting with the security platform, and achieving functions of picture transmission, abnormal alarming, camera parameter setting and the like. The physical network platform, the intelligent call platform and the security platform interact with the server through the client (an intelligent terminal APP example is used in the figure). In practical application, the intelligent communication platform and the security platform are commonly referred to as an internet of things platform together with the internet of things platform.
Taking the target device as an intelligent composite door lock as an example, the intelligent composite door lock is provided with a door lock attribute and a doorbell attribute, wherein the door lock attribute is defined as a first attribute as a basic attribute of the composite intelligent door lock, and the doorbell attribute is defined as a second attribute (or other attributes) as an additional attribute of the composite intelligent door lock.
The XML files in part of the key XML file package are configured as follows:
<controlType>14</controlType>
<propertyList>
<property>
<name>deviceTemplate</name>
<Value>doorbellTemplate</value>
</property>
<property>
<name>settingTemplate</name>
<value>sdSetting</value>
</property>
</propertyList>
<lockControlParam></lockControlParam>
<LightingLampControlParameter></LightingLampControlParameter>
the control type node is configured with a first attribute data template of the composite intelligent door lock;
the propertyList node is configured with related functions of a security platform of the composite intelligent door lock; the deviceTemplite node in the attribute list is configured with the related functions of the security platform of the composite intelligent door lock, the value of the security platform represents the second attribute of the composite intelligent door lock, and the settingTemplite is configured with the related platform and protocol of the butt joint of the composite intelligent door lock.
The lockcontrolParam and the lightingLampControlParameter nodes are configured with related functions of the platform of the Internet of things, such as attributes of a door lock, a desk lamp and the like and corresponding hierarchical structures thereof.
Step 303: the client receives second information of the target device;
specific: the second information is used for representing a target manufacturer for producing the target equipment and the attribute of the target equipment; taking the target equipment as an intelligent composite door lock as an example, the door lock attribute is defined as a first attribute as a basic attribute of the composite intelligent door lock, and the doorbell attribute is defined as a second attribute as an additional attribute of the composite intelligent door lock.
Step 304: the client sends request information to the server based on the second information of the target equipment, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment;
step 305: the server receives and responds to the request information of the client and sends the XML file packet to the client;
step 306: the client receives an XML file packet corresponding to the target device sent by the server;
step 307: the client analyzes the XML file package to obtain an analysis result; specific:
analyzing the XML file package to obtain a first attribute and other attributes of the target equipment, wherein the other attributes refer to the attributes of the target equipment except the first attribute; for example, the first attribute of the intelligent composite door lock is door lock attribute by analyzing the attribute value of the control type node in the XML file packet; analyzing an attribute value of a deviceTemplate node in the propertyList node to obtain a second attribute of the intelligent composite device, namely a doorbell attribute;
based on the first attribute of the target equipment, obtaining a dynamically configured function jump-in port corresponding to the first attribute;
and obtaining a function template entry of the other attribute of the target equipment based on the dynamically configured function jump-in entry corresponding to the other attribute and the first attribute of the target equipment.
Step 308: the client generates a management and control template corresponding to the target equipment based on the analysis result; specific:
and the client side realizes the dynamic jump of the function template based on the analysis result, the function template entry of the other attribute of the target equipment and the other attribute.
Compared with the related art, the device management method provided by the application example of the application has the following beneficial effects:
firstly, according to the device management method provided by the application example, the client side can dynamically analyze and combine the function of the management and control template of the target device by acquiring the XML file packet configured on the server, and the corresponding management and control template does not need to be developed again based on the target device, so that the development period is shortened, and the development cost is reduced.
Secondly, according to the device management method provided by the application example, the server can determine the attribute of the target device based on the first information of the target manufacturer, so that the XML file package is dynamically configured for the target device, the function of dynamically changing the management and control template of the intelligent composite device is realized, and the problem of high customization of the management and control template is solved.
The application is further described below in connection with specific application examples:
Fig. 5 is a schematic flow chart of a device management method according to a second application example of the present application. The device management method comprises the following steps:
step 501: the developer configures an XML file package for the target device based on the first information of the target manufacturer;
the first information comprises a name identifier of a target manufacturer and an attribute of each device in a plurality of devices produced by the target manufacturer; in a second application example of the present application, as shown in fig. 5, the devices produced by the target manufacturer include an intelligent door lock, an intelligent doorbell, a security camera, an intelligent desk lamp, etc., which correspond to the door lock, the doorbell, the camera, and the desk lamp, and all of the above devices have developed their corresponding attribute templates. For example, a door lock control template, a doorbell control template, a camera control template, and a table lamp control template.
Step 502: the server obtains an XML file packet corresponding to the target device based on uploading operation of a developer;
in the second application example of the present application, as shown in fig. 5, the server adopts a cloud server.
Step 503: the client acquires an XML file packet corresponding to the target device from the server through the request information;
In the second application example of the present application, as shown in fig. 5, the client adopts an intelligent terminal, on which a mobile phone APP is installed, and in which a door lock control template, a doorbell control template, a camera control template, and a desk lamp control template are stored. The target device may be a plurality of kinds, such as a first intelligent composite device with door lock and doorbell properties, and a second intelligent composite device with camera and desk lamp properties.
Step 504: and the client analyzes the XML file package, combines the existing management and control templates based on the analysis result, and dynamically forms the management and control template of the target equipment.
As shown in fig. 5, for a first intelligent composite device with door lock and doorbell attributes, a client dynamically combines an existing door lock management and control template and doorbell management and control template based on an analysis result to dynamically form the management and control template of the first intelligent composite device. And for the second intelligent composite equipment with the camera and desk lamp attributes, the client dynamically combines the existing camera management and control template and desk lamp management and control template based on the analysis result to dynamically form the management and control template of the second intelligent composite equipment.
In order to implement the device management method applied to the server provided by the embodiment of the application, the embodiment of the application also provides a device management device applied to the server. As shown in fig. 6, fig. 6 is a schematic structural diagram of an apparatus management device according to an embodiment of the present application, where the apparatus management device 600 includes:
an obtaining module 601, configured to obtain first information of a target vendor, where the first information is used to characterize a name identifier of the target vendor and an attribute of each device in a plurality of devices produced by the target vendor;
a first generating module 602, configured to obtain an XML file packet corresponding to the target device based on the first information corresponding to the target vendor; the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
a first sending module 603, configured to receive and respond to the request information of the client, and send the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.
In practical application, the first generating module 602 is specifically configured to obtain each of at least two attributes of the target device based on the first information of the target vendor;
Based on each attribute of at least two attributes of the target equipment, obtaining an instantiation data template corresponding to each attribute of the at least two attributes of the target equipment;
based on the instantiation data templates corresponding to each of at least two attributes of the target device, configuring function jump inlets of other attributes at the dynamically configured function jump inlets of the instantiation data templates corresponding to the first attribute of the target device, and generating XML file packages corresponding to the target device; the other attributes refer to attributes of the target device other than the first attribute.
In practical application, the first generating module 602 is further specifically configured to abstract and define each attribute of the at least two attributes of the target device and a hierarchical structure of each attribute of the at least two attributes based on each attribute of the at least two attributes of the target device, so as to obtain an abstract data template corresponding to each attribute of the at least two attributes of the target device;
and setting an attribute value for a node of the abstract data template corresponding to each attribute in at least two attributes of the target equipment based on the abstract data template corresponding to each attribute in at least two attributes of the target equipment, so as to obtain an instantiation data template corresponding to each attribute in at least two attributes of the target equipment.
In order to implement the device management method applied to the client provided by the embodiment of the application, the embodiment of the application also provides a device management device applied to the client. As shown in fig. 7, fig. 7 is a schematic structural diagram of a second device management apparatus according to an embodiment of the present application, where the device management apparatus 700 includes:
a first receiving module 701, configured to receive second information of a target device, where the second information is used to characterize a target manufacturer that produces the target device, and an attribute of the target device, and the target device refers to a device that is produced by the target manufacturer and has at least two attributes;
a second sending module 702, configured to send, to a server, request information based on second information of the target device, where the request information is used to request, to the server, obtaining an XML file packet corresponding to the target device;
a second receiving module 703, configured to receive an XML file packet corresponding to the target device sent by the server;
the parsing module 704 is configured to parse the XML file packet to obtain a parsing result;
and a second generating module 705, configured to generate a management and control template corresponding to the target device based on the analysis result.
In practical application, the parsing module 704 is specifically configured to parse the XML file packet to obtain a first attribute and other attributes of the target device, where the other attributes refer to attributes of the target device other than the first attribute;
based on the first attribute of the target equipment, obtaining a dynamically configured function jump-in port corresponding to the first attribute;
and obtaining a function template entry of the other attribute of the target equipment based on the dynamically configured function jump-in entry corresponding to the other attribute and the first attribute of the target equipment.
In practical application, the second generating module 705 is specifically configured to dynamically combine attribute templates in a client based on the analysis result, and generate a management and control template corresponding to the target device; the attribute templates refer to developed management and control templates corresponding to a plurality of devices produced by the target manufacturer.
It will be appreciated by those skilled in the art that the functions of the elements of the device management apparatus 600 of the type illustrated in fig. 6 and the second device management apparatus 700 of the type illustrated in fig. 7 may be understood with reference to the description of the device management method described above. The functions of each unit in the device management apparatus 600 shown in fig. 6 and the second device management apparatus 700 shown in fig. 7 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
It should be noted that: in the device management apparatus 600 and the second device management apparatus 700 according to the above embodiments, only the division of the program units is illustrated, and in practical applications, the process allocation may be performed by different program units according to needs, that is, the internal structure of the system is divided into different program units to complete all or part of the processes described above. In addition, the device management apparatus 600 and the second device management apparatus 700 provided in the above embodiments are the same as the device management method embodiment, and specific implementation processes thereof are detailed in the method embodiment, and are not described herein again.
Based on the hardware implementation of the program unit, and in order to implement the device management method provided by the embodiment of the present application, the embodiment of the present application further provides an electronic device, as shown in fig. 8, fig. 8 is a schematic diagram of the composition of the electronic device provided by the embodiment of the present application; the electronic device 800 comprises:
a processor 801 and a memory 802, the memory 802 storing a computer program, the processor 801 being configured to invoke and run the computer program stored in the memory 802 to perform the steps of the device management method according to the embodiment of the present application.
In practice, as shown in fig. 7, the components in the electronic device 800 are coupled together through a bus module 803. It is appreciated that the bus module 803 is used to enable connected communication between these components. The bus module 803 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus module 703 in fig. 7.
The embodiment of the application also provides a computer readable storage medium which stores executable instructions which, when executed by a processor, implement the steps of the device management method provided by the embodiment of the application.
In some embodiments, the storage medium may be a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM); but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup language (Hyper TextMarkup Language, HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
It should be noted that: "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a particular order or sequence.
The technical schemes described in the embodiments of the present application may be arbitrarily combined without any collision.
In the several embodiments provided in the present application, it should be understood that the disclosed method and electronic device may be implemented in other manners. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one second processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application.

Claims (10)

1. A device management method applied to a server, comprising:
acquiring first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and attributes of each device in a plurality of devices produced by the target manufacturer;
based on the first information of the target manufacturer, an extensible markup language (XML) file packet corresponding to the target equipment is obtained; the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
Receiving and responding to the request information of the client, and sending the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.
2. The method according to claim 1, wherein the obtaining an XML package corresponding to the target device based on the first information of the target vendor includes:
acquiring each of at least two attributes of the target equipment based on the first information of the target manufacturer;
based on each attribute of at least two attributes of the target equipment, obtaining an instantiation data template corresponding to each attribute of the at least two attributes of the target equipment;
based on the instantiation data templates corresponding to each of at least two attributes of the target device, a function jump entrance of dynamic configuration of the instantiation data templates corresponding to the first attribute of the target device is configured with a function jump entrance of other attributes, and an XML file packet corresponding to the target device is generated; the other attributes refer to attributes of the target device other than the first attribute.
3. The method according to claim 2, wherein the obtaining, based on each of the at least two attributes of the target device, an instantiated data template corresponding to each of the at least two attributes of the target device includes:
Based on each attribute of at least two attributes of the target equipment, abstract definition is carried out on each attribute of the at least two attributes of the target equipment and the hierarchical structure of each attribute of the at least two attributes, so that an abstract data template corresponding to each attribute of the at least two attributes of the target equipment is obtained;
and setting an attribute value for a node of the abstract data template corresponding to each attribute in at least two attributes of the target equipment based on the abstract data template corresponding to each attribute in at least two attributes of the target equipment, so as to obtain an instantiation data template corresponding to each attribute in at least two attributes of the target equipment.
4. A device management method applied to a client, comprising:
receiving second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment, and the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
based on the second information of the target equipment, sending request information to a server, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment;
Receiving an XML file packet corresponding to the target device sent by the server;
analyzing the XML file package to obtain an analysis result;
and generating a management and control template corresponding to the target equipment based on the analysis result.
5. The method of claim 4, wherein parsing the XML document package to obtain a parsing result comprises:
analyzing the XML file package to obtain a first attribute and other attributes of the target equipment, wherein the other attributes refer to the attributes of the target equipment except the first attribute;
based on the first attribute of the target equipment, obtaining a dynamically configured function jump-in port corresponding to the first attribute;
and obtaining a function template entry of the other attribute of the target equipment based on the dynamically configured function jump-in entry corresponding to the other attribute and the first attribute of the target equipment.
6. The method of claim 5, wherein generating a management template corresponding to the target device based on the parsing result comprises:
based on the analysis result, dynamically combining attribute templates in the client side to generate a management and control template corresponding to the target equipment; the attribute templates refer to developed management and control templates corresponding to a plurality of devices produced by the target manufacturer.
7. A device management apparatus applied to a server, comprising:
the device comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring first information of a target manufacturer, wherein the first information is used for representing a name identifier of the target manufacturer and an attribute of each device in a plurality of devices produced by the target manufacturer;
the first generation module is used for obtaining an extensible markup language (XML) file packet corresponding to the target equipment based on the first information corresponding to the target manufacturer; the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
the first sending module is used for receiving and responding to the request information of the client and sending the XML file packet to the client; the XML file package is used for generating a management and control template corresponding to the target equipment by the client.
8. A device management apparatus, applied to a client, comprising:
the first receiving module is used for receiving second information of target equipment, wherein the second information is used for representing a target manufacturer for producing the target equipment and attributes of the target equipment, and the target equipment refers to equipment with at least two attributes produced by the target manufacturer;
the second sending module is used for sending request information to a server based on the second information of the target equipment, wherein the request information is used for requesting the server to acquire an extensible markup language (XML) file packet corresponding to the target equipment;
The second receiving module is used for receiving the XML file packet corresponding to the target device sent by the server;
the analysis module is used for analyzing the XML file package to obtain an analysis result;
and the second generation module is used for generating a management and control template corresponding to the target equipment based on the analysis result.
9. An electronic device comprising a processor and a memory for storing a computer program, the processor being adapted to invoke and execute the computer program stored in the memory, to perform the steps of the device management method according to any of claims 1 to 3 or the steps of the device management method according to any of claims 4 to 6.
10. A computer readable storage medium storing executable instructions which, when executed by a processor, implement the steps of the device management method according to any one of claims 1 to 3 or the steps of the device management method according to any one of claims 4 to 6.
CN202211441613.XA 2022-11-17 2022-11-17 Device management method and device, electronic device and storage medium Pending CN116915529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211441613.XA CN116915529A (en) 2022-11-17 2022-11-17 Device management method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211441613.XA CN116915529A (en) 2022-11-17 2022-11-17 Device management method and device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN116915529A true CN116915529A (en) 2023-10-20

Family

ID=88361450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211441613.XA Pending CN116915529A (en) 2022-11-17 2022-11-17 Device management method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN116915529A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117636521A (en) * 2024-01-25 2024-03-01 苏州琨山通用锁具有限公司 AI-based intelligent lockset and data center interaction method and intelligent lockset production method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117636521A (en) * 2024-01-25 2024-03-01 苏州琨山通用锁具有限公司 AI-based intelligent lockset and data center interaction method and intelligent lockset production method
CN117636521B (en) * 2024-01-25 2024-04-05 苏州琨山通用锁具有限公司 AI-based intelligent lockset and data center interaction method and intelligent lockset production method

Similar Documents

Publication Publication Date Title
CN109636317B (en) Service control method, device, system and storage medium
CA2824705C (en) Communications network, computer architecture, computer-implemented method and computer program product for development and management of femtocell-based applications
CN111177246B (en) Service data processing method and device
CN101369979B (en) Communication method and system for network camera and user terminal
CN111556158B (en) Access method, access device, access equipment and storage medium of Internet of things platform
CN111596932B (en) Mirror image file generation method and device and computer readable storage medium
CN110022354A (en) Mobile application integrated approach, device, computer equipment and storage medium based on http protocol
CN116915529A (en) Device management method and device, electronic device and storage medium
CN112328585A (en) Data processing method and device
CN112243016A (en) Middleware platform, terminal equipment, 5G artificial intelligence cloud processing system and processing method
CN106452815B (en) A kind of informatization management method, apparatus and system
CN114885012B (en) System access method and system of Internet of things platform
CN112448909A (en) Electronic lock management method, device, system and storage medium
EP4369203A1 (en) Cloud platform docking debugging method and apparatus, and electronic device and storage medium
CN114253519B (en) Wisdom garden security protection management system and electronic equipment
CN116501311A (en) Code generation method, device, computing and storage medium and electronic equipment
CN115776501A (en) Block chain system architecture, management method, electronic equipment and readable storage medium
CN108769249A (en) The high extended network framework and implementation method of iOS high-performance, server and medium
WO2022245291A2 (en) Method and apparatus for managing resources, computer device and storage medium
CN114553608A (en) Method and device for accessing cloud platform
KR20140123126A (en) System and method for generating database based on SCL
CN113791766A (en) Method for combining data interfaces, electronic device and readable storage medium
CN115580641A (en) Equipment control method based on Internet of things platform, electronic equipment and storage medium
CN109739106B (en) Intelligent manufacturing platform and method for adaptively accessing intelligent manufacturing platform
CN113971191A (en) Data import method and device and computer readable storage medium

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