WO2023236792A1 - 通信方法和装置 - Google Patents

通信方法和装置 Download PDF

Info

Publication number
WO2023236792A1
WO2023236792A1 PCT/CN2023/096626 CN2023096626W WO2023236792A1 WO 2023236792 A1 WO2023236792 A1 WO 2023236792A1 CN 2023096626 W CN2023096626 W CN 2023096626W WO 2023236792 A1 WO2023236792 A1 WO 2023236792A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
group
slave
information
nodes
Prior art date
Application number
PCT/CN2023/096626
Other languages
English (en)
French (fr)
Inventor
谢子晨
Original Assignee
华为技术有限公司
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
Priority claimed from CN202211059339.XA external-priority patent/CN117255387A/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023236792A1 publication Critical patent/WO2023236792A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular to communication methods and devices.
  • devices can be monitored and managed through wired or wireless connections.
  • the implementation cost of wired connection of devices is relatively high.
  • connecting devices wirelessly can solve the cost problem, the network scale is limited and multi-device wireless networking cannot be achieved.
  • the embodiments of the present application provide communication methods and devices, which can realize multi-device wireless networking.
  • this application adopts the following technical solutions:
  • inventions of the present application provide a communication method.
  • the method is applied to a communication system.
  • the communication system includes a master node and multiple slave nodes.
  • the method includes: first, the master node connects the multiple slave nodes to Divided into multiple node groups. Then the master node determines the intermediate node of each node group in the plurality of node groups based on the first information of the plurality of slave nodes. Wherein, the first information is used to characterize the connection capability between a node and the master node, and the master node communicates with other nodes in the node group to which the intermediate node belongs through the intermediate node.
  • a one-master-multiple-slave networking method is used to wirelessly connect devices.
  • the number of slave devices that the master device can connect to is limited, so multi-device wireless networking cannot be implemented.
  • the master node and the slave node are no longer directly connected, but are connected through an intermediate node. This can increase the number of slave nodes that the master node can connect to, thereby realizing multi-device wireless networking.
  • a master node can be connected to up to 20 slave nodes to achieve a network of 20 devices.
  • the plurality of node groups include a first node group.
  • the above method may further include: when the intermediate node of the first node group is disconnected from the master node, the master node determines Intermediate nodes of the first node group are re-determined from the first information of the nodes.
  • the intermediate node of the first node group disconnects the master node according to the first node of the plurality of slave nodes in the first node group.
  • information re-confirmed Determine the middle node of the above first node group.
  • the above method may further include: when the number of nodes in the first node group changes, the master node determines the number of slave nodes according to the first information of the plurality of slave nodes in the first node group. Redetermine the intermediate node of the first node group.
  • the master node can use the first node group according to the above
  • the first information of the plurality of slave nodes in the re-determines the intermediate node of the first node group.
  • the master node may re-determine the intermediate nodes of the first node group based on the first information of the plurality of slave nodes in the first node group.
  • the communication method provided by the embodiments of the present application can re-determine the intermediate nodes of a node group when the number of nodes in a certain node group changes. This can ensure stable communication of each node group in the communication system on the one hand.
  • the most appropriate slave node can be re-selected as an intermediate node based on the number of nodes in the node group to ensure the communication performance of the communication system.
  • the first information includes at least one of first signal strength, first distance, number and location information, and the first signal strength is the signal strength between the slave node and the master node, so The first distance is the distance between the slave node and the master node.
  • the communication method provided by the embodiment of the present application can determine the appropriate intermediate node for each node combination based on the above-mentioned first information to ensure the communication performance of the communication system.
  • the master node can divide the plurality of slave nodes into multiple node groups according to second information, where the second information includes at least one of group identification, numbering or location information.
  • the group identifier is an identifier used to characterize the node group to which the slave node belongs.
  • the communication method provided by the embodiment of the present application can use the second information to divide multiple slave nodes with common characteristics into the same node group to ensure the communication performance of the communication system.
  • the above method may further include: the master node receiving a first data packet sent by the intermediate node, the first data packet carrying each node in the node group to which the intermediate node belongs. status information.
  • the above status information may include data such as voltage, power, or temperature.
  • the master node can obtain the status information of each slave node by communicating with the intermediate node of each node group. Compared with the master node obtaining the status information of each slave node by communicating with each slave node, information, reducing communication volume and improving communication efficiency.
  • each of the plurality of node groups has the same number of nodes.
  • inventions of the present application provide another communication method, which method is applied to a communication system.
  • the communication system includes a master node and a plurality of slave nodes.
  • the method includes: the first node and the master node.
  • the first node is an intermediate node of a first node group among multiple node groups divided by the multiple slave nodes.
  • the intermediate node is determined by the first information of the multiple slave nodes. It is obtained that the first information is used to characterize the connection capability between a node and the master node, and the master node communicates with other nodes in the node group to which the intermediate node belongs through the intermediate node.
  • the first node establishes communication connections with multiple slave nodes of the node group to which the first node belongs.
  • the plurality of node groups include a second node group.
  • the method may also require: when the communication connection between the first node and the master node is disconnected, the communication connection is established with the second node, and the second node is the middle node of the second node group.
  • the first node determines a second node group based on second information about the first node, where the second information includes at least one of a group identification, a number, or location information,
  • the group identifier is an identifier used to characterize the node group to which the slave node belongs.
  • the first node establishes a communication connection with the second node.
  • the first information includes at least one of first signal strength, first distance, number and location information, and the first signal strength is the signal strength between the slave node and the master node, so The first distance is the distance between the slave node and the master node.
  • the method may further include: the first node obtaining status information of each slave node in the first node group.
  • the first node sends a second data packet to the master node, where the second data packet carries status information of each node in the first node group.
  • inventions of the present application provide a communication device, which is applied to a communication system.
  • the communication system includes a master node and a plurality of slave nodes.
  • the communication device includes a processing unit and a determination unit.
  • the processing unit is configured to divide the plurality of slave nodes into multiple node groups.
  • the determining unit is configured to determine the intermediate node of each node group in the plurality of node groups according to the first information of the plurality of slave nodes. Wherein, the first information is used to characterize the connection capability between a node and the master node, and the master node communicates with other nodes in the node group to which the intermediate node belongs through the intermediate node.
  • the plurality of node groups include a first node group.
  • the above-mentioned determining unit is further configured to: when the intermediate node of the first node group is disconnected from the above-mentioned master node, based on the first data of the plurality of slave nodes in the above-mentioned first node group. The information re-determines the intermediate node of the above-mentioned first node group.
  • the above-mentioned determination unit is further configured to: in the event that the number of nodes in the first node group changes, re-determine the above-mentioned first node according to the first information of the plurality of slave nodes in the above-mentioned first node group.
  • the middle node of a node group is further configured to: in the event that the number of nodes in the first node group changes, re-determine the above-mentioned first node according to the first information of the plurality of slave nodes in the above-mentioned first node group.
  • the above-mentioned first information includes at least one of first signal strength, first distance, number and location information
  • the above-mentioned first signal strength is the signal strength between the slave node and the above-mentioned master node
  • the above-mentioned first distance is the distance between the above-mentioned slave node and the above-mentioned master node.
  • the processing unit is specifically configured to divide the plurality of slave nodes into multiple node groups according to second information, where the second information includes at least one of group identification, numbering, or location information.
  • the above group identifier is an identifier used to characterize the node group to which the above slave node belongs.
  • the processing unit is further configured to: receive a first data packet sent by the intermediate node, where the first data packet carries status information of each node in the node group to which the intermediate node belongs.
  • each of the plurality of node groups has the same number of nodes.
  • inventions of the present application provide another communication device applied to a communication system.
  • the communication system includes a master node and a plurality of slave nodes.
  • the communication device is a first node.
  • the first node is composed of the plurality of slave nodes.
  • the intermediate node is determined by the first information of the multiple slave nodes.
  • the first information is used to characterize the relationship between the node and the master node.
  • the communication device may include: a first communication unit and a second communication unit.
  • the first communication unit is also configured to establish a communication connection with a second node when the communication connection with the master node is disconnected.
  • the second node is an intermediate node of the second node group.
  • the above-mentioned first communication unit is specifically configured to determine a second node group based on the second information of the above-mentioned first node.
  • the above-mentioned second information includes at least one of group identification, number or location information, and the above-mentioned group identification is used to characterize the above-mentioned The identifier of the node group to which the slave node belongs; establishing a communication connection with the above-mentioned second node.
  • the above-mentioned first communication order is also used to: when the communication connection with the above-mentioned master node is disconnected, establish a communication connection with a second node, and the above-mentioned second node is the second node The middle node of the group.
  • the first communication unit is specifically configured to determine a second node group based on the second information of the first node, where the second information includes at least one of a group identification, a number, or location information.
  • the above-mentioned group identifier is an identifier used to characterize the node group to which the above-mentioned slave node belongs; a communication connection is established with the above-mentioned second node.
  • the above-mentioned first information includes at least one of first signal strength, first distance, number and location information
  • the above-mentioned first signal strength is the signal strength between the slave node and the above-mentioned master node
  • the above-mentioned first distance is the distance between the above-mentioned slave node and the above-mentioned master node.
  • the above-mentioned first communication unit is also used to obtain the status information of each slave node in the above-mentioned first node group; send a second data packet to the master node, the second data packet carries the Describes the status information of each node in the first node group.
  • embodiments of the present application further provide a communication device.
  • the communication device includes: at least one processor.
  • the at least one processor executes program codes or instructions, the above first aspect or any possible implementation thereof is implemented. The method described in the method.
  • the communication device may further include at least one memory for storing the program code or instructions.
  • embodiments of the present application further provide a chip, including: an input interface, an output interface, and at least one processor.
  • the chip also includes memory.
  • the at least one processor is used to execute the code in the memory.
  • the chip implements the method described in the above first aspect or any possible implementation manner thereof.
  • the above-mentioned chip may also be an integrated circuit.
  • embodiments of the present application further provide a computer-readable storage medium for storing a computer program.
  • the computer program includes a method for implementing the method described in the above-mentioned first aspect or any possible implementation manner thereof.
  • embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to implement the method described in the above first aspect or any possible implementation thereof.
  • the communication device, computer storage medium, computer program product, and chip provided in this embodiment are all used to execute the communication method provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the communication method provided above. The effect will not be described here.
  • Figure 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • Figure 2 is a schematic flow chart of a communication method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another communication system provided by an embodiment of the present application.
  • Figure 4 is a schematic structural diagram of another communication system provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of another communication system provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of another communication system provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of another communication system provided by an embodiment of the present application.
  • Figure 8 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • Figure 11 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations.
  • first and second in the description of the embodiments of the present application and the drawings are used to distinguish different objects, or to distinguish different processes on the same object, rather than to describe a specific order of objects. .
  • devices can be monitored and managed through wired or wireless connections.
  • the implementation cost of wired connection of devices is relatively high.
  • connecting devices wirelessly can solve the cost problem, the network scale is limited and multi-device wireless networking cannot be achieved.
  • a master node can be connected to up to 20 slave nodes to achieve a network of 20 devices, but a larger-scale device network cannot be achieved.
  • FIG. 1 shows a communication system provided by an embodiment of the present application. As shown in Figure 1, the communication system includes: a master node and multiple slave nodes.
  • the master node 101 may also be called the root node or G node.
  • the master node 101 can be connected to the intermediate node 102 through wireless communication technology.
  • the slave node 102 may also be called a leaf node or T node.
  • the slave node 102 includes an intermediate node connected to the master node 101 .
  • the above-mentioned nodes can be a device (such as a battery) or a chip or functional module in the device.
  • all the above nodes can monitor and collect data.
  • the above-mentioned multiple nodes can collect (acquire) data simultaneously.
  • Figure 2 shows a communication method provided by an embodiment of the present application.
  • the method is suitable for the above communication system. As shown in Figure 2, the method includes:
  • the master node divides multiple slave nodes into multiple node groups.
  • a communication system includes a master node and 16 slave nodes.
  • the master node can divide these 16 slave nodes into 4 node groups, each node group includes 4 slave nodes.
  • the master node may divide the plurality of slave nodes into multiple node groups according to the second information.
  • the above-mentioned second information includes at least one of a group identifier, a number, or location information
  • the above-mentioned group identifier is an identifier used to characterize the node group to which the above-mentioned slave node belongs.
  • the above node group may also be called a piconet.
  • the above number may be a logical number, and the number of the slave node may be bound to the physical location of the slave node.
  • the master node may determine based on the group identifiers of the slave nodes that multiple slave nodes with the same group identifier belong to the same node group.
  • the master node can determine that multiple slave nodes in the same number interval belong to the same node group based on the numbers of the slave nodes. For example, it is determined that the 10 slave nodes numbered 1 to 10 belong to node group 1, and the 10 slave nodes numbered 11 to 20 are determined to belong to node group 2.
  • each of the plurality of node groups has the same number of nodes.
  • each node group includes 4 slave nodes.
  • a balanced tree (multi-way balanced tree) algorithm can be used to make the number of nodes in each of the above-mentioned plurality of node groups the same.
  • the master node can deliver parameters (including information such as the number of nodes in the entire network, the number of intermediate node layers, the number of slave nodes at the bottom layer, etc.) to the intermediate nodes of each node group.
  • the intermediate nodes of each node group communicate according to the issued parameters.
  • the system is dynamically balanced so that the number of nodes in each of the above multiple node groups is the same.
  • the master node determines the intermediate node of each node group in the plurality of node groups based on the first information of the plurality of slave nodes.
  • the first information is used to represent the connection capability between the node and the master node.
  • the master node communicates with other nodes in the node group to which the intermediate node belongs through the intermediate node.
  • the master node after the master node is powered on, it can discover and connect with the slave node through periodic broadcast with connection capabilities to obtain the above-mentioned first information.
  • the above-mentioned first information may include at least one of first signal strength, first distance, number and location information.
  • first signal strength is the signal strength between the slave node and the above-mentioned master node
  • first distance is The distance between the above-mentioned slave node and the above-mentioned master node.
  • the master node may determine the intermediate node of each node group in the plurality of node groups based on the first signal strengths of the plurality of slave nodes.
  • the master node may determine the slave node with the strongest first signal strength in each node group as the intermediate node of each node group.
  • the master node may determine the intermediate node of each node group in the plurality of node groups based on the first distances of the plurality of slave nodes.
  • the master node may determine the first closest slave node in each node group as the intermediate node of each node group.
  • the master node may determine the intermediate node of each node group in the plurality of node groups based on the numbers of the plurality of slave nodes.
  • the master node may determine the slave nodes numbered as a multiple of 4 in each node group as the intermediate nodes of each node group. That is, the slave nodes numbered 4, 8, 12 and 16 (ie slave node 4, slave node 8, slave node 12 and slave node 16) in Figure 4 are determined as the intermediate nodes of each node group.
  • the communication method provided by the embodiment of the present application can use the second information to divide multiple slave nodes with common characteristics into the same node group to ensure the communication performance of the communication system.
  • the above-mentioned plurality of node groups include a first node group, and the method may further include:
  • the master node re-determines the intermediate node of the first node group based on the first information of the plurality of slave nodes in the first node group. .
  • the intermediate node of the first node group disconnects the master node according to the first node of the plurality of slave nodes in the first node group.
  • a piece of information re-determines the intermediate node of the first node group.
  • slave node 1 is the intermediate node of node group 1, and the intermediate node (slave node 1) of node group 1 is disconnected from the master node.
  • the master node determines the intermediate node of the first node group as slave node 2 based on the first information of the multiple slave nodes of node group 1.
  • the disconnection of the intermediate node of the first node group from the above-mentioned main node indicates that the intermediate node (old intermediate node) of the first node group has left the first node group, and node group 1 determines the new intermediate node. (referred to as new intermediate node), the old central node (old intermediate node) can rejoin the first node group as a slave node, or can rejoin the first node group as an intermediate node.
  • slave node 1 is an intermediate node of node group 1. After the intermediate node (slave node 1) of node group 1 is disconnected from the master node, the master node converts the above-mentioned third node according to the first information of multiple slave nodes of node group 1.
  • the middle node of a node group is slave node 2.
  • Slave node 1 can rejoin node group 1 as a slave node, and slave node 2 can rejoin node group 1 from slave node 1 and continue to serve as an intermediate node of node group 1.
  • slave node 1 is the intermediate node of node group 1, and the intermediate node of node group 1 (slave node 1) is the same as the master node.
  • the master node determines the intermediate node of the first node group as slave node 2 based on the first information of the multiple slave nodes of node group 1.
  • Slave node 1 can rejoin node group 1 as an intermediate node. After slave node 1 rejoins node group 1, slave node 2 can revert to a normal slave node.
  • the master node re-determines the intermediate nodes of the first node group based on the first information of the plurality of slave nodes in the first node group.
  • the master node can use the first node group according to the above
  • the first information of the plurality of slave nodes in the re-determines the intermediate node of the first node group.
  • the master node may re-determine the intermediate nodes of the first node group based on the first information of the plurality of slave nodes in the first node group.
  • slave node 1 is the intermediate node of node group 1, and the intermediate node (slave node 1) of node group 1 is disconnected from the master node.
  • the master node determines the intermediate node of the first node group as slave node 2 based on the first information of multiple slave nodes in node group 1.
  • slave node 1 rejoins node group 1 (the number of nodes in node group 1 changes from 3 to 4), and the master node adds the first node group to the first node group based on the first information of multiple slave nodes in node group 1.
  • the intermediate node is slave node 1.
  • the communication method provided by the embodiments of the present application can re-determine the intermediate nodes of a node group when the number of nodes in a certain node group changes. This can ensure stable communication of each node group in the communication system on the one hand.
  • the most appropriate slave node can be re-selected as an intermediate node based on the number of nodes in the node group to ensure the communication performance of the communication system.
  • the master node receives the first data packet sent by the intermediate node.
  • the first data packet carries status information of each node in the node group to which the intermediate node belongs.
  • the above status information may include data such as voltage, power, or temperature.
  • the master node can obtain the status information of each slave node by communicating with the intermediate node of each node group. Compared with the master node obtaining the status information of each slave node by communicating with each slave node, information, reducing communication volume and improving communication efficiency.
  • the master node may be connected to each intermediate node through one or more first intermediate nodes.
  • the master node can be connected to the intermediate nodes of node group 1 and node group 2 through the first intermediate node 1 , and the master node can be connected to the intermediate nodes of node group 3 and node group 4 through the first intermediate node 2 .
  • the first intermediate node when the first intermediate node is disconnected from the above-mentioned master node, the first intermediate node can be determined based on the first information of multiple slave nodes.
  • the first intermediate node may be preset, or may be determined based on the first information of each slave node in the communication system.
  • the above-mentioned master node determines at least one first intermediate node based on the first information of multiple slave nodes.
  • the above-mentioned master node determines N nodes with signal strength between the above-mentioned master node as first intermediate nodes based on the first information of the plurality of slave nodes.
  • N is a positive integer.
  • the plurality of node groups include a first intermediate node group, and the first intermediate node group includes at least one first intermediate node.
  • the master node divides the N nodes closest to the master node into the first intermediate node group according to the first information of the plurality of slave nodes.
  • the first intermediate node may establish a communication connection with the master node and the intermediate nodes of at least one node group.
  • the first intermediate node may determine the intermediate node with which the first intermediate node establishes a communication connection based on the first information of the intermediate nodes of the plurality of node groups.
  • the first intermediate node may establish communication connections with N central nodes closest to the first intermediate node based on the first information of the intermediate nodes of the plurality of node groups.
  • FIG 8 shows another communication method provided by the embodiment of the present application. This method is suitable for the above communication system. As shown in Figure 8, the method includes:
  • the first node establishes a communication connection with the master node.
  • the first node is an intermediate node of a first node group among multiple node groups divided by the multiple slave nodes, and the intermediate node is determined by the first information of the multiple slave nodes, and the first information It is used to characterize the connection capability between the node and the above-mentioned master node.
  • the above-mentioned master node communicates with other nodes in the node group to which the above-mentioned intermediate node belongs through the above-mentioned intermediate node.
  • the above-mentioned first information includes at least one of first signal strength, first distance, number and location information
  • the above-mentioned first signal strength is the signal strength between the slave node and the above-mentioned master node
  • the above-mentioned first distance is the distance between the above-mentioned slave node and the above-mentioned master node.
  • the first node establishes communication connections with multiple slave nodes of the node group to which the first node belongs.
  • the method may also include:
  • the above-mentioned second node is an intermediate node of the second node group.
  • the first node determines a second node group based on the second information of the first node.
  • the above-mentioned second information includes at least one of a group identifier, a number, or location information
  • the above-mentioned group identifier is an identifier used to characterize the node group to which the above-mentioned slave node belongs.
  • the first node obtains the status information of each slave node in the first node group.
  • the first node may obtain data packets carrying status information reported by periodic polling from each slave node in the first node group through periodic polling or fixed frequency.
  • the first node sends the second data packet to the above-mentioned master node.
  • the first node can use data aggregation (removing the redundant headers of each data packet reported from the slave node and repackaging the data) to directly (or forward through multiple first intermediate nodes) Send the second data packet to the master node.
  • the communication device used to perform the above communication method will be introduced below with reference to FIG. 9 .
  • the communication device includes corresponding hardware and/or software modules that perform each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions in conjunction with the embodiments for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
  • Embodiments of the present application can divide the communication device into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • Figure 9 shows a possible composition diagram of the communication device involved in the above embodiment, which is applied to a communication system.
  • the above communication system includes a master node and multiple slaves.
  • the communication device 900 may include: a processing unit 901 and a determining unit 902.
  • the above-mentioned processing unit 901 is used to divide the above-mentioned plurality of slave nodes into a plurality of node groups.
  • the above-mentioned determining unit 902 is used to determine the intermediate node of each node group in the above-mentioned plurality of node groups according to the first information of the plurality of slave nodes.
  • the above-mentioned first information is used to characterize the connection capability between the node and the above-mentioned master node.
  • the above-mentioned The master node communicates with other nodes in the node group to which the above-mentioned intermediate node belongs through the above-mentioned intermediate node.
  • the plurality of node groups include a first node group.
  • the above-mentioned determining unit 902 is further configured to: disconnect the intermediate node of the first node group from the above-mentioned master node, and reconnect according to the first information of the plurality of slave nodes in the above-mentioned first node group. Determine the intermediate node of the above-mentioned first node group.
  • the above-mentioned determining unit 902 is further configured to: in the event that the number of nodes in the first node group changes, re-determine the above-mentioned above-mentioned node according to the first information of the plurality of slave nodes in the above-mentioned first node group. The middle node of the first node group.
  • the above-mentioned first information includes at least one of first signal strength, first distance, number and location information
  • the above-mentioned first signal strength is the signal strength between the slave node and the above-mentioned master node
  • the above-mentioned first distance is the distance between the above-mentioned slave node and the above-mentioned master node.
  • the above-mentioned processing unit 901 is specifically configured to: divide the above-mentioned plurality of slave nodes into multiple node groups according to the second information, the above-mentioned second information includes at least one of group identification, number or location information.
  • the above group identifier is an identifier used to characterize the node group to which the above slave node belongs.
  • the processing unit 901 is further configured to receive a first data packet sent by the intermediate node, where the first data packet carries status information of each node in the node group to which the intermediate node belongs.
  • each of the plurality of node groups has the same number of nodes.
  • Figure 10 shows another possible composition diagram of the communication device involved in the above embodiment, applied to a communication system
  • the above communication system includes a master node and multiple slaves.
  • the above-mentioned communication device is a first node
  • the above-mentioned first node is an intermediate node of a first node group among a plurality of node groups divided by the above-mentioned plurality of slave nodes
  • the above-mentioned intermediate node is composed of a first node of the above-mentioned plurality of slave nodes.
  • the information is determined to be obtained.
  • the first information is used to characterize the connection capability between the node and the master node.
  • the master node communicates with other nodes in the node group to which the intermediate node belongs through the intermediate node.
  • the communication device 1000 may include: The first communication unit 1001 and the second communication unit 1002.
  • the above-mentioned first communication unit 1001 is used to establish a communication connection with the above-mentioned master node.
  • the above-mentioned second communication unit 1002 is used to establish communication connections with multiple slave nodes of the node group to which the above-mentioned first node belongs.
  • the above-mentioned first communication unit 1001 is also configured to: when the communication connection with the above-mentioned master node is disconnected, establish a communication connection with a second node, and the above-mentioned second node is a second node.
  • the middle node of the node group is also configured to: when the communication connection with the above-mentioned master node is disconnected, establish a communication connection with a second node, and the above-mentioned second node is a second node.
  • the middle node of the node group is also configured to: when the communication connection with the above-mentioned master node is disconnected, establish a communication connection with a second node, and the above-mentioned second node is a second node. The middle node of the node group.
  • the first communication unit 1001 is specifically configured to determine a second node group based on the second information of the first node, where the second information includes at least one of a group identifier, a number, or location information.
  • Item, on The group identifier is an identifier used to characterize the node group to which the slave node belongs; a communication connection is established with the second node.
  • the above-mentioned first information includes at least one of first signal strength, first distance, number and location information
  • the above-mentioned first signal strength is the signal strength between the slave node and the above-mentioned master node
  • the above-mentioned first distance is the distance between the above-mentioned slave node and the above-mentioned master node.
  • the above-mentioned first communication unit 1001 is also used to obtain the status information of each slave node in the above-mentioned first node group; send a second data packet to the master node, the above-mentioned second data packet carries the above-mentioned Status information for each node in the first node group.
  • FIG 11 shows a schematic structural diagram of a chip 1100.
  • Chip 1100 includes one or more processors 1101 and interface circuits 1102 .
  • the above chip 1100 may also include a bus 1103.
  • the processor 1101 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above communication method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 1101 .
  • the above-mentioned processor 1101 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an integrated circuit (application specific integrated circuit, ASIC), or a field-programmable gate array (field-programmable gate array). , FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the interface circuit 1102 can be used to send or receive data, instructions or information.
  • the processor 1101 can use the data, instructions or other information received by the interface circuit 1102 to process, and can send the processed information through the interface circuit 1102.
  • the chip also includes a memory, which may include read-only memory and random access memory, and provides operating instructions and data to the processor.
  • a memory which may include read-only memory and random access memory, and provides operating instructions and data to the processor.
  • Part of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory stores executable software modules or data structures
  • the processor can perform corresponding operations by calling operating instructions stored in the memory (the operating instructions can be stored in the operating system).
  • the chip can be used in the communication device involved in the embodiment of the present application.
  • the interface circuit 1102 may be used to output execution results of the processor 1101.
  • the communication method provided by one or more embodiments of the embodiments of this application, reference may be made to the foregoing embodiments, which will not be described again here.
  • processor 1101 and the interface circuit 1102 can be realized through hardware design, software design, or a combination of software and hardware, which are not limited here.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 1200 may be a communication device or a chip or functional module in the communication device. As shown in FIG. 12 , the electronic device 1200 includes a processor 1201 , a transceiver 1202 and a communication line 1203 .
  • the processor 1201 is used to execute any step in the method embodiment as shown in FIG. 2 or FIG. 8, and when executing the steps, it can choose to call the transceiver 1202 and the communication line 1203 to complete the corresponding operation.
  • the electronic device 1200 may also include a memory 1204.
  • the processor 1201, the memory 1204 and the transceiver 1202 may be connected through a communication line 1203.
  • the processor 1201 is a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, or a microcontroller. , programmable logic device (PLD) or any of their Interesting combination.
  • the processor 1201 can also be other devices with processing functions, such as circuits, devices or software modules, without limitation.
  • the transceiver 1202 is used to communicate with other devices or other communication systems.
  • the other communication systems can be Ethernet, wireless access network (radio access network, RAN), wireless local area network (wireless local area network, WLAN), etc.
  • Transceiver 1202 may be a module, a circuit, a transceiver, or any device capable of enabling communications.
  • the transceiver 1202 is mainly used for sending and receiving data, and may include a transmitter and a receiver for sending and receiving signals respectively; operations other than signal sending and receiving are implemented by the processor, such as information processing, calculation, etc.
  • the communication line 1203 is used to transmit information between various components included in the electronic device 1200 .
  • the processor can be thought of as the logic circuit and the transceiver as the interface circuit.
  • Memory 1204 used to store instructions. Wherein, the instructions may be computer programs.
  • memory 1204 may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • synchronous link dynamic random access memory direct rambus RAM, DR RAM
  • the memory 1204 can also be a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium, or Other magnetic storage devices, etc.
  • CD-ROM compact disc read-only memory
  • optical disc storage including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.
  • magnetic disk storage medium or Other magnetic storage devices, etc.
  • the memory 1204 may exist independently of the processor 1201 or may be integrated with the processor 1201.
  • the memory 1204 can be used to store instructions or program codes or some data.
  • the memory 1204 may be located within the electronic device 1200 or may be located outside the electronic device 1200, without limitation.
  • the processor 1201 is configured to execute instructions stored in the memory 1204 to implement the method provided by the above embodiments of the application.
  • processor 1201 may include one or more processors, such as CPU0 and CPU1 in Figure 12.
  • the electronic device 1200 includes multiple processors.
  • the processor 1201 in FIG. 12 it may also include a processor 1207.
  • the electronic device 1200 also includes an output device 1205 and an input device 1206.
  • the input device 1206 is a device such as a keyboard, a mouse, a microphone, or a joystick
  • the output device 1205 is a device such as a display screen, a speaker, or the like.
  • the electronic device 1200 may be a chip system or a device with a similar structure as shown in FIG. 12 .
  • the chip system can be composed of chips, or can also include chips and other discrete devices.
  • the actions, terms, etc. involved in the various embodiments of this application can be referred to each other and are not limited.
  • the name of the message exchanged between the various devices or the name of the parameters in the message is just an example, and other names may also be used in the specific implementation without limitation.
  • the composition structure shown in FIG. 12 does not constitute a limitation of the electronic device 1200.
  • the electronic device 1200 may include more or fewer components than those shown in FIG. 12, or Combining certain parts, or different arrangements of parts.
  • the processor and transceiver described in this application can be implemented in integrated circuits (ICs), analog ICs, radio frequency integrated circuits, mixed-signal ICs, application specific integrated circuits (ASICs), printed circuit boards (printed circuit boards) circuit board, PCB), electronic equipment, etc.
  • the processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), n-type metal oxide-semiconductor (NMOS), P-type Metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (Bipolar Junction Transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
  • CMOS complementary metal oxide semiconductor
  • NMOS n-type metal oxide-semiconductor
  • PMOS P-type Metal oxide semiconductor
  • BJT bipolar junction transistor
  • BiCMOS bipolar CMOS
  • SiGe silicon germanium
  • GaAs gall
  • An embodiment of the present application also provides a communication device, which includes: at least one processor.
  • a communication device which includes: at least one processor.
  • the at least one processor executes program codes or instructions, the above related method steps are implemented to implement the communication method in the above embodiment.
  • the device may further include at least one memory for storing the program code or instructions.
  • Embodiments of the present application also provide a computer storage medium that stores computer instructions.
  • the communication device causes the communication device to execute the above related method steps to implement the communication method in the above embodiment.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the communication method in the above embodiment.
  • An embodiment of the present application also provides a communication device, which may be a chip, an integrated circuit, a component or a module.
  • the device may include a connected processor and a memory for storing instructions, or the device may include at least one processor for retrieving instructions from an external memory.
  • the processor can execute instructions to cause the chip to perform the communication methods in the above method embodiments.
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the above units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
  • the units described above as separate components may or may not be physically separated.
  • the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了通信方法和装置,涉及通信技术领域,能够实现多设备无线组网该方法应用于通信系统,该通信系统包括主节点和多个从节点,该方法包括:首先主节点将多个从节点划分为多个节点组。然后主节点根据多个从节点的第一信息确定多个节点组中每个节点组的中间节点。其中,第一信息用于表征节点与主节点之间的连接能力,主节点通过中间节点与中间节点所属节点组中的其他节点进行通信。

Description

通信方法和装置
本申请要求于2022年06月10日提交中国专利局、申请号为202210653856.3、申请名称为“组网方法”的中国专利申请的优先权,以及于2022年08月31日提交中国专利局、申请号为202211059339.X、申请名称为“通信方法和装置”的中国专利申请的优先权,它们的全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及通信方法和装置。
背景技术
随着科技的进步,目前越来越多的设备(如电池)从生产、使用、梯次利用再到最后报废,整个生命周期都需要记录和管理,从而提高设备的利用率和使用安全。
相关技术中,可以将设备进行有线连接或无线连接方式进行监控和管理。然而,将设备进行有线连接,实现成本较大。将设备无线连接,虽然可以解决成本问题,但组网规模有限,无法实现多设备无线组网。
发明内容
本申请实施例提供了通信方法和装置,能够实现多设备无线组网。为达到上述目的,本申请采用如下技术方案:
第一方面,本申请实施例提供了一种通信方法,该方法应用于通信系统,该通信系统包括主节点和多个从节点,该方法包括:首先所述主节点将所述多个从节点划分为多个节点组。然后所述主节点根据多个从节点的第一信息确定所述多个节点组中每个节点组的中间节点。其中,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信。
相关技术中,采用一主多从的组网方式将设备无线连接,但主设备可连接的从设备有限,因此无法实现多设备无线组网。而在本申请实施例提供的方法中,主节点和从节点不再直接连接,而是通过中间节点进行连接,这样可以增加主节点可连接的从节点数量,由此实现多设备无线组网。
例如,相关技术中,主节点可以与最多20个从节点连接,以此实现20个设备规模的组网。而在本申请实施例提供的方法中,每个主节点连接20个节点组的中间节点,每个中间节点组包括20个从节点,这样就可以实现20*20=400个设备规模的组网。
可选地,所述多个节点组包括第一节点组。
在一种可能的实现方式中,上述方法还可以包括:所述主节点在第一节点组的中间节点与所述主节点断开连接的情况下,根据所述第一节点组中的多个从节点的第一信息重新确定所述第一节点组的中间节点。
示例性地,主节点在第一节点组的中间节点因节点损坏、异常、通信干扰等原因与上述主节点断开连接后,上述主节点根据上述第一节点组中的多个从节点的第一信息重新确 定上述第一节点组的中间节点。
可以看出,本申请实施例提供的通信方法,在某个节点组的中间节点与主节点断开连接后,可以将该节点组的其他节点确定为新的中间节点,从而在不影响通信系统整体拓扑的情况下,保证通信系统各节点组的通信稳定性。
在一种可能的实现方式中,上述方法还可以包括:所述主节点在第一节点组的节点数量发生变化的情况下,根据所述第一节点组中的多个从节点的第一信息重新确定所述第一节点组的中间节点。
示例性地,主节点可以在第一节点组的节点数量减少(如第一节点组的节点因节点损坏、异常、通信干扰等原因离开第一节点组)的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
又示例性地,主节点可以在第一节点组的节点数量增加的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
可以看出,本申请实施例提供的通信方法,在某个节点组的节点数量发生变化的情况下,可以重新确定该节点组的中间节点,这样一方面可以保证通信系统各节点组的通信稳定性,另一方面可以在节点组的节点数量重新选择最合适的从节点作为中间节点以确保通信系统的通信性能。
可选地,所述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,所述第一信号强度为从节点与所述主节点之间的信号强度,所述第一距离为所述从节点与所述主节点之间的距离。
可以看出,本申请实施例提供的通信方法,可以根据上述第一信息确定各节点组合适的中间节点,以确保通信系统的通信性能。
在一种可能的实现方式中,所述主节点可以根据第二信息将所述多个从节点划分为多个节点组,所述第二信息包括组标识、编号或位置信息中的至少一项,所述组标识为用于表征所述从节点所属的节点组的标识。
可以看出,本申请实施例提供的通信方法,可以第二信息将具有共同特征的多个从节点划分至同一节点组,以确保通信系统的通信性能。
在一种可能的实现方式中,上述方法还可以包括:所述主节点接收所述中间节点发送的第一数据包,所述第一数据包携带有所述中间节点所属节点组中每个节点的状态信息。
可选地,上述状态信息可以包括电压、电量或温度等数据。
可以看出,本申请实施例提供的通信方法中,主节点可以通过与各节点组的中间节点通信获取各从节点的状态信息,相较于主节点通过与各从节点获取各从节点的状态信息,减少了通信量,提高了通信效率。
可选地,所述多个节点组中每个节点组的节点数量相同。
第二方面,本申请实施例提供了另一种通信方法,该方法应用于通信系统,所述通信系统包括主节点和多个从节点,该方法包括:所述第一节点与所述主节点建立通信连接,所述第一节点为由所述多个从节点划分得到的多个节点组中的第一节点组的中间节点,所述中间节点由所述多个从节点的第一信息确定得到,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信。所述第一节点与所述第一节点所属节点组的多个从节点建立通信连接。
可选地,所述多个节点组包括第二节点组。
在一种可能的实现方式中,该方法还可以报考:所述第一节点在与所述主节点之间的通信连接断开的情况下,与第二节点建立通信连接,所述第二节点为第二节点组的中间节点。
在一种可能的实现方式中,所述第一节点根据可以所述第一节点的第二信息确定第二节点组,所述第二信息包括组标识、编号或位置信息中的至少一项,所述组标识为用于表征所述从节点所属的节点组的标识。所述第一节点与所述第二节点建立通信连接。
可选地,所述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,所述第一信号强度为从节点与所述主节点之间的信号强度,所述第一距离为所述从节点与所述主节点之间的距离。
在一种可能的实现方式中,所述方法还可以包括:所述第一节点获取所述第一节点组中每个从节点的状态信息。所述第一节点向所述主节点发送第二数据包,所述第二数据包携带有所述第一节点组中每个节点的状态信息。
第三方面,本申请实施例提供了一种通信装置,应用于通信系统,所述通信系统包括主节点和多个从节点,所述通信装置包括:处理单元和确定单元。所述处理单元,用于将所述多个从节点划分为多个节点组。所述确定单元,用于根据多个从节点的第一信息确定所述多个节点组中每个节点组的中间节点。其中,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信。
可选地,上述多个节点组包括第一节点组。
在一种可能的实现方式中,上述确定单元还用于:在第一节点组的中间节点与上述主节点断开连接的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
在一种可能的实现方式中,上述确定单元还用于:在第一节点组的节点数量发生变化的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
可选地,上述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,上述第一信号强度为从节点与上述主节点之间的信号强度,上述第一距离为上述从节点与上述主节点之间的距离。
在一种可能的实现方式中,上述处理单元具体用于:根据第二信息将上述多个从节点划分为多个节点组,上述第二信息包括组标识、编号或位置信息中的至少一项,上述组标识为用于表征上述从节点所属的节点组的标识。
在一种可能的实现方式中,上述处理单元还用于:接收上述中间节点发送的第一数据包,上述第一数据包携带有上述中间节点所属节点组中每个节点的状态信息。
可选地,上述多个节点组中每个节点组的节点数量相同。
第四方面,本申请实施例提供了另一种通信装置,应用于通信系统,上述通信系统包括主节点和多个从节点,上述通信装置为第一节点,上述第一节点为由上述多个从节点划分得到的多个节点组中的第一节点组的中间节点,上述中间节点由上述多个从节点的第一信息确定得到,上述第一信息用于表征节点与上述主节点之间的连接能力,上述主节点通过上述中间节点与上述中间节点所属节点组中的其他节点进行通信,该通信装置可以包括:第一通信单元和第二通信单元。
上述第一通信单元还用于:在与上述主节点之间的通信连接断开的情况下,与第二节点建立通信连接,上述第二节点为第二节点组的中间节点。
上述第一通信单元具体用于:根据上述第一节点的第二信息确定第二节点组,上述第二信息包括组标识、编号或位置信息中的至少一项,上述组标识为用于表征上述从节点所属的节点组的标识;与上述第二节点建立通信连接。
在一种可能的实现方式中,上述第一通信单还用于:在与上述主节点之间的通信连接断开的情况下,与第二节点建立通信连接,上述第二节点为第二节点组的中间节点。
在一种可能的实现方式中,上述第一通信单元具体用于:根据上述第一节点的第二信息确定第二节点组,上述第二信息包括组标识、编号或位置信息中的至少一项,上述组标识为用于表征上述从节点所属的节点组的标识;与上述第二节点建立通信连接。
可选地,上述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,上述第一信号强度为从节点与上述主节点之间的信号强度,上述第一距离为上述从节点与上述主节点之间的距离。
在一种可能的实现方式中,上述第一通信单元还用于获取上述第一节点组中每个从节点的状态信息;向主节点发送第二数据包,所述第二数据包携带有所述第一节点组中每个节点的状态信息。
第五方面,本申请实施例还提供一种通信装置,该通信装置包括:至少一个处理器,当所述至少一个处理器执行程序代码或指令时,实现上述第一方面或其任意可能的实现方式中所述的方法。
可选地,该通信装置还可以包括至少一个存储器,该至少一个存储器用于存储该程序代码或指令。
第六方面,本申请实施例还提供一种芯片,包括:输入接口、输出接口、至少一个处理器。可选地,该芯片还包括存储器。该至少一个处理器用于执行该存储器中的代码,当该至少一个处理器执行该代码时,该芯片实现上述第一方面或其任意可能的实现方式中所述的方法。
可选地,上述芯片还可以为集成电路。
第七方面,本申请实施例还提供一种计算机可读存储介质,用于存储计算机程序,该计算机程序包括用于实现上述第一方面或其任意可能的实现方式中所述的方法。
第八方面,本申请实施例还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机实现上述第一方面或其任意可能的实现方式中所述的方法。
本实施例提供的通信装置、计算机存储介质、计算机程序产品和芯片均用于执行上文所提供的通信方法,因此,其所能达到的有益效果可参考上文所提供的通信方法中的有益效果,此处不再赘述。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种通信系统的结构示意图;
图2为本申请实施例提供一种通信方法的流程示意图;
图3为本申请实施例提供的另一种通信系统的结构示意图;
图4为本申请实施例提供的又一种通信系统的结构示意图;
图5为本申请实施例提供的又一种通信系统的结构示意图;
图6为本申请实施例提供的又一种通信系统的结构示意图;
图7为本申请实施例提供的又一种通信系统的结构示意图;
图8为本申请实施例提供另一种通信方法的流程示意图;
图9为本申请实施例提供的一种通信装置的结构示意图;
图10为本申请实施例提供的另一种通信装置的结构示意图;
图11为本申请实施例提供一种芯片的结构示意图;
图12为本申请实施例提供一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请实施例一部分实施例,而不是全部的实施例。基于本申请实施例中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请实施例保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
本申请实施例的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,或者用于区别对同一对象的不同处理,而不是用于描述对象的特定顺序。
此外,本申请实施例的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选的还包括其他没有列出的步骤或单元,或可选的还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
需要说明的是,本申请实施例的描述中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优先或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。
相关技术中,可以将设备进行有线连接或无线连接方式进行监控和管理。然而,将设备进行有线连接,实现成本较大。将设备无线连接,虽然可以解决成本问题,但组网规模有限,无法实现多设备无线组网。例如,相关技术中,主节点可以与最多20个从节点连接,以此实现20个设备规模的组网,但无法实现更大规模的设备组网。
为此,本申请实施例提供了一种通信方法能够实现多设备无线组网。该方法应用于通信系统,图1示出了本申请实施例提供的一种通信系统。如图1所示,该通信系统包括:主节点和多个从节点。
主节点101,也可称为根节点或G节点。主节点101可以通过无线通信技术与中间节点102相连接。
可选地,每个通信系统可以仅存在一个主节点。
从节点102,也可称为叶子节点或T节点。从节点102中包括与主节点101连接的中间节点。
上述节点(主节点、从节点)可以为设备(如电池)或者设备中的芯片或者功能模块。
在一种可能的实现方式中,上述节点均可以监控并采集数据。上述多个节点可以同步收集(采集)数据。
图2示出了本申请实施例提供的一种通信方法,该方法适用于上述通信系统,如图2所示,该方法包括:
S201、主节点将多个从节点划分为多个节点组。
示例性地,如图3所示,以通信系统包括主节点和16个从节点为例。主节点可以将这16个从节点划分为4个节点组,每个节点组均包括4个从节点。
在一种可能的实现方式中,上述主节点可以根据第二信息将上述多个从节点划分为多个节点组。
其中,上述第二信息包括组标识、编号或位置信息中的至少一项,上述组标识为用于表征上述从节点所属的节点组的标识。
上述节点组也可称为微微网。
可选地,上述编号可以为逻辑编号,从节点的编号可以与从节点的物理位置绑定。
示例性地,主节点可以根据从节点的组标识确定组标识相同的多个从节点属于同一节点组。
又例如,主节点可以根据从节点的编号确定同一编号区间的多个从节点属于同一节点组。如确定编号1~10的10个从节点属于节点组1,确定编号11~20的10个从节点属于节点组2。
可选地,上述多个节点组中每个节点组的节点数量相同。
例如,如图3所示每个节点组均包括4个从节点。
值得一提的是,使上述多个节点组中每个节点组的节点数量相同可以提高通信系统的稳定性。
使上述多个节点组中每个节点组的节点数量相同的具体方法可以采用本领域技术人员想到的任何一种方法。
例如,可以通过平衡树(多叉平衡树)算法使上述多个节点组中每个节点组的节点数量相同。
又例如,主节点可以向各节点组的中间节点下发参数(包括全网节点数、中间节点层数、最底层从节点数等信息),各节点组的中间节点根据下发的参数对通信系统进行动态的平衡使使上述多个节点组中每个节点组的节点数量相同。
S202、主节点根据多个从节点的第一信息确定多个节点组中每个节点组的中间节点。
其中,上述第一信息用于表征节点与上述主节点之间的连接能力,上述主节点通过上述中间节点与上述中间节点所属节点组中的其他节点进行通信。
示例性地,主节点上电后可以通过带连接能力的周期广播发现并与从节点进行连接以获取上述第一信息。
可选地,上述第一信息可以包括第一信号强度、第一距离、编号和位置信息中的至少一项。其中,上述第一信号强度为从节点与上述主节点之间的信号强度,上述第一距离为 上述从节点与上述主节点之间的距离。
示例性地,主节点可以根据多个从节点的第一信号强度确定多个节点组中每个节点组的中间节点。
例如,主节点可以将每个节点组中第一信号强度最强的从节点确定为每个节点组的中间节点。
又示例性地,主节点可以根据多个从节点的第一距离确定多个节点组中每个节点组的中间节点。
例如,主节点可以将每个节点组中第一距离最近的从节点确定为每个节点组的中间节点。
又示例性地,主节点可以根据多个从节点的编号确定多个节点组中每个节点组的中间节点。
例如,如图4上述,主节点可以将每个节点组中编号为4的倍数的从节点确定为每个节点组的中间节点。即将图4中将编号为4、8、12和16的从节点(即从节点4、从节点8,从节点12和从节点16)确定为每个节点组的中间节点。
可以看出,本申请实施例提供的通信方法,可以第二信息将具有共同特征的多个从节点划分至同一节点组,以确保通信系统的通信性能。
可以看出,本申请实施例提供的通信方法,在某个节点组的中间节点与主节点断开连接后,可以将该节点组的其他节点确定为新的中间节点,从而在不影响通信系统整体拓扑的情况下,保证通信系统各节点组的通信稳定性。
可选地,上述多个节点组包括第一节点组,该方法还可以包括:
S203、上述主节点在第一节点组的中间节点与上述主节点断开连接的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
示例性地,主节点在第一节点组的中间节点因节点损坏、异常、通信干扰等原因与上述主节点断开连接后,上述主节点根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
例如,以图5中的节点组1为第一节点组为例,如图5所示,从节点1为节点组1的中间节点,节点组1的中间节点(从节点1)与主节点断开连接后,主节点根据节点组1的多个从节点的第一信息将上述第一节点组的中间节点为从节点2。
可以看出,本申请实施例提供的通信方法,在某个节点组的中间节点与主节点断开连接后,可以将该节点组的其他节点确定为新的中间节点,从而在不影响通信系统整体拓扑的情况下,保证通信系统各节点组的通信稳定性。
值得一提的是,第一节点组的中间节点与上述主节点断开连接说明第一节点组的中间节点(旧中间节点)离开了第一节点组,节点组1在确定新的中间节点后(简称新中间节点),旧的中心节点(旧中间节点)能够以从节点的身份重新加入第一节点组,也能够以中间节点的身份重新加入第一节点组。
例如,从节点1为节点组1的中间节点,节点组1的中间节点(从节点1)与主节点断开连接后,主节点根据节点组1的多个从节点的第一信息将上述第一节点组的中间节点为从节点2。从节点1能够以从节点的身份重新加入节点组1,从节点2在从节点1重新加入节点组1继续作为节点组1的中间节点。
又例如,从节点1为节点组1的中间节点,节点组1的中间节点(从节点1)与主节 点断开连接后,主节点根据节点组1的多个从节点的第一信息将上述第一节点组的中间节点为从节点2。从节点1能够以中间节点的身份重新加入节点组1,从节点2在从节点1重新加入节点组1后,从节点2重新恢复为普通从节点。
S204、上述主节点在第一节点组的节点数量发生变化的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
示例性地,主节点可以在第一节点组的节点数量减少(如第一节点组的节点因节点损坏、异常、通信干扰等原因离开第一节点组)的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
又示例性地,主节点可以在第一节点组的节点数量增加的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
例如,以图6中的节点组1为第一节点组为例,如图6所示,从节点1为节点组1的中间节点,节点组1的中间节点(从节点1)与主节点断开连接后(节点组1的节点数量由4变为3),主节点则根据节点组1的多个从节点的第一信息将上述第一节点组的中间节点为从节点2。在一段时间后,从节点1由重新加入节点组1(节点组1的节点数量由3变为4),主节点则根据节点组1的多个从节点的第一信息将上述第一节点组的中间节点为从节点1。
可以看出,本申请实施例提供的通信方法,在某个节点组的节点数量发生变化的情况下,可以重新确定该节点组的中间节点,这样一方面可以保证通信系统各节点组的通信稳定性,另一方面可以在节点组的节点数量重新选择最合适的从节点作为中间节点以提保证通信系统的通信性能。
S205、上述主节点接收上述中间节点发送的第一数据包,上述第一数据包携带有上述中间节点所属节点组中每个节点的状态信息。
可选地,上述状态信息可以包括电压、电量或温度等数据。
可以看出,本申请实施例提供的通信方法中,主节点可以通过与各节点组的中间节点通信获取各从节点的状态信息,相较于主节点通过与各从节点获取各从节点的状态信息,减少了通信量,提高了通信效率。
在一种可能的实现方式中,主节点可以通过一个多个第一中间节点与各中间节点相连。
如图7所示,主节点可以第一中间节点1与节点组1和节点组2的中间节点相连,主节点可以通过第一中间节点2与节点组3和节点组4的中间节点相连。
值得一提的是,在第一中间节点与上述主节点断开连接的情况下,可以根据多个从节点的第一信息确定第一中间节点。
第一中间节点可以是预设的,也可以根据通信系统中各从节点的第一信息确定的。
在一种可能的实现方式中,上述主节点根据多个从节点的第一信息确定至少一个第一中间节点。
例如,上述主节点根据多个从节点的第一信息将与上述主节点之间信号强度的N个节点确定为第一中间节点。其中,N为正整数。
在一种可能的实现方式中,上述多个节点组包括第一中间节点组,第一中间节点组包括至少一个第一中间节点。
例如,上述主节点根据多个从节点的第一信息将与上述主节点距离最近的N个节点划分至第一中间节点组。
在一种可能的实现方式中,第一中间节点可以与主节点和至少一个节点组的中间节点建立通信连接。
示例性地,第一中间节点可以根据多个节点组的中间节点的第一信息,确定与该第一中间节点建立通信连接的中间节点。
例如,第一中间节点可以根据多个节点组的中间节点的第一信息,与距离第一中间节点最近的N个中心节点建立通信连接。
图8示出了本申请实施例提供的另一种通信方法,该方法适用于上述通信系统,如图8所示,该方法包括:
S801、第一节点与主节点建立通信连接。
其中,上述第一节点为由上述多个从节点划分得到的多个节点组中的第一节点组的中间节点,上述中间节点由上述多个从节点的第一信息确定得到,上述第一信息用于表征节点与上述主节点之间的连接能力,上述主节点通过上述中间节点与上述中间节点所属节点组中的其他节点进行通信。
可选地,上述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,上述第一信号强度为从节点与上述主节点之间的信号强度,上述第一距离为上述从节点与上述主节点之间的距离。
S802、第一节点与第一节点所属节点组的多个从节点建立通信连接。
可选地,该方法还可以包括:
S803、上述第一节点在与上述主节点之间的通信连接断开的情况下,与第二节点建立通信连接。
其中,上述第二节点为第二节点组的中间节点。
S804、上述第一节点根据上述第一节点的第二信息确定第二节点组。
其中,上述第二信息包括组标识、编号或位置信息中的至少一项,上述组标识为用于表征上述从节点所属的节点组的标识。
S805、第一节点获取上述第一节点组中每个从节点的状态信息。
示例性地,第一节点可以通过周期轮询或定频的方式获取第一节点组中每个从节点周期轮询上报的携带有状态信息的数据包。
S806、第一节点向上述主节点发送第二数据包。
在一种可能的实现方式中,第一节点可以采用数据汇聚(去掉每个从节点上报的数据包的冗余包头,重新打包数据)的方式向直接(或通过多个第一中间节点转发)向主节点发送第二数据包。
下面将结合图9介绍用于执行上述通信方法的通信装置。
可以理解的是,通信装置为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对通信装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。 上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图9示出了上述实施例中涉及的通信装置的一种可能的组成示意图,该应用于通信系统,上述通信系统包括主节点和多个从节点,该通信装置900可以包括:处理单元901和确定单元902。
上述处理单元901,用于将上述多个从节点划分为多个节点组。
上述确定单元902,用于根据多个从节点的第一信息确定上述多个节点组中每个节点组的中间节点,上述第一信息用于表征节点与上述主节点之间的连接能力,上述主节点通过上述中间节点与上述中间节点所属节点组中的其他节点进行通信。
可选地,上述多个节点组包括第一节点组。
在一种可能的实现方式中,上述确定单元902还用于:在第一节点组的中间节点与上述主节点断开连接,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
在一种可能的实现方式中,上述确定单元902还用于:在第一节点组的节点数量发生变化的情况下,根据上述第一节点组中的多个从节点的第一信息重新确定上述第一节点组的中间节点。
可选地,上述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,上述第一信号强度为从节点与上述主节点之间的信号强度,上述第一距离为上述从节点与上述主节点之间的距离。
在一种可能的实现方式中,上述901处理单元具体用于:根据第二信息将上述多个从节点划分为多个节点组,上述第二信息包括组标识、编号或位置信息中的至少一项,上述组标识为用于表征上述从节点所属的节点组的标识。
在一种可能的实现方式中,上述处理单元901还用于:接收上述中间节点发送的第一数据包,上述第一数据包携带有上述中间节点所属节点组中每个节点的状态信息。
可选地,上述多个节点组中每个节点组的节点数量相同。
在采用对应各个功能划分各个功能模块的情况下,图10示出了上述实施例中涉及的通信装置的另一种可能的组成示意图,应用于通信系统,上述通信系统包括主节点和多个从节点,上述通信装置为第一节点,上述第一节点为由上述多个从节点划分得到的多个节点组中的第一节点组的中间节点,上述中间节点由上述多个从节点的第一信息确定得到,上述第一信息用于表征节点与上述主节点之间的连接能力,上述主节点通过上述中间节点与上述中间节点所属节点组中的其他节点进行通信,该通信装置1000可以包括:第一通信单元1001和第二通信单元1002。
上述第一通信单元1001,用于与上述主节点建立通信连接。
上述第二通信单元1002,用于与上述第一节点所属节点组的多个从节点建立通信连接。
在一种可能的实现方式中,上述第一通信单元1001还用于:在与上述主节点之间的通信连接断开的情况下,与第二节点建立通信连接,上述第二节点为第二节点组的中间节点。
在一种可能的实现方式中,上述第一通信单元1001具体用于:根据上述第一节点的第二信息确定第二节点组,上述第二信息包括组标识、编号或位置信息中的至少一项,上 述组标识为用于表征上述从节点所属的节点组的标识;与上述第二节点建立通信连接。
可选地,上述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,上述第一信号强度为从节点与上述主节点之间的信号强度,上述第一距离为上述从节点与上述主节点之间的距离。
在一种可能的实现方式中,上述第一通信单元1001还用于获取上述第一节点组中每个从节点的状态信息;向主节点发送第二数据包,上述第二数据包携带有上述第一节点组中每个节点的状态信息。
图11示出了一种芯片1100的结构示意图。芯片1100包括一个或多个处理器1101以及接口电路1102。可选的,上述芯片1100还可以包含总线1103。
处理器1101可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述通信方法的各步骤可以通过处理器1101中的硬件的集成逻辑电路或者软件形式的指令完成。
可选地,上述的处理器1101可以是通用处理器、数字信号处理(digital signal proce ssing,DSP)器、集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
接口电路1102可以用于数据、指令或者信息的发送或者接收,处理器1101可以利用接口电路1102接收的数据、指令或者其他信息,进行加工,可以将加工完成信息通过接口电路1102发送出去。
可选的,芯片还包括存储器,存储器可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(non-vo latile random access memory,NVRAM)。
可选的,存储器存储了可执行软件模块或者数据结构,处理器可以通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。
可选的,芯片可以使用在本申请实施例涉及的通信装置中。可选的,接口电路1102可用于输出处理器1101的执行结果。关于本申请实施例的一个或多个实施例提供的通信方法可参考前述各个实施例,这里不再赘述。
需要说明的,处理器1101、接口电路1102各自对应的功能既可以通过硬件设计实现,也可以通过软件设计来实现,还可以通过软硬件结合的方式来实现,这里不作限制。
图12为本申请实施例提供的一种电子设备的结构示意图,该电子设备1200可以为通信装置或者通信装置中的芯片或者功能模块。如图12所示,该电子设备1200包括处理器1201,收发器1202以及通信线路1203。
其中,处理器1201用于执行如图2或图8所示的方法实施例中的任一步骤,且在执行步骤时,可选择调用收发器1202以及通信线路1203来完成相应操作。
进一步的,该电子设备1200还可以包括存储器1204。其中,处理器1201,存储器1204以及收发器1202之间可以通过通信线路1203连接。
其中,处理器1201是中央处理器(central processing unit,CPU)、通用处理器、网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任 意组合。处理器1201还可以是其他具有处理功能的装置,例如电路、器件或软件模块,不予限制。
收发器1202,用于与其他设备或其他通信系统进行通信,其他通信系统可以为以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area netwo rks,WLAN)等。收发器1202可以是模块、电路、收发器或者任何能够实现通信的装置。
收发器1202主要用于数据的收发,可以包括发射器和接收器,分别进行信号的发送和接收;除信号收发之外的操作由处理器实现,如信息处理,计算等。
通信线路1203,用于在电子设备1200所包括的各部件之间传送信息。
在一种设计中,可以将处理器看做逻辑电路,收发器看做接口电路。
存储器1204,用于存储指令。其中,指令可以是计算机程序。
其中,存储器1204可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(e nhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLD RAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。存储器1204还可以是只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或其他磁存储设备等。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其他适合类型的存储器。
需要指出的是,存储器1204可以独立于处理器1201存在,也可以和处理器1201集成在一起。存储器1204可以用于存储指令或者程序代码或者一些数据等。存储器1204可以位于电子设备1200内,也可以位于电子设备1200外,不予限制。处理器1201,用于执行存储器1204中存储的指令,以实现本申请上述实施例提供的方法。
在一种示例中,处理器1201可以包括一个或多个处理器,例如图12中的CPU0和C PU1。
作为一种可选的实现方式,电子设备1200包括多个处理器,例如,除图12中的处理器1201之外,还可以包括处理器1207。
作为一种可选的实现方式,电子设备1200还包括输出设备1205和输入设备1206。示例性地,输入设备1206是键盘、鼠标、麦克风或操作杆等设备,输出设备1205是显示屏、扬声器(speaker)等设备。
需要指出的是,电子设备1200可以是芯片系统或有图12中类似结构的设备。其中,芯片系统可以由芯片构成,也可以包括芯片和其他分立器件。本申请的各实施例之间涉及的动作、术语等均可以相互参考,不予限制。本申请的实施例中各个设备之间交互的消息名称或消息中的参数名称等只是一个示例,具体实现中也可以采用其他的名称,不予限制。 此外,图12中示出的组成结构并不构成对该电子设备1200的限定,除图12所示部件之外,该电子设备1200可以包括比图12所示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
本申请中描述的处理器和收发器可实现在集成电路(integrated circuit,IC)、模拟IC、射频集成电路、混合信号IC、专用集成电路(application specific integrated circuit,ASIC)、印刷电路板(printed circuit board,PCB)、电子设备等上。该处理器和收发器也可以用各种IC工艺技术来制造,例如互补金属氧化物半导体(complementary metal oxide semiconductor,CMOS)、N型金属氧化物半导体(nMetal-oxide-semiconductor,NMOS)、P型金属氧化物半导体(positive channel metal oxide semiconductor,PMOS)、双极结型晶体管(Bipolar Junction Transistor,BJT)、双极CMOS(BiCMOS)、硅锗(SiGe)、砷化镓(GaAs)等。
本申请实施例还提供一种通信装置,该装置包括:至少一个处理器,当上述至少一个处理器执行程序代码或指令时,实现上述相关方法步骤实现上述实施例中的通信方法。
可选地,该装置还可以包括至少一个存储器,该至少一个存储器用于存储该程序代码或指令。
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在通信装置上运行时,使得通信装置执行上述相关方法步骤实现上述实施例中的通信方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的通信方法。
本申请实施例还提供一种通信装置,这个装置具体可以是芯片、集成电路、组件或模块。具体的,该装置可包括相连的处理器和用于存储指令的存储器,或者该装置包括至少一个处理器,用于从外部存储器获取指令。当装置运行时,处理器可执行指令,以使芯片执行上述各方法实施例中的通信方法。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件,或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
上述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。

Claims (27)

  1. 一种通信方法,应用于通信系统,所述通信系统包括主节点和多个从节点,其特征在于,包括:
    所述主节点将所述多个从节点划分为多个节点组;
    所述主节点根据多个从节点的第一信息确定所述多个节点组中每个节点组的中间节点,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信。
  2. 根据权利要求1所述的方法,其特征在于,所述多个节点组包括第一节点组,所述方法还包括:
    所述主节点在第一节点组的中间节点与所述主节点断开连接的情况下,根据所述第一节点组中的多个从节点的第一信息重新确定所述第一节点组的中间节点。
  3. 根据权利要求1或2所述的方法,其特征在于,所述多个节点组包括第一节点组,所述方法还包括:
    所述主节点在第一节点组的节点数量发生变化的情况下,根据所述第一节点组中的多个从节点的第一信息重新确定所述第一节点组的中间节点。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,所述第一信号强度为从节点与所述主节点之间的信号强度,所述第一距离为所述从节点与所述主节点之间的距离。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述主节点将所述多个从节点划分为多个节点组,包括:
    所述主节点根据第二信息将所述多个从节点划分为多个节点组,所述第二信息包括组标识、编号或位置信息中的至少一项,所述组标识为用于表征所述从节点所属的节点组的标识。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:
    所述主节点接收所述中间节点发送的第一数据包,所述第一数据包携带有所述中间节点所属节点组中每个节点的状态信息。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述多个节点组中每个节点组的节点数量相同。
  8. 一种通信方法,应用于通信系统,所述通信系统包括主节点和多个从节点,其特征在于,包括:
    所述第一节点与所述主节点建立通信连接,所述第一节点为由所述多个从节点划分得到的多个节点组中的第一节点组的中间节点,所述中间节点由所述多个从节点的第一信息确定得到,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信;
    所述第一节点与所述第一节点所属节点组的多个从节点建立通信连接。
  9. 根据权利要求8所述的方法,其特征在于,所述多个节点组包括第二节点组,所述方法还包括:
    所述第一节点在与所述主节点之间的通信连接断开的情况下,与第二节点建立通信连接,所述第二节点为第二节点组的中间节点。
  10. 根据权利要求9所述的方法,其特征在于,所述与第二节点建立通信连接,包括:
    所述第一节点根据所述第一节点的第二信息确定第二节点组,所述第二信息包括组标识、编号或位置信息中的至少一项,所述组标识为用于表征所述从节点所属的节点组的标识;
    所述第一节点与所述第二节点建立通信连接。
  11. 根据权利要求8至10中任一项所述的方法,其特征在于,所述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,所述第一信号强度为从节点与所述主节点之间的信号强度,所述第一距离为所述从节点与所述主节点之间的距离。
  12. 根据权利要求8至11中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一节点获取所述第一节点组中每个从节点的状态信息;
    所述第一节点向所述主节点发送第二数据包,所述第二数据包携带有所述第一节点组中每个节点的状态信息。
  13. 一种通信装置,应用于通信系统,所述通信系统包括主节点和多个从节点,其特征在于,所述通信装置包括:处理单元和确定单元;
    所述处理单元,用于将所述多个从节点划分为多个节点组;
    所述确定单元,用于根据多个从节点的第一信息确定所述多个节点组中每个节点组的中间节点,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信。
  14. 根据权利要求13所述的装置,其特征在于,所述多个节点组包括第一节点组,所述确定单元还用于:
    在第一节点组的中间节点与所述主节点断开连接的情况下,根据所述第一节点组中的多个从节点的第一信息重新确定所述第一节点组的中间节点。
  15. 根据权利要求13或14所述的装置,其特征在于,所述多个节点组包括第一节点组,所述确定单元还用于:
    在第一节点组的节点数量发生变化的情况下,根据所述第一节点组中的多个从节点的第一信息重新确定所述第一节点组的中间节点。
  16. 根据权利要求13至15中任一项所述的装置,其特征在于,所述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,所述第一信号强度为从节点与所述主节点之间的信号强度,所述第一距离为所述从节点与所述主节点之间的距离。
  17. 根据权利要求13至16中任一项所述的装置,其特征在于,所述处理单元具体用于:
    根据第二信息将所述多个从节点划分为多个节点组,所述第二信息包括组标识、编号或位置信息中的至少一项,所述组标识为用于表征所述从节点所属的节点组的标识。
  18. 根据权利要求13至17中任一项所述的装置,其特征在于,所述处理单元还用于:
    接收所述中间节点发送的第一数据包,所述第一数据包携带有所述中间节点所属节点组中每个节点的状态信息。
  19. 根据权利要求13至18中任一项所述的装置,其特征在于,所述多个节点组中每个节点组的节点数量相同。
  20. 一种通信装置,应用于通信系统,所述通信系统包括主节点和多个从节点,其特征在于,所述通信装置为第一节点,所述第一节点为由所述多个从节点划分得到的多个节 点组中的第一节点组的中间节点,所述中间节点由所述多个从节点的第一信息确定得到,所述第一信息用于表征节点与所述主节点之间的连接能力,所述主节点通过所述中间节点与所述中间节点所属节点组中的其他节点进行通信,所述通信装置包括:第一通信单元和第二通信单元;
    所述第一通信单元,用于与所述主节点建立通信连接;
    所述第二通信单元,用于与所述第一节点所属节点组的多个从节点建立通信连接。
  21. 根据权利要求20所述的装置,其特征在于,所述第一通信单元还用于:
    在与所述主节点之间的通信连接断开的情况下,与第二节点建立通信连接,所述第二节点为第二节点组的中间节点。
  22. 根据权利要求21所述的装置,其特征在于,所述第一通信单元具体用于:
    根据所述第一节点的第二信息确定第二节点组,所述第二信息包括组标识、编号或位置信息中的至少一项,所述组标识为用于表征所述从节点所属的节点组的标识;
    与所述第二节点建立通信连接。
  23. 根据权利要求20至22中任一项所述的装置,其特征在于,所述第一信息包括第一信号强度、第一距离、编号和位置信息中的至少一项,所述第一信号强度为从节点与所述主节点之间的信号强度,所述第一距离为所述从节点与所述主节点之间的距离。
  24. 根据权利要求20至23中任一项所述的装置,其特征在于,所述第一通信单元还用于
    获取所述第一节点组中每个从节点的状态信息;
    向所述主节点发送第二数据包,所述第二数据包携带有所述第一节点组中每个节点的状态信息。
  25. 一种通信装置,包括至少一个处理器和存储器,其特征在于,所述至少一个处理器执行存储在存储器中的程序或指令,以使得所述通信装置实现上述权利要求1至7中任一项或8至12中任一项所述的方法。
  26. 一种计算机可读存储介质,用于存储计算机程序,其特征在于,当所述计算机程序在计算机或处理器运行时,使得所述计算机或所述处理器实现上述权利要求1至7中任一项或8至12中任一项所述的方法。
  27. 一种计算机程序产品,所述计算机程序产品中包含指令,其特征在于,当所述指令在计算机或处理器上运行时,使得所述计算机或所述处理器实现上述权利要求1至7中任一项或8至12中任一项所述的方法。
PCT/CN2023/096626 2022-06-10 2023-05-26 通信方法和装置 WO2023236792A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210653856 2022-06-10
CN202210653856.3 2022-06-10
CN202211059339.XA CN117255387A (zh) 2022-06-10 2022-08-31 通信方法和装置
CN202211059339.X 2022-08-31

Publications (1)

Publication Number Publication Date
WO2023236792A1 true WO2023236792A1 (zh) 2023-12-14

Family

ID=89117619

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096626 WO2023236792A1 (zh) 2022-06-10 2023-05-26 通信方法和装置

Country Status (1)

Country Link
WO (1) WO2023236792A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486715A (zh) * 2014-11-26 2015-04-01 南京邮电大学 一种基于地理位置信息的移动传感器网络分簇方法
CN105634784A (zh) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 控制数据分发方法、装置及系统
US20210152427A1 (en) * 2019-11-18 2021-05-20 Electronics And Telecommunications Research Institute Method and apparatus for configuring cluster in wireless communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634784A (zh) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 控制数据分发方法、装置及系统
CN104486715A (zh) * 2014-11-26 2015-04-01 南京邮电大学 一种基于地理位置信息的移动传感器网络分簇方法
US20210152427A1 (en) * 2019-11-18 2021-05-20 Electronics And Telecommunications Research Institute Method and apparatus for configuring cluster in wireless communication system

Similar Documents

Publication Publication Date Title
Law et al. A new Bluetooth scatternet formation protocol
CN111200769B (zh) 一种用于蓝牙耳机设备的通信方法以及蓝牙耳机设备
US11444800B2 (en) Topology switching method based on isochronous channel, apparatus, system and storage medium
EP2641377A1 (en) Forwarding traffic flow in intelligent resilient framework system
JP2010287964A5 (zh)
US20120322479A1 (en) Communication link monitoring and failure handling in a network controlled device-to-device connection
WO2023124744A1 (zh) 跨子网交互
WO2013097639A1 (en) Expanding member ports of a link aggregation group between clusters
EP4040913A1 (en) Communication method, device and system
Shahin et al. A framework for P2P networking of smart devices using Wi-Fi direct
CN110677347A (zh) 一种用于微服务的服务注册和服务发现的方法
WO2023236792A1 (zh) 通信方法和装置
CN109819524A (zh) 报文处理方法及装置
CN111954123A (zh) 无线音频设备信息同步的方法、系统、介质及无线音频设备
CN111277580A (zh) 节点数据发送方法、接收方法以及传输方法
CN117255387A (zh) 通信方法和装置
CN106028469B (zh) 一种通信连接建立方法、装置及移动终端
WO2021056199A1 (zh) 一种通信方法及装置
CN110858965B (zh) 一种数据传输方法及装置、终端、存储介质
WO2023201755A1 (zh) 一种移动性管理的配置方法及装置
WO2024011545A1 (zh) 切换方法及装置
KR20210138075A (ko) 통신 방법, 장치 및 기기
CN111884684B (zh) 一种基于状态机控制的蓝牙物理连接的方法和系统
WO2022236622A1 (zh) 一种寻呼方法及其装置
WO2023060940A1 (zh) 发现和连接到软接入设备的方法、装置、设备及存储介质

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: 23818957

Country of ref document: EP

Kind code of ref document: A1