Data transmission method and device based on relay link, equipment and storage medium
By locating relay terminals around the terminal and establishing relay links, the data transmission problem caused by abnormal network signals was solved, enabling data transmission even when the wireless network signal is abnormal, and supporting the normal operation of intercom services.
Patent Information
- Application Number
- CN202411070290.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2026-02-06
AI Technical Summary
During terminal use, network signal abnormalities caused by environmental changes may result in weak or no broadband/narrowband network signals, affecting data transmission and causing inconvenience to users' services.
By locating relay terminals on available wireless network channels in the vicinity, and using short-range communication signals to connect with the relay terminals to establish a relay link, data transmission can be achieved.
When the wireless network signal is abnormal, data transmission is achieved through a relay link to ensure that the terminal with the abnormal signal can connect to the broadband or narrowband network and support the development of real-time intercom services.
Smart Images

Figure CN121487033A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a data transmission method and device based on a relay link, equipment and a storage medium. BACKGROUND
[0002] In actual use of a terminal (for example, an intercom terminal), a user may use a wideband network or a narrowband network to carry out group call, individual call and intercom communication according to actual business conditions. However, in actual use, the network of a base station or a satellite may be limited due to changes in the environment of the terminal, resulting in a weak signal or no signal of the wide / narrowband network of the terminal, and thus the terminal cannot complete relevant data transmission, causing great inconvenience to the user in relevant business.
[0003] Therefore, it has become a technical problem to be solved by those skilled in the art to provide a technical solution for normal data transmission of a terminal in the case of abnormal network signal. SUMMARY
[0004] In view of the above, the present application provides a data transmission method and device based on a relay link, equipment and a storage medium, which aims to solve the above technical problems.
[0005] In a first aspect, the present application provides a data transmission method based on a relay link, which comprises the following steps:
[0006] When a target terminal has data to be transmitted through a wireless network, if the wireless network signal is abnormal, a relay terminal having an available wireless network channel is found, wherein the relay terminal is a terminal capable of short-distance communication connection with the target terminal.
[0007] The target terminal is connected to the relay terminal through a short-distance communication signal and a relay link is constructed.
[0008] The target terminal transmits data based on the relay link and the network channel of the relay terminal.
[0009] In a second aspect, the present application provides a data transmission device based on a relay link, which comprises the following modules:
[0010] A finding module is configured to find a relay terminal having an available wireless network channel when a target terminal has data to be transmitted through a wireless network, if the wireless network signal is abnormal, wherein the relay terminal is a terminal capable of short-distance communication connection with the target terminal.
[0011] A connecting module is configured to connect the target terminal to the relay terminal through a short-distance communication signal and construct a relay link.
[0012] The transmission module is configured to perform data transmission by the target terminal based on the relay link and using a network channel of the relay terminal.
[0013] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus.
[0014] The memory is configured to store a computer program.
[0015] The processor is configured to execute the program stored on the memory, and implement the data transmission method based on the relay link according to any one of the first aspect.
[0016] In a fourth aspect, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the data transmission method based on the relay link according to any one of the first aspect.
[0017] Compared with the prior art, the above technical solution provided by the embodiments of the present application has the following advantages:
[0018] When the target terminal has data to be transmitted through a wireless network, if the wireless network signal is abnormal, the present application searches for a relay terminal having an available wireless network channel, wherein the relay terminal is a terminal capable of short-distance communication connection with the target terminal, the target terminal is connected with the relay terminal through a short-distance communication signal and a relay link is constructed, and the target terminal performs data transmission based on the relay link and using the network channel of the relay terminal. Since the terminal intercom service has the characteristics of real-time and non-long-time signal occupation, the relay link constructed will not have too much impact on the services of other terminals in the link. When the target terminal has no broadband or narrowband network signal, the relay link can be used as an auxiliary to realize normal communication of the target terminal, so that the target terminal with abnormal signal can be connected to a broadband or narrowband network through the link formed by the relay terminal. When the target terminal has abnormal network signal, the long-distance data transmission can also be realized, which brings great convenience to the actual intercom service. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate an embodiment consistent with the present application and, together with the description, serve to explain the principles of the application.
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0021] Figure 1 This is a flowchart illustrating an embodiment of the data transmission method based on a relay link in this application;
[0022] Figure 2 This is a schematic diagram of the process for locating a relay terminal in an embodiment of this application;
[0023] Figure 3 This is a schematic diagram of the process for finding the next-level bridging terminal corresponding to the bridging terminal in an embodiment of this application;
[0024] Figure 4 This is a schematic diagram of a module of an embodiment of the data transmission device based on a relay link according to this application;
[0025] Figure 5 This is a schematic diagram of an embodiment of the electronic device of this application;
[0026] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0029] This application provides a data transmission method based on a relay link. (Refer to...) Figure 1 The diagram shown is a flowchart illustrating an embodiment of the data transmission method based on a relay link according to this application. This method can be executed by an electronic device (e.g., a walkie-talkie terminal), which can be implemented in software and / or hardware. The data transmission method based on a relay link includes:
[0030] Step S10: When the target terminal needs to transmit data through the wireless network, if the wireless network signal is abnormal, find a relay terminal with an available wireless network channel, wherein the relay terminal is a terminal that can make short-range communication connection with the target terminal.
[0031] Step S20: The target terminal connects with the relay terminal via short-range communication signals and establishes a relay link;
[0032] Step S30: The target terminal transmits data using the network channel of the relay terminal based on the relay link.
[0033] In this embodiment, the target terminal can refer to a terminal that needs to transmit data, such as a multi-mode terminal that needs to transmit voice data. In actual use, users of multi-mode terminals will use broadband or narrowband networks to conduct group calls and individual calls for communication, depending on the actual business situation. Wireless networks include wireless broadband networks and narrowband networks. Broadband networks can be public networks using standards such as LTE, 4G, and 5G, while narrowband networks can be dedicated networks with narrower channel bandwidth using standards such as DMR, PDT, and Tetra. Network signal abnormality of the target terminal can mean that the target terminal has no broadband signal or no narrowband signal, or that the broadband / narrowband signal strength is less than a preset value, making it impossible for the terminal to transmit data wirelessly. For example, in conventional communication systems in the wireless intercom field, if interference signals are detected that affect normal signal transmission, it is considered a signal abnormality; in trunked communication systems, if no valid signal is detected or interference signals are detected, it is considered a network signal abnormality. That is, network signal abnormality means that the terminal cannot transmit data wirelessly. It should be noted that if the channel is busy (e.g., data is being transmitted, or the channel is occupied by other terminals), it is not considered a network signal abnormality.
[0034] When a target terminal needs to transmit data via a wireless network, if an abnormal wireless network signal is detected, the system establishes short-range communication connections with nearby terminals to obtain information about their network status. This allows the system to identify terminals with available wireless network channels as relay terminals. A relay terminal can be the terminal with the strongest signal strength among all terminals with available wireless network channels and capable of short-range communication with the target terminal, or the terminal with the highest quality available wireless network channel. For example, in an FDMA system, a terminal with an available wireless network channel refers to a terminal with an idle channel on a usable wireless frequency that can transmit data; in a TDMA system, where multiple time-division multiplexing channels exist on a single frequency, a terminal with an available wireless network channel refers to a terminal with an available idle time-division multiplexing channel for data transmission. In other words, if the relay terminal's network signal is normal and the channel is unoccupied, it can transmit services via the wireless network channel. This ensures that when the target terminal's wireless network signal is abnormal, the target terminal can establish a short-range communication connection with the relay terminal via Wi-Fi or Bluetooth, forming a communication link and allowing the target terminal with an abnormal signal to utilize the network channel of the relay terminal with a normal network signal for data transmission. It can also enable the target terminal to achieve long-distance data transmission through a relay link formed by the relay terminal's Wi-Fi or Bluetooth signal.
[0035] Taking disaster relief as an example, since some base stations in the disaster area may be damaged, when the walkie-talkie terminal (target terminal) carried by the rescuers enters the rescue area, it may cause abnormal network signal of the walkie-talkie terminal (unable to connect to the network or the network signal is weak). Emergency equipment is often unable to connect due to distance or obstructions, resulting in the inability to carry out walkie-talkie services.
[0036] To ensure uninterrupted real-time communication and coordination of disaster relief information, the target terminal can establish short-range communication connections with surrounding terminals via Wi-Fi or Bluetooth signals. This allows the target terminal to obtain information about the broadband or narrowband signal strength of these surrounding terminals (e.g., signal strength, channel occupancy, signal integrity). The terminal with the strongest broadband or narrowband network signal in the vicinity is then used as a relay terminal. The target terminal is then connected to the relay terminal via Wi-Fi or Bluetooth to establish a communication link. This enables the target terminal with an abnormal network signal to successfully connect to the broadband or narrowband network, allowing it to establish intercom services with other terminals or servers.
[0037] Due to the real-time nature of the intercom service and the fact that it does not occupy the signal for a long time, the constructed relay link will not have much impact on the calls of other terminals in the link. When the target terminal has no broadband or narrowband network signal, the link, as an auxiliary for the normal communication of the target terminal, can ensure that the target terminal with abnormal signal is connected to the broadband or narrowband network through the link formed by the relay terminal, enabling the target terminal to achieve data transmission even when its own network signal is abnormal, which brings great convenience to the actual development of the intercom service.
[0038] In one embodiment, the finding of a relay terminal with an available wireless network channel includes:
[0039] Among the terminals that can perform short-distance communication connection with the target terminal within the preset range where the target terminal is located, select a terminal with an available network channel as the relay terminal, where the relay terminal can send data through the network channel;
[0040] The selecting a terminal with an available network channel as the relay terminal includes:
[0041] Select the terminal with the strongest signal strength of the connection signal during the short-distance connection with the target terminal as the relay terminal.
[0042] It should be noted that the preset range refers to the range within which short-distance communication connection can be performed with the terminal, that is, the preset range where the target terminal is located refers to the range within which short-distance communication connection can be performed with the target terminal. For example, it can be the range that can be connected through wifi or bluetooth. Among the terminals that can perform short-distance communication connection with the target terminal within the preset range where the target terminal is located, select a terminal with an available network channel as the relay terminal. For example, among the terminals within the preset range where the target terminal is located with normal network signal and unoccupied channels (no calls / intercoms), there are terminal M1 and terminal M2, and both terminal M1 and terminal M2 can be connected to the target terminal through wifi or bluetooth. If the connection signal strength of terminal M1 is stronger than that of terminal M2, then terminal M1 is used as the relay terminal. At this time, a communication link of "target terminal-relay terminal M1-normal wireless network" can be constructed. By selecting the relay terminal with the strongest signal, the stability of the communication link can be increased.
[0043] See Figure 2 As shown, it is a flow diagram of finding a relay terminal with normal network signal in an embodiment of the present application. The data transmission method based on the relay link further includes:
[0044] Step A1: If among the terminals that can perform short-distance communication connection with the target terminal within the preset range where the target terminal is located, there is no terminal with an available network channel, then select an idle terminal as the bridging terminal among them;
[0045] Step A2: The bridging terminal selects a terminal with an available network channel from among the terminals within its preset range that can establish short-range communication connections with the bridging terminal as a relay terminal;
[0046] Step A3: If there is no terminal with an available network channel, then search for the next-level bridging terminal corresponding to the bridging terminal, and continue to search for relay terminals through the next-level bridging terminal.
[0047] If there are no terminals with available network channels within a preset range of the target terminal, then among the terminals capable of short-range communication connections, the terminal with the strongest connection signal strength within that preset range and currently in an idle state is selected as the bridging terminal. Preferably, an idle terminal can refer to a terminal that is not transmitting data through a wireless network and is not connected to other terminals via short-range communication signals. In one embodiment, since the terminal has the ability to process large amounts of data, an idle terminal can also be a terminal that is simply not connected to other terminals via short-range communication signals.
[0048] For example, if, within a preset range, there are terminals N1 and N2 that are not transmitting data via a wireless network and are not connected to other terminals via short-range communication signals, and both terminals N1 and N2 can connect to the target terminal via Wi-Fi or Bluetooth, and if the connection signal strength of terminal N1 is stronger than that of terminal N2, and terminal N1 is in an idle state, then terminal N1 will be used as a bridging terminal. Since the bridging terminal can connect to the target terminal via Wi-Fi or Bluetooth with a strong connection signal, it can be used to find the terminal with the strongest connection signal among all terminals with available wireless network channels and capable of short-range communication connections to the target terminal, or the terminal with the highest quality available wireless network channel, and use it as a relay terminal.
[0049] If, among the terminals within the preset range that can establish short-range communication connections with the bridging terminal, there is a terminal L1 with an available network channel, then terminal L1 can be selected as the relay terminal. In this case, a communication link of "target terminal - bridging terminal N1 - relay terminal L1 - normal network" can be constructed.
[0050] If among the terminals within the preset range of the bridging terminal that can establish a short-distance communication connection with the bridging terminal, there is no terminal with an available network channel, then search for the next-level bridging terminal corresponding to the bridging terminal N1, and then continue to search for the relay terminal through the next-level bridging terminal. For example, if the found next-level bridging terminal is K1, and if the relay terminal found by the next-level bridging terminal K1 is the relay terminal P1, then a communication link of "target terminal - bridging terminal N1 - next-level bridging terminal K1 - relay terminal P1 - normal network" can be constructed. It can be understood that in this link, the target terminal is the parent terminal of the bridging terminal N1, the bridging terminal N1 is the parent terminal of the next-level bridging terminal K1, the relay terminal P1 is the sub-terminal of the next-level bridging terminal K1, and the relay terminal P1 has no sub-terminals. When the parent terminal receives the message that the link formation of its sub-terminal is completed, it will continue to report the message of the completed link formation to its parent terminal via wifi or bt signal until the target terminal receives this message and initiates the signal relay network docking. The communication link can be constructed through multiple bridging terminals, enabling the target terminal to transmit data via the link even when its own network signal is abnormal.
[0051] See Figure 3 As shown, it is a flowchart of the process of searching for the next-level bridging terminal corresponding to the bridging terminal in an embodiment of the present application. Searching for the next-level bridging terminal corresponding to the bridging terminal, and the next-level bridging terminal continues to search for the relay terminal, including:
[0052] Step B1: Among the terminals within the preset range of the bridging terminal that can establish a short-distance communication signal connection with the bridging terminal, select an idle terminal as the next-level bridging terminal;
[0053] Step B2: Among the terminals within the preset range of the next-level bridging terminal that can establish a short-distance communication connection with the next-level bridging terminal, select a terminal with an available network channel as the relay terminal;
[0054] Step B3: If there is no terminal with an available network channel, then regard the next-level bridging terminal as the bridging terminal;
[0055] Repeat the above steps B1 to B3 until the relay terminal is found or there is no suitable next-level bridging terminal. [[ID=I8]]
[0056] For example, among the terminals within a preset range that can establish short-range communication signals with bridging terminal N1, these terminals are sorted from highest to lowest signal strength to obtain a sorting result, for example, (K1, K2, K3, K4). First, terminal K1 with the highest signal strength is selected to connect with bridging terminal N1 via Wi-Fi or Bluetooth. If the network channel of candidate terminal K1 is unoccupied, it indicates that terminal K1 can serve as a node in the link, and therefore terminal K1 is designated as the next-level bridging terminal corresponding to bridging terminal N1. Then, from the terminals within the preset range of the next-level bridging terminal K1 that can establish short-range communication signals with K1, a terminal with an available network channel is selected as a relay terminal. If no terminal has an available network channel, then the next-level bridging terminal K1 is selected as the bridging terminal, and steps B1 to B3 are executed until a relay terminal is found, or no suitable next-level bridging terminal is found.
[0057] Furthermore, the step of selecting an idle terminal as the next-level bridging terminal also includes:
[0058] Terminals within a preset range that can establish short-range communication signal connections with the bridging terminal are selected as candidate terminals. A candidate terminal is then selected based on the strength of the short-range communication signal connected to the bridging terminal.
[0059] If the candidate terminal is not in an idle state, then the candidate terminal is marked as having been traversed;
[0060] Then, the next candidate terminal is selected based on the strength of the short-range communication signal, until the selected candidate terminal is in an idle state. Then, the candidate terminal is used as the next level bridging terminal, or all the candidate terminals are marked as traversed.
[0061] Within a preset range of bridging terminal N1, terminals that can establish short-range communication signal connections with the bridging terminal (denoted as candidate terminals) are identified. A terminal list containing candidate terminals is generated. Based on the strength of the short-range communication signal, the candidate terminals in the terminal list are sorted from highest to lowest, resulting in a sorting result, for example, (K1, K2, K3, K4). First, candidate terminal K1 with the highest signal strength is selected. If candidate terminal K1 is not idle, it is marked as traversed to prevent bridging terminal N1 from connecting to candidate terminal K1 again. Next, candidate terminal K2 is selected based on the strength of the short-range communication signal and connected to bridging terminal N1 via short-range communication signal. It is then determined whether candidate terminal K2 is idle. If candidate terminal K2 is not idle, it is marked as traversed. Finally, candidate terminal K3 is selected and connected to bridging terminal N1 via short-range communication signal, and its idle state is determined. Repeat the above steps until the selected candidate terminal is idle and is used as the next-level bridging terminal, or until all candidate terminals in the terminal list are marked as traversed. By selecting candidate terminals with strong short-distance communication signals and unoccupied channels as the next-level bridging terminals, it can be ensured that the next-level bridging terminals can complete stable data transmission in the link.
[0062] Furthermore, the target terminal connects to the relay terminal and establishes a relay link via short-range communication signals, including:
[0063] The relay terminal establishes a connection with the bridging terminal via a short-range communication signal and reports a successful connection message to the bridging terminal.
[0064] The bridging terminal establishes a connection with the target terminal via a short-range communication signal and reports a successful connection message to the target terminal, thereby constructing a communication relay link between the target terminal, the bridging terminal, and the relay terminal.
[0065] Since the relay terminal establishes a connection with the bridging terminal via Wi-Fi or Bluetooth, the relay terminal can report a successful connection message to the bridging terminal. The bridging terminal will then continue to report the link establishment completion message to its parent terminal via Wi-Fi or Bluetooth until the target terminal receives the message and initiates signal relay network docking. This establishes a communication link between the target terminal, the bridging terminal, and the relay terminal, which is used for data transmission by the target terminal with abnormal signal, enabling the target terminal with abnormal signal to initiate intercom.
[0066] In one embodiment, the data transmission method based on a relay link further includes:
[0067] If there is no idle candidate terminal among the candidate terminals, the search for the relay terminal is stopped.
[0068] If there are no idle candidate terminals, it means that there are no suitable next-level bridging terminals in the terminal list. At this time, the search for relay terminals will stop and the relay will be considered a failure.
[0069] Reference Figure 4 The diagram shown is a functional module schematic of the data transmission device 100 based on a relay link according to this application.
[0070] Depending on the functions implemented, the data transmission device 100 based on the relay link may include a lookup module 110, a connection module 120, and a transmission module 130. The module described in this application may also be referred to as a unit, which can refer to a series of computer program segments that can be executed by an electronic device processor and perform a fixed function.
[0071] In this embodiment, the functions of each module / unit are as follows:
[0072] The lookup module 110 is used to look up a relay terminal with an available wireless network channel when the target terminal needs to transmit data through the wireless network and the wireless network signal is abnormal. The relay terminal is a terminal that can make a short-range communication connection with the target terminal.
[0073] Connection module 120: used for the target terminal to connect with the relay terminal via short-range communication signals and establish a relay link;
[0074] Transmission module 130: Used by the target terminal to transmit data using the network channel of the relay terminal based on the relay link.
[0075] The specific implementation of the data transmission device based on the relay link in this application is largely the same as the specific implementation of the data transmission method based on the relay link described above, and will not be repeated here.
[0076] Reference Figure 5 The diagram shown is a schematic representation of a preferred embodiment of the walkie-talkie of this application.
[0077] The walkie-talkie includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0078] Memory 113 is used to store computer programs, such as data transmission programs based on relay links;
[0079] In some embodiments, the processor 111 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 111 is typically used to control the overall operation of the walkie-talkie, such as performing data interaction or communication-related control and processing. In this embodiment, the processor 111 is used to run program code stored in the memory 113 or process data, such as running program code for a data transmission program based on a relay link.
[0080] The communication interface 112 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). The communication interface 112 may also be used to establish a communication connection between the walkie-talkie and other walkie-talkies.
[0081] The memory 113 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 113 may be an internal storage unit of the walkie-talkie, such as the walkie-talkie's hard disk or RAM. In other embodiments, the memory 113 may also be an external storage device of the walkie-talkie, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. Of course, the memory 113 may also include both the walkie-talkie's internal storage unit and its external storage device.
[0082] Figure 5 Only walkie-talkies with components 111-114 are shown; however, it should be understood that implementation of all shown components is not required, and more or fewer components may be implemented instead.
[0083] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the data transmission method based on a relay link provided in any of the foregoing method embodiments, including:
[0084] When the target terminal needs to transmit data via a wireless network, if the wireless network signal is abnormal, a relay terminal with an available wireless network channel is searched. The relay terminal is a terminal that can establish a short-range communication connection with the target terminal.
[0085] The target terminal connects to the relay terminal via short-range communication signals and establishes a relay link;
[0086] The target terminal uses the network channel of the relay terminal to transmit data based on the relay link.
[0087] For a detailed description of the above steps, please refer to the flowchart of the above embodiment of the data transmission method based on relay links.
[0088] Furthermore, embodiments of this application also propose a computer-readable storage medium, which can be non-volatile or volatile. The computer-readable storage medium includes a data storage area and a program storage area. The program storage area stores a data transmission program based on a relay link. When executed by a processor, the data transmission program based on the relay link performs the following operations:
[0089] When the target terminal needs to transmit data via a wireless network, if the wireless network signal is abnormal, a relay terminal with an available wireless network channel is searched. The relay terminal is a terminal that can establish a short-range communication connection with the target terminal.
[0090] The target terminal connects to the relay terminal via short-range communication signals and establishes a relay link;
[0091] The target terminal uses the network channel of the relay terminal to transmit data based on the relay link.
[0092] The specific implementation of the computer-readable storage medium in this application is largely the same as the specific implementation of the data transmission method based on the relay link described above, and will not be repeated here.
[0093] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0094] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0095] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0096] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0097] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A data transmission method based on a relay link, characterized in that, The method includes: When the target terminal needs to transmit data via a wireless network, if the wireless network signal is abnormal, a relay terminal with an available wireless network channel is searched. The relay terminal is a terminal that can establish a short-range communication connection with the target terminal. The target terminal connects to the relay terminal via short-range communication signals and establishes a relay link; The target terminal uses the network channel of the relay terminal to transmit data based on the relay link.
2. The data transmission method based on a relay link as described in claim 1, characterized in that, The process of locating relay terminals with available wireless network channels includes: Among the terminals within a preset range of the target terminal that can establish short-range communication connections with the target terminal, one terminal with an available network channel is selected as a relay terminal, wherein the relay terminal can transmit data through the network channel; Selecting a terminal with an available network channel as a relay terminal includes: The terminal with the strongest signal strength among those making short-distance connections with the target terminal is selected as the relay terminal.
3. The data transmission method based on a relay link as described in claim 2, characterized in that, The method further includes: If there is no terminal with an available network channel among the terminals within the preset range that can make short-range communication with the target terminal, then an idle terminal is selected as the bridging terminal. The bridging terminal selects one of the terminals with an available network channel from among the terminals that can make short-range communication connections with the bridging terminal within the preset range as a relay terminal. If no terminal has an available network channel, the next-level bridging terminal corresponding to the bridging terminal is searched, and the next-level bridging terminal continues to search for a relay terminal.
4. The data transmission method based on a relay link as described in claim 3, characterized in that, The process of finding the next-level bridging terminal corresponding to the bridging terminal, and the next-level bridging terminal continuing to find the relay terminal, includes: Step B1: Among the terminals within the preset range of the bridging terminal that can establish short-range communication signal connections with the bridging terminal, select an idle terminal as the next-level bridging terminal. Step B2: Among the terminals within the preset range that can establish short-range communication connections with the next-level bridging terminal, the next-level bridging terminal selects a terminal with an available network channel as a relay terminal. Step B3: If there is no terminal with an available network channel, then the next-level bridging terminal is used as the bridging terminal. Repeat steps B1 to B3 until a relay terminal is found or no suitable next-level bridging terminal is found.
5. The data transmission method based on a relay link as described in claim 4, characterized in that, Selecting an idle terminal as the next-level bridging terminal includes: Terminals within a preset range of the bridging terminal that can establish short-range communication signal connections with the bridging terminal are selected as candidate terminals. A candidate terminal is then selected based on the strength of the short-range communication signal connected to the bridging terminal. If the candidate terminal is not in an idle state, then the candidate terminal is marked as having been traversed; Then, the next candidate terminal is selected based on the strength of the short-range communication signal, until the selected candidate terminal is in an idle state. Then, the candidate terminal is used as the next level bridging terminal, or all the candidate terminals are marked as traversed.
6. The data transmission method based on a relay link as described in claim 5, characterized in that, The method further includes: If there is no idle candidate terminal among the candidate terminals, the search for the relay terminal is stopped.
7. The data transmission method based on a relay link as described in claim 3, characterized in that, The target terminal connects to the relay terminal via short-range communication signals and establishes a relay link, including: The relay terminal establishes a connection with the bridging terminal via a short-range communication signal and reports a successful connection message to the bridging terminal. The bridging terminal establishes a connection with the target terminal via a short-range communication signal and reports a successful connection message to the target terminal, thereby constructing a communication relay link between the target terminal, the bridging terminal, and the relay terminal.
8. A data transmission device based on a relay link, characterized in that, The device includes: The lookup module is used to find a relay terminal with an available wireless network channel when the target terminal needs to transmit data through the wireless network and the wireless network signal is abnormal. The relay terminal is a terminal that can make short-range communication connection with the target terminal. Connection module: used for the target terminal to connect with the relay terminal via short-range communication signals and establish a relay link; Transmission module: used by the target terminal to transmit data using the network channel of the relay terminal based on the relay link.
9. A walkie-talkie, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the data transmission method based on a relay link as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the data transmission method based on a relay link as described in any one of claims 1 to 7.