WO2016019527A1 - Point-to-multipoint communication method and communication node based on mesh structure - Google Patents

Point-to-multipoint communication method and communication node based on mesh structure Download PDF

Info

Publication number
WO2016019527A1
WO2016019527A1 PCT/CN2014/083807 CN2014083807W WO2016019527A1 WO 2016019527 A1 WO2016019527 A1 WO 2016019527A1 CN 2014083807 W CN2014083807 W CN 2014083807W WO 2016019527 A1 WO2016019527 A1 WO 2016019527A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
source node
coordinate
new
region
Prior art date
Application number
PCT/CN2014/083807
Other languages
French (fr)
Chinese (zh)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/083807 priority Critical patent/WO2016019527A1/en
Priority to CN201480034143.2A priority patent/CN105637936B/en
Publication of WO2016019527A1 publication Critical patent/WO2016019527A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing

Definitions

  • the present invention relates to the field of communications, and in particular, to a point-to-multipoint communication method and a communication node based on a Mesh structure. Background technique
  • NoC Networks On Chip
  • Current on-chip many-core systems such as the Teraflop 80 core and the Tilera 64 core are interconnected via a wired mesh network (eg, 2D-mesh).
  • NoC which supports single-point to multi-point information transmission, has great potential in diverse application areas and program modeling.
  • the point-to-multipoint transmission method based on Mesh structure in the prior art is a recursive slice single point pair.
  • RPM Recursive Partitioning Multicast
  • the node is hop-by-hop to the corresponding destination node through the node directly connected to the source node.
  • the data can be transmitted from the source node a first.
  • the node b to which the node a is connected is then hop-by-hop to the destination node c.
  • the node that has received the data connected to the source node in the area 1 is the new source node, and the area 0 and the area 1 are used as the new area range to divide the area and perform data transmission.
  • the data transmission path of the destination node of the area 0 necessarily passes through the node in the area 1, and the same operation of the area 0 and the area 1 is sequentially performed for the area 2 and the area 3, the area 4, and the area 5, the area 6, and the area 7. It can be known from the prior art that the RPM method needs to divide the nodes in the Mesh structure into eight regions, and the algorithm is too complicated, and the prior art does not consider how to reduce the transmission delay. Summary of the invention
  • the present invention provides a point-to-multipoint communication method and a communication node based on a Mesh structure, which is simple in implementation, can reduce a data transmission link, save system resources, and can reduce transmission delay.
  • a first aspect of the present invention provides a point-to-multipoint communication method based on a Mesh wireless mesh network structure, which may include:
  • Other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into one of two regions bounded by the boundary node.
  • the horizontal distance and the vertical distance of the boundary node to the source node are equal;
  • the region when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
  • the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node If the coordinates are positive, perform the following operations with the first node as the new source node: A, when the new source node is only one destination node in the area, ending data transmission to the area;
  • step D when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
  • the demarcation node When one of the two regions bounded by the demarcation node includes a destination node that needs to receive data from the source node, other nodes except the source node in the predetermined node range are bounded by the demarcation node.
  • the boundary node When divided into four independent regions, the boundary node is divided into the demarcation node Among the two regions of the boundary are included in the region of the destination node that needs to receive data from the source node.
  • the boundary node When two regions bounded by the boundary node include a destination node that needs to receive data from the source node, the other nodes except the source node in the predetermined node range are bounded by the boundary node as In the case of four independent regions, the boundary node is divided into any one of two regions bounded by the boundary node.
  • the source node When other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, when the two regions bounded by the boundary node are not included, the source is not included.
  • the node receives the destination node of the data, and then divides the demarcation node into an area in which two other nodes are already included in the two areas bounded by the demarcation node.
  • a second aspect of the present invention provides a communication node, which is a node in a Mesh wireless mesh network structure, which may include:
  • a region dividing module configured to divide other nodes except the local node in the predetermined node range by a boundary node, into four independent regions, where the boundary node is divided into two regions bounded by the boundary node In one of the regions, the horizontal distance and the vertical distance of the boundary node to the node are equal;
  • a transmission module configured to target each of the four independent regions, when the region includes a destination a node, the data is transmitted from the source node to the area, and the source node is directly connected to the first node, where the current node is a node that needs to receive data from the source node;
  • the axis of the source node and the first node is the Y axis, and the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is positive
  • the first node performs the following operations for the new source node: A, when the new source node is only one destination node in the area, ending data transmission to the area; B, when When there is a destination node in the region that has the same Y coordinate and the X coordinate is positive, the data is transmitted from the new source node to the X coordinate is positive and directly connected to the new source node.
  • Step A when there is a Y with the new source node in the region
  • the destination node has the same coordinates and the X coordinate is negative, data is transmitted from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then the Y axis is bounded, and the All nodes in the region whose X coordinate is negative are divided into a new region, and within the new region, the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps Go to step A;
  • the area division module is specifically configured to:
  • the other nodes are divided into four independent regions by a boundary node, and the boundary node is divided into two destinations that are bounded by the boundary node and includes a destination node that needs to receive data from the source node. In the area.
  • the region dividing module is specifically configured to: A node, bounded by a boundary node, is divided into four independent regions, and the boundary node is divided into any one of two regions bounded by the boundary node.
  • a destination node that needs to receive data from the source node is not included in the two areas bounded by the boundary node, and the area dividing module is specifically configured to: A node, bounded by a boundary node, is divided into four independent regions, and the boundary node is divided into regions in the two regions bounded by the boundary node that have already included other boundary nodes.
  • a third aspect of the present invention provides a communication node, which is a node in a Mesh wireless mesh network structure, which may include: an input device, an output device, a communication link, a transceiver device, a memory, and a processor, where:
  • the input device is configured to receive input data externally input to the communication node
  • the output device is configured to output output data of the communication node to the outside;
  • the communication link is configured to establish a communication link between the communication node and other nodes of the Mesh wireless mesh network structure
  • the transceiver device is configured to communicate with other nodes of the Mesh wireless mesh network structure through the communication link;
  • the memory is configured to store program or non-program data with various functions
  • the processor is configured to invoke program data stored in the memory, and perform the following operations: dividing other nodes in the predetermined node range except the source node by the boundary node into four independent regions. Demarcation nodes are divided into one of two regions bounded by the boundary node, and the horizontal distance and the vertical distance of the boundary node to the source node are equal;
  • the region when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
  • the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node
  • the coordinates are positive, and the first node is the new source node to perform the following operations:
  • A when the new source node is only one destination node in the area, ending data transmission to the area;
  • B when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is positive in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node acts as a new source node, and jumps to step A; otherwise, does not perform any node in the region that has the same Y coordinate and the X coordinate is positive with the new source node. operating;
  • step D when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
  • the processor invokes program data in the memory to divide the source node within a predetermined node range
  • Other nodes other than the boundary node are divided into four independent regions, and the boundary node is divided into two regions in which the boundary node is bounded by the source node In the area of the destination node that receives the data.
  • both areas bounded by the demarcation node include a destination node that needs to receive data from the source node
  • the processor invokes program data in the memory to exclude a source node from a predetermined node range.
  • the other nodes are divided into four independent regions by the boundary nodes, and the boundary nodes are divided into any one of two regions bounded by the boundary nodes.
  • both areas bounded by the demarcation node include a destination node that needs to receive data from the source node
  • the processor invokes program data in the memory to exclude a source node from a predetermined node range.
  • the other nodes, divided by the boundary node are divided into four independent regions, and the boundary nodes are divided into regions in the two regions bounded by the boundary nodes that have already included other boundary nodes.
  • the processor does not invoke program data in the memory to perform the region data transmission.
  • a fourth aspect of the invention provides a computer storage medium, characterized in that the computer storage medium can store a program, which can include some or all of the steps of the method of the invention when executed by the program.
  • other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into In one of the two regions in which the boundary node is bounded, the horizontal distance and the vertical distance of the boundary node to the source node are equal; for each of the four independent regions, when the region includes When the destination node transmits data from the source node to the region directly with the source node The point is connected to the first node, the current node is a node that needs to receive data from the source node; the source node is set as the origin, and the axis of the source node and the first node is the Y axis.
  • the following operation is performed with the first node as the new source node: A, when the new When the source node is only one destination node in the area, end data transmission to the area; B, when there is a Y coordinate with the new source node and the X coordinate is positive in the area At the destination node, data is transmitted from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then the X coordinate is positive in the region with the Y axis as the boundary.
  • the node is divided into a new area, and within the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, The Y coordinate of the new source node in the region is the same and X The node marked as positive does not perform any operation; C, when there is a destination node in the area that has the same Y coordinate of the new source node and the X coordinate is negative, data is transmitted from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then divides all nodes in the region whose X coordinate is negative into a new region with the Y axis as a boundary, and within the new region And the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, the Y coordinate of the new source node in the area is the same And the node whose X coordinate
  • Node as a new source node jump to step A. Since the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is simpler. Single. At the same time, in the embodiment of the present invention, when four regions are divided, the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node. Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources. DRAWINGS
  • FIG. 1 is a schematic diagram of area division centered on a source node in a Mesh structure in the prior art
  • FIG. 2 is a schematic flow diagram of an embodiment of a point-to-multipoint communication method based on a Mesh structure according to the present invention
  • FIG. 3 is a schematic diagram showing the principle of region division centered on a source node in the next embodiment of the Mesh structure in the present invention.
  • FIG. 4 is a schematic diagram showing the result of region division centered on a source node in the next embodiment of the Mesh structure in the present invention.
  • FIG. 5 is a schematic diagram showing the result of region division centered on a source node according to another embodiment of the Mesh structure in the present invention.
  • FIG. 6 is a schematic diagram of a process transmission path of data transmission in the present invention.
  • FIG. 7 is a schematic diagram of another process transmission path of data transmission in the present invention.
  • FIG. 8 is a schematic diagram of another process transmission path of data transmission in the present invention.
  • FIG. 9 is a schematic diagram of a complete data transmission path according to an embodiment of a communication method according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a complete data transmission path of an embodiment of a prior art RMP communication method;
  • FIG. 11 is a schematic structural diagram of an embodiment of a communication node according to the present invention
  • FIG. 12 is a schematic structural diagram of another embodiment of a communication node according to the present invention. Specific embodiment
  • other nodes except the source node in the predetermined node range are divided into four independent regions by using the boundary node, and the boundary node is divided into the demarcation node.
  • the horizontal distance and the vertical distance of the boundary node to the source node are equal; for each of the four independent regions, when the region includes the destination node, Transmitting data from the source node to the area and directly connecting the first node to the source node, where the current node is a node that needs to receive data from the source node; setting the source node as an origin, The axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and a Y coordinate of the first node is positive, and the first The node performs the following operations for the new source node: A, when the new source node is only a destination node
  • step A when the region exists and When the new source node has the same Y coordinate and the X coordinate is negative, the data is transmitted from the new source node to the node whose X coordinate is negative and directly connected to the new source node, and then the Y axis
  • all nodes in the region whose X coordinate is negative are divided into a new region, and within the new region, a node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, the Y coordinate of the new source node in the region is the same and the
  • the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is simpler.
  • the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node.
  • Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources.
  • FIG. 2 is a flow chart showing an embodiment of a point-to-multipoint communication method based on a Mesh wireless mesh network structure according to the present invention. As shown in FIG. 2, it may include:
  • Step S110 dividing other nodes except the source node in the predetermined node range by the boundary node into four independent regions, where the boundary node is divided into two regions bounded by the boundary node. In one area, the horizontal distance and the vertical distance of the boundary node to the source node are equal.
  • the outermost rectangular area is a predetermined node range based on the Mesh structure of the present invention, and in the outermost rectangular area, the black circle is the source node, that is, the node a in FIG. 3, which has a diagonal line.
  • the circle is the destination node, including node 1), node d, node n, node h, node i, node 1, node p, and the circle through which the dotted line passes is a demarcation node, including node 6, node g, node j,
  • the node o, the node t, and the node m in the embodiment of the present invention, the node other than the source node in the predetermined node range by the cross line formed by the node 6, the node g, the node j, the node o, the node t, and the node m Divided into four independent regions, namely, region 1, region 2, region 3, and region 4, wherein the boundary node 6, node g, node j, node o, node t, and node m can be divided into the boundaries
  • the node is in one of the two regions bounded by the node.
  • the node e can be divided into the area 1 or the area 2
  • the node g can be divided into the area 2 or the area 3
  • the node o can be divided into the area 3 or the area 4
  • the node m can be divided into In area 4 or area 1.
  • the boundary node is divided into the The boundary node is a region of the two regions that are bounded by a destination node that needs to receive data from the source node.
  • the node m is a boundary node of the area 1 and the area 4, wherein the area 1 includes the destination node b, and the area 4 does not include the destination node. Therefore, as an implementation manner, In the embodiment of the invention, when the area is divided for the node m, the node m can be divided into the area 1. Based on the same division rule, node 0 and node t are divided into area 3.
  • the boundary node when two regions bounded by the boundary node include a destination node that needs to receive data from the source node, the boundary node is divided into the boundary The node is in any of the two regions bounded by the node.
  • the node c is a boundary node of the area 1 and the area 2, wherein the area 1 includes the destination node b, and the area 2 includes the destination node d and the destination node h. Therefore, as an embodiment, in the embodiment of the present invention, when the area is divided for the node c, the node c can be divided into any one of the area 1 and the area 2 (in FIG.
  • the area is divided into the area 2 as a legend).
  • the node g and the node j can also be divided into any one of the area 2 or the area 3 (in FIG. 4, the division into the area 3 is a legend;).
  • the boundary node is divided into The boundary nodes are bounded by two regions in the region that already have other demarcation nodes. For example, referring to FIG.
  • the destination node is not included in the region 3 and the region 4 in which the node 0 and the node t are demarcation nodes, and the node 0 has been divided into the region 3, and the node t is also divided into the region 3. To maintain the unity of the two.
  • Step S111 for each area of the four independent areas, when the area includes a destination node, transmitting data from the source node to the area and directly connecting the first node to the source node,
  • the node is currently a node that needs to receive data from the source node.
  • the destination node b is included in the area 1, and in step Sill, the data can be transmitted from the source node a to the first node b in the area 1 directly connected to the source node a.
  • the destination nodes d and h are included in the area 2, and therefore, in step S111, data can be transmitted from the source node a to the first node e in the area 2 directly connected to the source node a.
  • the area 3 includes the destination node, the destination node 1 and the destination node i, and in step Sill, data can be transmitted from the source node a to the first directly connected to the source node a in the area 3. Node k.
  • Step S112 setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, the first If the Y coordinate of the node is positive, then the first node is the new source node.
  • the source node a is set as the origin
  • the axis of the source node a and the first node b is the Y axis
  • the axis passing through the origin a and perpendicular to the Y axis is the X axis.
  • the coordinate system is as shown in FIG. 6, wherein the Y coordinate of the first node b is positive.
  • the source node a is set as the origin, the source node a and the first
  • the axis of the node e is the Y axis
  • the axis passing through the origin a and perpendicular to the ⁇ axis is the X axis
  • the coordinate system presented is as shown in FIG. 7 , wherein the ⁇ coordinate of the first node e is positive. .
  • the source node a is set as the origin
  • the axis of the source node a and the first node k is the Y axis
  • the axis passing through the origin a and perpendicular to the Y axis is the X axis.
  • the coordinate system presented is as shown in Fig. 8, wherein the Y coordinate of the first node k is positive.
  • Step S113 When the new source node is only one destination node in the area, end data transmission to the area, otherwise, perform step S114 or S115.
  • Step S114 when there is a destination node in the area that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing all nodes in the region whose X coordinate is positive into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node is used as a new source node, and the process proceeds to step S113; otherwise, the node with the same Y coordinate and the positive X coordinate of the new source node in the region is not performed. Any operation.
  • step S115 when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is negative, transmitting data from the new source node to the X coordinate is negative and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is negative in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is negative and The node directly connected to the new source node is used as a new source node, and the process proceeds to step S113; otherwise, the node with the same Y coordinate and negative X coordinate in the region as the new source node does not perform any operating.
  • Step S116 after being processed by steps S114 and S115, the remaining nodes in the area are stored.
  • data is transmitted from the new source node to a node whose Y coordinate is positive and directly connected to the new source node, and the remaining nodes are divided into a new area, and in the new area range Then, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and the process proceeds to step S113.
  • the data is transmitted from the source node a to the area and directly connected to the source node by the first node b (the transmission path is as shown in the figure In the step S112, with the origin of the source node a, the axis of the source node and the first node b is the Y axis, and the axis passing through the origin a and perpendicular to the Y axis is X.
  • the axis, and setting the Y coordinate of the first node b to be positive (Y+ direction in FIG.
  • step S113 is executed to end the data transmission to the area 1.
  • step S112 step S113 is executed to end the data transmission to the area 1.
  • step S111 data is transmitted from the source node a to the area 2 and directly connected to the source node a.
  • a node e (the transmission path is as shown by the arrow pointing to the node e in the node a ); and the source node a is taken as the origin, and the axis of the source node a and the first node e is the Y axis.
  • the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in Fig.
  • step S113 the node e is the new source node because the node e It is not the destination node in the area 2 that receives the data, and therefore step S113 is not performed.
  • step S113 there is no destination node in the region 2 that has the same Y coordinate of the new source node e and the X coordinate is positive, and actually, the region 2 is fundamental.
  • step S114 There is no node having the same Y coordinate as the new source point e and the X coordinate is positive, and therefore, no processing can be performed in step S114.
  • step S115 the new source node e in the region 2 is The node c having the same Y coordinate and the negative X coordinate does not perform any operation, so the node c is not divided into any of the area blocks in FIG.
  • step S116 is performed to The new source node e is transmitted to the node f whose positive Y coordinate is directly connected to the new source node e, and the remaining nodes (node d, node f, and node h) are divided into a new area 22, and The node f whose positive Y coordinate is positive and directly connected to the new source node e is regarded as a new source node, and within the range of the region 22, the process proceeds to step S113.
  • Step S115 is performed to transfer data from the new source node f to the node d whose X coordinate is negative and directly connected to the new source node f, and then bordered by the Y axis (the node e and in FIG.
  • f is the axis
  • all nodes in the region whose X coordinate is negative are divided into a new region 222 (which may also not include the boundary node), and within the range of the new region 222, the X coordinate is negative and
  • the node d directly connected to the new source node f serves as a new source node, and the process proceeds to step S113.
  • the new source node d is the only destination node in the area 222. Therefore, the method is in the area 222. The transfer can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node d.
  • step S111 After determining in step S111 that there is a destination node p and a destination node 1 and a destination node i in the region 3, data is transmitted from the source node a to the region 3 directly to the source.
  • the node a is connected to the first node k (the transmission path is as indicated by the arrow of the node a pointing to the node k in the figure); the source node a is taken as the origin in the step S112, the source node a and the first node k
  • the axis is the Y axis, the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in FIG. 8), and then the node k is new.
  • the source node since the node k is not the only destination node in the area 2 that receives data, step S113 is not performed.
  • the Y coordinate of the new source node e in the region 3 is the same in step S114.
  • Node 0 with positive X coordinate does not perform any operation.
  • the new source node e in the region 3 is The node g having the same Y coordinate and the negative X coordinate does not perform any operation, and therefore, in Fig. 8, the node 0 and the node g are not divided into any of the area blocks.
  • step S116 transferring data from the new source node k to node 1 whose Y coordinate is positive and directly connected to the new source node k, and the remaining nodes (node t, node p , node 1, node i, node j) is divided into a new area 32, and the node 1 whose positive Y coordinate is positive and directly connected to the new source node k is used as a new source node, and jumps within the range of area 32. Go to step S113.
  • Step S115 transmitting data from the new source node 1 to a node i whose X coordinate is negative and directly connected to the new source node 1, and then bordered with the Y axis (node a, node k in Fig.
  • the axis where node 1 is located divides all nodes in the region whose X coordinate is negative into a new region 322, and within the range of the new region 322, the X coordinate is negative and the new source
  • the node i directly connected to the node k as a new source node jumps to step S113; still referring to FIG. 8, the new source node i is the only destination node in the area 322, and therefore, the transmission of the method in the area 322 can end. therefore, It can be seen that the data is successfully transmitted from the source node a to the destination node.
  • FIG. 9 shows a complete path diagram of data transmission using the Mesh structure-based point-to-multipoint communication method according to the embodiment of the present invention
  • FIG. 10 shows data transmission using the RPM algorithm in the prior art.
  • the path passed is node a-node b-node c-node X, and the current use is
  • the path through which the technical RPM algorithm passes is the node a-node t-node V-node X, which is one more hop than the present invention.
  • the path passed It is: node a-node t-node u-node s
  • the path that the prior art RPM algorithm passes is node a-node n-node r-node s.
  • the method may further include: when, for each of the four independent areas, when the area does not include a destination node that needs to receive data from the source node, Data transmission is performed to the area (for example, area 4 in Fig. 4, area 3 and area 4 in Fig. 5).
  • other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into Wherein the boundary node is one of two regions bounded by the boundary, the horizontal distance and the vertical distance of the boundary node to the source node are equal; for each region of the four independent regions, when the region When the destination node is included, data is transmitted from the source node to the area directly
  • the source node is connected to the first node, and the current node is a node that needs to receive data from the source node; the source node is set as an origin, and the axis of the source node and the first node is Y.
  • An axis, an axis passing through the origin and perpendicular to the Y axis is an X axis, and a Y coordinate of the first node is positive, and the first node is a new source node to perform the following operations: A, When the new source node is only a destination node in the area, end the data transmission to the area; B, when the area has the same Y coordinate as the new source node and the X coordinate is a positive destination node, transmitting data from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then taking the Y axis as a boundary, and the X coordinate in the region is positive All nodes are divided into a new area, and within the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise , the Y coordinate of the new source node in the region The node with the same X
  • the node transmits to a node whose X coordinate is negative and directly connected to the new source node, and then divides all nodes in the region whose X coordinate is negative into a new region by using the Y axis as a boundary, and in the new Within the region, the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, to the new source node in the region A node having the same Y coordinate and a negative X coordinate does not perform any operation; D, when the destination node exists in the remaining nodes in the region after being processed by B and C, data is transmitted from the new source node to Y a node whose coordinates are positive and directly connected to the new source node, divides the remaining nodes into a new area, and within the new area, the Y coordinate is positive and the new source node Directly connected nodes as new source nodes, jump Go to step A.
  • the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is more For the sake of simplicity.
  • the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node.
  • Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources. Schematic diagram of functional structure and hardware structure.
  • FIG. 11 is a schematic diagram showing the functional structure of an embodiment of a communication node according to the present invention.
  • the communication node in the embodiment of the present invention may include a region dividing module 10 and a transmission module 20, where: the region dividing module 10 is configured to divide other nodes in the predetermined node range except the local node to demarcate nodes. For the boundary, it is divided into four independent regions, and the boundary node is divided into one of two regions bounded by the boundary node, and the horizontal distance and the vertical distance of the boundary node to the local node are equal.
  • the transmission module 20 is configured to, for each area of the four independent areas divided by the area dividing module 10, when the area includes the destination node, transfer data from the source node to the area directly to the source
  • the node is connected to the first node, and the current node is a node that needs to receive data from the source node; the source node is set as the origin, and the axis of the source node and the first node is the Y axis.
  • the following operation is performed with the first node as a new source node: A, when the new When the source node is only one destination node in the area, end data transmission to the area; B, when there is a Y coordinate with the new source node and the X coordinate is positive in the area At the destination node, data is transmitted from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then the X coordinate is positive in the region with the Y axis as the boundary.
  • the node is divided into a new area, And in the range of the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, the area is
  • the nodes of the new source node having the same Y coordinate and the positive X coordinate do not perform any operation; C, when there is a destination node in the region that has the same Y coordinate and the X coordinate is negative, Data is transmitted from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then the Y-axis is bounded, and all nodes in the region whose X coordinate is negative are divided into a new one.
  • the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, The nodes of the new source node having the same Y coordinate and the negative X coordinate do not perform any operation; D, when the destination node exists in the remaining nodes in the region after being processed by B and C, the data is from the The new source node is transmitted to the Y coordinate is positive and with the new a node directly connected to the source node, dividing the remaining node into a new area, and in the range of the new area, using the node whose Y coordinate is positive and directly connected to the new source node as a new source Node, jump to step A.
  • the outermost rectangular area is a predetermined node range based on the Mesh structure of the present invention, and in the outermost rectangular area, the black circle is the source node, that is, the node a in FIG. 3, which has a diagonal line.
  • the circle is the destination node, including node 1), node d, node n, node h, node i, node 1, node p, and the circle through which the dotted line passes is a demarcation node, including node 6, node g, node j, node o , the node t, and the node m
  • the area dividing module 10 of the node a of the embodiment of the present invention may first set the predetermined node range by the cross line formed by the node e, the node g, the node j, the node o, the node t, and the node m
  • Nodes other than the source node are divided into four independent regions, namely, region 1, region 2, region 3, and region 4, where demarcation node 6, node g, node j, node o, node t, and node m may be divided into one of two regions bounded by the boundary node In the domain.
  • the node e can be divided into the area 1 or the area 2
  • the node g can be divided into the area 2 or the area 3
  • the node o can be divided into the area 3 or the area 4
  • the node m can be divided into In area 4 or area 1.
  • the region dividing module 10 divides the boundary.
  • the node is partitioned into an area of the two areas bounded by the demarcation node that includes a destination node that needs to receive data from the source node.
  • the node m is a boundary node of the area 1 and the area 4, wherein the area 1 includes the destination node b, and the area 4 does not include the destination node.
  • the area dividing module 10 of the node a of the embodiment of the present invention divides the area for the node m
  • the node m can be divided into the area 1.
  • node 0 and node t are divided into area 3.
  • node c is a boundary node of area 1 and area 2, wherein area 1 includes a destination node b, and area 2 includes a destination node d and a destination node h. Therefore, as an embodiment, when the area dividing module 10 of the node a of the embodiment of the present invention divides the area for the node c, the node c can be divided into any one of the area 1 and the area 2 (in FIG. 4 to divide into In the area 2 is the legend ;). Based on the same division rule, the node g and the node j can also be divided into any one of the area 2 or the area 3 (in FIG. 4, the division into the area 3 is a legend).
  • the region dividing module 10 when two destinations bounded by the boundary node do not include a destination node that needs to receive data from the source node, the region dividing module 10 The demarcation node is divided into regions in the two regions bounded by the demarcation node that have already included other demarcation nodes. For example, referring to FIG. 5, the destination node is not included in the region 3 and the region 4 in which the node 0 and the node t are demarcation nodes, and the node 0 has been divided into the region 3, and the node t is also divided into the region 3. In order to maintain the unity of the two.
  • the transmission module 20 determines that there is the destination node b
  • the data is transmitted from the source node a to the area and directly connected to the source node by the first node b (the transmission path is as shown in the figure And the origin of the source node a, the axis of the source node and the first node b is the Y axis, and the axis passing through the origin a and perpendicular to the Y axis is the X axis, and After setting the Y coordinate of the first node b to be positive (Y+ direction in FIG.
  • b is a new source node, and since node b is only one of the regions 1, it needs to receive from the source node a.
  • the transmission module performs step A to end the data transmission to the area 1. Referring to Figure 6, it has been shown that data has been successfully transmitted to the destination node in Area 1 by embodiments of the present invention.
  • a node e (the transmission path is as shown by the arrow pointing to the node e in the node a ); and the source node a is taken as the origin, and the axis of the source node a and the first node e is the Y axis.
  • the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in Fig.
  • Step 8 is not performed.
  • the transmission module 20 pairs the new source in the region 2.
  • step D Data is transmitted from the new source node e to a node f having a positive Y coordinate and directly connected to the new source node e, dividing the remaining nodes (node d, node f, and node h) into a new region 22
  • the transmission module 20 jumps to step A.
  • Step 20 is performed to transfer data from the new source node f to a node h whose X coordinate is positive and directly connected to the new source node f, and then bounded by the Y axis (node e in FIG.
  • f is the axis
  • all nodes in the region whose X coordinate is positive are divided into a new region 221 (excluding the boundary node), and within the range of the new region 221, the X coordinate is positive and
  • the new source node f is directly connected to the node h as a new source node, and the transmission module 20 jumps to step A; further, since the new source node h is the only destination node in the area 221, the method is in the area 221 The transfer can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node h.
  • step C transferring data from the new source node f to a negative X coordinate
  • the node d directly connected to the new source node f is then bounded by the Y axis (the axis where the nodes e and f are located in FIG. 7), and all nodes in the region whose X coordinate is negative are divided into a new one.
  • the area 222 (which may also not include the boundary node), and within the range of the new area 222, the node d which is negative in the X coordinate and directly connected to the new source node f is used as a new source node, and jumps to Step A; Still referring to FIG. 7, the new source node d is the only destination node in region 222, so the transmission of the method in region 222 can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node d.
  • the node a is connected to the first node k (the transmission path is as indicated by the arrow of the node a pointing to the node k in the figure); and the source node a is taken as the origin, and the axis of the source node a and the first node k are located
  • the axis passing through the origin and perpendicular to the Y axis is the X axis
  • the Y coordinate of the first node is set to be positive (Y+ direction in Fig. 8)
  • the node k is the new source node. Since the node k is not the only destination node in the area 2 that receives data, the transmission module 20 does not perform step A.
  • the transmission module 20 in step B is in the region 3 with the new source node e. Node 0 with the same Y coordinate and positive X coordinate does not perform any operation.
  • the transmission module 20 in step C the new source is in the region 3
  • the node g whose node Y has the same Y coordinate and the X coordinate is negative does not perform any operation, and therefore node 0 and node g are not divided into any area block in FIG.
  • the transmission module 20 performs step D, transmitting data from the new source node k to the Y coordinate being positive and with the new
  • the node 1 directly connected to the source node k divides the remaining nodes (node t, node p, node 1, node i, node j) into a new region 32, and the Y coordinate is positive and the new source node Node 1 directly connected to k acts as a new source node, and within the range of area 32, jumps to step A.
  • Step C transmitting data from the new source node 1 to a node i whose X coordinate is negative and directly connected to the new source node 1, and then bordered with the Y axis (node a, node k in Fig.
  • the axis where node 1 is located divides all nodes in the region whose X coordinate is negative into a new region 322, and within the range of the new region 322, the X coordinate is negative and the new source
  • the node i directly connected to the node k as a new source node jumps to step A; still referring to FIG. 8, the new source node i is the only destination node in the area 322, and therefore, the transmission of the method in the area 322 can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node.
  • the transmission module 20 of each source node is further configured to: when each area of the four independent areas is received, when the area does not include receiving from the source node When the destination node of the data is not transmitted to the area.
  • the region dividing module 10 divides other nodes except the source node in the predetermined node range by the boundary node, and divides into four independent regions, and the boundary is divided.
  • the node is divided into one of two regions bounded by the boundary node, the horizontal distance and the vertical distance of the boundary node to the source node being equal; the transmission module 20 is for each of the four independent regions
  • the area includes the destination node, the data is transmitted from the source node to the area, and the first node is directly connected to the source node, where the current node needs to receive data from the source node.
  • a node is set to take the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, the first node If the Y coordinate is positive, the following operation is performed by using the first node as a new source node: A, when the new source node is only a destination node in the area, ending the area Data transmission; B, when there is a destination node in the area that has the same Y coordinate as the new source node and the X coordinate is positive, the data is transmitted from the new source node to the X coordinate is positive and Describe the nodes directly connected to the new source node, and then divide all nodes in the region whose X coordinate is positive into a new region with the Y axis as the boundary, and within the new region, the X coordinate is The node directly connected to the new source node acts as a new source node, and
  • the data is transmitted from the new source node to the X coordinate is negative and Directly with the new source node Connected nodes, then with the Y-axis as a boundary, divide all nodes in the region whose X coordinate is negative into a new region, and within the new region, the X coordinate is negative and the new
  • the node directly connected to the source node acts as a new source node, and jumps to step ⁇ ; otherwise, no operation is performed on the node in the region that has the same ⁇ coordinate and negative X coordinate as the new source node;
  • the destination node exists in the remaining nodes in the area after being processed by ⁇ and C, data is transmitted from the new source node to a node whose ⁇ coordinate is positive and directly connected to the new source node, The remaining nodes are divided into a new area, and within the new area, the node whose coordinates are positive and directly connected to the new source node
  • the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is simpler.
  • the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node.
  • Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources.
  • the embodiment of the present invention further discloses a communication node, and the specific structure thereof is shown in FIG. 12.
  • the communication node in this embodiment may be a node in the Mesh wireless mesh network structure.
  • the structural embodiment of the communication node in the embodiment of the present invention is exemplified in the following with reference to the accompanying drawings.
  • the communication node in this embodiment may include an input device 121, an output device 122, a communication link 123, a transceiver device 124, a memory 125, and a processor 126, where: the input device 121 is used.
  • the input data of the communication node is externally received.
  • the input device 81 according to the embodiment of the present invention may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
  • the output device 122 is configured to output output data of the communication node to the outside.
  • the output device 82 described in the embodiments of the present invention may include a display, a speaker, a printer, and the like.
  • the communication link 123 is configured to establish a communication connection between the communication node and other nodes of the Mesh wireless mesh network structure.
  • the communication link 83 described in the embodiment of the present invention may be an example of a propagation medium.
  • the propagation medium can generally embody computer readable instructions, data structures, program modules or other data in the form of a modulated data signal (such as a carrier wave or other transport mechanism).
  • the propagation medium can include wired media, such as a priority network or In a straight line connection, the propagation medium may also include a wireless medium such as sound waves, radio frequency, infrared light, and the like.
  • the transceiver device 124 is configured to communicate with other nodes in the Mesh network through the communication link 123, for example, to send and receive data.
  • the transceiver device 84 can be a transceiver device such as an antenna.
  • the memory 125 is configured to store program data with various functions.
  • the memory 84 of an embodiment of the present invention may be a system memory, such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of both.
  • the memory 125 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
  • the processor 126 is configured to invoke program data stored in the memory 125, and perform the following operations:
  • Other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into one of two regions bounded by the boundary node.
  • the horizontal distance and the vertical distance of the boundary node to the source node are equal;
  • the region when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
  • Setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node
  • the coordinates are positive, and the first node is the new source node to perform the following operations:
  • step D when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
  • the processor 126 invokes program data in the memory 125 to divide other nodes in the predetermined node range except the source node by a boundary node.
  • the demarcation node is divided into regions of the two regions bounded by the demarcation node including destination nodes that need to receive data from the source node.
  • the processor 126 invokes program data in the memory 125.
  • the boundary node is divided into any two regions bounded by the boundary node. In the area.
  • the processor 126 invokes program data in the memory 125.
  • the boundary node is divided into two regions including the boundary node and other boundaries are included. In the area of the node.
  • the processor 126 does not invoke the memory 125 when the region does not include a destination node that needs to receive data from the source node. Program data in to transfer data to the area.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium can store a program, and the program can execute some or all of the steps of the method according to the embodiment of the present invention.
  • the computer storage medium of the embodiment of the present invention includes: RAM, ROM, EEPROM, flash memory, CD-ROM, DVD or other optical storage, magnetic tape, magnetic disk or other magnetic storage, or any other information that can be used for storing information.
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM Compact Disk Read Only Memory
  • DVD digital versatile discs
  • magnetic tape magnetic tape
  • magnetic disk or other magnetic storage or any other information that can be used for storing information.
  • a medium that can be accessed by a computer device It is apparent that the f-port variants do not depart from the spirit and scope of the invention. Therefore, it is intended that the present invention cover the modifications and variations of the invention, and the modifications and variations of the invention are intended to be included.

Landscapes

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

Abstract

Provided are a Point-to-Multipoint communication method and a communication node. The method includes that: other nodes in a preset node range except a source node are divided into four independent regions with a boundary node as the boundary; for each region of the four independent regions, when a destination node which needs to receive data from the source node is included, the data are transmitted hop-by-hop according to a long-side priority principle. System resources can be saved by the use of the embodiments of present invention.

Description

基于 Mesh结构的点对多点通信方法及通信节点 技术领域  Point-to-multipoint communication method and communication node based on Mesh structure
本发明涉及通信领域, 特别涉及一种基于 Mesh结构的点对多点通信方法 及通信节点。 背景技术  The present invention relates to the field of communications, and in particular, to a point-to-multipoint communication method and a communication node based on a Mesh structure. Background technique
片上网络(Networks On Chip, NoC )正成为众核系统的发展趋势。 当前 片上众核系统比如 Teraflop 80核和 Tilera 64核都是通过有线网格网络(比如, 2D-mesh )结构互连。 支持单点对多点信息传输的 NoC在多样性的应用领域和 程序建模等方面有很大的潜能。 目前, 针对点对所有点(broadcast )的传输方 法比较多, 而针对点对多点的传输方法却很少, 现有技术基于 Mesh结构的点 对多点的传输方法是递归分片单点对多点传输方法 ( Recursive Partitioning Multicast, RPM ), 该方法的主要思路如下:  Networks On Chip (NoC) is becoming a trend in many nuclear systems. Current on-chip many-core systems such as the Teraflop 80 core and the Tilera 64 core are interconnected via a wired mesh network (eg, 2D-mesh). NoC, which supports single-point to multi-point information transmission, has great potential in diverse application areas and program modeling. At present, there are many transmission methods for all pairs of points, but there are few transmission methods for point-to-multipoint. The point-to-multipoint transmission method based on Mesh structure in the prior art is a recursive slice single point pair. Recursive Partitioning Multicast (RPM), the main ideas of this method are as follows:
如图 1所示,从源节点(图 1中黑色的圓圈)开始按照正上、正下、正左、 正右及左上、 左下、 右上、 右下分为 8个初始区域, 分别编号为 0-7 (图 1中 的 8个虚线框), 将上述 8个区域按区域 1和区域 0、 区域 2和区域 3、 区域 4 和区域 5、区域 6和区域 7分组,判断分组后的各区域的目的节点的分布情况, 以区域 0和区域 1为例, 判断区域 0和区域 1中的目的节点的分布情况, 当区 域 1中有目的节点时,数据传输给区域 1中直接和源节点相连的节点, 并通过 直接和源节点相连的节点逐跳传到对应的目的节点, 比如,对于区域 1中的目 的节点 c (图中有斜线的圓圈), 可将数据从源节点 a先传输给区域 1 中与源 节点 a相连的节点 b, 再由 b逐跳传到目的节点 c。 而对于区域 0中的目的节 点, 则重新以区域 1中与源节点相连的已接收到数据的节点为新的源节点, 以 区域 0和区域 1作为新的区域范围划分区域和进行数据传输,这样区域 0的目 的节点的数据传输路径必然经过区域 1中的节点, 对于区域 2和区域 3、 区域 4和区域 5、 区域 6和区域 7依次进行区域 0和区域 1相同的操作。 由该现有 技术可知, RPM的方法需要将 Mesh结构中的节点划分为 8个区域,算法过于 复杂, 并且, 该现有技术并未考虑如何降低传输延时的问题。 发明内容 As shown in Figure 1, starting from the source node (the black circle in Figure 1), there are 8 initial regions, which are numbered 0, respectively, in the up, down, right, right, and top left, bottom left, top right, and bottom right. -7 (8 dotted lines in Fig. 1), the above 8 areas are grouped by area 1 and area 0, area 2 and area 3, area 4 and area 5, area 6 and area 7, and the grouped areas are judged. The distribution of the destination node, with region 0 and region 1 as an example, determine the distribution of the destination node in region 0 and region 1. When there is a destination node in region 1, the data is transmitted to region 1 and directly connected to the source node. The node is hop-by-hop to the corresponding destination node through the node directly connected to the source node. For example, for the destination node c in the area 1 (the circle with a slash in the figure), the data can be transmitted from the source node a first. Give area 1 with source The node b to which the node a is connected is then hop-by-hop to the destination node c. For the destination node in the area 0, the node that has received the data connected to the source node in the area 1 is the new source node, and the area 0 and the area 1 are used as the new area range to divide the area and perform data transmission. Thus, the data transmission path of the destination node of the area 0 necessarily passes through the node in the area 1, and the same operation of the area 0 and the area 1 is sequentially performed for the area 2 and the area 3, the area 4, and the area 5, the area 6, and the area 7. It can be known from the prior art that the RPM method needs to divide the nodes in the Mesh structure into eight regions, and the algorithm is too complicated, and the prior art does not consider how to reduce the transmission delay. Summary of the invention
鉴于此,本发明提供一种基于 Mesh结构的点对多点通信方法及通信节点, 其实现简单,并且可减少数据传输链路,节省系统资源,以及可降低传输时延。  In view of this, the present invention provides a point-to-multipoint communication method and a communication node based on a Mesh structure, which is simple in implementation, can reduce a data transmission link, save system resources, and can reduce transmission delay.
本发明第一方面提供一种基于 Mesh无线网格网路结构的点对多点通信方 法, 其可包括:  A first aspect of the present invention provides a point-to-multipoint communication method based on a Mesh wireless mesh network structure, which may include:
将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域,所述分界节点划分到以所述分界节点为界的两个区域中的其中一 个区域中, 所述分界节点到所述源节点的水平距离和垂直距离相等;  Other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into one of two regions bounded by the boundary node. The horizontal distance and the vertical distance of the boundary node to the source node are equal;
针对所述四个独立区域的每个区域, 当所述区域包括目的节点时, 将数据 从所述源节点传给所述区域直接与所述源节点相连第一个节点,所述目前节点 为需从所述源节点接收数据的节点;  For each of the four independent regions, when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y 轴,经过所述原点且与 Y轴垂直的轴为 X轴,所述第一个节点的 Y坐标为正, 则以所述第一个节点为新的源节点执行如下操作: A, 当所述新的源节点为所述区域中唯——个目的节点时, 结束对所述区 域的数据传输; Setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node If the coordinates are positive, perform the following operations with the first node as the new source node: A, when the new source node is only one destination node in the area, ending data transmission to the area;
B,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为正的目 的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作; B, when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is positive in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node acts as a new source node, and jumps to step A; otherwise, does not perform any node in the region that has the same Y coordinate and the X coordinate is positive with the new source node. operating;
C,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负的目 的节点时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为负的节点不进行任何操作;C, when there is a destination node in the region that has the same Y coordinate as the new source node and the X coordinate is negative, transmitting data from the new source node to the X coordinate is negative and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is negative in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is negative and The node directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, no node with the same Y coordinate and negative X coordinate in the region as the new source node does not perform any operating;
D, 当经 B和 C处理后, 所述区域中剩余的节点中存在目的节点时, 将数 据从所述新的源节点传输到 Y坐标为正且与所述新的源节点直接相连的节点, 将剩余的节点划分为一个新区域, 并在所述新区域范围内, 将所述 Y坐标为 正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 D, when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
结合第一方面, 在第一种可行的实施方式中,  In combination with the first aspect, in a first possible implementation manner,
当以所述分界节点为界的两个区域的其中一个区域包括有需从所述源节 点接收数据的目的节点,将预定节点范围内除源节点之外的其他节点, 以分界 节点为界, 划分为四个独立区域时, 所述分界节点划分到所述以所述分界节点 为界的两个区域中的包括有需从所述源节点接收数据的目的节点的区域中。 结合第一方面, 在第二种可行的实施方式中, When one of the two regions bounded by the demarcation node includes a destination node that needs to receive data from the source node, other nodes except the source node in the predetermined node range are bounded by the demarcation node. When divided into four independent regions, the boundary node is divided into the demarcation node Among the two regions of the boundary are included in the region of the destination node that needs to receive data from the source node. In combination with the first aspect, in a second possible implementation manner,
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点, 将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时,所述分界节点划分到以所述分界节点为界的两个区域 中的任意一个区域中。  When two regions bounded by the boundary node include a destination node that needs to receive data from the source node, the other nodes except the source node in the predetermined node range are bounded by the boundary node as In the case of four independent regions, the boundary node is divided into any one of two regions bounded by the boundary node.
结合第一方面, 在第三种可行的实施方式中,  In combination with the first aspect, in a third possible implementation manner,
将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域时, 当以所述分界节点为界的两个区域中均不包括有需从所述源节 点接收数据的目的节点,则将分界节点划分到以所述分界节点为界的两个区域 中已经包括有其他分界节点的区域中。  When other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, when the two regions bounded by the boundary node are not included, the source is not included. The node receives the destination node of the data, and then divides the demarcation node into an area in which two other nodes are already included in the two areas bounded by the demarcation node.
结合第一方面至第一方面的第三种可行的实施方式中任一种,在第四种可 行的实施方式中,  In combination with the first aspect to any of the third possible embodiments of the first aspect, in a fourth possible embodiment,
针对所述四个独立区域的每个区域,当所述区域不包括需从所述源节点接 收数据的目的节点时, 不向所述区域进行数据传输。  For each of the four independent regions, when the region does not include a destination node that needs to receive data from the source node, no data transmission is performed to the region.
本发明第二方面提供一种通信节点,为 Mesh无线网格网路结构中的节点, 其可包括:  A second aspect of the present invention provides a communication node, which is a node in a Mesh wireless mesh network structure, which may include:
区域划分模块, 用于将预定节点范围内除本节点之外的其他节点, 以分界 节点为界, 划分为四个独立区域, 所述分界节点划分到以所述分界节点为界的 两个区域中的其中一个区域中,所述分界节点到本节点的水平距离和垂直距离 相等;  a region dividing module, configured to divide other nodes except the local node in the predetermined node range by a boundary node, into four independent regions, where the boundary node is divided into two regions bounded by the boundary node In one of the regions, the horizontal distance and the vertical distance of the boundary node to the node are equal;
传输模块, 用于针对所述四个独立区域的每个区域, 当所述区域包括目的 节点时, 将数据从所述源节点传给所述区域直接与所述源节点相连第一个节 点, 所述目前节点为需从所述源节点接收数据的节点; 设定以所述源节点为原 点, 所述源节点和所述第一个节点所在轴线为 Y轴, 经过所述原点且与 Y轴 垂直的轴为 X轴, 所述第一个节点的 Y坐标为正, 则以所述第一个节点为新 的源节点执行如下操作: A, 当所述新的源节点为所述区域中唯——个目的节 点时, 结束对所述区域的数据传输; B, 当所述区域中存在与所述新的源节点 的 Y坐标相同且 X坐标为正的目的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点直接相连的节点, 然后以 Y轴为边界, 将所 述区域中 X坐标为正的所有节点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳 转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标 为正的节点不进行任何操作; C, 当所述区域中存在与所述新的源节点的 Y坐 标相同且 X坐标为负的目的节点时, 将数据从所述新的源节点传输到 X坐标 为负且与所述新的源节点直接相连的节点, 然后以 Y轴为边界, 将所述区域 中 X坐标为负的所有节点划分为一个新区域, 并在所述新区域范围内, 将所 述 X坐标为负且与所述新的源节点直接相连的节点作为新的源节点, 跳转到 步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标为负 的节点不进行任何操作; D, 当经 B和 C处理后, 所述区域中剩余的节点中存 在目的节点时, 将数据从所述新的源节点传输到 Y坐标为正且与所述新的源 节点直接相连的节点,将剩余的节点划分为一个新区域, 并在所述新区域范围 内, 将所述 Y坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 结合第二方面, 在第一种可行的实施方式中, a transmission module, configured to target each of the four independent regions, when the region includes a destination a node, the data is transmitted from the source node to the area, and the source node is directly connected to the first node, where the current node is a node that needs to receive data from the source node; For the origin, the axis of the source node and the first node is the Y axis, and the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is positive, The first node performs the following operations for the new source node: A, when the new source node is only one destination node in the area, ending data transmission to the area; B, when When there is a destination node in the region that has the same Y coordinate and the X coordinate is positive, the data is transmitted from the new source node to the X coordinate is positive and directly connected to the new source node. a node, then dividing the nodes whose X coordinate is positive in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and the new source Node directly connected to the node as a new source node, jump to Step A; otherwise, no operation is performed on the node in the region that has the same Y coordinate as the new source node and the X coordinate is positive; C, when there is a Y with the new source node in the region When the destination node has the same coordinates and the X coordinate is negative, data is transmitted from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then the Y axis is bounded, and the All nodes in the region whose X coordinate is negative are divided into a new region, and within the new region, the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps Go to step A; otherwise, do not perform any operation on the node in the region that has the same Y coordinate as the new source node and the X coordinate is negative; D, after processing by B and C, the remaining in the region When there is a destination node in the node, data is transmitted from the new source node to a node whose Y coordinate is positive and directly connected to the new source node, and the remaining nodes are divided into a new area, and Within the new area, the Y coordinate is positive and The new source node directly connected as a new source node, proceeds to step A. In conjunction with the second aspect, in a first possible implementation manner,
当以所述分界节点为界的两个区域的其中一个区域包括有需从所述源节 点接收数据的目的节点, 所述区域划分模块具体用于,将预定节点范围内除源 节点之外的其他节点, 以分界节点为界, 划分为四个独立区域, 并且所述分界 节点划分到以所述分界节点为界的两个区域中的包括有需从所述源节点接收 数据的目的节点的区域中。  When the one of the two areas bounded by the demarcation node includes a destination node that needs to receive data from the source node, the area division module is specifically configured to: The other nodes are divided into four independent regions by a boundary node, and the boundary node is divided into two destinations that are bounded by the boundary node and includes a destination node that needs to receive data from the source node. In the area.
结合第二方面, 在第二种可行的实施方式中,  In combination with the second aspect, in a second possible implementation manner,
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点时, 所述区域划分模块具体用于,将预定节点范围内除源节点之外 的其他节点, 以分界节点为界, 划分为四个独立区域, 并且所述分界节点划分 到以所述分界节点为界的两个区域中的任意一个区域中。  When the two regions that are bounded by the demarcation node include a destination node that needs to receive data from the source node, the region dividing module is specifically configured to: A node, bounded by a boundary node, is divided into four independent regions, and the boundary node is divided into any one of two regions bounded by the boundary node.
结合第二方面, 在第三种可行的实施方式中,  In combination with the second aspect, in a third possible implementation manner,
当以所述分界节点为界的两个区域中均不包括有需从所述源节点接收数 据的目的节点, 所述区域划分模块具体用于,将预定节点范围内除源节点之外 的其他节点, 以分界节点为界, 划分为四个独立区域, 并且所述分界节点划分 到以所述分界节点为界的两个区域中已经包括有其他分界节点的区域中。  A destination node that needs to receive data from the source node is not included in the two areas bounded by the boundary node, and the area dividing module is specifically configured to: A node, bounded by a boundary node, is divided into four independent regions, and the boundary node is divided into regions in the two regions bounded by the boundary node that have already included other boundary nodes.
结合第二方面至第二方面的第三种可行的实施方式中任一种,在第四种可 行的实施方式中,  With reference to any one of the second aspect to the third possible embodiment of the second aspect, in a fourth possible embodiment,
所述传输模块还用于,针对所述四个独立区域的每个区域, 当所述区域不 包括需从所述源节点接收数据的目的节点时, 不向所述区域进行数据传输。 本发明第三方面提供一种通信节点,为 Mesh无线网格网路结构中的节点, 其可包括: 输入装置、 输出装置、 通信链路、 收发装置、 存储器以及处理器, 其中: The transmission module is further configured to: for each of the four independent areas, when the area does not include a destination node that needs to receive data from the source node, data transmission is not performed to the area. A third aspect of the present invention provides a communication node, which is a node in a Mesh wireless mesh network structure, which may include: an input device, an output device, a communication link, a transceiver device, a memory, and a processor, where:
所述输入装置, 用于接收外部输入到所述通信节点的输入数据;  The input device is configured to receive input data externally input to the communication node;
所述输出设备, 用于对外输出所述通信节点的输出数据;  The output device is configured to output output data of the communication node to the outside;
所述通信链路, 用于建立所述通信节点与所述 Mesh无线网格网路结构的 其他节点的通信链路;  The communication link is configured to establish a communication link between the communication node and other nodes of the Mesh wireless mesh network structure;
所述收发装置, 用于通过所述通信链路与所述 Mesh无线网格网路结构的 其他节点进行通讯;  The transceiver device is configured to communicate with other nodes of the Mesh wireless mesh network structure through the communication link;
所述存储器, 用于存储带有各种功能的程序或非程序数据;  The memory is configured to store program or non-program data with various functions;
所述处理器, 用于调用所述存储器中存储的程序数据, 并执行如下操作: 将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域,所述分界节点划分到以所述分界节点为界的两个区域中的其中一 个区域中, 所述分界节点到所述源节点的水平距离和垂直距离相等;  The processor is configured to invoke program data stored in the memory, and perform the following operations: dividing other nodes in the predetermined node range except the source node by the boundary node into four independent regions. Demarcation nodes are divided into one of two regions bounded by the boundary node, and the horizontal distance and the vertical distance of the boundary node to the source node are equal;
针对所述四个独立区域的每个区域, 当所述区域包括目的节点时, 将数据 从所述源节点传给所述区域直接与所述源节点相连第一个节点,所述目前节点 为需从所述源节点接收数据的节点;  For each of the four independent regions, when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y 轴,经过所述原点且与 Y轴垂直的轴为 X轴,所述第一个节点的 Y坐标为正, 并以所述第一个节点为新的源节点执行如下操作:  Setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node The coordinates are positive, and the first node is the new source node to perform the following operations:
A, 当所述新的源节点为所述区域中唯——个目的节点时, 结束对所述区 域的数据传输; B,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为正的目 的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作;A, when the new source node is only one destination node in the area, ending data transmission to the area; B, when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is positive in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node acts as a new source node, and jumps to step A; otherwise, does not perform any node in the region that has the same Y coordinate and the X coordinate is positive with the new source node. operating;
C,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负的目 的节点时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为负的节点不进行任何操作;C, when there is a destination node in the region that has the same Y coordinate as the new source node and the X coordinate is negative, transmitting data from the new source node to the X coordinate is negative and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is negative in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is negative and The node directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, no node with the same Y coordinate and negative X coordinate in the region as the new source node does not perform any operating;
D, 当经 B和 C处理后, 所述区域中剩余的节点中存在目的节点时, 将数 据从所述新的源节点传输到 Y坐标为正且与所述新的源节点直接相连的节点, 将剩余的节点划分为一个新区域, 并在所述新区域范围内, 将所述 Y坐标为 正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 D, when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
结合第三方面, 在第一种可行的实施方式中,  In conjunction with the third aspect, in a first possible implementation manner,
当以所述分界节点为界的两个区域的其中一个区域包括有需从所述源节 点接收数据的目的节点,所述处理器调用所述存储器中的程序数据将预定节点 范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时, 将所述分界节点划分到所述以所述分界节点为界的两个区域中的包括有需从 所述源节点接收数据的目的节点的区域中。 结合第三方面, 在第二种可行的实施方式中, When one of the two regions bounded by the demarcation node includes a destination node that needs to receive data from the source node, the processor invokes program data in the memory to divide the source node within a predetermined node range Other nodes other than the boundary node are divided into four independent regions, and the boundary node is divided into two regions in which the boundary node is bounded by the source node In the area of the destination node that receives the data. In combination with the third aspect, in a second possible implementation manner,
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点,所述处理器调用所述存储器中的程序数据将预定节点范围内除源 节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时, 将所述分界 节点划分到以所述分界节点为界的两个区域中的任意一个区域中。  When both areas bounded by the demarcation node include a destination node that needs to receive data from the source node, the processor invokes program data in the memory to exclude a source node from a predetermined node range. The other nodes are divided into four independent regions by the boundary nodes, and the boundary nodes are divided into any one of two regions bounded by the boundary nodes.
结合第三方面, 在第三种可行的实施方式中,  In combination with the third aspect, in a third possible implementation manner,
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点,所述处理器调用所述存储器中的程序数据将预定节点范围内除源 节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时, 将分界节点 划分到以所述分界节点为界的两个区域中已经包括有其他分界节点的区域中。  When both areas bounded by the demarcation node include a destination node that needs to receive data from the source node, the processor invokes program data in the memory to exclude a source node from a predetermined node range. The other nodes, divided by the boundary node, are divided into four independent regions, and the boundary nodes are divided into regions in the two regions bounded by the boundary nodes that have already included other boundary nodes.
结合第三方面至第三方面的第三种可行的实施方式中任一种,在第四种可 行的实施方式中,  With reference to any one of the third aspect to the third possible embodiment of the third aspect, in a fourth possible embodiment,
针对所述四个独立区域的每个区域,当所述区域不包括需从所述源节点接 收数据的目的节点时,所述处理器不调用所述存储器中的程序数据来向所述区 域进行数据传输。  For each of the four independent regions, when the region does not include a destination node that needs to receive data from the source node, the processor does not invoke program data in the memory to perform the region data transmission.
本发明第四方面提供一种计算机存储介质, 其特征在于, 该计算机存储介 质可存储有程序, 给程序执行时可包括本发明所述方法的部分或全部步骤。  A fourth aspect of the invention provides a computer storage medium, characterized in that the computer storage medium can store a program, which can include some or all of the steps of the method of the invention when executed by the program.
由上可见,在本发明的一些可行的实施方式中,将预定节点范围内除源节 点之外的其他节点, 以分界节点为界, 划分为四个独立区域, 所述分界节点划 分到以所述分界节点为界的两个区域中的其中一个区域中,所述分界节点到所 述源节点的水平距离和垂直距离相等; 针对所述四个独立区域的每个区域, 当 所述区域包括目的节点时,将数据从所述源节点传给所述区域直接与所述源节 点相连第一个节点, 所述目前节点为需从所述源节点接收数据的节点; 设定以 所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y轴, 经过所 述原点且与 Y轴垂直的轴为 X轴, 所述第一个节点的 Y坐标为正, 则以所述 第一个节点为新的源节点执行如下操作: A, 当所述新的源节点为所述区域中 唯——个目的节点时, 结束对所述区域的数据传输; B, 当所述区域中存在与所 述新的源节点的 Y坐标相同且 X坐标为正的目的节点时, 将数据从所述新的 源节点传输到 X坐标为正且与所述新的源节点直接相连的节点, 然后以 Y轴 为边界, 将所述区域中 X坐标为正的所有节点划分为一个新区域, 并在所述 新区域范围内, 将所述 X坐标为正且与所述新的源节点直接相连的节点作为 新的源节点, 跳转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐 标相同且 X坐标为正的节点不进行任何操作; C, 当所述区域中存在与所述新 的源节点的 Y坐标相同且 X坐标为负的目的节点时, 将数据从所述新的源节 点传输到 X坐标为负且与所述新的源节点直接相连的节点, 然后以 Y轴为边 界, 将所述区域中 X坐标为负的所有节点划分为一个新区域, 并在所述新区 域范围内, 将所述 X坐标为负且与所述新的源节点直接相连的节点作为新的 源节点, 跳转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相 同且 X坐标为负的节点不进行任何操作; D, 当经 B和 C处理后, 所述区域 中剩余的节点中存在目的节点时, 将数据从所述新的源节点传输到 Y坐标为 正且与所述新的源节点直接相连的节点,将剩余的节点划分为一个新区域, 并 在所述新区域范围内, 将所述 Y坐标为正且与所述新的源节点直接相连的节 点作为新的源节点,跳转到步骤 A。 由于本发明实施例仅将源节点之外的节点 划分为四个独立区域, 其相对于现有技术的 8 个区域的划分实现方式更为简 单。与此同时,本发明实施例在划分四个区域时,以分界节点作为区域的边界, 在传输数据过程中实时更新源节点及基于新的源节点重新划分区域,这样的通 信方法,自然形成了长边优先传输原则 ,其可减少数据传输过程中的传输时延, 以及减少数据传输链路, 节省系统资源。 附图说明 It can be seen from the above that in some feasible implementation manners of the present invention, other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into In one of the two regions in which the boundary node is bounded, the horizontal distance and the vertical distance of the boundary node to the source node are equal; for each of the four independent regions, when the region includes When the destination node transmits data from the source node to the region directly with the source node The point is connected to the first node, the current node is a node that needs to receive data from the source node; the source node is set as the origin, and the axis of the source node and the first node is the Y axis. After the origin and the axis perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is positive, the following operation is performed with the first node as the new source node: A, when the new When the source node is only one destination node in the area, end data transmission to the area; B, when there is a Y coordinate with the new source node and the X coordinate is positive in the area At the destination node, data is transmitted from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then the X coordinate is positive in the region with the Y axis as the boundary. The node is divided into a new area, and within the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, The Y coordinate of the new source node in the region is the same and X The node marked as positive does not perform any operation; C, when there is a destination node in the area that has the same Y coordinate of the new source node and the X coordinate is negative, data is transmitted from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then divides all nodes in the region whose X coordinate is negative into a new region with the Y axis as a boundary, and within the new region And the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, the Y coordinate of the new source node in the area is the same And the node whose X coordinate is negative does not perform any operation; D, when the destination node exists in the remaining nodes in the area after being processed by B and C, the data is transmitted from the new source node to the Y coordinate is positive And the node directly connected to the new source node divides the remaining nodes into a new area, and within the new area, the Y coordinate is positive and directly connected to the new source node. Node as a new source node, jump to step A. Since the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is simpler. Single. At the same time, in the embodiment of the present invention, when four regions are divided, the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node. Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources. DRAWINGS
图 1为现有技术中 Mesh结构下以源节点为中心的区域划分示意图; 图 2为本发明的基于 Mesh结构的点对多点通信方法的一实施例的流程示 意图;  1 is a schematic diagram of area division centered on a source node in a Mesh structure in the prior art; FIG. 2 is a schematic flow diagram of an embodiment of a point-to-multipoint communication method based on a Mesh structure according to the present invention;
图 3为本发明中 Mesh结构下一实施例的以源节点为中心的区域划分原理 示意图;  3 is a schematic diagram showing the principle of region division centered on a source node in the next embodiment of the Mesh structure in the present invention;
图 4为本发明中 Mesh结构下一实施例的以源节点为中心的区域划分结果 示意图;  4 is a schematic diagram showing the result of region division centered on a source node in the next embodiment of the Mesh structure in the present invention;
图 5为本发明中 Mesh结构下另一实施例的以源节点为中心的区域划分结 果示意图;  FIG. 5 is a schematic diagram showing the result of region division centered on a source node according to another embodiment of the Mesh structure in the present invention; FIG.
图 6为本发明中数据传输的一个过程传输路径示意图;  6 is a schematic diagram of a process transmission path of data transmission in the present invention;
图 7为本发明中数据传输的另一个过程传输路径示意图;  7 is a schematic diagram of another process transmission path of data transmission in the present invention;
图 8为本发明中数据传输的另一个过程传输路径示意图;  8 is a schematic diagram of another process transmission path of data transmission in the present invention;
图 9为本发明实施例的通信方法的一实施例的完整数据传输路径示意图; 图 10为现有技术的 RMP通信方法的一实施例的完整数据传输路径示意 图;  FIG. 9 is a schematic diagram of a complete data transmission path according to an embodiment of a communication method according to an embodiment of the present invention; FIG. 10 is a schematic diagram of a complete data transmission path of an embodiment of a prior art RMP communication method;
图 11为本发明的通信节点的一实施例的结构组成示意图; 图 12为本发明的通信节点的另一实施例的结构组成示意图。 具体实施例 11 is a schematic structural diagram of an embodiment of a communication node according to the present invention; FIG. 12 is a schematic structural diagram of another embodiment of a communication node according to the present invention. Specific embodiment
在本发明的一些可行的实施方式中,将预定节点范围内除源节点之外的其 他节点, 以分界节点为界, 划分为四个独立区域, 所述分界节点划分到以所述 分界节点为界的两个区域中的其中一个区域中,所述分界节点到所述源节点的 水平距离和垂直距离相等; 针对所述四个独立区域的每个区域, 当所述区域包 括目的节点时,将数据从所述源节点传给所述区域直接与所述源节点相连第一 个节点, 所述目前节点为需从所述源节点接收数据的节点; 设定以所述源节点 为原点,所述源节点和所述第一个节点所在轴线为 Y轴,经过所述原点且与 Y 轴垂直的轴为 X轴, 所述第一个节点的 Y坐标为正, 则以所述第一个节点为 新的源节点执行如下操作: A, 当所述新的源节点为所述区域中唯——个目的 节点时, 结束对所述区域的数据传输; B, 当所述区域中存在与所述新的源节点 的 Y坐标相同且 X坐标为正的目的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点直接相连的节点, 然后以 Y轴为边界, 将所 述区域中 X坐标为正的所有节点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳 转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标 为正的节点不进行任何操作; C, 当所述区域中存在与所述新的源节点的 Y坐 标相同且 X坐标为负的目的节点时, 将数据从所述新的源节点传输到 X坐标 为负且与所述新的源节点直接相连的节点, 然后以 Y轴为边界, 将所述区域 中 X坐标为负的所有节点划分为一个新区域, 并在所述新区域范围内, 将所 述 X坐标为负且与所述新的源节点直接相连的节点作为新的源节点, 跳转到 步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标为负 的节点不进行任何操作; D, 当经 B和 C处理后, 所述区域中剩余的节点中存 在目的节点时, 将数据从所述新的源节点传输到 Y坐标为正且与所述新的源 节点直接相连的节点,将剩余的节点划分为一个新区域, 并在所述新区域范围 内, 将所述 Y坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 由于本发明实施例仅将源节点之外的节点划分为四个独立区 域, 其相对于现有技术的 8个区域的划分实现方式更为简单。 与此同时, 本发 明实施例在划分四个区域时, 以分界节点作为区域的边界,在传输数据过程中 实时更新源节点及基于新的源节点重新划分区域, 这样的通信方法, 自然形成 了长边优先传输原则, 其可减少数据传输过程中的传输时延, 以及减少数据传 输链路, 节省系统资源。 In some feasible implementation manners of the present invention, other nodes except the source node in the predetermined node range are divided into four independent regions by using the boundary node, and the boundary node is divided into the demarcation node. In one of the two regions of the boundary, the horizontal distance and the vertical distance of the boundary node to the source node are equal; for each of the four independent regions, when the region includes the destination node, Transmitting data from the source node to the area and directly connecting the first node to the source node, where the current node is a node that needs to receive data from the source node; setting the source node as an origin, The axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and a Y coordinate of the first node is positive, and the first The node performs the following operations for the new source node: A, when the new source node is only a destination node in the area, ending data transmission to the area; B, when the area exists With the new When the source node has the same Y coordinate and the X coordinate is positive, the data is transmitted from the new source node to the node whose X coordinate is positive and directly connected to the new source node, and then is bounded by the Y axis. And dividing all nodes in the region whose X coordinate is positive into a new region, and in the new region, the node with the X coordinate being positive and directly connected to the new source node is regarded as a new The source node, jumps to step A; otherwise, does not perform any operation on the node in the region that has the same Y coordinate as the new source node and the X coordinate is positive; C, when the region exists and When the new source node has the same Y coordinate and the X coordinate is negative, the data is transmitted from the new source node to the node whose X coordinate is negative and directly connected to the new source node, and then the Y axis For the boundary, all nodes in the region whose X coordinate is negative are divided into a new region, and within the new region, a node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, the Y coordinate of the new source node in the region is the same and the X coordinate No operation is performed for the negative node; D, when the destination node exists in the remaining nodes in the area after being processed by B and C, the data is transmitted from the new source node to the Y coordinate is positive and a node directly connected to the new source node, dividing the remaining node into a new area, and in the new area, the node with the Y coordinate being positive and directly connected to the new source node is regarded as a new Source node, jump to step A. Since the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is simpler. At the same time, in the embodiment of the present invention, when four regions are divided, the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node. Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources.
图 2为本发明的基于 Mesh无线网格网路结构的点对多点通信方法的一实 施例的流程示意图。 如图 2所示, 其可包括:  2 is a flow chart showing an embodiment of a point-to-multipoint communication method based on a Mesh wireless mesh network structure according to the present invention. As shown in FIG. 2, it may include:
步骤 S110, 将预定节点范围内除源节点之外的其他节点, 以分界节点为 界, 划分为四个独立区域, 所述分界节点划分到以所述分界节点为界的两个区 域中的其中一个区域中,所述分界节点到所述源节点的水平距离和垂直距离相 等。  Step S110, dividing other nodes except the source node in the predetermined node range by the boundary node into four independent regions, where the boundary node is divided into two regions bounded by the boundary node. In one area, the horizontal distance and the vertical distance of the boundary node to the source node are equal.
以图 3为例, 其中, 最外围长方形区域为本发明基于 Mesh结构的一个预 定节点范围, 在最外围的长方形区域, 黑色的圓圈为源节点, 即图 3中的节点 a, 有斜线的圓圈为目的节点, 包括节点1)、 节点 d、 节点 n、 节点 h、 节点 i、 节点 1、 节点 p, 虚线所穿过的圓圈为分界节点, 包括节点6、 节点 g、 节点 j、 节点 o、 节点 t、 以及节点 m, 本发明实施例通过节点 6、 节点 g、 节点 j、 节 点 o、 节点 t、 以及节点 m所形成的交叉线将预定节点范围内除源节点之外的 节点划分为四个独立的区域, 分别为区域 1、 区域 2、 区域 3以及区域 4, 其 中, 分界节点6、 节点 g、 节点 j、 节点 o、 节点 t、 以及节点 m可划分到以所 述分界节点为界的两个区域中的其中一个区域中。 比如, 节点 e可划分到区域 1或区域 2中, 节点 g、 节点 f可要划分到区域 2或区域 3中, 节点 o、 节点 t 可划分到区域 3或区域 4中, 节点 m可划分到区域 4或区域 1中。 Taking FIG. 3 as an example, the outermost rectangular area is a predetermined node range based on the Mesh structure of the present invention, and in the outermost rectangular area, the black circle is the source node, that is, the node a in FIG. 3, which has a diagonal line. The circle is the destination node, including node 1), node d, node n, node h, node i, node 1, node p, and the circle through which the dotted line passes is a demarcation node, including node 6, node g, node j, The node o, the node t, and the node m, in the embodiment of the present invention, the node other than the source node in the predetermined node range by the cross line formed by the node 6, the node g, the node j, the node o, the node t, and the node m Divided into four independent regions, namely, region 1, region 2, region 3, and region 4, wherein the boundary node 6, node g, node j, node o, node t, and node m can be divided into the boundaries The node is in one of the two regions bounded by the node. For example, the node e can be divided into the area 1 or the area 2, the node g, the node f can be divided into the area 2 or the area 3, the node o, the node t can be divided into the area 3 or the area 4, and the node m can be divided into In area 4 or area 1.
作为一种可行的实施方式, 具体实现中, 当以分界节点为界的两个区域的 其中一个区域包括有需从所述源节点接收数据的目的节点,所述分界节点划分 到所述以所述分界节点为界的两个区域中的包括有需从所述源节点接收数据 的目的节点的区域中。 比如, 同时参考图 3和参考图 4, 节点 m为区域 1和区 域 4的分界节点,其中, 区域 1中包括目的节点 b, 区域 4中不包括目的节点, 因此, 作为一种实施方式, 本发明实施例在为节点 m划分区域时, 可将节点 m划分到区域 1中。 基于同样的划分规则, 节点 0和节点 t划分到区域 3中。  As a possible implementation manner, in a specific implementation, when one of the two regions bounded by the boundary node includes a destination node that needs to receive data from the source node, the boundary node is divided into the The boundary node is a region of the two regions that are bounded by a destination node that needs to receive data from the source node. For example, referring to FIG. 3 and FIG. 4, the node m is a boundary node of the area 1 and the area 4, wherein the area 1 includes the destination node b, and the area 4 does not include the destination node. Therefore, as an implementation manner, In the embodiment of the invention, when the area is divided for the node m, the node m can be divided into the area 1. Based on the same division rule, node 0 and node t are divided into area 3.
作为一种可行的实施方式, 具体实现中, 当以所述分界节点为界的两个区 域中均包括有需从所述源节点接收数据的目的节点,所述分界节点划分到以所 述分界节点为界的两个区域中的任意一个区域中。 仍参考图 3及参考图 4, 节 点 c为区域 1和区域 2的分界节点, 其中, 区域 1包括目的节点 b、 区域 2包 括目的节点 d和目的节点 h。 因此, 作为一种实施方式, 本发明实施例在为节 点 c划分区域时, 将节点 c可划分到区域 1和区域 2中任意一个区域中 (图 4 中以划分到区域 2中为图例)。 基于同样的划分规则, 节点 g和节点 j也可划 分到区域 2或区域 3中任意一个区域中 (图 4中以划分到区域 3中为图例;)。 作为一种可行的实施方式, 具体实现中, 当以所述分界节点为界的两个区 域中均不包括有需从所述源节点接收数据的目的节点,则将分界节点划分到以 所述分界节点为界的两个区域中已经包括有其他分界节点的区域中。 比如, 参 考图 5 ,以节点 0和节点 t为分界节点的区域 3和区域 4中均不包括目的节点, 殳设节点 0已经划分到区域 3中, 则对于节点 t也同样划分到区域 3中, 以保 持二者的统一。 As a possible implementation manner, in a specific implementation, when two regions bounded by the boundary node include a destination node that needs to receive data from the source node, the boundary node is divided into the boundary The node is in any of the two regions bounded by the node. Still referring to FIG. 3 and FIG. 4, the node c is a boundary node of the area 1 and the area 2, wherein the area 1 includes the destination node b, and the area 2 includes the destination node d and the destination node h. Therefore, as an embodiment, in the embodiment of the present invention, when the area is divided for the node c, the node c can be divided into any one of the area 1 and the area 2 (in FIG. 4, the area is divided into the area 2 as a legend). Based on the same division rule, the node g and the node j can also be divided into any one of the area 2 or the area 3 (in FIG. 4, the division into the area 3 is a legend;). As a possible implementation manner, in a specific implementation, when two destinations bounded by the boundary node do not include a destination node that needs to receive data from the source node, the boundary node is divided into The boundary nodes are bounded by two regions in the region that already have other demarcation nodes. For example, referring to FIG. 5, the destination node is not included in the region 3 and the region 4 in which the node 0 and the node t are demarcation nodes, and the node 0 has been divided into the region 3, and the node t is also divided into the region 3. To maintain the unity of the two.
步骤 S111 , 针对所述四个独立区域的每个区域, 当所述区域包括目的节 点时, 将数据从所述源节点传给所述区域直接与所述源节点相连第一个节点, 所述目前节点为需从所述源节点接收数据的节点。  Step S111, for each area of the four independent areas, when the area includes a destination node, transmitting data from the source node to the area and directly connecting the first node to the source node, The node is currently a node that needs to receive data from the source node.
比如参考图 4和图 6, 区域 1中包括目的节点 b, 则在步骤 Sill , 可将数 据从源节点 a传输给区域 1中直接与所述源节点 a相连的第一个节点 b。 参考 图 4和图 7, 区域 2中包括目的节点 d和 h, 因此, 在步骤 S111 , 可将数据从 源节点 a传输给区域 2中直接与所述源节点 a相连的第一个节点 e。 参考图 4 和图 8, 区域 3中包括目的节点 、 目的节点 1及目的节点 i, 则在步骤 Sill , 可将数据从源节点 a传输给区域 3中直接与所述源节点 a相连的第一个节点 k。  For example, referring to FIG. 4 and FIG. 6, the destination node b is included in the area 1, and in step Sill, the data can be transmitted from the source node a to the first node b in the area 1 directly connected to the source node a. Referring to Figures 4 and 7, the destination nodes d and h are included in the area 2, and therefore, in step S111, data can be transmitted from the source node a to the first node e in the area 2 directly connected to the source node a. Referring to FIG. 4 and FIG. 8, the area 3 includes the destination node, the destination node 1 and the destination node i, and in step Sill, data can be transmitted from the source node a to the first directly connected to the source node a in the area 3. Node k.
步骤 S112, 设定以所述源节点为原点, 所述源节点和所述第一个节点所 在轴线为 Y轴, 经过所述原点且与 Y轴垂直的轴为 X轴, 所述第一个节点的 Y坐标为正, 则以所述第一个节点为新的源节点。  Step S112, setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, the first If the Y coordinate of the node is positive, then the first node is the new source node.
参考图 6, 对于区域 1 , 设定以源节点 a为原点, 源节点 a和第一个节点 b所在轴线为 Y轴, 经过所述原点 a且与 Y轴垂直的轴线为 X轴, 所展现的 坐标系如图 6所示, 其中, 所述第一个节点 b的 Y坐标为正。  Referring to FIG. 6, for the region 1, the source node a is set as the origin, the axis of the source node a and the first node b is the Y axis, and the axis passing through the origin a and perpendicular to the Y axis is the X axis. The coordinate system is as shown in FIG. 6, wherein the Y coordinate of the first node b is positive.
同样, 参考图 7, 对于区域 2, 设定以源节点 a为原点, 源节点 a和第一 个节点 e所在轴线为 Y轴, 经过所述原点 a且与 Υ轴垂直的轴线为 X轴, 所 展现的坐标系如图 7所示, 其中, 所述第一个节点 e的 Υ坐标为正。 Similarly, referring to FIG. 7, for the area 2, the source node a is set as the origin, the source node a and the first The axis of the node e is the Y axis, and the axis passing through the origin a and perpendicular to the Υ axis is the X axis, and the coordinate system presented is as shown in FIG. 7 , wherein the Υ coordinate of the first node e is positive. .
同样, 参考图 8, 对于区域 3 , 设定以源节点 a为原点, 源节点 a和第一 个节点 k所在轴线为 Y轴, 经过所述原点 a且与 Y轴垂直的轴线为 X轴, 所 展现的坐标系如图 8所示, 其中, 所述第一个节点 k的 Y坐标为正。  Similarly, referring to FIG. 8, for the region 3, the source node a is set as the origin, the axis of the source node a and the first node k is the Y axis, and the axis passing through the origin a and perpendicular to the Y axis is the X axis. The coordinate system presented is as shown in Fig. 8, wherein the Y coordinate of the first node k is positive.
步骤 S113 , 当所述新的源节点为所述区域中唯——个目的节点时, 结束 对所述区域的数据传输, 否则, 执行步骤 S114或 S115。  Step S113: When the new source node is only one destination node in the area, end data transmission to the area, otherwise, perform step S114 or S115.
步骤 S114 , 当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标 为正的目的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新 的源节点直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的 所有节点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且 与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 S113; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任 何操作。  Step S114, when there is a destination node in the area that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing all nodes in the region whose X coordinate is positive into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node is used as a new source node, and the process proceeds to step S113; otherwise, the node with the same Y coordinate and the positive X coordinate of the new source node in the region is not performed. Any operation.
S115 , 当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负 的目的节点时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源 节点直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有 节点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所 述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 S113; 否则, 对 所述区域中与所述新的源节点的 Y坐标相同且 X坐标为负的节点不进行任何 操作。  S115, when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is negative, transmitting data from the new source node to the X coordinate is negative and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is negative in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is negative and The node directly connected to the new source node is used as a new source node, and the process proceeds to step S113; otherwise, the node with the same Y coordinate and negative X coordinate in the region as the new source node does not perform any operating.
步骤 S116, 当经步骤 S114和 S115处理后, 所述区域中剩余的节点中存 在目的节点时, 将数据从所述新的源节点传输到 Y坐标为正且与所述新的源 节点直接相连的节点,将剩余的节点划分为一个新区域, 并在所述新区域范围 内, 将所述 Y坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 S113。 Step S116, after being processed by steps S114 and S115, the remaining nodes in the area are stored. At the destination node, data is transmitted from the new source node to a node whose Y coordinate is positive and directly connected to the new source node, and the remaining nodes are divided into a new area, and in the new area range Then, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and the process proceeds to step S113.
下面依次对图 4中的区域 1、 区域 2、 区域 3中的数据如何传输到目的节 点进行详细说明。  The following is a detailed description of how the data in area 1, area 2, and area 3 in Fig. 4 is transmitted to the destination node.
对于区域 1 , 参考图 6, 当在步骤 S111确定出有目的节点 b之后, 将数据 从所述源节点 a传给所述区域直接与所述源节点相连第一个节点 b (传输途径 如图中箭头所示); 在步骤 S112, 以所述源节点 a原点, 所述源节点和所述第 一个节点 b所在轴线为 Y轴, 经过所述原点 a且与 Y轴垂直的轴为 X轴, 且 设定所述第一个节点 b的 Y坐标为正(图 6中 Y+方向)之后, 以 b为新的源 节点,由于节点 b为区域 1中唯——个需从所述源节点 a接收数据的目的节点, 因此, 在步骤 S112之后执行步骤 S113 , 结束对所述区域 1的数据传输。 参考 图 6可知, 经过本发明实施例, 已经将数据成功传输到区域 1中的目的节点。  For the area 1, referring to FIG. 6, after determining the destination node b in step S111, the data is transmitted from the source node a to the area and directly connected to the source node by the first node b (the transmission path is as shown in the figure In the step S112, with the origin of the source node a, the axis of the source node and the first node b is the Y axis, and the axis passing through the origin a and perpendicular to the Y axis is X. The axis, and setting the Y coordinate of the first node b to be positive (Y+ direction in FIG. 6), taking b as the new source node, since node b is the only one in the region 1 from the source The node a receives the destination node of the data, and therefore, after step S112, step S113 is executed to end the data transmission to the area 1. Referring to Figure 6, it has been shown that data has been successfully transmitted to the destination node in area 1 via the embodiment of the present invention.
对于区域 2, 参考图 7 , 当在步骤 S111确定出区域 2中有目的节点 d和目 的节点 h之后,将数据从所述源节点 a传给所述区域 2直接与所述源节点 a相 连第一个节点 e (传输途径如图中节点 a指向节点 e的箭头所示); 并以所述源 节点 a为原点, 所述源节点 a和所述第一个节点 e所在轴线为 Y轴, 经过所述 原点且与 Y轴垂直的轴为 X轴, 且设定所述第一个节点的 Y坐标为正(图 7 中 Y+方向), 然后以节点 e为新的源节点, 因为节点 e不是区域 2中唯一接收 数据的目的节点, 因此不执行步骤 S113。 同理, 区域 2中不存在与所述新的 源节点 e的 Y坐标相同且 X坐标为正的目的节点, 且, 实际上区域 2中根本 不存在与所述新的源点 e的 Y坐标相同且 X坐标为正的节点, 因此, 在步骤 S114可不进行任何处理。 同理 , 区域 2中也不存在与所述新的源节点 e的 Υ 坐标相同且 X坐标为负的目的节点, 因此, 在步骤 S115时, 对区域 2中与所 述新的源节点 e的 Y坐标相同且 X坐标为负的节点 c不进行任何操作, 因此 在图 7中节点 c不被划分为任何区域块。 For the area 2, referring to FIG. 7, after determining that there is a destination node d and a destination node h in the area 2 in step S111, data is transmitted from the source node a to the area 2 and directly connected to the source node a. a node e (the transmission path is as shown by the arrow pointing to the node e in the node a ); and the source node a is taken as the origin, and the axis of the source node a and the first node e is the Y axis. The axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in Fig. 7), and then the node e is the new source node because the node e It is not the destination node in the area 2 that receives the data, and therefore step S113 is not performed. Similarly, there is no destination node in the region 2 that has the same Y coordinate of the new source node e and the X coordinate is positive, and actually, the region 2 is fundamental. There is no node having the same Y coordinate as the new source point e and the X coordinate is positive, and therefore, no processing can be performed in step S114. Similarly, there is no destination node in the region 2 that has the same Υ coordinate and a negative X coordinate as the new source node e. Therefore, in step S115, the new source node e in the region 2 is The node c having the same Y coordinate and the negative X coordinate does not perform any operation, so the node c is not divided into any of the area blocks in FIG.
仍参考图 7, 当经过步骤 S114及 S115处理后, 区域 2中剩余的节点(节 点 d、节点 f、节点 h )中存在目的节点 d和目的节点 h, 因此,执行步骤 S116, 将数据从所述新的源节点 e传输到 Y坐标为正且与所述新的源节点 e直接相连 的节点 f, 将剩余的节点 (节点 d、 节点 f和节点 h ) 划分为一个新区域 22, 并将 Y坐标为正且与所述新的源节点 e直接相连的节点 f作为新的源节点,在 区域 22范围内, 跳转到步骤 S113。  Still referring to FIG. 7, after the processing of steps S114 and S115, the destination node d and the destination node h exist in the remaining nodes (node d, node f, node h) in the area 2, and therefore, step S116 is performed to The new source node e is transmitted to the node f whose positive Y coordinate is directly connected to the new source node e, and the remaining nodes (node d, node f, and node h) are divided into a new area 22, and The node f whose positive Y coordinate is positive and directly connected to the new source node e is regarded as a new source node, and within the range of the region 22, the process proceeds to step S113.
仍参考图 7,当将区域 22作为新的区域范围,节点 f作为新的源节点之后, 存在与所述新的源节点 f的 Y坐标相同且 X坐标为正的目的节点 h,则执行步 骤 S114,将数据从所述新的源节点 f传输到 X坐标为正且与所述新的源节点 f 直接相连的节点 h, 然后以 Y轴为边界(图 7中为节点 e和 f所在轴), 将所 述区域中 X坐标为正的所有节点划分为一个新区域 221 (不包括边界节点), 并在所述新区域 221范围内,将所述 X坐标为正且与所述新的源节点 f直接相 连的节点 h作为新的源节点, 跳转到步骤 S113; 进一步, 由于新的源节点 h 为区域 221中唯一的目的节点, 因此,方法在区域 221中的传输可结束。因此, 可见, 数据成功从源节点 a传递给目的节点 h。  Still referring to FIG. 7, when the area 22 is used as the new area range, and after the node f is the new source node, there is a destination node h having the same Y coordinate and the X coordinate is positive as the new source node f, and then the steps are performed. S114, transmitting data from the new source node f to a node h whose X coordinate is positive and directly connected to the new source node f, and then bounded by the Y axis (the axis of the node e and f in FIG. 7) All the nodes in the region whose X coordinate is positive are divided into a new region 221 (excluding the boundary node), and within the range of the new region 221, the X coordinate is positive and the new The node h directly connected to the source node f serves as a new source node, and the process proceeds to step S113. Further, since the new source node h is the only destination node in the area 221, the transmission of the method in the area 221 can be ended. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node h.
同样, 参考图 7, 当将区域 22作为新的区域范围, 节点 f作为新的源节点 之后,存在与所述新的源节点 f的 Y坐标相同且 X坐标为负的目的节点 d, 则 执行步骤 S 115 , 将数据从所述新的源节点 f传输到 X坐标为负且与所述新的 源节点 f直接相连的节点 d,然后以 Y轴为边界(图 7中为节点 e和 f所在轴), 将所述区域中 X坐标为负的所有节点划分为一个新区域 222(同样可不包括边 界节点), 并在所述新区域 222范围内, 将所述 X坐标为负且与所述新的源节 点 f直接相连的节点 d作为新的源节点, 跳转到步骤 S113; 仍参考图 7, 新的 源节点 d为区域 222中唯一的目的节点, 因此, 方法在区域 222中的传输可结 束。 因此, 可见, 数据成功从源节点 a传递给目的节点 d。 Similarly, referring to FIG. 7, after the area 22 is taken as a new area range and the node f is used as a new source node, there is a destination node d having the same Y coordinate and the X coordinate being negative as the new source node f. Step S115 is performed to transfer data from the new source node f to the node d whose X coordinate is negative and directly connected to the new source node f, and then bordered by the Y axis (the node e and in FIG. 7) f is the axis), all nodes in the region whose X coordinate is negative are divided into a new region 222 (which may also not include the boundary node), and within the range of the new region 222, the X coordinate is negative and The node d directly connected to the new source node f serves as a new source node, and the process proceeds to step S113. Referring still to FIG. 7, the new source node d is the only destination node in the area 222. Therefore, the method is in the area 222. The transfer can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node d.
对于区域 3 , 参考图 8, 当在步骤 S111确定出区域 3中有目的节点 p和目 的节点 1和目的节点 i之后, 将数据从所述源节点 a传给所述区域 3直接与所 述源节点 a相连第一个节点 k(传输途径如图中节点 a指向节点 k的箭头所示); 在步骤 S112以所述源节点 a为原点, 所述源节点 a和所述第一个节点 k所在 轴线为 Y轴, 经过所述原点且与 Y轴垂直的轴为 X轴, 且设定所述第一个节 点的 Y坐标为正(图 8中 Y+方向), 然后以节点 k为新的源节点, 因为节点 k 不是区域 2中唯一接收数据的目的节点, 因此不执行步骤 S113。 同理, 区域 3 中不存在与所述新的源节点 k的 Y坐标相同且 X坐标为正的目的节点,因此, 在步骤 S114对区域 3中与所述新的源节点 e的 Y坐标相同且 X坐标为正的节 点 0不进行任何操作。 同理, 区域 3中也不存在与所述新的源节点 e的 Y坐 标相同且 X坐标为负的目的节点, 因此, 在步骤 S115时, 对区域 3中与所述 新的源节点 e的 Y坐标相同且 X坐标为负的节点 g不进行任何操作, 因此在 图 8中节点 0和节点 g不被划分为任何区域块。  For region 3, referring to FIG. 8, after determining in step S111 that there is a destination node p and a destination node 1 and a destination node i in the region 3, data is transmitted from the source node a to the region 3 directly to the source. The node a is connected to the first node k (the transmission path is as indicated by the arrow of the node a pointing to the node k in the figure); the source node a is taken as the origin in the step S112, the source node a and the first node k The axis is the Y axis, the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in FIG. 8), and then the node k is new. The source node, since the node k is not the only destination node in the area 2 that receives data, step S113 is not performed. Similarly, in the region 3, there is no destination node having the same Y coordinate of the new source node k and the X coordinate is positive, and therefore, the Y coordinate of the new source node e in the region 3 is the same in step S114. Node 0 with positive X coordinate does not perform any operation. Similarly, in the region 3, there is also no destination node with the same Y coordinate of the new source node e and a negative X coordinate. Therefore, in step S115, the new source node e in the region 3 is The node g having the same Y coordinate and the negative X coordinate does not perform any operation, and therefore, in Fig. 8, the node 0 and the node g are not divided into any of the area blocks.
仍参考图 8, 当经过步骤 S114及 S115处理后, 区域 3中剩余的节点(节 点 节点 p、 节点 1、 节点 i、 节点 j ) 中存在目的节点 p和目的节点 1和目的 节点 i, 因此, 执行步骤 S116, 将数据从所述新的源节点 k传输到 Y坐标为正 且与所述新的源节点 k直接相连的节点 1, 将剩余的节点(节点 t、 节点 p、 节 点 1、 节点 i、 节点 j )划分为一个新区域 32, 并将 Y坐标为正且与所述新的源 节点 k直接相连的节点 1作为新的源节点,在区域 32范围内,跳转到步骤 S 113。 Still referring to FIG. 8, after the processing in steps S114 and S115, the destination node p and the destination node 1 and the destination exist in the remaining nodes (node node p, node 1, node i, node j) in the area 3 Node i, therefore, performing step S116, transferring data from the new source node k to node 1 whose Y coordinate is positive and directly connected to the new source node k, and the remaining nodes (node t, node p , node 1, node i, node j) is divided into a new area 32, and the node 1 whose positive Y coordinate is positive and directly connected to the new source node k is used as a new source node, and jumps within the range of area 32. Go to step S113.
仍参考图 8,当将区域 32作为新的区域范围,节点 1作为新的源节点之后, 存在与所述新的源节点 1的 Y坐标相同且 X坐标为正的目的节点 p,则执行步 骤 S114,将数据从所述新的源节点 1传输到 X坐标为正且与所述新的源节点 1 直接相连的节点 p, 然后以 Y轴为边界(图 8中节点 a、 节点 k、 节点 1所在 轴), 将所述区域中 X坐标为正的所有节点划分为一个新区域 321 , 并在所述 新区域 321范围内,将所述 X坐标为正且与所述新的源节点 1直接相连的节点 p作为新的源节点, 跳转到步骤 S113; 进一步, 由于新的源节点 p为区域 321 中唯一的目的节点, 因此, 方法在区域 321中的传输可结束, 如果节点 p不是 区域 321中唯一的目的节点,则区域 321还要按照本发明实施例的方法继续执 行下去。 因此, 可见, 数据成功从源节点 a传递给目的节点 。  Still referring to FIG. 8, when the area 32 is taken as a new area range, after the node 1 is the new source node, there is a destination node p having the same Y coordinate of the new source node 1 and the X coordinate is positive, then the steps are performed. S114, transmitting data from the new source node 1 to a node p whose X coordinate is positive and directly connected to the new source node 1, and then bordered by the Y axis (node a, node k, node in FIG. 8) 1 is located in the axis), all nodes in the region whose X coordinate is positive are divided into a new region 321 , and within the range of the new region 321 , the X coordinate is positive and the new source node 1 The directly connected node p acts as a new source node, and the process goes to step S113; further, since the new source node p is the only destination node in the area 321, the transmission of the method in the area 321 can end, if the node p is not The only destination node in area 321 is then continued in accordance with the method of the embodiment of the present invention. Therefore, it can be seen that the data is successfully passed from the source node a to the destination node.
同样, 参考图 8, 当将区域 32作为新的区域范围, 节点 1作为新的源节点 之后, 存在与所述新的源节点 1的 Y坐标相同且 X坐标为负的目的节点 i, 则 执行步骤 S115, 将数据从所述新的源节点 1传输到 X坐标为负且与所述新的 源节点 1直接相连的节点 i, 然后以与 Y轴为边界(图 8中节点 a、 节点 k、 节 点 1所在轴), 将所述区域中 X坐标为负的所有节点划分为一个新区域 322, 并在所述新区域 322范围内, 将所述 X坐标为负且与所述新的源节点 k直接 相连的节点 i作为新的源节点, 跳转到步骤 S113; 仍参考图 8, 新的源节点 i 为区域 322中唯一的目的节点, 因此,方法在区域 322中的传输可结束。因此, 可见, 数据成功从源节点 a传递给目的节点 。 Similarly, referring to FIG. 8, when the area 32 is taken as a new area range, after the node 1 is regarded as a new source node, there is a destination node i having the same Y coordinate of the new source node 1 and the X coordinate is negative, and then execution is performed. Step S115, transmitting data from the new source node 1 to a node i whose X coordinate is negative and directly connected to the new source node 1, and then bordered with the Y axis (node a, node k in Fig. 8) , the axis where node 1 is located, divides all nodes in the region whose X coordinate is negative into a new region 322, and within the range of the new region 322, the X coordinate is negative and the new source The node i directly connected to the node k as a new source node jumps to step S113; still referring to FIG. 8, the new source node i is the only destination node in the area 322, and therefore, the transmission of the method in the area 322 can end. therefore, It can be seen that the data is successfully transmitted from the source node a to the destination node.
由此可见, 经过本发明实施例的方法, 可将数据成功从源节点传输给图 4 中的区域 1、 区域 2、 及区域 3中的所有目的节点。  It can be seen that, through the method of the embodiment of the present invention, data can be successfully transmitted from the source node to all destination nodes in area 1, area 2, and area 3 in FIG.
进一步, 图 9示出了釆用本发明实施例的基于 Mesh结构的点对多点通信 方法进行数据传输的完整的路径示意图, 图 10示出了釆用现有技术中的 RPM 算法的数据传输的完整的路径示意图。  Further, FIG. 9 shows a complete path diagram of data transmission using the Mesh structure-based point-to-multipoint communication method according to the embodiment of the present invention, and FIG. 10 shows data transmission using the RPM algorithm in the prior art. A complete path schematic.
如图 9和图 10可知, 对于相同的目的节点 (比如, 目的节点 X , 釆用本 发明实施例的方法之后, 经过的路径为节点 a-节点 b-节点 c-节点 X , 而釆用现 有技术的 RPM算法经过的路径为节点 a-节点 t-节点 V-节点 X , 比本发明多了 一跳。 再如, 对于目的节点 s, 釆用本发明实施例的方法之后, 经过的路径为: 节点 a-节点 t-节点 u-节点 s, 而釆用现有技术的 RPM算法经过的路径为节点 a-节点 n-节点 r-节点 s, 经过比较可知, 虽然传输路径跳数相同, 但是釆用本 发明的方法之后考虑了长边优先传输原则, 能减少延时。)  As shown in FIG. 9 and FIG. 10, for the same destination node (for example, the destination node X, after the method of the embodiment of the present invention, the path passed is node a-node b-node c-node X, and the current use is The path through which the technical RPM algorithm passes is the node a-node t-node V-node X, which is one more hop than the present invention. For example, for the destination node s, after passing the method of the embodiment of the present invention, the path passed It is: node a-node t-node u-node s, and the path that the prior art RPM algorithm passes is node a-node n-node r-node s. After comparison, although the transmission path hop count is the same, However, the long-edge priority transmission principle is considered after the method of the present invention, and the delay can be reduced.)
具体实现中, 在本发明的其他实施例中, 还可包括: 当针对所述四个独立 区域的每个区域, 当所述区域不包括需从所述源节点接收数据的目的节点时, 不向所述区域进行数据传输(比如, 图 4中的区域 4, 图 5中的区域 3和区域 4。 )。  In a specific implementation, in other embodiments of the present invention, the method may further include: when, for each of the four independent areas, when the area does not include a destination node that needs to receive data from the source node, Data transmission is performed to the area (for example, area 4 in Fig. 4, area 3 and area 4 in Fig. 5).
由上可见,在本发明的一些可行的方法实施方式中,将预定节点范围内除 源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域, 所述分界节 点划分到以所述分界节点为界的两个区域中的其中一个区域中,所述分界节点 到所述源节点的水平距离和垂直距离相等; 针对所述四个独立区域的每个区 域, 当所述区域包括目的节点时,将数据从所述源节点传给所述区域直接与所 述源节点相连第一个节点, 所述目前节点为需从所述源节点接收数据的节点; 设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y轴, 经过所述原点且与 Y轴垂直的轴为 X轴, 所述第一个节点的 Y坐标为正, 则 以所述第一个节点为新的源节点执行如下操作: A, 当所述新的源节点为所述 区域中唯——个目的节点时, 结束对所述区域的数据传输; B, 当所述区域中存 在与所述新的源节点的 Y坐标相同且 X坐标为正的目的节点时, 将数据从所 述新的源节点传输到 X坐标为正且与所述新的源节点直接相连的节点, 然后 以 Y轴为边界, 将所述区域中 X坐标为正的所有节点划分为一个新区域, 并 在所述新区域范围内, 将所述 X坐标为正且与所述新的源节点直接相连的节 点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作; C, 当所述区域中存在与所 述新的源节点的 Y坐标相同且 X坐标为负的目的节点时, 将数据从所述新的 源节点传输到 X坐标为负且与所述新的源节点直接相连的节点, 然后以 Y轴 为边界, 将所述区域中 X坐标为负的所有节点划分为一个新区域, 并在所述 新区域范围内, 将所述 X坐标为负且与所述新的源节点直接相连的节点作为 新的源节点, 跳转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐 标相同且 X坐标为负的节点不进行任何操作; D, 当经 B和 C处理后, 所述 区域中剩余的节点中存在目的节点时, 将数据从所述新的源节点传输到 Y坐 标为正且与所述新的源节点直接相连的节点, 将剩余的节点划分为一个新区 域, 并在所述新区域范围内, 将所述 Y坐标为正且与所述新的源节点直接相 连的节点作为新的源节点,跳转到步骤 A。 由于本发明实施例仅将源节点之外 的节点划分为四个独立区域,其相对于现有技术的 8个区域的划分实现方式更 为简单。 与此同时, 本发明实施例在划分四个区域时, 以分界节点作为区域的 边界,在传输数据过程中实时更新源节点及基于新的源节点重新划分区域, 这 样的通信方法, 自然形成了长边优先传输原则, 其可减少数据传输过程中的传 输时延, 以及减少数据传输链路, 节省系统资源。 功能结构组成示意图及硬件结构组成示意图。 It can be seen from the above that in some feasible method embodiments of the present invention, other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into Wherein the boundary node is one of two regions bounded by the boundary, the horizontal distance and the vertical distance of the boundary node to the source node are equal; for each region of the four independent regions, when the region When the destination node is included, data is transmitted from the source node to the area directly The source node is connected to the first node, and the current node is a node that needs to receive data from the source node; the source node is set as an origin, and the axis of the source node and the first node is Y. An axis, an axis passing through the origin and perpendicular to the Y axis is an X axis, and a Y coordinate of the first node is positive, and the first node is a new source node to perform the following operations: A, When the new source node is only a destination node in the area, end the data transmission to the area; B, when the area has the same Y coordinate as the new source node and the X coordinate is a positive destination node, transmitting data from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then taking the Y axis as a boundary, and the X coordinate in the region is positive All nodes are divided into a new area, and within the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise , the Y coordinate of the new source node in the region The node with the same X coordinate is not performing any operation; C, when there is a destination node in the region that has the same Y coordinate and the X coordinate is negative, the data is from the new source. The node transmits to a node whose X coordinate is negative and directly connected to the new source node, and then divides all nodes in the region whose X coordinate is negative into a new region by using the Y axis as a boundary, and in the new Within the region, the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, to the new source node in the region A node having the same Y coordinate and a negative X coordinate does not perform any operation; D, when the destination node exists in the remaining nodes in the region after being processed by B and C, data is transmitted from the new source node to Y a node whose coordinates are positive and directly connected to the new source node, divides the remaining nodes into a new area, and within the new area, the Y coordinate is positive and the new source node Directly connected nodes as new source nodes, jump Go to step A. Since the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is more For the sake of simplicity. At the same time, in the embodiment of the present invention, when four regions are divided, the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node. Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources. Schematic diagram of functional structure and hardware structure.
图 11为本发明的通信节点的一实施例的功能结构组成示意图。如图 11所 示, 本发明实施例的通信节点可包括区域划分模块 10和传输模块 20, 其中: 区域划分模块 10, 用于将预定节点范围内除本节点之外的其他节点, 以 分界节点为界, 划分为四个独立区域, 所述分界节点划分到以所述分界节点为 界的两个区域中的其中一个区域中,所述分界节点到本节点的水平距离和垂直 距离相等。  FIG. 11 is a schematic diagram showing the functional structure of an embodiment of a communication node according to the present invention. As shown in FIG. 11, the communication node in the embodiment of the present invention may include a region dividing module 10 and a transmission module 20, where: the region dividing module 10 is configured to divide other nodes in the predetermined node range except the local node to demarcate nodes. For the boundary, it is divided into four independent regions, and the boundary node is divided into one of two regions bounded by the boundary node, and the horizontal distance and the vertical distance of the boundary node to the local node are equal.
传输模块 20, 用于针对所述区域划分模块 10划分的四个独立区域的每个 区域, 当所述区域包括目的节点时,将数据从所述源节点传给所述区域直接与 所述源节点相连第一个节点, 所述目前节点为需从所述源节点接收数据的节 点; 设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y 轴,经过所述原点且与 Y轴垂直的轴为 X轴,所述第一个节点的 Y坐标为正, 则以所述第一个节点为新的源节点执行如下操作: A, 当所述新的源节点为所 述区域中唯——个目的节点时, 结束对所述区域的数据传输; B, 当所述区域 中存在与所述新的源节点的 Y坐标相同且 X坐标为正的目的节点时, 将数据 从所述新的源节点传输到 X坐标为正且与所述新的源节点直接相连的节点, 然后以 Y轴为边界,将所述区域中 X坐标为正的所有节点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新的源节点直接相连的 节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域中与所述新的源节点 的 Y坐标相同且 X坐标为正的节点不进行任何操作; C, 当所述区域中存在与 所述新的源节点的 Y坐标相同且 X坐标为负的目的节点时, 将数据从所述新 的源节点传输到 X坐标为负且与所述新的源节点直接相连的节点, 然后以 Y 轴为边界, 将所述区域中 X坐标为负的所有节点划分为一个新区域, 并在所 述新区域范围内, 将所述 X坐标为负且与所述新的源节点直接相连的节点作 为新的源节点, 跳转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y 坐标相同且 X坐标为负的节点不进行任何操作; D, 当经 B和 C处理后, 所 述区域中剩余的节点中存在目的节点时, 将数据从所述新的源节点传输到 Y 坐标为正且与所述新的源节点直接相连的节点,将剩余的节点划分为一个新区 域, 并在所述新区域范围内, 将所述 Y坐标为正且与所述新的源节点直接相 连的节点作为新的源节点, 跳转到步骤 A。 The transmission module 20 is configured to, for each area of the four independent areas divided by the area dividing module 10, when the area includes the destination node, transfer data from the source node to the area directly to the source The node is connected to the first node, and the current node is a node that needs to receive data from the source node; the source node is set as the origin, and the axis of the source node and the first node is the Y axis. After the origin and the axis perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is positive, the following operation is performed with the first node as a new source node: A, when the new When the source node is only one destination node in the area, end data transmission to the area; B, when there is a Y coordinate with the new source node and the X coordinate is positive in the area At the destination node, data is transmitted from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then the X coordinate is positive in the region with the Y axis as the boundary. The node is divided into a new area, And in the range of the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, the area is The nodes of the new source node having the same Y coordinate and the positive X coordinate do not perform any operation; C, when there is a destination node in the region that has the same Y coordinate and the X coordinate is negative, Data is transmitted from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then the Y-axis is bounded, and all nodes in the region whose X coordinate is negative are divided into a new one. a region, and within the new region, the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, The nodes of the new source node having the same Y coordinate and the negative X coordinate do not perform any operation; D, when the destination node exists in the remaining nodes in the region after being processed by B and C, the data is from the The new source node is transmitted to the Y coordinate is positive and with the new a node directly connected to the source node, dividing the remaining node into a new area, and in the range of the new area, using the node whose Y coordinate is positive and directly connected to the new source node as a new source Node, jump to step A.
以图 3为例, 其中, 最外围长方形区域为本发明基于 Mesh结构的一个预 定节点范围, 在最外围的长方形区域, 黑色的圓圈为源节点, 即图 3中的节点 a, 有斜线的圓圈为目的节点, 包括节点1)、 节点 d、 节点 n、 节点 h、 节点 i、 节点 1、 节点 p, 虚线所穿过的圓圈为分界节点, 包括节点6、 节点 g、 节点 j、 节点 o、 节点 t、 以及节点 m, 本发明实施例的节点 a的区域划分模块 10首先 可通过节点 e、 节点 g、 节点 j、 节点 o、 节点 t、 以及节点 m所形成的交叉线 将预定节点范围内除源节点之外的节点划分为四个独立的区域, 分别为区域 1、 区域 2、 区域 3以及区域 4, 其中, 分界节点6、 节点 g、 节点 j、 节点 o、 节点 t、 以及节点 m可划分到以所述分界节点为界的两个区域中的其中一个区 域中。 比如, 节点 e可划分到区域 1或区域 2中, 节点 g、 节点 f可要划分到 区域 2或区域 3中, 节点 o、 节点 t可划分到区域 3或区域 4中, 节点 m可划 分到区域 4或区域 1中。 Taking FIG. 3 as an example, the outermost rectangular area is a predetermined node range based on the Mesh structure of the present invention, and in the outermost rectangular area, the black circle is the source node, that is, the node a in FIG. 3, which has a diagonal line. The circle is the destination node, including node 1), node d, node n, node h, node i, node 1, node p, and the circle through which the dotted line passes is a demarcation node, including node 6, node g, node j, node o , the node t, and the node m, the area dividing module 10 of the node a of the embodiment of the present invention may first set the predetermined node range by the cross line formed by the node e, the node g, the node j, the node o, the node t, and the node m Nodes other than the source node are divided into four independent regions, namely, region 1, region 2, region 3, and region 4, where demarcation node 6, node g, node j, node o, node t, and node m may be divided into one of two regions bounded by the boundary node In the domain. For example, the node e can be divided into the area 1 or the area 2, the node g, the node f can be divided into the area 2 or the area 3, the node o, the node t can be divided into the area 3 or the area 4, and the node m can be divided into In area 4 or area 1.
作为一种可行的实施方式, 具体实现中, 当以分界节点为界的两个区域的 其中一个区域包括有需从所述源节点接收数据的目的节点,所述区域划分模块 10 将所述分界节点划分到所述以所述分界节点为界的两个区域中的包括有需 从所述源节点接收数据的目的节点的区域中。比如,同时参考图 3和参考图 4 , 节点 m为区域 1和区域 4的分界节点, 其中, 区域 1中包括目的节点 b, 区域 4中不包括目的节点, 因此, 作为一种实施方式, 本发明实施例的节点 a的区 域划分模块 10在为节点 m划分区域时,可将节点 m划分到区域 1中。基于同 样的划分规则, 节点 0和节点 t划分到区域 3中。  As a possible implementation manner, in a specific implementation, when one of the two regions bounded by the boundary node includes a destination node that needs to receive data from the source node, the region dividing module 10 divides the boundary. The node is partitioned into an area of the two areas bounded by the demarcation node that includes a destination node that needs to receive data from the source node. For example, referring to FIG. 3 and FIG. 4, the node m is a boundary node of the area 1 and the area 4, wherein the area 1 includes the destination node b, and the area 4 does not include the destination node. Therefore, as an implementation manner, When the area dividing module 10 of the node a of the embodiment of the present invention divides the area for the node m, the node m can be divided into the area 1. Based on the same division rule, node 0 and node t are divided into area 3.
作为一种可行的实施方式, 具体实现中, 当以所述分界节点为界的两个区 域中均包括有需从所述源节点接收数据的目的节点, 区域划分模块 10将所述 分界节点划分到以所述分界节点为界的两个区域中的任意一个区域中。仍参考 图 3及参考图 4, 节点 c为区域 1和区域 2的分界节点, 其中, 区域 1包括目 的节点 b、 区域 2包括目的节点 d和目的节点 h。 因此, 作为一种实施方式, 本发明实施例节点 a的区域划分模块 10在为节点 c划分区域时, 将节点 c可 划分到区域 1和区域 2中任意一个区域中(图 4中以划分到区域 2中为图例;)。 基于同样的划分规则, 节点 g和节点 j也可划分到区域 2或区域 3中任意一个 区域中 (图 4中以划分到区域 3中为图例)。  As a possible implementation, in a specific implementation, when two regions bounded by the boundary node include a destination node that needs to receive data from the source node, the region dividing module 10 divides the boundary node. To any of the two regions bounded by the boundary node. Still referring to FIG. 3 and FIG. 4, node c is a boundary node of area 1 and area 2, wherein area 1 includes a destination node b, and area 2 includes a destination node d and a destination node h. Therefore, as an embodiment, when the area dividing module 10 of the node a of the embodiment of the present invention divides the area for the node c, the node c can be divided into any one of the area 1 and the area 2 (in FIG. 4 to divide into In the area 2 is the legend ;). Based on the same division rule, the node g and the node j can also be divided into any one of the area 2 or the area 3 (in FIG. 4, the division into the area 3 is a legend).
作为一种可行的实施方式, 具体实现中, 当以所述分界节点为界的两个区 域中均不包括有需从所述源节点接收数据的目的节点, 则区域划分模块 10将 分界节点划分到以所述分界节点为界的两个区域中已经包括有其他分界节点 的区域中。 比如, 参考图 5 , 以节点 0和节点 t为分界节点的区域 3和区域 4 中均不包括目的节点, 4叚设节点 0已经划分到区域 3中, 则对于节点 t也同样 划分到区域 3中, 以保持二者的统一。 As a possible implementation manner, in a specific implementation, when two destinations bounded by the boundary node do not include a destination node that needs to receive data from the source node, the region dividing module 10 The demarcation node is divided into regions in the two regions bounded by the demarcation node that have already included other demarcation nodes. For example, referring to FIG. 5, the destination node is not included in the region 3 and the region 4 in which the node 0 and the node t are demarcation nodes, and the node 0 has been divided into the region 3, and the node t is also divided into the region 3. In order to maintain the unity of the two.
下面针对图 4的区域划分结果, 对传输模块如何将数据传输给区域 1、 区 域 2及区域 3中的目的节点进行详细说明。  The following is a detailed description of how the transmission module transmits data to the destination nodes in Area 1, Area 2, and Area 3 for the result of the area division of Figure 4.
对于区域 1 , 参考图 6, 当传输模块 20确定出有目的节点 b之后, 将数据 从所述源节点 a传给所述区域直接与所述源节点相连第一个节点 b (传输途径 如图中箭头所示); 并以所述源节点 a原点, 所述源节点和所述第一个节点 b 所在轴线为 Y轴, 经过所述原点 a且与 Y轴垂直的轴为 X轴, 且设定所述第 一个节点 b的 Y坐标为正(图 6中 Y+方向)之后, 以 b为新的源节点, 由于 节点 b为区域 1中唯——个需从所述源节点 a接收数据的目的节点, 因此, 传 输模块执行步骤 A结束对所述区域 1的数据传输。 参考图 6可知, 经过本发 明实施例, 已经将数据成功传输到区域 1中的目的节点。  For the area 1, referring to FIG. 6, after the transmission module 20 determines that there is the destination node b, the data is transmitted from the source node a to the area and directly connected to the source node by the first node b (the transmission path is as shown in the figure And the origin of the source node a, the axis of the source node and the first node b is the Y axis, and the axis passing through the origin a and perpendicular to the Y axis is the X axis, and After setting the Y coordinate of the first node b to be positive (Y+ direction in FIG. 6), b is a new source node, and since node b is only one of the regions 1, it needs to receive from the source node a. The destination node of the data, therefore, the transmission module performs step A to end the data transmission to the area 1. Referring to Figure 6, it has been shown that data has been successfully transmitted to the destination node in Area 1 by embodiments of the present invention.
对于区域 2, 参考图 7 , 当传输模块 20确定出区域 2中有目的节点 d和目 的节点 h之后,将数据从所述源节点 a传给所述区域 2直接与所述源节点 a相 连第一个节点 e (传输途径如图中节点 a指向节点 e的箭头所示); 并以所述源 节点 a为原点, 所述源节点 a和所述第一个节点 e所在轴线为 Y轴, 经过所述 原点且与 Y轴垂直的轴为 X轴, 且设定所述第一个节点的 Y坐标为正(图 7 中 Y+方向), 然后以节点 e为新的源节点, 因为节点 e不是区域 2中唯一接收 数据的目的节点, 因此不执行步骤八。 同理, 区域 2中不存在与所述新的源节 点 e的 Y坐标相同且 X坐标为正的目的节点, 且, 实际上区域 2中根本不存 在与所述新的源点 e的 Y坐标相同且 X坐标为正的节点, 因此, 在 Β传输模 块 20可不进行任何处理。 同理 , 区域 2中也不存在与所述新的源节点 e的 Υ 坐标相同且 X坐标为负的目的节点, 因此, 在步骤 C时, 传输模块 20对区域 2中与所述新的源节点 e的 Y坐标相同且 X坐标为负的节点 c不进行任何操作, 因此在图 7中节点 c不被划分为任何区域块。 仍参考图 7, 当经过步骤 B及 C 处理后, 区域 2 中剩余的节点 (节点 d、 节点 f、 节点 h ) 中存在目的节点 d 和目的节点 h, 因此, 传输模块 20执行步骤 D, 将数据从所述新的源节点 e 传输到 Y坐标为正且与所述新的源节点 e直接相连的节点 f,将剩余的节点(节 点 d、 节点 f和节点 h )划分为一个新区域 22, 并将 Y坐标为正且与所述新的 源节点 e直接相连的节点 f作为新的源节点, 在区域 22范围内, 传输模块 20 跳转到步骤 A。 仍参考图 7, 当将区域 22作为新的区域范围, 节点 f作为新的 源节点之后, 存在与所述新的源节点 f的 Y坐标相同且 X坐标为正的目的节 点 h, 则传输模块 20执行步骤 B, 将数据从所述新的源节点 f传输到 X坐标 为正且与所述新的源节点 f直接相连的节点 h, 然后以 Y轴为边界(图 7中为 节点 e和 f所在轴), 将所述区域中 X坐标为正的所有节点划分为一个新区域 221 (不包括边界节点), 并在所述新区域 221范围内, 将所述 X坐标为正且 与所述新的源节点 f直接相连的节点 h作为新的源节点, 传输模块 20跳转到 步骤 A; 进一步, 由于新的源节点 h为区域 221中唯一的目的节点, 因此, 方 法在区域 221中的传输可结束。 因此, 可见, 数据成功从源节点 a传递给目的 节点 h。 同样, 参考图 7, 当传输模块 20将区域 22作为新的区域范围, 节点 f作为新的源节点之后,存在与所述新的源节点 f的 Y坐标相同且 X坐标为负 的目的节点 d, 则执行步骤 C, 将数据从所述新的源节点 f传输到 X坐标为负 且与所述新的源节点 f直接相连的节点 d, 然后以 Y轴为边界(图 7中为节点 e和 f所在轴), 将所述区域中 X坐标为负的所有节点划分为一个新区域 222 (同样可不包括边界节点), 并在所述新区域 222范围内, 将所述 X坐标为负 且与所述新的源节点 f直接相连的节点 d作为新的源节点, 跳转到步骤 A; 仍 参考图 7,新的源节点 d为区域 222中唯一的目的节点, 因此,方法在区域 222 中的传输可结束。 因此, 可见, 数据成功从源节点 a传递给目的节点 d。 For area 2, referring to FIG. 7, after the transmission module 20 determines that there is a destination node d and a destination node h in the area 2, data is transmitted from the source node a to the area 2 and directly connected to the source node a. a node e (the transmission path is as shown by the arrow pointing to the node e in the node a ); and the source node a is taken as the origin, and the axis of the source node a and the first node e is the Y axis. The axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in Fig. 7), and then the node e is the new source node because the node e It is not the destination node in Area 2 that only receives data, so Step 8 is not performed. Similarly, there is no destination node in the region 2 that has the same Y coordinate of the new source node e and the X coordinate is positive, and actually does not exist in the region 2 at all. At the node which is the same as the Y coordinate of the new source point e and the X coordinate is positive, therefore, no processing can be performed in the UI transmission module 20. Similarly, there is no destination node in the region 2 that has the same Υ coordinate and negative X coordinate as the new source node e. Therefore, in step C, the transmission module 20 pairs the new source in the region 2. The node c whose node Y has the same Y coordinate and whose X coordinate is negative does not perform any operation, and therefore the node c is not divided into any area block in FIG. Still referring to FIG. 7, after the processing of steps B and C, the destination node d and the destination node h exist in the remaining nodes (node d, node f, node h) in the area 2, therefore, the transmission module 20 performs step D, Data is transmitted from the new source node e to a node f having a positive Y coordinate and directly connected to the new source node e, dividing the remaining nodes (node d, node f, and node h) into a new region 22 And the node f whose positive Y coordinate is positive and directly connected to the new source node e is taken as a new source node, and within the range of the area 22, the transmission module 20 jumps to step A. Still referring to FIG. 7, when the area 22 is taken as a new area range, and after the node f is a new source node, there is a destination node h having the same Y coordinate and the X coordinate is positive, and the transmission module is Step 20 is performed to transfer data from the new source node f to a node h whose X coordinate is positive and directly connected to the new source node f, and then bounded by the Y axis (node e in FIG. 7) f is the axis), all nodes in the region whose X coordinate is positive are divided into a new region 221 (excluding the boundary node), and within the range of the new region 221, the X coordinate is positive and The new source node f is directly connected to the node h as a new source node, and the transmission module 20 jumps to step A; further, since the new source node h is the only destination node in the area 221, the method is in the area 221 The transfer can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node h. Similarly, referring to FIG. 7, after the transmission module 20 regards the area 22 as a new area range and the node f as a new source node, there is a destination node d having the same Y coordinate of the new source node f and a negative X coordinate. Then, performing step C, transferring data from the new source node f to a negative X coordinate And the node d directly connected to the new source node f is then bounded by the Y axis (the axis where the nodes e and f are located in FIG. 7), and all nodes in the region whose X coordinate is negative are divided into a new one. The area 222 (which may also not include the boundary node), and within the range of the new area 222, the node d which is negative in the X coordinate and directly connected to the new source node f is used as a new source node, and jumps to Step A; Still referring to FIG. 7, the new source node d is the only destination node in region 222, so the transmission of the method in region 222 can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node d.
对于区域 3 , 参考图 8, 当传输模块 20确定出区域 3中有目的节点 p和目 的节点 1和目的节点 i之后, 将数据从所述源节点 a传给所述区域 3直接与所 述源节点 a相连第一个节点 k(传输途径如图中节点 a指向节点 k的箭头所示); 并以所述源节点 a为原点, 所述源节点 a和所述第一个节点 k所在轴线为 Y 轴, 经过所述原点且与 Y轴垂直的轴为 X轴, 且设定所述第一个节点的 Y坐 标为正(图 8中 Y+方向), 然后以节点 k为新的源节点, 因为节点 k不是区域 2中唯一接收数据的目的节点, 因此传输模块 20不执行步骤 A。 同理, 区域 3 中不存在与所述新的源节点 k的 Y坐标相同且 X坐标为正的目的节点,因此, 传输模块 20在步骤 B对区域 3中与所述新的源节点 e的 Y坐标相同且 X坐标 为正的节点 0不进行任何操作。 同理, 区域 3中也不存在与所述新的源节点 e 的 Y坐标相同且 X坐标为负的目的节点, 因此,传输模块 20在步骤 C时, 对 区域 3中与所述新的源节点 e的 Y坐标相同且 X坐标为负的节点 g不进行任 何操作, 因此在图 8中节点 0和节点 g不被划分为任何区域块。 仍参考图 8, 当经过步骤 B及 C处理后, 区域 3中剩余的节点 (节点 t、 节点 p、 节点 1、 节点 i、 节点 j ) 中存在目的节点 p和目的节点 1和目的节点 i, 因此, 传输模 块 20执行步骤 D,将数据从所述新的源节点 k传输到 Y坐标为正且与所述新的 源节点 k直接相连的节点 1, 将剩余的节点 (节点 t、 节点 p、 节点 1、 节点 i、 节点 j )划分为一个新区域 32, 并将 Y坐标为正且与所述新的源节点 k直接相 连的节点 1作为新的源节点, 在区域 32范围内, 跳转到步骤 A。 仍参考图 8, 当将区域 32作为新的区域范围, 节点 1作为新的源节点之后, 存在与所述新 的源节点 1的 Y坐标相同且 X坐标为正的目的节点 p, 则执行步骤 B, 将数据 从所述新的源节点 1传输到 X坐标为正且与所述新的源节点 1直接相连的节点 p, 然后以 Y轴为边界(图 8中节点 a、 节点 k、 节点 1所在轴), 将所述区域 中 X坐标为正的所有节点划分为一个新区域 321 ,并在所述新区域 321范围内, 将所述 X坐标为正且与所述新的源节点 1直接相连的节点 p作为新的源节点, 跳转到步骤 A; 进一步, 由于新的源节点 p为区域 321中唯一的目的节点, 因 此, 方法在区域 321中的传输可结束,如果节点 p不是区域 321中唯一的目的 节点, 则区域 321还要按照本发明实施例的方法继续执行下去。 因此, 可见, 数据成功从源节点 a传递给目的节点 。 同样, 参考图 8, 当将区域 32作为新 的区域范围, 节点 1作为新的源节点之后, 存在与所述新的源节点 1的 Y坐标 相同且 X坐标为负的目的节点 i, 则执行步骤 C, 将数据从所述新的源节点 1 传输到 X坐标为负且与所述新的源节点 1直接相连的节点 i, 然后以与 Y轴为 边界(图 8中节点 a、 节点 k、 节点 1所在轴 ), 将所述区域中 X坐标为负的所 有节点划分为一个新区域 322, 并在所述新区域 322范围内, 将所述 X坐标为 负且与所述新的源节点 k直接相连的节点 i作为新的源节点, 跳转到步骤 A; 仍参考图 8, 新的源节点 i为区域 322中唯一的目的节点, 因此, 方法在区域 322中的传输可结束。 因此, 可见, 数据成功从源节点 a传递给目的节点 。 For region 3, referring to FIG. 8, after the transmission module 20 determines that there is a destination node p and a destination node 1 and a destination node i in the region 3, data is transmitted from the source node a to the region 3 directly to the source. The node a is connected to the first node k (the transmission path is as indicated by the arrow of the node a pointing to the node k in the figure); and the source node a is taken as the origin, and the axis of the source node a and the first node k are located For the Y axis, the axis passing through the origin and perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is set to be positive (Y+ direction in Fig. 8), and then the node k is the new source node. Since the node k is not the only destination node in the area 2 that receives data, the transmission module 20 does not perform step A. Similarly, there is no destination node in the region 3 that has the same Y coordinate of the new source node k and the X coordinate is positive. Therefore, the transmission module 20 in step B is in the region 3 with the new source node e. Node 0 with the same Y coordinate and positive X coordinate does not perform any operation. Similarly, in the region 3, there is also no destination node with the same Y coordinate of the new source node e and a negative X coordinate. Therefore, when the transmission module 20 is in step C, the new source is in the region 3 The node g whose node Y has the same Y coordinate and the X coordinate is negative does not perform any operation, and therefore node 0 and node g are not divided into any area block in FIG. Still referring to FIG. 8, after processing through steps B and C, the destination node p and the destination node 1 and the destination node i exist in the remaining nodes (node t, node p, node 1, node i, node j) in the region 3, Therefore, the transmission module 20 performs step D, transmitting data from the new source node k to the Y coordinate being positive and with the new The node 1 directly connected to the source node k divides the remaining nodes (node t, node p, node 1, node i, node j) into a new region 32, and the Y coordinate is positive and the new source node Node 1 directly connected to k acts as a new source node, and within the range of area 32, jumps to step A. Still referring to FIG. 8, when the area 32 is used as the new area range, after the node 1 is the new source node, there is a destination node p having the same Y coordinate and the X coordinate is positive as the new source node 1, and then the steps are performed. B, transmitting data from the new source node 1 to a node p whose X coordinate is positive and directly connected to the new source node 1, and then bordered by the Y axis (node a, node k, node in Fig. 8) 1 is located in the axis), all nodes in the region whose X coordinate is positive are divided into a new region 321 , and within the range of the new region 321 , the X coordinate is positive and the new source node 1 The directly connected node p acts as a new source node and jumps to step A; further, since the new source node p is the only destination node in the region 321, the transmission of the method in the region 321 can end, if the node p is not For the only destination node in the area 321, the area 321 is further executed in accordance with the method of the embodiment of the present invention. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node. Similarly, referring to FIG. 8, when the area 32 is taken as a new area range, after the node 1 is regarded as a new source node, there is a destination node i having the same Y coordinate of the new source node 1 and the X coordinate is negative, and then execution is performed. Step C, transmitting data from the new source node 1 to a node i whose X coordinate is negative and directly connected to the new source node 1, and then bordered with the Y axis (node a, node k in Fig. 8) , the axis where node 1 is located, divides all nodes in the region whose X coordinate is negative into a new region 322, and within the range of the new region 322, the X coordinate is negative and the new source The node i directly connected to the node k as a new source node jumps to step A; still referring to FIG. 8, the new source node i is the only destination node in the area 322, and therefore, the transmission of the method in the area 322 can end. Therefore, it can be seen that the data is successfully transmitted from the source node a to the destination node.
由此可见, 经过本发明实施例的方法, 可将数据成功从源节点传输给区域 1、 区域 2、 及区域 3中的所有目的节点。 It can be seen that the data can be successfully transmitted from the source node to the area through the method of the embodiment of the present invention. 1. All destination nodes in Area 2 and Area 3.
具体实现中, 在本发明的其他实施例中, 各源节点的传输模块 20还可用 于: 当针对所述四个独立区域的每个区域, 当所述区域不包括需从所述源节点 接收数据的目的节点时, 不向所述区域进行数据传输。  In a specific implementation, in another embodiment of the present invention, the transmission module 20 of each source node is further configured to: when each area of the four independent areas is received, when the area does not include receiving from the source node When the destination node of the data is not transmitted to the area.
由上可见, 在本发明的一些可行装置的实施方式中, 区域划分模块 10将 预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立 区域,所述分界节点划分到以所述分界节点为界的两个区域中的其中一个区域 中, 所述分界节点到所述源节点的水平距离和垂直距离相等; 传输模块 20针 对所述四个独立区域的每个区域, 当所述区域包括目的节点时,将数据从所述 源节点传给所述区域直接与所述源节点相连第一个节点,所述目前节点为需从 所述源节点接收数据的节点; 设定以所述源节点为原点, 所述源节点和所述第 一个节点所在轴线为 Y轴, 经过所述原点且与 Y轴垂直的轴为 X轴, 所述第 一个节点的 Y坐标为正,则以所述第一个节点为新的源节点执行如下操作: A, 当所述新的源节点为所述区域中唯——个目的节点时,结束对所述区域的数据 传输; B, 当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为正的 目的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节 点直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的所有节 点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述 新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区 域中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作; C , 当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负的目的节点 时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源节点直接相 连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有节点划分为 一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所述新的源节 点直接相连的节点作为新的源节点, 跳转到步骤 Α; 否则, 对所述区域中与所 述新的源节点的 Υ坐标相同且 X坐标为负的节点不进行任何操作; D, 当经 Β 和 C处理后, 所述区域中剩余的节点中存在目的节点时, 将数据从所述新的 源节点传输到 Υ坐标为正且与所述新的源节点直接相连的节点, 将剩余的节 点划分为一个新区域, 并在所述新区域范围内, 将所述 Υ坐标为正且与所述 新的源节点直接相连的节点作为新的源节点,跳转到步骤 Α。 由于本发明实施 例仅将源节点之外的节点划分为四个独立区域,其相对于现有技术的 8个区域 的划分实现方式更为简单。 与此同时, 本发明实施例在划分四个区域时, 以分 界节点作为区域的边界,在传输数据过程中实时更新源节点及基于新的源节点 重新划分区域, 这样的通信方法, 自然形成了长边优先传输原则, 其可减少数 据传输过程中的传输时延, 以及减少数据传输链路, 节省系统资源。 It can be seen that, in an implementation manner of some feasible devices of the present invention, the region dividing module 10 divides other nodes except the source node in the predetermined node range by the boundary node, and divides into four independent regions, and the boundary is divided. The node is divided into one of two regions bounded by the boundary node, the horizontal distance and the vertical distance of the boundary node to the source node being equal; the transmission module 20 is for each of the four independent regions And when the area includes the destination node, the data is transmitted from the source node to the area, and the first node is directly connected to the source node, where the current node needs to receive data from the source node. a node is set to take the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, the first node If the Y coordinate is positive, the following operation is performed by using the first node as a new source node: A, when the new source node is only a destination node in the area, ending the area Data transmission; B, when there is a destination node in the area that has the same Y coordinate as the new source node and the X coordinate is positive, the data is transmitted from the new source node to the X coordinate is positive and Describe the nodes directly connected to the new source node, and then divide all nodes in the region whose X coordinate is positive into a new region with the Y axis as the boundary, and within the new region, the X coordinate is The node directly connected to the new source node acts as a new source node, and jumps to step A; otherwise, the node with the same Y coordinate and positive X coordinate in the region as the new source node No operation is performed; C. when there is a destination node in the region that has the same Y coordinate and the X coordinate is negative, the data is transmitted from the new source node to the X coordinate is negative and Directly with the new source node Connected nodes, then with the Y-axis as a boundary, divide all nodes in the region whose X coordinate is negative into a new region, and within the new region, the X coordinate is negative and the new The node directly connected to the source node acts as a new source node, and jumps to step Α; otherwise, no operation is performed on the node in the region that has the same Υ coordinate and negative X coordinate as the new source node; When the destination node exists in the remaining nodes in the area after being processed by Β and C, data is transmitted from the new source node to a node whose Υ coordinate is positive and directly connected to the new source node, The remaining nodes are divided into a new area, and within the new area, the node whose coordinates are positive and directly connected to the new source node is taken as a new source node, and the process proceeds to step Α. Since the embodiment of the present invention divides only the nodes other than the source node into four independent regions, the implementation manner of the partitioning with respect to the eight regions of the prior art is simpler. At the same time, in the embodiment of the present invention, when four regions are divided, the boundary node is used as the boundary of the region, the source node is updated in real time during the data transmission process, and the region is re-divided based on the new source node. Such a communication method naturally forms. Long-edge priority transmission principle, which can reduce the transmission delay during data transmission, reduce the data transmission link, and save system resources.
相应的, 本发明实施例还公开了一种通信节点, 其具体结构如图 12所示, 具体实现中,本实施例的通信节点可为 Mesh无线网格网路结构中的一个节点。 下面结合附图, 对本发明实施例的通信节点的结构实施例进行举例说明。  Correspondingly, the embodiment of the present invention further discloses a communication node, and the specific structure thereof is shown in FIG. 12. In a specific implementation, the communication node in this embodiment may be a node in the Mesh wireless mesh network structure. The structural embodiment of the communication node in the embodiment of the present invention is exemplified in the following with reference to the accompanying drawings.
具体的, 如图 12所示, 本实施例的通信节点可包括输入装置 121、 输出 装置 122、 通信链路 123、 收发装置 124、 存储器 125以及处理器 126, 其中: 所述输入装置 121 , 用于接收外部输入所述通信节点的输入数据。 具体实 现中, 本发明实施例所述的输入装置 81可包括键盘、 鼠标、 光电输入装置、 声音输入装置、 触摸式输入装置、 扫描仪等。  Specifically, as shown in FIG. 12, the communication node in this embodiment may include an input device 121, an output device 122, a communication link 123, a transceiver device 124, a memory 125, and a processor 126, where: the input device 121 is used. The input data of the communication node is externally received. In a specific implementation, the input device 81 according to the embodiment of the present invention may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
所述输出设备 122,用于对外输出所述通信节点的输出数据。具体实现中, 本发明实施例所述的输出装置 82可包括显示器、 扬声器、 打印机等。 所述通信链路 123 , 用于建立所述通信节点与所述 Mesh无线网格网路结 构的其他节点通讯连接。 具体实现中, 本发明实施例所述的通信链路 83可是 传播介质的一个实例。 传播介质一般可以将计算机可读指令、 数据结构、 程序 模块或其他调制数据信号(诸如载波或其他传送机制)形式的其他数据具体化, 举例来说, 传播介质可包括有线媒体、 诸如优先网络或直线连接, 传播介质还 可包括无线介质, 比如声波、 射频、 红外线等。 The output device 122 is configured to output output data of the communication node to the outside. In the specific implementation, The output device 82 described in the embodiments of the present invention may include a display, a speaker, a printer, and the like. The communication link 123 is configured to establish a communication connection between the communication node and other nodes of the Mesh wireless mesh network structure. In a specific implementation, the communication link 83 described in the embodiment of the present invention may be an example of a propagation medium. The propagation medium can generally embody computer readable instructions, data structures, program modules or other data in the form of a modulated data signal (such as a carrier wave or other transport mechanism). For example, the propagation medium can include wired media, such as a priority network or In a straight line connection, the propagation medium may also include a wireless medium such as sound waves, radio frequency, infrared light, and the like.
所述收发装置 124 , 用于通过所述通信链路 123与所述 Mesh网络中的其 他节点进行通信, 比如, 收发数据。 具体实现中, 所述收发装置 84可为天线 等收发装置。  The transceiver device 124 is configured to communicate with other nodes in the Mesh network through the communication link 123, for example, to send and receive data. In a specific implementation, the transceiver device 84 can be a transceiver device such as an antenna.
所述存储器 125 , 用于存储带有各种功能的程序数据。 具体实现中, 本发 明实施例的存储器 84可以是系统存储器, 比如, 挥发性的 (诸如 RAM ), 非 易失性的(诸如 ROM, 闪存等), 或者两者的结合。 具体实现中, 本发明实施 例的存储器 125还可以是系统之外的外部存储器, 比如,磁盘、光盘、磁带等。  The memory 125 is configured to store program data with various functions. In a specific implementation, the memory 84 of an embodiment of the present invention may be a system memory, such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of both. In a specific implementation, the memory 125 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
所述处理器 126 , 用于调用所述存储器 125中存储的程序数据, 并执行如 下操作:  The processor 126 is configured to invoke program data stored in the memory 125, and perform the following operations:
将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域,所述分界节点划分到以所述分界节点为界的两个区域中的其中一 个区域中, 所述分界节点到所述源节点的水平距离和垂直距离相等;  Other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into one of two regions bounded by the boundary node. The horizontal distance and the vertical distance of the boundary node to the source node are equal;
针对所述四个独立区域的每个区域, 当所述区域包括目的节点时, 将数据 从所述源节点传给所述区域直接与所述源节点相连第一个节点,所述目前节点 为需从所述源节点接收数据的节点; 设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y 轴,经过所述原点且与 Y轴垂直的轴为 X轴,所述第一个节点的 Y坐标为正, 并以所述第一个节点为新的源节点执行如下操作: For each of the four independent regions, when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node; Setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node The coordinates are positive, and the first node is the new source node to perform the following operations:
A, 当所述新的源节点为所述区域中唯——个目的节点时, 结束对所述区 域的数据传输;  A, when the new source node is only one destination node in the area, ending data transmission to the area;
B,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为正的目 的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作; B, when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is positive in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node acts as a new source node, and jumps to step A; otherwise, does not perform any node in the region that has the same Y coordinate and the X coordinate is positive with the new source node. operating;
C,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负的目 的节点时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为负的节点不进行任何操作;C, when there is a destination node in the region that has the same Y coordinate as the new source node and the X coordinate is negative, transmitting data from the new source node to the X coordinate is negative and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is negative in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is negative and The node directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, no node with the same Y coordinate and negative X coordinate in the region as the new source node does not perform any operating;
D, 当经 B和 C处理后, 所述区域中剩余的节点中存在目的节点时, 将数 据从所述新的源节点传输到 Y坐标为正且与所述新的源节点直接相连的节点, 将剩余的节点划分为一个新区域, 并在所述新区域范围内, 将所述 Y坐标为 正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 D, when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
在一些可行的实施方式中,当以所述分界节点为界的两个区域的其中一个 区域包括有需从所述源节点接收数据的目的节点,所述处理器 126调用所述存 储器 125中的程序数据将预定节点范围内除源节点之外的其他节点,以分界节 点为界, 划分为四个独立区域时,将所述分界节点划分到所述以所述分界节点 为界的两个区域中的包括有需从所述源节点接收数据的目的节点的区域中。 In some possible implementations, when one of the two regions bounded by the demarcation node The area includes a destination node that needs to receive data from the source node, and the processor 126 invokes program data in the memory 125 to divide other nodes in the predetermined node range except the source node by a boundary node. When there are four independent regions, the demarcation node is divided into regions of the two regions bounded by the demarcation node including destination nodes that need to receive data from the source node.
在一些可行的实施方式中,当以所述分界节点为界的两个区域中均包括有 需从所述源节点接收数据的目的节点, 所述处理器 126 调用所述存储器 125 中的程序数据将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时,将所述分界节点划分到以所述分界节点为界的两个区 域中的任意一个区域中。  In some possible implementations, when two regions bounded by the demarcation node include a destination node that needs to receive data from the source node, the processor 126 invokes program data in the memory 125. When other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, the boundary node is divided into any two regions bounded by the boundary node. In the area.
在一些可行的实施方式中,当以所述分界节点为界的两个区域中均包括有 需从所述源节点接收数据的目的节点, 所述处理器 126 调用所述存储器 125 中的程序数据将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时,将分界节点划分到以所述分界节点为界的两个区域中 已经包括有其他分界节点的区域中。  In some possible implementations, when two regions bounded by the demarcation node include a destination node that needs to receive data from the source node, the processor 126 invokes program data in the memory 125. When other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, the boundary node is divided into two regions including the boundary node and other boundaries are included. In the area of the node.
在一些可行的实施方式中,针对所述四个独立区域的每个区域, 当所述区 域不包括需从所述源节点接收数据的目的节点时,所述处理器 126不调用所述 存储器 125中的程序数据来向所述区域进行数据传输。  In some possible implementations, for each of the four independent regions, the processor 126 does not invoke the memory 125 when the region does not include a destination node that needs to receive data from the source node. Program data in to transfer data to the area.
另外, 本发明实施例还提供了一种计算机存储介质, 该计算机存储介质可 存储有程序, 该程序执行时可运行本发明实施例所述的方法的部分或全部步 骤。具体实现中,本发明实施例的计算机存储介质包括: RAM、 ROM、 EEPROM、 闪存、 CD-ROM、 DVD或其他光存储器, 磁带、 磁盘或其他磁存储器, 或者 其他任何可以用于存储所需信息并可被计算机设备所访问的介质。 显然 f口变型而不脱离本发 明的精神和范围。这样,倘且本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。 In addition, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium can store a program, and the program can execute some or all of the steps of the method according to the embodiment of the present invention. In a specific implementation, the computer storage medium of the embodiment of the present invention includes: RAM, ROM, EEPROM, flash memory, CD-ROM, DVD or other optical storage, magnetic tape, magnetic disk or other magnetic storage, or any other information that can be used for storing information. A medium that can be accessed by a computer device. It is apparent that the f-port variants do not depart from the spirit and scope of the invention. Therefore, it is intended that the present invention cover the modifications and variations of the invention, and the modifications and variations of the invention are intended to be included.

Claims

权 利 要 求 Rights request
1、 一种基于 Mesh无线网格网路结构的点对多点通信方法, 其特征在于, 包括: A point-to-multipoint communication method based on a Mesh wireless mesh network structure, characterized in that:
将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域,所述分界节点划分到以所述分界节点为界的两个区域中的其中一 个区域中, 所述分界节点到所述源节点的水平距离和垂直距离相等;  Other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, and the boundary node is divided into one of two regions bounded by the boundary node. The horizontal distance and the vertical distance of the boundary node to the source node are equal;
针对所述四个独立区域的每个区域, 当所述区域包括目的节点时, 将数据 从所述源节点传给所述区域直接与所述源节点相连第一个节点,所述目前节点 为需从所述源节点接收数据的节点;  For each of the four independent regions, when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y 轴,经过所述原点且与 Y轴垂直的轴为 X轴,所述第一个节点的 Y坐标为正, 则以所述第一个节点为新的源节点执行如下操作:  Setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node If the coordinates are positive, perform the following operations with the first node as the new source node:
A, 当所述新的源节点为所述区域中唯——个目的节点时, 结束对所述区 域的数据传输;  A, when the new source node is only one destination node in the area, ending data transmission to the area;
B,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为正的目 的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作; B, when there is a destination node in the region that is the same as the Y coordinate of the new source node and the X coordinate is positive, transmitting data from the new source node to the X coordinate is positive and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is positive in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is positive and The node directly connected to the new source node acts as a new source node, and jumps to step A; otherwise, does not perform any node in the region that has the same Y coordinate and the X coordinate is positive with the new source node. operating;
C,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负的目 的节点时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为负的节点不进行任何操作;C, when there is a same in the region that the Y coordinate of the new source node is the same and the X coordinate is negative Node, transferring data from the new source node to a node whose X coordinate is negative and directly connected to the new source node, and then taking the Y axis as a boundary, and the X coordinate of the region is negative. The node is divided into a new area, and within the new area, the node whose X coordinate is negative and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, A node in the region that has the same Y coordinate as the new source node and a negative X coordinate does not perform any operation;
D, 当经 B和 C处理后, 所述区域中剩余的节点中存在目的节点时, 将数 据从所述新的源节点传输到 Y坐标为正且与所述新的源节点直接相连的节点, 将剩余的节点划分为一个新区域, 并在所述新区域范围内, 将所述 Y坐标为 正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 D, when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
2、 如权利要求 1所述的基于 Mesh无线网格网路结构的点对多点通信方 法, 其特征在于, 2. The point-to-multipoint communication method based on Mesh wireless mesh network structure according to claim 1, wherein:
当以所述分界节点为界的两个区域的其中一个区域包括有需从所述源节 点接收数据的目的节点,将预定节点范围内除源节点之外的其他节点, 以分界 节点为界, 划分为四个独立区域时, 所述分界节点划分到所述以所述分界节点 为界的两个区域中的包括有需从所述源节点接收数据的目的节点的区域中。  When one of the two regions bounded by the demarcation node includes a destination node that needs to receive data from the source node, other nodes except the source node in the predetermined node range are bounded by the demarcation node. When divided into four independent regions, the demarcation node is divided into an area of the two regions bounded by the demarcation node including a destination node that needs to receive data from the source node.
3、 如权利要求 1所述的基于 Mesh无线网格网路结构的点对多点通信方 法, 其特征在于, 3. The point-to-multipoint communication method based on Mesh wireless mesh network structure according to claim 1, wherein:
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点, 将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时,所述分界节点划分到以所述分界节点为界的两个区域 中的任意一个区域中。 When two regions bounded by the boundary node include a destination node that needs to receive data from the source node, the other nodes except the source node in the predetermined node range are bounded by the boundary node as When four independent regions are divided, the boundary node is divided into two regions bounded by the boundary node In any of the areas.
4、 如权利要求 1所述的基于 Mesh无线网格网路结构的点对多点通信方 法, 其特征在于, 4. The point-to-multipoint communication method based on Mesh wireless mesh network structure according to claim 1, wherein:
将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域时, 当以所述分界节点为界的两个区域中均不包括有需从所述源节 点接收数据的目的节点,则将分界节点划分到以所述分界节点为界的两个区域 中已经包括有其他分界节点的区域中。  When other nodes except the source node in the predetermined node range are divided into four independent regions by the boundary node, when the two regions bounded by the boundary node are not included, the source is not included. The node receives the destination node of the data, and then divides the demarcation node into an area in which two other nodes are already included in the two areas bounded by the demarcation node.
5、如权利要求 1-4中任一项所述的基于 Mesh无线网格网路结构的点对多 点通信方法, 其特征在于, The point-to-multipoint communication method based on the Mesh wireless mesh network structure according to any one of claims 1 to 4, characterized in that
针对所述四个独立区域的每个区域,当所述区域不包括需从所述源节点接 收数据的目的节点时, 不向所述区域进行数据传输。  For each of the four independent regions, when the region does not include a destination node that needs to receive data from the source node, no data transmission is performed to the region.
6、 一种通信节点, 为 Mesh无线网格网路结构中的节点, 其特征在于, 包括: 6. A communication node, which is a node in a Mesh wireless mesh network structure, and is characterized by:
区域划分模块, 用于将预定节点范围内除本节点之外的其他节点, 以分界 节点为界, 划分为四个独立区域, 所述分界节点划分到以所述分界节点为界的 两个区域中的其中一个区域中,所述分界节点到本节点的水平距离和垂直距离 相等;  a region dividing module, configured to divide other nodes except the local node in the predetermined node range by a boundary node, into four independent regions, where the boundary node is divided into two regions bounded by the boundary node In one of the regions, the horizontal distance and the vertical distance of the boundary node to the node are equal;
传输模块, 用于针对所述四个独立区域的每个区域, 当所述区域包括目的 节点时, 将数据从所述源节点传给所述区域直接与所述源节点相连第一个节 点, 所述目前节点为需从所述源节点接收数据的节点; 设定以所述源节点为原 点, 所述源节点和所述第一个节点所在轴线为 Y轴, 经过所述原点且与 Y轴 垂直的轴为 X轴, 所述第一个节点的 Y坐标为正, 则以所述第一个节点为新 的源节点执行如下操作: A, 当所述新的源节点为所述区域中唯——个目的节 点时, 结束对所述区域的数据传输; B, 当所述区域中存在与所述新的源节点 的 Y坐标相同且 X坐标为正的目的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点直接相连的节点, 然后以 Y轴为边界, 将所 述区域中 X坐标为正的所有节点划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳 转到步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标 为正的节点不进行任何操作; C, 当所述区域中存在与所述新的源节点的 Y坐 标相同且 X坐标为负的目的节点时, 将数据从所述新的源节点传输到 X坐标 为负且与所述新的源节点直接相连的节点, 然后以 Y轴为边界, 将所述区域 中 X坐标为负的所有节点划分为一个新区域, 并在所述新区域范围内, 将所 述 X坐标为负且与所述新的源节点直接相连的节点作为新的源节点, 跳转到 步骤 A; 否则, 对所述区域中与所述新的源节点的 Y坐标相同且 X坐标为负 的节点不进行任何操作; D, 当经 B和 C处理后, 所述区域中剩余的节点中存 在目的节点时, 将数据从所述新的源节点传输到 Y坐标为正且与所述新的源 节点直接相连的节点,将剩余的节点划分为一个新区域, 并在所述新区域范围 内, 将所述 Y坐标为正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 a transmission module, configured to, for each of the four independent areas, when the area includes a destination node, transfer data from the source node to the area and directly connect to the source node. Point, the current node is a node that needs to receive data from the source node; setting the source node as an origin, the axis of the source node and the first node is a Y axis, and the origin is The axis perpendicular to the Y axis is the X axis, and the Y coordinate of the first node is positive, then the first node is the new source node to perform the following operations: A, when the new source node is When only one destination node is in the region, the data transmission to the region ends; B, when there is a destination node in the region that has the same Y coordinate and the X coordinate is positive, Data is transmitted from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then all nodes in the region whose X coordinate is positive are divided into a new one with the Y axis as a boundary. a region, and within the new region, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, The new source node has the same Y coordinate and the X coordinate is positive No operation is performed; C, when there is a destination node in the region that has the same Y coordinate and the X coordinate is negative, the data is transmitted from the new source node to the X coordinate is negative and a node directly connected to the new source node, and then dividing all nodes in the region whose X coordinate is negative into a new region by using the Y-axis as a boundary, and within the new region, the X is a node whose coordinates are negative and directly connected to the new source node as a new source node, jumps to step A; otherwise, the Y coordinate of the new source node in the region is the same and the X coordinate is negative The node does not perform any operation; D, when the destination node exists in the remaining nodes in the area after being processed by B and C, the data is transmitted from the new source node to the Y coordinate is positive and the new a node directly connected to the source node, dividing the remaining node into a new area, and in the range of the new area, using the node whose Y coordinate is positive and directly connected to the new source node as a new source Node, jump to step A.
7、 如权利要求 6所述的通信节点, 其特征在于, 当以所述分界节点为界 的两个区域的其中一个区域包括有需从所述源节点接收数据的目的节点,所述 区域划分模块具体用于,将预定节点范围内除源节点之外的其他节点, 以分界 节点为界, 划分为四个独立区域, 并且所述分界节点划分到以所述分界节点为 界的两个区域中的包括有需从所述源节点接收数据的目的节点的区域中。 7. The communication node according to claim 6, wherein one of two areas bounded by said boundary node includes a destination node that needs to receive data from said source node, said area division The module is specifically configured to divide other nodes except the source node in the predetermined node range, and divide the boundary node into four independent regions, and divide the boundary node into two regions bounded by the boundary node. The inclusion in the area of the destination node that needs to receive data from the source node.
8、 如权利要求 6所述的通信节点, 其特征在于, 当以所述分界节点为界 的两个区域中均包括有需从所述源节点接收数据的目的节点时,所述区域划分 模块具体用于,将预定节点范围内除源节点之外的其他节点,以分界节点为界, 划分为四个独立区域,并且所述分界节点划分到以所述分界节点为界的两个区 域中的任意一个区域中。 8. The communication node according to claim 6, wherein when the two areas bounded by the boundary node each include a destination node that needs to receive data from the source node, the area division module Specifically, the node other than the source node in the predetermined node range is divided into four independent regions by using the boundary node, and the boundary node is divided into two regions bounded by the boundary node. In any of the areas.
9、 如权利要求 6所述的通信节点, 其特征在于, 当以所述分界节点为界 的两个区域中均不包括有需从所述源节点接收数据的目的节点,所述区域划分 模块具体用于,将预定节点范围内除源节点之外的其他节点,以分界节点为界, 划分为四个独立区域,并且所述分界节点划分到以所述分界节点为界的两个区 域中已经包括有其他分界节点的区域中。 9. The communication node according to claim 6, wherein when the two areas bounded by the boundary node do not include a destination node that needs to receive data from the source node, the area division module Specifically, the node other than the source node in the predetermined node range is divided into four independent regions by using the boundary node, and the boundary node is divided into two regions bounded by the boundary node. Already included in areas with other demarcation nodes.
10、 如权利要求 6-9中任一项所述的通信节点, 其特征在于, 所述传输模 块还用于,针对所述四个独立区域的每个区域, 当所述区域不包括需从所述源 节点接收数据的目的节点时, 不向所述区域进行数据传输。 The communication node according to any one of claims 6 to 9, wherein the transmission module is further configured to: for each of the four independent areas, when the area does not include When the source node receives the destination node of the data, the data is not transmitted to the area.
11、 一种通信节点, 为 Mesh无线网格网路结构中的节点, 其特征在于, 包括: 输入装置、 输出装置、 通信链路、 收发装置、存储器以及处理器, 其中: 所述输入装置, 用于接收外部输入到所述通信节点的输入数据; A communication node, which is a node in a Mesh wireless mesh network structure, comprising: an input device, an output device, a communication link, a transceiver device, a memory, and a processor, wherein: the input device, Input data for receiving an external input to the communication node;
所述输出设备, 用于对外输出所述通信节点的输出数据;  The output device is configured to output output data of the communication node to the outside;
所述通信链路, 用于建立所述通信节点与所述 Mesh无线网格网路结构的 其他节点的通信链路;  The communication link is configured to establish a communication link between the communication node and other nodes of the Mesh wireless mesh network structure;
所述收发装置, 用于通过所述通信链路与所述 Mesh无线网格网路结构的 其他节点进行通讯;  The transceiver device is configured to communicate with other nodes of the Mesh wireless mesh network structure through the communication link;
所述存储器, 用于存储带有各种功能的程序或非程序数据;  The memory is configured to store program or non-program data with various functions;
所述处理器, 用于调用所述存储器中存储的程序数据, 并执行如下操作: 将预定节点范围内除源节点之外的其他节点, 以分界节点为界, 划分为四 个独立区域,所述分界节点划分到以所述分界节点为界的两个区域中的其中一 个区域中, 所述分界节点到所述源节点的水平距离和垂直距离相等;  The processor is configured to invoke program data stored in the memory, and perform the following operations: dividing other nodes in the predetermined node range except the source node by the boundary node into four independent regions. Demarcation nodes are divided into one of two regions bounded by the boundary node, and the horizontal distance and the vertical distance of the boundary node to the source node are equal;
针对所述四个独立区域的每个区域, 当所述区域包括目的节点时, 将数据 从所述源节点传给所述区域直接与所述源节点相连第一个节点,所述目前节点 为需从所述源节点接收数据的节点;  For each of the four independent regions, when the region includes a destination node, data is transmitted from the source node to the region, and the first node is directly connected to the source node, and the current node is a node that needs to receive data from the source node;
设定以所述源节点为原点, 所述源节点和所述第一个节点所在轴线为 Y 轴,经过所述原点且与 Y轴垂直的轴为 X轴,所述第一个节点的 Y坐标为正, 并以所述第一个节点为新的源节点执行如下操作:  Setting the source node as an origin, the axis of the source node and the first node is a Y axis, and an axis passing through the origin and perpendicular to the Y axis is an X axis, and Y of the first node The coordinates are positive, and the first node is the new source node to perform the following operations:
A, 当所述新的源节点为所述区域中唯——个目的节点时, 结束对所述区 域的数据传输;  A, when the new source node is only one destination node in the area, ending data transmission to the area;
B,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为正的目 的节点时, 将数据从所述新的源节点传输到 X坐标为正且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为正的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为正且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为正的节点不进行任何操作;B, when the region has the same Y coordinate as the new source node and the X coordinate is positive a node, transmitting data from the new source node to a node whose X coordinate is positive and directly connected to the new source node, and then taking the Y coordinate as a boundary, and making the X coordinate of the region positive The node is divided into a new area, and within the new area, the node whose X coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, The node in the region that has the same Y coordinate as the new source node and the X coordinate is positive does not perform any operation;
C,当所述区域中存在与所述新的源节点的 Y坐标相同且 X坐标为负的目 的节点时, 将数据从所述新的源节点传输到 X坐标为负且与所述新的源节点 直接相连的节点, 然后以 Y轴为边界, 将所述区域中 X坐标为负的所有节点 划分为一个新区域, 并在所述新区域范围内, 将所述 X坐标为负且与所述新 的源节点直接相连的节点作为新的源节点, 跳转到步骤 A; 否则, 对所述区域 中与所述新的源节点的 Y坐标相同且 X坐标为负的节点不进行任何操作;C, when there is a destination node in the region that has the same Y coordinate as the new source node and the X coordinate is negative, transmitting data from the new source node to the X coordinate is negative and the new a node directly connected to the source node, and then dividing the nodes whose X coordinate is negative in the region into a new region with the Y axis as a boundary, and within the new region, the X coordinate is negative and The node directly connected to the new source node is used as a new source node, and jumps to step A; otherwise, no node with the same Y coordinate and negative X coordinate in the region as the new source node does not perform any operating;
D, 当经 B和 C处理后, 所述区域中剩余的节点中存在目的节点时, 将数 据从所述新的源节点传输到 Y坐标为正且与所述新的源节点直接相连的节点, 将剩余的节点划分为一个新区域, 并在所述新区域范围内, 将所述 Y坐标为 正且与所述新的源节点直接相连的节点作为新的源节点, 跳转到步骤 A。 D, when the destination node exists in the remaining nodes in the area after being processed by B and C, transmitting data from the new source node to a node whose Y coordinate is positive and directly connected to the new source node Dividing the remaining nodes into a new area, and in the range of the new area, the node whose Y coordinate is positive and directly connected to the new source node is used as a new source node, and jumps to step A. .
12、 如权利要求 11所述的通信节点, 其特征在于, 12. The communication node of claim 11 wherein:
当以所述分界节点为界的两个区域的其中一个区域包括有需从所述源节 点接收数据的目的节点,所述处理器调用所述存储器中的程序数据将预定节点 范围内除源节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时, 将所述分界节点划分到所述以所述分界节点为界的两个区域中的包括有需从 所述源节点接收数据的目的节点的区域中。 When one of the two regions bounded by the demarcation node includes a destination node that needs to receive data from the source node, the processor invokes program data in the memory to divide the source node within a predetermined node range Other nodes other than the boundary node are divided into four independent regions, and the boundary node is divided into two regions in which the boundary node is bounded by the source node In the area of the destination node that receives the data.
13、 如权利要求 11所述的通信节点, 其特征在于, 13. The communication node of claim 11 wherein:
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点,所述处理器调用所述存储器中的程序数据将预定节点范围内除源 节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时, 将所述分界 节点划分到以所述分界节点为界的两个区域中的任意一个区域中。  When both areas bounded by the demarcation node include a destination node that needs to receive data from the source node, the processor invokes program data in the memory to exclude a source node from a predetermined node range. The other nodes are divided into four independent regions by the boundary nodes, and the boundary nodes are divided into any one of two regions bounded by the boundary nodes.
14、 如权利要求 11所述的通信节点, 其特征在于, 14. The communication node of claim 11 wherein:
当以所述分界节点为界的两个区域中均包括有需从所述源节点接收数据 的目的节点,所述处理器调用所述存储器中的程序数据将预定节点范围内除源 节点之外的其他节点, 以分界节点为界, 划分为四个独立区域时, 将分界节点 划分到以所述分界节点为界的两个区域中已经包括有其他分界节点的区域中。  When both areas bounded by the demarcation node include a destination node that needs to receive data from the source node, the processor invokes program data in the memory to exclude a source node from a predetermined node range. The other nodes, divided by the boundary node, are divided into four independent regions, and the boundary nodes are divided into regions in the two regions bounded by the boundary nodes that have already included other boundary nodes.
15、 如权利要求 11-14中任一项所述的通信节点, 其特征在于, The communication node according to any one of claims 11 to 14, characterized in that
针对所述四个独立区域的每个区域,当所述区域不包括需从所述源节点接 收数据的目的节点时,所述处理器不调用所述存储器中的程序数据来向所述区 域进行数据传输。  For each of the four independent regions, when the region does not include a destination node that needs to receive data from the source node, the processor does not invoke program data in the memory to perform the region data transmission.
16、一种计算机存储介质,其特征在于,该计算机存储介质可存储有程序, 给程序执行时可包括如权利要求 1-5中任一项所述方法的部分或全部步骤。 A computer storage medium, characterized in that the computer storage medium can store a program, and the program execution can include some or all of the steps of the method of any one of claims 1-5.
PCT/CN2014/083807 2014-08-06 2014-08-06 Point-to-multipoint communication method and communication node based on mesh structure WO2016019527A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/083807 WO2016019527A1 (en) 2014-08-06 2014-08-06 Point-to-multipoint communication method and communication node based on mesh structure
CN201480034143.2A CN105637936B (en) 2014-08-06 2014-08-06 Point-to-multipoint communication and communication node based on Mesh structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/083807 WO2016019527A1 (en) 2014-08-06 2014-08-06 Point-to-multipoint communication method and communication node based on mesh structure

Publications (1)

Publication Number Publication Date
WO2016019527A1 true WO2016019527A1 (en) 2016-02-11

Family

ID=55263008

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/083807 WO2016019527A1 (en) 2014-08-06 2014-08-06 Point-to-multipoint communication method and communication node based on mesh structure

Country Status (2)

Country Link
CN (1) CN105637936B (en)
WO (1) WO2016019527A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10560359B2 (en) 2016-12-23 2020-02-11 Cisco Technology, Inc. Method and device for reducing multicast flow joint latency

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102272A (en) * 2007-07-13 2008-01-09 北京航空航天大学 A routing update method
CN101572726A (en) * 2008-05-01 2009-11-04 英特尔公司 Method and apparatus for hierarchical routing in multiprocessor mesh-based systems
US20120002570A1 (en) * 2010-06-30 2012-01-05 Brother Kogyo Kabushiki Kaisha Coordinating and Establishing Communication Networks Between Communication Devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102272A (en) * 2007-07-13 2008-01-09 北京航空航天大学 A routing update method
CN101572726A (en) * 2008-05-01 2009-11-04 英特尔公司 Method and apparatus for hierarchical routing in multiprocessor mesh-based systems
US20120002570A1 (en) * 2010-06-30 2012-01-05 Brother Kogyo Kabushiki Kaisha Coordinating and Establishing Communication Networks Between Communication Devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10560359B2 (en) 2016-12-23 2020-02-11 Cisco Technology, Inc. Method and device for reducing multicast flow joint latency

Also Published As

Publication number Publication date
CN105637936B (en) 2019-05-28
CN105637936A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
WO2020156591A1 (en) Multi-link data transmission method and device, and storage medium
JP6892445B2 (en) Cross-resource subscription for M2M service tier
US9166880B2 (en) Dynamic address assignment for address aggregation in low power and lossy networks
WO2020062959A1 (en) Data configuration method and apparatus
WO2019062596A1 (en) Service processing method and device based on servitization architecture
WO2020093887A1 (en) Data transmission method and device for network-on-chip (noc) and electronic device
WO2020119523A1 (en) Network channel switching method and apparatus, device, and storage medium
TWI721264B (en) Method for establishing a bidirectional route between a route originator node and a route destination node
WO2018219148A1 (en) Method, device and system for managing transmission network slices
US9954775B2 (en) Software-defined network (SDN) system using host abstraction, and method for implementing the same
JP7246379B2 (en) Service layer message templates in communication networks
WO2020134827A1 (en) Path creation method and apparatus for network-on-chip and electronic device
US20240064611A1 (en) Federated learning method and apparatus applied to mobile communication system, and terminal and medium
WO2016019527A1 (en) Point-to-multipoint communication method and communication node based on mesh structure
US9036465B2 (en) Hierarchical network with active redundant links
CN107211236B (en) Resource link management equipment and method for service layer
WO2020167738A1 (en) Wide-area mesh network
WO2016033809A1 (en) Mesh structure-based point-to-multipoint communication method and communication node
Dolev et al. Empire of colonies self-stabilizing and self-organizing distributed algorithms
CN103595631A (en) Method and device for setting up route
US9807203B2 (en) Method and apparatus for content transmission and content reception
WO2020119824A1 (en) Device control method and apparatus, control node, network device, and data center
WO2016062071A1 (en) Concurrence processing method, apparatus and system for service creation and increment discovery
CN108632824B (en) Information transmission method and information transmission device
WO2015157953A1 (en) Mesh structure-based point-to-multipoint communication method, and communication nodes

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14899433

Country of ref document: EP

Kind code of ref document: A1