WO2016101294A1 - Method and apparatus for managing network node information - Google Patents

Method and apparatus for managing network node information Download PDF

Info

Publication number
WO2016101294A1
WO2016101294A1 PCT/CN2014/095375 CN2014095375W WO2016101294A1 WO 2016101294 A1 WO2016101294 A1 WO 2016101294A1 CN 2014095375 W CN2014095375 W CN 2014095375W WO 2016101294 A1 WO2016101294 A1 WO 2016101294A1
Authority
WO
WIPO (PCT)
Prior art keywords
tree
node
nodes
information
network
Prior art date
Application number
PCT/CN2014/095375
Other languages
French (fr)
Chinese (zh)
Inventor
黄艳云
严力
李志远
周刚
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2016101294A1 publication Critical patent/WO2016101294A1/en

Links

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

Definitions

  • the present invention relates to the field of CEC network technologies, and in particular, to a method and an apparatus for managing network node information.
  • CEC Cooperative engagement Capability, synergy ability
  • the main purpose of the present invention is to provide a method and device for managing network node information, which aims to solve the problem that the state of a node (CEC device) in a network cannot be monitored in the existing CEC technology, so that each network cannot be known in time.
  • the information of the node status, the management of the nodes in the network is confusing, and thus the user cannot understand the changes of the network in time, which makes the CEC network experience poor.
  • the present invention provides a method for managing network node information, including the steps of:
  • the information of each node is updated according to the changed status information, and the updated information is displayed on the user interface.
  • the step of determining whether the status information changes :
  • the method further includes:
  • the detected state information is compared with the state information of the node in the backup tree;
  • the method further includes:
  • a tree is created according to the node information of the network.
  • the traversing the formed tree before acquiring the information of each node to be saved in the backup tree and displayed in the user interface, further includes:
  • a tree structure between nodes is constructed according to the relationship between nodes to form a tree of nodes in the network.
  • the method further includes:
  • the tree is re-formed according to the relationship between the nodes of the network
  • the prompt message that the tree formation failure is issued.
  • the step of determining whether the status information changes :
  • the method further includes:
  • the present invention further provides a device for managing network node information, including:
  • An obtaining module after successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and displayed on the user interface;
  • a detection module configured to detect status information of each node in the tree
  • a determining module configured to determine whether the status information changes
  • An update module configured to update information of each node according to the changed state information when the state information changes
  • a display module for displaying updated information on the user interface.
  • the determining module is further configured to determine whether a node exists in the formed tree; when there is no node in the formed tree, determine whether a node exists in the backup tree; and a node exists in the backup tree At the time, it is judged that the state information changes.
  • the determining module is further configured to compare the detected state information with state information of nodes in the backup tree when a node exists in the formed tree; and is further used for detecting the state information and When the status information of the nodes in the backup tree is inconsistent, it is determined that the status information changes.
  • the management device of the network node information further includes a creating module, configured to create a tree according to node information of the network when there is no node in the formed tree.
  • the obtaining module is further configured to acquire a relationship between nodes in the network;
  • the creating module is further configured to construct a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network.
  • the determining module is further configured to determine whether the tree is successfully formed
  • the creating module is further configured to re-form a tree according to the relationship between each node of the network if the success is not formed;
  • the display module is further configured to issue a prompt message that the tree formation fails after the value of the number of re-formed times is greater than a preset number of times threshold.
  • the determining module is further configured to compare the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree; and to use the value of the detected number of nodes and the backup When the values of the number of nodes in the tree are inconsistent, it is judged that the state information changes.
  • the detecting module is further configured to: after successfully displaying the updated information in the user interface, perform state information of each node in the detection tree, and determine, by the determining module, whether the state information changes.
  • the invention forms a tree by constructing a tree structure of network nodes, and saves information of each node in the tree to the backup tree; detects state information of each node in the tree, and updates the node when the detected node information changes Information and display the updated information in the user interface.
  • CEC devices CEC devices
  • Figure 1 is a schematic flow chart of the basic control functions of the CEC function
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for managing network node information according to the present invention
  • FIG. 3 is a schematic diagram of a tree structure of a CEC topology network according to the present invention.
  • FIG. 4 is a schematic flowchart of an embodiment of determining whether the state information changes according to the present invention.
  • FIG. 5 is a schematic flowchart of an embodiment of the present invention for determining whether the state information changes according to the number of nodes in the formed tree;
  • FIG. 6 is a schematic flowchart diagram of a second embodiment of a method for managing network node information according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of a network node information management apparatus according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of a network node information management apparatus according to the present invention.
  • the main solution of the embodiment of the present invention is: after successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and User interface display; detecting state information of each node in the tree, and determining whether the state information changes; when the state information changes, updating information of each node according to the changed state information, and in the user interface The updated information is displayed.
  • Forming a tree by constructing a tree structure of the network node, and saving information of each node in the tree to the backup tree; detecting state information of each node in the tree, and updating the node information when the detected node information changes
  • the updated information is displayed on the user interface.
  • the status of the nodes (CEC devices) in the network cannot be monitored, so that the information of the status of each node in the network cannot be known in time, and the management of the nodes in the network is confusing, so that the user cannot know the network in time.
  • the present invention provides a method for managing network node information.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for managing network node information according to the present invention.
  • the method for managing network node information includes:
  • Step S10 after successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and displayed on the user interface;
  • the CEC device is assigned 14 logical addresses according to the HDML 1.4a standard document, that is, there are up to 14 devices in the CEC network, that is, there are at most 14 nodes in the tree structure. After the tree is formed, it is determined whether the tree is successfully created. If the tree is not formed successfully, the tree is re-formed according to the relationship between the nodes of the network.
  • the preset threshold may be It is 2 or 4 times, etc., according to the user's needs and/or system performance settings, the prompt message that the tree formation fails.
  • the prompt information may be text, picture, voice, etc.; after the tree structure of each node in the successfully created network forms a tree of each node in the network, traverse the formed tree, and obtain information of each node to save to the backup tree. And displaying the acquired information of each node in the user interface, and displaying the acquired information of each node in a tree structure.
  • the acquired information of each node includes, but is not limited to, pointer information pointed by the node, a logical address of the current node, a physical address of the current node, a connection state of the current node, a standby state of the current node, and the like.
  • the process of obtaining a physical address of the node may include: sending a ⁇ give physical After the message of address>, the target CEC device will return its own physical address.
  • the process of obtaining the logical address of the node may be: since the underlying driver also needs a logical address when sending the message, as long as a message is sent, the logical address can be extracted according to the received message.
  • the process of obtaining the connection state of the node may be: the connection state may be processed by sending a message. If the result of sending any message is successful, the CEC device (node) is connected, otherwise it is not connected.
  • the acquisition process of the node standby state may be: in the CEC network, a ⁇ GIVE POWER may be sent.
  • the STATUS> message causes the target CEC device to return its status and update this status information to the node.
  • FIG. 3 it is a schematic diagram of a tree structure of a CEC topology network.
  • the name of each node in the tree is the physical address of the node, and the physical address is allocated by the underlying driver.
  • the definition is as follows: a pointer to the parent node, a pointer to the child node 1, a pointer to the child node 2, a pointer to the child node 3, a pointer to the child node 4, a pointer to the child node 5, The physical address of the current node, the logical address of the current node, the connection state of the current node, the standby state of the current node, and so on.
  • the number of HDMI ports will not exceed five, so designing five sub-nodes is sufficient, regardless of the complex tree structure.
  • the node pointer itself belongs to a part of the tree. Through the tree's related logical operations, the tree's ancestor pointer, parent pointer, and child pointer can be easily obtained.
  • Step S20 detecting status information of each node in the tree, and determining whether the status information changes
  • the state information of each node in the tree is detected.
  • the state information of each node in the tree is detected when the preset time is reached.
  • the time is preferably 1 s. In other embodiments of the present invention, other 2s, 3s, and the like may also be set according to system resource distribution and system performance and/or user needs.
  • the process of determining whether the status information changes may include:
  • Step S21 determining whether there is a node in the formed tree; determining whether there is a node in the formed tree, that is, determining whether the formed tree has a node and whether it is an empty tree.
  • Step S22 When there is no node in the formed tree, determine whether a node exists in the backup tree.
  • Step S23 when there is a node in the backup tree, determining that the state information changes
  • Step S24 when the node exists in the formed tree, compare the detected state information with the state information of the node in the backup tree;
  • Step S25 When the detected state information does not match the state information of the node in the backup tree, it is determined that the state information changes.
  • the detected state information is further compared with the state information of the node in the backup tree, and when the detected state information is inconsistent with the state information of the node in the backup tree, The status information changes; if they are consistent, it is determined that the status information has not changed, and the status information of each node in the formed tree is continuously detected. For example, when the connection state of the node changes, and/or when the connection state of the current node changes or when the physical address of the current node changes, it is determined that the state information changes; all information of the node does not change. At the time, it is judged that the state information has not changed.
  • the process of determining whether the status information changes according to the number of nodes in the formed tree may be:
  • Step S26 comparing the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
  • Step S27 When the value of the detected number of nodes does not match the value of the number of nodes in the backup tree, it is determined that the state information changes.
  • Step S30 when the status information changes, update the information of each node according to the changed status information, and display the updated information on the user interface.
  • the state information that has changed is acquired, the information of each node is updated according to the changed state information, and the updated information is displayed on the user interface.
  • the connection state of the node, the standby state of the node, the physical address of the node, and the like are updated.
  • the updated information is stored in the formed tree.
  • step detection of status information of each node in the tree and determining whether the status information changes is, after the status information is updated and displayed on the user interface, the status information of each node in the formed tree is continuously detected.
  • the mechanism of delay detection is used to ensure the integrity of the information, that is, after the update is completed, it can be ensured that the benchmark of the next detected data is the same, for example, the same as the data in the backup tree.
  • a tree is formed by constructing a tree structure of the network node, and information of each node in the tree is saved to the backup tree; state information of each node in the tree is detected, and when the detected node information changes, the tree is updated.
  • the node information displays the updated information in the user interface.
  • FIG. 6 is a schematic flowchart diagram of a second embodiment of a method for managing network node information according to the present invention. Based on the first embodiment of the foregoing method for managing network node information, after the step S21, the method further includes:
  • Step S28 when there is no node in the formed tree, the tree is created according to the node information of the network.
  • the process of determining that the state information changes frequently may be: determining whether the value of the number of times the state information changes in a certain time is within a preset threshold, and the certain time may be 1 minute, 2 minutes, etc. according to user needs and/or System performance settings, which may be 5 times, 10 times, etc., depending on system performance and/or network status settings.
  • the state information When the value of the number of times of change is within the preset threshold, it is determined that the state information does not change frequently, and when the value of the number of times of change is not within the preset threshold, the state information is often changed.
  • the state information of the node in the tree changes frequently or when the tree is empty, the tree is created, and the real-time performance of the tree information is improved, so that the user can timely know the information of each node device in the network, and improve the information.
  • the experience of the CEC network when the value of the number of times of change is within the preset threshold, it is determined that the state information does not change frequently, and when the value of the number of times of change is not within the preset threshold, the state information is often changed.
  • the state information of the node in the tree changes frequently or when the tree is empty, the tree is created, and the real-time performance of the tree information is improved, so that the user can timely know the information of each node device in the network, and improve the information.
  • the execution bodies of the network node information management methods of the first to second embodiments described above may each be a terminal. Further, the management method of the network node information may be implemented by a management program of client network node information installed on the terminal, where the terminal may include, but is not limited to, a CEC network management device such as a server or a desktop computer, or The device in which the CEC network management device is communicatively connected, such as a mobile phone, a pad, a laptop, and the like.
  • a CEC network management device such as a server or a desktop computer
  • the device in which the CEC network management device is communicatively connected such as a mobile phone, a pad, a laptop, and the like.
  • the invention further provides a device for managing network node information.
  • FIG. 7 is a schematic diagram of functional modules of a first embodiment of a network node information management apparatus according to the present invention.
  • the management device of the network node information includes: an obtaining module 10, a display module 20, a detecting module 30, a determining module 40, and an updating module 50.
  • the obtaining module 10 is configured to: after forming a tree structure of each node in the network to form a tree of each node in the network, traverse the formed tree, and obtain information of each node and save the information to the backup tree;
  • the display module 20 is configured to display the acquired information user interface
  • the CEC device is assigned 14 logical addresses according to the HDML 1.4a standard document, that is, there are up to 14 devices in the CEC network, that is, there are at most 14 nodes in the tree structure. After the tree is formed, it is determined whether the tree is successfully created. If the tree is not formed successfully, the tree is re-formed according to the relationship between the nodes of the network.
  • the preset threshold may be It is 2 or 4 times, etc., according to the user's needs and/or system performance settings, the prompt message that the tree formation fails.
  • the prompt information may be text, picture, voice, etc.; after the tree structure of each node in the successfully created network forms a tree of each node in the network, traverse the formed tree, and obtain information of each node to save to the backup tree. And displaying the acquired information of each node in the user interface, and displaying the acquired information of each node in a tree structure.
  • the acquired information of each node includes, but is not limited to, pointer information pointed by the node, a logical address of the current node, a physical address of the current node, a connection state of the current node, a standby state of the current node, and the like.
  • the process of obtaining a physical address of the node may include: sending a ⁇ give physical After the message of address>, the target CEC device will return its own physical address.
  • the process of obtaining the logical address of the node may be: since the underlying driver also needs a logical address when sending the message, as long as a message is sent, the logical address can be extracted according to the received message.
  • the process of obtaining the connection state of the node may be: the connection state may be processed by sending a message. If the result of sending any message is successful, the CEC device (node) is connected, otherwise it is not connected.
  • the acquisition process of the node standby state may be: in the CEC network, a ⁇ GIVE POWER may be sent.
  • the STATUS> message causes the target CEC device to return its status and update this status information to the node.
  • FIG. 3 it is a schematic diagram of a tree structure of a CEC topology network.
  • the name of each node in the tree is the physical address of the node, and the physical address is allocated by the underlying driver.
  • the definition is as follows: a pointer to the parent node, a pointer to the child node 1, a pointer to the child node 2, a pointer to the child node 3, a pointer to the child node 4, a pointer to the child node 5, The physical address of the current node, the logical address of the current node, the connection state of the current node, the standby state of the current node, and so on.
  • the number of HDMI ports will not exceed five, so designing five sub-nodes is sufficient, regardless of the complex tree structure.
  • the node pointer itself belongs to a part of the tree. Through the tree's related logical operations, the tree's ancestor pointer, parent pointer, and child pointer can be easily obtained.
  • the detecting module 30 is configured to detect status information of each node in the tree.
  • the determining module 40 is configured to determine whether the status information changes
  • the state information of each node in the tree is detected.
  • the state information of each node in the tree is detected when the preset time is reached.
  • the time is preferably 1 s. In other embodiments of the present invention, other 2s, 3s, and the like may also be set according to system resource distribution and system performance and/or user needs.
  • the determining module 40 is further configured to determine whether a node exists in the formed tree; determine whether there is a node in the formed tree, that is, determine whether the formed tree has a node, and whether it is an empty tree.
  • the determining module 40 is further configured to determine whether a node exists in the backup tree when there is no node in the formed tree;
  • the determining module 40 is further configured to: when the node exists in the backup tree, determine that the state information changes;
  • the determining module 40 is further configured to compare the detected state information with state information of nodes in the backup tree when a node exists in the formed tree;
  • the determining module 40 is further configured to determine that the state information changes when the detected state information does not match the state information of the node in the backup tree.
  • the detected state information is further compared with the state information of the node in the backup tree, and when the detected state information is inconsistent with the state information of the node in the backup tree, The state information changes; if they match, it is determined that the state information does not change, and the state information of each node in the formed tree is continuously detected. For example, when the connection state of the node changes, and/or when the connection state of the current node changes or when the physical address of the current node changes, it is determined that the state information changes; all information of the node does not change. At the time, it is judged that the state information has not changed.
  • the determining module 40 is further configured to compare the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
  • the determining module 40 is further configured to determine that the state information changes when the value of the detected number of nodes does not match the value of the number of nodes in the backup tree.
  • the update module 50 is configured to update information of each node according to the changed state information when the state information changes;
  • the display module 20 is further configured to display updated information on the user interface.
  • the state information that has changed is acquired, the information of each node is updated according to the changed state information, and the updated information is displayed on the user interface.
  • the connection state of the node, the standby state of the node, the physical address of the node, and the like are updated.
  • the updated information is stored in the formed tree.
  • step detection of status information of each node in the tree and determining whether the status information changes is, after the status information is updated and displayed on the user interface, the status information of each node in the formed tree is continuously detected.
  • the mechanism of delay detection is used to ensure the integrity of the information, that is, after the update is completed, it can be ensured that the benchmark of the next detected data is the same, for example, the same as the data in the backup tree.
  • a tree is formed by constructing a tree structure of the network node, and information of each node in the tree is saved to the backup tree; state information of each node in the tree is detected, and when the detected node information changes, the tree is updated.
  • the node information displays the updated information in the user interface.
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of a network node information management apparatus according to the present invention.
  • the management device of the network node information further includes: a creating module 60,
  • the creating module 60 is configured to create a tree according to node information of the network when there is no node in the formed tree.
  • the process of determining that the state information changes frequently may be: determining whether the value of the number of times the state information changes in a certain time is within a preset threshold, and the certain time may be 1 minute, 2 minutes, etc. according to user needs and/or System performance settings, which may be 5 times, 10 times, etc., depending on system performance and/or network status settings.
  • the state information When the value of the number of times of change is within the preset threshold, it is determined that the state information does not change frequently, and when the value of the number of times of change is not within the preset threshold, the state information is often changed.
  • the state information of the node in the tree changes frequently or when the tree is empty, the tree is created, and the real-time performance of the tree information is improved, so that the user can timely know the information of each node device in the network, and improve the information.
  • the experience of the CEC network when the value of the number of times of change is within the preset threshold, it is determined that the state information does not change frequently, and when the value of the number of times of change is not within the preset threshold, the state information is often changed.
  • the state information of the node in the tree changes frequently or when the tree is empty, the tree is created, and the real-time performance of the tree information is improved, so that the user can timely know the information of each node device in the network, and improve the information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed is a method for managing network node information, comprising the steps of: after successfully creating a tree structure of all nodes in a network to form a tree of all the nodes in the network, traversing the formed tree, acquiring information about all the nodes, saving same in a backup tree, and displaying same on a user interface; detecting state information about all the nodes in the tree, and judging whether the state information has changed; and when the state information has changed, updating the information about all the nodes according to the changed state information, and displaying the updated information on the user interface. Further disclosed is an apparatus for managing network node information. The present invention enables the management of network nodes to be clear and convenient, and updating the state information about the nodes in the network in time enables a user to learn the change of the network in time, thereby improving the experience of a CEC network.

Description

网络节点信息的管理方法及装置  Network node information management method and device
技术领域Technical field
本发明涉及CEC网络技术领域,尤其涉及网络节点信息的管理方法及装置。The present invention relates to the field of CEC network technologies, and in particular, to a method and an apparatus for managing network node information.
背景技术Background technique
CEC(Cooperative engagement capability,协同交战能力)。可以通过TV控制CEC设备(DVD、录音机等)的相关行为,例如快进,快退,进出仓,音量加减等。为TV领域的一个常用功能。CEC (Cooperative engagement Capability, synergy ability). It is possible to control the related behavior of CEC devices (DVD, recorder, etc.) through the TV, such as fast forward, fast reverse, in and out of the warehouse, volume addition and subtraction, and the like. A common feature for the TV field.
CEC功能的基本控制流程参考图1。从图1中CEC功能的实现来看, CEC功能的实现,对于CEC设备的属性要求很严格。然而,在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差。Refer to Figure 1 for the basic control flow of the CEC function. From the realization of the CEC function in Figure 1, The implementation of the CEC function is very strict with the attributes of the CEC device. However, in the existing CEC technology, the state of the nodes (CEC devices) in the network cannot be monitored, so that the information of the state of each node in the network cannot be known in time, and the management of the nodes in the network is disordered, so that the user cannot know in time. Changes in the network make the CEC network experience poor.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种网络节点信息的管理方法及装置,旨在解决在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差的问题。The main purpose of the present invention is to provide a method and device for managing network node information, which aims to solve the problem that the state of a node (CEC device) in a network cannot be monitored in the existing CEC technology, so that each network cannot be known in time. The information of the node status, the management of the nodes in the network is confusing, and thus the user cannot understand the changes of the network in time, which makes the CEC network experience poor.
为实现上述目的,本发明提供的一种网络节点信息的管理方法,包括步骤:To achieve the above objective, the present invention provides a method for managing network node information, including the steps of:
在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示;After successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and displayed on the user interface;
检测树中各个节点的状态信息,并判断所述状态信息是否发生变化;Detecting status information of each node in the tree, and determining whether the status information changes;
在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息,并在所述用户界面显示更新后的信息。When the status information changes, the information of each node is updated according to the changed status information, and the updated information is displayed on the user interface.
优选地,所述判断所述状态信息是否发生变化的步骤包括:Preferably, the step of determining whether the status information changes:
判断所形成的树中是否存在节点;Determining whether there is a node in the formed tree;
在所形成的树中不存在节点时,判断所述备份树中是否存在节点;When there is no node in the formed tree, determining whether there is a node in the backup tree;
在所述备份树中存在节点时,判断所述状态信息发生变化。When there is a node in the backup tree, it is determined that the state information changes.
优选地,所述判断所形成的树中是否存在节点的步骤之后,还包括:Preferably, after the step of determining whether a node exists in the formed tree, the method further includes:
在所形成的树中存在节点时,将所检测的状态信息与所述备份树中节点的状态信息比对;When the node exists in the formed tree, the detected state information is compared with the state information of the node in the backup tree;
在所检测的状态信息与所述备份树中节点的状态信息不一致时,判断所述状态信息发生变化。When the detected status information does not match the status information of the node in the backup tree, it is determined that the status information changes.
优选地,所述判断所形成的树中是否存在节点的步骤之后,还包括:Preferably, after the step of determining whether a node exists in the formed tree, the method further includes:
在所形成的树中不存在节点时,根据网络的节点信息创建树。When there is no node in the formed tree, a tree is created according to the node information of the network.
优选地,所述遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示的步骤之前,还包括:Preferably, the traversing the formed tree, before acquiring the information of each node to be saved in the backup tree and displayed in the user interface, further includes:
获取网络中各节点之间的关系;Obtain the relationship between nodes in the network;
根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树。A tree structure between nodes is constructed according to the relationship between nodes to form a tree of nodes in the network.
优选地,所述根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树的步骤之后,还包括:Preferably, after the step of constructing a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network, the method further includes:
判断所述树是否形成成功;Determining whether the tree is formed successfully;
若未形成成功,则根据网络各节点的关系重新形成树;If the success is not formed, the tree is re-formed according to the relationship between the nodes of the network;
在重新形成的次数的值大于预设次数阈值后,发出树形成失败的提示信息。After the value of the number of re-formation is greater than the preset number threshold, the prompt message that the tree formation failure is issued.
优选地,所述判断所述状态信息是否发生变化的步骤包括:Preferably, the step of determining whether the status information changes:
将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;Comparing the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。When the value of the detected number of nodes does not match the value of the number of nodes in the backup tree, it is determined that the status information changes.
优选地,所述根据发生变化的状态信息更新各个节点的信息并在所述用户界面显示更新后的信息的步骤之后,还包括:Preferably, after the step of updating the information of each node according to the changed state information and displaying the updated information in the user interface, the method further includes:
在成功在所述用户界面显示更新后的信息后,执行检测树中各个节点的状态信息,并判断所述状态信息是否发生变化的步骤。After successfully displaying the updated information on the user interface, performing step detection of status information of each node in the tree and determining whether the status information changes.
此外,为实现上述目的,本发明还提供一种网络节点信息的管理装置,包括:In addition, in order to achieve the above object, the present invention further provides a device for managing network node information, including:
获取模块,用于在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示;An obtaining module, after successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and displayed on the user interface;
检测模块,用于检测树中各个节点的状态信息;a detection module, configured to detect status information of each node in the tree;
判断模块,用于判断所述状态信息是否发生变化;a determining module, configured to determine whether the status information changes;
更新模块,用于在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息;An update module, configured to update information of each node according to the changed state information when the state information changes;
显示模块,用于在所述用户界面显示更新后的信息。a display module for displaying updated information on the user interface.
优选地,所述判断模块,还用于判断所形成的树中是否存在节点;在所形成的树中不存在节点时,判断所述备份树中是否存在节点;在所述备份树中存在节点时,判断所述状态信息发生变化。Preferably, the determining module is further configured to determine whether a node exists in the formed tree; when there is no node in the formed tree, determine whether a node exists in the backup tree; and a node exists in the backup tree At the time, it is judged that the state information changes.
优选地,所述判断模块,还用于在所形成的树中存在节点时,将所检测的状态信息与所述备份树中节点的状态信息比对;还用于在所检测的状态信息与所述备份树中节点的状态信息不一致时,判断所述状态信息发生变化。Preferably, the determining module is further configured to compare the detected state information with state information of nodes in the backup tree when a node exists in the formed tree; and is further used for detecting the state information and When the status information of the nodes in the backup tree is inconsistent, it is determined that the status information changes.
优选地,所述网络节点信息的管理装置还包括创建模块,用于在所形成的树中不存在节点时,根据网络的节点信息创建树。Preferably, the management device of the network node information further includes a creating module, configured to create a tree according to node information of the network when there is no node in the formed tree.
优选地,所述获取模块,还用于获取网络中各节点之间的关系;Preferably, the obtaining module is further configured to acquire a relationship between nodes in the network;
所述创建模块,还用于根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树。The creating module is further configured to construct a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network.
优选地,所述判断模块,还用于判断所述树是否形成成功;Preferably, the determining module is further configured to determine whether the tree is successfully formed;
所述创建模块,还用于若未形成成功,则根据网络各节点的关系重新形成树;The creating module is further configured to re-form a tree according to the relationship between each node of the network if the success is not formed;
所述显示模块,还用于在重新形成的次数的值大于预设次数阈值后,发出树形成失败的提示信息。The display module is further configured to issue a prompt message that the tree formation fails after the value of the number of re-formed times is greater than a preset number of times threshold.
优选地,所述判断模块,还用于将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;还用于在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。Preferably, the determining module is further configured to compare the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree; and to use the value of the detected number of nodes and the backup When the values of the number of nodes in the tree are inconsistent, it is judged that the state information changes.
优选地,所述检测模块,还用于在成功在所述用户界面显示更新后的信息后,执行检测树中各个节点的状态信息,并通过判断模块判断所述状态信息是否发生变化。Preferably, the detecting module is further configured to: after successfully displaying the updated information in the user interface, perform state information of each node in the detection tree, and determine, by the determining module, whether the state information changes.
本发明通过构建网络节点的树形结构形成树,并将树中各节点的信息保存至备份树中;检测所述树中各个节点的状态信息,在检测到的节点信息发生变化时,更新节点信息并在所述用户界面显示更新后的信息。有效避免在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差的问题。使得网络节点的管理清晰、方便,及时更新网络中节点的状态信息,使得用户及时了解到网络的变化,提高了CEC网络的体验度。The invention forms a tree by constructing a tree structure of network nodes, and saves information of each node in the tree to the backup tree; detects state information of each node in the tree, and updates the node when the detected node information changes Information and display the updated information in the user interface. Effectively avoiding the existing CEC technology, it is impossible to monitor the status of nodes (CEC devices) in the network, so that the information of the status of each node in the network cannot be known in time, and the management of the nodes in the network is confusing, which makes the user unable to know in time. Changes in the network make the CEC network experience poor. The management of the network node is clear and convenient, and the state information of the nodes in the network is updated in time, so that the user can timely understand the changes of the network and improve the experience of the CEC network.
附图说明DRAWINGS
图1为CEC功能的基本控制功能流程示意图;Figure 1 is a schematic flow chart of the basic control functions of the CEC function;
图2为本发明网络节点信息的管理方法的第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for managing network node information according to the present invention;
图3为本发明CEC拓扑网络的树形结构示意图;3 is a schematic diagram of a tree structure of a CEC topology network according to the present invention;
图4为本发明判断所述状态信息是否发生变化一实施例的流程示意图;4 is a schematic flowchart of an embodiment of determining whether the state information changes according to the present invention;
图5为本发明根据所形成树中的节点数量来判断所述状态信息是否发生变化一实施例的流程示意图;FIG. 5 is a schematic flowchart of an embodiment of the present invention for determining whether the state information changes according to the number of nodes in the formed tree;
图6为本发明网络节点信息的管理方法的第二实施例的流程示意图;6 is a schematic flowchart diagram of a second embodiment of a method for managing network node information according to the present invention;
图7为本发明网络节点信息的管理装置的第一实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of a first embodiment of a network node information management apparatus according to the present invention; FIG.
图8为本发明网络节点信息的管理装置的第二实施例的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of a second embodiment of a network node information management apparatus according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示;检测树中各个节点的状态信息,并判断所述状态信息是否发生变化;在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息,并在所述用户界面显示更新后的信息。通过构建网络节点的树形结构形成树,并将树中各节点的信息保存至备份树中;检测所述树中各个节点的状态信息,在检测到的节点信息发生变化时,更新节点信息并在所述用户界面显示更新后的信息。有效避免在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差的问题。使得网络节点的管理清晰、方便,及时更新网络中节点的状态信息,使得用户及时了解到网络的变化,提高了CEC网络的体验度。The main solution of the embodiment of the present invention is: after successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and User interface display; detecting state information of each node in the tree, and determining whether the state information changes; when the state information changes, updating information of each node according to the changed state information, and in the user interface The updated information is displayed. Forming a tree by constructing a tree structure of the network node, and saving information of each node in the tree to the backup tree; detecting state information of each node in the tree, and updating the node information when the detected node information changes The updated information is displayed on the user interface. Effectively avoiding the existing CEC technology, it is impossible to monitor the status of nodes (CEC devices) in the network, so that the information of the status of each node in the network cannot be known in time, and the management of the nodes in the network is confusing, which makes the user unable to know in time. Changes in the network make the CEC network experience poor. The management of the network node is clear and convenient, and the state information of the nodes in the network is updated in time, so that the user can timely understand the changes of the network and improve the experience of the CEC network.
由于在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差。In the existing CEC technology, the status of the nodes (CEC devices) in the network cannot be monitored, so that the information of the status of each node in the network cannot be known in time, and the management of the nodes in the network is confusing, so that the user cannot know the network in time. The changes made the CEC network experience poor.
基于上述问题,本发明提供一种网络节点信息的管理方法。Based on the above problems, the present invention provides a method for managing network node information.
参照图2,图2为本发明网络节点信息的管理方法的第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for managing network node information according to the present invention.
在一实施例中,所述网络节点信息的管理方法包括:In an embodiment, the method for managing network node information includes:
步骤S10,在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示;Step S10, after successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and displayed on the user interface;
获取网络中各节点之间的关系,根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树。根据HDML1.4a标准文档给CEC设备分配了14个逻辑地址,也就是说,在CEC网络中最多拥有14个设备,即所述树形结构中最多存在14个节点。在形成树后,判断所述树是否创建成功,若未形成成功,则根据网络各节点的关系重新形成树,在重新形成的次数的值大于预设次数阈值后,所述预设次数阈值可以是2次或4次等根据用户需要及/或系统性能设置,发出树形成失败的提示信息。所述提示信息可以是文字、图片、语音等;在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示所获取的各个节点的信息,以树形结构的形式显示所获取的各个节点的信息。所获取的各个节点的信息包括但不限于节点指向的指针信息、当前节点的逻辑地址、当前节点的物理地址、当前节点的连接状态、当前节点的待机状态等信息。Obtaining the relationship between nodes in the network, constructing a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network. The CEC device is assigned 14 logical addresses according to the HDML 1.4a standard document, that is, there are up to 14 devices in the CEC network, that is, there are at most 14 nodes in the tree structure. After the tree is formed, it is determined whether the tree is successfully created. If the tree is not formed successfully, the tree is re-formed according to the relationship between the nodes of the network. After the value of the number of times of re-formation is greater than the preset threshold, the preset threshold may be It is 2 or 4 times, etc., according to the user's needs and/or system performance settings, the prompt message that the tree formation fails. The prompt information may be text, picture, voice, etc.; after the tree structure of each node in the successfully created network forms a tree of each node in the network, traverse the formed tree, and obtain information of each node to save to the backup tree. And displaying the acquired information of each node in the user interface, and displaying the acquired information of each node in a tree structure. The acquired information of each node includes, but is not limited to, pointer information pointed by the node, a logical address of the current node, a physical address of the current node, a connection state of the current node, a standby state of the current node, and the like.
具体的,获取节点物理地址的过程可以包括:系统发出<give physical address>的消息后,目标CEC设备会返回自身的物理地址。Specifically, the process of obtaining a physical address of the node may include: sending a <give physical After the message of address>, the target CEC device will return its own physical address.
节点的逻辑地址的获取过程可以是:由于底层驱动在发送消息时,也需要逻辑地址,因此只要一个消息发通了,都可以根据接收到的消息来提取逻辑地址。The process of obtaining the logical address of the node may be: since the underlying driver also needs a logical address when sending the message, as long as a message is sent, the logical address can be extracted according to the received message.
节点连接状态的获取过程可以是:连接状态可以通过发送消息的结果来处理,如果发送任何一个消息的结果为发送成功,那么代表此CEC设备(节点)是连通的,否则未连通。The process of obtaining the connection state of the node may be: the connection state may be processed by sending a message. If the result of sending any message is successful, the CEC device (node) is connected, otherwise it is not connected.
节点待机状态的获取过程可以是:在CEC网络中,可以发送一个<GIVE POWER STATUS>消息,让目标CEC设备返回自身的状态,同时将此状态信息更新到节点中。The acquisition process of the node standby state may be: in the CEC network, a <GIVE POWER may be sent. The STATUS> message causes the target CEC device to return its status and update this status information to the node.
参考图3,为CEC拓扑网络的树形结构示意图。在所述树中各个节点的名称为节点的物理地址,物理地址由底层驱动分配。对于其中每个节点的定义如下:指向父节点的指针、指向子节点1的指针、指向子节点2的指针、指向子节点3的指针、指向子节点4的指针、指向子节点5的指针、当前节点的物理地址、当前节点的逻辑地址、当前节点的连接状态、当前节点的待机状态等。关于指针的获取,取决于CEC网络的实际状态,对于大部分产品而言,HDMI的端口数目不会超过5个,因此设计5个子节点已经足够,而不用考虑复杂的树形结构。在本发明其他实施例中也还可以是设计超过5个的子节点或者少于5个的子节点,根据实际情况设计。Referring to FIG. 3, it is a schematic diagram of a tree structure of a CEC topology network. The name of each node in the tree is the physical address of the node, and the physical address is allocated by the underlying driver. For each of these nodes, the definition is as follows: a pointer to the parent node, a pointer to the child node 1, a pointer to the child node 2, a pointer to the child node 3, a pointer to the child node 4, a pointer to the child node 5, The physical address of the current node, the logical address of the current node, the connection state of the current node, the standby state of the current node, and so on. Regarding the acquisition of pointers, depending on the actual state of the CEC network, for most products, the number of HDMI ports will not exceed five, so designing five sub-nodes is sufficient, regardless of the complex tree structure. In other embodiments of the present invention, it is also possible to design more than five child nodes or less than five child nodes, and design according to actual conditions.
节点指针本身属于树的一部分,通过树的相关逻辑操作,可以很容易的获取到树的祖先指针、父指针以及子指针。The node pointer itself belongs to a part of the tree. Through the tree's related logical operations, the tree's ancestor pointer, parent pointer, and child pointer can be easily obtained.
步骤S20,检测树中各个节点的状态信息,并判断所述状态信息是否发生变化;Step S20, detecting status information of each node in the tree, and determining whether the status information changes;
在成功创建树后,检测树中各个节点的状态信息,为了防止资源过度消耗,且又保证节点状态的更新状况,在预设时间达到时,检测树中各个节点的状态信息,所述预设时间优选为1s,在本发明其他实施例中也还可以是其他2s、3s等,根据系统资源分布情况和系统自身性能及/或用户需要设置。在检测到树中节点的状态后,判断所述状态信息是否发生变化。After the tree is successfully created, the state information of each node in the tree is detected. In order to prevent the excessive consumption of resources and the update status of the node state, the state information of each node in the tree is detected when the preset time is reached. The time is preferably 1 s. In other embodiments of the present invention, other 2s, 3s, and the like may also be set according to system resource distribution and system performance and/or user needs. After detecting the state of the node in the tree, it is determined whether the state information changes.
具体的,参考图4,所述判断所述状态信息是否发生变化的过程可以包括:Specifically, referring to FIG. 4, the process of determining whether the status information changes may include:
步骤S21,判断所形成的树中是否存在节点;判断所形成的树中是否存在节点,即判断所形成的树是否存在节点,是否为空的树。Step S21: determining whether there is a node in the formed tree; determining whether there is a node in the formed tree, that is, determining whether the formed tree has a node and whether it is an empty tree.
步骤S22,在所形成的树中不存在节点时,判断所述备份树中是否存在节点;Step S22: When there is no node in the formed tree, determine whether a node exists in the backup tree.
步骤S23,在所述备份树中存在节点时,判断所述状态信息发生变化;Step S23, when there is a node in the backup tree, determining that the state information changes;
在所形成的树中不存在节点时,进一步判断所形成的树对应的备份树中是否存在节点,在所述备份树中存在节点时,判断所述状态信息发生变化。When there is no node in the formed tree, it is further determined whether there is a node in the backup tree corresponding to the formed tree, and when there is a node in the backup tree, it is determined that the state information changes.
步骤S24,在所形成的树中存在节点时,将所检测的状态信息与所述备份树中节点的状态信息比对;Step S24, when the node exists in the formed tree, compare the detected state information with the state information of the node in the backup tree;
步骤S25,在所检测的状态信息与所述备份树中节点的状态信息不一致时,判断所述状态信息发生变化。Step S25: When the detected state information does not match the state information of the node in the backup tree, it is determined that the state information changes.
在所形成的树中存在节点时,进一步将所检测的状态信息与所述备份树中节点的状态信息比对,在所检测的状态信息与所述备份树中节点的状态信息不一致,则判断所述状态信息发生变化;若一致,则判断所述状态信息未发生变化,继续检测所形成的树中各个节点的状态信息。例如,在节点的连接状态发生变化时,及/或在当前节点的连接状态发生变化时或在当前节点的物理地址发生变化时,判断所述状态信息发生变化;在节点的所有信息未发生变化时,判断所述状态信息未发生变化。When the node exists in the formed tree, the detected state information is further compared with the state information of the node in the backup tree, and when the detected state information is inconsistent with the state information of the node in the backup tree, The status information changes; if they are consistent, it is determined that the status information has not changed, and the status information of each node in the formed tree is continuously detected. For example, when the connection state of the node changes, and/or when the connection state of the current node changes or when the physical address of the current node changes, it is determined that the state information changes; all information of the node does not change. At the time, it is judged that the state information has not changed.
在本发明其他事实例中,也可以是根据所形成树中的节点数量来判断所述状态信息是否发生变化。In other facts of the present invention, it may be determined whether the state information changes according to the number of nodes in the formed tree.
具体的,参考图5,所述根据所形成树中的节点数量来判断所述状态信息是否发生变化的过程可以是:Specifically, referring to FIG. 5, the process of determining whether the status information changes according to the number of nodes in the formed tree may be:
步骤S26,将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;Step S26, comparing the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
步骤S27,在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。Step S27: When the value of the detected number of nodes does not match the value of the number of nodes in the backup tree, it is determined that the state information changes.
先通过检测所形成的树中节点数量,将检测到的节点数量的值与所述备份树中节点数量的值比对,若检测到的节点数量的值与所述备份树中节点数量的不同,则判断所述状态信息发生变化。First, by detecting the number of nodes in the formed tree, comparing the value of the detected number of nodes with the value of the number of nodes in the backup tree, if the value of the detected number of nodes is different from the number of nodes in the backup tree. Then, it is judged that the status information changes.
步骤S30,在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息,并在所述用户界面显示更新后的信息。Step S30, when the status information changes, update the information of each node according to the changed status information, and display the updated information on the user interface.
在所述状态发生变化时,获取发生变化的状态信息,根据发生变化的状态信息更新各个节点的信息,并在所述用户界面显示更新后的信息。例如,更新节点的连接状态、节点的待机状态、节点的物理地址等。将更新后的信息存储至所形成的树中。When the state changes, the state information that has changed is acquired, the information of each node is updated according to the changed state information, and the updated information is displayed on the user interface. For example, the connection state of the node, the standby state of the node, the physical address of the node, and the like are updated. The updated information is stored in the formed tree.
在成功在所述用户界面显示更新后的信息后,执行检测树中各个节点的状态信息,并判断所述状态信息是否发生变化的步骤。即在状态信息更新并在用户界面显示后,才继续检测所形成的树中各节点的状态信息。采用延时检测的机制,保证信息的完整性,即在更新完毕后,可以确保下次检测的数据的基准相同,例如,与备份树中的数据相同。After successfully displaying the updated information on the user interface, performing step detection of status information of each node in the tree and determining whether the status information changes. That is, after the status information is updated and displayed on the user interface, the status information of each node in the formed tree is continuously detected. The mechanism of delay detection is used to ensure the integrity of the information, that is, after the update is completed, it can be ensured that the benchmark of the next detected data is the same, for example, the same as the data in the backup tree.
本实施例通过构建网络节点的树形结构形成树,并将树中各节点的信息保存至备份树中;检测所述树中各个节点的状态信息,在检测到的节点信息发生变化时,更新节点信息并在所述用户界面显示更新后的信息。有效避免在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差的问题。使得网络节点的管理清晰、方便,及时更新网络中节点的状态信息,使得用户及时了解到网络的变化,提高了CEC网络的体验度。In this embodiment, a tree is formed by constructing a tree structure of the network node, and information of each node in the tree is saved to the backup tree; state information of each node in the tree is detected, and when the detected node information changes, the tree is updated. The node information displays the updated information in the user interface. Effectively avoiding the existing CEC technology, it is impossible to monitor the status of nodes (CEC devices) in the network, so that the information of the status of each node in the network cannot be known in time, and the management of the nodes in the network is confusing, which makes the user unable to know in time. Changes in the network make the CEC network experience poor. The management of the network node is clear and convenient, and the state information of the nodes in the network is updated in time, so that the user can timely understand the changes of the network and improve the experience of the CEC network.
参照图6,图6为本发明网络节点信息的管理方法的第二实施例的流程示意图。基于上述网络节点信息的管理方法的第一实施例,所述步骤S21之后,还包括:Referring to FIG. 6, FIG. 6 is a schematic flowchart diagram of a second embodiment of a method for managing network node information according to the present invention. Based on the first embodiment of the foregoing method for managing network node information, after the step S21, the method further includes:
步骤S28,在所形成的树中不存在节点时,根据网络的节点信息创建树。Step S28, when there is no node in the formed tree, the tree is created according to the node information of the network.
若所形成的树中不存在节点,即在所形成的树为空树时,需要根据网络的节点信息创建树。If there is no node in the formed tree, that is, when the formed tree is an empty tree, it is necessary to create a tree according to the node information of the network.
在本发明其他实施例中,当所述状态信息经常发生变化时,为了保证树信息的实时性,也需要重新创建网络中各节点的树。所述判断状态信息经常发生变化的过程可以是:判断状态信息在一定时间发生变化的次数的值是否在预设阈值内,所述一定时间可以是1分钟、2分钟等根据用户需要及/或系统性能设置,所述预设阈值可以是5次、10次等根据系统性能及/或网络状况设置。在发生变化的次数的值在预设阈值内时,判断所述状态信息不经常发生变化,在发生变化的次数的值不在预设阈值内时,判断所述状态信息经常发生变化。在本实施例通过在树中节点的状态信息经常发生变化或在树为空时,创建树,提高了树信息的实时性,进一步使得用户能及时了解到网络中各节点设备的信息,提高了CEC网络的体验度。In other embodiments of the present invention, when the status information changes frequently, in order to ensure the real-time performance of the tree information, it is also necessary to re-create the tree of each node in the network. The process of determining that the state information changes frequently may be: determining whether the value of the number of times the state information changes in a certain time is within a preset threshold, and the certain time may be 1 minute, 2 minutes, etc. according to user needs and/or System performance settings, which may be 5 times, 10 times, etc., depending on system performance and/or network status settings. When the value of the number of times of change is within the preset threshold, it is determined that the state information does not change frequently, and when the value of the number of times of change is not within the preset threshold, the state information is often changed. In this embodiment, when the state information of the node in the tree changes frequently or when the tree is empty, the tree is created, and the real-time performance of the tree information is improved, so that the user can timely know the information of each node device in the network, and improve the information. The experience of the CEC network.
上述第一至第二实施例的网络节点信息的管理方法的执行主体均可以为终端。更进一步地,该网络节点信息的管理方法可以由安装在终端上的客户端网络节点信息的管理程序实现,其中,该终端可以包括但不限于服务器、台式机等CEC网络管理设备,或者与所述CEC网络管理设备通信连接的设备,例如手机、pad、笔记本电脑等。The execution bodies of the network node information management methods of the first to second embodiments described above may each be a terminal. Further, the management method of the network node information may be implemented by a management program of client network node information installed on the terminal, where the terminal may include, but is not limited to, a CEC network management device such as a server or a desktop computer, or The device in which the CEC network management device is communicatively connected, such as a mobile phone, a pad, a laptop, and the like.
本发明进一步提供一种网络节点信息的管理装置。The invention further provides a device for managing network node information.
参照图7,图7为本发明网络节点信息的管理装置的第一实施例的功能模块示意图。Referring to FIG. 7, FIG. 7 is a schematic diagram of functional modules of a first embodiment of a network node information management apparatus according to the present invention.
在一实施例中,所述网络节点信息的管理装置包括:获取模块10、显示模块20、检测模块30、判断模块40及更新模块50。In an embodiment, the management device of the network node information includes: an obtaining module 10, a display module 20, a detecting module 30, a determining module 40, and an updating module 50.
所述获取模块10,用于在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中;The obtaining module 10 is configured to: after forming a tree structure of each node in the network to form a tree of each node in the network, traverse the formed tree, and obtain information of each node and save the information to the backup tree;
所述显示模块20,用于将所获取的信息用户界面显示;The display module 20 is configured to display the acquired information user interface;
获取网络中各节点之间的关系,根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树。根据HDML1.4a标准文档给CEC设备分配了14个逻辑地址,也就是说,在CEC网络中最多拥有14个设备,即所述树形结构中最多存在14个节点。在形成树后,判断所述树是否创建成功,若未形成成功,则根据网络各节点的关系重新形成树,在重新形成的次数的值大于预设次数阈值后,所述预设次数阈值可以是2次或4次等根据用户需要及/或系统性能设置,发出树形成失败的提示信息。所述提示信息可以是文字、图片、语音等;在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示所获取的各个节点的信息,以树形结构的形式显示所获取的各个节点的信息。所获取的各个节点的信息包括但不限于节点指向的指针信息、当前节点的逻辑地址、当前节点的物理地址、当前节点的连接状态、当前节点的待机状态等信息。Obtaining the relationship between nodes in the network, constructing a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network. The CEC device is assigned 14 logical addresses according to the HDML 1.4a standard document, that is, there are up to 14 devices in the CEC network, that is, there are at most 14 nodes in the tree structure. After the tree is formed, it is determined whether the tree is successfully created. If the tree is not formed successfully, the tree is re-formed according to the relationship between the nodes of the network. After the value of the number of times of re-formation is greater than the preset threshold, the preset threshold may be It is 2 or 4 times, etc., according to the user's needs and/or system performance settings, the prompt message that the tree formation fails. The prompt information may be text, picture, voice, etc.; after the tree structure of each node in the successfully created network forms a tree of each node in the network, traverse the formed tree, and obtain information of each node to save to the backup tree. And displaying the acquired information of each node in the user interface, and displaying the acquired information of each node in a tree structure. The acquired information of each node includes, but is not limited to, pointer information pointed by the node, a logical address of the current node, a physical address of the current node, a connection state of the current node, a standby state of the current node, and the like.
具体的,获取节点物理地址的过程可以包括:系统发出<give physical address>的消息后,目标CEC设备会返回自身的物理地址。Specifically, the process of obtaining a physical address of the node may include: sending a <give physical After the message of address>, the target CEC device will return its own physical address.
节点的逻辑地址的获取过程可以是:由于底层驱动在发送消息时,也需要逻辑地址,因此只要一个消息发通了,都可以根据接收到的消息来提取逻辑地址。The process of obtaining the logical address of the node may be: since the underlying driver also needs a logical address when sending the message, as long as a message is sent, the logical address can be extracted according to the received message.
节点连接状态的获取过程可以是:连接状态可以通过发送消息的结果来处理,如果发送任何一个消息的结果为发送成功,那么代表此CEC设备(节点)是连通的,否则未连通。The process of obtaining the connection state of the node may be: the connection state may be processed by sending a message. If the result of sending any message is successful, the CEC device (node) is connected, otherwise it is not connected.
节点待机状态的获取过程可以是:在CEC网络中,可以发送一个<GIVE POWER STATUS>消息,让目标CEC设备返回自身的状态,同时将此状态信息更新到节点中。The acquisition process of the node standby state may be: in the CEC network, a <GIVE POWER may be sent. The STATUS> message causes the target CEC device to return its status and update this status information to the node.
参考图3,为CEC拓扑网络的树形结构示意图。在所述树中各个节点的名称为节点的物理地址,物理地址由底层驱动分配。对于其中每个节点的定义如下:指向父节点的指针、指向子节点1的指针、指向子节点2的指针、指向子节点3的指针、指向子节点4的指针、指向子节点5的指针、当前节点的物理地址、当前节点的逻辑地址、当前节点的连接状态、当前节点的待机状态等。关于指针的获取,取决于CEC网络的实际状态,对于大部分产品而言,HDMI的端口数目不会超过5个,因此设计5个子节点已经足够,而不用考虑复杂的树形结构。在本发明其他实施例中也还可以是设计超过5个的子节点或者少于5个的子节点,根据实际情况设计。Referring to FIG. 3, it is a schematic diagram of a tree structure of a CEC topology network. The name of each node in the tree is the physical address of the node, and the physical address is allocated by the underlying driver. For each of these nodes, the definition is as follows: a pointer to the parent node, a pointer to the child node 1, a pointer to the child node 2, a pointer to the child node 3, a pointer to the child node 4, a pointer to the child node 5, The physical address of the current node, the logical address of the current node, the connection state of the current node, the standby state of the current node, and so on. Regarding the acquisition of pointers, depending on the actual state of the CEC network, for most products, the number of HDMI ports will not exceed five, so designing five sub-nodes is sufficient, regardless of the complex tree structure. In other embodiments of the present invention, it is also possible to design more than five child nodes or less than five child nodes, and design according to actual conditions.
节点指针本身属于树的一部分,通过树的相关逻辑操作,可以很容易的获取到树的祖先指针、父指针以及子指针。The node pointer itself belongs to a part of the tree. Through the tree's related logical operations, the tree's ancestor pointer, parent pointer, and child pointer can be easily obtained.
所述检测模块30,用于检测树中各个节点的状态信息;The detecting module 30 is configured to detect status information of each node in the tree.
所述判断模块40,用于判断所述状态信息是否发生变化;The determining module 40 is configured to determine whether the status information changes;
在成功创建树后,检测树中各个节点的状态信息,为了防止资源过度消耗,且又保证节点状态的更新状况,在预设时间达到时,检测树中各个节点的状态信息,所述预设时间优选为1s,在本发明其他实施例中也还可以是其他2s、3s等,根据系统资源分布情况和系统自身性能及/或用户需要设置。在检测到树中节点的状态后,判断所述状态信息是否发生变化。After the tree is successfully created, the state information of each node in the tree is detected. In order to prevent the excessive consumption of resources and the update status of the node state, the state information of each node in the tree is detected when the preset time is reached. The time is preferably 1 s. In other embodiments of the present invention, other 2s, 3s, and the like may also be set according to system resource distribution and system performance and/or user needs. After detecting the state of the node in the tree, it is determined whether the state information changes.
进一步地,所述判断模块40,还用于判断所形成的树中是否存在节点;判断所形成的树中是否存在节点,即判断所形成的树是否存在节点,是否为空的树。Further, the determining module 40 is further configured to determine whether a node exists in the formed tree; determine whether there is a node in the formed tree, that is, determine whether the formed tree has a node, and whether it is an empty tree.
所述判断模块40,还用于在所形成的树中不存在节点时,判断所述备份树中是否存在节点;The determining module 40 is further configured to determine whether a node exists in the backup tree when there is no node in the formed tree;
所述判断模块40,还用于在所述备份树中存在节点时,判断所述状态信息发生变化;The determining module 40 is further configured to: when the node exists in the backup tree, determine that the state information changes;
在所形成的树中不存在节点时,进一步判断所形成的树对应的备份树中是否存在节点,在所述备份树中存在节点时,判断所述状态信息发生变化。When there is no node in the formed tree, it is further determined whether there is a node in the backup tree corresponding to the formed tree, and when there is a node in the backup tree, it is determined that the state information changes.
所述判断模块40,还用于在所形成的树中存在节点时,将所检测的状态信息与所述备份树中节点的状态信息比对;The determining module 40 is further configured to compare the detected state information with state information of nodes in the backup tree when a node exists in the formed tree;
所述判断模块40,还用于在所检测的状态信息与所述备份树中节点的状态信息不一致时,判断所述状态信息发生变化。The determining module 40 is further configured to determine that the state information changes when the detected state information does not match the state information of the node in the backup tree.
在所形成的树中存在节点时,进一步将所检测的状态信息与所述备份树中节点的状态信息比对,在所检测的状态信息与所述备份树中节点的状态信息不一致,则判断所述状态信息发生变化;若一致,则判断所属状态信息未发生变化,继续检测所形成的树中各个节点的状态信息。例如,在节点的连接状态发生变化时,及/或在当前节点的连接状态发生变化时或在当前节点的物理地址发生变化时,判断所述状态信息发生变化;在节点的所有信息未发生变化时,判断所述状态信息未发生变化。When the node exists in the formed tree, the detected state information is further compared with the state information of the node in the backup tree, and when the detected state information is inconsistent with the state information of the node in the backup tree, The state information changes; if they match, it is determined that the state information does not change, and the state information of each node in the formed tree is continuously detected. For example, when the connection state of the node changes, and/or when the connection state of the current node changes or when the physical address of the current node changes, it is determined that the state information changes; all information of the node does not change. At the time, it is judged that the state information has not changed.
在本发明其他事实例中,也可以是根据所形成树中的节点数量来判断所述状态信息是否发生变化。In other facts of the present invention, it may be determined whether the state information changes according to the number of nodes in the formed tree.
进一步地,所述判断模块40,还用于将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;Further, the determining module 40 is further configured to compare the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
所述判断模块40,还用于在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。The determining module 40 is further configured to determine that the state information changes when the value of the detected number of nodes does not match the value of the number of nodes in the backup tree.
先通过检测所形成的树中节点数量,将检测到的节点数量的值与所述备份树中节点数量的值比对,若检测到的节点数量的值与所述备份树中节点数量的不同,则判断所述状态信息发生变化。First, by detecting the number of nodes in the formed tree, comparing the value of the detected number of nodes with the value of the number of nodes in the backup tree, if the value of the detected number of nodes is different from the number of nodes in the backup tree. Then, it is judged that the status information changes.
所述更新模块50,用于在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息;The update module 50 is configured to update information of each node according to the changed state information when the state information changes;
所述显示模块20,还用于在所述用户界面显示更新后的信息。The display module 20 is further configured to display updated information on the user interface.
在所述状态发生变化时,获取发生变化的状态信息,根据发生变化的状态信息更新各个节点的信息,并在所述用户界面显示更新后的信息。例如,更新节点的连接状态、节点的待机状态、节点的物理地址等。将更新后的信息存储至所形成的树中。When the state changes, the state information that has changed is acquired, the information of each node is updated according to the changed state information, and the updated information is displayed on the user interface. For example, the connection state of the node, the standby state of the node, the physical address of the node, and the like are updated. The updated information is stored in the formed tree.
在成功在所述用户界面显示更新后的信息后,执行检测树中各个节点的状态信息,并判断所述状态信息是否发生变化的步骤。即在状态信息更新并在用户界面显示后,才继续检测所形成的树中各节点的状态信息。采用延时检测的机制,保证信息的完整性,即在更新完毕后,可以确保下次检测的数据的基准相同,例如,与备份树中的数据相同。After successfully displaying the updated information on the user interface, performing step detection of status information of each node in the tree and determining whether the status information changes. That is, after the status information is updated and displayed on the user interface, the status information of each node in the formed tree is continuously detected. The mechanism of delay detection is used to ensure the integrity of the information, that is, after the update is completed, it can be ensured that the benchmark of the next detected data is the same, for example, the same as the data in the backup tree.
本实施例通过构建网络节点的树形结构形成树,并将树中各节点的信息保存至备份树中;检测所述树中各个节点的状态信息,在检测到的节点信息发生变化时,更新节点信息并在所述用户界面显示更新后的信息。有效避免在现有的CEC技术中,无法对网络中节点(CEC设备)的状态进行监测,使得无法及时了解网络中各个节点状态的信息,网络中节点的管理混乱,进而使得用户无法及时了解到网络的变化,使得CEC网络体验度差的问题。使得网络节点的管理清晰、方便,及时更新网络中节点的状态信息,使得用户及时了解到网络的变化,提高了CEC网络的体验度。In this embodiment, a tree is formed by constructing a tree structure of the network node, and information of each node in the tree is saved to the backup tree; state information of each node in the tree is detected, and when the detected node information changes, the tree is updated. The node information displays the updated information in the user interface. Effectively avoiding the existing CEC technology, it is impossible to monitor the status of nodes (CEC devices) in the network, so that the information of the status of each node in the network cannot be known in time, and the management of the nodes in the network is confusing, which makes the user unable to know in time. Changes in the network make the CEC network experience poor. The management of the network node is clear and convenient, and the state information of the nodes in the network is updated in time, so that the user can timely understand the changes of the network and improve the experience of the CEC network.
参照图8,图8为本发明网络节点信息的管理装置的第二实施例的功能模块示意图。所述网络节点信息的管理装置还包括:创建模块60,Referring to FIG. 8, FIG. 8 is a schematic diagram of functional modules of a second embodiment of a network node information management apparatus according to the present invention. The management device of the network node information further includes: a creating module 60,
所述创建模块60,用于在所形成的树中不存在节点时,根据网络的节点信息创建树。The creating module 60 is configured to create a tree according to node information of the network when there is no node in the formed tree.
若所形成的树中不存在节点,即在所形成的树为空树时,需要根据网络的节点信息创建树。If there is no node in the formed tree, that is, when the formed tree is an empty tree, it is necessary to create a tree according to the node information of the network.
在本发明其他实施例中,当所述状态信息经常发生变化时,为了保证树信息的实时性,也需要重新创建网络中各节点的树。所述判断状态信息经常发生变化的过程可以是:判断状态信息在一定时间发生变化的次数的值是否在预设阈值内,所述一定时间可以是1分钟、2分钟等根据用户需要及/或系统性能设置,所述预设阈值可以是5次、10次等根据系统性能及/或网络状况设置。在发生变化的次数的值在预设阈值内时,判断所述状态信息不经常发生变化,在发生变化的次数的值不在预设阈值内时,判断所述状态信息经常发生变化。在本实施例通过在树中节点的状态信息经常发生变化或在树为空时,创建树,提高了树信息的实时性,进一步使得用户能及时了解到网络中各节点设备的信息,提高了CEC网络的体验度。In other embodiments of the present invention, when the status information changes frequently, in order to ensure the real-time performance of the tree information, it is also necessary to re-create the tree of each node in the network. The process of determining that the state information changes frequently may be: determining whether the value of the number of times the state information changes in a certain time is within a preset threshold, and the certain time may be 1 minute, 2 minutes, etc. according to user needs and/or System performance settings, which may be 5 times, 10 times, etc., depending on system performance and/or network status settings. When the value of the number of times of change is within the preset threshold, it is determined that the state information does not change frequently, and when the value of the number of times of change is not within the preset threshold, the state information is often changed. In this embodiment, when the state information of the node in the tree changes frequently or when the tree is empty, the tree is created, and the real-time performance of the tree information is improved, so that the user can timely know the information of each node device in the network, and improve the information. The experience of the CEC network.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种网络节点信息的管理方法,其特征在于,包括步骤: A method for managing network node information, comprising the steps of:
    在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示;After successfully creating a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree and displayed on the user interface;
    检测树中各个节点的状态信息,并判断所述状态信息是否发生变化;Detecting status information of each node in the tree, and determining whether the status information changes;
    在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息,并在所述用户界面显示更新后的信息。 When the status information changes, the information of each node is updated according to the changed status information, and the updated information is displayed on the user interface.
  2. 如权利要求1所述的网络节点信息的管理方法,其特征在于,所述判断所述状态信息是否发生变化的步骤包括:The method for managing network node information according to claim 1, wherein the step of determining whether the status information changes comprises:
    判断所形成的树中是否存在节点;Determining whether there is a node in the formed tree;
    在所形成的树中不存在节点时,判断所述备份树中是否存在节点;When there is no node in the formed tree, determining whether there is a node in the backup tree;
    在所述备份树中存在节点时,判断所述状态信息发生变化。When there is a node in the backup tree, it is determined that the state information changes.
  3. 如权利要求2所述的网络节点信息的管理方法,其特征在于,所述判断所述状态信息是否发生变化的步骤包括:The method for managing network node information according to claim 2, wherein the step of determining whether the status information changes:
    将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;Comparing the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
    在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。When the value of the detected number of nodes does not match the value of the number of nodes in the backup tree, it is determined that the status information changes.
  4. 如权利要求2所述的网络节点信息的管理方法,其特征在于,所述判断所形成的树中是否存在节点的步骤之后,还包括:The method for managing network node information according to claim 2, wherein the step of determining whether a node exists in the formed tree further comprises:
    在所形成的树中不存在节点时,根据网络的节点信息创建树。When there is no node in the formed tree, a tree is created according to the node information of the network.
  5. 如权利要求2所述的网络节点信息的管理方法,其特征在于,所述判断所形成的树中是否存在节点的步骤之后,还包括:The method for managing network node information according to claim 2, wherein the step of determining whether a node exists in the formed tree further comprises:
    在所形成的树中存在节点时,将所检测的状态信息与所述备份树中节点的状态信息比对;When the node exists in the formed tree, the detected state information is compared with the state information of the node in the backup tree;
    在所检测的状态信息与所述备份树中节点的状态信息不一致时,判断所述状态信息发生变化。When the detected status information does not match the status information of the node in the backup tree, it is determined that the status information changes.
  6. 如权利要求5所述的网络节点信息的管理方法,其特征在于,所述判断所述状态信息是否发生变化的步骤包括:The method for managing network node information according to claim 5, wherein the step of determining whether the status information changes:
    将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;Comparing the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
    在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。When the value of the detected number of nodes does not match the value of the number of nodes in the backup tree, it is determined that the status information changes.
  7. 如权利要求1所述的网络节点信息的管理方法,其特征在于,所述遍历所形成的树,获取各个节点的信息保存至备份树中并在用户界面显示的步骤之前,还包括:The method for managing network node information according to claim 1, wherein the traversing the formed tree, before acquiring the information of each node and saving it in the backup tree and displaying the user interface, further includes:
    获取网络中各节点之间的关系;Obtain the relationship between nodes in the network;
    根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树。A tree structure between nodes is constructed according to the relationship between nodes to form a tree of nodes in the network.
  8. 如权利要求7所述的网络节点信息的管理方法,其特征在于,所述根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树的步骤之后,还包括:The method for managing network node information according to claim 7, wherein the step of constructing a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network further includes :
    判断所述树是否形成成功;Determining whether the tree is formed successfully;
    若未形成成功,则根据网络各节点的关系重新形成树;If the success is not formed, the tree is re-formed according to the relationship between the nodes of the network;
    在重新形成的次数的值大于预设次数阈值后,发出树形成失败的提示信息。After the value of the number of re-formation is greater than the preset number threshold, the prompt message that the tree formation failure is issued.
  9. 如权利要求1所述的网络节点信息的管理方法,其特征在于,所述判断所述状态信息是否发生变化的步骤包括:The method for managing network node information according to claim 1, wherein the step of determining whether the status information changes comprises:
    将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;Comparing the value of the number of nodes of the formed tree with the value of the number of nodes in the backup tree;
    在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。When the value of the detected number of nodes does not match the value of the number of nodes in the backup tree, it is determined that the status information changes.
  10. 如权利要求1所述的网络节点信息的管理方法,其特征在于,所述根据发生变化的状态信息更新各个节点的信息并在所述用户界面显示更新后的信息的步骤之后,还包括:The method for managing network node information according to claim 1, wherein the step of updating the information of each node according to the changed state information and displaying the updated information in the user interface further comprises:
    在成功在所述用户界面显示更新后的信息后,执行检测树中各个节点的状态信息,并判断所述状态信息是否发生变化的步骤。After successfully displaying the updated information on the user interface, performing step detection of status information of each node in the tree and determining whether the status information changes.
  11. 一种网络节点信息的管理装置,其特征在于,包括:A device for managing network node information, comprising:
    获取模块,用于在成功创建网络中各节点的树形结构形成所述网络中各节点的树后,遍历所形成的树,获取各个节点的信息保存至备份树中;An obtaining module, after successfully forming a tree structure of each node in the network to form a tree of each node in the network, traversing the formed tree, and acquiring information of each node is saved in the backup tree;
    显示模块,用于在将所获取的信息用户界面显示;a display module for displaying a user interface of the acquired information;
    检测模块,用于检测树中各个节点的状态信息;a detection module, configured to detect status information of each node in the tree;
    判断模块,用于判断所述状态信息是否发生变化;a determining module, configured to determine whether the status information changes;
    更新模块,用于在所述状态信息发生变化时,根据发生变化的状态信息更新各个节点的信息;An update module, configured to update information of each node according to the changed state information when the state information changes;
    所述显示模块,还用于在所述用户界面显示更新后的信息。The display module is further configured to display updated information on the user interface.
  12. 如权利要求11所述的网络节点信息的管理装置,其特征在于,所述判断模块,还用于判断所形成的树中是否存在节点;还用于在所形成的树中不存在节点时,判断所述备份树中是否存在节点;还用于在所述备份树中存在节点时,判断所述状态信息发生变化。The apparatus for managing network node information according to claim 11, wherein the determining module is further configured to determine whether a node exists in the formed tree, and is further configured to: when there is no node in the formed tree, Determining whether a node exists in the backup tree; and determining that the state information changes when a node exists in the backup tree.
  13. 如权利要求12所述的网络节点信息的管理装置,其特征在于,所述判断模块,还用于将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;还用于在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。The apparatus for managing network node information according to claim 12, wherein the determining module is further configured to compare a value of a number of nodes of the formed tree with a value of a number of nodes in the backup tree; It is further configured to determine that the status information changes when the value of the detected number of nodes does not match the value of the number of nodes in the backup tree.
  14. 如权利要求12所述的网络节点信息的管理装置,其特征在于,所述网络节点信息的管理装置还包括创建模块,用于在所形成的树中不存在节点时,根据网络的节点信息创建树。The device for managing network node information according to claim 12, wherein the management device of the network node information further comprises a creating module, configured to create a node according to the network when the node does not exist in the formed tree. tree.
  15. 如权利要求14所述的网络节点信息的管理装置,其特征在于,所述获取模块,还用于获取网络中各节点之间的关系;The device for managing network node information according to claim 14, wherein the obtaining module is further configured to acquire a relationship between nodes in the network;
    所述创建模块,还用于根据节点之间的关系构建各节点之间的树形结构形成所述网络中各节点的树。The creating module is further configured to construct a tree structure between the nodes according to the relationship between the nodes to form a tree of each node in the network.
  16. 如权利要求15所述的网络节点信息的管理装置,其特征在于,所述判断模块,还用于判断所述树是否形成成功;The device for managing network node information according to claim 15, wherein the determining module is further configured to determine whether the tree is successfully formed;
    所述创建模块,还用于若未形成成功,则根据网络各节点的关系重新形成树;The creating module is further configured to re-form a tree according to the relationship between each node of the network if the success is not formed;
    所述显示模块,还用于在重新形成的次数的值大于预设次数阈值后,发出树形成失败的提示信息。The display module is further configured to issue a prompt message that the tree formation fails after the value of the number of re-formed times is greater than a preset number of times threshold.
  17. 如权利要求12所述的网络节点信息的管理装置,其特征在于,所述判断模块,还用于将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;还用于在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。The apparatus for managing network node information according to claim 12, wherein the determining module is further configured to compare a value of a number of nodes of the formed tree with a value of a number of nodes in the backup tree; It is further configured to determine that the status information changes when the value of the detected number of nodes does not match the value of the number of nodes in the backup tree.
  18. 如权利要求17所述的网络节点信息的管理装置,其特征在于,所述判断模块,还用于在所形成的树中存在节点时,将所检测的状态信息与所述备份树中节点的状态信息比对;还用于在所检测的状态信息与所述备份树中节点的状态信息不一致时,判断所述状态信息发生变化。The device for managing network node information according to claim 17, wherein the determining module is further configured to: when the node exists in the formed tree, the detected state information and the node in the backup tree The status information is compared; and is further configured to determine that the status information changes when the detected status information does not match the status information of the node in the backup tree.
  19. 如权利要求11所述的网络节点信息的管理装置,其特征在于,所述判断模块,还用于将所形成的树的节点数量的值与所述备份树中的节点数量的值比对;还用于在所检测的节点数量的值与所述备份树中的节点数量的值不一致时,判断所述状态信息发生变化。The apparatus for managing network node information according to claim 11, wherein the determining module is further configured to compare a value of a number of nodes of the formed tree with a value of a number of nodes in the backup tree; It is further configured to determine that the status information changes when the value of the detected number of nodes does not match the value of the number of nodes in the backup tree.
  20. 如权利要求11所述的网络节点信息的管理装置,其特征在于,所述检测模块,还用于在成功在所述用户界面显示更新后的信息后,执行检测树中各个节点的状态信息,并通过判断模块判断所述状态信息是否发生变化。The device for managing network node information according to claim 11, wherein the detecting module is further configured to: after successfully displaying the updated information on the user interface, perform state information of each node in the detection tree, And determining, by the determining module, whether the status information changes.
PCT/CN2014/095375 2014-12-25 2014-12-29 Method and apparatus for managing network node information WO2016101294A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410826706.3A CN105790992A (en) 2014-12-25 2014-12-25 Method and device for managing network node information
CN201410826706.3 2014-12-25

Publications (1)

Publication Number Publication Date
WO2016101294A1 true WO2016101294A1 (en) 2016-06-30

Family

ID=56149014

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095375 WO2016101294A1 (en) 2014-12-25 2014-12-29 Method and apparatus for managing network node information

Country Status (2)

Country Link
CN (1) CN105790992A (en)
WO (1) WO2016101294A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109583726A (en) * 2018-11-19 2019-04-05 南京新联电能云服务有限公司 The method and system of characterization processes state

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383747A (en) * 2007-09-05 2009-03-11 株式会社东芝 Video processing apparatus and video processing method
CN101507274A (en) * 2006-07-28 2009-08-12 夏普株式会社 Display apparatus
CN101516009A (en) * 2007-12-26 2009-08-26 索尼株式会社 Image display device, method for indicating connector, and connector
CN103430492A (en) * 2011-01-15 2013-12-04 晶像股份有限公司 Proxy device operation in command and control network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202670B (en) * 2007-12-21 2011-04-06 中兴通讯股份有限公司 Method and system for processing network management topology
CN101771727B (en) * 2010-02-25 2014-12-17 中兴通讯股份有限公司 Methods and devices for synchronously upgrading equipment management object information
CN102394778B (en) * 2011-11-04 2017-10-10 中兴通讯股份有限公司 The display methods and device of network topology
CN102929745B (en) * 2012-09-26 2015-02-18 东软集团股份有限公司 Status data updating method and device for virtual equipments
CN103501249B (en) * 2013-09-30 2018-01-16 上海斐讯数据通信技术有限公司 A kind of NM client topology management system and method
CN103714004A (en) * 2014-01-02 2014-04-09 金蝶软件(中国)有限公司 JVM online memory leak analysis method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101507274A (en) * 2006-07-28 2009-08-12 夏普株式会社 Display apparatus
CN101383747A (en) * 2007-09-05 2009-03-11 株式会社东芝 Video processing apparatus and video processing method
CN101516009A (en) * 2007-12-26 2009-08-26 索尼株式会社 Image display device, method for indicating connector, and connector
CN103430492A (en) * 2011-01-15 2013-12-04 晶像股份有限公司 Proxy device operation in command and control network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109583726A (en) * 2018-11-19 2019-04-05 南京新联电能云服务有限公司 The method and system of characterization processes state
CN109583726B (en) * 2018-11-19 2022-02-22 南京新联电能云服务有限公司 Method and system for detecting process state

Also Published As

Publication number Publication date
CN105790992A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2019037396A1 (en) Account clearing method, device and equipment and storage medium
WO2016058258A1 (en) Terminal remote control method and system
WO2017036208A1 (en) Method and system for extracting information in display interface
WO2013159482A1 (en) Method and device for intelligently displaying icon
WO2018113187A1 (en) Display control method and display device
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2016000560A1 (en) File transmission method, file transmission apparatus, and file transmission system
WO2015103864A1 (en) Method for memory management and linux terminal
WO2018028121A1 (en) Method and device for managing storage space of data partition
WO2014048231A1 (en) Word processing method and apparatus for touchscreen intelligent device
WO2018126888A1 (en) Method and apparatus for configuring a shortcut for a television function
WO2017088427A1 (en) Audio output control method and device
WO2019024219A1 (en) Automatic document generation method and apparatus, automatic document generator and medium
WO2019051909A1 (en) Air conditioner running parameter adjusting method, air conditioner, and computer readable storage medium
WO2015110014A1 (en) Method, apparatus, and terminal device for determining user activity range
WO2017121066A1 (en) Application program display method and system
WO2018014567A1 (en) Method for improving performance of virtual machine, and terminal, device and computer-readable storage medium
WO2018223602A1 (en) Display terminal, frame contrast enhancement method, and computer readable storage medium
WO2016187998A1 (en) Method and device for dynamically adjusting backlight
WO2019056733A1 (en) Concurrent volume control method, application server, system and storage medium
WO2019210574A1 (en) Message processing method, apparatus, device, and readable storage medium
WO2017071223A1 (en) Control method and device for television application
WO2019051901A1 (en) Terminal control method and device, and computer readable storage medium
WO2017088429A1 (en) Method and system for controlling touchscreen application program in display terminal by mobile terminal
WO2019019249A1 (en) Method, apparatus and device for executing network request, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14908861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 09.10.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14908861

Country of ref document: EP

Kind code of ref document: A1