Power configuration method for wireless communication, terminal device, and computer program product

By adaptively adjusting the transmit power of the terminal device based on distance and link quality information, the problem of high power consumption of the power amplifier in direct communication is solved, and low-power communication of the terminal device is realized.

CN123145674APending Publication Date: 2026-11-20SHENZHEN HYTERA COMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611655101.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing terminal equipment uses a fixed maximum transmit power in direct communication, which results in high power consumption of the power amplifier and affects battery life.

Method used

By using an adaptive power configuration method, the transmit power is dynamically adjusted based on the relative distance between terminals and the quality information of the communication link, ensuring communication reliability while reducing power consumption.

Benefits of technology

While ensuring communication reliability, the power consumption of the power amplifier was reduced, and the standby time of the terminal equipment was extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145674A_ABST
    Figure CN123145674A_ABST
Patent Text Reader

Abstract

The application discloses a power configuration method of wireless communication, a terminal device and a computer program product, relates to the field of wireless communication, and comprises the following steps: a first terminal interacts with control information of a second terminal in straight-through communication when a power configuration condition is met, so as to obtain indication information required by power configuration and determine target power. Since the two-dimensional factors of communication distance and link quality are considered when the target power is determined, the current communication scene can be better adapted. Then, the first terminal transmits control information containing the target power by using the target power. The second terminal verifies the target power based on local information and returns a verification result. After the verification of the second terminal is passed, the first terminal configures subsequent transmission power by using the target power. According to the actual situation of a point-to-point communication link, the application configures transmission power matched with the point-to-point communication link, so that the communication reliability can be ensured, the power consumption of a PA can be reduced, and the standby time of a terminal is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication, and more particularly to a power configuration method, terminal equipment, and computer program product for wireless communication. Background Technology

[0002] With the continuous development of wireless communication technology, device-to-device (D2D) communication has become increasingly popular. D2D communication refers to the technology that allows two (or more) terminal devices to establish a communication link directly without going through a cellular base station or core network.

[0003] To ensure communication reliability and extend communication range, existing terminal devices generally use a fixed maximum transmit power for direct communication, resulting in high power consumption of the power amplifier (PA). For example, in scenarios where point-to-point voice intercom functionality is implemented based on Bluetooth Low Energy (BLE) technology, the terminal device is configured to always transmit at the maximum transmit power (e.g., 30dBm). In this case, the transmit current is approximately 650mA (4.2V), posing a significant challenge to the terminal's battery life.

[0004] Therefore, there is an urgent need for a transmit power configuration scheme for direct communication terminals to reduce PA power consumption while ensuring communication reliability. Summary of the Invention

[0005] In view of the above problems, this application provides a power configuration method, terminal device and computer program product for wireless communication. By performing adaptive power configuration based on the current communication scenario, it achieves the purpose of reducing transmission power consumption and extending terminal battery life while ensuring communication reliability.

[0006] The specific plan is as follows: The first aspect of this application provides a power configuration method for wireless communication, applied to a first terminal that communicates directly with a second terminal, the method comprising: When the preset power configuration conditions are met, the system sends first control information to the second terminal and receives second control information returned by the second terminal. The second control information includes information for determining the relative distance between the first terminal and the second terminal and the quality of the communication link. Based on the control information interaction process with the second terminal, distance indication information and quality indication information are obtained. The distance indication information is used to indicate the relative distance, and the quality indication information is used to indicate the communication link quality. The target power is determined based on the distance indication information and the mass indication information; The target power is used to send third control information to the second terminal, so that the second terminal verifies the target power based on local information and returns the verification result; the third control information includes information for indicating the target power, and the local information includes information for indicating relative distance and / or communication link quality; If a verification result indicating successful characterization is received, the subsequent transmit power is configured based on the target power.

[0007] A second aspect of this application provides a power configuration method for wireless communication, applied to a second terminal that communicates directly with a first terminal. The method includes: In response to the first control information sent by the first terminal when the preset power configuration conditions are met, a second control information is sent to the first terminal so that the first terminal can obtain distance indication information and quality indication information; the second control information includes information for determining the relative distance between the first terminal and the second terminal and the communication link quality, the distance indication information is used to indicate the relative distance, and the quality indication information is used to indicate the communication link quality; In response to the third control information transmitted by the first terminal using the target power, local information is determined based on the control information interaction process with the first terminal; wherein, the third control information includes information for indicating the target power, the target power being the transmission power determined by the first terminal based on the distance indication information and the quality indication information; the local information includes information for indicating relative distance and / or communication link quality; The target power is verified based on the local information; If the verification passes, a verification result indicating that the verification has passed is sent to the first terminal, so that the first terminal can configure the subsequent transmission power based on the target power.

[0008] A third aspect of this application provides a terminal device, including at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the terminal device can implement the power configuration method for wireless communication as described in the first aspect above, or implement the power configuration method for wireless communication as described in the second aspect above.

[0009] A fourth aspect of this application provides a storage medium carrying one or more computer programs that, when executed by an electronic device, enable the electronic device to implement the power configuration method for wireless communication described in the first aspect, or the power configuration method for wireless communication described in the second aspect.

[0010] The fifth aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, enable the electronic device to implement the power configuration method for wireless communication described in the first aspect, or to implement the power configuration method for wireless communication described in the second aspect.

[0011] Using the above technical solution, the first terminal, when the power configuration conditions are met, interacts with the second terminal in direct communication to obtain the indication information required for power configuration. Specifically, this includes information indicating relative distance and information indicating link quality. The first terminal determines the target power based on this two-dimensional indication information. Since the target power is determined considering both communication distance and link quality, it can better adapt to the current communication scenario, providing a foundation for reducing PA power consumption while ensuring communication reliability. Then, the first terminal uses the target power to send control information containing the target power. The second terminal verifies the target power based on local information and returns the verification result. The first terminal only uses the target power to configure subsequent transmission power after the second terminal's verification is successful, thus avoiding power configuration errors caused by single-end misjudgment. Based on this, this application configures a transmission power that matches the actual situation of point-to-point communication links, ensuring communication reliability while reducing PA power consumption, thereby extending terminal standby time. Attached Figure Description

[0012] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 A flowchart illustrating a power configuration method for wireless communication provided in an embodiment of this application; Figure 2 An example is provided, illustrating a power configuration process. Figure 3 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0013] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is only for explaining specific embodiments and is not intended to limit the application. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0014] Research has revealed that in trunked or relay communication scenarios, traditional walkie-talkies, such as Digital Mobile Radio / Professional Digital Trunking / Terrestrial Trunked Radio (DMR / PDT / TETRA) walkie-talkies, can coordinate the transmission power of each terminal through the trunking system / base station. The terminal equipment configures its corresponding transmission power by receiving adjustment commands from the trunking system / base station. However, when the walkie-talkie loses connection with the trunking server / base station, the terminal equipment cannot adjust its transmission power automatically.

[0015] Further research revealed that walkie-talkies can be set with low power levels (L) and high power levels (H), allowing users to choose the appropriate transmission power level during point-to-point communication, thus achieving power adjustment in direct-connect mode. However, this method cannot detect the actual link status and relies entirely on user experience, leading to inconvenience in operation and difficulties in power adaptation in practical use.

[0016] Therefore, although broadband terminals in D2D communication scenarios can be improved by referring to the offline power configuration scheme of traditional walkie-talkies, the purpose of adaptively adjusting the transmission power in the absence of a network is still impossible due to the lack of state awareness.

[0017] To address the aforementioned issues, this application provides a power configuration method, terminal device, and computer program product for wireless communication, which can be applied to solving the task of dynamic transmission power configuration, particularly the power configuration task of the terminal device when conducting offline (e.g., disconnected from cellular networks) intercom.

[0018] The terminal equipment described in this application can be simply referred to as a terminal. For example, the first terminal and the second terminal described below refer to terminal products with wireless intercom communication function (i.e. wireless direct communication function). Terminals include handheld communication terminals, portable communication devices or other electronic devices with wireless direct communication function, such as smartphones, narrowband walkie-talkies, dual-mode walkie-talkies, and recorders. This application does not limit the specific type of terminal equipment.

[0019] In the communication scenario described in this application, the first terminal and the second terminal communicate directly in a point-to-point manner, meaning that the first terminal and the second terminal directly establish a communication link to transmit data or voice without needing to go through a base station, access point, server, or other network-side equipment for forwarding. The wireless communication technology used in the aforementioned direct communication can include, but is not limited to, any of the following types: DMO (Direct Mode Operation), D2D, Bluetooth (including classic Bluetooth and Bluetooth Low Energy BLE), WiFi Direct, Ultra Wideband (UWB), ZigBee, Near Field Communication (NFC), etc. This application does not limit the specific communication technology used for terminal direct communication; as long as the communicating parties can directly conduct intercom communication without relying on network-side equipment, the solution of this application can be applied.

[0020] In scenarios where two terminals communicate directly, one terminal can act as the calling terminal (Mobile Originated, MO) and the other as the called terminal (Mobile Terminated, MT). In the communication scenario described in this application, the first terminal and the second terminal communicate directly, with the first terminal being the calling terminal and the second terminal being the called terminal. It should be noted that in other communication scenarios, the first terminal can also act as the called terminal, and the operations performed can refer to the steps performed by the second terminal in this scenario. The second terminal can also act as the calling terminal, and the operations performed can refer to the steps performed by the first terminal in this scenario. This application only illustrates the power configuration scheme provided in this application with the first terminal as the calling terminal and the second terminal as the called terminal as an example.

[0021] Figure 1 This is a schematic flowchart illustrating a power configuration method for wireless communication according to an embodiment of this application. Figure 1 In the scenario shown, the first terminal and the second terminal communicate directly, with the first terminal being the calling terminal and the second terminal being the called terminal.

[0022] Combination Figure 1 As shown, the power configuration scheme provided in this application may include the following steps: S101, the first terminal sends first control information to the second terminal, and the second terminal receives the first control information accordingly.

[0023] The first control information is the control information sent by the first terminal when the preset power configuration conditions are met. This information can be used to instruct the second terminal to return information for determining the relative distance and communication link quality. The relative distance refers to the distance between the first and second terminals, also known as the communication distance. The communication link quality refers to the quality of the communication link between the first and second terminals, specifically the quality of the communication link where the first terminal acts as the transmitter and the second terminal acts as the receiver, characterizing the signal quality received by the second terminal from the first terminal. For example, the information indicating the communication link quality may include, but is not limited to, one or more of the following indicators: Received Signal Strength Indication (RSSI), Signal-to-Noise Ratio (SNR), Bit Error Rate (BER).

[0024] It should be noted that if the wireless communication technology used in the direct communication has an independent logical control channel (i.e., independent of the service channel), then in the power configuration process described in this application, the first terminal and the second terminal can transmit information through the control channel, such as first control information and other subsequent information.

[0025] Furthermore, power configuration conditions refer to the triggering conditions of the power configuration process, which can be set according to requirements. For example, the condition can be a timed condition, that is, the first terminal can periodically execute the power configuration process. Another example is that the condition can include: the first terminal and the second terminal establishing a direct communication connection, such as the first terminal and the second terminal completing pairing or binding. This embodiment does not limit the specific form of the power configuration conditions.

[0026] S102, the second terminal sends second control information to the first terminal, and correspondingly, the first terminal receives the second control information returned by the second terminal.

[0027] The second terminal responds to the first control information and returns the information required for power configuration to the first terminal through the second control information. That is, the second control information includes information for determining the relative distance between the first terminal and the second terminal and the quality of the communication link.

[0028] Optionally, to ensure reliable transmission of control information and increase the likelihood of successful power configuration, the first terminal and the second terminal may use a preset maximum transmission power for transmission when sending the first control information and the second control information.

[0029] S103. The first terminal obtains distance indication information and quality indication information based on the control information interaction process with the second terminal.

[0030] The control information interaction process refers to the aforementioned steps S101-S102. Specifically, the first terminal can determine distance and quality indication information based on the information contained in the control information. In other words, the second control information can be used to enable the first terminal to obtain distance and quality indication information. On this basis, the first terminal can also determine indication information based on information recorded during the transmission and reception of control information, such as the transmission time of the first control information and the reception time of the second control information.

[0031] The distance indication information can be used to indicate relative distance, specifically the distance between two points, communication distance, or a fused distance obtained by combining distance values ​​from different dimensions. This information can be obtained through calculation by the first terminal or by parsing the second control information, i.e., determined by the second terminal. The specific method for determining the distance indication information can be based on the information types contained in the first and second control information, and this embodiment does not limit it.

[0032] It should be noted that communication distance is generally positively correlated with transmission power. For example, the transmission power of traditional BLE technology is approximately 10 dBm, supporting a relatively short communication distance, typically 200-300 meters. When the transmission power is increased to 30 dBm, the communication distance can reach 960 meters. Using maximum power at shorter distances will result in significant power waste. Therefore, using a transmission power matched to the communication distance can ensure communication reliability while saving power for the power amplifier (PA). However, the aforementioned communication distance is a theoretical distance. Real-world communication environments are often complex and affected by obstacles, leading to situations where the distance is short but the link quality is poor. This makes it difficult to guarantee communication reliability based solely on the transmission power determined by relative distance. Therefore, quality indication information is also necessary when configuring power.

[0033] The quality indication information can be used to indicate the quality of the communication link. Specifically, the quality indication information can indicate the quality of the communication link in one direction, that is, the quality of the communication link when the first terminal is the sender and the second terminal is the receiver; the quality indication information can also indicate the quality of the communication link in two directions, that is, the quality of the communication link when the first terminal is the sender and the second terminal is the receiver, and the quality of the communication link when the second terminal is the sender and the first terminal is the receiver.

[0034] The communication link quality when the first terminal acts as the transmitter and the second terminal acts as the receiver can be obtained by parsing the second control information. That is, the second control information contains information indicating the quality of the unidirectional communication link. In other words, the second terminal can perform communication link quality detection when receiving signals from the first terminal (such as the first control information) and return the detection result through the second control information. The communication link quality when the second terminal acts as the transmitter and the first terminal acts as the receiver can be obtained by the first terminal performing communication link quality detection when receiving signals from the second terminal (such as the second control signal) and obtaining the detection result, thereby acquiring quality indication information.

[0035] S104. The first terminal determines the target power based on distance indication information and mass indication information.

[0036] The target power is not less than the preset minimum transmission power and not greater than the preset maximum transmission power. Furthermore, the determined target power can be matched with the current relative distance and communication link quality. For example, the target power determined when the relative distance is short and the communication link quality is good is less than the target power determined when the relative distance is long and the communication link quality is poor.

[0037] In other words, when the relative distance remains constant, the target power and the communication link quality have a monotonically decreasing relationship, and when the communication link quality remains constant, the target power and the relative distance have a monotonically increasing relationship.

[0038] Based on the foregoing, the target power determined when the relative distance is short and the communication link quality is good, the target power determined when the relative distance is long and the communication link quality is good, and the target power determined when the relative distance is short and the communication link quality is poor, are all lower than the target power determined when the relative distance is long and the communication link quality is poor; that is, they are all lower than the aforementioned maximum transmit power. This allows for the use of lower power transmission services when the relative distance is short or the communication link quality is good, thereby reducing PA power consumption.

[0039] S105. The first terminal sends third control information to the second terminal, and the second terminal receives the third control information accordingly.

[0040] The first terminal can use the target power to send third control information.

[0041] The third control information includes information for indicating the target power, which is the transmission power determined by the first terminal based on the distance indication information and the quality indication information. The third control information can be used to instruct the second terminal to verify the target power based on local information and return the verification result.

[0042] S106. The second terminal determines local information based on the control information interaction process with the first terminal, and verifies the target power based on the local information.

[0043] The aforementioned local information may include information indicating relative distance and / or information indicating communication link quality, which is determined by the second terminal. The control information interaction process between the second terminal and the first terminal may refer to an interaction process corresponding to at least one of the first control information, second control information, and third control information. This may include the control information sent / received, as well as information related to relative distance or link quality recorded when sending / receiving control information, such as timestamps.

[0044] The successful verification of the second terminal indicates that the first and second terminals have reached a consensus on the theoretical transmit power for the current scenario. Optionally, the second terminal can also record the target power so that it can be used to interact with the first terminal after successful verification, thereby providing a basis for achieving power saving at both ends.

[0045] S107. The second terminal sends the verification result to the first terminal, and the first terminal receives the verification result accordingly.

[0046] Specifically, if the second terminal passes the verification, the verification result sent by the second terminal and received by the first terminal is the verification result indicating that the verification has passed.

[0047] S108. When the first terminal receives the verification result indicating that the characterization verification has passed, it configures the subsequent transmission power based on the target power.

[0048] It should be noted that configuring subsequent transmission power based on the target power of the first terminal means that the subsequent transmission power configured by the first terminal is based on the target power. In one possible implementation, the target power can be directly set as the transmission power. In another possible implementation, the power can be adjusted based on the target power, and the adjusted power can be set as the transmission power. For example, detection can be performed based on the target power, and the target power can be adjusted according to the actual detection results to configure the subsequent transmission power. The possible process of configuring subsequent transmission power based on the target power will be illustrated in the following examples, and this embodiment does not limit it.

[0049] Based on the above, when the power configuration conditions are met, the first terminal first interacts with the second terminal in direct communication to obtain the indication information required for power configuration. Specifically, this includes information indicating the relative distance and information indicating the link quality. The first terminal determines the target power based on the two-dimensional indication information. Since the target power is determined by considering both communication distance and link quality, it can better adapt to the current communication scenario and provide a basis for reducing PA power consumption while ensuring communication reliability. Then, the first terminal uses the target power to send control information containing the target power. The second terminal verifies the target power based on local information and returns the verification result. The first terminal only uses the target power to configure subsequent transmission power after the second terminal verifies it. Since the target power can be reduced as the relative distance is close and the communication link quality is good, the first terminal does not need to always use the maximum transmission power to send services. Furthermore, the first terminal configures the power based on the target power verified by the second terminal, which can avoid power configuration errors caused by single-end misjudgment.

[0050] This application configures a matching transmit power based on the actual situation of point-to-point communication links, which can ensure communication reliability and reduce PA power consumption, thereby extending terminal standby time. Furthermore, this application implements the power configuration task purely in software, without increasing hardware costs.

[0051] It should be noted that the distance indication information used when configuring the power of the first terminal can be information determined through one or more ranging methods. Possible ranging methods may include, but are not limited to: calculating the distance between two points based on position coordinates, calculating the communication distance by measuring the signal flight time / round-trip time, RSSI ranging at a fixed power (e.g., 30dBm), etc. The first terminal can obtain the information required for one or more ranging methods by interacting with the second terminal's control information, and then determine the distance indication information through calculation. Alternatively, the first terminal can directly obtain the ranging result calculated by the second terminal based on the required information, that is, determine the distance indication information by parsing the second control information.

[0052] Based on the foregoing, in one or more embodiments provided in this application, the second control information may include: communication link quality information measured by the second terminal. For example, this information can be obtained by detecting signals (such as first control information) received from the first terminal.

[0053] Based on the above, the second control information may further include: location-related information, and / or time-related information.

[0054] The location-related information includes the location information of the second terminal, or a relative distance value calculated by the second terminal based on the location information of the first terminal and the location information of the second terminal. Optionally, if the second control information includes a relative distance value, the location information of the first terminal may be included in the first control information.

[0055] For example, the location information described in this application may refer to Global Navigation Satellite System (GNSS) location coordinates, such as Global Positioning System (GPS) location coordinates.

[0056] The time-related information is a timestamp recorded by the second terminal during the process of interacting with the first terminal to control information. Specifically, it may include: the timestamp recorded by the second terminal when receiving the first control information (i.e., the time T1 when the first control information is received), and / or the timestamp recorded by the second terminal when sending the second control information (i.e., the time T2 when the second control information is sent).

[0057] It should be noted that the first terminal can combine the timestamp recorded when sending the first control information (i.e., the sending time T0 of the first control information) to calculate the one-way transmission time T1-T0 based on the sending and receiving times of the first control information, as the signal flight time. Similarly, the first terminal can combine the timestamp recorded when receiving the second control information (i.e., the receiving time T3 of the second control information) to calculate the one-way transmission time T3-T2 based on the sending and receiving times of the second control information, as the signal flight time. However, the first and second terminals may have clock discrepancies, leading to errors in the calculated one-way transmission time. Therefore, the second terminal can use the receiving time T1 and the sending time T2 of the second control information to send the second control information, and the first terminal can calculate the signal flight time based on these timestamps, i.e., [(T3-T0)-(T2-T1)] / 2, to eliminate clock errors. In other words, the time difference of flight (ToF) between the first and second terminals, i.e., the signal flight time, can be calculated based on the timestamps recorded by the first terminal during the interaction of control information with the second terminal and the received time-related information.

[0058] Using location-related information, the first terminal can determine the distance between the two points with the second terminal, thereby determining the distance indication information; using time-related information, the first terminal can determine the signal flight time between the first terminal and the second terminal, thereby determining the distance indication information.

[0059] Based on the foregoing, the distance indication information may include: First distance information; or, Second distance information; or, The third distance information is determined by fusing the first and second distance information.

[0060] The first distance information is a relative distance value calculated based on the location information of the first terminal and the location information of the second terminal. Optionally, the first distance information can be calculated by the first terminal based on the location information of the second terminal carried by the second control information, or the first distance information can be calculated by the second terminal based on the location information of the first terminal carried by the first control information. That is, the first distance information can be determined by the first terminal parsing the second control information.

[0061] The second distance information is the signal's time of flight, or a relative distance value calculated based on the signal's time of flight. The third distance information can be obtained by fusing the first and second distance information.

[0062] Correspondingly, the type of information used to indicate relative distance in the local information determined by the second terminal can refer to the possible types of distance indication information. For example, the information used to indicate relative distance in the local information can be the calculated distance between two points, the signal flight time, or the fused distance obtained by fusing the distance between two points and the signal flight time.

[0063] To improve the reliability of verification, the second terminal can determine local information based on independent calculations, meaning the information used to determine the local information is from a different source than the information used by the first terminal to determine the indication information. Based on this, optionally, the first control information may include the location information of the first terminal. Similarly, the second control information may include the location information of the second terminal. In another possible implementation, the third control information may include a timestamp recorded by the first terminal when receiving the second control information, and / or a timestamp recorded by the first terminal when sending the third control information, for the second terminal to calculate the signal time of flight.

[0064] Based on the above, Figure 2 A schematic diagram illustrating a power configuration process is provided. (Combined with...) Figure 2 As shown, the process may include: S201, The first terminal sends first control information to the second terminal, and the second terminal receives the first control information accordingly.

[0065] The first control information includes the location information of the first terminal, such as GPS location, so that the second terminal can obtain the location coordinates of the first terminal. Optionally, the first control information may also include other information, such as time information (Timeflag) and power information, so that the second terminal can obtain the transmission time and power information of the first control information. The time flag can be used to indicate the time when the first terminal transmits the first control information.

[0066] S202, the second terminal sends second control information to the first terminal, and correspondingly, the first terminal receives the second control information returned by the second terminal.

[0067] The second control information may include the location information of the second terminal, such as GPS location, for the first terminal to obtain the location information of the second terminal. The second control information may also include communication link quality information, which is used by the second terminal to detect the communication link quality during the reception of signals from the first terminal (such as the first control information). For example, it can be represented as power & RSSI information, where the power information can be the power information obtained by the second terminal parsing the first control information. Optionally, the second control information may also include new time information, specifically including the timestamp T1 recorded when the second terminal receives the first control information and the timestamp T2 when the second terminal sends the second control information, for the first terminal to obtain the time information of the second terminal.

[0068] S203. The first terminal obtains distance indication information and quality indication information based on the control information interaction process with the second terminal, and determines the target power based on the distance indication information and quality indication information.

[0069] Specifically, the first terminal can determine the relative distance by comparing the location information and signal time difference between the first and second terminals; it can determine the link quality by comparing the communication link quality information (such as RSSI information) fed back by the second terminal or by comparing the communication link quality information measured by the first and second terminals; and then determine the target power by combining the relative distance and the link quality.

[0070] S204. The first terminal sends third control information to the second terminal, and the second terminal receives the third control information accordingly.

[0071] The third control information includes information for indicating the target power, which can be represented as power selection information.

[0072] Optionally, the third control information may also include the location information of the first terminal (represented as GPS location) and updated time information (which may be represented as an Updated Time flag) to help the second terminal determine local information. The updated time information may include a timestamp T3 recorded when the first terminal receives the second control information and a timestamp T4 when the first terminal sends the third control information. In this case, the second terminal can record a timestamp T5 when receiving the third control information and calculate the signal flight time based on [(T5-T2)-(T4-T3)] / 2 to determine the relative distance. Furthermore, due to the movement of the first terminal, the location information of the first terminal carried in the first control information and the third control information may differ.

[0073] Based on the foregoing, the third control information may also include communication link quality information to indicate the communication link quality measured by the first terminal, such as the communication link quality measured based on the second control information.

[0074] S205. The second terminal determines local information based on the control information interaction process with the first terminal, and verifies the target power based on the local information.

[0075] Specifically, the second terminal parses the third control information and combines it with the control information interaction process with the first terminal to determine the communication distance and communication link quality between the first and second terminals, thereby verifying whether the target power is a suitable transmission power.

[0076] S206. The second terminal sends the verification result to the first terminal, and the first terminal receives the verification result accordingly.

[0077] S207. When the first terminal receives the verification result indicating that the characterization verification has passed, it configures the subsequent transmission power based on the target power.

[0078] Steps S206-S207 are the same as steps S107-S108 described above, and will not be repeated here.

[0079] Based on the above, in one possible implementation, the second terminal determines local information based on the control information interaction process with the first terminal, which may include: During the process of receiving control information from the first terminal, communication link quality is checked to obtain information indicating the communication link quality; or... Based on the location information of the second terminal and the received location information of the first terminal, a relative distance value is calculated to obtain information used to indicate the relative distance; or... Based on the timestamps recorded by the second terminal during its interaction with the first terminal and the first terminal during its interaction with the second terminal, the signal flight time is calculated, or a relative distance value is calculated based on the signal flight time to obtain information indicating the relative distance; or... By fusing the relative distance value and the signal flight time, information for indicating relative distance is obtained.

[0080] The location information of the first terminal may be included in the first control information or the third control information. The timestamp recorded by the first terminal may be included in the first control information or the third control information. Based on the calculated relative distance value and signal flight time, the second terminal may also perform a fusion calculation based on the calculated relative distance value and signal flight time to obtain a fused distance, which is used as information to indicate the relative distance.

[0081] In one or more embodiments provided in this application, when the distance indication information is third distance information, obtaining the distance indication information may include: S301, Obtain the first distance information and the second distance information.

[0082] Since the communication distance range is relatively small, in one possible implementation, obtaining the first distance information may include: converting the location information of the first terminal and the location information of the second terminal (specifically latitude and longitude coordinates) into planar coordinates to obtain the first location coordinates and the second location coordinates; calculating the distance between the two points based on the first location coordinates and the second location coordinates to obtain the distance value, which can be represented as d1. d1 can be calculated by the first terminal or by the second terminal.

[0083] After calculating the Time of Flight (ToF), based on the fact that the transmission time of electromagnetic waves of a signal is relatively fixed under air conditions and relative distance, that is, given the known transmission speed and transmission time, the signal time of flight can be converted into a distance value using a conversion formula, which can be expressed as d2.

[0084] S302. Calculate the average relative distance and absolute distance deviation based on the first distance information and the second distance information.

[0085] S303. Determine the error weighting coefficient based on the absolute distance deviation.

[0086] Among them, the error weighting coefficient is greater than or equal to 1, and the error weighting coefficient has a monotonically increasing relationship with the absolute distance deviation.

[0087] S304. Calculate the product of the error weighting coefficient and the average relative distance to obtain the third distance information.

[0088] For example, the average relative distance can be expressed as (d1+d2) / 2, and the absolute distance deviation can be expressed as |d1-d2|. The larger |d1-d2| is, the larger the error weighting coefficient k is, and the third distance information can be expressed as k·(d1+d2) / 2.

[0089] This scheme corrects the fused distance value by introducing an error weighting coefficient. This can yield a more conservative fused distance value when the two ranging methods have large deviations. In other words, it makes the fused distance value more likely to be a larger distance value, thereby avoiding the determination of an excessively low target power due to inaccurate ranging, and thus avoiding adverse effects on communication connections.

[0090] In one possible implementation, the distance range can be divided, using the distance range to which the actual distance value or the fused distance value belongs as distance information to reduce the complexity of the processing logic. For example, the complete relative distance interval D can be divided into 5 consecutive sub-intervals, denoted as D1, D2, D3, D4, and D5, respectively. The third distance information can be the identifier of the sub-interval to which d3=k·(d1+d2) / 2 belongs.

[0091] Taking Bluetooth Low Energy (BLE) technology as an example, according to actual testing, the maximum communication distance corresponding to 30dBm is approximately 960m. Beyond this distance, communication fails. Based on this, the communication distance is shortened downwards. The complete communication distance range D can be divided into five consecutive sub-ranges as shown below: D1, D2, D3, D4, and D5. Specifically, D1 is [800 m, 1000 m), corresponding to the maximum distance, 5.3349us ≤ ToF < 6.6687us; D2 is [600 m, 800 m), corresponding to a longer distance, 4.0012us ≤ ToF < 5.3349us; D3 is [400 m, 600 m), corresponding to a moderate distance, 2.6675us ≤ ToF < 4.0012us; D4 is [200 m, 400 m), corresponding to a shorter distance, 1.3337us ≤ ToF < 2.6675us; and D5 is [0, 200 m, 400 m), corresponding to a shorter distance, 1.3337us ≤ ToF < 2.6675us. m), corresponding to extremely close distance, ToF < 1.3337us.

[0092] For example, the rules for determining the error weighting coefficient k are shown in Table 1 below, which shows the correspondence between the absolute distance deviation and the error weighting coefficient. This table can be used to ensure that d3 is still within the communication distance interval D while fusing d1 and d2.

[0093] Table 1

[0094] Based on the above examples, the process of determining the third distance information will be explained with specific examples.

[0095] If d1 = 800m ∈ D1, d2 = 950m ∈ D1, and |d1 - d2| = 150m < 200m, then k = 1.02, d3 = k·(d1 + d2) / 2 ≈ 893m, thus d3 ∈ D1; if d1 = 800m ∈ D1, d2 = 801m ∈ D1, and |d1 - d2| = 1m < 100m, then k = 1, d3 = k·(d1 + d2) / 2 ≈ 801m, thus d3 ∈ D1. Let d3 ∈ D1; if d1 = 950m ∈ D1, d2 = 950m ∈ D1, |d1 - d2| = 0 < 100m, then k = 1, d3 = k·(d1 + d2) / 2 = 950m, thus determining d3 ∈ D1; if d1 = 600m ∈ D2, d2 = 799m ∈ D2, |d1 - d2| = 199m < 200m, then k = 1.02, d3 = k·(d1 + d2) / 2 ≈ 713m∈D2; If d1=600m∈D2, d2=601m∈D2, |d1-d2|=1m<100m, then k=1, d3=k·(d1+d2) / 2≈601m∈D2; If d1=799m∈D2, d2=799m∈D2, |d1-d2|=0<100m, then k=1, d3=k·(d1+d2) / 2=799m∈D2; If d1=400m∈D3, d2=599m∈D3, |d1-d2|=199m<200m, then k=1.02, d3=k·(d1+d2) / 2≈ 509m∈D3; If d1=400m, d2=401m, |d1-d2|=1m<100m, then k=1, d3=k·(d1+d2) / 2≈ 401m∈D3; If d1=599m∈D3, d2=599m∈D3, |d1-d2|=0<100m, then k=1, d3=k·(d1+d2) / 2 =599m∈D3; If d1=200m∈D4, d2=399m∈D4, |d1-d2|=199m<200m, then k=1.02, d3=k·(d1+d2) / 2≈ 305m∈D4; If d1=200m∈D4, d2=201m∈D4, |d1-d2|=1m<100m, then k=1, d3=k·(d1+d2) / 2 ≈ 201m∈D4; If d1=399m∈D4, d2=399m∈D4, |d1-d2|=0<100m, then k=1, d3=k·(d1+d2) / 2=399m∈D4; If d1=10m∈D5, d2=199m∈D5, |d1-d2|=189m<200m, then k=1.02, d3 = k·(d1+d2) / 2 ≈ 107m∈D5; If d1 = 10m∈D5, d2 = 11m∈D5, |d1-d2| = 1m < 100m, then k = 1, d3 = k·(d1+d2) / 2 ≈ 11m∈D5; If d1 = 199m∈D5, d2 = 199m∈D5, |d1-d2| = 0 < 100m, then k = 1, d3 = k·(d1+d2) / 2 = 199m∈D5.

[0096] Similarly, communication link quality can also be categorized. Taking RSSI as an example of communication link quality, Table 2 illustrates the RSSI range corresponding to different communication distances at maximum transmit power (30dBm).

[0097] Table 2

[0098] Based on the aforementioned representation of distance indication information and quality indication information using the range identifier of the distance value and the range identifier of the communication link quality, it is necessary to fuse the ideal transmit power corresponding to each of the two ranges to determine the final target power. An example of this process is provided below.

[0099] In one or more embodiments provided in this application, determining the target power based on distance indication information and mass indication information may include: S401. Determine the power level corresponding to the distance indication information from the pre-configured first mapping table to obtain the distance reference level.

[0100] The first mapping table is used to represent the correspondence between the relative distance between two devices and a reference power level. Optionally, the first mapping table can use a distance value to represent the relative distance between the two devices, or it can use a distance interval / range to represent the relative distance between the two devices.

[0101] S402. Determine the power level corresponding to the quality indication information from the pre-configured second mapping table to obtain the quality reference level.

[0102] The second mapping table is used to characterize the correspondence between the communication link quality and the reference power level between the two devices. Optionally, the second mapping table can use quality values ​​to represent the communication link quality between the two devices, or it can use quality intervals / ranges to represent the communication link quality between the two devices.

[0103] S403. If the distance reference level and the quality reference level are the same, then the reference power corresponding to the distance reference level shall be determined as the target power.

[0104] S404. If the distance reference level and the quality reference level are different, the fusion power shall be determined based on the distance reference level and the quality reference level, and used as the target power.

[0105] The fusion power is greater than the first reference power and not greater than the second reference power. The first reference power and the second reference power are the smaller and larger values ​​of the reference power corresponding to the distance reference level and the reference power corresponding to the quality reference level, respectively.

[0106] This solution is based on a two-dimensional power mapping mechanism. When the power level indicated by distance and the power level indicated by quality are inconsistent, the final power can be determined through a fusion strategy. This can avoid power jumps caused by fluctuations in a single indicator and improve the accuracy of power configuration.

[0107] In one possible implementation, the difference between the fused power and the first reference power has a monotonically increasing relationship with the absolute level deviations of the distance reference level and the quality reference level.

[0108] In other words, the greater the deviation between the two determined reference levels, the greater the difference between the reference power corresponding to the two indication information, and the greater the difference between the determined fused power and the minimum value of the two reference powers, the more reliable the communication will be.

[0109] For example, Table 3 uses RSSI as an example to illustrate the correspondence between the relative distance between two devices and the communication link quality and the reference power level.

[0110] Table 3

[0111] Referring to Table 3, when the relative distance d indicated by the distance indication information and the communication link quality RSSI indicated by the quality indication information correspond to the same reference level, this level is directly determined as the target level, and the reference power corresponding to this level is determined as the target power. When corresponding to different reference levels, for example, the target level can be determined according to the following rules, and then the reference power corresponding to the target level can be determined as the target power. Assuming the distance reference level is x and the quality reference level is y, if xy = -1, then the target level is x; if xy = -2, then the target level is x+1; if xy = -3, then the target level is x+2; if xy = -4, then the target level is x+3; if xy = 1, then the target level is y; if xy = 2, then the target level is y+1; if xy = 3, then the target level is y+2; if xy = 4, then the target level is y+3.

[0112] Based on this, when the distance reference level is 1, if the quality reference level is 2, then the target level is 1; if the quality reference level is 3, then the target level is 2; if the quality reference level is 4, then the target level is 3; if the quality reference level is 5, then the target level is 4. Similarly, when the distance reference level is 2, if the quality reference level is 1, then the target level is 1; if the quality reference level is 3, then the target level is 2; if the quality reference level is 4, then the target level is 3; if the quality reference level is 5, then the target level is 4. And when the distance reference level is 3, if the quality reference level is 1, then the target level is 2. The target level is 2. If the quality reference level is 4, the target level is 3. If the quality reference level is 5, the target level is 4. When the distance reference level is 4, if the quality reference level is 1, the target level is 3. If the quality reference level is 2, the target level is 3. If the quality reference level is 3, the target level is 3. If the quality reference level is 5, the target level is 4. When the distance reference level is 5, if the quality reference level is 1, the target level is 4. If the quality reference level is 2, the target level is 4. If the quality reference level is 3, the target level is 4. If the quality reference level is 4, the target level is 4.

[0113] In one or more embodiments provided in this application, the second terminal verifies the target power based on local information, which may include: The transmit power is determined based on local information and used as the verification power. If the absolute deviation between the verification power and the target power is less than the preset deviation limit, the verification is deemed successful; otherwise, the verification is deemed unsuccessful.

[0114] The process by which the second terminal determines the transmission power based on local information can be referenced from the process by which the first terminal determines the target power; the specific steps will not be repeated here. In other words, the first and second terminals can determine the target power and verification power based on the same rules, but the criteria for determination are different.

[0115] This solution provides a quantitative verification standard for whether the second terminal accepts the negotiation result, and the success rate of negotiation can be improved by using the deviation limit.

[0116] The power configuration process is illustrated below.

[0117] In one or more embodiments provided in this application, configuring subsequent transmit power based on the target power may include: S501. Determine the current detection power.

[0118] The initial detection power is the target power, which is the earliest detection power determined after receiving the verification result indicating that the characterization verification has passed.

[0119] S502. Determine whether the current detection power is less than the maximum transmission power. If yes, execute S503; otherwise, execute S506.

[0120] S503. Send a detection signal to the second terminal using the current detection power and wait for the second terminal to respond.

[0121] S504. If an acknowledgment signal from the second terminal is received within a preset time period, the current detection power is configured as the subsequent transmission power. S505. If no confirmation signal is received within the time limit, the detection power is increased according to the preset step size, and the process returns to execute S501.

[0122] S506, Configure the maximum transmit power as the subsequent transmit power.

[0123] This solution improves the reliability of power configuration by probing and verifying the target power after negotiation. If the negotiated target power is not available in the actual air interface, the power is automatically increased until the communication requirements can be met.

[0124] Correspondingly, if the verification passes, the method may also include: When the second terminal receives the detection signal, it sends an acknowledgment signal to the first terminal so that the first terminal configures the detection power at the time of receiving the acknowledgment signal as the subsequent transmission power.

[0125] The detection signal is the detection signal sent by the first terminal using the current detection power during the process of configuring subsequent transmission power based on the target power. In the first round of detection, the current detection power is the target power. In non-first rounds of detection, the current detection power is obtained by increasing the detection power of the previous round by a preset step size when the first terminal sends a detection signal but does not receive confirmation information after a timeout.

[0126] Based on the above, the second terminal, in conjunction with the detection mechanism of the first terminal, can send back a confirmation signal after successful verification and receipt of the detection signal, thereby assisting the first terminal in completing the final power configuration.

[0127] Optionally, the second terminal sending an acknowledgment signal to the first terminal may include: sending an acknowledgment signal to the first terminal using the target power.

[0128] Sending an acknowledgment signal using the agreed-upon target power can save terminal power consumption during the detection phase and also verify the availability of the target level on the communication link.

[0129] In one or more embodiments provided in this application, the method may further include: When the second terminal fails the verification, it sends a verification result indicating that the verification failed to the first terminal, so that the first terminal will configure the preset maximum transmission power as the subsequent transmission power.

[0130] Correspondingly, the method may also include: When the first terminal receives a verification result indicating that the characterization verification failed, it will configure the maximum transmission power as the subsequent transmission power.

[0131] Alternatively, the second terminal can configure its maximum transmit power as the subsequent transmit power if the verification fails. By using the maximum transmit power to send services when verification fails, communication anomalies caused by insufficient power can be avoided.

[0132] In one or more embodiments provided in this application, the power configuration conditions may include at least one of the following: The first terminal initiates a service for the first time after establishing a connection with the second terminal; The first terminal initiates a service after the silent timeout period; The displacement of the first terminal relative to the previous power configuration exceeds a preset displacement threshold.

[0133] The connection establishment and silent release between the first and second terminals can be referenced from the explanations in wireless communication solutions such as DMO, D2D, Bluetooth, WiFi passthrough, ultra-wideband, ZigBee, and NFC, and will not be repeated here. Optionally, the silent timeout can refer to the silent time exceeding the minimum time for connection release, such as 1 hour, after which the terminal will release the connection.

[0134] In addition, taking the application of Bluetooth Low Energy technology as an example, the displacement threshold can be set to 100m.

[0135] By using the power configuration triggering mechanism described above, dynamic power configuration tasks can be implemented in scenarios such as initialization, long-term silent recovery, and terminal movement, so that the power configuration always matches the current spatiotemporal state, thereby ensuring communication reliability.

[0136] The terminal equipment provided in this application is described below.

[0137] Optional, Figure 3 The hardware structure block diagram of the terminal device is shown, for reference Figure 3 The hardware structure of the terminal device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4; In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4; Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device; The memory is used to store computer programs, and the processor is used to execute the computer programs so that the terminal device can implement any of the above-described wireless communication power configuration methods.

[0138] This application also provides a computer program product, including computer-readable instructions, which, when executed on an electronic device, enable the electronic device to implement any of the wireless communication power configuration methods provided in this application.

[0139] This application also provides a computer-readable storage medium carrying one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the wireless communication power configuration methods provided in this application.

[0140] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0141] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0142] The above description of the disclosed embodiments enables those skilled in the art to make or use 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 disclosed herein.

Claims

1. A power configuration method for wireless communication, characterized in that, The method is applied to a first terminal that communicates directly with a second terminal, and includes: When the preset power configuration conditions are met, the system sends first control information to the second terminal and receives second control information returned by the second terminal. The second control information includes information for determining the relative distance between the first terminal and the second terminal and the quality of the communication link. Based on the control information interaction process with the second terminal, distance indication information and quality indication information are obtained. The distance indication information is used to indicate the relative distance, and the quality indication information is used to indicate the communication link quality. The target power is determined based on the distance indication information and the mass indication information; The target power is used to send third control information to the second terminal, so that the second terminal verifies the target power based on the verification power corresponding to the local information and returns the verification result; the third control information includes information for indicating the target power, and the local information includes information for indicating relative distance and / or communication link quality; If a verification result indicating successful characterization is received, the subsequent transmit power is configured based on the target power.

2. The power configuration method for wireless communication according to claim 1, characterized in that, The second control information includes: The communication link quality information measured by the second terminal; The second control information further includes: location-related information and / or time-related information; the location-related information includes the location information of the second terminal, or the relative distance value calculated by the second terminal based on the location information of the first terminal and the location information of the second terminal, wherein the location information of the first terminal is included in the first control information; the time-related information is a timestamp recorded by the second terminal during the interaction of control information with the first terminal.

3. The power configuration method for wireless communication according to claim 2, characterized in that, The distance indication information includes: First distance information, which is a relative distance value calculated based on the location information of the first terminal and the location information of the second terminal; or... The second distance information is the signal flight time or a relative distance value calculated based on the signal flight time. The signal flight time is calculated based on the timestamp recorded by the first terminal during the interaction of control information with the second terminal and the received time-related information; or... The third distance information is determined by fusing the first distance information and the second distance information.

4. The power configuration method for wireless communication according to claim 3, characterized in that, When the distance indication information is the third distance information, obtaining the distance indication information includes: Obtain the first distance information and the second distance information; Calculate the average relative distance and absolute distance deviation based on the first distance information and the second distance information; The error weighting coefficient is determined based on the absolute distance deviation; the error weighting coefficient is greater than or equal to 1, and the error weighting coefficient has a monotonically increasing relationship with the absolute distance deviation; The third distance information is obtained by calculating the product of the error weighting coefficient and the average relative distance.

5. The power configuration method for wireless communication according to any one of claims 1 to 4, characterized in that, Determining the target power based on the distance indication information and the mass indication information includes: The power level corresponding to the distance indication information is determined from the pre-configured first mapping table to obtain the distance reference level; the first mapping table is used to characterize the correspondence between the relative distance between two devices and the reference power level. The power level corresponding to the quality indication information is determined from the pre-configured second mapping table to obtain the quality reference level; the second mapping table is used to characterize the correspondence between the communication link quality and the reference power level between the two devices. If the distance reference level is the same as the mass reference level, then the reference power corresponding to the distance reference level is determined as the target power; If the distance reference level is different from the quality reference level, then the fusion power is determined based on the distance reference level and the quality reference level, and is used as the target power; wherein the fusion power is greater than the first reference power and not greater than the second reference power, and the first reference power and the second reference power are the smaller and larger values ​​of the reference power corresponding to the distance reference level and the reference power corresponding to the quality reference level, respectively.

6. The power configuration method for wireless communication according to claim 5, characterized in that, The difference between the fusion power and the first reference power has a monotonically increasing relationship with the absolute level deviation between the distance reference level and the quality reference level.

7. The power configuration method for wireless communication according to any one of claims 1 to 4, characterized in that, Configure subsequent transmit power based on the target power, including: Determine the current detection power, wherein the initial detection power is the target power; If the current detection power is less than the preset maximum transmission power, a detection signal is sent to the second terminal using the current detection power. If an acknowledgment signal is received from the second terminal within a preset time period, the current detection power is configured as the subsequent transmission power. If no acknowledgment signal is received within the time limit, the detection power is increased by a preset step size, and the process returns to the step of determining the current detection power. If the current detection power is not less than the maximum transmission power, the maximum transmission power is configured as the subsequent transmission power.

8. The power configuration method for wireless communication according to any one of claims 1 to 4, characterized in that, The method also includes: If a verification result indicating that the characterization verification failed is received, the preset maximum transmit power will be configured as the subsequent transmit power.

9. The power configuration method for wireless communication according to any one of claims 1 to 4, characterized in that, The power configuration conditions include at least one of the following: The first terminal initiates a service for the first time after establishing a connection with the second terminal; The first terminal initiates a service for the first time after the silent timeout period; The displacement of the first terminal relative to the previous power configuration exceeds a preset displacement threshold.

10. A power configuration method for wireless communication, characterized in that, The method is applied to a second terminal that communicates directly with the first terminal, and includes: In response to the first control information sent by the first terminal when the preset power configuration conditions are met, a second control information is sent to the first terminal so that the first terminal can obtain distance indication information and quality indication information; the second control information includes information for determining the relative distance between the first terminal and the second terminal and the communication link quality, the distance indication information is used to indicate the relative distance, and the quality indication information is used to indicate the communication link quality; In response to the third control information transmitted by the first terminal using the target power, local information is determined based on the control information interaction process with the first terminal; wherein, the third control information includes information for indicating the target power, the target power being the transmission power determined by the first terminal based on the distance indication information and the quality indication information; the local information includes information for indicating relative distance and / or communication link quality; The target power is verified based on the verification power corresponding to the local information; If the verification passes, a verification result indicating that the verification has passed is sent to the first terminal, so that the first terminal can configure the subsequent transmission power based on the target power.

11. The power configuration method for wireless communication according to claim 10, characterized in that, Based on the control information interaction process with the first terminal, local information is determined, including: During the process of receiving control information from the first terminal, communication link quality detection is performed to obtain information indicating the communication link quality; or... Based on the location information of the second terminal and the received location information of the first terminal, a relative distance value is calculated to obtain information indicating the relative distance; wherein, the location information of the first terminal is included in the first control information or the third control information; or, Based on the timestamps recorded by the second terminal during its interaction with the first terminal and the first terminal during its interaction with the second terminal, the signal flight time is calculated, or a relative distance value is calculated based on the signal flight time, to obtain information indicating the relative distance; wherein, the timestamps recorded by the first terminal are included in the first control information or the third control information; or... Information for indicating relative distance is obtained by fusing the relative distance value and the signal flight time.

12. The power configuration method for wireless communication according to claim 10, characterized in that, Verifying the target power based on the verification power corresponding to the local information includes: The transmission power is determined based on the local information and used as the verification power. If the absolute deviation between the verified power and the target power is less than a preset deviation limit, the verification is deemed successful; otherwise, the verification is deemed unsuccessful.

13. The power configuration method for wireless communication according to any one of claims 10 to 12, characterized in that, If the verification passes, the method also includes: Upon receiving a detection signal, an acknowledgment signal is sent to the first terminal, so that the first terminal configures the detection power at the time of receiving the acknowledgment signal as the subsequent transmission power; wherein, the detection signal is the detection signal sent by the first terminal using the current detection power during the process of configuring the subsequent transmission power based on the target power; in the first round of detection, the current detection power is the target power, and in non-first rounds of detection, the current detection power is obtained by the first terminal increasing the detection power of the previous round by a preset step size when the previous detection signal was sent but no acknowledgment information was received after a timeout.

14. The power configuration method for wireless communication according to claim 13, characterized in that, Sending an acknowledgment signal to the first terminal includes: A confirmation signal is sent to the first terminal using the target power.

15. The power configuration method for wireless communication according to any one of claims 10 to 12, characterized in that, The method also includes: If the verification fails, a verification result indicating the failure is sent to the first terminal, so that the first terminal configures the preset maximum transmission power as the subsequent transmission power.

16. A terminal device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program to enable the terminal device to implement the power configuration method for wireless communication as described in any one of claims 1 to 9, or to implement the power configuration method for wireless communication as described in any one of claims 10 to 15.

17. A computer program product, characterized in that, It includes computer-readable instructions that, when executed on an electronic device, enable the electronic device to implement the power configuration method for wireless communication as described in any one of claims 1 to 9, or to implement the power configuration method for wireless communication as described in any one of claims 10 to 15.