CN116886575A - Management method and management device of network equipment and electronic equipment - Google Patents

Management method and management device of network equipment and electronic equipment Download PDF

Info

Publication number
CN116886575A
CN116886575A CN202311074548.6A CN202311074548A CN116886575A CN 116886575 A CN116886575 A CN 116886575A CN 202311074548 A CN202311074548 A CN 202311074548A CN 116886575 A CN116886575 A CN 116886575A
Authority
CN
China
Prior art keywords
internet protocol
equipment
information
slave
slave device
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
CN202311074548.6A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311074548.6A priority Critical patent/CN116886575A/en
Publication of CN116886575A publication Critical patent/CN116886575A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a management method and device of network equipment and electronic equipment. The management method of the network equipment comprises the following steps: detecting, within the first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses; in the case of detecting the first slave device, adding device information of the first slave device to the managed device list; transmitting a device instruction to the first slave device when a device instruction for controlling the first slave device is received and the first slave device is in an on-line state; based on the first response information corresponding to the equipment instruction, outputting corresponding notification information.

Description

Management method and management device of network equipment and electronic equipment
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a management method and device of network equipment and the electronic equipment.
Background
In the related art, an internet of things device based on a local area network is generally used as a master control device by an ethernet intelligent device to control other intelligent devices. The master device needs to search for the slave device by means of user datagram protocol (User Datagram Protocol, UDP) broadcast.
The UDP broadcast may repeatedly search all internet protocol addresses (Internet Protocol, IP), resulting in that the searched device receives the UDP broadcast packet frequently, which causes network resource waste.
Disclosure of Invention
The embodiment of the application aims to provide a management method, a management device and electronic equipment of network equipment, which can solve the problem of network resource waste caused by the fact that searched equipment frequently receives UDP broadcast packets.
In a first aspect, an embodiment of the present application provides a method for managing a network device, performed by a master device, where the method includes:
detecting, within the first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses;
in the case of detecting the first slave device, adding device information of the first slave device to the managed device list;
transmitting a device instruction to the first slave device when a device instruction for controlling the first slave device is received and the first slave device is in an on-line state;
based on the first response information corresponding to the equipment instruction, outputting corresponding notification information.
In a second aspect, an embodiment of the present application provides a method for managing a network device, performed by a slave device, where the method includes:
Executing the equipment function corresponding to the equipment instruction under the condition that the equipment instruction sent by the main control equipment is received;
and sending first response information to the master control equipment, wherein the first response information is associated with an execution result of the equipment function.
In a third aspect, an embodiment of the present application provides a management apparatus for a network device, applied to a master device, where the management apparatus includes:
a detection module for detecting, within a first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses;
the storage module is used for adding the device information of the first slave device to the managed device list under the condition that the first slave device is detected;
the sending module is used for sending the equipment instruction to the first slave equipment under the condition that the equipment instruction for controlling the first slave equipment is received and the first slave equipment is in an on-line state;
and the output module is used for outputting corresponding notification information based on the first response information corresponding to the equipment instruction.
In a fourth aspect, an embodiment of the present application provides a management apparatus for a network device, applied to a slave device, where the management apparatus includes:
the execution module is used for executing the equipment function corresponding to the equipment instruction under the condition of receiving the equipment instruction sent by the main control equipment;
And the sending module is used for sending first response information to the main control equipment, wherein the first response information is associated with an execution result of the equipment function.
In a fifth aspect, an embodiment of the present application provides a first electronic device comprising a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the method as in the first aspect when executed by the processor.
In a sixth aspect, embodiments of the present application provide a second electronic device comprising a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the method as in the second aspect when executed by the processor.
In a seventh aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first or second aspects.
In an eighth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor for running a program or instructions implementing the steps of the method as in the first or second aspect.
In a ninth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement a method as in the first or second aspect.
In the embodiment of the application, when the master control device searches the slave devices, the master control device detects the available slave devices in the set first internet protocol address set, and adds the detected first slave devices to the managed device list after detecting the available slave devices, and the detected first slave devices are not repeatedly detected in the subsequent detection, so that the searched devices can be prevented from frequently receiving UDP broadcast packets, and the network resource overhead is reduced.
Drawings
FIG. 1 illustrates one of the flowcharts of a method of management of a network device of some embodiments of the present application;
FIG. 2 illustrates a schematic diagram of a network architecture in some embodiments of the application;
FIG. 3 illustrates a logical schematic of detecting a heartbeat in accordance with some embodiments of the application;
FIG. 4 illustrates a second flowchart of a method of managing network devices in accordance with some embodiments of the application;
FIG. 5 illustrates a flow diagram of a search device of some embodiments of the application;
FIG. 6 illustrates a flow chart of signaling execution for some embodiments of the application;
FIG. 7 illustrates a third flowchart of a method of managing network devices in accordance with some embodiments of the application;
fig. 8 shows one of the block diagrams of the management apparatus of the network device of some embodiments of the present application;
FIG. 9 illustrates a second block diagram of a management apparatus of a network device according to some embodiments of the application;
FIG. 10 shows a block diagram of an electronic device according to an embodiment of the application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method, the device and the electronic device for managing network devices provided by the embodiment of the application are described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
In some embodiments of the present application, there is provided a method for managing a network device, performed by a master device, fig. 1 shows one of flowcharts of the method for managing a network device according to some embodiments of the present application, as shown in fig. 1, where the method includes:
step 102, detecting, within a first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses.
In the embodiment of the present application, the first set of internet protocol addresses refers to a range of IP addresses that may be allocated to the slave device in the network environment where the current master device is located.
Specifically, fig. 2 shows a schematic diagram of a network structure in some embodiments of the present application, as shown in fig. 2, multiple intelligent devices are connected together through a local area network for a common home internet of things environment, where a master control device specifically refers to a device serving as a "brain" in the internet of things to control other intelligent home devices, and a slave device specifically refers to other intelligent home devices in the internet of things, where the smart sound box, the smart electric cooker, the smart television, the mobile phone a and the mobile phone B shown in fig. 2 may be slave devices.
The number of IP of home lan is limited, for example, the mask segment in home is typically 24-bit mask segment, if the IP address of the master device is: 192.168.0.4/24, gateway address of 192.168.0.1, and available IP addresses of 192.168.0.2 to 192.168.0.254 can be determined under the condition of starting dynamic host configuration protocol (Dynamic Host Configuration Protocol, DCHP), and the IP of the main control equipment is removed, so that 252 available IP are remained.
The first set of internet protocol addresses is the set of available IP addresses after the known occupied IP is removed from the total available IP addresses.
Step 104, in the case of detecting the first slave device, adding the device information of the first slave device to the managed device list.
In the embodiment of the application, the master control device detects each IP address in the first Internet protocol address combination respectively and judges whether the slave device which is not recorded exists. If the first slave device which is not recorded in the managed device list is detected, the device information of the first slave device is acquired, and the device information of the first slave device is added to the managed device list.
After the device information of the first slave device is added to the managed device list, the first internet protocol address set is synchronously updated, and the detected device is removed therefrom, so that the detected device can not be sent to the detected slave device any more in the subsequent detection, the network resource is prevented from being wasted, and the operation of the detected slave device is prevented from being interfered.
Step 106, when a device instruction for controlling the first slave device is received and the first slave device is in an on-line state, the device instruction is sent to the first slave device.
In the embodiment of the application, when receiving the device instruction sent by the user and used for controlling the first slave device, the master control device judges whether the hosted first slave device is on line or not, namely, whether the hosted first slave device is in a normal working state or not.
And if the first slave device is judged to be online, the device instruction is sent to the first slave device, the first slave device is controlled to execute the corresponding device function through the device instruction, meanwhile, the master control device receives first response information of the first slave device for the device instruction, and whether the first slave device successfully responds to the device instruction of the user is determined based on the first response information.
Step 108, outputting corresponding notification information based on the first response information corresponding to the device instruction.
In the embodiment of the application, if the main control equipment receives the first response information and the first response information indicates that the equipment function corresponding to the equipment instruction is successfully executed, the main control equipment outputs corresponding notification information to the user to notify the user that the control is successful.
If the main control equipment receives the first response information and the first response information indicates that the equipment function corresponding to the equipment instruction is not successfully executed, the main control equipment outputs corresponding notification information to a user, notifies the user that the control is not successful and prompts the user with error information.
If the main control equipment does not receive the first response information within a preset time period, generating the prompting information of equipment errors.
By means of the method, the device information of the slave device in the current local area network environment can be detected rapidly, specific devices can be found rapidly, for example, when a user cannot find a mobile phone, voice control can be conducted on a master control device, for example, an intelligent sound box, after the intelligent sound box receives a voice command of the user for finding the mobile phone, the mobile phone is detected in an IP address set of the current gateway, and after the mobile phone is detected, a device command is sent to the mobile phone to control the mobile phone to make a sound, and the user can find the mobile phone rapidly.
By way of example, by rapidly detecting device information of a slave device in a current local area network environment, rapid control of an intelligent device in the current network environment can be achieved. If the user wants to start timing, voice control can be performed on the main control equipment, such as an intelligent sound box, after the intelligent sound box receives a voice instruction of starting timing by the user, equipment with timing function, such as an intelligent alarm clock, is detected in the IP address set of the current gateway, after the intelligent alarm clock is detected, an equipment instruction is sent to the intelligent alarm clock, and the intelligent alarm clock is controlled to start countdown according to the timing duration input by the user.
When the master control device searches the slave devices, the master control device detects the available slave devices in the set first internet protocol address set, adds the detected first slave devices to the managed device list after detecting the available slave devices, and does not repeatedly detect the detected first slave devices in the follow-up detection, so that the searched devices can be prevented from frequently receiving UDP broadcast packets, and network resource overhead is reduced.
In some embodiments of the application, before probing, within the first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses, the method further comprises:
determining a second internet protocol address set based on a dynamic host configuration protocol of the master control device;
determining a third internet protocol address set according to the managed device list, wherein the internet protocol addresses in the third internet protocol address set are detected internet protocol addresses of the slave devices, and the third internet protocol address set is a subset of the second internet protocol address set;
the first set of internet protocol addresses is determined from a complement of the third set of internet protocol addresses in the second set of internet protocol addresses.
In the embodiment of the application, the dynamic host configuration protocol is DHCP (Dynamic Host Configuration Protocol ) which allows a server (such as a gateway device like a router) to dynamically allocate an IP address and configuration information to a client (such as a smart device like a mobile phone, a smart home appliance, etc.).
The main control equipment determines a second internet protocol address set based on the current DHCP protocol, specifically according to own IP and mask, wherein the second internet protocol address set is determined by removing IP information such as network segments, broadcasting, own IP and the like in a local area network connected with the main control equipment, and is a set of all available IP in the local area network.
The third set of internet protocol addresses is a set of IP of slave devices that have been detected, determined from the list of managed devices.
Among the second set of internet protocol addresses, the IP set of the slave device that has been detected, i.e. the third set of internet protocol addresses, is removed, and the resulting first set of internet protocol addresses is the IP set that may be allocated to the slave device that has not been detected.
The embodiment of the application removes the IP set of the detected slave device from all available IP sets of the current network, thereby avoiding repeatedly detecting the detected slave device, avoiding disturbing the detected slave device and saving network resources.
In some embodiments of the application, the management method further comprises:
determining a third internet protocol address set according to the managed device list, wherein the internet protocol address in the third internet protocol address set is the detected internet protocol address of the slave device;
based on the Internet control message protocol, detecting equipment for each Internet protocol address in the third Internet protocol address set;
and deleting the device information corresponding to any one of the internet protocol addresses in the managed device list in the case that the device detection result of any one of the internet protocol addresses in the third internet protocol address set is detection failure.
In the embodiment of the application, an internet control message protocol (Internet Control Message Protocol, ICMP) is used for transmitting control information, a fourth internet protocol address combination is a set of the IPs in a to-be-hosted state and an abnormal state, and the master control device pulls the set of the IPs in the to-be-hosted state and the abnormal state from the hosted device list and performs ICMP detection.
The IP in the state to be hosted may specifically be a state to be hosted that the user designates to add, for example, the user purchases a sweeping robot newly, and manually configures the sweeping robot to be networked, where the IP address connected to the sweeping robot is the IP address in the state to be hosted.
The IP in the abnormal state may be specifically a slave device that has been detected, but is currently in a heartbeat deactivated state, an offline state or a fault state, which results in IP addresses different from each other.
And when detecting that the detection result of the first internet protocol address in the third internet protocol address set is detection failure, rejecting the equipment in the managed equipment list, namely removing the slave equipment which cannot work normally.
Optionally, the record information such as the managed device list and the like can be stored in the memory database of the main control device and subjected to persistence treatment, so that the storage efficiency is improved, and the problems such as data loss and the like caused by restarting the device are avoided.
According to the embodiment of the application, the slave equipment which cannot normally work is identified by detecting the IP address in the abnormal or to-be-hosted state, so that the hosting efficiency is improved.
In some embodiments of the application, before adding the device information of the first slave device to the list of managed devices, the method further comprises:
transmitting user datagram protocol unicast information to the first slave device, the user datagram protocol unicast information including at least one of the following information: internet protocol address information of the master control equipment, interface information corresponding to the master control equipment and identification information of the master control equipment;
The device information of the first slave device is added to the managed device list, including:
in the event that device information corresponding to user datagram protocol unicast information is received, the device information is added to the list of managed devices.
In the embodiment of the application, the master device unicasts a user datagram protocol (User Datagram Protocol, UDP) to all detected slave devices, specifically including the first slave device. The UDP information includes, but is not limited to, IP information of the master device, interface information for receiving response information, and a displacement identification code, i.e., identification information, of which the master is a slave. The identification information is used for helping the main control equipment to identify the authenticity of the response information.
After sending the UDP unicast information to the first slave device, the first slave device prompts the user to confirm whether or not hosting is performed. And after receiving the confirmation input of the user, the device information of the device, namely the first slave device, is sent to the master control device as response information.
Illustratively, the device information includes a device name, a device IP, device interface information, a device identification code, and the like of the slave device. The device interface information includes, but is not limited to, a health check interface, a control interface, and the like. Meanwhile, the first slave device reserves the unique identification code and the notification interface information of the master control device.
After the master device receives the device information of the first slave device, the device information of the first slave device is added into the managed device list, and the state of the first slave device is updated from "to be managed" to "managed".
According to the embodiment of the application, the detected slave equipment is subjected to UDP unicast, so that the control structure of the managed slave equipment can be independently customized without fixed requirements, unified management of intelligent equipment with different manufacturers and different specifications can be realized, meanwhile, equipment in a network can be prevented from frequently receiving UDP broadcast, and no disturbing management is realized.
In some embodiments of the application, the management method further comprises:
sending a probe heartbeat message to each slave device in the list of managed devices;
setting the equipment state of the second slave equipment to be an on-line state under the condition that second response information corresponding to the heartbeat detection information sent by the second slave equipment is received in a preset time period;
and setting the equipment state of the second slave equipment to be an offline state under the condition that the second response information is not received within the preset time period.
In embodiments of the present application, fig. 3 illustrates a logical schematic diagram of heartbeat probing of some embodiments of the present application, where a master device periodically sends a heartbeat probing message to the IP of each hosted slave device in the list of hosted devices, as illustrated in fig. 3.
Illustratively, the probe heartbeat message may be sent and received through a custom health check interface.
After receiving the heartbeat detection message sent by the master control device, the slave device returns second response information to the master control device through the same interface, wherein the second response information is used for indicating that the current slave device of the master control device is online and can normally send and receive information.
And if the second response information sent by the second slave device is received by the master device within the preset duration, the master device sets the device state of the second slave device to be in an on-line state. It can be appreciated that if the current device state of the second slave device is an offline state, the offline state is updated to an online state. If the current device state of the second slave device is an online state, the online state is maintained unchanged.
If the second response information sent by the second slave device is not received by the master device within the preset duration, the master device sets the device state of the second slave device to be in an offline state.
In some embodiments, after setting the device state of the second slave device to the offline state, the master device outputs corresponding device state information to the user, reminding the user that the second slave device is offline.
According to the embodiment of the application, the hosted device is detected to acquire and update the device state of the hosted slave device in real time, so that the user does not need to repeatedly and automatically confirm the device state, and the hosting efficiency is improved.
In some embodiments of the application, the management method further comprises:
and when receiving the state information of the third slave device, updating the device information of the third slave device in the managed device list according to the state information.
In the embodiment of the application, the slave device in the hosting state, such as the third slave device, periodically reports the state information to the master device according to the reserved notification interface and identification information of the master identification, wherein the state information comprises the device name, the device IP, the device interface information, the device identification information and the like.
In some scenarios, for example, after the third slave device restarts or disconnects from the network, the third slave device reports status information to the master device immediately after the start-up or networking is successful.
After receiving the status information reported by the slave device, the master device checks the received information, and if the information of the slave device changes, if the information of the slave device is found to be repeated, the master device covers the original IP information, so that the automatic update of the information of the third slave device is limited.
According to the embodiment of the application, the slave device actively reports the state information to the master control device, so that the scenes such as IP change caused by restarting the device and reconnecting the disconnected network can be effectively treated, the managed state is not required to be manually reconfigured by a user, and the equipment managed efficiency is improved.
In some embodiments of the present application, fig. 4 shows a second flowchart of a method for managing a network device according to some embodiments of the present application, as shown in fig. 4, where the method includes:
step 402, searching for a device;
step 404, a heartbeat mechanism;
step 406, signaling is performed.
The management method of the network equipment mainly comprises the parts of searching equipment, a heartbeat mechanism, signaling execution and the like.
Wherein, in the stage of the search device, fig. 5 shows a flowchart of the search device according to some embodiments of the present application, as shown in fig. 5, the method includes:
step 502A, calculating an IP range;
step 502B pulls the IP ranges for the "to be hosted" and "abnormal" states.
The main control equipment removes information such as network segments, broadcasting, self IP and the like according to the self IP and the mask, and calculates the available IP range in the local area network as a range 1; the main control equipment is used as an IP range 2 according to the current equipment list; and removing the range 2 from the range 1 to obtain a final IP range to be detected.
At step 504, ICMP is probed and updated.
And detecting the IP range to be detected calculated in the step 1 through an ICMP protocol, acquiring an available IP range, adding equipment information by the main control equipment, and marking the state as detected.
And asynchronously, pulling the IP ranges of the 'to-be-hosted' and 'abnormal state' states in the equipment list, performing ICMP detection, and if the ICMP detection is not found to be successful, removing the ICMP detection from the equipment list.
The record information is preferably stored in a database and the file is persistent, so that the problems of efficiency and restarting recovery can be effectively solved.
In step 506, the UDP unicast.
The main control equipment acquires the IP range of the equipment in the detected state in the equipment list, and performs UDP unicast search. The UDP information includes, but is not limited to, information such as IP information of the master device, information of a reception response interface, and a unique identification code of the master device. The unique identification code can be used for the master control equipment to identify the authenticity of the response information. After the message is sent, the device state is updated to be "to be hosted".
After the hosting device receives the request, the user is required to confirm whether the hosting is carried out or not, and after the confirmation, all information of the hosting device is transmitted to the main control device. The response message may be sent singly or in multiple pieces including, but not limited to, device name, device IP, device interface information, device identification code, etc. The device identification code is used for checking the hosting device after the master control device sends the device interface information to the hosting device. The device interface information includes, but is not limited to, a health check interface, a control interface, and the like. Meanwhile, the equipment to be hosted keeps the unique identification code and the notification interface information of the master control equipment.
Step 508, collect and store the response.
After receiving the response, the master control equipment authenticates the unique identification code of the master control equipment and updates the response information into the storage for storage. Updating the device state to "hosted".
The logic of the heartbeat mechanism is shown in fig. 3 and includes:
step 1: and the main control equipment sends a message to the health check interface according to the IP range of the managed state in the equipment list to perform heartbeat detection. If a normal response is received, the device state is updated to "running". If no, updating the device state to be an abnormal state.
Step 2: and the hosting device periodically reports the state information according to the reserved main control device notification interface and the unique identification code. If the managed device is shut down and restarted, the state information is immediately reported after the managed device is started. The reported information includes, but is not limited to, device name, device IP, device interface information, device identification code, etc. And after receiving the information, the master control equipment performs verification, and adds the verification to the equipment list. And if the IP information is found to be repeated, the original IP equipment information is covered.
Step 1 and step 2 are not related, and the master control equipment and the hosting equipment are respectively and periodically sent to each other.
In the signaling execution phase, fig. 6 shows a flow chart of signaling execution of some embodiments of the present application, as shown in fig. 6, the method includes:
Step 602, a user instruction is received.
The main control equipment receives a user instruction.
Step 604, judging whether the equipment is online; if yes, go to step 606, otherwise go to step 612.
The main control equipment judges whether the managed equipment is in an operating state, and if so, the main control equipment continues. If not, the user is notified of the termination.
Step 606, judging whether the device instruction is matched; if yes, go to step 608, otherwise go to step 612.
The main control equipment matches control interface information provided by the hosting equipment according to the user instruction, if the matching is successful, the operation is executed, and the equipment identification code is carried during the execution. If the matching is unsuccessful, the user is notified of the termination.
Step 608, sending a device instruction;
step 610, collecting responses;
step 612, alert the user.
The main control equipment collects response information of the managed equipment and informs a user of an execution result.
In some embodiments of the present application, there is provided a method for managing a network device, performed by a slave device, fig. 7 shows a third flowchart of the method for managing a network device according to some embodiments of the present application, and as shown in fig. 7, the method includes:
step 702, executing a device function corresponding to a device instruction under the condition that a device instruction sent by a master device is received;
Step 704, sending first response information to the master device, where the first response information is associated with the execution result of the device function.
In the embodiment of the application, when the master control equipment receives the equipment instruction sent by the user and used for controlling the slave equipment, the master control equipment judges whether the hosted slave equipment is on line or not, namely whether the hosted slave equipment is in a normal working state or not. And if the first slave device is judged to be online, transmitting a device instruction to the slave device.
After receiving the equipment instruction sent by the master control equipment, the slave equipment analyzes the equipment instruction and executes the equipment function corresponding to the equipment instruction.
For example, the slave device is a sweeping robot, the device instruction is used for instructing the sweeping robot to sweep the target area, and after receiving the device instruction sent by the master device, the sweeping robot immediately goes to the target area and carries out sweeping work.
For example, the slave device is an air conditioner, and the device instruction is used for instructing the air conditioner to start cooling with 24 ℃ as a target dimension, and after receiving the device instruction sent by the master device, the air conditioner starts the instruction and sets the cooling target temperature to 24 ℃.
According to the embodiment of the application, the master control equipment can rapidly identify and host the slave equipment, the hosted control interfaces can be independently customized, and unified hosting management of the Internet of things equipment with different systems and different specifications can be realized.
In some embodiments of the application, the management method further comprises:
and under the condition that user datagram protocol unicast information sent by the master control equipment is received, sending equipment information corresponding to the slave equipment to the master control equipment.
In the embodiment of the application, the master device performs User Datagram Protocol (UDP) unicast to the detected slave device, and in the UDP information, the IP information of the master device, the interface information for receiving the response information, and the displacement identification code of the master being detected, that is, the identification information are included but not limited to. The identification information is used for helping the main control equipment to identify the authenticity of the response information.
After receiving the UDP unicast information from the slave device, the slave device prompts the user to confirm whether or not hosting is performed. And after receiving confirmation input of the user, sending the equipment information of the equipment to the main control equipment as response information.
Illustratively, the device information includes a device name, a device IP, device interface information, a device identification code, and the like of the slave device. The device interface information includes, but is not limited to, a health check interface, a control interface, and the like. Meanwhile, the first slave device reserves the unique identification code and the notification interface information of the master control device.
According to the embodiment of the application, the detected slave equipment is subjected to UDP unicast, so that the control structure of the managed slave equipment can be independently customized without fixed requirements, unified management of intelligent equipment with different manufacturers and different specifications can be realized, meanwhile, equipment in a network can be prevented from frequently receiving UDP broadcast, and no disturbing management is realized.
In some embodiments of the application, the management method further comprises:
and under the condition that the heartbeat detection message sent by the main control equipment is received, sending second response information to the main control equipment within a preset duration.
In an embodiment of the application, the master device periodically sends a probe heartbeat message to the hosted slave device. After receiving the heartbeat detection message sent by the master control device, the slave device returns second response information to the master control device through the same interface, wherein the second response information is used for indicating that the current slave device of the master control device is online and can normally send and receive information.
According to the embodiment of the application, the hosted device is detected to acquire and update the device state of the hosted slave device in real time, so that the user does not need to repeatedly and automatically confirm the device state, and the hosting efficiency is improved.
According to the network equipment management method provided by the embodiment of the application, the execution main body can be a network equipment management device. In the embodiment of the present application, a method for executing management of network equipment by a management device of network equipment is taken as an example, and the management device of network equipment provided in the embodiment of the present application is described.
In some embodiments of the present application, a management apparatus of a network device is provided and applied to a master device, and fig. 8 shows one of the block diagrams of the management apparatus of the network device according to some embodiments of the present application, as shown in fig. 8, the management apparatus 800 includes:
A probing module 802 for probing, within the first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses;
a storage module 804, configured to add device information of the first slave device to the managed device list in a case where the first slave device is detected;
a sending module 806, configured to send, when a device instruction for controlling the first slave device is received and the first slave device is in an online state, the device instruction to the first slave device;
and the output module 808 is configured to output corresponding notification information based on the first response information corresponding to the device instruction.
When the master control device searches the slave devices, the master control device detects the available slave devices in the set first internet protocol address set, adds the detected first slave devices to the managed device list after detecting the available slave devices, and does not repeatedly detect the detected first slave devices in the follow-up detection, so that the searched devices can be prevented from frequently receiving UDP broadcast packets, and network resource overhead is reduced.
In some embodiments of the application, the management device further comprises:
The determining module is used for determining a second internet protocol address set based on a dynamic host configuration protocol of the master control equipment; determining a third internet protocol address set according to the managed device list, wherein the internet protocol addresses in the third internet protocol address set are detected internet protocol addresses of the slave devices, and the third internet protocol address set is a subset of the second internet protocol address set; the first set of internet protocol addresses is determined from a complement of the third set of internet protocol addresses in the second set of internet protocol addresses.
The embodiment of the application removes the IP set of the detected slave device from all available IP sets of the current network, thereby avoiding repeatedly detecting the detected slave device, avoiding disturbing the detected slave device and saving network resources.
In some embodiments of the application, the management device further comprises:
the determining module is used for determining a third internet protocol address set according to the managed device list, wherein the internet protocol address in the third internet protocol address set is the detected internet protocol address of the slave device;
The detection module is specifically configured to detect each internet protocol address in the third internet protocol address set based on an internet control message protocol;
and the storage module is further used for deleting the device information corresponding to any one internet protocol address in the managed device list when the device detection result of any one internet protocol address in the third internet protocol address set is detection failure.
According to the embodiment of the application, the slave equipment which cannot normally work is identified by detecting the IP address in the abnormal or to-be-hosted state, so that the hosting efficiency is improved.
In some embodiments of the application, the management device further comprises:
the broadcast module is used for sending user datagram protocol unicast information to the first slave device, wherein the user datagram protocol unicast information comprises at least one of the following information: internet protocol address information of the master control equipment, interface information corresponding to the master control equipment and identification information of the master control equipment;
the storage module is specifically configured to determine that the first slave device is detected when device information corresponding to user datagram protocol unicast information is received.
According to the embodiment of the application, the detected slave equipment is subjected to UDP unicast, so that the control structure of the managed slave equipment can be independently customized without fixed requirements, unified management of intelligent equipment with different manufacturers and different specifications can be realized, meanwhile, equipment in a network can be prevented from frequently receiving UDP broadcast, and no disturbing management is realized.
In some embodiments of the application, the sending module is further configured to send a probe heartbeat message to each slave device in the list of managed devices;
the management device further comprises:
the state setting module is used for setting the equipment state of the second slave equipment to be an on-line state under the condition that second response information corresponding to the heartbeat detection information sent by the second slave equipment is received in a preset time period;
and setting the equipment state of the second slave equipment to be an offline state under the condition that the second response information is not received within the preset time period.
According to the embodiment of the application, the hosted device is detected to acquire and update the device state of the hosted slave device in real time, so that the user does not need to repeatedly and automatically confirm the device state, and the hosting efficiency is improved.
In some embodiments of the application, the management device further comprises:
and the updating module is used for updating the device information of the third slave device in the managed device list according to the state information under the condition that the state information of the third slave device is received.
According to the embodiment of the application, the slave device actively reports the state information to the master control device, so that the scenes such as IP change caused by restarting the device and reconnecting the disconnected network can be effectively treated, the managed state is not required to be manually reconfigured by a user, and the equipment managed efficiency is improved.
In some embodiments of the present application, a management apparatus of a network device is provided and applied to a master device, and fig. 9 shows a second block diagram of a management apparatus of a network device according to some embodiments of the present application, as shown in fig. 9, a management apparatus 900 includes:
an execution module 902, configured to execute a device function corresponding to a device instruction when receiving the device instruction sent by the master device;
and the sending module 904 is configured to send first response information to the master device, where the first response information is associated with an execution result of the device function.
According to the embodiment of the application, the master control equipment can rapidly identify and host the slave equipment, the hosted control interfaces can be independently customized, and unified hosting management of the Internet of things equipment with different systems and different specifications can be realized.
In some embodiments of the application, the management device further comprises:
and the sending module is also used for sending the equipment information corresponding to the slave equipment to the master equipment under the condition of receiving the user datagram protocol unicast information sent by the master equipment.
According to the embodiment of the application, the detected slave equipment is subjected to UDP unicast, so that the control structure of the managed slave equipment can be independently customized without fixed requirements, unified management of intelligent equipment with different manufacturers and different specifications can be realized, meanwhile, equipment in a network can be prevented from frequently receiving UDP broadcast, and no disturbing management is realized.
In some embodiments of the application, the management device further comprises:
the sending module is further configured to send second response information to the master control device within a preset duration when receiving the heartbeat detection message sent by the master control device.
According to the embodiment of the application, the hosted device is detected to acquire and update the device state of the hosted slave device in real time, so that the user does not need to repeatedly and automatically confirm the device state, and the hosting efficiency is improved.
The management device of the network device in the embodiment of the application can be an electronic device, and also can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The management device of the network device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The management device of the network device provided by the embodiment of the present application can implement each process implemented by the above method embodiment, and in order to avoid repetition, details are not repeated here.
Optionally, an embodiment of the present application further provides an electronic device, fig. 10 shows a block diagram of a structure of an electronic device according to an embodiment of the present application, as shown in fig. 10, an electronic device 1000 includes a processor 1002, a memory 1004, and a program or an instruction stored in the memory 1004 and capable of running on the processor 1002, where the program or the instruction implements each process of the foregoing method embodiment when executed by the processor 1002, and the same technical effects are achieved, and are not repeated herein.
It can be understood that the electronic device includes the first electronic device and the second electronic device in the embodiment of the present application.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1110 by a power management system, such as to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 1110 is configured to, within a first set of internet protocol addresses, probe a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses; in the case of detecting the first slave device, adding device information of the first slave device to the managed device list; transmitting a device instruction to the first slave device when a device instruction for controlling the first slave device is received and the first slave device is in an on-line state; based on the first response information corresponding to the equipment instruction, outputting corresponding notification information.
When the master control device searches the slave devices, the master control device detects the available slave devices in the set first internet protocol address set, adds the detected first slave devices to the managed device list after detecting the available slave devices, and does not repeatedly detect the detected first slave devices in the follow-up detection, so that the searched devices can be prevented from frequently receiving UDP broadcast packets, and network resource overhead is reduced.
Optionally, the processor 1110 is further configured to determine a second set of internet protocol addresses based on a dynamic host configuration protocol of the master device; determining a third internet protocol address set according to the managed device list, wherein the internet protocol addresses in the third internet protocol address set are detected internet protocol addresses of the slave devices, and the third internet protocol address set is a subset of the second internet protocol address set; the first set of internet protocol addresses is determined from a complement of the third set of internet protocol addresses in the second set of internet protocol addresses.
The embodiment of the application removes the IP set of the detected slave device from all available IP sets of the current network, thereby avoiding repeatedly detecting the detected slave device, avoiding disturbing the detected slave device and saving network resources.
Optionally, the processor 1110 is further configured to determine, according to the managed device list, a third set of internet protocol addresses, where an internet protocol address in the third set of internet protocol addresses is an internet protocol address of the detected slave device; based on the Internet control message protocol, detecting equipment for each Internet protocol address in the third Internet protocol address set; and deleting the device information corresponding to any one of the internet protocol addresses in the managed device list in the case that the device detection result of any one of the internet protocol addresses in the third internet protocol address set is detection failure.
According to the embodiment of the application, the slave equipment which cannot normally work is identified by detecting the IP address in the abnormal or to-be-hosted state, so that the hosting efficiency is improved.
Optionally, the processor 1110 is further configured to send user datagram protocol unicast information to the first slave device, where the user datagram protocol unicast information includes at least one of the following information: internet protocol address information of the master control equipment, interface information corresponding to the master control equipment and identification information of the master control equipment; in the event that device information corresponding to user datagram protocol unicast information is received, it is determined that a first slave device is detected.
According to the embodiment of the application, the detected slave equipment is subjected to UDP unicast, so that the control structure of the managed slave equipment can be independently customized without fixed requirements, unified management of intelligent equipment with different manufacturers and different specifications can be realized, meanwhile, equipment in a network can be prevented from frequently receiving UDP broadcast, and no disturbing management is realized.
Optionally, the processor 1110 is further configured to send a probe heartbeat message to each slave device in the list of managed devices; setting the equipment state of the second slave equipment to be an on-line state under the condition that second response information corresponding to the heartbeat detection information sent by the second slave equipment is received in a preset time period; and setting the equipment state of the second slave equipment to be an offline state under the condition that the second response information is not received within the preset time period.
According to the embodiment of the application, the hosted device is detected to acquire and update the device state of the hosted slave device in real time, so that the user does not need to repeatedly and automatically confirm the device state, and the hosting efficiency is improved.
Optionally, the processor 1110 is further configured to update, in the managed device list, device information of the third slave device according to the state information, if the state information of the third slave device is received.
According to the embodiment of the application, the slave device actively reports the state information to the master control device, so that the scenes such as IP change caused by restarting the device and reconnecting the disconnected network can be effectively treated, the managed state is not required to be manually reconfigured by a user, and the equipment managed efficiency is improved.
Optionally, the processor 1110 is further configured to execute a device function corresponding to a device instruction when receiving the device instruction sent by the master device; and sending first response information to the master control equipment, wherein the first response information is associated with an execution result of the equipment function.
According to the embodiment of the application, the master control equipment can rapidly identify and host the slave equipment, the hosted control interfaces can be independently customized, and unified hosting management of the Internet of things equipment with different systems and different specifications can be realized.
Optionally, the processor 1110 is further configured to send device information corresponding to the slave device to the master device when receiving user datagram protocol unicast information sent by the master device.
According to the embodiment of the application, the detected slave equipment is subjected to UDP unicast, so that the control structure of the managed slave equipment can be independently customized without fixed requirements, unified management of intelligent equipment with different manufacturers and different specifications can be realized, meanwhile, equipment in a network can be prevented from frequently receiving UDP broadcast, and no disturbing management is realized.
Optionally, the processor 1110 is further configured to send, when receiving the heartbeat detection message sent by the master device, second response information to the master device within a preset duration.
According to the embodiment of the application, the hosted device is detected to acquire and update the device state of the hosted slave device in real time, so that the user does not need to repeatedly and automatically confirm the device state, and the hosting efficiency is improved.
It should be appreciated that in embodiments of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, the graphics processor 11041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also referred to as a touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1109 may include volatile memory or nonvolatile memory, or the memory 1109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1110.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in part in the form of a computer software product stored on a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (13)

1. A method of managing a network device, performed by a master device, the method comprising:
detecting, within a first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses;
in the case of detecting a first slave device, adding device information of the first slave device to a managed device list;
transmitting a device instruction to the first slave device when the device instruction for controlling the first slave device is received and the first slave device is in an on-line state;
and outputting corresponding notification information based on the first response information corresponding to the equipment instruction.
2. The method of managing according to claim 1, characterized in that before said probing, within a first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within said first set of internet protocol addresses, said method further comprises:
determining a second internet protocol address set based on a dynamic host configuration protocol of the master device;
determining a third internet protocol address set according to the managed device list, wherein the internet protocol addresses in the third internet protocol address set are the detected internet protocol addresses of the slave devices, and the third internet protocol address set is a subset of the second internet protocol address set;
And determining the first internet protocol address set according to the complement of the third internet protocol address set in the second internet protocol address set.
3. The method of managing as set forth in claim 1, further comprising:
determining a third internet protocol address set according to the managed device list, wherein the internet protocol address in the third internet protocol address set is the detected internet protocol address of the slave device;
based on Internet control message protocol, detecting each Internet protocol address in the third Internet protocol address set;
and deleting the device information corresponding to any one of the internet protocol addresses in the managed device list under the condition that the device detection result of any one of the internet protocol addresses in the third internet protocol address set is detection failure.
4. The method of managing of claim 1, wherein prior to the adding the device information of the first slave device to the list of managed devices, the method further comprises:
transmitting user datagram protocol unicast information to the first slave device, the user datagram protocol unicast information including at least one of the following information: the method comprises the steps of enabling internet protocol address information of the master control equipment, interface information corresponding to the master control equipment and identification information of the master control equipment to be displayed;
The device information of the first slave device is added to a managed device list, including:
and adding the device information to a managed device list when the device information corresponding to the user datagram protocol unicast information is received.
5. The method of managing as set forth in claim 1, further comprising:
sending a probe heartbeat message to each slave device in the list of managed devices;
receiving second response information corresponding to the heartbeat detection information sent by a second slave device in a preset time period, and setting the device state of the second slave device to be an on-line state;
and setting the equipment state of the second slave equipment to be an offline state under the condition that the second response information is not received within the preset time period.
6. The method of managing as set forth in claim 1, further comprising:
and when receiving the state information of the third slave device, updating the device information of the third slave device in the managed device list according to the state information.
7. A method of managing a network device, performed by a slave device, the method comprising:
Executing a device function corresponding to a device instruction under the condition that the device instruction sent by the main control device is received;
and sending first response information to the main control equipment, wherein the first response information is associated with an execution result of the equipment function.
8. The method of managing as set forth in claim 7, further comprising:
and under the condition that user datagram protocol unicast information sent by the master control equipment is received, sending equipment information corresponding to the slave equipment to the master control equipment.
9. The method of managing as set forth in claim 7, further comprising:
and under the condition that the heartbeat detection message sent by the main control equipment is received, sending second response information to the main control equipment within a preset duration.
10. A management apparatus of a network device, applied to a master control device, characterized in that the management apparatus comprises:
a detection module for detecting, within a first set of internet protocol addresses, a slave device connected to any one of the internet protocol addresses within the first set of internet protocol addresses;
the storage module is used for adding the equipment information of the first slave equipment to the managed equipment list under the condition that the first slave equipment is detected;
A sending module, configured to send, when a device instruction for controlling the first slave device is received and the first slave device is in an online state, the device instruction to the first slave device;
and the output module is used for outputting corresponding notification information based on the first response information corresponding to the equipment instruction.
11. A management apparatus of a network device, applied to a slave device, characterized in that the management apparatus comprises:
the execution module is used for executing the equipment function corresponding to the equipment instruction under the condition that the equipment instruction sent by the main control equipment is received;
and the sending module is used for sending first response information to the main control equipment, wherein the first response information is associated with an execution result of the equipment function.
12. A first electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any one of claims 1 to 6.
13. A second electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any one of claims 7 to 9.
CN202311074548.6A 2023-08-24 2023-08-24 Management method and management device of network equipment and electronic equipment Pending CN116886575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311074548.6A CN116886575A (en) 2023-08-24 2023-08-24 Management method and management device of network equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311074548.6A CN116886575A (en) 2023-08-24 2023-08-24 Management method and management device of network equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN116886575A true CN116886575A (en) 2023-10-13

Family

ID=88270271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311074548.6A Pending CN116886575A (en) 2023-08-24 2023-08-24 Management method and management device of network equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN116886575A (en)

Similar Documents

Publication Publication Date Title
CN106911524B (en) HA implementation method and device
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
CN109639692B (en) Offline login method, device, equipment, system and storage medium
CN111083765A (en) Method for managing intelligent equipment, intelligent router and intelligent home system
CN112448822B (en) Cross-network awakening method and related equipment
EP3046349B1 (en) Method and device for sending a message
CN114866365B (en) Arbitration machine election method, device, intelligent equipment and computer readable storage medium
CN106254312B (en) method and device for achieving server attack prevention through virtual machine heterogeneous
CN105721203A (en) Upgrade processing method and device
CN111385377B (en) IP address conflict processing method, equipment and storage medium
WO2017117964A1 (en) Alarm monitoring method and apparatus
CN107465621B (en) Router discovery method, SDN controller, router and network system
CN110740083A (en) Voice equipment awakening method and device, household appliance and readable storage medium
CN108595195B (en) Application program updating method, device, terminal and storage medium
CN116886575A (en) Management method and management device of network equipment and electronic equipment
KR20150104435A (en) Method of performing transition of operation mode for a routing processor
JP7153766B2 (en) How to detect PLC asset switching
CN115499333A (en) Method, system, storage medium and electronic device for determining association relationship
CN108768464B (en) Radio frequency data transmission method and system
CN113225195A (en) Equipment detection method, device, controller and medium
US11937356B2 (en) Diagnosing a problem occurring when controlling a lighting device based on lighting device grouping information
RU2765980C1 (en) Method and system for collecting user device identifiers in form of mac addresses
CN117130758B (en) Start-stop control method and device for simulation engine and simulation system
CN113615321B (en) Diagnosing problems occurring in controlling lighting devices based on lighting device grouping information
CN103166789A (en) System and server for providing device events to reproduce topology change and method of system

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