CN112910675A - Equipment management method, device and system - Google Patents

Equipment management method, device and system Download PDF

Info

Publication number
CN112910675A
CN112910675A CN201911227754.XA CN201911227754A CN112910675A CN 112910675 A CN112910675 A CN 112910675A CN 201911227754 A CN201911227754 A CN 201911227754A CN 112910675 A CN112910675 A CN 112910675A
Authority
CN
China
Prior art keywords
control device
sub
information
relationship information
server
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
CN201911227754.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.)
Yunding Network Technology Beijing Co Ltd
Original Assignee
Yunding Network Technology Beijing 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 Yunding Network Technology Beijing Co Ltd filed Critical Yunding Network Technology Beijing Co Ltd
Priority to CN201911227754.XA priority Critical patent/CN112910675A/en
Publication of CN112910675A publication Critical patent/CN112910675A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The embodiment of the application discloses a device management method, a device and a system, wherein the method can be applied to a server and comprises the following steps: receiving a device replacement request for indicating replacement of a first control device with a second control device, wherein the first control device is associated with at least one sub-device; determining whether a preset storage position stores first device relation information, wherein the first device relation information is used for representing a connection relation between the first control device and the at least one piece of sub-device; and in response to determining that the preset storage position stores the first device relationship information, sending the first device relationship information to the second control device, so that the second control device and the sub-device in the at least one sub-device form a network according to the first device relationship information. By adopting the technical scheme, automatic replacement of the control equipment can be realized, and the equipment maintenance cost, such as labor cost, time cost and the like, can be reduced.

Description

Equipment management method, device and system
Technical Field
The present application relates to the field of intelligent device management technologies, and in particular, to a device management method, apparatus, and system.
Background
Along with the continuous popularization of intelligent equipment, the intelligent equipment can be interconnected and intercommunicated to form an intelligent equipment system. The control device is used as a central node of the intelligent device system to manage and control each sub-device of the system, namely each intelligent device.
If the control device fails, the normal operation of all the sub-devices connected with the control device is affected. Therefore, when the control device fails, a new control device needs to be replaced in time to take over the management and control of the sub-device by the failed control device.
In the above control device replacement process, a user is required to reconfigure the connection between the new control device and each sub-device according to the connection relationship between the replaced control device and each sub-device, the configuration process requires the user to perform tedious operations, and the labor cost for system maintenance is high.
Disclosure of Invention
The embodiment of the application provides a device management method, a device and a system.
In a first aspect, an embodiment of the present application provides an apparatus management method, which is applied to a server, and the method includes: receiving a device replacement request for indicating replacement of a first control device with a second control device, wherein the first control device is associated with at least one sub-device; determining whether a preset storage position stores first device relation information, wherein the first device relation information is used for representing a connection relation between the first control device and the at least one piece of sub-device; and in response to determining that the preset storage position stores the first device relationship information, sending the first device relationship information to the second control device, so that the second control device and the sub-device in the at least one sub-device form a network according to the first device relationship information.
In some embodiments, after the receiving a device replacement request for instructing replacement of the first control device with the second control device, the method further comprises: sending a device replacement instruction to the second control device, where the device replacement instruction includes device information of the first control device; and receiving a first equipment relation information acquisition request sent by the second control equipment according to the equipment replacement instruction.
In some embodiments, after the receiving a device replacement request for instructing replacement of the first control device with the second control device, the method further comprises: and sending a device binding instruction to the second control device, where the device binding instruction is used to instruct the second control device to establish a binding relationship between the second control device and the server.
In some embodiments, the above method further comprises: receiving second device relationship information sent by the second control device, where the second device relationship information is used to represent a connection relationship between the second control device and a sub-device associated with the second control device; and replacing the first device relationship information with the second device relationship information.
In some embodiments, the above method further comprises: and receiving new second device relationship information sent by the second control device, and updating the existing second device relationship information in the preset storage position by using the new second device relationship information.
In a second aspect, an embodiment of the present application provides another device management method, which is applied to a second control device, and includes: receiving first device relationship information sent by a server, wherein the first device relationship information is used for representing a connection relationship between a first control device and at least one piece of sub-device, and the first device relationship information is sent by the server in response to receiving a device replacement request for instructing to replace the first control device with the second control device and determining that a preset storage position stores the first device relationship information; and according to the first equipment relation information, establishing a network with the sub-equipment in the at least one sub-equipment.
In some embodiments, before receiving the first device relationship information sent by the server, the method further includes: receiving a device replacement instruction sent by the server, wherein the device replacement instruction comprises device information of first control devices; and sending a first equipment relation information acquisition request to the server according to the equipment replacement instruction.
In some embodiments, before receiving the first device relationship information sent by the server, the method further includes: and receiving the equipment binding instruction sent by the server, and establishing a binding relationship with the server according to the equipment binding instruction.
In some embodiments, the establishing a network with a sub device of the at least one sub device according to the first device relationship information includes: and establishing network connection with the at least one sub-device according to the connection relationship between the first control device and the at least one sub-device recorded in the first device relationship information.
In some embodiments, the above method further comprises: generating second device relationship information and storing the second device relationship information locally, wherein the second device relationship information is used for representing the connection relationship between the second control device and the associated sub-device; and sending the second device relation information to the server.
In some embodiments, the above method further comprises: if the connection relationship between the first device and the sub-device is changed or the device information of the associated sub-device is changed, performing corresponding updating operation on the second device relationship information stored locally, wherein the change of the connection relationship between the first device and the sub-device at least comprises one or more of the following conditions: the new sub-device joins the established network, the sub-device is moved out of the established network.
In some embodiments, the generated second device relationship information is stored in a first storage location local to the second control device; and the above method further comprises: responding to the current time reaching the set backup time, and determining whether a local second storage position stores a backup file which is consistent with the second equipment relation information content currently stored in the first storage position; and in response to determining that the backup file is not stored in the second storage location, backing up the second device relationship information currently stored in the first storage location to the second storage location.
In some embodiments, after the backing up the second device relationship information currently stored in the first storage location to the second storage location, the method further includes: and sending the second device relation information currently stored in the first storage position to the server.
In a third aspect, an embodiment of the present application provides an apparatus for device management, where the apparatus is applied to a server, and the apparatus includes: a request receiving unit, configured to receive a device replacement request for instructing to replace a first control device with a second control device, where the first control device is associated with at least one sub device; an information determining unit, configured to determine whether a preset storage location stores first device relationship information, where the first device relationship information is used to represent a connection relationship between the first control device and the at least one sub device; an information sending unit, configured to send the first device relationship information to the second control device in response to determining that the first device relationship information is stored in the preset storage location, so that the second control device establishes a network with a sub device of the at least one sub device according to the first device relationship information.
In a fourth aspect, an embodiment of the present application provides another device management apparatus, which is applied to a second control device, and includes: an information receiving unit, configured to receive first device relationship information sent by a server, where the first device relationship information is used to characterize a connection relationship between a first control device and at least one sub device, and the first device relationship information is sent by the server in response to receiving a device replacement request indicating to replace the first control device with the second control device and determining that a preset storage location stores the first device relationship information; and a network establishing unit, configured to establish a network with a sub-device of the at least one sub-device according to the first device relationship information.
In a fifth aspect, the present application provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in any implementation manner of the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present application provides a processor, where the processor is configured to execute a program, where the program when executed implements the method described in any implementation manner of the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation of the first aspect or the second aspect.
In an eighth aspect, an embodiment of the present application provides an apparatus management system, where the system includes a server and a second control apparatus; the server is configured to receive a device replacement request for instructing replacement of a first control device with a second control device, where the first control device is associated with at least one sub device; determining whether a preset storage position stores first device relation information, wherein the first device relation information is used for representing a connection relation between the first control device and the at least one piece of sub-device; in response to determining that the first device relationship information is stored in the preset storage location, sending the first device relationship information to the second control device; the second control device is configured to establish a network with a sub device of the at least one sub device according to the first device relationship information.
In the device management method, apparatus, and system provided by the above embodiments of the present application, when receiving a device replacement request for instructing to replace a first control device with a second control device, a server determines whether a preset storage location stores first device relationship information describing a connection relationship between the first control device and at least one sub device, so that when determining that the first device relationship information is stored at the preset storage location, the server sends the first device relationship information to the second control device, so that the second control device establishes a network with a sub device in the at least one sub device according to the first device relationship information. In the processing process, the second control device can automatically establish connection with at least one sub-device connected with the first control device by reading and forwarding the first device relationship information and the server. The process realizes automatic replacement of the control equipment, and the scheme is applied to replacement of the control equipment, so that the maintenance cost of the equipment, such as labor cost, time cost and the like, can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a device management method according to the present application;
FIG. 3 is another exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 4 is a flow diagram of another embodiment of a device management method according to the present application;
FIG. 5 is a flow diagram of yet another embodiment of a device management method according to the present application;
FIG. 6 is a flow diagram of yet another embodiment of a device management method according to the present application;
FIG. 7 is a schematic block diagram of one embodiment of a device management apparatus according to the present application;
fig. 8 is a schematic structural diagram of another embodiment of a device management apparatus according to the present application;
FIG. 9 is a timing diagram for one embodiment of a device management system according to the present application;
FIG. 10 is a schematic diagram of an electronic device suitable for implementing some embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. The described embodiments are only some embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be understood that "system", "apparatus", "unit" and/or "module" as used herein is a method for distinguishing different components, elements, parts or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. An element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
Fig. 1 illustrates an exemplary system architecture to which some embodiments of the device management method or apparatus of the present application may be applied.
For example, as shown in fig. 1, the system architecture may include a first control device 100, a sub-device 1, 2 … N, a second control device 110, and a server 120 connected via a network. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. The first control device 100, the child devices 1, 2 … N, the second control device 110, and the server 120 may interact with each other via the network, such as sending instructions, receiving instructions, transmitting data information, and so on.
The first control apparatus 100 and the second control apparatus 110 may be any type of hardware apparatus having a control function, and may be, for example, a computer, an intelligent mobile terminal, a gateway, or the like, in which a control program is installed.
The child devices 1 and 2 … N may be hardware or software. When the electronic devices 1 and 2 … N are hardware, they may be various electronic devices, including but not limited to smart phones, tablet computers, wearable devices, car-mounted devices, Augmented Reality (AR)/Virtual Reality (VR) devices, ultra-mobile personal computers (UMPC), netbooks, Personal Digital Assistants (PDA), electronic book readers, MP3(Moving Picture Experts Group Audio Layer III) players, MP4(Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, desktop computers, smart meters, smart water meters, smart cat eyes, gateways, and other electronic devices. When the child device 1, 2 … N is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. The embodiment of the present application does not set any limit to the specific type of the electronic device.
The server 120 may be a server that provides various services, such as a background server that provides support for the first control device 100 and the second control device 110. The background server may, in response to receiving an information acquisition request sent by the first control device 100 or the second control device 110, analyze the request, and perform other processing to obtain a processing result (for example, information to be pushed), and return the processing result. The background server may also, for example, respond to receiving a device replacement request instructing to replace the first control device 100 with the second control device 110, and process the device replacement request accordingly.
It is to be noted that, when the first control apparatus 100 is a failure apparatus, the above system architecture may not include the first control apparatus 100.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the device management method provided in the embodiment of the present application is generally executed by the server 120 or the second control device 110, and accordingly, the device management apparatus is generally disposed in the server 120 or the second control device 110.
It should be understood that the number of first control devices, second control devices, sub-devices, servers in fig. 1 is merely illustrative. There may be any number of first control devices, second control devices, sub-devices, and servers, as desired for implementation.
Based on the system architecture shown in fig. 1, it can be seen that the first control device 100 has a connection relationship with the sub-devices 1 to N, and by using the device management method provided in the embodiment of the present application, the first control device 100 can be replaced by the second control device 110, that is, the second control device 110 is connected with the sub-devices 1 to N, and the connection relationship may be the same as the connection relationship between the first control device 100 and the sub-devices 1 to N.
It should be noted that, the second control device 110 is preferably a control device having the same function as that of the first control device 100, or the second control device 110 can fully implement the function of the first control device 100, so as to ensure that the function of the first control device 100 in the system architecture is not lost after the first control device 100 is replaced with the second control device 110.
Taking the server 120 shown in fig. 1 as an execution subject as an example, fig. 2 shows a flowchart of an embodiment of the device management method provided by the present application, and referring to fig. 2, the device management method provided by the present application includes:
s201, receiving a device replacement request for indicating replacement of the first control device with the second control device.
The first control device is associated with at least one sub-device.
For example, in a practical management scenario corresponding to the system architecture shown in fig. 1, when the first control device 100 needs to be replaced by the second control device 110, a manager needs to perform networking configuration on the second control device 110 so as to enable the second control device 110 to establish a communication connection with the server 120. Then, the administrator needs to log in the background management platform, and send a corresponding device replacement request to the server 120 by selecting the first control device 100 and the second control device 110 and performing the device replacement triggering operation.
In the present embodiment, the device replacement request refers to a request for instructing replacement of the first control device 100 shown in fig. 1 with the second control device 110. The first control device 100 is a control device that is associated with at least one sub-device, the sub-device may be any type of electronic device with any function, and the association between the first control device 100 and the electronic device may be any connection form such as a hard-wired connection, a wireless connection, and a functional connection. Accordingly, an executing agent (e.g., the server 120 shown in fig. 1) of the device management method may receive a device replacement request issued by an administrator by triggering a device replacement operation on the background management platform.
For example, in a home intelligent network environment, a home gateway, such as a router, is connected to an electronic device, such as a mobile phone, a tablet computer, a computer, and an intelligent appliance, in which case the router corresponds to the first control device, and each electronic device connected to the router corresponds to the sub-device. The home gateway, the electronic equipment and the home network management system form a home intelligent network together. If a user wants to replace an existing router with a new router, the device management method according to the embodiment of the present application may be configured to use the existing router as the first control device, use the new router as the second control device, and access the new router to the server of the home network management system. On this basis, the user may log in to the home network management system, in which a replacement operation of replacing the first control device (existing router) with the second control device (new router) is triggered, the triggering of which sends a device replacement request to the system server. Accordingly, the system server receives a device replacement request for replacing the first control device (existing router) with the second control device (new router).
S202, determining whether the first equipment relation information is stored in the preset storage position.
In this embodiment, the first device relationship information is used to represent a connection relationship between the first control device and the at least one sub device.
In theory, the content of the related information that can represent the first control device and the sub-device can be used as the connection relationship between the first control device and the sub-device.
For example, the preset storage location may be a storage location dedicated to storing the device relationship information and preset locally (for example, a hard disk, a memory, or the like) of the execution subject, or may be a storage location dedicated to storing the device relationship information and preset in a data storage device outside the execution subject, for example, a database server. When the preset storage position is a storage position in a data storage device outside the execution main body, a data channel is pre-established between the data storage device and the execution main body, so that the execution main body can read, request and the like data stored in the data storage device.
In this embodiment, the execution main body may determine whether the first device relationship information is stored in a preset storage location by means of data query. For example, the executing entity queries an identifier of the first device relationship information at the preset storage location, and when the identifier of the first device relationship information is queried, it may be determined that the first device relationship information is stored at the preset storage location; if the identifier of the first device relationship information is not queried in the preset storage location, it may be determined that the first device relationship information is not stored in the preset storage location. The identifier of the first device relationship information may be a name, a data type, and the like of the first device relationship information.
Alternatively, the execution main body may determine whether the first device relationship information is stored in the preset storage location by querying a mapping table of data stored in the preset storage location. Wherein, the mapping table records the related information of the data stored in the preset storage position.
For example, when a server of a network management system of a home intelligent network receives a device replacement instruction, it is inquired from a preset storage location of its own data storage area whether first device relationship information describing a connection relationship between a first control device (existing router) and each electronic device is stored.
S203, in response to determining that the preset storage location stores the first device relationship information, sending the first device relationship information to the second control device, so that the second control device establishes a network with a sub device of the at least one sub device according to the first device relationship information.
In this embodiment, when the execution main body determines that the first device relationship information is stored in the preset storage location, the execution main body reads the first device relationship information from the preset storage location and sends the first device relationship information to the second control device.
The second control device described above is a control device that can take over the first control device to realize the function of the first control device. When the second control device receives the first device relationship information sent by the execution main body, the second control device establishes connection with the sub-device in the at least one sub-device according to the connection relationship between the first control device and the at least one sub-device described in the first device relationship information, and thereby a network including the second control device and the sub-device in the at least one sub-device is established.
At this time, for example, each of the sub-devices in the system architecture shown in fig. 1 establishes a connection with the second control device, thereby forming a system architecture as shown in fig. 3, in which the connection relationships between the sub-devices 1 to N and the second control device are the same as the connection relationships between the sub-devices 1 to N and the first control device shown in fig. 1.
For example, when the network management system server in the home intelligent network determines that the first device relationship information is stored in the preset storage location, the first device relationship information is read and sent to the second control device, that is, to the new router. And the new router determines the connection relationship between the original router and each electronic device from the received first device relationship information, and establishes connection between the new router and each electronic device according to the connection relationship. At this time, the connection relationship between the new router and each electronic device is the same as the connection relationship between the original router and each electronic device, and the new router can completely replace the original router to form a new home intelligent network.
In some optional implementation manners of this embodiment, after receiving a device replacement request for instructing to replace the first control device with the second control device, the execution main body further sends a device replacement instruction to the second control device. The device replacement command includes device information of the first control device, such as a device identifier, an IP address of the device, and the like. The device replacement instruction is for instructing the second control device to replace the first control device. After receiving the device replacement instruction, the second control device generates a first device relationship information acquisition request under the condition that the second control device verifies that the second control device can take over the first control device, and sends the request to the execution main body. The executing agent executes the step S202 after receiving the first device relationship information acquiring request.
Taking the above-mentioned home intelligent network as an example, after the network management system server receives the device replacement request indicating to replace the original router of the system with the router of the newly added system, the network management system server sends a device replacement instruction to the router of the newly added system. After receiving the device replacement instruction, the router newly added into the system judges whether the router can take over the original router according to original router information carried in the instruction, and if the router can take over the original router, the router newly added into the system sends a first device relation information acquisition request to a system server. After receiving the request, the system server confirms that the router newly added into the system can replace the original router.
It can be understood that the above processing procedure ensures that the second control device can replace the first control device, thereby ensuring the network function after the first control device is replaced by the second control device.
In some implementations of this embodiment, after receiving a device replacement request for instructing to replace the first control device with the second control device, the execution main body further sends a device binding instruction to the second control device, where the device binding instruction is used to instruct the second control device to establish a binding relationship between the second control device and the server.
The aforementioned establishment of the binding relationship between the second control device and the server may refer to establishment of a connection between the second control device and the server, and especially refers to establishment of a data channel between the second control device and the server. On the basis, the second control device and the server can perform data communication. Optionally, the second control device establishes a binding relationship with the server, which may also refer to the second control device establishing a correspondence relationship with the server, for example, device information (e.g., a device identifier) of the second control device is stored in correspondence with server information (e.g., a server identifier) of the server, and the second control device may determine which server to communicate with through the established correspondence relationship.
In the device management method provided in the foregoing embodiment of the present application, when a server receives a device replacement request for instructing to replace a first control device with a second control device, it is determined whether a preset storage location stores first device relationship information describing a connection relationship between the first control device and at least one sub device, and when it is determined that the first device relationship information is stored in the preset storage location, the first device relationship information is sent to the second control device, so that the second control device establishes a network with a sub device in the at least one sub device according to the first device relationship information. In the processing process, the second control device can automatically establish connection with at least one sub-device connected with the first control device by reading and forwarding the first device relationship information and the server. The process realizes automatic replacement of the control equipment, and the scheme is applied to replacement of the control equipment, so that the maintenance cost of the equipment, such as labor cost, time cost and the like, can be reduced.
With further reference to fig. 4, which shows a flowchart of another embodiment of the device management method proposed in the present application, an executing subject of the device management method may be a server (e.g., the server 120 shown in fig. 1), including the following steps:
s401, receiving a device replacement request for indicating replacement of the first control device with the second control device.
Wherein the first control device is associated with at least one sub-device;
s402, determining whether the first device relation information is stored in the preset storage position.
The first device relationship information is used for representing a connection relationship between the first control device and the at least one sub device;
and S403, in response to determining that the preset storage location stores the first device relationship information, sending the first device relationship information to the second control device, so that the second control device establishes a network with a sub device of the at least one sub device according to the first device relationship information.
In the present embodiment, the specific processing content of the execution subject executing steps S401 to S403 can be referred to steps S201 to S203 in the method embodiment shown in fig. 2, and will not be repeated here.
And S404, receiving second equipment relation information sent by the second control equipment.
The second device relationship information is used to characterize a connection relationship between the second control device and the associated sub-device.
In this embodiment, after the second control device establishes a network with a sub device of the at least one sub device according to the received first device relationship information, the second control device records a connection relationship between the sub devices associated with the second control device, so as to obtain second device relationship information. On this basis, the second control device also sends the second device relationship information to the execution main body.
Accordingly, the execution main body may receive second device relationship information sent by the second control device.
For example, as shown in fig. 3, after the second control device 110 completes the connection with the sub-devices 1 to N, the connection relationship between the second control device 110 and the sub-devices 1 to N is recorded, so as to obtain the second device relationship information. Then, the second control device 110 transmits the second device relationship information to the server 120. Accordingly, the server 120 may receive the second device relationship information transmitted by the second control device 110.
Taking the home intelligent network as an example, after the new router establishes connection with each electronic device according to the received connection relationship between the original router and each electronic device to obtain a new home intelligent network, the connection relationship between the new router and each electronic device is recorded to obtain device relationship information, and the device relationship information is sent to the network management system server.
S405, replacing the first device relationship information with the second device relationship information.
In this embodiment, after receiving the second device relationship information sent by the second control device, the execution main body replaces the first device relationship information stored in the preset storage location with the second device relationship information.
For example, when the preset storage location is a local storage location of the execution main body, the execution main body may directly update the storage data at the storage location, that is, delete the first device relationship information originally stored at the storage location, and store the second device relationship information to the storage location.
When the preset storage location is a storage location of a storage apparatus other than the execution main body, the execution main body may cause the storage apparatus to replace the first device relationship information at the preset storage location with the second device relationship information by sending the second device relationship information to the storage apparatus and sending an instruction to replace the first device relationship information with the second device relationship.
It is understood that, through the processing of the above steps S404 and S405, the update of the device relationship information stored in the preset storage location is implemented, so that the connection relationship information between the at least one sub device and the control device is always stored in the storage location, so as to manage the at least one sub device.
Further, the executing body may further execute step S406, receive new second device relationship information sent by the second control device, and update the existing second device relationship information in the preset storage location by using the new second device relationship information.
In this embodiment, the second control device further updates the second device relationship information, and sends the updated second device relationship information to the execution main body.
After the second control device establishes a connection with the at least one sub device to establish a network, the connection relationship between the sub device and the second control device may also change, for example, a new sub device may join the network to establish a connection with the second control device, or a sub device may be moved out of the network to disconnect from the second control device. At this time, the second control device updates the connection relationship between the sub-devices connected thereto, that is, updates the second device relationship information, and transmits the updated second device relationship information to the execution main body.
Correspondingly, after receiving new second device relationship information sent by the second control device, the execution main body updates the existing second device relationship information in the preset storage position by using the new second device relationship information. Here, the method for updating the existing second device relationship information in the preset storage location by using the new second device relationship information is similar to the replacement method described in step S405, and is not described herein again.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow of the device management method in this embodiment highlights a process in which the execution main body receives the second device relationship information or the new second device relationship information sent by the second control device, and updates the original first device relationship information or the original second device relationship information at the preset storage location by using the received second device relationship information or the new second device relationship information. Based on the processing of the execution main body, the scheme described in this embodiment implements real-time storage and update of the connection relationship between the at least one sub device and the control device, and can ensure that when any new control device replaces the current control device, the execution main body can acquire the connection relationship information between each sub device and the control device from the preset storage location, thereby providing a data base for replacement of the control device and ensuring the realizability of automatic replacement of the control device.
With continued reference to fig. 5, shown is a flow chart of another embodiment of a device management method according to the present application. In the present embodiment, the device management method described above can be executed by the second control device 110 in the system architecture shown in fig. 1. As can be seen from fig. 5, the device management method includes:
s501, receiving first equipment relation information sent by a server.
The first device relationship information is used for representing a connection relationship between a first control device and at least one sub-device, and the first device relationship information is sent by the server in response to receiving a device replacement request for instructing to replace the first control device with the second control device and determining that a preset storage position stores the first device relationship information.
The specific contents and acquisition of the first device relationship information and the specific processing contents of the server are described in steps S201 to S203 in the corresponding embodiment of fig. 2, and are not repeated here.
In this embodiment, after the server acquires the first device relationship information, the server sends the first device relationship information to the execution main body, and the execution main body receives the first device relationship information.
S502, according to the first device relation information, a network is formed with the sub-devices in the at least one sub-device.
The first device relationship information describes a connection relationship between the first control device and the at least one sub device, and when the execution main body acquires the first device relationship information, the execution main body analyzes the first device relationship information to determine the connection relationship between the first control device and the at least one sub device, and then the execution main body establishes a connection with the sub device of the at least one sub device according to the determined connection relationship, so as to establish a network with the connected sub device.
For example, it is assumed that the first device relationship information describes that the first control device is connected to the first sub device via bluetooth and connected to the second sub device via WiFi. After the executing main body receives the first device relationship information, the executing main body analyzes the information, and determines that the first control device is connected with the first sub-device through bluetooth and the first control device is connected with the second sub-device through WiFi, so that the executing main body establishes connection with the first sub-device through bluetooth and establishes connection with the second sub-device through WiFi.
It can be understood that, after the execution main body establishes a connection group network with the sub device in the at least one sub device according to the first device relationship information, the network is updated from the network shown in fig. 1 to the network shown in fig. 3, at this time, the network structure of the new network is the same as the network structure of the original network, but the execution main body has replaced the first control device, that is, the replacement of the control device in the network is realized.
In some optional implementation manners of this embodiment, before receiving the first device relationship information sent by the server, the execution main body further receives a device replacement instruction sent by the server, where the device replacement instruction includes device information of the first control device. Then, the execution subject may send a first device relationship information acquisition request to the server according to the device replacement instruction. For the explanation of the implementation, reference may be made to the related description in the embodiment corresponding to fig. 2, and details are not repeated here.
It can be understood that the above processing procedure ensures that the execution main body can replace the first control device, thereby ensuring that the network function after the first control device is replaced by the execution main body.
In some implementations of this embodiment, before receiving the first device relationship information sent by the server, the execution main body further receives a device binding instruction sent by the server, and establishes a binding relationship with the server according to the device binding instruction.
As an example, the aforementioned second control device establishing a binding relationship with the server may refer to the second control device establishing a connection with the server, and in particular, establishing a data channel with the server. On the basis, the second control device and the server can perform data communication. Before the device replacement starts, the execution body may not establish a data channel with the server, and the execution body may not receive the data sent by the server. Based on the binding operation between the execution main body and the server, the execution main body can establish a data channel with the server so as to facilitate subsequent data transmission.
In some implementations of this embodiment, the establishing, by the execution main body, a network with a sub device of the at least one sub device according to the first device relationship information includes: and establishing network connection with the at least one sub-device according to the connection relationship between the first control device and the at least one sub-device recorded in the first device relationship information. For the explanation of the implementation, reference may be made to the related description in the embodiment corresponding to fig. 2, and details are not repeated here.
Referring to the above description of this embodiment, taking the home intelligent network as an example, when a new router added to the network by a user receives first device relationship information (the first device relationship information records connection relationships between the original router and each electronic device) sent by the system server, the new router analyzes the information to determine connection relationships between the original router and each electronic device, and then establishes network connections with each electronic device according to the connection relationships determined by the analysis. At this time, the connection relationship between the new router and each electronic device is the same as the connection relationship between the original router and each electronic device, that is, the original router in the home intelligent network is replaced by the new router, and the original structure of the network is maintained.
In the device management method provided by the foregoing embodiment of the present application, the execution main body may determine, by receiving the first device relationship information sent by the server, the connection relationship between the first control device and the at least one sub device recorded in the information, and according to the first device relationship information, the execution main body and the at least one sub device in the at least one sub device form a network. Based on the processing, the execution main body can accurately acquire the connection relation between the control equipment to be replaced and the sub-equipment, and can establish connection with the sub-equipment according to the connection relation so as to replace the control equipment to be replaced.
With further reference to fig. 6, a flow chart of yet another embodiment of the device management method proposed by the present application is shown. The execution subject of the device management method may be a second control device (e.g., the second control device 110 shown in fig. 1). In this embodiment, the device management method includes:
s601, receiving first device relation information sent by a server.
The first device relationship information is used for representing a connection relationship between a first control device and at least one sub-device, and the first device relationship information is sent by the server in response to receiving a device replacement request for instructing to replace the first control device with the second control device and determining that a preset storage position stores the first device relationship information.
S602, according to the first device relation information, a network is established with the sub-device in the at least one sub-device.
The specific processing contents of the above steps S601 and S602 can be referred to the processing contents of the steps S501 and S502 in the corresponding embodiment of fig. 5, and are not repeated here.
And S603, generating second equipment relation information and storing the second equipment relation information locally.
The second device relationship information is used to characterize a connection relationship between the second control device and the associated sub-device.
In this embodiment, after the executing entity establishes a network with a sub-device of the at least one sub-device according to the received first device relationship information, the executing entity records a connection relationship between the sub-devices associated with the executing entity, so as to obtain second device relationship information.
For example, as shown in fig. 3, after the second control device 110 completes the connection with the sub-devices 1 to N, the connection relationship between the second control device 110 and the sub-devices 1 to N is recorded, so as to obtain second device relationship information, and the second device relationship information is locally stored.
Taking the home intelligent network as an example, after the new router establishes connection with each electronic device according to the received connection relationship information between the original router and each electronic device to obtain a new home intelligent network, the connection relationship between the new router and each electronic device is recorded to obtain device relationship information.
And S604, sending the second device relation information to the server.
In this embodiment, after generating and locally storing the second device relationship information, the execution main body further sends the second device relationship information to the server, so that the server backs up and stores the second device relationship information.
In some optional implementation manners of this embodiment, after completing the connection with the sub device of the at least one sub device, the execution main body may further periodically determine whether a connection relationship with the sub device is changed or whether device information of the associated sub device is changed. Wherein, the connection relationship between the sub-devices is changed, and at least includes one or more of the following conditions: new sub-devices join the established network, sub-devices are moved out of the established network, etc.
The new sub-device joining the established network means that the new sub-device is connected with the execution main body, and the sub-device being moved out of the established network means that the sub-device originally connected with the execution main body is disconnected with the execution main body, and at this time, the sub-device does not belong to the network including the execution main body any more.
For example, the execution main body may determine whether a new sub-device is added or whether an originally connected sub-device is disconnected by verifying information of each sub-device connected thereto. Alternatively, the execution main body may record each time a new sub-device joins the network or each time a sub-device moves out of the network, so as to determine whether the connection relationship between the execution main body and the sub-device is changed.
The above-mentioned change of the device information of the child device may refer to a change of a child device identifier, an expansion or a change of a function of the child device, or the like.
When the execution main body determines that the connection relation between the execution main body and the sub-equipment is changed or the equipment information of the associated sub-equipment is changed, corresponding updating operation is carried out on the second equipment relation information stored locally according to the changed connection relation between the execution main body and the sub-equipment.
Taking the above-mentioned home intelligent network as an example, when the router finds that a mobile phone originally connected with the router is disconnected from the network, the router deletes the connection relationship information with the mobile phone recorded in the second device relationship information stored locally, thereby implementing the update of the second device relationship information stored locally.
Based on the processing procedure, the execution main body updates the locally stored device relation information, so that the accuracy of the locally stored device relation information of the execution main body is ensured.
In some optional implementations of this embodiment, the second device relationship information generated by the execution main body is stored in a first storage location local to the execution main body. For example, the first storage location is a storage area location corresponding to a set storage address range in the execution main body local storage area.
On this basis, the execution body further executes the following operations: responding to the current time reaching the set backup time, and determining whether a local second storage position stores a backup file which is consistent with the second equipment relation information content currently stored in the first storage position; and in response to determining that the backup file is not stored in the second storage location, backing up the second device relationship information currently stored in the first storage location to the second storage location.
The set backup time may be a period node time of a preset backup period. For example, if data backup is performed every hour, the backup time is the hour.
The second storage location is a storage location different from the first storage location in the storage area local to the execution main body, and the second storage location is used for performing backup storage on the data content in the first storage location.
When the execution main body determines that the current time reaches the set backup time, it is determined whether a backup file whose content is consistent with the content of the second device relationship information currently stored in the first storage location is stored in a local second storage location, that is, whether the content of the second device relationship information stored in the second storage location is consistent with the content of the second device relationship information currently stored in the first storage location is determined.
If the second storage position stores a backup file which is consistent with the content of the second device relation information currently stored in the first storage position, the second storage position indicates that the second device relation information currently stored in the first storage position is backed up to the second storage position. If the second storage location does not store the backup file with the content consistent with the content of the second device relationship information currently stored in the first storage location, it indicates that the second device relationship information currently stored in the first storage location is not backed up to the second storage location, and at this time, the execution main body backs up the second device relationship information currently stored in the first storage location to the second storage location.
In some implementations of the embodiment, the executing body may further send the second device relationship information currently stored in the first storage location to the server in response to determining that the backup file is not stored in the second storage location. Further, the executing body may send the second device relationship information currently stored in the first storage location to the server after backing up the second device relationship information currently stored in the first storage location to the second storage location.
It can be understood that, when the current time reaches the set backup time, the execution main body backs up the second device relationship information currently stored in the first storage location to the local second storage location, and simultaneously, sends the second device relationship information currently stored in the first storage location to the server, that is, backs up the second device relationship information to the server, so that double backup of the second device relationship information is realized, and storage of the second device relationship information is more secure.
As can be seen from fig. 6, compared with the embodiment shown in fig. 5, the flow of the device management method in this embodiment highlights the process that the execution main body records the connection relationship between the execution main body and the associated sub-device to generate the second device relationship information, and sends the second device relationship information to the server for backup storage. Based on the processing of the execution main body, the updating of the connection relationship between the sub-device and the control device is realized, and the updating is backed up to the server, so that any control device can conveniently acquire the connection relationship information through the server and replace the control device.
With further reference to fig. 7, as an implementation of the methods shown in some of the above figures, the present application provides an embodiment of a device management apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
For example, as shown in fig. 7, the device management apparatus of the present embodiment includes: a request receiving unit 200, an information determining unit 210, and an information transmitting unit 220. The request receiving unit 200 is configured to receive a device replacement request for instructing replacement of a first control device associated with at least one sub device with a second control device; an information determining unit 210 configured to determine whether a preset storage location stores first device relationship information, where the first device relationship information is used to represent a connection relationship between the first control device and the at least one sub device; an information sending unit 220, configured to, in response to determining that the preset storage location stores the first device relationship information, send the first device relationship information to the second control device, so that the second control device forms a network with a sub device of the at least one sub device according to the first device relationship information.
In this embodiment, specific processing of the request receiving unit 200, the information determining unit 210 and the information sending unit 220 and technical effects brought by the processing can refer to related descriptions of steps S201 to S203 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of the present embodiment, the request receiving unit 200 is further configured to: sending a device replacement instruction to the second control device, where the device replacement instruction includes device information of the first control device; and receiving a first equipment relation information acquisition request sent by the second control equipment according to the equipment replacement instruction.
In some optional implementations of the present embodiment, the request receiving unit 200 is further configured to: and sending a device binding instruction to the second control device, where the device binding instruction is used to instruct the second control device to establish a binding relationship between the second control device and the server.
In some optional implementation manners of this embodiment, the device management apparatus further includes: a data receiving unit, configured to receive second device relationship information sent by the second control device, where the second device relationship information is used to characterize a connection relationship between the second control device and a sub device associated therewith; and replacing the first device relationship information with the second device relationship information.
In some optional implementations of this embodiment, the data receiving unit is further configured to: and receiving new second device relationship information sent by the second control device, and updating the existing second device relationship information in the preset storage position by using the new second device relationship information.
The device management apparatus provided in the foregoing embodiment of the present application, when receiving a device replacement request for instructing to replace a first control device with a second control device, determines whether a preset storage location stores first device relationship information describing a connection relationship between the first control device and at least one sub device, and when determining that the first device relationship information is stored in the preset storage location, sends the first device relationship information to the second control device, so that the second control device forms a network with a sub device in the at least one sub device according to the first device relationship information. In the processing process, the second control device can automatically establish connection with at least one sub-device connected with the first control device by reading and forwarding the first device relationship information and the server. The process realizes automatic replacement of the control equipment, and the scheme is applied to replacement of the control equipment, so that the maintenance cost of the equipment, such as labor cost, time cost and the like, can be reduced.
With further reference to fig. 8, as an implementation of the methods shown in some of the above figures, the present application provides an embodiment of a device management apparatus, which corresponds to the embodiment of the method shown in fig. 5, and which can be applied to various electronic devices.
For example, as shown in fig. 8, the device management apparatus of the present embodiment includes: an information receiving unit 300 and a network construction unit 310. The information receiving unit 300 is configured to receive first device relationship information sent by a server, where the first device relationship information is used to characterize a connection relationship between a first control device and at least one sub device, and the first device relationship information is sent by the server in response to receiving a device replacement request for instructing to replace the first control device with the second control device and determining that a preset storage location stores the first device relationship information; a network establishing unit 310 configured to establish a network with a sub-device of the at least one sub-device according to the first device relationship information.
In this embodiment, the detailed processing of the information receiving unit 300 and the network establishing unit 310 and the technical effects brought by the processing can refer to the related descriptions of steps S501 and S502 in the embodiment corresponding to fig. 5, which are not repeated herein.
In some optional implementation manners of this embodiment, the device management apparatus further includes: an instruction receiving unit configured to receive a device replacement instruction sent by the server, the device replacement instruction including device information of a first control device; and sending a first equipment relation information acquisition request to the server according to the equipment replacement instruction.
In some optional implementations of this embodiment, the instruction receiving unit is further configured to: and receiving the equipment binding instruction sent by the server, and establishing a binding relationship with the server according to the equipment binding instruction.
In some optional implementation manners of this embodiment, the network establishing unit 310, according to the first device relationship information, establishes a network with a sub device in the at least one sub device, including: and establishing network connection with the at least one sub-device according to the connection relationship between the first control device and the at least one sub-device recorded in the first device relationship information.
In some optional implementation manners of this embodiment, the device management apparatus further includes: the information backup unit is configured to generate and locally store second device relation information, wherein the second device relation information is used for representing a connection relation between the second control device and the associated sub-device; and sending the second device relation information to the server.
In some optional implementations of this embodiment, the information backup unit is further configured to: if the connection relationship between the first device and the sub-device is changed or the device information of the associated sub-device is changed, performing corresponding updating operation on the second device relationship information stored locally, wherein the change of the connection relationship between the first device and the sub-device at least comprises one or more of the following conditions: the new sub-device joins the established network, the sub-device is moved out of the established network.
In some optional implementations of this embodiment, the generated second device relationship information is stored in a first storage location local to the second control device; and the information backup unit is further configured to: responding to the current time reaching the set backup time, and determining whether a local second storage position stores a backup file which is consistent with the second equipment relation information content currently stored in the first storage position; and in response to determining that the backup file is not stored in the second storage location, backing up the second device relationship information currently stored in the first storage location to the second storage location.
In some optional implementations of this embodiment, the information backup unit is further configured to: and in response to determining that the backup file is not stored in the second storage location, sending the second device relationship information currently stored in the first storage location to the server. Further, the information backup unit may send the second device relationship information currently stored in the first storage location to the server after backing up the second device relationship information currently stored in the first storage location to the second storage location.
The device management apparatus provided in the foregoing embodiment of the present application may determine, by receiving the first device relationship information sent by the server, the connection relationship between the first control device and the at least one sub device recorded in the information, and establish a network with the at least one sub device according to the first device relationship information. Based on the processing, the connection relation between the control equipment to be replaced and the sub-equipment can be accurately acquired, and the connection can be established with the sub-equipment according to the connection relation, so that the control equipment to be replaced is replaced.
It should be noted that, the device management apparatus corresponding to each of the above apparatus embodiments may be a chip, a component or a module, the device management apparatus may include a processor and a memory, the request receiving unit 200, the information determining unit 210, the information sending unit 220, and the like included in the device management apparatus, or the information receiving unit 300, the network establishing unit 310, and the like included in the device management apparatus are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor may include a kernel, which calls the corresponding program unit from the memory. The kernel can be provided with one or more, and the replacement operation of the control device is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
With further reference to FIG. 9, a timing diagram of one embodiment of a device management system is shown.
In the present embodiment, the device management system includes a server (e.g., the server 120 shown in fig. 1) and a second control device (e.g., the second control device 110 shown in fig. 1).
Wherein the server is configured to receive a device replacement request for instructing replacement of a first control device with a second control device, wherein the first control device is associated with at least one sub-device; determining whether a preset storage position stores first device relation information, wherein the first device relation information is used for representing a connection relation between the first control device and the at least one piece of sub-device; and in response to determining that the first device relationship information is stored in the preset storage position, sending the first device relationship information to the second control device.
The second control device is configured to establish a network with a sub device of the at least one sub device according to the first device relationship information.
As shown in fig. 9, in step S901, the server receives a device replacement request for instructing replacement of the first control device with the second control device.
The first control device is associated with at least one sub-device.
In step S902, the server determines whether the preset storage location stores first device relationship information.
In this embodiment, the first device relationship information is used to represent a connection relationship between the first control device and the at least one sub device.
In step S903, in response to determining that the first device relationship information is stored in the preset storage location, the server sends the first device relationship information to the second control device.
In this embodiment, when the server determines that the first device relationship information is stored in the preset storage location, the server reads the first device relationship information from the preset storage location and sends the first device relationship information to the second control device.
In step S904, the second control device establishes a network with a sub-device of the at least one sub-device according to the first device relationship information.
The first device relationship information describes a connection relationship between the first control device and the at least one sub device, and when the second control device acquires the first device relationship information, the first device relationship information is analyzed to determine the connection relationship between the first control device and the at least one sub device, and then the second control device establishes a connection with a sub device of the at least one sub device according to the determined connection relationship, so as to establish a network with the connected sub device.
It can be understood that, after the second control device establishes the connection group network with the sub-devices in the at least one sub-device according to the first device relationship information, the network is updated from the network shown in fig. 1 to the network shown in fig. 3, at this time, the connection relationships between the sub-devices 1 to N and the second control device are the same as the connection relationships between the sub-devices 1 to N and the first control device shown in fig. 1. That is, the network structure of the new network is the same as that of the original network, and only the second control device has replaced the first control device, that is, the replacement of the control device in the network is realized.
In some optional implementation manners of this embodiment, after receiving the device replacement request for instructing to replace the first control device with the second control device, the server further sends a device replacement instruction to the second control device, where the device replacement instruction includes the device information of the first control device, and then the server may further receive a first device relationship information acquisition request sent by the second control device according to the device replacement instruction.
In some optional implementation manners of this embodiment, after the receiving of the device replacement request for instructing to replace the first control device with the second control device, the server further sends a device binding instruction to the second control device, where the device binding instruction is used to instruct the second control device to establish a binding relationship between the second control device and the server.
In some optional implementations of this embodiment, the server is further configured to: receiving second device relationship information sent by the second control device, where the second device relationship information is used to represent a connection relationship between the second control device and a sub-device associated with the second control device; and replacing the first device relationship information with the second device relationship information.
In some optional implementations of this embodiment, the server is further configured to: and receiving new second device relationship information sent by the second control device, and updating the existing second device relationship information in the preset storage position by using the new second device relationship information.
In some optional implementations of this embodiment, the second control device is further configured to: receiving first device relationship information sent by a server, wherein the first device relationship information is used for representing a connection relationship between a first control device and at least one piece of sub-device, and the first device relationship information is sent by the server in response to receiving a device replacement request for instructing to replace the first control device with the second control device and determining that a preset storage position stores the first device relationship information; and according to the first equipment relation information, establishing a network with the sub-equipment in the at least one sub-equipment.
In some optional implementations of this embodiment, the second control device is further configured to: and receiving the equipment binding instruction sent by the server, and establishing a binding relationship with the server according to the equipment binding instruction.
In some optional implementation manners of this embodiment, the establishing, by the second control device, a network with a sub device in the at least one sub device according to the first device relationship information includes: and establishing network connection with the at least one sub-device according to the connection relationship between the first control device and the at least one sub-device recorded in the first device relationship information.
In some optional implementations of this embodiment, the second control device is further configured to: generating second device relationship information and storing the second device relationship information locally, wherein the second device relationship information is used for representing the connection relationship between the second control device and the associated sub-device; and sending the second device relation information to the server.
In some optional implementations of this embodiment, the second control device is further configured to: if the connection relationship between the first device and the sub-device is changed or the device information of the associated sub-device is changed, performing corresponding updating operation on the second device relationship information stored locally, wherein the change of the connection relationship between the first device and the sub-device at least comprises one or more of the following conditions: the new sub-device joins the established network, the sub-device is moved out of the established network.
In some optional implementations of this embodiment, the generated second device relationship information is stored in a first storage location local to the second control device; and the second control device is further configured to: responding to the current time reaching the set backup time, and determining whether a local second storage position stores a backup file which is consistent with the second equipment relation information content currently stored in the first storage position; and in response to determining that the backup file is not stored in the second storage location, backing up the second device relationship information currently stored in the first storage location to the second storage location.
In some optional implementations of this embodiment, the second control device is further configured to: and in response to determining that the backup file is not stored in the second storage location, sending the second device relationship information currently stored in the first storage location to the server. Further, the second control device may send the second device relationship information currently stored in the first storage location to the server after backing up the second device relationship information currently stored in the first storage location to the second storage location.
Specifically, the specific working contents of the server and the second control device may refer to the descriptions of the device management method embodiments corresponding to fig. 2 and fig. 5 and the device management apparatus embodiments corresponding to fig. 7 and fig. 8, and are not repeated herein.
In the device management system provided by the above embodiment of the application, when receiving a device replacement request for instructing to replace a first control device with a second control device, the server determines whether a preset storage location stores first device relationship information describing a connection relationship between the first control device and at least one sub device, and when determining that the first device relationship information is stored in the preset storage location, sends the first device relationship information to the second control device. And the second control equipment and the sub-equipment in the at least one sub-equipment form a network according to the first equipment relation information. In the processing process of the system, the second control device can automatically establish connection with at least one sub-device connected with the first control device by reading and forwarding the first device relationship information and the server. The process realizes automatic replacement of the control equipment, and the scheme is applied to replacement of the control equipment, so that the maintenance cost of the equipment, such as labor cost, time cost and the like, can be reduced.
Referring now to FIG. 10, shown is a schematic diagram of an electronic device suitable for use in implementing some embodiments of the present application. The electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 10, the electronic device may include a processor 401, a memory 402, a communication interface 403, an input unit 404, an output unit 405, and a communication bus 406. Wherein the processor 401 and the memory 402 are connected to each other by a communication bus 406. A communication interface 403, an input unit 404 and an output unit 405 are also connected to the communication bus 406.
The communication interface 403 may be an interface of a communication module, such as an interface of a GSM module. The communication interface 403 may be used to obtain first device relationship information sent by the server, for example, and the communication interface 403 may also be used to send second device relationship information to the server. Alternatively, the communication interface 403 may be used to receive a device replacement instruction for instructing replacement of the first control device with the second control device, and may also transmit first device relationship information or the like relating to the first control device to the second control device, for example.
In the embodiment of the present application, the processor 401 may be a Central Processing Unit (CPU), an application-specific integrated circuit (ASIC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices.
In one possible implementation, the memory 402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an information sending function, a data receiving function, and the like), and the like; the storage data area may store data created according to a usage process of the computer, such as first device relationship information, second device relationship information, and the like.
Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The processor 401 may call a program stored in the memory 402, and in particular, the processor 401 may execute the device management method shown in any one of the embodiments of fig. 2 to 6 above.
The memory 402 is used for storing one or more programs, which may include program codes including computer operation instructions, and in this embodiment, the memory 402 stores at least the programs for implementing the following functions:
receiving a device replacement request for indicating replacement of a first control device with a second control device, wherein the first control device is associated with at least one sub-device; determining whether a preset storage position stores first device relation information, wherein the first device relation information is used for representing a connection relation between the first control device and the at least one piece of sub-device; and in response to determining that the preset storage position stores the first device relationship information, sending the first device relationship information to the second control device, so that the second control device and the sub-device in the at least one sub-device form a network according to the first device relationship information.
Alternatively, the first and second electrodes may be,
receiving first device relationship information sent by a server, wherein the first device relationship information is used for representing a connection relationship between a first control device and at least one piece of sub-device, and the first device relationship information is sent by the server in response to receiving a device replacement request for instructing to replace the first control device with the second control device and determining that a preset storage position stores the first device relationship information; and according to the first equipment relation information, establishing a network with the sub-equipment in the at least one sub-equipment.
The application may further include an input unit 404, and the input unit 404 may include at least one of a touch sensing unit that senses a touch event on the touch display panel, a keyboard, a mouse, a camera, a microphone, and the like.
The output unit 405 may include: at least one of a display, a speaker, a vibration mechanism, a light, and the like. The display may comprise a display panel, such as a touch display panel or the like. In one possible case, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The vibration mechanism can enable the electronic equipment to generate displacement when in work, and in a possible implementation mode, the vibration mechanism comprises a motor and an eccentric vibrator, and the motor drives the eccentric vibrator to rotate so as to generate vibration. The brightness and/or color of the lamp can be adjusted, in a possible implementation manner, different information can be embodied through at least one of the on-off, brightness and color of the lamp, for example, the alarm information can be embodied through red light emitted by the lamp.
Of course, the structure of the electronic device shown in fig. 10 does not constitute a limitation of the electronic device in the embodiment of the present application, and the electronic device may include more or less components than those shown in fig. 10 or some components in combination in practical applications.
The present application provides a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the device management method described in the above method embodiments.
The embodiment of the present application provides a processor, where the processor is configured to execute a program, where the program executes to implement the device management method described in the above method embodiments.
The present application also provides a computer program product which, when executed on a data processing apparatus, causes the data processing apparatus to implement the apparatus management method described in the above method embodiments.
In addition, the electronic device, the processor, the computer-readable medium, or the computer program product provided in the foregoing embodiments of the present application may be all used for executing the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device, the processor, the computer-readable medium, or the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and the technical principles applied, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. The scope of the invention according to the present application is not limited to the specific combinations of the above-described features, and may also cover other embodiments in which the above-described features or their equivalents are arbitrarily combined without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A device management method is applied to a server, and comprises the following steps:
receiving a device replacement request for instructing replacement of a first control device with a second control device, wherein the first control device is associated with at least one sub-device;
determining whether a preset storage position stores first equipment relation information, wherein the first equipment relation information is used for representing the connection relation between the first control equipment and the at least one piece of sub-equipment;
and in response to determining that the first device relationship information is stored in the preset storage position, sending the first device relationship information to the second control device, so that the second control device and the sub-device in the at least one sub-device form a network according to the first device relationship information.
2. The method of claim 1, wherein after the receiving a device replacement request indicating replacement of a first control device with a second control device, the method further comprises:
sending a device replacement instruction to the second control device, wherein the device replacement instruction comprises device information of the first control device;
and receiving a first equipment relation information acquisition request sent by the second control equipment according to the equipment replacement instruction.
3. The method of claim 1, wherein after the receiving a device replacement request indicating replacement of a first control device with a second control device, the method further comprises:
and sending a device binding instruction to the second control device, wherein the device binding instruction is used for instructing the second control device to establish a binding relationship between the second control device and the server.
4. The method according to one of claims 1 to 3, characterized in that the method further comprises:
receiving second device relationship information sent by the second control device, wherein the second device relationship information is used for representing the connection relationship between the second control device and the associated sub-device;
replacing the first device relationship information with the second device relationship information.
5. The method of claim 4, further comprising:
and receiving new second device relation information sent by the second control device, and updating the existing second device relation information in the preset storage position by using the new second device relation information.
6. A device management method, applied to a second control device, the method comprising:
receiving first device relationship information sent by a server, wherein the first device relationship information is used for representing a connection relationship between a first control device and at least one sub device, and the first device relationship information is sent by the server in response to receiving a device replacement request for indicating that the first control device is replaced by the second control device and determining that the first device relationship information is stored in a preset storage position;
and establishing a network with the sub-equipment in the at least one sub-equipment according to the first equipment relation information.
7. The method of claim 6, further comprising:
generating second device relation information and storing the second device relation information locally, wherein the second device relation information is used for representing the connection relation between the second control device and the associated sub-device;
and sending the second device relation information to the server.
8. The method of claim 7, further comprising:
if the connection relationship between the first device and the sub-device is changed or the device information of the associated sub-device is changed, performing corresponding updating operation on the second device relationship information stored locally, wherein the change of the connection relationship between the first device and the sub-device at least comprises one or more of the following conditions: the new sub-device joins the established network, the sub-device is moved out of the established network.
9. The method of claim 7 or 8, wherein the generated second device relationship information is stored in a first storage location local to the second control device; and
the method further comprises the following steps:
responding to the set backup time reached at the current moment, and determining whether a local second storage position stores a backup file which is consistent with the second equipment relation information content currently stored in the first storage position;
and in response to determining that the backup file is not stored in the second storage location, backing up the second device relationship information currently stored in the first storage location to the second storage location.
10. The method of claim 9, wherein after the backing up the second device relationship information currently stored in the first storage location to the second storage location, the method further comprises:
and sending the second device relation information currently stored in the first storage position to the server.
11. An apparatus for managing devices, the apparatus being applied to a server and comprising:
a request receiving unit, configured to receive a device replacement request for instructing to replace a first control device with a second control device, where the first control device is associated with at least one sub device;
the information determining unit is used for determining whether a preset storage position stores first equipment relation information, and the first equipment relation information is used for representing the connection relation between the first control equipment and the at least one piece of sub-equipment;
and an information sending unit, configured to send the first device relationship information to the second control device in response to determining that the first device relationship information is stored in the preset storage location, so that the second control device establishes a network with a sub device of the at least one sub device according to the first device relationship information.
12. A device management apparatus, applied to a second control device, the apparatus comprising:
the information receiving unit is used for receiving first device relation information sent by a server, wherein the first device relation information is used for representing the connection relation between a first control device and at least one sub device, and the first device relation information is sent by the server in response to receiving a device replacement request for indicating that the first control device is replaced by a second control device and determining that a preset storage position stores the first device relation information;
and the network establishing unit is used for establishing a network with the sub-equipment in the at least one sub-equipment according to the first equipment relation information.
13. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-10.
14. An apparatus management system, characterized by comprising a server and a second control apparatus;
the server is used for receiving a device replacement request for indicating replacement of a first control device with a second control device, wherein the first control device is associated with at least one sub-device; determining whether a preset storage position stores first equipment relation information, wherein the first equipment relation information is used for representing the connection relation between the first control equipment and the at least one piece of sub-equipment; in response to determining that the first device relationship information is stored in the preset storage position, sending the first device relationship information to the second control device;
and the second control device is used for establishing a network with the sub-device in the at least one sub-device according to the first device relation information.
CN201911227754.XA 2019-12-04 2019-12-04 Equipment management method, device and system Pending CN112910675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911227754.XA CN112910675A (en) 2019-12-04 2019-12-04 Equipment management method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911227754.XA CN112910675A (en) 2019-12-04 2019-12-04 Equipment management method, device and system

Publications (1)

Publication Number Publication Date
CN112910675A true CN112910675A (en) 2021-06-04

Family

ID=76110760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911227754.XA Pending CN112910675A (en) 2019-12-04 2019-12-04 Equipment management method, device and system

Country Status (1)

Country Link
CN (1) CN112910675A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285688A (en) * 2021-12-22 2022-04-05 美智光电科技股份有限公司 Equipment replacement method, device, gateway, system and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198267A1 (en) * 2004-02-09 2005-09-08 Peter Parks Client-side auto-rediscovery for networked devices
US20150358874A1 (en) * 2013-01-11 2015-12-10 Lg Electronics Inc. Method for changing gateway in machine-to-machine (m2m) system and device therefor
CN106104293A (en) * 2014-03-19 2016-11-09 三星电子株式会社 Method and device for the method for automatic mapping smart jack in home gateway and the electronic equipment being connected to smart jack
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN109905450A (en) * 2017-12-11 2019-06-18 阿里巴巴集团控股有限公司 Communication between devices method, apparatus, equipment and storage medium
CN110519366A (en) * 2019-08-26 2019-11-29 青岛海信智慧家居系统股份有限公司 A kind of method and device for replacing gateway

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198267A1 (en) * 2004-02-09 2005-09-08 Peter Parks Client-side auto-rediscovery for networked devices
US20150358874A1 (en) * 2013-01-11 2015-12-10 Lg Electronics Inc. Method for changing gateway in machine-to-machine (m2m) system and device therefor
CN106104293A (en) * 2014-03-19 2016-11-09 三星电子株式会社 Method and device for the method for automatic mapping smart jack in home gateway and the electronic equipment being connected to smart jack
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN109905450A (en) * 2017-12-11 2019-06-18 阿里巴巴集团控股有限公司 Communication between devices method, apparatus, equipment and storage medium
CN110519366A (en) * 2019-08-26 2019-11-29 青岛海信智慧家居系统股份有限公司 A kind of method and device for replacing gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285688A (en) * 2021-12-22 2022-04-05 美智光电科技股份有限公司 Equipment replacement method, device, gateway, system and medium

Similar Documents

Publication Publication Date Title
CN102611745B (en) On-line file moving method, device and system
EP3379425A1 (en) Data conversion method and back-up server
US10754741B1 (en) Event-driven replication for migrating computing resources
US20120150808A1 (en) Method and system for performing data backup and restoration
CN106790131B (en) Parameter modification method and device and distributed platform
US10282120B2 (en) Method, apparatus and system for inserting disk
US8543680B2 (en) Migrating device management between object managers
US9401957B2 (en) System and method for synchronization between servers
CN111209090B (en) Method and assembly for creating virtual machine in cloud platform and server
CN103885865A (en) Method and device for managing sensors
CN112015696A (en) Data access method, data relationship setting method, data access device, data relationship setting device and storage medium
CN103001989A (en) Parameter receiving method and system
CN114398397A (en) Data processing method, device, storage medium and system
CN109729121B (en) Cloud storage system and method for realizing custom data processing in cloud storage system
CN112910675A (en) Equipment management method, device and system
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN111274004A (en) Process instance management method and device and computer storage medium
CN112084247B (en) Method and device for expanding application program service
CN114996236A (en) Data processing method, device and equipment for converged storage system and storage medium
CN114928620A (en) User information synchronization method, device, equipment, storage medium and program product
CN111596933A (en) File processing method and device, electronic equipment and computer readable storage medium
CN111176715A (en) Information calling method and server
US11695625B2 (en) Location-based dynamic grouping of IoT devices
CN111488388B (en) Deployment method, device and equipment of data storage contract
US11880586B2 (en) Storage array remote replication

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210604

RJ01 Rejection of invention patent application after publication