Communication method and system and computer readable storage medium
Patent Information
- Application Number
- CN202380074619.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-23
- Publication Date
- 2025-07-01
AI Technical Summary
In outdoor sports and outdoor rescue scenarios, existing communication systems rely on large relay equipment or special vehicles, resulting in high communication costs and poor flexibility, making it difficult to ensure communication quality in multi-person activities.
By determining the target terminal as a relay device among multiple terminal devices, information acquisition and forwarding between terminals is achieved, avoiding the need for additional large-scale relay devices, reducing communication costs and improving communication flexibility.
It reduces communication costs and improves flexibility in outdoor sports and outdoor rescue scenarios, ensuring effective communication between multiple terminals.
Smart Images

Figure CN120239974A_ABST
Abstract
Description
Communication method, system and computer readable storage medium Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method, system, and computer-readable storage medium. Background Art
[0002] With the advancement of technology and people's improved quality of life, running, hiking, and mountaineering have gradually become common forms of exercise. In outdoor sports and rescue scenarios, communication often requires a relay. For example, if information from terminal A needs to be sent to terminal B, a relay device can be used. The relay device first receives the information from terminal A and then sends it to terminal B. Relay communication can expand communication range and improve communication efficiency.
[0003] Currently, relay equipment is generally large-scale, or needs to be loaded onto special vehicles such as cars, which increases communication costs. This also makes it difficult to ensure communication quality between the majority of users in some specific scenarios (for example, cross-country running, rescue operations, and other multi-person activities), reducing the flexibility of the communication system. Summary of the Invention
[0004] The present application provides a communication method, system, and computer-readable storage medium, which can reduce communication costs and improve communication flexibility.
[0005] In a first aspect, an embodiment of the present application provides a communication method, which is applied to a communication system, wherein the communication system includes multiple terminals, the multiple terminals including a first information sending terminal, and the communication method includes:
[0006] Determine a target terminal from the multiple terminals, where a first distance between the target terminal and a preset position is less than or equal to a preset distance;
[0007] controlling the target terminal to obtain first information from the first information sending terminal; and
[0008] Control the target terminal to forward the acquired first information.
[0009] The communication method provided in the first aspect implements relay communication between different terminals in a communication system by determining a target terminal from multiple terminals and having the target terminal forward information. Because the relay device is a terminal among the multiple terminals, no additional large relay device is required, saving communication costs, extending the communication distance between terminals in the communication system, and improving communication flexibility.
[0010] In a second aspect, an embodiment of the present application provides a communication system, comprising a plurality of terminals, wherein the terminals are used to implement the method provided in the first aspect above.
[0011] In a third aspect, an embodiment of the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method provided in the first aspect above when executing the computer program.
[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method provided in the first aspect above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0014] FIG1 is a system architecture diagram provided by an embodiment of the present application;
[0015] FIG2 is a schematic flow chart of a communication method provided in an embodiment of the present application;
[0016] FIG3 is a schematic diagram of a terminal position in a communication system provided by an embodiment of the present application;
[0017] FIG4 is another schematic diagram of a terminal position in a communication system provided in an embodiment of the present application;
[0018] FIG5 is another schematic diagram of a terminal position in a communication system provided in an embodiment of the present application;
[0019] FIG6 is another schematic diagram of a terminal position in a communication system provided in an embodiment of the present application;
[0020] FIG7 is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0022] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0023] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0024] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0027] Please refer to Figure 1, which is a system architecture diagram of a communication system provided by an embodiment of the present application. The communication system includes multiple terminal devices 10, for example, mobile phones, and information is transmitted between the terminal devices 10 in the form of radio signals.
[0028] It should be explained that the number of terminal devices 10 in FIG1 is only for illustrative purposes and is not limited in the embodiments of the present application.
[0029] The embodiments of the present application do not limit the name and type of the terminal device. For example, the terminal device is also referred to as a terminal, electronic device, or communication device. The terminal device can be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc.
[0030] Application scenarios for this application include outdoor sports such as cross-country running, hiking, and mountaineering, as well as outdoor rescue scenarios. The application scenario includes multiple users, each of whom possesses at least one terminal device. Different users can communicate with each other by operating their terminal devices. That is, one user can send information to other users, or receive information from other users.
[0031] In applications such as outdoor sports and rescue operations, communication often requires a large and flexible range, and the communication distances between different terminal devices may be long. Existing technologies often use large relays or special vehicles such as cars to expand the communication range, but this also increases communication costs and reduces the flexibility of the communication system.
[0032] An embodiment of the present application provides a communication method, wherein a communication system includes multiple terminals, a target terminal is determined from the multiple terminals, the target terminal obtains a first message to be sent by a first message sending terminal, and then the target terminal forwards the obtained first message to other terminals. By determining the target terminal from the multiple terminals, the target terminal is a relay device, and the target terminal obtains and forwards information, thereby reducing communication costs in application scenarios such as outdoor sports and outdoor rescue, and improving communication flexibility.
[0033] The following specific embodiments are used to describe the technical solution of the present application in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0034] Please refer to Figure 2, which shows a schematic flow chart of a communication method provided by this application. The communication method is applied to a communication system, which includes multiple terminals, including a first information sending terminal, which sends a first message. As shown in Figure 2, by way of example and not limitation, the method includes the following steps:
[0035] S201: Determine a target terminal from a plurality of terminals, where a first distance between the target terminal and a preset position is less than or equal to a preset distance.
[0036] Specifically, a target terminal is selected from multiple terminals. The target terminal acts as a relay terminal among the multiple terminals, receiving and forwarding information, thereby enabling communication between different terminals in the multiple terminals. Since a relay device is selected from multiple terminals, no additional large relay equipment is required, thus saving communication costs and improving communication flexibility.
[0037] Among them, the preset position is located within the communication coverage range of multiple terminals in the communication system. The preset position may be different depending on factors such as the location of multiple terminals in the communication system, the farthest communication distance of the terminal, the terminal device sending information and the terminal device receiving information.
[0038] It should be noted that this embodiment does not limit the number of target terminals, the number of preset locations, or the values of the preset distances. For example, if multiple terminals in a communication system are relatively concentrated, there is one preset location and one target terminal, and terminals other than the target terminal in the communication system can communicate through the target terminal. For another example, if two terminals in the communication system are relatively far apart, when these two terminals communicate, there can be at least one preset location and multiple target terminals. Communication between the two terminals is achieved by forwarding information through multiple target terminals. For example, if terminal A wants to send information to terminal B, it can determine two target terminals, namely target terminal C and target terminal D. Terminal A first sends information to target terminal C, which forwards the information to target terminal D, which then forwards the information to terminal B. Thus, terminal A communicates with terminal B through target terminals C and D.
[0039] For the convenience of explanation, this embodiment takes a preset location and a target terminal as one example.
[0040] Optionally, the communication method further includes:
[0041] A first terminal and a second terminal are determined from a plurality of terminals.
[0042] In S201, determining a target terminal from multiple terminals includes:
[0043] The preset location is determined according to the locations of the first terminal and the second terminal.
[0044] Determine the target terminal based on the preset location.
[0045] Optionally, the preset position may be the midpoint of a line connecting the first terminal and the second terminal.
[0046] In this implementation, the preset position is determined by the position of the first terminal and the position of the second terminal, and then the target terminal is determined. The preset position is determined based on the position of the terminal during actual communication, which improves the accuracy of determining the preset position and the target terminal.
[0047] Optionally, in one implementation, the second distance between the first terminal and the second terminal is greater than the second distance between any other two terminals among the multiple terminals except the first terminal and the second terminal.
[0048] In this implementation, the first terminal and the second terminal are the two terminals with the greatest distance between them among the multiple terminals. The locations of the first and second terminals indicate the current maximum communication range of the communication system. Therefore, by determining the preset location based on the locations of the first and second terminals, and then determining the target terminal, the communication range can be more comprehensively encompassed, enabling communication between any two terminals in the communication system. Specifically, each of the multiple terminals may include a positioning device for obtaining the location of each of the multiple terminals, calculating the distance between each two terminals in the multiple terminals based on the location of each terminal, and determining the two terminals with the greatest distance between them as the first and second terminals.
[0049] Optionally, determining the first terminal and the second terminal from a plurality of terminals includes:
[0050] A second distance between all two terminals in the plurality of terminals is obtained.
[0051] The two terminals with the largest second distance are determined as the first terminal and the second terminal.
[0052] Illustrate with examples. Please refer to Figure 3, which uses the circle ABCDEFG as an example for multiple terminals. First, obtain the second distances between all two terminals in the multiple terminals, including: the second distances between terminal A and terminals B to G, the second distances between terminal B and terminals C to G, and so on, for a total of 21 second distances. Among all the second distances, the second distance between terminal A and terminal G is the largest, so terminals A and terminal G are determined as the first terminal and the second terminal. The preset position is determined based on the positions of terminal A and terminal G. For example, the preset position is the midpoint of the line connecting terminal A and terminal G, represented as point O.
[0053] Optionally, in another implementation, the communication method further includes:
[0054] The first information sending terminal is determined as the first terminal.
[0055] In this implementation, the first information sending terminal is the first terminal. The preset position is determined according to the terminal to which the first information is to be sent, and then the target terminal is determined, which can ensure the sending of the first information and improve the success rate of information sending.
[0056] Optionally, the communication method further includes:
[0057] The terminal farthest from the first information sending terminal is determined as the second terminal.
[0058] In this implementation, the first terminal and the second terminal are determined taking into account the terminal to which the information is to be sent and the communication distance. The preset position is determined based on the first terminal and the second terminal, and then the target terminal is determined, thereby ensuring the sending of the first information. At the same time, the communication range is taken into account, thereby improving the success rate of information sending.
[0059] Optionally, the multiple terminals further include a first information receiving terminal for receiving the first information, and the communication method further includes:
[0060] The first information receiving terminal is determined as the second terminal.
[0061] For example, see Figure 4 , which uses a circle ABCDEFG as an example of multiple terminals. Terminal F needs to send first information to terminal E. Therefore, terminal F can be determined as the first terminal, and terminal E can be determined as the second terminal. The preset position is determined based on the positions of terminal F and terminal E. For example, the preset position is the midpoint O of the line connecting terminal F and terminal E.
[0062] In this implementation, the two terminals that need to communicate are determined as the first terminal and the second terminal. The preset position is determined based on the positions of the two terminals that need to communicate, and then the target terminal is determined, ensuring communication between the two terminals and more accurately serving the terminals that need to transmit information.
[0063] Optionally, after determining the preset location, the communication method further includes:
[0064] A first distance between each terminal and a preset position is obtained.
[0065] Terminals whose first distance is less than or equal to the preset distance are determined as candidate terminals.
[0066] In S201, determining a target terminal from multiple terminals includes:
[0067] The target terminal is determined from the candidate terminals.
[0068] Specifically, the preset distance is a pre-set distance. With the preset location as the center and the preset distance as the radius, all terminals within or on the circle satisfy the condition that the first distance is less than or equal to the preset distance. Terminals that meet this condition are determined as candidate terminals. Referring to Figures 3 and 4, the midpoint O of the line connecting terminals A and G in Figure 3 is the preset location, and the midpoint O of the line connecting terminals F and E in Figure 4 is the preset location. The preset distance is the radius of the dashed circle with O as the center. All terminals within or on the circle are candidate terminals. The candidate terminals in Figure 3 are terminals D and F, and the candidate terminals in Figure 4 are terminals B and D.
[0069] By determining the candidate terminals, the range of the target terminal is reduced, and by determining the target terminal among the candidate terminals, the accuracy of determining the target terminal is improved.
[0070] Optionally, determining a target terminal from candidate terminals includes, in one implementation,:
[0071] A first distance between each candidate terminal and a preset location is obtained.
[0072] The candidate terminal having the smallest first distance from the preset location is determined as the target terminal.
[0073] For example, referring to Figure 3 , the candidate terminals in Figure 3 are terminals D and F, the preset location is point O, and the first distance between candidate terminal F and point O is the smallest, so candidate terminal F is determined to be the target terminal. For another example, referring to Figure 4 , the candidate terminals in Figure 4 are terminals B and D, the preset location is point O, and the first distance between candidate terminal D and point O is the smallest, so candidate terminal D is determined to be the target terminal.
[0074] In this implementation, the preset position facilitates communication with multiple terminals, and the candidate terminal closest to the preset position among the candidate terminals is determined as the target terminal, ensuring that multiple terminals can communicate through the target terminal.
[0075] Optionally, determining a target terminal from candidate terminals, in another implementation, includes:
[0076] Get the signal quality of each candidate terminal.
[0077] The candidate terminal with the best signal quality is determined as the target terminal.
[0078] In this implementation, by selecting the candidate terminal with the best quality as the target terminal, the quality of communication achieved by multiple terminals through the target terminal is guaranteed.
[0079] Optionally, in one implementation, obtaining the signal quality of each candidate terminal includes:
[0080] The first terminal or the second terminal is controlled to receive second information from the candidate terminal.
[0081] A signal quality of the second information is determined based on the second information.
[0082] The signal quality of the second information is determined as the signal quality of the candidate terminal.
[0083] It should be noted that the signal quality of the second information can be determined by detecting the signal-to-noise ratio (SNR) of the second information, the carrier-to-interference ratio (CIR) of the second information, or the size of the received data packets of the second information. Specifically, the SNR is the ratio of the signal to the noise, and the CIR is the ratio of the useful carrier power to the interference signal power. A higher SNR or CIR indicates better signal quality. Alternatively, the second information can be sent in a fixed size; the larger (more) the received data packets of the second information, the better the signal quality.
[0084] In this implementation, when a candidate terminal transmits the second information, either the first terminal or the second terminal can receive the second information transmitted by the candidate terminal. Taking the first terminal as an example, the first terminal determines the signal quality of each second information received from each candidate terminal, thereby determining the signal quality of each candidate terminal. Furthermore, by comparing the signal quality of each candidate terminal, the candidate terminal with the best signal quality is determined as the target terminal. Similarly, the second terminal can receive the second information from each candidate terminal, obtain the signal quality of each candidate terminal, and determine the target terminal.
[0085] For example, referring to Figure 3 , first terminal A may receive second information transmitted by candidate terminal F and candidate terminal D, and compare the signal-to-noise ratios of the second information transmitted by candidate terminal F and candidate terminal D. The higher signal-to-noise ratio of candidate terminal F indicates better signal quality for candidate terminal F, and thus candidate terminal F is determined as the target terminal. For another example, referring to Figure 4 , second terminal E may receive second information transmitted by candidate terminal B and candidate terminal D, and compare the carrier-to-interference ratios of the second information transmitted by candidate terminal B and candidate terminal D. The higher carrier-to-interference ratio of candidate terminal D indicates that candidate terminal D is the target terminal.
[0086] Optionally, in another implementation, obtaining the signal quality of each candidate terminal includes:
[0087] The candidate terminal is controlled to receive third information from the first terminal or the second terminal.
[0088] A signal quality of the third information is determined based on the third information.
[0089] The signal quality of the third information is determined as the signal quality of the candidate terminal.
[0090] Specifically, the first terminal transmits the third information, or the second terminal transmits the third information, and the candidate terminals receive the third information sent by the first or second terminal. Taking the first terminal as an example, each candidate terminal receives the third information sent by the first terminal and determines the signal quality of each third information, thereby determining the signal quality of each candidate terminal. Furthermore, by comparing the signal quality of each candidate terminal, the candidate terminal with the best signal quality is determined as the target terminal.
[0091] The signal quality of the third information is similar to the signal quality of the second information, and will not be described in detail here.
[0092] Optionally, in yet another implementation, obtaining the signal quality of each candidate terminal may include:
[0093] The first terminal and the second terminal are controlled to receive second information from the candidate terminal.
[0094] The signal quality of the second information is determined based on the second information received by the first terminal and the second information received by the second terminal.
[0095] The signal quality of the second information is determined as the signal quality of the candidate terminal.
[0096] In this implementation, the candidate terminal sends the second information, and the first terminal and the second terminal both receive the second information sent by the candidate terminal, and the signal quality of the second information received by the first terminal and the second terminal are considered at the same time. For example, the signal quality of the second information received by the first terminal and the signal quality of the second information received by the second terminal are averaged or weighted averaged as the signal quality of the second information and the signal quality of the candidate terminal, thereby improving the accuracy of determining the signal quality of the candidate terminal, and thereby improving the accuracy of determining the target device.
[0097] Optionally, in yet another implementation, obtaining the signal quality of each candidate terminal may include:
[0098] The candidate terminal is controlled to receive third information from the first terminal and the second terminal.
[0099] The signal quality of the third information is determined based on the third information received from the first terminal and the third information received from the second terminal.
[0100] The signal quality of the third information is determined as the signal quality of the candidate terminal.
[0101] Specifically, the first terminal and the second terminal both transmit the third information, and the candidate terminal receives the third information transmitted by the first and second terminals. The signal quality of the third information received by the candidate terminal from the first and second terminals is simultaneously considered, for example, by averaging or weighted averaging the signal quality of the third information and the signal quality of the candidate terminal. This improves the accuracy of determining the signal quality of the candidate terminal, thereby improving the accuracy of determining the target device.
[0102] S202: Control the target terminal to obtain first information from the first information sending terminal.
[0103] The first information sending terminal is a terminal to which information is to be transmitted, and may be any terminal other than the target terminal among multiple terminals in the communication system. The first information is information sent by the first information sending terminal.
[0104] The first information sending terminal sends the first information to the target terminal, and then, subsequently, the target terminal can forward the first information to other terminals, thereby realizing relay communication in the communication system.
[0105] S203: Control the target terminal to forward the acquired first information.
[0106] Optionally, in one implementation, the communication method further includes:
[0107] The target terminal is controlled to store the acquired first information.
[0108] In S203, controlling the target terminal to forward the acquired first information includes:
[0109] The target terminal is controlled to send the stored first information.
[0110] In this implementation, after receiving the first message, the target terminal can first store the first message and then forward the stored first message. This reduces the number of message transmissions and lowers the energy consumption of the target terminal. This implementation is suitable for scenarios with low information latency requirements. For example, in an outdoor sports scenario, the first message may indicate resource replenishment.
[0111] Optionally, controlling the target terminal to send the stored first information may include:
[0112] The target terminal is controlled to periodically send the stored first information.
[0113] In this embodiment, the duration of "periodic" is not limited and can be a preset periodic transmission period, for example, 5 minutes. By first storing the first information at the target terminal and then periodically sending the first information, the target terminal can avoid the need to constantly send information and consume more energy, thereby achieving greater energy conservation.
[0114] Optionally, the multiple terminals further include a first information receiving terminal, and controlling the target terminal to send the stored first information includes:
[0115] A first information receiving request sent by a first information receiving terminal is obtained.
[0116] The stored first information is sent according to the first information receiving request.
[0117] In this implementation, when the first information receiving terminal needs to receive the first information, it notifies the target terminal by sending a first information reception request. The target terminal then sends the stored first information to the first information receiving terminal. This avoids the need for the target terminal to constantly send the first information and the need for the first information receiving terminal to constantly receive the first information, thus saving energy consumption for both the target terminal and the first information.
[0118] Optionally, the stored first information may be sent in response to the first information reception request using a point-to-point communication method, i.e., the target terminal sends the first information to the first information receiving terminal. Alternatively, the first information may be sent to at least one terminal using a broadcast or multicast communication method, where the at least one terminal includes the first information receiving terminal. Specifically, the first information may include a receiving terminal identifier, and the at least one terminal may choose to read or not read the first information based on the receiving terminal identifier. For example, if the at least one terminal determines that the receiving terminal identifier matches its own terminal identifier, the first information may be read; otherwise, if the identifier does not match, the first information may not be read.
[0119] As can be seen, the communication method provided in this embodiment is applicable to a communication system comprising multiple terminals. By determining a target terminal from among the multiple terminals and having the target terminal forward information, relay communication between different terminals in the communication system can be achieved. Because the relay device is a terminal among the multiple terminals, no additional large relay equipment is required, thus reducing communication costs and improving communication flexibility.
[0120] Optionally, if the first information sending terminal is the first terminal and the first information receiving terminal is the second terminal, in S202, controlling the target terminal to obtain the first information from the first information sending terminal includes:
[0121] The target terminal is controlled to receive first information from the first terminal.
[0122] The communication method also includes:
[0123] The second terminal is controlled to receive the first information forwarded by the target terminal.
[0124] In this implementation, if a first terminal in a communication system wants to send information to a second terminal, a preset location can be determined based on the locations of the first terminal and the second terminal to determine the target terminal, and then relay communication between the first terminal and the second terminal can be achieved through the target terminal.
[0125] Optionally, the communication method further includes:
[0126] Get the locations of multiple terminals.
[0127] It is determined whether a third terminal is detected among the multiple terminals according to the positions of the multiple terminals, and the position of the third terminal is outside a preset range.
[0128] When the third terminal is detected, the target terminal is controlled to send warning information to the third terminal.
[0129] The preset range can be determined based on the maximum communication distance of the terminals. For example, if the maximum communication distance between two terminals is 50m, the preset range can be set to 45m.
[0130] By detecting the third terminal and sending a warning message, the user holding the third terminal is informed that the user is about to be out of the communication range and cannot communicate with other terminals.
[0131] 5 and 6 , the detection of the third terminal is exemplarily described below.
[0132] Optionally, in one implementation, the distance between the third terminal and the target terminal exceeds a preset range.
[0133] Referring to Figure 5 , multiple terminals include terminals A through G, with terminal F being the target terminal. The preset range is 40 meters. Target terminal F obtains the locations of terminals A through G and determines the distances between target terminal F and terminals A through E and G. If the distance between terminal G and target terminal F is 42 meters, outside the preset range, terminal G is identified as the third terminal. Target terminal F can then send a warning message to third terminal G.
[0134] Optionally, in another implementation, the distance between the third terminal and the terminal closest to the third terminal exceeds a preset range.
[0135] Refer to Figure 6 . Multiple terminals include terminals A through G, with terminal F being the target terminal. The preset range is 40 meters. Target terminal F detects that the distance between terminal G and terminal D, which is closest to terminal G, is 42 meters, placing it outside the preset range. Terminal F then identifies terminal G as a third terminal. Target terminal F can send a warning message to third terminal G, notifying the user of third terminal G that they are about to leave the communication range, thereby preventing terminal G from moving further away and causing a loss of connection.
[0136] The present application also provides a communication system, comprising a plurality of terminals, including a first information sending terminal, the plurality of terminals, and at least one processor, the processor being configured to perform the following steps:
[0137] Determine a target terminal from the multiple terminals, where a first distance between the target terminal and a preset position is less than or equal to a preset distance;
[0138] controlling the target terminal to obtain first information from the first information sending terminal; and
[0139] Control the target terminal to forward the acquired first information.
[0140] Optionally, the processor is further configured to:
[0141] Obtaining a first distance between each of the terminals and the preset location;
[0142] Determine a terminal whose first distance is less than or equal to the preset distance as a candidate terminal;
[0143] When determining the target terminal from the multiple terminals, the processor is configured to:
[0144] The target terminal is determined from the candidate terminals.
[0145] Optionally, the processor is further configured to:
[0146] Obtaining the first distance between each of the candidate terminals and the preset location;
[0147] When determining the target terminal from the candidate terminals, the processor is configured to:
[0148] The candidate terminal having the smallest first distance from the preset location is determined as the target terminal.
[0149] Optionally, the processor is further configured to:
[0150] Obtaining the signal quality of each candidate terminal;
[0151] When determining the target terminal from the candidate terminals, the processor is configured to:
[0152] The candidate terminal with the best signal quality is determined as the target terminal.
[0153] Optionally, the processor is further configured to:
[0154] determining a first terminal and a second terminal from the plurality of terminals;
[0155] The second distance between the first terminal and the second terminal is greater than the second distance between any two terminals other than the first terminal and the second terminal among the multiple terminals; or
[0156] The first terminal is used to send the first information, and the second terminal is used to receive the first information sent by the first terminal;
[0157] When executing the step of obtaining the signal quality of each candidate terminal, the processor is configured to:
[0158] controlling the first terminal or the second terminal to receive second information from the candidate terminal;
[0159] determining a signal quality of the second information according to the second information;
[0160] determining the signal quality of the second information as the signal quality of the candidate terminal; or,
[0161] controlling the candidate terminal to receive third information from the first terminal or the second terminal;
[0162] determining a signal quality of the third information according to the third information;
[0163] The signal quality of the third information is determined as the signal quality of the candidate terminal.
[0164] Optionally, the processor is further configured to:
[0165] determining a first terminal and a second terminal from the plurality of terminals;
[0166] The second distance between the first terminal and the second terminal is greater than the second distance between any two terminals other than the first terminal and the second terminal among the multiple terminals;
[0167] When determining the target terminal from the multiple terminals, the processor is configured to:
[0168] determining the preset location according to the locations of the first terminal and the second terminal;
[0169] The target terminal is determined according to the preset location.
[0170] Optionally, when determining the first terminal and the second terminal from the multiple terminals, the processor is configured to:
[0171] Obtain a second distance between all two terminals of the plurality of terminals;
[0172] The two terminals with the largest second distance are determined to be the first terminal and the second terminal.
[0173] Optionally, the processor is further configured to:
[0174] Determine the first information sending terminal as the first terminal;
[0175] When executing the control of the target terminal to obtain the first information from the first information sending terminal, the processor is configured to:
[0176] The target terminal is controlled to receive the first information from the first terminal.
[0177] Optionally, the multiple terminals further include a first information receiving terminal for receiving the first information, and the processor is further configured to:
[0178] determining the first information receiving terminal as a second terminal; and
[0179] The second terminal is controlled to receive the first information forwarded by the target terminal.
[0180] Optionally, the processor is further configured to:
[0181] Obtaining locations of the multiple terminals;
[0182] determining, according to the positions of the multiple terminals, whether a third terminal is detected among the multiple terminals, the position of the third terminal being outside a preset range;
[0183] When the third terminal is detected, the target terminal is controlled to send warning information to the third terminal.
[0184] Optionally, the processor is further configured to:
[0185] controlling the target terminal to store the acquired first information;
[0186] When executing the step of controlling the target terminal to forward the acquired first information, the processor is configured to:
[0187] Control the target terminal to send the stored first information.
[0188] Optionally, when executing the controlling the target terminal to send the stored first information, the processor is configured to:
[0189] The target terminal is controlled to periodically send the stored first information.
[0190] Optionally, the multiple terminals further include a first information receiving terminal, and when executing the control of the target terminal to send the stored first information, the processor is configured to:
[0191] Obtaining a first information receiving request sent by the first information receiving terminal;
[0192] The stored first information is sent according to the first information receiving request.
[0193] FIG7 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. As shown in FIG7 , the terminal device 2 includes: at least one processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20. When the processor 20 executes the computer program 22, the steps of any of the above-described method embodiments are implemented.
[0194] Specifically, the processor 20 is configured to:
[0195] Determine a target terminal from the multiple terminals, where a first distance between the target terminal and a preset position is less than or equal to a preset distance;
[0196] controlling the target terminal to obtain first information from the first information sending terminal; and
[0197] Control the target terminal to forward the acquired first information.
[0198] Optionally, the processor 20 is further configured to:
[0199] Obtaining a first distance between each of the terminals and the preset location;
[0200] Determine a terminal whose first distance is less than or equal to the preset distance as a candidate terminal;
[0201] When determining the target terminal from the multiple terminals, the processor 20 is configured to:
[0202] The target terminal is determined from the candidate terminals.
[0203] Optionally, the processor 20 is further configured to:
[0204] Obtaining the first distance between each of the candidate terminals and the preset location;
[0205] When determining the target terminal from the candidate terminals, the processor 20 is configured to:
[0206] The candidate terminal having the smallest first distance from the preset location is determined as the target terminal.
[0207] Optionally, the processor 20 is further configured to:
[0208] Obtaining the signal quality of each candidate terminal;
[0209] When determining the target terminal from the candidate terminals, the processor 20 is configured to:
[0210] The candidate terminal with the best signal quality is determined as the target terminal.
[0211] Optionally, the processor 20 is further configured to:
[0212] determining a first terminal and a second terminal from the plurality of terminals;
[0213] The second distance between the first terminal and the second terminal is greater than the second distance between any two terminals other than the first terminal and the second terminal among the multiple terminals; or
[0214] The first terminal is used to send the first information, and the second terminal is used to receive the first information sent by the first terminal;
[0215] When executing the step of obtaining the signal quality of each candidate terminal, the processor 20 is configured to:
[0216] controlling the first terminal or the second terminal to receive second information from the candidate terminal;
[0217] determining a signal quality of the second information according to the second information;
[0218] determining the signal quality of the second information as the signal quality of the candidate terminal; or,
[0219] controlling the candidate terminal to receive third information from the first terminal or the second terminal;
[0220] determining a signal quality of the third information according to the third information;
[0221] The signal quality of the third information is determined as the signal quality of the candidate terminal.
[0222] Optionally, the processor 20 is further configured to:
[0223] determining a first terminal and a second terminal from the plurality of terminals;
[0224] The second distance between the first terminal and the second terminal is greater than the second distance between any two terminals other than the first terminal and the second terminal among the multiple terminals;
[0225] When determining the target terminal from the multiple terminals, the processor 20 is configured to:
[0226] determining the preset location according to the locations of the first terminal and the second terminal;
[0227] The target terminal is determined according to the preset location.
[0228] Optionally, when determining the first terminal and the second terminal from the multiple terminals, the processor 20 is configured to:
[0229] Obtain a second distance between all two terminals of the plurality of terminals;
[0230] The two terminals with the largest second distance are determined to be the first terminal and the second terminal.
[0231] Optionally, the processor 20 is further configured to:
[0232] Determine the first information sending terminal as the first terminal;
[0233] When executing the control of the target terminal to obtain the first information from the first information sending terminal, the processor 20 is configured to:
[0234] The target terminal is controlled to receive the first information from the first terminal.
[0235] Optionally, the multiple terminals further include a first information receiving terminal for receiving the first information, and the processor 20 is further configured to:
[0236] determining the first information receiving terminal as a second terminal; and
[0237] The second terminal is controlled to receive the first information forwarded by the target terminal.
[0238] Optionally, the processor 20 is further configured to:
[0239] Obtaining locations of the multiple terminals;
[0240] determining, according to the positions of the multiple terminals, whether a third terminal is detected among the multiple terminals, the position of the third terminal being outside a preset range;
[0241] When the third terminal is detected, the target terminal is controlled to send warning information to the third terminal.
[0242] Optionally, the processor 20 is further configured to:
[0243] controlling the target terminal to store the acquired first information;
[0244] When executing the control of the target terminal to forward the acquired first information, the processor 20 is configured to:
[0245] Control the target terminal to send the stored first information.
[0246] Optionally, when executing the controlling the target terminal to send the stored first information, the processor 20 is configured to:
[0247] The target terminal is controlled to periodically send the stored first information.
[0248] Optionally, the multiple terminals further include a first information receiving terminal. When executing the control of the target terminal to send the stored first information, the processor 20 is configured to:
[0249] Obtaining a first information receiving request sent by the first information receiving terminal;
[0250] The stored first information is sent according to the first information receiving request.
[0251] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.
[0252] The so-called memory 21 may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0253] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0254] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0255] Those skilled in the art will appreciate that if the above-mentioned integrated unit is implemented as a software functional unit and sold or used as a standalone product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the process steps in the above-mentioned method embodiments by using a computer program to instruct the relevant hardware. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, removable hard drives, magnetic disks, or optical disks. In some jurisdictions, based on legislation and patent practice, computer-readable media cannot be electric carrier signals or telecommunication signals.
[0256] Those skilled in the art will appreciate that in the above embodiments, the description of each embodiment has its own focus, and for parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0257] It will be understood by those skilled in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0258] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A communication method, characterized in that: The communication method is applied to a communication system, the communication system includes a plurality of terminals, the plurality of terminals include a first information sending terminal, and the method includes: Determine a target terminal from the multiple terminals, wherein a first distance between the target terminal and a preset position is less than or equal to a preset distance; controlling the target terminal to obtain first information from the first information sending terminal; and, Control the target terminal to forward the acquired first information.
2. The method according to claim 1, characterized in that The method further comprises: Acquire a first distance between each of the terminals and the preset position; Determine a terminal whose first distance is less than or equal to the preset distance as a candidate terminal; The determining a target terminal from the multiple terminals includes: The target terminal is determined from the candidate terminals.
3. The method according to claim 2, characterized in that The method further comprises: Acquire the first distance between each of the candidate terminals and the preset location; The determining the target terminal from the candidate terminals includes: The candidate terminal having the shortest first distance from the preset position is determined as the target terminal.
4. The method according to claim 2, characterized in that: The method further comprises: Obtaining the signal quality of each of the candidate terminals; The determining the target terminal from the candidate terminals includes: The candidate terminal with the best signal quality is determined as the target terminal.
5. The method according to claim 4, characterized in that The method further comprises: determining a first terminal and a second terminal from the plurality of terminals; wherein the second distance between the first terminal and the second terminal is greater than the second distance between any other two terminals among the plurality of terminals except the first terminal and the second terminal; or The first terminal is used to send the first information, and the second terminal is used to receive the first information sent by the first terminal; The obtaining the signal quality of each candidate terminal includes: controlling the first terminal or the second terminal to receive second information from the candidate terminal; determining a signal quality of the second information according to the second information; determining the signal quality of the second information as the signal quality of the candidate terminal; or, controlling the candidate terminal to receive third information from the first terminal or the second terminal; determining a signal quality of the third information according to the third information; The signal quality of the third information is determined as the signal quality of the candidate terminal.
6. The method according to claim 1, characterized in that The method further comprises: determining a first terminal and a second terminal from the plurality of terminals; The second distance between the first terminal and the second terminal is greater than the second distance between any two terminals other than the first terminal and the second terminal among the multiple terminals; The determining a target terminal from the multiple terminals includes: Determine the preset location according to the locations of the first terminal and the second terminal; The target terminal is determined according to the preset location.
7. The method according to claim 6, characterized in that Determining a first terminal and a second terminal from the plurality of terminals includes: Acquire a second distance between all two terminals among the multiple terminals; The two terminals with the largest second distance are determined to be the first terminal and the second terminal.
8. The method according to claim 1, characterized in that The method further comprises: Determine the first information sending terminal as the first terminal; The controlling the target terminal to obtain the first information from the first information sending terminal includes: The target terminal is controlled to receive the first information from the first terminal.
9. The method according to claim 8, characterized in that The multiple terminals also include a first information receiving terminal for receiving the first information, and the method further includes: determining the first information receiving terminal as a second terminal; and, Control the second terminal to receive the first information forwarded by the target terminal.
10. The method according to claim 1, characterized in that The method further comprises: Obtaining locations of the multiple terminals; determining whether a third terminal is detected among the multiple terminals according to the positions of the multiple terminals, the position of the third terminal being outside a preset range; When the third terminal is detected, the target terminal is controlled to send warning information to the third terminal.
11. The method according to claim 1, characterized in that: The method further comprises: Controlling the target terminal to store the acquired first information; The controlling the target terminal to forward the acquired first information includes: Control the target terminal to send the stored first information.
12. The method according to claim 11, characterized in that The controlling the target terminal to send the stored first information includes: The target terminal is controlled to periodically send the stored first information.
13. The method according to claim 11, characterized in that The multiple terminals further include a first information receiving terminal, and the controlling the target terminal to send the stored first information includes: Obtaining a first information receiving request sent by the first information receiving terminal; The stored first information is sent according to a request received by the first information.
14. A communication system, characterized in that: The system comprises a plurality of terminals and at least one processor, wherein the processor is configured to implement the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Data transmission method, system and device based on 5G communication and medium
CN110708661A
Communication method and device, computer readable storage medium and terminal
CN110971756A
Communication method and device
CN111447545A
Improvements in or relating to ais communication apparatus and / or methods
GB201907541D0
Information communication system and information communication method
JP2014006828A