Communication method and device in target area and power station
By using the target communication node to send identification information and local connection relationships in the wireless network, and generating an adjacency matrix, the problems of low data transmission efficiency and response time are solved, and cost savings and protocol simplification are achieved.
Patent Information
- Application Number
- CN202411875871.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-02-18
AI Technical Summary
In the wireless network composed of multiple communication nodes, data transmission efficiency and response time are affected, and the cost of increasing auxiliary equipment is high and the interaction protocol is complex.
Through the target communication node, the identification information is sent to the adjacent node, the local connection relationship is received and sent, the adjacency matrix is generated, and data transmission is realized.
Improves data transmission efficiency and response time, reduces equipment costs, and simplifies interactive protocols.
Smart Images

Figure CN119485783A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a communication method, device and power station in a target area. Background Art
[0002] In a wireless network composed of multiple communication nodes, each communication node needs to first transmit data to a commonly connected communication node during data interaction, and then select a suitable path through the commonly connected communication node based on the topological structure of multiple communication nodes to transmit the data to the communication node that needs the data, which affects the data response time. In related technologies, fast data interaction is mainly achieved by adding auxiliary communication equipment. However, the above method increases equipment costs, and requires the design of complex interaction protocols based on hardware equipment, which is difficult to operate. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a communication method, device and power station in a target area, which improves data transmission efficiency and data response time without increasing additional equipment costs, effectively saving communication costs.
[0004] In a first aspect, the present application provides a communication method in a target area, wherein the target area includes a plurality of communication nodes, and adjacent communication nodes are communicatively connected; the method includes:
[0005] The target communication node among the multiple communication nodes sends identification information corresponding to the target communication node to an adjacent communication node, and receives identification information corresponding to each adjacent communication node sent by each adjacent communication node;
[0006] Based on the identification information, a local connection relationship is sent to each of the adjacent communication nodes; the local connection relationship is used to characterize the information of the communication node adjacent to the target communication node, and to receive the local connection relationship corresponding to other communication nodes sent by the adjacent communication node; the other communication nodes are the communication nodes other than the target communication node among the multiple communication nodes;
[0007] Based on the local connection relationship corresponding to each of the communication nodes, an adjacency matrix corresponding to the target area is generated; the adjacency matrix is used for each of the communication nodes in the target area to perform data transmission.
[0008] According to the communication method within the target area of the present application, the target communication node sends identification information to the adjacent communication node and receives the identification information sent by the adjacent communication node, so as to send the local connection relationship corresponding to the target communication node based on the identification information, and receive the local connection relationship corresponding to other communication nodes, thereby generating an adjacency matrix for communication between the communication nodes based on multiple local connection relationships. The generation method of the adjacency matrix is simple and easy to operate, and data transmission is performed based on the adjacency matrix. On the basis of improving data transmission efficiency and data response time, there is no need to increase additional equipment costs, thereby effectively saving communication costs.
[0009] According to the communication method within the target area of the present application, the sending of the local connection relationship to each of the adjacent communication nodes based on the identification information includes:
[0010] Determining a communication node adjacent to the target communication node based on the received identification information;
[0011] Determine the local connection relationship corresponding to the target communication node based on the identification information corresponding to the adjacent communication node and the identification information corresponding to the target communication node;
[0012] The local connection relationship is sent to each of the adjacent communication nodes.
[0013] According to the communication method within the target area of the present application, generating an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each of the communication nodes includes:
[0014] Determine the local connection relationship corresponding to the other communication nodes based on the received local connection relationship;
[0015] Based on the local connection relationship corresponding to each of the communication nodes, an adjacency matrix corresponding to the target area is generated.
[0016] According to the communication method within the target area of the present application, after generating the adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each of the communication nodes, the method further includes:
[0017] Based on the adjacency matrix and data transmission requirements corresponding to the data to be transmitted, the data to be transmitted is transmitted; the data transmission requirements include: point-to-point data transmission and / or broadcast data transmission.
[0018] According to the communication method within the target area of the present application, the transmitting of the data to be transmitted based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted includes:
[0019] In a case where the data transmission requirement is the point-to-point data transmission, determining a receiving communication node from each of the communication nodes based on the data transmission requirement;
[0020] Determining a data transmission path based on the adjacency matrix, the target communication node, and the receiving communication node;
[0021] Based on the data transmission path, the data to be transmitted is transmitted.
[0022] According to the communication method within the target area of the present application, determining the data transmission path based on the adjacency matrix, the target communication node and the receiving communication node includes:
[0023] Based on the adjacency matrix, the target communication node, and the receiving communication node, obtaining a plurality of candidate transmission paths;
[0024] The candidate transmission path including the least number of communication nodes among the multiple candidate transmission paths is determined as the data transmission path.
[0025] According to the communication method within the target area of the present application, the transmitting of the data to be transmitted based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted includes:
[0026] In the case where the data transmission requirement is the broadcast data transmission, based on the adjacency matrix, the broadcast receiving node corresponding to the target communication node is determined from each of the communication nodes, so that the broadcast receiving node can determine the transit communication node based on the adjacency matrix, and the transit communication node is updated to the target communication node to transmit the data to be transmitted.
[0027] According to the communication method within the target area of the present application, the method further includes:
[0028] receiving a target signal sent by a base station;
[0029] Determining the signal strength corresponding to the target communication node based on the received signal strength corresponding to the target signal;
[0030] Based on the adjacency matrix, sending the signal strength corresponding to the target communication node, and receiving the signal strength corresponding to the other communication nodes;
[0031] In a case where the signal strength corresponding to the target communication node is the maximum signal strength among the multiple communication nodes, the target communication node is determined as a communication node connected to the base station.
[0032] According to the communication method within the target area of the present application, the multiple communication nodes communicate with each other through wireless networking.
[0033] According to the communication method within the target area of the present application, the adjacent communication nodes among the plurality of communication nodes are communicatively connected via the 802.11 wireless protocol.
[0034] According to the communication method within the target area of the present application, the adjacent communication nodes transmit data via 802.11 management frames.
[0035] In a second aspect, the present application provides a communication device in a target area, wherein the target area includes a plurality of communication nodes, and adjacent communication nodes are communicatively connected; the device includes:
[0036] A first processing module, configured to enable a target communication node among the plurality of communication nodes to send identification information corresponding to the target communication node to an adjacent communication node, and to receive identification information corresponding to each adjacent communication node sent by each adjacent communication node;
[0037] A second processing module is used to send a local connection relationship to other communication nodes based on the identification information; the local connection relationship is used to represent information of communication nodes adjacent to the target communication node, and receive the local connection relationship corresponding to the other communication nodes sent by the other communication nodes;
[0038] The third processing module is used to generate an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each of the communication nodes; the adjacency matrix is used for each of the communication nodes in the target area to perform data transmission.
[0039] According to the communication device within the target area of the present application, by making the target communication node send identification information to the adjacent communication node and receive the identification information sent by the adjacent communication node, based on the identification information, the local connection relationship corresponding to the target communication node is sent, and the local connection relationship corresponding to other communication nodes is received, thereby generating an adjacency matrix for communication between the communication nodes based on multiple local connection relationships. The generation method of the adjacency matrix is simple and easy to operate, and data transmission is performed based on the adjacency matrix. On the basis of improving data transmission efficiency and data response time, there is no need to increase additional equipment costs, thereby effectively saving communication costs.
[0040] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the communication method within the target area as described in the first aspect above is implemented.
[0041] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the communication method within the target area as described in the first aspect above is implemented.
[0042] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the communication method within the target area as described in the first aspect above.
[0043] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0044] By making the target communication node send identification information to the adjacent communication node and receive the identification information sent by the adjacent communication node, based on the identification information, the local connection relationship corresponding to the target communication node is sent, and the local connection relationship corresponding to other communication nodes is received, thereby generating an adjacency matrix for communication between the communication nodes based on multiple local connection relationships. The generation method of the adjacency matrix is simple and easy to operate, and data transmission is based on the adjacency matrix. On the basis of improving data transmission efficiency and data response time, there is no need to increase additional equipment costs, thereby effectively saving communication costs.
[0045] Furthermore, from a plurality of candidate transmission paths, a candidate transmission path including the least number of communication nodes is selected as the data transmission path, so as to address the problem of the data transmission path being too long and effectively reduce the data transmission time.
[0046] Furthermore, by determining that the data transmission demand is broadcast data transmission, the transit communication node is determined through the adjacency matrix. On the basis of ensuring that each broadcast receiving node can receive the data to be transmitted, the number of transit communication nodes and the number of forwarding times of the transit communication nodes are reduced, and the data that needs to be broadcast by the target communication node is sent to each broadcast receiving node in a shorter time, thereby improving data transmission efficiency and data response time.
[0047] Furthermore, by receiving the target signal sent by the base station, the signal strength corresponding to the target communication node is determined, and the signal strength corresponding to other communication nodes is received, thereby clarifying the signal strength corresponding to each communication node. When the signal strength of the target communication node is the largest, the target communication node is determined as the communication node connected to the base station. The connection process is simple and the connection time is short, which effectively reduces the occurrence of network congestion and improves connection efficiency.
[0048] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0050] Figure 1 It is one of the flowcharts of the communication method within the target area provided in the embodiment of the present application;
[0051] Figure 2 This is one of the principle schematic diagrams of the communication method within the target area provided in the embodiment of the present application;
[0052] Figure 3 This is the second principle schematic diagram of the communication method within the target area provided in the embodiment of the present application;
[0053] Figure 4 This is a second flow chart of a communication method within a target area provided in an embodiment of the present application;
[0054] Figure 5 This is a third flow chart of the communication method within the target area provided in the embodiment of the present application;
[0055] Figure 6 This is a fourth flow chart of the communication method within the target area provided in an embodiment of the present application;
[0056] Figure 7 This is the third principle schematic diagram of the communication method within the target area provided in the embodiment of the present application;
[0057] Figure 8 This is the fourth principle schematic diagram of the communication method within the target area provided in the embodiment of the present application;
[0058] Fig. 9 This is the fifth principle schematic diagram of the communication method within the target area provided in the embodiment of the present application;
[0059] Fig.10 is a schematic diagram of the structure of a communication device within a target area provided by an embodiment of the present application;
[0060] Fig.11 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0062] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0063] In conjunction with the accompanying drawings, the communication method within the target area, the communication device within the target area, the power station, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0064] The communication method within the target area may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.
[0065] The terminal includes but is not limited to portable communication devices such as mobile phones or tablet computers. It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer.
[0066] In the following various embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse and a joystick.
[0067] The communication method within the target area provided in the embodiment of the present application, the execution subject of the communication method within the target area can be a power station, or it can be a communication device within the target area set on the power station, or it can also be a server electrically connected to the power station (wired or wireless connection), or it can also be a user terminal connected to the power station for communication, including but not limited to mobile terminals and non-mobile terminals.
[0068] like Figure 1 As shown, the communication method within the target area includes: step 110, step 120 and step 130.
[0069] The target area is the area covered by multiple communication nodes.
[0070] The specific scope of the target area can be determined based on actual conditions and is not limited in this application.
[0071] The target area may include multiple communication nodes.
[0072] Adjacent communication nodes are connected to each other.
[0073] The communication connection modes between adjacent communication nodes may include: wireless communication connection and wired communication connection.
[0074] Step 110: a target communication node among the plurality of communication nodes sends identification information corresponding to the target communication node to an adjacent communication node, and receives identification information corresponding to each adjacent communication node sent by each adjacent communication node;
[0075] In this step, the communication node may be a node with communication capability such as a power station, an energy storage system, and an inverter that needs to communicate with other devices.
[0076] The power stations may include different types of power stations such as solar power stations, hydropower stations and wind power stations.
[0077] The target communication node is any communication node among the multiple communication nodes.
[0078] The adjacent communication nodes are nodes that can directly communicate with the target communication node.
[0079] For example, the communication nodes in the target area include A, B, C, D, E, F, G, H, I and J. The connection relationship between the communication nodes can be as follows: Figure 2 shown.
[0080] It should be noted that, in the actual implementation process, the communication nodes adjacent to the target communication node may be determined based on the physical distance between the communication nodes.
[0081] However, the target communication node is not sure which specific communication nodes are its adjacent communication nodes. The target communication node may send identification information corresponding to the target communication node to the adjacent communication nodes so that the adjacent communication nodes can perceive its existence.
[0082] Likewise, the target communication node may also receive identification information sent by an adjacent communication node to sense the existence of the communication node adjacent to the target communication node.
[0083] The identification information is an identification that can identify a specific communication node.
[0084] The identification information may include: the name of the communication node, the model of the communication node, the serial number of the communication node, the nameplate of the communication node and other unique information.
[0085] During the actual execution process, the target communication node may send identification information of the target communication node to its adjacent communication nodes to inform the adjacent communication nodes that the target communication node is a communication node adjacent to it.
[0086] The following takes the target communication node B as an example to illustrate the communication process of the target communication node.
[0087] Continue to refer Figure 2 , the target communication node B can send the identification information of the target communication node B to the communication nodes other than the target communication node B in the form of broadcasting, and the communication nodes A, C, E, F and G adjacent to the target communication node B will receive the identification information of the target communication node B, and the communication nodes A, C, E, F and G determine that the target communication node B is included in the adjacent communication nodes.
[0088] Similarly, the target communication node can also receive the identification information sent by its adjacent communication node. Figure 2 , the target communication node B will receive the identification information sent by the adjacent communication nodes A, C, E, F and G respectively.
[0089] It should be noted that each communication node in the target area can send its own identification information and receive identification information of communication nodes other than itself in the same manner as the target communication node, which will not be described here to avoid repetition.
[0090] In some embodiments, multiple communication nodes may communicate with each other via wireless networking.
[0091] In this embodiment, during the actual execution process, multiple communication nodes can be connected through wireless communication technology to obtain a wireless network to achieve data interaction and shared resources, that is, to obtain wireless networking, and communication is performed based on the actual connection status of the wireless networking.
[0092] The wireless networking communication method may include: WiFi communication, Bluetooth communication, TPUNB (Techphant Ultra-Narrow Band) and other communication methods.
[0093] It should be noted that, when multiple communication nodes communicate via WiFi, each communication node can also communicate in a wireless terminal (Station) mode and a hotspot (Access Point) mode.
[0094] According to the communication method within the target area provided in the embodiment of the present application, multiple communication nodes are enabled to communicate through wireless networking, without the need to lay physical lines, thus facilitating deployment and reducing costs.
[0095] In some embodiments, adjacent communication nodes among the plurality of communication nodes are communicatively connected via an 802.11 wireless protocol.
[0096] In this embodiment, the 802.11 wireless protocol is a wireless local area network standard, providing convenient wireless Internet access services.
[0097] The 802.11 wireless protocol is a protocol related to WiFi communication.
[0098] It can be understood that, when adjacent communication nodes among a plurality of communication nodes are connected for communication via the 802.11 wireless protocol, the communication mode between the communication nodes is WiFi communication.
[0099] The 802.11 wireless protocol has a fast data transmission rate, a long transmission distance and a high network throughput.
[0100] According to the communication method within the target area provided in the embodiment of the present application, the communication connection is quickly established between adjacent communication nodes through the 802.11 wireless protocol, and communication is carried out. When the coverage area of the target area is large, the communication quality can also be guaranteed.
[0101] In some embodiments, data may be transmitted between adjacent communication nodes via 802.11 management frames.
[0102] In this embodiment, the 802.11 management frame is a frame for maintaining normal operation of the wireless network and managing the wireless network.
[0103] Adjacent communication nodes can communicate with each other through 802.11 management frames.
[0104] In the actual execution process, the target communication node can periodically send identification information to the adjacent communication node through the 802.11 management frame to interact with the adjacent communication node for data, thereby sensing the existence of the adjacent communication node and determining the connection relationship with the adjacent communication node.
[0105] The target communication node can also send any data that needs to be transmitted to the adjacent communication nodes through 802.11 management frames.
[0106] Of course, data transmission can also be performed through other frames, such as 802.11 control frames and 802.11 data frames, etc., which is not limited in this application.
[0107] According to the communication method within the target area provided in the embodiment of the present application, the target communication node and the adjacent communication node transmit data through the 802.11 management frame, thereby improving the reliability and efficiency of data transmission, and helping to improve the performance of the wireless networking formed by multiple communication nodes in the target area.
[0108] Step 120: Based on the identification information, send a local connection relationship to each adjacent communication node; the local connection relationship is used to characterize the information of the communication nodes adjacent to the target communication node, and receive the local connection relationship corresponding to other communication nodes sent by the adjacent communication node.
[0109] In this step, other communication nodes are communication nodes other than the target communication node among the plurality of communication nodes.
[0110] In the actual execution process, the target communication node can determine the adjacent communication nodes that can directly communicate with the target communication node based on the identification information, thereby determining the local connection relationship of the target communication node.
[0111] The target communication node can send its own local connection relationship to the adjacent communication nodes so that the adjacent communication nodes obtain the local connection relationship of the target communication node, and forward the local connection relationship of the target communication node through the adjacent communication nodes, so that the communication nodes that cannot communicate directly with the target communication node can also obtain the local connection relationship of the target communication node.
[0112] It can be understood that other communication nodes can send their own local connection relationships to communication nodes other than themselves among multiple communication nodes in the same way as the target communication node.
[0113] The target communication node may receive local connection relationships corresponding to other communication nodes sent by adjacent communication nodes.
[0114] Continue to refer Figure 2 , the target communication node B can receive the local connection relationship sent by its adjacent communication nodes A, C, E, F and G. At the same time, A, C, E, F and G can also send the local connection relationship of D, H, I and J to the target communication node B based on their respective connected communication nodes, so that the target communication node B obtains the local connection relationship of communication nodes A, C, D, E, F, G, H, I and J.
[0115] Step 130: Generate an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each communication node; the adjacency matrix is used for data transmission by each communication node in the target area.
[0116] In this step, the adjacency matrix is a matrix that records the local connection relationship of each communication node in the target area.
[0117] In the actual execution process, the target communication node can fuse the local connection relationships corresponding to each communication node to obtain the adjacency matrix corresponding to the target area, thereby determining through which intermediate communication nodes the target communication node can forward the data to be transmitted during the communication process.
[0118] For Figure 3 In the topological structure shown, each communication node needs to first transmit the data to be transmitted to a common parent node or a root node during data interaction, and then select a suitable path branch through the parent node or the root node to transmit it to the corresponding node.
[0119] Continue to refer Figure 3 If communication node G needs to transmit data to communication node H, the physical locations of the two communication nodes are very close, but due to the limitations of network topology and networking methods, the data needs to be forwarded from communication node G to the upper parent node to communication node A one level at a time. After receiving the data to be transmitted, communication node A starts to forward it downward to communication node G one level at a time. It needs to pass through multiple forwarding nodes before communication node H can receive the data sent by communication node G. That is, during the data transmission process, it needs to be forwarded through the central node. The data transmission path is long, which will cause a long delay and affect the data response time.
[0120] It should be noted that the above problems exist in chain topology, star topology and tree topology.
[0121] The inventors found during the research and development process that in the related technologies, rapid data interaction is mainly achieved by adding auxiliary communication equipment. However, the above method increases the equipment cost, and requires the design of complex interaction protocols based on the hardware equipment, which is difficult to operate.
[0122] The present application enables a target communication node among multiple communication nodes to send identification information corresponding to the target communication node to an adjacent communication node, so that the communication nodes adjacent to the target communication node can effectively perceive the target communication node and receive the identification information corresponding to the adjacent communication node, accurately determine the local connection relationship of the target communication node, and the determination method is simple and convenient; the target communication node sends the local connection relationship and receives the local connection relationship corresponding to other communication nodes, accurately obtains the local connection relationship corresponding to each communication node, and thus generates an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each communication node, providing comprehensive reference information for subsequent data transmission between the target communication node and other communication nodes. The generation method of the adjacency matrix is simple and easy to operate, so as to determine the most suitable data transmission method based on the adjacency matrix, and on the basis of improving the efficiency of data transmission and data response time, there is no need to increase additional equipment costs.
[0123] According to the communication method within the target area provided by the embodiment of the present application, the target communication node sends identification information to the adjacent communication node and receives the identification information sent by the adjacent communication node, so as to send the local connection relationship corresponding to the target communication node based on the identification information, and receive the local connection relationship corresponding to other communication nodes, thereby generating an adjacency matrix for communication between the communication nodes based on multiple local connection relationships. The generation method of the adjacency matrix is simple and easy to operate, and data transmission is performed based on the adjacency matrix. On the basis of improving data transmission efficiency and data response time, there is no need to increase additional equipment costs, thereby effectively saving communication costs.
[0124] In some embodiments, step 120 may further include:
[0125] Determining, based on the received identification information, a communication node adjacent to the target communication node;
[0126] Determine the local connection relationship corresponding to the target communication node based on the identification information corresponding to the adjacent communication node and the identification information corresponding to the target communication node;
[0127] Send local connection relations to each adjacent communication node.
[0128] In this embodiment, during the actual execution process, the target communication node may receive one or more identification information.
[0129] If the target communication node receives an identification information, it indicates that there is one communication node adjacent to the target communication node.
[0130] If the target communication node receives multiple pieces of identification information, it indicates that there are multiple communication nodes adjacent to the target communication node.
[0131] The target communication node may parse the received identification to determine the situation of the adjacent communication node corresponding to the identification information.
[0132] Continue to refer Figure 2 , the target communication node B will receive the identification information sent by A, C, E, F and G, thereby determining that the communication nodes adjacent to the target communication node are A, C, E, F and G. Combined with the identification information of the target communication node B, the local connection relationship corresponding to the target communication node B can be represented.
[0133] Similarly, communication node A will receive identification information sent by B, C and D, and determine that communication nodes adjacent to communication node A are B, C and D.
[0134] Communication node C will receive the identification information sent by A, B, D, H and I, and determine that the communication nodes adjacent to communication node C are A, B, D, H and I.
[0135] Communication node D will receive the identification information sent by A, C and J, and determine that the communication nodes adjacent to communication node D are A, C and J.
[0136] Communication node E will receive the identification information sent by B and F, and determine that the communication nodes adjacent to communication node E are B and F.
[0137] Communication node F will receive the identification information sent by B, E and G, and determine that the communication nodes adjacent to communication node F are B, E and G.
[0138] Communication node G will receive the identification information sent by B, F and H, and determine that the communication nodes adjacent to communication node G are B, F and H.
[0139] Communication node H will receive the identification information sent by C, G and I, and determine that the communication nodes adjacent to communication node H are C, G and I.
[0140] Communication node I will receive the identification information sent by C, H and J, and determine that the communication nodes adjacent to communication node I are C, H and J.
[0141] Communication node J will receive the identification information sent by D and I, and determine that the communication nodes adjacent to communication node J are D and I.
[0142] It can be understood that each communication node can determine its own local connection relationship based on the received identification information and its own identification information.
[0143] During the actual execution process, after determining its own local connection relationship, the target communication node can send its own local connection relationship to adjacent communication nodes, and forward the local connection relationship of the target communication node through adjacent communication nodes, so that each communication node can obtain the node with which the target communication node can communicate directly.
[0144] Similarly, other communication nodes may also send their local connection relationships to adjacent communication nodes in the same manner as the target communication node, which will not be described here to avoid repetition.
[0145] According to the communication method within the target area provided by the embodiment of the present application, the adjacent communication nodes that can directly communicate with the target communication node are determined through the received identification information, and the determination method is simple, convenient and highly accurate; through the identification information of the adjacent communication nodes and the identification information corresponding to the target communication node, the local connection relationship corresponding to the target communication node can be accurately constructed, and the local connection relationship representation form is simple, thereby improving the sending efficiency.
[0146] In some embodiments, step 130 may further include:
[0147] Determine local connection relationships corresponding to other communication nodes based on the received local connection relationships;
[0148] Based on the local connection relationship corresponding to each communication node, an adjacency matrix corresponding to the target area is generated.
[0149] In this embodiment, during the actual execution process, the target communication node determines the local connection relationships corresponding to other communication nodes by parsing the received local connection relationships, and merges the local connection relationships corresponding to each communication node to generate an adjacency matrix corresponding to the target area.
[0150] Continue to refer Figure 2 , the local connection relationships corresponding to communication nodes A, C, E, F and G can be sent directly to the target communication node B.
[0151] The local connection relationship corresponding to communication nodes D, H and I can be sent to communication node C first, and then forwarded to communication node B through communication node C.
[0152] The local connection relationship corresponding to communication node J can be sent to communication node D first, forwarded to C through communication node D, and then forwarded to communication node B through communication node C.
[0153] The target communication node B will receive the local connection relationships corresponding to A, C, D, E, F, G, H, I and J respectively, that is, the target communication node B obtains the local connection relationships corresponding to all communication nodes.
[0154] It should be noted that the local connection relationship corresponding to the communication node that cannot directly communicate with the target communication node can be transmitted through any path that can be forwarded to the target communication node, and this application does not limit it.
[0155] The target communication node fuses the local connection relationships of all communication nodes together to obtain the adjacency matrix corresponding to the target area.
[0156] Similarly, the local connection relationships corresponding to communication nodes B, C, and D can be sent directly to communication node A.
[0157] The local connection relationships corresponding to the communication nodes E, F, and G may be first sent to the target communication node B, and then sent to the communication node A through the target communication node B.
[0158] The local connection relationship corresponding to communication nodes H and I is first sent to communication node C, and then sent to communication node A through communication node C.
[0159] The local connection relationship between communication nodes I and J can be sent to communication node D first, and then sent to communication node A through communication node D.
[0160] Communication node A will receive the local connection relationships corresponding to B, C, D, E, F, G, H, I and J respectively, that is, communication node A obtains the local connection relationships corresponding to all communication nodes.
[0161] Communication node A can obtain the adjacency matrix corresponding to the target area by fusing the local connection relationships corresponding to all communication nodes.
[0162] It should be noted that for other communication nodes in the target area, the local connection relationships corresponding to other communication nodes can be obtained in the same way as the target communication node, and the adjacency matrix corresponding to the target area can be obtained through the local connection relationships corresponding to each communication node, so that each communication node in the target area can determine the connection status between each communication node. To avoid repetition, it will not be repeated here.
[0163] According to the communication method within the target area provided by the embodiment of the present application, by receiving the local connection relationships sent by other communication nodes and merging the local connection relationships sent by other communication nodes with the local connection relationships corresponding to the target communication nodes, the target communication node can obtain the connection status of each communication node in the target area, and then determine the data transmission mode based on the connection status of each communication node in the target area to improve the data transmission rate.
[0164] In some embodiments, after step 130, the method may further include:
[0165] Based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted, the data to be transmitted is transmitted; the data transmission requirements include: point-to-point data transmission and / or broadcast data transmission.
[0166] In this embodiment, the data to be transmitted is data that needs to be transmitted.
[0167] It should be noted that before transmitting the data to be transmitted, the data to be transmitted needs to be packaged so that the data to be transmitted carries the information required for data transmission.
[0168] like Figure 4 As shown, the packaged data to be transmitted may include: a basic header, a length, a source address, a destination address, a transit node address, a serial number, a checksum, and a serial number, etc.
[0169] Point-to-point data transmission is to transmit the data to be transmitted from the target communication node to any communication node among other communication nodes.
[0170] Broadcast data transmission is to transmit the data to be transmitted from the target communication node to other communication nodes.
[0171] In the actual execution process, after the adjacency matrix is generated, the target communication node can refer to the information in the adjacency matrix during data transmission and send the data to be transmitted to the corresponding communication node according to the data transmission requirements.
[0172] For example, when the data transmission requirement is to transmit the data to be transmitted to communication node I, the target communication node can refer to the information in the adjacency matrix, determine a suitable transmission method, and quickly transmit the data to be transmitted from the target communication node to communication node I.
[0173] For another example, when the data transmission requirement is to broadcast the data to be transmitted, the target communication node can refer to the information in the adjacency matrix to determine a suitable transmission method to quickly transmit the data to be transmitted from the target communication node to each other communication node.
[0174] Continue to refer Figure 4 After the data to be transmitted is transmitted through point-to-point data transmission or broadcast data, the serial number to be transmitted can be increased by 1 to update the data.
[0175] According to the communication method within the target area provided by the embodiment of the present application, by referring to the adjacency matrix in the target communication node based on the data transmission demand, the connection conditions between the communication nodes in the target area are comprehensively considered to select a suitable transmission method and transmit the data to be transmitted, so as to meet the data transmission demand and ensure the data interaction demand.
[0176] In some embodiments, based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted, transmitting the data to be transmitted may also include:
[0177] In the case where the data transmission requirement is point-to-point data transmission, determining a receiving communication node from each communication node based on the data transmission requirement;
[0178] Determine a data transmission path based on the adjacency matrix, the target communication node, and the receiving communication node;
[0179] Based on the data transmission path, the data to be transmitted is transmitted.
[0180] In this embodiment, the receiving communication node is a node that receives data to be transmitted.
[0181] The receiving communication node may be any communication node among the plurality of communication nodes except the target communication node.
[0182] The data transmission path is a path formed by the communication nodes that the data to be transmitted needs to pass through in sequence.
[0183] During the actual execution process, after obtaining the data transmission requirement, the target communication node can determine the receiving communication node from multiple communication nodes based on the specific content of the data transmission requirement. For example, if the data transmission requirement is to send the data to be transmitted to communication node J, then the receiving communication node can be determined as communication node J, and the local connection relationship corresponding to the target communication node in the adjacency matrix, the local connection relationship corresponding to the communication nodes involved in the local connection relationship, and the local connection relationship corresponding to the receiving communication node are referred to to determine the path that can send the data to be transmitted to the receiving communication node, so as to transmit the data to be transmitted based on the determined data transmission path.
[0184] Continue to refer Figure 2 , taking the receiving communication node as J as an example, the data transmission path can be BCDJ, BCIJ, BCHIJ and BADJ, etc. In the actual execution process, the data to be transmitted can be transmitted based on the determined data transmission path.
[0185] According to the communication method within the target area provided by the embodiment of the present application, by determining the target communication node that sends the data to be transmitted and the receiving communication node that receives the data to be transmitted, the starting point and the ending point of the data transmission are clarified, so that based on the starting point and the ending point, the data transmission path is determined with reference to the adjacency matrix that records the local connection relationship of each communication node in the target area, so as to transmit the data to be transmitted to the receiving communication node based on the data transmission path, meet the data transmission requirements, and can provide a variety of data transmission paths, and the transmission method is flexible.
[0186] In some embodiments, determining a data transmission path based on an adjacency matrix, a target communication node, and a receiving communication node may further include:
[0187] Based on the adjacency matrix, the target communication node, and the receiving communication node, a plurality of candidate transmission paths are obtained;
[0188] The candidate transmission path including the least number of communication nodes among the multiple candidate transmission paths is determined as the data transmission path.
[0189] In this embodiment, the candidate transmission path is a path that can transmit the data to be transmitted to the receiving communication node.
[0190] The number of communication nodes included in the candidate transmission paths may be the same or different.
[0191] In the actual execution process, after obtaining multiple candidate transmission paths based on the adjacency matrix, the target communication node and the receiving communication node, the number of communication nodes included in each candidate transmission path can be compared, and the candidate transmission path with the least number of communication nodes can be determined as the data transmission path.
[0192] In some embodiments, when there are multiple candidate transmission paths that include the least communication nodes, the candidate transmission path with the shortest communication distance can be further determined as the data transmission path based on the actual physical distance between the communication nodes.
[0193] Taking the candidate transmission paths including BCHIJ and BADJ as an example, the number of communication nodes included in each candidate transmission path is compared. Among them, BCHIJ includes 5 communication nodes, and BADJ includes 4 communication nodes. BADJ includes the least number of communication nodes. BADJ can be determined as the data transmission path, and the data to be transmitted is transmitted to the receiving communication node J through communication node A and communication node D in sequence.
[0194] Taking the candidate transmission paths including: BCDJ, BCIJ, BCHIJ and BADJ as an example, the number of communication nodes included in each candidate transmission path is compared, among which BCHIJ includes 5 communication nodes, BCDJ, BCIJ and BADJ each include 4 communication nodes, and the actual physical distances of BCDJ, BCIJ and BADJ can be further compared. For example, BCDJ has the shortest physical distance, so BCDJ can be determined as the data transmission path, and the data to be transmitted is transmitted to the receiving communication node J through communication node C and communication node D in sequence.
[0195] In some embodiments, the shortest path between the target communication node and the receiving communication node may also be calculated based on the adjacency matrix through a path planning algorithm such as a depth-first algorithm and a breadth-first algorithm, and the calculation result may be determined as the data transmission path.
[0196] According to the communication method within the target area provided in the embodiment of the present application, a candidate transmission path including the least number of communication nodes is selected as the data transmission path from multiple candidate transmission paths, so as to address the problem of too long data transmission paths and effectively reduce data transmission time.
[0197] In some embodiments, transmitting the data to be transmitted based on the data transmission path may further include:
[0198] After the target communication node sends the data to be transmitted, updating the first communication node in the data transmission path that receives the data to be transmitted sent by the target communication node as a new target communication node;
[0199] Perform data detection on the data to be transmitted;
[0200] Based on the detection result corresponding to the data detection and the target address, the data to be transmitted is transmitted.
[0201] In this embodiment, the first communication node is a communication node in the data transmission path that receives data to be transmitted.
[0202] It should be noted that all communication nodes except the target communication node in the data transmission path can be the first communication node.
[0203] The new target communication node is the node that processes the received data to be transmitted.
[0204] Data detection includes: data format detection, data content detection, and data reception times detection.
[0205] Test results include: normal and abnormal.
[0206] During the actual execution process, after the new target communication node receives the data to be transmitted, it can perform a form detection on the data to be transmitted, such as whether the data to be transmitted includes a basic header, a source address, and a target address. When the data to be transmitted includes information such as a basic header, a source address, and a target address, the detection result corresponding to the data form detection is determined to be normal. When the data to be transmitted does not include information such as a basic header, a source address, and a target address, the detection result corresponding to the data form detection is determined to be abnormal.
[0207] When the detection result corresponding to the data form detection is abnormal, the received data to be transmitted is discarded.
[0208] When the detection result corresponding to the data format detection is normal, further data content detection is performed to detect whether the data content is wrong. For example, whether the data content is wrong is determined by the checksum in the data to be transmitted. When the data content is wrong, the detection result corresponding to the data content detection is determined to be abnormal. When the data content is correct, the detection result corresponding to the data content detection is determined to be normal.
[0209] When the detection result corresponding to the data content detection is abnormal, the received data to be transmitted is discarded.
[0210] When the detection result corresponding to the data content detection is normal, a data reception times detection is further performed to detect whether the new target communication node receives the data to be transmitted for the first time.
[0211] In the actual execution process, it can be determined by the serial number in the data to be transmitted whether the new target communication node receives the data to be transmitted for the first time.
[0212] After receiving the data to be transmitted, the new target communication node first determines the source address to query the serial number of the data last transmitted from this address, such as serial number N, and compares the queried serial number N with the serial number of the received data to be transmitted, such as serial number M.
[0213] When M is less than or equal to N, it indicates that the new target communication node has received the data before, and the result of the data reception number detection is abnormal.
[0214] When M is greater than N, it indicates that the data to be transmitted is new data, the data to be transmitted needs to be used, and the detection result of the number of data reception times is normal.
[0215] When the detection result of the number of data reception times is abnormal, the received data to be transmitted is discarded.
[0216] When the result of the data reception times test is normal, further check the target address of the data to be transmitted.
[0217] like Figure 5 As shown, in the case where the target address is a new target communication node, the new target communication node can retain and process the data to be transmitted.
[0218] When the target address is not a new target communication node, it is further determined whether the new target communication node is a communication node on the data transmission path. When it is determined that the new target communication node is a communication node on the data transmission path, the new target communication node forwards the data to be transmitted to the next communication node corresponding to the new target communication node in the data transmission path. After receiving the data to be transmitted, the next communication node updates the next communication node to the new target communication node for data transmission until the data to be transmitted is sent to the target address.
[0219] In the case where it is determined that the new target communication node is not a communication node on the data transmission path, the new target communication node may discard the data to be transmitted.
[0220] like Figure 6 As shown, in the actual execution process, after the new target communication node receives the data to be transmitted, the data to be transmitted is subjected to data form detection and data content detection. When the detection results corresponding to the data form detection and the data content detection are normal, the source address of the data to be transmitted is extracted to query the serial number N of the data last sent from the source address (i.e., the target communication node). When the serial number M of the received data to be transmitted is greater than the serial number N, the new serial number of the new target communication node can be recorded for the next judgment.
[0221] Further determine whether the target address of the data to be transmitted is the new target communication node. If the target address is the new target communication node, the new target communication node can process the data to be transmitted. If the target address is not the new target communication node, the new target communication node can continue to forward the data to be transmitted.
[0222] According to the communication method within the target area provided by the embodiment of the present application, by detecting the data to be transmitted in the process of transmitting the data to be transmitted based on the data transmission path, the accuracy and effectiveness of data transmission are improved, invalid data transmission is reduced, and the subsequent transmission method is determined by querying the target address to determine whether to terminate the data transmission process, thereby protecting the security of data and reducing unnecessary data transmission and waste of resources.
[0223] In some embodiments, based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted, transmitting the data to be transmitted may also include:
[0224] When the data transmission requirement is broadcast data transmission, based on the adjacency matrix, the broadcast receiving node corresponding to the target communication node is determined from each communication node, so that the broadcast receiving node can determine the transit communication node based on the adjacency matrix, and update the transit communication node to the target communication node to transmit the data to be transmitted.
[0225] In this embodiment, the broadcast receiving node is a node that needs to receive the data to be transmitted transmitted by the target communication node.
[0226] It should be noted that, when the data transmission requirement is broadcast data transmission, the broadcast receiving nodes include all communication nodes among the multiple communication nodes except the target communication node.
[0227] The transit communication node is a communication node that needs to forward the data to be transmitted to an adjacent communication node after receiving the data to be transmitted.
[0228] Taking the target communication node C as an example, after the broadcast receiving nodes A, B, D, H and I receive the data to be transmitted broadcasted by the target communication node C, one or more of the broadcast receiving nodes A, B, D, H and I can act as transit communication nodes to forward the data to be transmitted to the communication nodes that have not yet received the data to be transmitted.
[0229] Taking the target communication node C as an example, the following describes a process in which the target communication node C broadcasts the data to be transmitted so that the broadcast receiving node receives the data to be transmitted.
[0230] like Figure 7 As shown, in the actual execution process, the target communication node C can be marked as 0.
[0231] Starting from the target communication node C, mark the communication nodes adjacent to the target communication node C as 1, that is, mark the communication nodes A, B, D, I and H as 1, and get the following Figure 8 The marked results are shown.
[0232] exist Figure 8 Among the unmarked communication nodes, the communication nodes adjacent to the communication nodes marked as 1 are marked as 2. For example, communication node B performs a data transmission, and the data to be transmitted can cover communication nodes A, C, H, G, F and E. Among them, communication nodes E, F and G are not marked yet, so communication nodes E, F and G can be marked as 2. Similarly, communication node J can be marked as 2, and the result is as follows: Fig. 9 The marked results are shown.
[0233] In the actual execution process, when there are still unmarked communication nodes among the multiple communication nodes in the target area, the serial numbers 3, 4 and 5 can be further marked in the above manner until all the multiple communication nodes in the target area are marked.
[0234] Based on the communication nodes marked as n and n+1, a transit communication node is screened out from the communication node marked as n+1, and the transit communication node is used as a new target communication node for data transmission.
[0235] The selected transit communication nodes need to cover all communication nodes marked as n+2. For example, communication node B and communication node D are selected from the communication nodes marked as 1. The target communication node C can cover communication nodes E, F and G by forwarding the data to be transmitted through communication node B. The target communication node C can cover communication node J by forwarding the data to be transmitted through communication node D. That is, the selected communication nodes marked as 1 can cover all communication nodes marked as 2.
[0236] Among them, communication node B and communication node D can be screened based on the following method.
[0237] In the case where the communication node M is a communication node labeled as n and the communication node X is a communication node labeled as n+1, if there is one path from the communication node M to the communication node X, the communication node M is a transit communication node.
[0238] like Fig. 9 As shown, for example, when communication node I and communication node J are not connected together, the data transmission path DJ from the communication node marked as 1 to communication node J includes communication node D, and communication node D needs to serve as a transit communication node.
[0239] After finding all necessary transit communication nodes, the number of next-level communication nodes owned by the communication node marked as n is sorted in descending order.
[0240] For example, the next-level communication nodes of communication node B are E, F, and G, and the number of next-level communication nodes is 3.
[0241] The next-level communication node of communication node D is J, and the number of next-level communication nodes is 1.
[0242] The next-level communication node of communication node I is J, and the number of next-level communication nodes is 1.
[0243] The next-level communication node of communication node H is G, and the number of next-level communication nodes is 1.
[0244] Communication node A has no next-level communication node, and the number of next-level communication nodes is 0.
[0245] A communication node including the largest number of next-level communication nodes is selected from the communication nodes marked as n as a transit communication node, until the selected transit communication node can connect with all the communication nodes marked as n+1.
[0246] For example, communication node B includes the largest number of next-level communication nodes. Communication node B marked as 1 can be used as a transit communication node to cover the three nodes E, F and G marked as 2. At this time, it is checked that communication node J has not been covered.
[0247] Except for communication node B, the number of next-level communication nodes included in the remaining communication nodes marked as 1 is at most 1, and communication node D marked as 1 can be used as a transit communication node and can cover communication node J.
[0248] At this point, it is checked that all the communication nodes marked as 2 are connected, and the process of selecting the transit communication node can be ended.
[0249] For other communication nodes, if communication node I acts as a transit communication node, it can cover communication node J marked as 2. However, communication node J has already covered communication node J when communication node D is used as a transit communication node. Therefore, communication node I cannot cover new communication node access, and communication node I does not need to act as a transit communication node.
[0250] Similarly, communication nodes H and A will not be selected as transit communication nodes.
[0251] It should be noted that the number of next-level communication nodes of communication nodes D, I and H is all 1. When sorting, which communication node is in front will be judged first. That is, when the sorting result is that communication node I is in front of communication node D, communication node I will serve as a transit communication node, and communication node D does not need to be a transit communication node.
[0252] By using the above-mentioned method for selecting the transit communication node, it is possible to determine a forwarding path that enables each broadcast receiving node to receive the data to be transmitted and has a relatively small number of forwarding times.
[0253] For the transit communication node, data transmission can be performed in the manner of transmitting the data to be transmitted by the new target communication node in point-to-point data transmission, that is, data detection is performed on the data to be transmitted, and the data to be transmitted is transmitted based on the data detection result and the target address. To avoid repetition, it is not described here.
[0254] According to the communication method within the target area provided by the embodiment of the present application, by determining that the data transmission demand is broadcast data transmission, the transit communication node is determined through the adjacency matrix. On the basis of ensuring that each broadcast receiving node can receive the data to be transmitted, the number of transit communication nodes and the number of forwarding times of the transit communication nodes are reduced, and the data that needs to be broadcast by the target communication node is sent to each broadcast receiving node in a shorter time, thereby improving data transmission efficiency and data response time.
[0255] In some embodiments, the method may further include:
[0256] receiving a target signal sent by a base station;
[0257] Determining a signal strength corresponding to a target communication node based on a signal strength corresponding to a received target signal;
[0258] Based on the adjacency matrix, the signal strength corresponding to the target communication node is sent, and the signal strength corresponding to other communication nodes is received;
[0259] When the signal strength corresponding to the target communication node is the maximum signal strength among the multiple communication nodes, the target communication node is determined as the communication node connected to the base station.
[0260] In this embodiment, the target signal may be a radio frequency signal, a radio wave signal, or the like.
[0261] It should be noted that the signal strength of the target signal varies due to factors such as distance, obstacles, interference equipment, and base station performance.
[0262] The signal strength corresponding to the target signal is the strength of the target signal at the moment when the target communication node receives the target signal.
[0263] The signal strength corresponding to the target signal may be decibel milliwatt (dbm), received signal strength indication (RSSI), or signal percentage, etc.
[0264] The maximum signal strength is the maximum signal strength among the signal strengths corresponding to the communication nodes.
[0265] Continue to refer Figure 2, the base station can be a router.
[0266] In the actual implementation process, after determining the signal strength corresponding to the target communication node, the target communication node can transmit the signal strength to other communication nodes based on the adjacency matrix in the form of point-to-point data transmission or broadcast data transmission, so that each communication node can determine the signal strength of the target communication node.
[0267] Similarly, after determining the signal strength corresponding to itself, other communication nodes may also send the signal strength corresponding to itself.
[0268] The target communication node will receive the signal strengths corresponding to other communication nodes, so that the target communication node can compare its own signal strength with the signal strengths corresponding to other communication nodes.
[0269] When it is determined based on the comparison result that the signal strength corresponding to the target communication node is the largest, the target communication node is determined as a communication node connected to the base station.
[0270] When it is determined based on the comparison result that the signal strength corresponding to the target communication node is not the maximum, it is determined that the target communication node is not a communication node connected to the base station.
[0271] In other embodiments, while the target communication node sends the local connection relationship to each adjacent local node, the target communication node can also send the signal strength corresponding to the target communication node to each adjacent communication node, and receive the signal strength corresponding to other communication nodes sent by the adjacent communication node.
[0272] In this embodiment, the target communication node simultaneously sends the local connection relationship and the signal strength corresponding to the target communication node. While receiving the local connection relationship corresponding to other communication nodes, the target communication node can also receive the signal strength corresponding to other communication nodes, and can process the local connection relationship corresponding to other communication nodes and the signal strength corresponding to other communication nodes respectively.
[0273] The target communication node can process the local connection relationships corresponding to other communication nodes and generate an adjacency matrix corresponding to the target area.
[0274] The target communication node may also process the signal strengths corresponding to other communication nodes to determine whether the target communication node is a communication node connected to the base station.
[0275] According to the communication method within the target area provided by the embodiment of the present application, by enabling the target communication node to send the signal strength corresponding to the target communication node while sending the local connection relationship, the target communication node can process two types of data in parallel, thereby significantly reducing the total time for generating the adjacency matrix and determining the communication node connected to the base station, improving resource utilization and reducing resource waste.
[0276] During the research and development process, the inventor discovered that in the process of determining the communication nodes connected to the base station, each communication node in the target area will connect to the base station if the signal strength can reach the conditions for connecting to the base station, and then the already connected communication nodes will determine the communication nodes with weak signal strength to exit the router connection based on the connection established by the base station. However, the above determination method is time-consuming, the connection process is cumbersome, and when there are many communication nodes, it may cause network congestion and low efficiency.
[0277] The present application receives a target signal sent by a base station, determines the signal strength corresponding to the target communication node based on the strength of the target signal received by the target communication node, and compares the signal strength corresponding to the target signal communication node with the signal strengths corresponding to other communication nodes received to determine whether the signal strength corresponding to the target communication node is the maximum communication strength. When the signal strength corresponding to the target communication node is the maximum value, the target communication node is determined as a communication node connected to the base station. This determination method does not require each communication node to try to connect to the base station, and connects the communication node corresponding to the maximum signal strength to the base station. The connection process is simple and the connection time is short, which effectively reduces the occurrence of network congestion and improves connection efficiency.
[0278] According to the communication method within the target area provided by the embodiment of the present application, the target signal sent by the base station is received, the signal strength corresponding to the target communication node is determined, and the signal strength corresponding to other communication nodes is received, so as to clarify the signal strength corresponding to each communication node. When the signal strength of the target communication node is the largest, the target communication node is determined as the communication node connected to the base station. The connection process is simple and the connection time is short, which effectively reduces the occurrence of network congestion and improves connection efficiency.
[0279] The communication method in the target area provided in the embodiment of the present application can be performed by a communication device in the target area. The communication device in the target area provided in the embodiment of the present application is described by taking the communication method in the target area performed by the communication device in the target area as an example.
[0280] An embodiment of the present application also provides a communication device within a target area.
[0281] The target area includes a plurality of communication nodes.
[0282] Adjacent communication nodes are connected to each other.
[0283] like Fig.10 As shown, the communication device in the target area includes: a first processing module 1010 , a second processing module 1020 and a third processing module 1030 .
[0284] In the first processing module 1010, a target communication node among the multiple communication nodes sends identification information corresponding to the target communication node to an adjacent communication node, and receives identification information corresponding to each adjacent communication node sent by each adjacent communication node;
[0285] The second processing module 1020 sends a local connection relationship to each adjacent communication node based on the identification information; the local connection relationship is used to represent the information of the communication node adjacent to the target communication node, and receives the local connection relationship corresponding to other communication nodes sent by the adjacent communication node; the other communication nodes are the communication nodes other than the target communication node among the multiple communication nodes;
[0286] The third processing module 1030 generates an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each communication node; the adjacency matrix is used for each communication node in the target area to perform data transmission.
[0287] According to the communication device within the target area provided by the embodiment of the present application, by enabling the target communication node to send identification information to an adjacent communication node and receive identification information sent by the adjacent communication node, the local connection relationship corresponding to the target communication node is sent based on the identification information, and the local connection relationship corresponding to other communication nodes is received, thereby generating an adjacency matrix for communication between the communication nodes based on multiple local connection relationships. The generation method of the adjacency matrix is simple and easy to operate, and data transmission is performed based on the adjacency matrix. On the basis of improving data transmission efficiency and data response time, there is no need to increase additional equipment costs, thereby effectively saving communication costs.
[0288] In some embodiments, the second processing module 1020 may also be used to:
[0289] Determining, based on the received identification information, a communication node adjacent to the target communication node;
[0290] Determine the local connection relationship corresponding to the target communication node based on the identification information corresponding to the adjacent communication node and the identification information corresponding to the target communication node;
[0291] Send local connection relations to each adjacent communication node.
[0292] In some embodiments, the third processing module 1030 may also be used to:
[0293] Determine local connection relationships corresponding to other communication nodes based on the received local connection relationships;
[0294] Based on the local connection relationship corresponding to each communication node, an adjacency matrix corresponding to the target area is generated.
[0295] In some embodiments, the apparatus may further include a fourth processing module, configured to:
[0296] Based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted, the data to be transmitted is transmitted; the data transmission requirements include: point-to-point data transmission and / or broadcast data transmission.
[0297] In some embodiments, the apparatus may further include a fifth processing module, configured to:
[0298] In the case where the data transmission requirement is point-to-point data transmission, determining a receiving communication node from each communication node based on the data transmission requirement;
[0299] Determine a data transmission path based on the adjacency matrix, the target communication node, and the receiving communication node;
[0300] Based on the data transmission path, the data to be transmitted is transmitted.
[0301] In some embodiments, the apparatus may further include a sixth processing module, configured to:
[0302] Based on the adjacency matrix, the target communication node, and the receiving communication node, a plurality of candidate transmission paths are obtained;
[0303] The candidate transmission path including the least number of communication nodes among the multiple candidate transmission paths is determined as the data transmission path.
[0304] In some embodiments, the apparatus may further include a seventh processing module, configured to:
[0305] When the data transmission requirement is broadcast data transmission, based on the adjacency matrix, the broadcast receiving node corresponding to the target communication node is determined from each communication node, so that the broadcast receiving node can determine the transit communication node based on the adjacency matrix, and update the transit communication node to the target communication node to transmit the data to be transmitted.
[0306] In some embodiments, the apparatus may further include an eighth processing module, configured to:
[0307] receiving a target signal sent by a base station;
[0308] Determining a signal strength corresponding to a target communication node based on a signal strength corresponding to a received target signal;
[0309] Based on the adjacency matrix, the signal strength corresponding to the target communication node is sent, and the signal strength corresponding to other communication nodes is received;
[0310] When the signal strength corresponding to the target communication node is the maximum signal strength among the multiple communication nodes, the target communication node is determined as the communication node connected to the base station.
[0311] The communication device in the target area in the embodiment of the present application may be a power station, or may be an electronic device connected to the power station for communication, or may be a component in the power station or the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0312] The communication device in the target area in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0313] The communication device in the target area provided by the embodiment of the present application can achieve Figures 1 to 9 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0314] The embodiment of the present application also provides a power station.
[0315] In some embodiments, the power station communicates with other power stations other than the power station in the target area based on the communication method in the target area as described in any of the above embodiments.
[0316] According to the power station provided in the embodiment of the present application, by enabling the target communication node to send identification information to the adjacent communication node and receive the identification information sent by the adjacent communication node, the local connection relationship corresponding to the target communication node is sent based on the identification information, and the local connection relationship corresponding to other communication nodes is received, thereby generating an adjacency matrix for communication between the communication nodes based on multiple local connection relationships. The generation method of the adjacency matrix is simple and easy to operate, and data transmission is performed based on the adjacency matrix. On the basis of improving data transmission efficiency and data response time, there is no need to increase additional equipment costs, thereby effectively saving communication costs.
[0317] In some embodiments, Fig.11 As shown, an embodiment of the present application also provides an electronic device 1100, including a processor 1101, a memory 1102, and a computer program stored in the memory 1102 and executable on the processor 1101. When the program is executed by the processor 1101, each process of the communication method embodiment within the above-mentioned target area is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0318] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0319] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the communication method embodiment within the above-mentioned target area are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0320] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0321] An embodiment of the present application also provides a computer program product, including a computer program, which implements the communication method within the above-mentioned target area when executed by a processor.
[0322] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0323] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the communication method embodiment within the above-mentioned target area, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0324] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0325] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0326] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0327] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0328] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0329] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A communication method within a target area, characterized in that: The target area includes a plurality of communication nodes, and adjacent communication nodes are communicatively connected to each other; the method includes: The target communication node among the multiple communication nodes sends identification information corresponding to the target communication node to an adjacent communication node, and receives identification information corresponding to each adjacent communication node sent by each adjacent communication node; Based on the identification information, a local connection relationship is sent to each of the adjacent communication nodes; the local connection relationship is used to characterize the information of the communication node adjacent to the target communication node, and to receive the local connection relationship corresponding to other communication nodes sent by the adjacent communication node; the other communication nodes are the communication nodes other than the target communication node among the multiple communication nodes; Based on the local connection relationship corresponding to each of the communication nodes, an adjacency matrix corresponding to the target area is generated; the adjacency matrix is used for each of the communication nodes in the target area to perform data transmission.
2. The communication method within the target area according to claim 1, characterized in that: The sending the local connection relationship to each of the adjacent communication nodes based on the identification information includes: Determining a communication node adjacent to the target communication node based on the received identification information; Determine the local connection relationship corresponding to the target communication node based on the identification information corresponding to the adjacent communication node and the identification information corresponding to the target communication node; The local connection relationship is sent to each of the adjacent communication nodes.
3. The communication method within the target area according to claim 1, characterized in that: The generating an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each of the communication nodes includes: Determine the local connection relationship corresponding to the other communication nodes based on the received local connection relationship; Based on the local connection relationship corresponding to each of the communication nodes, an adjacency matrix corresponding to the target area is generated.
4. The communication method within the target area according to any one of claims 1 to 3, characterized in that: After generating the adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each of the communication nodes, the method further includes: Based on the adjacency matrix and data transmission requirements corresponding to the data to be transmitted, the data to be transmitted is transmitted; the data transmission requirements include: point-to-point data transmission and / or broadcast data transmission.
5. The communication method within the target area according to claim 4, characterized in that: The transmitting the data to be transmitted based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted includes: In a case where the data transmission requirement is the point-to-point data transmission, determining a receiving communication node from each of the communication nodes based on the data transmission requirement; Determining a data transmission path based on the adjacency matrix, the target communication node, and the receiving communication node; Based on the data transmission path, the data to be transmitted is transmitted.
6. The communication method within the target area according to claim 5, characterized in that: The determining of a data transmission path based on the adjacency matrix, the target communication node, and the receiving communication node includes: Based on the adjacency matrix, the target communication node, and the receiving communication node, obtaining a plurality of candidate transmission paths; The candidate transmission path including the least number of communication nodes among the multiple candidate transmission paths is determined as the data transmission path.
7. The communication method within the target area according to claim 4, characterized in that: The transmitting the data to be transmitted based on the adjacency matrix and the data transmission requirements corresponding to the data to be transmitted includes: In the case where the data transmission requirement is the broadcast data transmission, based on the adjacency matrix, the broadcast receiving node corresponding to the target communication node is determined from each of the communication nodes, so that the broadcast receiving node can determine the transit communication node based on the adjacency matrix, and the transit communication node is updated to the target communication node to transmit the data to be transmitted.
8. The communication method within a target area according to any one of claims 1 to 3, characterized in that: The method further comprises: receiving a target signal sent by a base station; Determining the signal strength corresponding to the target communication node based on the received signal strength corresponding to the target signal; Based on the adjacency matrix, sending the signal strength corresponding to the target communication node, and receiving the signal strength corresponding to the other communication nodes; In a case where the signal strength corresponding to the target communication node is the maximum signal strength among the multiple communication nodes, the target communication node is determined as a communication node connected to the base station.
9. The communication method within a target area according to any one of claims 1 to 3, characterized in that: The multiple communication nodes communicate with each other via wireless networking.
10. The communication method within the target area according to claim 9, characterized in that: The adjacent communication nodes among the multiple communication nodes are communicatively connected via the 802.11 wireless protocol.
11. The communication method within the target area according to claim 10, characterized in that: The adjacent communication nodes transmit data via 802.11 management frames.
12. A communication device in a target area, characterized in that: The target area includes a plurality of communication nodes, and adjacent communication nodes are communicatively connected to each other; the device includes: A first processing module, configured to enable a target communication node among the plurality of communication nodes to send identification information corresponding to the target communication node to an adjacent communication node, and to receive identification information corresponding to each adjacent communication node sent by each adjacent communication node; A second processing module is used to send a local connection relationship to other communication nodes based on the identification information; the local connection relationship is used to represent information of communication nodes adjacent to the target communication node, and receive the local connection relationship corresponding to the other communication nodes sent by the other communication nodes; The third processing module is used to generate an adjacency matrix corresponding to the target area based on the local connection relationship corresponding to each of the communication nodes; the adjacency matrix is used for each of the communication nodes in the target area to perform data transmission.
13. A power station, characterized in that: The power station communicates with other power stations except the power station in the target area based on the communication method in the target area according to any one of claims 1 to 11.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the communication method within the target area as described in any one of claims 1 to 11 is implemented.
15. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the communication method within the target area as claimed in any one of claims 1 to 11 is implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the communication method within the target area as claimed in any one of claims 1 to 11 is implemented.