Data transmission method, device, equipment and computer readable storage medium
By establishing a multi-hop network between the AGV and the wireless access point, a backup link that is better than the original link is determined, which solves the problem of data loss and delay caused by abnormal AGV communication links, and improves the reliability and timeliness of communication. sex.
Patent Information
- Application Number
- CN202210332178.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-03-30
AI Technical Summary
When the communication link between AGV and wireless access point is abnormal, there will be data loss and delay problems.
By establishing a multi-hop network, a backup communication link that is better than the original communication link is determined, and multiple terminals are used for communication to ensure the improvement of communication quality.
When the AGV is blocked, communication is carried out through the backup communication link to avoid data loss and delay, and improve the reliability and timeliness of communication.
Smart Images

Figure CN114698047B
Abstract
Description
Technical Field
[0001] The present application relates to communication technology in the field of communications, and in particular to a data transmission method, apparatus, device and computer-readable storage medium. Background Art
[0002] An Automated Guided Vehicle (AGV) is a transport vehicle equipped with an automatic navigation device that can travel along a specified navigation path and has safety protection and various transfer functions. It is widely used in logistics and manufacturing industries. Among them, AGV is dispatched by the AGV dispatch system to perform tasks; AGV needs to communicate in real time during the execution of tasks. Usually, AGV establishes a communication connection with the dispatch system through a wireless access point. However, when the antenna on the AGV is blocked, making the communication link between the AGV and the wireless access point abnormal, there will be data loss and delay problems when the AGV communicates with the wireless access point. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application hope to provide a data transmission method, device, equipment and computer-readable storage medium, which solves the problem of data missing and delay in communication between the AGV and the wireless access point when the communication link between the AGV and the wireless access point is abnormal.
[0004] The technical solution of this application is implemented as follows:
[0005] A data transmission method, the method comprising:
[0006] Based on the multiple terminals, a first multi-hop network is established;
[0007] Determine a second terminal from nodes of the first multi-hop network based on a target location of the first terminal relative to the first access point; wherein the plurality of terminals include the first terminal and the second terminal;
[0008] establishing, by the second terminal, a second communication link for communication between the first terminal and the first access point;
[0009] When it is determined that an abnormality exists in a first communication link between the first terminal and the first access point, the first terminal and the first access point are controlled to communicate through the second communication link; wherein the communication quality of the second communication link is better than the communication quality of the first communication link.
[0010] In the above solution, the determining the second terminal from the nodes of the first multi-hop network based on the target position of the first terminal relative to the first access point includes:
[0011] Based on the target location, determining a plurality of third terminals from nodes of the first multi-hop network;
[0012] Based on the multiple third terminals, the first access point and the first terminal, determine multiple first paths for communication between the first access point and the first terminal; wherein each first path has at least one third terminal;
[0013] Based on the multiple first paths, the second terminal is determined.
[0014] In the above solution, determining the second terminal based on the multiple first paths includes:
[0015] Determining a second path from the plurality of first paths based on the number of nodes of each first path, the length of each first path, and the communication quality of each first path;
[0016] The second terminal is determined based on nodes on the second path.
[0017] In the above solution, when it is determined that there is an abnormality in the first communication link between the first terminal and the first access point, before controlling the first terminal and the first access point to communicate through the second communication link, the method further includes:
[0018] determining a link quality parameter of the first communication link;
[0019] When the link quality parameter does not meet the target communication quality, it is determined that an abnormality exists in the first communication link.
[0020] In the above solution, when it is determined that there is an abnormality in the first communication link between the first terminal and the first access point, controlling the first terminal and the first access point to communicate through the second communication link includes:
[0021] When the first terminal is in a first mode and the first communication link is abnormal, control the first terminal to switch from the first mode to a second mode; wherein the first mode indicates that communication with the first access point is possible; and the second mode indicates that communication with the terminal is possible;
[0022] When the first terminal is in the second mode, the first terminal and the first access point are controlled to communicate through the second communication link.
[0023] In the above scheme, the method further includes:
[0024] In a case where it is determined that there is no abnormality in the first communication link between the first terminal and the first access point, determining a target communication link from the first communication link and the second communication link based on the communication quality of the first communication link and the communication quality of the second communication link;
[0025] The first terminal and the first access point are controlled to communicate through the target communication link.
[0026] In the above scheme, the method further includes:
[0027] When the first terminal is in the second mode and the first terminal moves to a second multi-hop network outside the first multi-hop network, a third communication link for communication between the first terminal and a second access point is established through a fourth terminal in the second multi-hop network using a virtual access point technology;
[0028] Control the first terminal and the first access point to communicate through the third communication link.
[0029] A data transmission device, comprising:
[0030] An establishing unit, configured to establish a first multi-hop network based on multiple terminals;
[0031] a determining unit, configured to determine a second terminal from nodes of the first multi-hop network based on a target location of the first terminal relative to the first access point; wherein the plurality of terminals include the first terminal and the second terminal;
[0032] The establishing unit is further configured to establish, through the second terminal, a second communication link for communication between the first terminal and the first access point;
[0033] A transmission unit, configured to control the first terminal and the first access point to communicate through the second communication link when it is determined that there is an abnormality in the first communication link between the first terminal and the first access point; wherein the communication quality of the second communication link is better than the communication quality of the first communication link.
[0034] A data transmission device, comprising: a processor, a memory and a communication bus;
[0035] The communication bus is used to realize the communication connection between the processor and the memory;
[0036] The processor is used to execute the data transmission program stored in the memory to implement the steps of the above-mentioned data transmission method.
[0037] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned data transmission method.
[0038] The data transmission method, apparatus, device and computer-readable storage medium provided by the embodiments of the present application establish a first multi-hop network based on multiple terminals; determine a second terminal from the nodes of the first multi-hop network based on the target position of the first terminal relative to the first access point; wherein the multiple terminals include a first terminal and a second terminal; establish a second communication link for communication between the first terminal and the first access point through the second terminal; when it is determined that the first communication link between the first terminal and the first access point is abnormal, control the first terminal and the first access point to communicate through the second communication link; wherein the communication quality of the second communication link is better than the communication quality of the first communication link; in this way, when the first terminal is blocked and the first communication link is abnormal, the first terminal and the first access point can be controlled to communicate using the second communication link, so as to avoid data loss and delay problems when the first communication link is abnormal and the first terminal and the first access point still communicate through the first communication link, thereby improving the reliability and timeliness of the communication between the first terminal and the first access point. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;
[0040] Figure 2 A flowchart of another data transmission method provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of a scenario of a data transmission method provided in an embodiment of the present application;
[0042] Figure 4 A flowchart of another data transmission method provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0046] The present application provides a data transmission method, which is applied to a data transmission device. Figure 1 As shown, the method comprises the following steps:
[0047] Step 101: Establish a first multi-hop network based on multiple terminals.
[0048] In the embodiment of the present application, each terminal has a Trustworthy Industrial Gateway (TIG) network communication module, and the TIG network communication module can be used to network multiple TIG network communication modules to establish a first multi-hop network between multiple terminals. Among them, the TIG network communication module can have (AP+STA) capabilities, which can enable the terminal to provide wireless access and also connect to other access points (Access Point, AP) to continue to provide Internet access.
[0049] In a feasible implementation, the first multi-hop network may be a wireless mesh network; and the multiple terminals may be multiple AGVs.
[0050] Step 102: Determine a second terminal from nodes of a first multi-hop network based on a target location of the first terminal relative to the first access point.
[0051] Wherein, the plurality of terminals include a first terminal and a second terminal;
[0052] In an embodiment of the present application, the position of the first terminal and the position of the first access point can be detected in real time or periodically to determine the target position of the first terminal relative to the first access point according to the position of the first terminal and the position of the first access point, and then the second terminal can be determined from the nodes of the first multi-hop network according to the target position; wherein the first terminal and the second terminal are different; wherein the number of the second terminals can be at least one; and the first access point can specifically be a first wireless access point.
[0053] Step 103: Establish a second communication link between the first terminal and the first access point through the second terminal.
[0054] The first communication link and the second communication link are different.
[0055] In the embodiment of the present application, the data transmission device may send an establishment request for establishing a second communication link to the first access point, the second terminal, and the first terminal, so as to establish the second communication link.
[0056] Step 104: When it is determined that an abnormality exists in the first communication link between the first terminal and the first access point, control the first terminal and the first access point to communicate through a second communication link.
[0057] The communication quality of the second communication link is better than the communication quality of the first communication link, and there is no abnormality in the second communication link.
[0058] It should be noted that whether there is an abnormality in the first communication link is determined by the communication quality of the first communication link and the target communication quality; the existence of an abnormality in the first communication link may refer to poor communication quality of the first communication link; the communication quality of the first communication link may be determined by a detection signal transmitted by the first communication link.
[0059] In the embodiment of the present application, the data transmitted when the first terminal and the first access point communicate is the data to be transmitted. The data to be transmitted is transmitted through the second communication link, which can avoid the loss of the data to be transmitted during the transmission process, resulting in incomplete data to be transmitted received by the receiving end, thereby improving the accuracy of the data to be transmitted received by the receiving end; moreover, it can also avoid the problem of delay, and improve the timeliness and reliability of the receiving end receiving the data to be transmitted. Among them, the data to be transmitted can be the status data of the first terminal itself, the second terminal can receive the status data sent by the first terminal, and forward the status data to the first access point, so that the first access point can transmit the status data to the scheduling system; the data to be transmitted can also be the scheduling instruction or task information issued by the scheduling system received by the first access point, the second terminal can receive the scheduling instruction or task information sent by the first access point, and forward the scheduling instruction or task information to the first terminal.
[0060] In a feasible implementation, the first terminal and the second terminal may be AGVs, and the dispatching system may be an AGV dispatching system.
[0061] The data transmission method provided in the embodiment of the present application establishes a first multi-hop network based on multiple terminals; determines a second terminal from the nodes of the first multi-hop network based on the target position of the first terminal relative to the first access point; wherein the multiple terminals include a first terminal and a second terminal; establishes a second communication link for communication between the first terminal and the first access point through the second terminal; when it is determined that the first communication link between the first terminal and the first access point is abnormal, controls the first terminal and the first access point to communicate through the second communication link; wherein the communication quality of the second communication link is better than the communication quality of the first communication link; in this way, when the first terminal is blocked and the first communication link is abnormal, the first terminal and the first access point can be controlled to communicate using the second communication link, thereby avoiding the problem of data loss and delay when the first terminal and the first access point still communicate through the first communication link when the first communication link is abnormal, thereby improving the reliability and timeliness of the communication between the first terminal and the first access point.
[0062] Based on the above embodiments, the present application provides a data transmission method, referring to Figure 2As shown, the method comprises the following steps:
[0063] Step 201: A data transmission device establishes a first multi-hop network based on multiple terminals.
[0064] Step 202: The data transmission device determines a plurality of third terminals from the nodes of the first multi-hop network based on the target location.
[0065] In an embodiment of the present application, a target distance between the first access point and the first terminal can be determined according to the target position, and a target area can be determined from an area covered by the first multi-hop network according to the target distance and the target position, and a third terminal can be determined according to a plurality of nodes in the target area.
[0066] In a feasible implementation, a candidate area centered on the first access point can be determined according to the target distance and the target position, and an intersection area of the area covered by the first multi-hop network and the candidate area can be determined, and the intersection area can be used as the target area to obtain terminals corresponding to nodes in the target area, and terminals other than the first terminal can be determined from the terminals corresponding to the nodes in the target area to obtain a third terminal.
[0067] Step 203: The data transmission device determines a plurality of first paths for communication between the first access point and the first terminal based on the plurality of third terminals, the first access point, and the first terminal.
[0068] Each first path has at least one third terminal.
[0069] In the embodiment of the present application, multiple paths for the first access point to communicate with the first terminal may be determined through multiple third terminals.
[0070] In a feasible implementation, the first access point is represented by A, the first terminal is represented by B, and the first path may be ACB or ADEB. C, D and E all represent third terminals corresponding to the nodes in the target area.
[0071] Step 204: The data transmission device determines a second terminal based on the multiple first paths.
[0072] In the embodiment of the present application, the communication quality of each first path can be detected, and multiple first paths can be screened according to the communication quality of the first path, so as to determine the second terminal according to the screened second path. The second path can be understood as the optimal path determined from the multiple first paths.
[0073] It should be noted that step 204 can be implemented through steps a1-a2:
[0074] Step a1: The data transmission device determines a second path from a plurality of first paths based on the number of nodes of each first path, the length of each first path, and the communication quality of each first path.
[0075] In the embodiment of the present application, based on the number of nodes of each first path and the length of each first path, a path whose number of nodes meets the target number of nodes and whose length meets the target length can be determined from the multiple first paths as the third path, and a path with the best communication quality can be determined from the third paths as the second path. The target length is used to represent the communication distance.
[0076] In a feasible implementation, the target number of nodes may be 4, the target length may be 50m, and when the number of nodes of the first path is less than or equal to 4, it is determined that the number of nodes of the first path meets the target number, and when the length of the first path is less than or equal to 50m, it is determined that the length of the first path meets the target length. The nodes of the first path include nodes corresponding to the first terminal and nodes corresponding to the first access point, and when the target number of nodes is 4, the number of third terminals between the first terminal and the first access point may be 1 or 2.
[0077] It should be noted that the first path is screened by the number of target nodes and the target length to ensure the reliability of multiple hops, thereby further improving the reliability of the determined second path.
[0078] Step a2: The data transmission device determines the second terminal based on the nodes on the second path.
[0079] In the embodiment of the present application, a terminal corresponding to a node on the second path other than the node corresponding to the first terminal and the node corresponding to the first access point may be used as the second terminal.
[0080] In a feasible implementation, if the second path is ACB, nodes A and B correspond to the first access point and the first terminal respectively, and the terminal corresponding to node C can be used as the second terminal; if the second path is ADEB, the terminals corresponding to D and E can be used as the second terminal.
[0081] Step 205: The data transmission device establishes a second communication link between the first terminal and the first access point through the second terminal.
[0082] Step 206: The data transmission device determines a link quality parameter of the first communication link.
[0083] In the embodiment of the present application, the detection signal transmitted on the first communication link can be detected, and the detection signal can be analyzed to determine the link quality parameters; wherein the link quality parameters at least include the signal strength, packet loss rate and retransmission rate of the detection signal. The detection signal is used to detect whether the receiving end exists, and is also used to determine whether the communication link between the sending end and the receiving end is abnormal.
[0084] It should be noted that the detection signal may be a signal sent by the first access point to the first terminal; or may be a signal sent by the first terminal to the first access point.
[0085] Step 207: When the link quality parameter does not meet the target communication quality, the data transmission device determines that an abnormality exists in the first communication link.
[0086] In an embodiment of the present application, the target communication quality may be determined in advance after analyzing a large number of historical link quality parameters, wherein the target communication quality may include a target signal strength, a target packet loss rate, and a target retransmission rate. The link quality parameters may be compared with the target communication quality. When the signal strength of the received detection signal is less than the target signal strength, and the packet loss rate is greater than the target packet loss rate, and the retransmission rate is greater than the target retransmission rate, it is determined that the link quality parameters do not meet the target communication quality, and it is determined that the first communication link is abnormal; when the signal strength of the received detection signal is greater than or equal to the target signal strength, and the packet loss rate is less than or equal to the target packet loss rate, and the retransmission rate is less than or equal to the target retransmission rate, it is determined that the link quality parameters meet the target communication quality, and it is determined that there is no abnormality in the first communication link.
[0087] It should be noted that a numerical value characterizing the communication quality of the first communication link can also be determined based on the link quality parameters. When the numerical value is less than the target numerical value, it is determined that there is an abnormality in the first communication link; wherein the target numerical value is used to represent the target communication quality; the numerical value can be calculated based on multiple parameters in the link quality parameters, wherein each parameter corresponds to a different weight.
[0088] In a feasible implementation, the weight of signal strength is the first weight, the weight of packet loss rate is the second weight, and the weight of retransmission rate is the third weight. The first value can be obtained by multiplying the signal strength of the acquired detection signal by the first weight, the second value can be obtained by multiplying the packet loss rate determined according to the detection signal by the second weight, and the third value can be obtained by multiplying the retransmission rate determined according to the detection signal by the third weight. The first value, the second value and the third value are summed to obtain the value. When the value is less than the target value, it is determined that there is an abnormality in the first communication link.
[0089] Step 208: When the first terminal is in the first mode and an abnormality occurs in the first communication link, the data transmission device controls the first terminal to switch from the first mode to the second mode.
[0090] The first mode indicates that communication with the first access point can be performed; the second mode indicates that communication with the terminal can be performed.
[0091] It should be noted that the first mode may be specifically a client mode, also known as a STA (Station) mode. When the first terminal is in the STA mode, the first terminal communicates only with the first access point, and does not allow access by other wireless devices. Specifically, it can be understood that the first terminal does not allow communication with other terminals. When the first terminal is in the STA mode, the network for communication between the first terminal and the first access point is a single-hop network. The second mode may be specifically a Mesh mode, in which the first terminal can communicate with other terminals.
[0092] In an embodiment of the present application, when the first terminal is in the first mode and there is an abnormality in the first communication link, in order to ensure the communication quality between the first terminal and the first access point, the first terminal can be controlled to switch the communication mode to the second mode, so that the first terminal can communicate with other terminals when in the second mode.
[0093] Step 209: When the first terminal is in the second mode, the data transmission device controls the first terminal and the first access point to communicate through the second communication link.
[0094] In an embodiment of the present application, when the first terminal is in the second mode, that is, when the first terminal allows other terminals to communicate (it can also be understood that the first terminal allows other wireless devices to access), the first terminal can send the data to be transmitted to the second terminal based on the second communication link, and the second terminal forwards it to the first access point; the first access point can also receive the data to be transmitted sent by the scheduling system, and transmit the data to be transmitted to the first terminal through the second terminal.
[0095] Based on the foregoing embodiment, in other embodiments of the present application, the data transmission method may further include the following steps:
[0096] Step 210: When determining that there is no abnormality in the first communication link between the first terminal and the first access point, the data transmission device determines a target communication link from the first communication link and the second communication link based on the communication quality of the first communication link and the communication quality of the second communication link.
[0097] In the embodiment of the present application, when it is determined that there is no abnormality in the first communication link, the communication quality of the first communication link and the communication quality of the second communication link can be compared to determine the target communication link with the best link quality from the first communication link and the second communication link.
[0098] It should be noted that the priority of the first communication link is higher than that of the second communication link, that is, when the communication quality of the first communication link is the same as the communication quality of the second communication link, the first communication link is preferably used as the target communication link.
[0099] Step 211: The data transmission device controls the first terminal and the first access point to communicate through the target communication link.
[0100] In an embodiment of the present application, based on the target communication link, the second terminal can receive the data to be transmitted sent by the first terminal, and forward the data to be transmitted to the first access point, so as to send the data to be transmitted to the scheduling system through the first access point; of course, the first access point can receive the data to be transmitted sent by the scheduling system, and send the data to be transmitted to the second terminal, so as to forward the data to be transmitted to the first terminal through the second terminal.
[0101] Step 212: When the first terminal is in the second mode and the first terminal moves to a second multi-hop network outside the first multi-hop network, the data transmission device uses a virtual access point technology to establish a third communication link between the first terminal and the second access point through a fourth terminal in the second multi-hop network.
[0102] In the embodiment of the present application, the communication between the first multi-hop network and the second multi-hop network can be realized through the virtual access point (VAP) technology. When the first terminal moves to the second multi-hop network outside the first multi-hop network, the communication quality is poor due to the distance from the first multi-hop network. The first terminal can communicate with the fourth terminal in the second multi-hop network, and the fourth terminal forwards the data to be transmitted to the second access point, and the second access point sends the data to be transmitted to the scheduling system; of course, the second access point can also send the data to be transmitted to the first access point, and the first access point can send the data to be transmitted to the scheduling system after receiving the data to be transmitted. Among them, the process of determining the fourth terminal from the second multi-hop network is similar to the process of determining the second terminal from the first multi-hop network, and the embodiment of the present application will not be repeated.
[0103] It should be noted that the first multi-hop network communicates with the scheduling system through the first access point, and the second multi-hop network communicates with the scheduling system through the second access point.
[0104] Step 213: The data transmission device controls the first terminal and the first access point to communicate through the third communication link.
[0105] It should be noted that the implementation process of step 213 is similar to the implementation process of step 211, and will not be repeated in the embodiments of the present application.
[0106] The following is a detailed explanation of the data transmission method provided in the embodiment of the present application in combination with an application scenario, with the first terminal transmitting data to be transmitted to the first access point.
[0107] like Figure 3 As shown, when the first terminal is the first AGV, the first access point is the first wireless access point, and the warehouse shelf blocks the first AGV, so that the antenna installed on the first AGV is also blocked, which causes the first communication link between the first AGV and the first wireless access point to be abnormal. In this case, the data transmission device can control the working mode of the first AGV to be Mesh mode, so that the first AGV can send the data to be transmitted to the second AGV based on the second communication link, and the second AGV forwards the data to be transmitted to the first wireless access point. Among them, both the first AGV and the second AGV have a TIG network communication module, and the first AGV and the second AGV communicate through the TIG network communication module. Among them, the number of first wireless access points can be set according to the route of the AGV car when it is working.
[0108] It should be noted that, through the TIG network communication module, the first terminal can not only support the first mode and the second mode, but also support the third mode; wherein the third mode is the AP mode, and when the first terminal is in the AP mode, the first terminal can be regarded as a wireless access point, so as to bridge the first terminal with the first wireless access point to achieve communication between the first terminal and the first wireless access point. wherein the fourth communication link established when the first terminal bridges with the first wireless access point is different from the first communication link.
[0109] In an embodiment of the present application, a network management software is run on the data transmission device. The network management software can draw a Mesh network topology map based on the positions of multiple terminals relative to the first wireless access point, so as to determine multiple first paths for communication between the first access point and the first terminal based on the Mesh network topology map, and to achieve centralized management and remote real-time monitoring of the communication quality, network connection status and traffic load of the multiple first paths, so as to determine the second communication link, and can also control the multiple terminals to maintain connection.
[0110] The following is a detailed explanation of the data transmission method provided in the embodiment of the present application in combination with an application scenario, in which a scheduling system transmits data to be transmitted to a first terminal.
[0111] like Figure 4As shown, when the AGV dispatching system sends the data to be transmitted to the first terminal through the first wireless access point, the data transmission device can first determine the second path from multiple first paths, and determine the second terminal according to the nodes on the second path, establish a second communication link between the first wireless access point and the first terminal through the second terminal, and determine the target communication link with the best communication quality from the first communication link and the second communication link based on the communication quality of the first communication link and the communication quality of the second communication link, and transmit the data to be transmitted to the first terminal based on the target communication link. In order to ensure the reliability of multi-hop, when determining the second communication link, the second communication link is limited to within 3 hops, and the transmission distance of the second communication link is limited to about 50m.
[0112] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0113] The data transmission method provided in the embodiment of the present application can control the first terminal and the first access point to communicate using the second communication link when the first terminal is blocked and the first communication link is abnormal, thereby avoiding the problem of data loss and delay when the first terminal and the first access point still communicate through the first communication link when the first communication link is abnormal, thereby improving the reliability and timeliness of the communication between the first terminal and the first access point. Moreover, by establishing a first multi-hop network between multiple terminals to establish a second communication link, the reliability of the industrial network is enhanced.
[0114] Based on the above embodiments, the embodiments of the present application provide a data transmission device, which is applied to Figures 1-2 In the data transmission method provided in the corresponding embodiment, refer to Figure 5 As shown, the data transmission device 3 may include an establishing unit 31, a determining unit 32 and a transmitting unit 33, wherein:
[0115] An establishing unit 31, configured to establish a first multi-hop network based on multiple terminals;
[0116] A determining unit 32, configured to determine a second terminal from nodes of the first multi-hop network based on a target location of the first terminal relative to the first access point; wherein the plurality of terminals include the first terminal and the second terminal;
[0117] The establishing unit 31 is further configured to establish a second communication link for communication between the first terminal and the first access point through the second terminal;
[0118] The transmission unit 33 is used to control the first terminal and the first access point to communicate through a second communication link when it is determined that there is an abnormality in the first communication link between the first terminal and the first access point; wherein the communication quality of the second communication link is better than the communication quality of the first communication link.
[0119] In the embodiment of the present application, the determining unit 32 is further configured to perform the following steps:
[0120] Based on the target location, determining a plurality of third terminals from nodes of the first multi-hop network;
[0121] Based on the plurality of third terminals, the first access point and the first terminal, determining a plurality of first paths for communication between the first access point and the first terminal; wherein each first path has at least one third terminal;
[0122] Based on the multiple first paths, a second terminal is determined.
[0123] In the embodiment of the present application, the determining unit 32 is further configured to perform the following steps:
[0124] determining a second path from the plurality of first paths based on the number of nodes of each first path, the length of each first path, and the communication quality of each first path;
[0125] A second terminal is determined based on the nodes on the second path.
[0126] In the embodiment of the present application, the determining unit 32 is further configured to perform the following steps:
[0127] determining a link quality parameter of the first communication link;
[0128] When the link quality parameter does not satisfy the target communication quality, it is determined that an abnormality exists in the first communication link.
[0129] In the embodiment of the present application, the transmission unit 33 is further configured to perform the following steps:
[0130] When the first terminal is in the first mode and the first communication link is abnormal, control the first terminal to switch from the first mode to the second mode; wherein the first mode indicates that it can communicate with the first access point; and the second mode indicates that it can communicate with the terminal;
[0131] When the first terminal is in the second mode, the first terminal and the first access point are controlled to communicate through the second communication link.
[0132] In the embodiment of the present application, the transmission unit 33 is further configured to perform the following steps:
[0133] In a case where it is determined that there is no abnormality in the first communication link between the first terminal and the first access point, determining a target communication link from the first communication link and the second communication link based on the communication quality of the first communication link and the communication quality of the second communication link;
[0134] The first terminal and the first access point are controlled to communicate through the target communication link.
[0135] In the embodiment of the present application, the transmission unit 33 is further configured to perform the following steps:
[0136] When the first terminal is in the second mode and the first terminal moves to a second multi-hop network outside the first multi-hop network, a third communication link for communication between the first terminal and the second access point is established through a fourth terminal in the second multi-hop network using a virtual access point technology;
[0137] The first terminal and the first access point are controlled to communicate via the third communication link.
[0138] It should be noted that the specific implementation process of the steps performed by each unit in this embodiment can be referred to Figures 1-2 The implementation process of the data transmission method provided in the corresponding embodiment will not be repeated here.
[0139] The data transmission device provided in the embodiment of the present application can control the first terminal and the first access point to communicate using the second communication link when the first terminal is blocked and the first communication link is abnormal, thereby avoiding data loss and delay problems caused by the first terminal and the first access point still communicating through the first communication link when the first communication link is abnormal, thereby improving the reliability and timeliness of communication between the first terminal and the first access point.
[0140] Based on the above embodiments, the embodiments of the present application provide a data transmission device, which can be applied to Figures 1-2 In the data transmission method provided in the corresponding embodiment, refer to Figure 6 As shown, the data transmission device 4 may include: a memory 41, a processor 42 and a communication bus 43; wherein:
[0141] The communication bus 43 is used to realize the communication connection between the processor 42 and the memory 41;
[0142] The processor 42 is used to execute the data transmission program stored in the memory 41 to implement the following steps:
[0143] Based on the multiple terminals, a first multi-hop network is established;
[0144] Determining a second terminal from nodes of a first multi-hop network based on a target location of the first terminal relative to the first access point; wherein the plurality of terminals include the first terminal and the second terminal;
[0145] Establishing, by the second terminal, a second communication link for communication between the first terminal and the first access point;
[0146] When it is determined that an abnormality exists in a first communication link between the first terminal and the first access point, the first terminal and the first access point are controlled to communicate through a second communication link; wherein the communication quality of the second communication link is better than the communication quality of the first communication link.
[0147] In other embodiments of the present application, the processor 42 is used to execute the data transmission program in the memory 41 to determine the second terminal from the nodes of the first multi-hop network based on the target position of the first terminal relative to the first access point, so as to implement the following steps:
[0148] Based on the target location, determining a plurality of third terminals from nodes of the first multi-hop network;
[0149] Based on the plurality of third terminals, the first access point and the first terminal, determining a plurality of first paths for communication between the first access point and the first terminal; wherein each first path has at least one third terminal;
[0150] Based on the multiple first paths, a second terminal is determined.
[0151] In other embodiments of the present application, the processor 42 is used to execute the data transmission program in the memory 41 to determine the second terminal based on the multiple first paths, so as to implement the following steps:
[0152] determining a second path from the plurality of first paths based on the number of nodes of each first path, the length of each first path, and the communication quality of each first path;
[0153] A second terminal is determined based on the nodes on the second path.
[0154] In other embodiments of the present application, the processor 42 is used to execute the data transmission program in the memory 41 to implement the following steps:
[0155] determining a link quality parameter of the first communication link;
[0156] When the link quality parameter does not satisfy the target communication quality, it is determined that an abnormality exists in the first communication link.
[0157] In other embodiments of the present application, the processor 42 is used to execute the data transmission program in the memory 41, in the case of determining that there is an abnormality in the first communication link between the first terminal and the first access point, control the first terminal and the first access point to communicate through the second communication link, so as to implement the following steps:
[0158] When the first terminal is in the first mode and the first communication link is abnormal, control the first terminal to switch from the first mode to the second mode; wherein the first mode indicates that it can communicate with the first access point; and the second mode indicates that it can communicate with the terminal;
[0159] When the first terminal is in the second mode, the first terminal and the first access point are controlled to communicate through the second communication link.
[0160] In other embodiments of the present application, the processor 42 is used to execute the data transmission program in the memory 41 to implement the following steps:
[0161] In a case where it is determined that there is no abnormality in the first communication link between the first terminal and the first access point, determining a target communication link from the first communication link and the second communication link based on the communication quality of the first communication link and the communication quality of the second communication link;
[0162] The first terminal and the first access point are controlled to communicate through the target communication link.
[0163] In other embodiments of the present application, the processor 42 is used to execute the data transmission program in the memory 41 to implement the following steps:
[0164] When the first terminal is in the second mode and the first terminal moves to a second multi-hop network outside the first multi-hop network, a third communication link for communication between the first terminal and the second access point is established through a fourth terminal in the second multi-hop network using a virtual access point technology;
[0165] The first terminal and the first access point are controlled to communicate via the third communication link.
[0166] It should be noted that the specific implementation process of the steps executed by the processor in this embodiment can refer to Figures 1-2 The implementation process of the data transmission method provided in the corresponding embodiment will not be repeated here.
[0167] The data transmission device provided in the embodiment of the present application can control the first terminal and the first access point to communicate using the second communication link when the first terminal is blocked and the first communication link is abnormal, thereby avoiding data loss and delay problems caused by the first terminal and the first access point still communicating through the first communication link when the first communication link is abnormal, thereby improving the reliability and timeliness of communication between the first terminal and the first access point.
[0168] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figures 1-2 The corresponding embodiments provide steps of the data transmission method.
[0169] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0170] It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0171] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0172] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0173] 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 prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0174] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0175] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0176] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0177] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The method comprises: Based on the multiple terminals, establish a first multi-hop network; Determine a second terminal from nodes of the first multi-hop network based on a target location of the first terminal relative to the first access point; wherein the plurality of terminals include the first terminal and the second terminal; establishing, by the second terminal, a second communication link for communication between the first terminal and the first access point; When it is determined that there is an abnormality in the first communication link between the first terminal and the first access point, control the first terminal and the first access point to communicate through the second communication link; wherein the communication quality of the second communication link is better than the communication quality of the first communication link; The determining the second terminal from the nodes of the first multi-hop network based on the target position of the first terminal relative to the first access point includes: determining a target distance between the first access point and the first terminal based on the target position; Based on the target distance and the target position, determine a candidate area centered on the first access point, determine an intersection area of an area covered by the first multi-hop network and the candidate area, and use the intersection area as a target area to obtain terminals corresponding to nodes in the target area; Determine a terminal other than the first terminal from the terminals corresponding to the nodes in the target area to obtain a plurality of third terminals; Based on the multiple third terminals, the first access point and the first terminal, determine multiple first paths for communication between the first access point and the first terminal; wherein each first path has at least one third terminal; Based on the multiple first paths, the second terminal is determined.
2. The method according to claim 1, characterized in that The determining the second terminal based on the plurality of first paths includes: Determining a second path from the plurality of first paths based on the number of nodes of each first path, the length of each first path, and the communication quality of each first path; The second terminal is determined based on the nodes on the second path.
3. The method according to claim 1, characterized in that Before, in the case where it is determined that an abnormality exists in the first communication link between the first terminal and the first access point, controlling the first terminal and the first access point to communicate through the second communication link, the method further includes: determining a link quality parameter of the first communication link; When the link quality parameter does not meet the target communication quality, it is determined that an abnormality exists in the first communication link.
4. The method according to claim 1, characterized in that: The step of controlling the first terminal and the first access point to communicate through the second communication link when it is determined that the first communication link between the first terminal and the first access point is abnormal includes: When the first terminal is in a first mode and the first communication link is abnormal, control the first terminal to switch from the first mode to a second mode; wherein the first mode indicates that communication with the first access point is possible; and the second mode indicates that communication with the terminal is possible; When the first terminal is in the second mode, the first terminal and the first access point are controlled to communicate through the second communication link.
5. The method according to claim 1, characterized in that The method further comprises: In a case where it is determined that there is no abnormality in the first communication link between the first terminal and the first access point, determining a target communication link from the first communication link and the second communication link based on the communication quality of the first communication link and the communication quality of the second communication link; The first terminal and the first access point are controlled to communicate through the target communication link.
6. The method according to claim 4, characterized in that The method further comprises: When the first terminal is in the second mode and the first terminal moves to a second multi-hop network outside the first multi-hop network, a third communication link for communication between the first terminal and a second access point is established through a fourth terminal in the second multi-hop network using a virtual access point technology; Control the first terminal and the first access point to communicate through the third communication link.
7. A data transmission device, characterized in that: The device comprises: An establishing unit, configured to establish a first multi-hop network based on multiple terminals; a determining unit, configured to determine a second terminal from nodes of the first multi-hop network based on a target location of the first terminal relative to the first access point; wherein the plurality of terminals include the first terminal and the second terminal; The establishing unit is further configured to establish, through the second terminal, a second communication link for communication between the first terminal and the first access point; a transmission unit, configured to control the first terminal and the first access point to communicate through the second communication link when it is determined that the first communication link between the first terminal and the first access point is abnormal; wherein the communication quality of the second communication link is better than the communication quality of the first communication link; Wherein, the determining unit is specifically used for: determining a target distance between the first access point and the first terminal based on the target position; Based on the target distance and the target position, determine a candidate area centered on the first access point, determine an intersection area of an area covered by the first multi-hop network and the candidate area, and use the intersection area as a target area to obtain terminals corresponding to nodes in the target area; Determine a terminal other than the first terminal from the terminals corresponding to the nodes in the target area to obtain a plurality of third terminals; Based on the multiple third terminals, the first access point and the first terminal, determine multiple first paths for communication between the first access point and the first terminal; wherein each first path has at least one third terminal; Based on the multiple first paths, the second terminal is determined.
8. A data transmission device, characterized in that: The data transmission device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the data transmission program stored in the memory to implement the steps of the data transmission method described in any one of claims 1 to 6 above.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the data transmission method according to any one of claims 1 to 6.
