[go: up one dir, main page]

CN115665841B - Transmission power determination method, chip, terminal equipment and readable storage medium - Google Patents

Transmission power determination method, chip, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN115665841B
CN115665841B CN202211135105.9A CN202211135105A CN115665841B CN 115665841 B CN115665841 B CN 115665841B CN 202211135105 A CN202211135105 A CN 202211135105A CN 115665841 B CN115665841 B CN 115665841B
Authority
CN
China
Prior art keywords
rsrp
terminal device
path loss
antenna
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211135105.9A
Other languages
Chinese (zh)
Other versions
CN115665841A (en
Inventor
李金萌
孙晓宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211135105.9A priority Critical patent/CN115665841B/en
Publication of CN115665841A publication Critical patent/CN115665841A/en
Application granted granted Critical
Publication of CN115665841B publication Critical patent/CN115665841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the technical field of communication, and provides a transmitting power determining method, a chip, a terminal device and a readable storage medium. When the main set antenna is determined to be in a communication abnormal state, determining target path loss according to target Reference Signal Received Power (RSRP); the state of communication abnormality includes at least one of the following conditions: the signal to noise ratio of the signals received by the main set antenna is smaller than a preset signal to noise ratio threshold, the signal to noise plus interference ratio of the signals received by the main set antenna is smaller than a preset signal to noise plus interference ratio threshold, and the RSRP of the signals received by the main set antenna is equal to a preset RSRP abnormal value; the target RSRP is larger than a preset RSRP abnormal value; and determining the target transmitting power of the terminal equipment according to the target path loss. The method can avoid the increase of the block error rate of the uplink and the blocking.

Description

发射功率确定方法、芯片、终端设备和可读存储介质Transmission power determination method, chip, terminal equipment and readable storage medium

技术领域Technical field

本申请涉及通信技术领域,具体涉及一种发射功率确定方法、芯片、终端设备和可读存储介质。This application relates to the field of communication technology, and specifically relates to a transmission power determination method, a chip, a terminal device and a readable storage medium.

背景技术Background technique

当终端设备(user equipment,UE)和基站之间建立通信连接时,如果终端设备距离基站较近或者二则之间的障碍物较少,使得终端设备和基站之间的信号损失较小,终端设备则可以采用较小的发射功率和基站通信。如果终端设备距离基站较远或者二者之间的障碍物较多,使得终端设备和基站之间的信号损失较大,终端设备则需要采用较大的发射功率和基站通信。为了补偿不同的传输路径上的信号损失,使得基站能够维持稳定的接收功率,需要对终端设备的发射功率进行功率控制。When a communication connection is established between a terminal equipment (UE) and a base station, if the terminal equipment is closer to the base station or there are fewer obstacles between them, the signal loss between the terminal equipment and the base station is smaller. The device can use smaller transmit power to communicate with the base station. If the terminal device is far away from the base station or there are many obstacles between the two, resulting in greater signal loss between the terminal device and the base station, the terminal device needs to use greater transmit power to communicate with the base station. In order to compensate for signal losses on different transmission paths and enable the base station to maintain stable receiving power, the transmit power of the terminal equipment needs to be power controlled.

在功率控制过程中,基站以固定的发射功率向UE下发特定参考信号(cellreference signal,CRS),CRS在传输过程中会有衰减。当终端设备接收到CRS时,信号强度会减弱。终端设备可以获取接收CRS时的信号强度,称为CRS的接收功率,然后将CRS在基站侧发射时的发射功率减去CRS的接收功率之差,作为基站和终端设备之间的路径损耗。然后终端设备根据基站和终端设备之间的路径损耗,来确定终端设备的发射功率的大小。During the power control process, the base station sends a specific reference signal (cell reference signal, CRS) to the UE with a fixed transmission power. The CRS will be attenuated during the transmission process. When the terminal device receives CRS, the signal strength will weaken. The terminal device can obtain the signal strength when receiving the CRS, which is called the received power of the CRS, and then subtract the difference between the transmit power of the CRS when the CRS is transmitted on the base station side and the received power of the CRS as the path loss between the base station and the terminal device. Then the terminal device determines the transmit power of the terminal device based on the path loss between the base station and the terminal device.

然而,当终端设备的主集天线的接收性能突然恶化时,例如终端设备上主集天线接收到的信号的参考信号接收功率(reference signal received power,RSRP)很小时,如果根据这样的RSRP来计算路径损耗,则有可能会导致计算出的路径损耗过大,使得终端设备的发射功率变大。基站再根据自身接收到的信号的信噪比(signal noise ratio,SNR)大于目标SNR的条件来发送传输功率控制(transmit power control,TPC)指令以下调终端设备的发射功率,这会使终端设备的发射功率又急剧下降,导致上行链路的误块率(theblock error ratio,BLER)增大,造成系统卡顿。However, when the reception performance of the main antenna of the terminal device suddenly deteriorates, for example, the reference signal received power (RSRP) of the signal received by the main antenna on the terminal device is very small, if the calculation is based on such RSRP Path loss may cause the calculated path loss to be too large, causing the transmit power of the terminal device to become larger. The base station then sends a transmit power control (TPC) command to lower the transmit power of the terminal device based on the condition that the signal noise ratio (SNR) of the signal it receives is greater than the target SNR. This will cause the terminal device to The transmit power dropped sharply, causing the block error rate (BLER) of the uplink to increase, causing system freezes.

发明内容Contents of the invention

本申请提供了一种发射功率确定方法、装置、芯片、终端设备、计算机可读存储介质和计算机程序产品,能够避免上行链路的误块率增大,确保系统流畅运行。This application provides a transmission power determination method, device, chip, terminal equipment, computer-readable storage medium and computer program product, which can avoid an increase in the block error rate of the uplink and ensure smooth operation of the system.

第一方面,提供了一种发射功率确定方法,应用于终端设备,终端设备包括主集天线和至少一个分集天线,发射功率确定方法包括:确定所述主集天线处于通信异常的状态时,根据目标参考信号接收功率RSRP确定目标路径损耗;所述通信异常的状态包括如下条件中的至少一个:所述主集天线接收到的信号的信噪比小于预设信噪比阈值、所述主集天线接收到的信号的信噪干比小于预设信噪干比阈值和所述主集天线接收到的信号的RSRP等于预设RSRP异常值;所述目标RSRP大于所述预设RSRP异常值;根据所述目标路径损耗,确定所述终端设备的目标发射功率。In a first aspect, a transmit power determination method is provided, which is applied to a terminal device. The terminal device includes a main set antenna and at least one diversity antenna. The transmit power determination method includes: when determining that the main set antenna is in a communication abnormal state, according to The target reference signal received power RSRP determines the target path loss; the communication abnormal state includes at least one of the following conditions: the signal-to-noise ratio of the signal received by the main set antenna is less than the preset signal-to-noise ratio threshold, the main set antenna The signal-to-noise-to-interference ratio of the signal received by the antenna is less than the preset signal-to-noise-to-interference ratio threshold and the RSRP of the signal received by the main set antenna is equal to the preset RSRP abnormal value; the target RSRP is greater than the preset RSRP abnormal value; According to the target path loss, the target transmission power of the terminal device is determined.

主集天线处于通信异常的状态可以是终端设备发现主集天线接收到的信号的RSRP为预设RSRP异常值,或者是终端设备发现主集天线接收到的信号的SNR或信号与干扰加噪声比(signal to interference plus noise ratio,SINR,也称为信噪干比)小于-20dB。其中,预设RSRP异常值可以为-156dBm。主集天线处于通信异常的状态,即可视为主集天线出现掉底的现象。The communication abnormality of the main antenna may be caused by the terminal device discovering that the RSRP of the signal received by the main antenna is a preset RSRP abnormal value, or the terminal device discovering the SNR or signal-to-interference-plus-noise ratio of the signal received by the main antenna. (signal to interference plus noise ratio, SINR, also known as signal-to-noise-to-interference ratio) is less than -20dB. Among them, the preset RSRP abnormal value can be -156dBm. If the main antenna is in an abnormal communication state, it can be regarded as the main antenna bottoming out.

当主集天线出现掉底的现象时,终端设备不会再直接根据主集天线掉底时的RSRP来计算路径损耗,而是根据为正常值的目标RSRP对路径损耗进行估算。估算过程中所选择的RSRP能够代表当前终端设备和基站之间的信号损失的情况,因而估算得到的路径损耗不会发生突然变大的情况,就不会出现发射功率突然变大导致TPC指令指示终端设备的发射功率大幅下调的情况。因此能够避免终端设备的发射功率大幅下调后,上行链路的误块率增加导致系统卡顿的情况,确保了上行链路的误块率满足通信需求,确保了系统运行流畅和通信质量,提高了用户体验。When the main antenna drops, the terminal device will no longer directly calculate the path loss based on the RSRP when the main antenna drops. Instead, it will estimate the path loss based on the target RSRP, which is a normal value. The RSRP selected during the estimation process can represent the current signal loss between the terminal equipment and the base station. Therefore, the estimated path loss will not suddenly increase, and the transmit power will not suddenly increase causing TPC command indication. The transmission power of the terminal equipment is significantly reduced. Therefore, it can avoid the situation where the block error rate of the uplink increases and causes system freezes after the transmit power of the terminal equipment is significantly reduced, ensuring that the block error rate of the uplink meets the communication needs, ensuring smooth system operation and communication quality, and improving user experience.

在一些可能的实现方式中,所述目标RSRP包括所述主集天线的历史RSRP,所述历史RSRP为所述主集天线在当前时刻之前接收到的信号的RSRP,所述根据目标RSRP确定目标路径损耗,包括:根据所述历史RSRP,确定所述目标路径损耗。In some possible implementations, the target RSRP includes the historical RSRP of the main set antenna, the historical RSRP is the RSRP of the signal received by the main set antenna before the current moment, and the target is determined according to the target RSRP. Path loss includes: determining the target path loss based on the historical RSRP.

当主集天线出现掉底的现象时,终端设备不会再直接根据主集天线掉底时主集天线的RSRP来计算路径损耗,而是根据主集天线的历史RSRP来对路径损耗进行估算。估算过程中所选择的RSRP能够代表当前终端设备和基站之间的信号损失的情况,因而估算得到的路径损耗不会发生突然变大的情况,就不会出现发射功率突然变大导致TPC指令指示终端设备的发射功率大幅下调的情况。因此能够避免终端设备的发射功率大幅下调后,上行链路的误块率增加导致系统卡顿的情况,确保了上行链路的误块率满足通信需求,确保了系统运行流畅和通信质量,提高了用户体验。When the main antenna drops, the terminal device will no longer directly calculate the path loss based on the RSRP of the main antenna when the main antenna drops. Instead, it will estimate the path loss based on the historical RSRP of the main antenna. The RSRP selected during the estimation process can represent the current signal loss between the terminal equipment and the base station. Therefore, the estimated path loss will not suddenly increase, and the transmit power will not suddenly increase causing TPC command indication. The transmission power of the terminal equipment is significantly reduced. Therefore, it can avoid the situation where the block error rate of the uplink increases and causes system freezes after the transmit power of the terminal equipment is significantly reduced, ensuring that the block error rate of the uplink meets the communication needs, ensuring smooth system operation and communication quality, and improving user experience.

在一些可能的实现方式中,所述根据所述历史RSRP,确定所述目标路径损耗,包括:In some possible implementations, determining the target path loss based on the historical RSRP includes:

当所述历史RSRP的记录时间距离当前时刻的间隔小于或等于预设时段阈值时,则根据所述历史RSRP,确定所述目标路径损耗。When the interval between the recording time of the historical RSRP and the current time is less than or equal to the preset period threshold, the target path loss is determined based on the historical RSRP.

终端设备可以判断这个正常的历史RSRP的记录时间和当前时刻的间隔是否超过了预设时段阈值。如果没有超过,即历史RSRP的记录时间和当前时刻的时间的间隔是小于或等于预设时段阈值,则说明历史RSRP的记录时间较近,此时终端设备所处的环境不会发生大的变化,主集天线掉底可能是由于主集天线的方向发生变化或主集天线周围的环境发生变化导致,因此采用主集天线的历史RSRP来计算目标路径损耗的准确度高。The terminal device can determine whether the interval between the recording time of this normal historical RSRP and the current time exceeds the preset period threshold. If it does not exceed, that is, the interval between the recording time of historical RSRP and the current time is less than or equal to the preset period threshold, it means that the recording time of historical RSRP is relatively recent, and the environment in which the terminal device is located will not change significantly at this time. The drop of the main antenna may be caused by changes in the direction of the main antenna or changes in the environment around the main antenna. Therefore, using the historical RSRP of the main antenna to calculate the target path loss is highly accurate.

在一些可能的实现方式中,所述根据所述历史RSRP,确定所述目标路径损耗,还包括:当所述历史RSRP的记录时间距离当前时刻的间隔大于所述预设时段阈值时,则根据所述至少一个分集天线的RSRP,确定所述目标路径损耗。In some possible implementations, determining the target path loss based on the historical RSRP further includes: when the interval between the recording time of the historical RSRP and the current time is greater than the preset period threshold, then based on The RSRP of the at least one diversity antenna determines the target path loss.

如果获取的历史RSRP的记录时间和当前时刻的间隔超过了预设时段阈值,则说明历史RSRP的记录时间较远,此时终端设备所处的环境可能已经发生较大的变化,历史RSRP对当前时刻的RSRP没有参考意义,则无需采用历史RSRP来确定目标路径损耗。终端设备可以直接按照允许的最大发射功率满额发射,即采用终端设备当前的工作带宽所默认功率等级对应的最大发射功率来发射信号,以此来确保即使获取不到有效的RSRP也能够尽可能保证通信质量。终端设备还可以继续根据分集天线接收到的信号的RSRP来进行目标路径损耗的估算。If the interval between the obtained historical RSRP recording time and the current time exceeds the preset period threshold, it means that the historical RSRP recording time is far away. At this time, the environment in which the terminal device is located may have changed greatly, and the historical RSRP has no influence on the current time. The RSRP at time has no reference significance, so there is no need to use historical RSRP to determine the target path loss. The terminal device can directly transmit according to the maximum allowed transmit power, that is, use the maximum transmit power corresponding to the default power level of the current working bandwidth of the terminal device to transmit signals, so as to ensure that even if a valid RSRP cannot be obtained, it can be guaranteed as much as possible Communication quality. The terminal equipment can also continue to estimate the target path loss based on the RSRP of the signal received by the diversity antenna.

在一些可能的实现方式中,所述预设时段阈值为640毫秒或1秒。In some possible implementations, the preset period threshold is 640 milliseconds or 1 second.

通常天线切换的周期为640ms或1s,如果预设时段阈值没有超过天线切换的周期,说明此时主集天线还没有被切换,则可以根据历史RSRP来计算目标路径损耗。可选地,如果预设时段阈值超过天线切换的周期,则历史RSRP的记录时间和当前时刻的间隔可能超过了天线切换的周期,此时主集天线可能不再是之前的主集天线,而是切换为分集天线中的一个,则无需再采用历史RSRP来计算目标路径损耗。Usually the antenna switching period is 640ms or 1s. If the preset period threshold does not exceed the antenna switching period, it means that the main set antenna has not been switched at this time, and the target path loss can be calculated based on the historical RSRP. Optionally, if the preset period threshold exceeds the period of antenna switching, the interval between the recording time of the historical RSRP and the current moment may exceed the period of antenna switching. At this time, the main set antenna may no longer be the previous main set antenna, but is to switch to one of the diversity antennas, there is no need to use historical RSRP to calculate the target path loss.

在一些可能的实现方式中,所述目标RSRP包括所述至少一个分集天线接收到的信号的RSRP,所述根据目标RSRP确定目标路径损耗,包括:根据所述至少一个分集天线接收到的信号的RSRP,确定所述目标路径损耗。In some possible implementations, the target RSRP includes the RSRP of the signal received by the at least one diversity antenna, and determining the target path loss based on the target RSRP includes: based on the signal received by the at least one diversity antenna. RSRP, determines the target path loss.

当主集天线出现掉底的现象时,终端设备不会再直接根据主集天线掉底时主集天线的RSRP来计算路径损耗,而是根据分集天线接收到的信号的RSRP来对路径损耗进行估算。由于主集天线和其他分集天线处于同一终端设备,分集天线的RSRP也能够反映出终端设备和基站之间的信号损失情况,因此采用分集天线的RSRP确定目标路径损耗也能够准确表达终端设备和基站之间的信号损失情况,因而估算得到的路径损耗不会发生突然变大的情况,就不会出现发射功率突然变大导致TPC指令指示终端设备的发射功率大幅下调的情况。因此能够避免终端设备的发射功率大幅下调后,上行链路的误块率增加导致系统卡顿的情况,确保了上行链路的误块率满足通信需求,确保了系统运行流畅和通信质量,提高了用户体验。When the main antenna drops, the terminal device will no longer directly calculate the path loss based on the RSRP of the main antenna when the main antenna drops. Instead, it will estimate the path loss based on the RSRP of the signal received by the diversity antenna. . Since the main antenna and other diversity antennas are in the same terminal equipment, the RSRP of the diversity antenna can also reflect the signal loss between the terminal equipment and the base station. Therefore, using the RSRP of the diversity antenna to determine the target path loss can also accurately express the terminal equipment and base station. Therefore, the estimated path loss will not suddenly increase, and the transmission power will not suddenly increase, causing the TPC instruction to instruct the terminal device to significantly reduce the transmission power. Therefore, it can avoid the situation where the block error rate of the uplink increases and causes system freezes after the transmit power of the terminal equipment is significantly reduced, ensuring that the block error rate of the uplink meets the communication needs, ensuring smooth system operation and communication quality, and improving user experience.

在一些可能的实现方式中,所述根据所述至少一个分集天线接收到的信号的RSRP,确定所述目标路径损耗,包括:获取第一分集RSRP,所述第一分集RSRP为所述至少一个分集天线接收到的信号的RSRP中最大的一个,或所述第一分集RSRP为所述至少一个分集天线接收到的信号的RSRP的平均值;当所述第一分集RSRP大于所述预设RSRP异常值时,则根据所述第一分集RSRP确定所述目标路径损耗。In some possible implementations, determining the target path loss based on the RSRP of the signal received by the at least one diversity antenna includes: obtaining a first diversity RSRP, where the first diversity RSRP is the at least one diversity antenna. The largest one of the RSRPs of the signals received by the diversity antenna, or the first diversity RSRP is the average RSRP of the signals received by the at least one diversity antenna; when the first diversity RSRP is greater than the preset RSRP If there is an abnormal value, the target path loss is determined according to the first diversity RSRP.

在一些可能的实现方式中,所述预设信噪比阈值为-20dBm,所述预设信噪干比阈值为-20dBm,所述预设RSRP异常值为-156dBm。In some possible implementations, the preset signal-to-noise ratio threshold is -20dBm, the preset signal-to-noise-to-interference ratio threshold is -20dBm, and the preset RSRP abnormal value is -156dBm.

将预设信噪比阈值或预设信噪干比阈值设置为-20dB时,能够兼容识别效率和准确性,因此更合理。预设RSRP异常值为-156dBm符合通信协议的要求,按照-156dBm来作为天线掉底的判定条件,合理性强。When the preset signal-to-noise ratio threshold or the preset signal-to-noise-to-interference ratio threshold is set to -20dB, the recognition efficiency and accuracy can be compatible, so it is more reasonable. The preset RSRP abnormal value is -156dBm, which meets the requirements of the communication protocol. It is reasonable to use -156dBm as the judgment condition for antenna bottoming.

在一些可能的实现方式中,所述方法还包括:确定所述主集天线和所述至少一个分集天线均处于通信异常的状态时,确定所述目标发射功率为终端设备的当前工作带宽所对应的最大发射功率。In some possible implementations, the method further includes: when it is determined that both the main antenna and the at least one diversity antenna are in a communication abnormal state, determining that the target transmit power corresponds to the current working bandwidth of the terminal device. the maximum transmit power.

当所有天线都处于掉底的状态时,终端设备则可以按照当前工作带宽所默认功率等级对应的最大发射功率进行发射,以此来确保即使获取不到有效的RSRP也能够尽可能按照允许的最大发射功率发射来保证通信质量。When all antennas are in the down state, the terminal device can transmit according to the maximum transmit power corresponding to the default power level of the current working bandwidth. This ensures that even if a valid RSRP cannot be obtained, it can still transmit as much as possible according to the maximum allowable power level. Transmit power to ensure communication quality.

第二方面,提供了一种发射功率确定装置,包括由软件和/或硬件组成的单元,该单元用于执行第一方面所述的技术方案中任意一种方法。In a second aspect, a transmission power determination device is provided, including a unit composed of software and/or hardware, and the unit is configured to perform any method in the technical solution described in the first aspect.

第三方面,提供一种芯片,包括处理器;处理器用于读取并执行存储器中存储的计算机程序,以执行第一方面所述的技术方案中任意一种方法。In a third aspect, a chip is provided, including a processor; the processor is configured to read and execute a computer program stored in a memory to perform any method in the technical solution described in the first aspect.

可选地,所述芯片还包括存储器,存储器与处理器通过电路或电线连接。Optionally, the chip further includes a memory, and the memory is connected to the processor through circuits or wires.

进一步可选地,所述芯片还包括通信接口。Further optionally, the chip further includes a communication interface.

第四方面,提供了一种终端设备,终端设备包括:处理器、存储器和接口;处理器、存储器和接口相互配合,使得终端设备执行第一方面所述的技术方案中任意一种方法,或者终端设备包括第三方面所述的芯片。In the fourth aspect, a terminal device is provided. The terminal device includes: a processor, a memory and an interface; the processor, the memory and the interface cooperate with each other so that the terminal device executes any method in the technical solution described in the first aspect, or The terminal device includes the chip described in the third aspect.

第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储了计算机程序,当所述计算机程序被处理器执行时,使得该处理器执行第一方面所述的技术方案中任意一种方法。In a fifth aspect, a computer-readable storage medium is provided. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the processor is caused to execute the technology described in the first aspect. any method in the scheme.

第六方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码在终端设备上运行时,使得该终端设备执行第一方面所述的技术方案中任意一种方法。In a sixth aspect, a computer program product is provided. The computer program product includes: computer program code. When the computer program code is run on a terminal device, the terminal device causes the terminal device to execute the technical solution described in the first aspect. Either way.

附图说明Description of the drawings

图1是本申请实施例提供的一例终端设备100的结构示意图;Figure 1 is a schematic structural diagram of an example terminal device 100 provided by an embodiment of the present application;

图2是本申请实施例提供的终端设备100的软件结构框图;Figure 2 is a software structure block diagram of the terminal device 100 provided by the embodiment of the present application;

图3是本申请实施例提供的一例闭环功控的应用场景示意图;Figure 3 is a schematic diagram of an application scenario of closed-loop power control provided by the embodiment of the present application;

图4是本申请实施例提供的一例具有多天线的终端设备和基站之间的交互示意图;Figure 4 is a schematic diagram of an example of interaction between a terminal device with multiple antennas and a base station provided by an embodiment of the present application;

图5是本申请实施例提供的一例天线出现掉底时的RSRP的曲线图;Figure 5 is a graph of RSRP when the antenna bottoms out in an example provided by the embodiment of the present application;

图6是本申请实施例提供的一例天线出现掉底时的路径损耗、最大发射功率、发射功率和TPC功率调整量的曲线示意图;Figure 6 is a schematic curve diagram of path loss, maximum transmit power, transmit power and TPC power adjustment amount when the antenna bottoms out in an example provided by the embodiment of the present application;

图7是本申请实施例提供的一例发射功率确定方法的流程示意图;Figure 7 is a schematic flowchart of an example of a method for determining transmission power provided by an embodiment of the present application;

图8是本申请实施例提供的又一例发射功率确定方法的流程示意图;Figure 8 is a schematic flow chart of another transmission power determination method provided by an embodiment of the present application;

图9是本申请实施例提供的又一例发射功率确定方法的流程示意图;Figure 9 is a schematic flowchart of another transmission power determination method provided by an embodiment of the present application;

图10是本申请实施例提供的又一例发射功率确定方法的流程示意图;Figure 10 is a schematic flowchart of another transmission power determination method provided by an embodiment of the present application;

图11本申请实施例提供的一例发射功率确定装置结构示意图。Figure 11 is a schematic structural diagram of an example of a transmission power determination device provided by an embodiment of this application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in this article is only a way to describe related objects. The association relationship means that there can be three relationships. For example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B alone exists. In addition, in the description of the embodiments of this application, "plurality" refers to two or more than two.

以下,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”、“第三”的特征可以明示或者隐含地包括一个或者更多个该特征。Hereinafter, the terms “first”, “second” and “third” are used for descriptive purposes only and shall not be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, features defined as "first", "second", and "third" may explicitly or implicitly include one or more of these features.

本申请实施例提供的发射功率确定方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端设备上,本申请实施例对终端设备的具体类型不作任何限制。The transmission power determination method provided by the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and ultra-mobile personal devices. On terminal devices such as computers (ultra-mobile personal computers, UMPCs), netbooks, and personal digital assistants (personal digital assistants, PDA), embodiments of the present application do not place any restrictions on the specific types of terminal devices.

示例性的,图1是本申请实施例提供的一例终端设备100的结构示意图。终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universalserial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。For example, FIG. 1 is a schematic structural diagram of an example terminal device 100 provided by an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or less components than shown in the figures, or combine some components, or split some components, or arrange different components. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. . Among them, different processing units can be independent devices or integrated in one or more processors.

其中,控制器可以是终端设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the terminal device 100 . The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the terminal device 100 .

I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.

PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (displayserial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the terminal device 100.

GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其它终端设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other terminal devices, such as AR devices.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation on the terminal device 100 . In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While charging the battery 142, the charging management module 140 can also provide power to the terminal device through the power management module 141.

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其它一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

天线1和天线2用于发射和接收电磁波信号。图1中的天线1和天线2的结构仅为一种示例。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. The structures of antenna 1 and antenna 2 in Figure 1 are only an example. Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.

移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其它功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide information including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellite systems applied on the terminal device 100 (global navigation satellite system, GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其它设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (codedivision multiple access, CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou satellite navigation system (beidounavigation satellite system, BDS), quasi-zenith satellite system (quasi- zenith satellitesystem (QZSS) and/or satellite based augmentation systems (SBAS).

终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其它数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. The NPU can realize intelligent cognitive applications of the terminal device 100, such as image recognition, face recognition, speech recognition, text understanding, etc.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the terminal device 100 . The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the terminal device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.

终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music through the speaker 170A, or listen to hands-free calls.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the terminal device 100 can also be equipped with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端设备100根据压力传感器180A检测所述触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the terminal device 100 detects the strength of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the terminal device 100 . In some embodiments, the angular velocity of the terminal device 100 about three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the terminal device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the terminal device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

气压传感器180C用于测量气压。在一些实施例中,终端设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The terminal device 100 can detect the opening and closing of the flip leather case using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a flip machine, the terminal device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.

加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of terminal devices and be used in applications such as horizontal and vertical screen switching, pedometers, etc.

距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The terminal device 100 can measure distance through infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light through a light emitting diode. The terminal device 100 detects infrared reflected light from nearby objects using photodiodes. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 . The terminal device 100 can use the proximity light sensor 180G to detect when the user holds the terminal device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.

环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in the pocket to prevent accidental touching.

指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photography, fingerprint answering incoming calls, etc.

温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其它一些实施例中,当温度低于又一阈值时,终端设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing policy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to prevent the low temperature from causing the terminal device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the terminal device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 in a position different from that of the display screen 194 .

骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.

SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 adopts eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .

终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100 .

图2是本申请实施例的终端设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。Figure 2 is a software structure block diagram of the terminal device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer. The application layer can include a series of application packages.

如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application package can include camera, gallery, calendar, calling, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the terminal device 100 . For example, call status management (including connected, hung up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.

Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core libraries and virtual machines. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

当终端设备和基站之间建立通信连接时,如果终端设备距离基站较近或者二则之间的障碍物较少,使得终端设备和基站之间的信号损失较小,终端设备则可以采用较小的发射功率和基站通信。如果终端设备距离基站较远或者二者之间的障碍物较多,使得终端设备和基站之间的信号损失较大,终端设备则需要采用较大的发射功率和基站通信。为了补偿不同传输路径上的信号损失,使得基站能够维持稳定的接收功率,需要对终端设备的发射功率进行功率控制。When a communication connection is established between a terminal device and a base station, if the terminal device is closer to the base station or there are fewer obstacles between them, so that the signal loss between the terminal device and the base station is smaller, the terminal device can use a smaller transmit power to communicate with the base station. If the terminal device is far away from the base station or there are many obstacles between the two, resulting in greater signal loss between the terminal device and the base station, the terminal device needs to use greater transmit power to communicate with the base station. In order to compensate for signal losses on different transmission paths and enable the base station to maintain stable receiving power, it is necessary to perform power control on the transmit power of the terminal equipment.

终端设备的功率控制主要有两种方式:开环功率控制(简称开环功控)和闭环功率控制(简称闭环功控,也叫内环功控)。There are two main methods of power control of terminal equipment: open-loop power control (referred to as open-loop power control) and closed-loop power control (referred to as closed-loop power control, also called inner-loop power control).

开环功控是开放式的调节终端设备的发射功率,终端设备根据自身测量得到的基站信号覆盖的强弱来调节自身的发射功率。通常使用在终端设备注册网络的时候,向基站发送PRACH信号。当终端设备注册网络之后,则可以采用闭环功控的方式来调节发射功率。Open-loop power control is an open method of adjusting the transmit power of terminal equipment. The terminal equipment adjusts its own transmit power based on the strength of base station signal coverage measured by itself. It is usually used when the terminal device registers with the network to send the PRACH signal to the base station. After the terminal device registers with the network, closed-loop power control can be used to adjust the transmit power.

在闭环功控的场景下,终端设备的发射功率大小不仅和自身测量得到的基站信号覆盖的强弱有关,还与基站下发的TPC指令有关。具体可以参见图3所示:基站可以按照一定的发射功率广播CRS。终端设备在接收到该CRS后,可以获取接收到的CRS的接收功率Pr,crs,Pr,crs为CRS的RSRP的值。通常,可以采用滤波环路来测量RSRP的值。终端设备可以依据接收功率Pr,crs的大小,先确定出上行的发射功率。同时,终端设备还可以获取基站广播该CRS时的发射功率,记作Pt,crs。可以理解,上述CRS从基站到终端设备之间的信号损失可以记作路径损耗(path loss,PL),即PL=Pt,crs-Pr,crs。当终端设备确定出上行的发射功率后,通过无线信道向基站发送PUSCH和PUCCH信号。In the closed-loop power control scenario, the transmit power of the terminal equipment is not only related to the strength of the base station signal coverage measured by itself, but also related to the TPC instructions issued by the base station. For details, see Figure 3: the base station can broadcast CRS according to a certain transmission power. After receiving the CRS, the terminal device can obtain the received power P r,crs of the received CRS, where P r,crs is the RSRP value of the CRS. Typically, a filter loop can be used to measure the value of RSRP. The terminal equipment can first determine the uplink transmit power based on the received power P r, crs . At the same time, the terminal device can also obtain the transmission power when the base station broadcasts the CRS, which is recorded as P t,crs . It can be understood that the above-mentioned CRS signal loss between the base station and the terminal device can be recorded as path loss (PL), that is, PL=P t,crs -P r,crs . After the terminal device determines the uplink transmit power, it sends PUSCH and PUCCH signals to the base station through the wireless channel.

基站依据终端设备通过无线信道向基站发送的PUSCH和PUCCH信号的SNR或SINR,对终端设备的上行发射功率进行调整。具体为:基站会预置目标SNR,该目标SNR用于衡量接收信号是否能够被准确解调。基站可以采用TPC决策算法(TPC Decision Algorithm),来确定是上调还是下调终端设备的发射功率。此处以基站接收到的信号为PUSCH信号为例进行描述,当基站接收到的PUSCH信号的SNR比目标SNR小时,基站会认为此时终端设备发射的信号功率过低,影响信号的解调效果,因此向终端设备下发TPC指令控制终端设备上调发射功率;当基站接收到的PUSCH信号的SNR比目标SNR大时,基站会认为此时终端设备发射的信号功率足够进行解调,为了降低终端设备的电量等资源消耗,则向终端设备下发TPC指令控制终端设备下调发射功率。The base station adjusts the uplink transmit power of the terminal equipment based on the SNR or SINR of the PUSCH and PUCCH signals sent by the terminal equipment to the base station through the wireless channel. Specifically: the base station will preset a target SNR, which is used to measure whether the received signal can be accurately demodulated. The base station can use the TPC Decision Algorithm to determine whether to increase or decrease the transmit power of the terminal equipment. Here, the signal received by the base station is a PUSCH signal as an example. When the SNR of the PUSCH signal received by the base station is smaller than the target SNR, the base station will think that the signal power transmitted by the terminal device is too low at this time, affecting the demodulation effect of the signal. Therefore, TPC instructions are issued to the terminal equipment to control the terminal equipment to increase the transmit power; when the SNR of the PUSCH signal received by the base station is greater than the target SNR, the base station will consider that the signal power transmitted by the terminal equipment is sufficient for demodulation. In order to reduce the power of the terminal equipment, If the power consumption and other resources are reduced, a TPC command is issued to the terminal device to control the terminal device to lower the transmit power.

然后,终端设备根据基站下发的TPC指令,采用功率设置算法确定终端设备的发射功率,该过程称为闭环功控。Then, the terminal device uses the power setting algorithm to determine the transmit power of the terminal device according to the TPC command issued by the base station. This process is called closed-loop power control.

在上述闭环功控的过程中,路径损耗是影响终端设备的发射功率的重要指标,因此准确的路径损耗对功率控制的准确性有着至关重要的影响。In the above closed-loop power control process, path loss is an important indicator that affects the transmit power of the terminal equipment, so accurate path loss has a crucial impact on the accuracy of power control.

然而,当终端设备的方向或位置发生改变、或者周围辐射环境发生变化,导致终端设备的主集天线的接收性能突然恶化时,例如终端设备测量到的主集天线的RSRP突然下降。如果根据此时终端设备测量到的主集天线的RSRP来计算路径损耗,则有可能会导致路径损耗的计算结果过大,使得终端设备的发射功率变大。此时基站根据终端设备向基站发送的PUSCH信号的SNR来下调终端设备的发射功率,则会使终端设备的功率急剧下降,导致上行链路BLER增大,造成系统卡顿。However, when the direction or position of the terminal device changes, or the surrounding radiation environment changes, causing the reception performance of the terminal device's main antenna to suddenly deteriorate, for example, the RSRP of the main antenna measured by the terminal device suddenly drops. If the path loss is calculated based on the RSRP of the main antenna measured by the terminal device at this time, the path loss calculation result may be too large, causing the terminal device's transmit power to become larger. At this time, the base station lowers the transmit power of the terminal device based on the SNR of the PUSCH signal sent by the terminal device to the base station, which will cause the power of the terminal device to drop sharply, causing the uplink BLER to increase, causing system freezes.

以图4所示的具有四根天线的终端设备为例,在下行通信(基站发,终端收)时,终端设备采用四根天线(例如是RX0、RX1、RX2和RX3这四根天线)接收基站通过空间辐射传输的信号。其中,RX0为主集接收(primary receive,PR)天线,也叫主集天线,记作PRX,该主集天线RX0也可以作为发射天线来发射信号,即负责射频信号的发射和接收。RX1、RX2和RX3则作为分集接收(diversity receive,DR)天线,也叫分集天线,记作DRX。当RX0周围的辐射环境发生变化导致RX0的下行通信性能下降,即RX0接收到的接收信号的SNR或SINR小于-20dB,或者是RX0掉底(即RX0失去通信能力),此时终端设备会按照通信协议的要求,将RX0的RSRP设置为-156dBm。Taking the terminal equipment with four antennas shown in Figure 4 as an example, during downlink communication (transmitted by the base station and received by the terminal), the terminal equipment uses four antennas (for example, RX0, RX1, RX2 and RX3) to receive Signals transmitted by base stations via space radiation. Among them, RX0 is the primary receive (PR) antenna, also called the primary antenna, recorded as PRX. The primary antenna RX0 can also be used as a transmitting antenna to transmit signals, that is, it is responsible for transmitting and receiving radio frequency signals. RX1, RX2 and RX3 serve as diversity receive (DR) antennas, also called diversity antennas, denoted as DRX. When the radiation environment around RX0 changes, causing the downlink communication performance of RX0 to decline, that is, the SNR or SINR of the received signal received by RX0 is less than -20dB, or RX0 drops (that is, RX0 loses communication capabilities), at this time the terminal device will follow According to the requirements of the communication protocol, set the RSRP of RX0 to -156dBm.

通常,终端设备会将RSRP在-156dBm时按照上限值-140dBm计算,并作为Pr,crs带入公式PL=Pt,crs-Pr,crs中来计算路径损耗。但是这样计算得到的路径损耗会很大。例如,当CRS的Pt,crs为18dBm时,路径损耗PL=Pt,crs-Pr,crs=18-(-140)=158dB。因此终端设备会基于158dB的路径损耗来计算出发射功率,由此计算出的发射功率会很大,此时终端设备会按照最大发射功率PCMAX进行发射。这时,由于发射功率很大,基站侧检测到的接收信号的SNR也很大,则会采用TPC决策算法来下发TCP指令指示终端设备将发射功率降低较大的幅度。Usually, the terminal equipment will calculate the RSRP according to the upper limit value of -140dBm when -156dBm, and use it as P r,crs into the formula PL = P t,crs -P r,crs to calculate the path loss. However, the path loss calculated in this way will be very large. For example, when P t,crs of CRS is 18dBm, the path loss PL=P t,crs -P r,crs =18-(-140)=158dB. Therefore, the terminal device will calculate the transmit power based on the path loss of 158dB, and the calculated transmit power will be very large. At this time, the terminal device will transmit according to the maximum transmit power PCMAX . At this time, because the transmission power is very large and the SNR of the received signal detected by the base station is also very large, the TPC decision algorithm will be used to issue TCP instructions to instruct the terminal device to reduce the transmission power by a large margin.

例如可以参见图5所示的RX0的RSRP的曲线图,由图5可以看出,RX0接收到的信号的RSRP在T时刻出现下行通信性能突然下降的情况(曲线上体现为凹陷),则此时确定RX0出现掉底的现象。继续参见图6所示,在T时刻,由于RX0掉底,终端设备计算出来的路径损耗会很大,如图6中的PL曲线在T时刻出现突然增大的情况(曲线上体现为凸起)。终端设备根据路径损耗确定发射功率Ppusch的过程可以使用公式(1)或公式(1)的变形得到。终端设备会将路径损耗带入公式(2)中得到计算的发射功率(发射功率计算值P计算值)。如果P计算值大于终端设备当前的工作带宽所默认功率等级对应的最大发射功率PCMAX,则终端设备会按照PCMAX进行发射;如果P计算值小于PCMAX,则终端设备按照发射功率计算值进行发射。For example, you can refer to the RSRP curve of RX0 shown in Figure 5. It can be seen from Figure 5 that the RSRP of the signal received by RX0 suddenly drops in downlink communication performance at time T (reflected as a depression on the curve), then this At this time, it is determined that RX0 has bottomed out. Continuing to refer to Figure 6, at time T, because RX0 bottoms out, the path loss calculated by the terminal equipment will be very large. The PL curve in Figure 6 suddenly increases at time T (reflected as a bulge on the curve). ). The process by which the terminal equipment determines the transmit power P pusch based on the path loss can be obtained by using formula (1) or a modification of formula (1). The terminal equipment will bring the path loss into formula (2) to obtain the calculated transmit power (calculated transmit power value P calculated value ). If the calculated value of P is greater than the maximum transmit power PCMAX corresponding to the default power level of the current working bandwidth of the terminal device, the terminal device will transmit according to PCMAX ; if the calculated value of P is less than PCMAX , the terminal device will transmit according to the calculated value of transmit power. emission.

具体为:Specifically:

P计算值=P0(j)+α(j)PL(q)+10log(2μ·MRB)+ΔTF+δ(l) (2) Calculated value of P = P 0 (j) + α (j) PL ( q ) + 10 log (2 μ ·M RB ) + Δ TF + δ (l) (2)

上述公式(1)中,PCMAX表示终端设备当前的工作带宽所默认功率等级对应的最大发射功率。j表示配置集的索引;P0(j)为网络可配置的参数,可以表示目标接收功率,即基站想要接收到的信号的功率;α(j)为网络可配的干扰补偿因子;PL(q)表示参考信号q在上行通信时的路径损耗,也即本申请实施例中的目标路径损耗;μ对应子载波间隔(SCS),2μ*15KHz表示子载波间隔,例如μ=0的时候,子载波间隔为15KHz,μ=1的时候,子载波间隔为30KHz。MRB表示PUSCH传输所分配的资源块数目;ΔTF表示调制与编码策略(modulation andcoding scheme,MCS)的功率调整量;δ(l)表示闭环功率控制调整的功率,也即TPC指令所指示的功率调整量;l表示闭环的进程。In the above formula (1), PCMAX represents the maximum transmit power corresponding to the default power level of the current working bandwidth of the terminal device. j represents the index of the configuration set; P 0 (j) is a configurable parameter of the network, which can represent the target received power, that is, the power of the signal that the base station wants to receive; α (j) is the interference compensation factor that can be configured by the network; PL (q) represents the path loss of the reference signal q during uplink communication, which is the target path loss in the embodiment of the present application; μ corresponds to the sub-carrier spacing (SCS), and 2 μ * 15KHz represents the sub-carrier spacing, for example, μ = 0 When , the subcarrier spacing is 15KHz, and when μ=1, the subcarrier spacing is 30KHz. M RB represents the number of resource blocks allocated for PUSCH transmission; Δ TF represents the power adjustment amount of the modulation and coding scheme (MCS); δ(l) represents the power adjusted by the closed-loop power control, which is indicated by the TPC command Power adjustment amount; l represents the process of closed loop.

例如,j=2时,根据上层消息配置可知:P0(j)=-76dB,α(j)=0.8,MRB=4,μ=0,ΔTF=0dB,PL(q)=115dB,根据终端设备的日志(log)消息可知,δ(l)为-5dB,则可以求得:For example, when j=2, according to the upper layer message configuration: P 0 (j) = -76dB, α (j) = 0.8, M RB = 4, μ = 0, Δ TF = 0dB, PL (q) = 115dB, According to the log message of the terminal device, it can be known that δ(l) is -5dB, then it can be obtained:

Ppusch=P0(j)+α(j)PL(q)+10log(2μ·MRB)+ΔTF+δ(l)P pusch =P 0 (j)+α(j)PL(q)+10log(2 μ ·M RB )+Δ TF +δ(l)

=-76+0.8·115+10log(1·4)+0-5=17dBm=-76+0.8·115+10log(1·4)+0-5=17dBm

上述公式(1)中的δ(l)是由参数tpc-Accumulation确定的,当该参数tpc-Accumulation配置为使能(enabled)时或者不配置时,则采用累积方式进行功率调整。当该参数tpc-Accumulatio配置为不使能(disabled)时,则采用绝对值的方式进行功率调整。本申请实施例对此不做限定。无论采用哪种调整方式,δ(l)的结果不变,只是确定δ(l)的方式不同。δ(l) in the above formula (1) is determined by the parameter tpc-Accumulation. When the parameter tpc-Accumulation is configured as enabled (enabled) or not configured, the accumulation method is used for power adjustment. When the parameter tpc-Accumulatio is configured as disabled, the absolute value method is used for power adjustment. The embodiments of the present application do not limit this. No matter which adjustment method is adopted, the result of δ(l) remains unchanged, but the way of determining δ(l) is different.

如果终端设备计算出来的路径损耗很大时,发射功率计算值会相应变得很大,如图6中的发射功率计算值的曲线在T时刻出现凸起,凸起的峰值会超过最大发射功率PCMAX,由此导致终端设备实际的发射功率会突然达到最大发射功率PCMAX。这样会触发基站下发TPC指令来大幅下调终端设备的发射功率,TPC指令控制的功率调整量可以参见图6中的TPC曲线,TPC曲线在T时刻附近出现大幅下降说明下调幅度较大。同时,终端设备可以采用功率控制算法,根据TPC指令控制的功率调整量再次计算得到终端设备的发射功率。继续参见图6中发射功率计算值的曲线,在TPC指令的指示下降低较大幅度,出现凹坑。在如图6所示的发射功率计算值的曲线的保持降低较大幅度的一段时间内,上行链路的误块率会增加,系统出现卡顿。If the path loss calculated by the terminal equipment is very large, the calculated transmission power value will become very large accordingly. The curve of the calculated transmission power value in Figure 6 will appear a bulge at time T, and the peak value of the bulge will exceed the maximum transmission power. PCMAX , which causes the actual transmit power of the terminal device to suddenly reach the maximum transmit power PCMAX . This will trigger the base station to issue a TPC command to significantly reduce the transmit power of the terminal equipment. The power adjustment amount controlled by the TPC command can be seen in the TPC curve in Figure 6. A significant drop in the TPC curve near time T indicates a large reduction. At the same time, the terminal device can use the power control algorithm to calculate the transmit power of the terminal device again according to the power adjustment amount controlled by the TPC command. Continuing to refer to the curve of the calculated transmission power value in Figure 6, under the instruction of the TPC command, it decreases significantly and pits appear. During a period of time when the curve of the calculated transmit power value shown in Figure 6 remains significantly reduced, the block error rate of the uplink will increase and the system will freeze.

本申请所提供的技术方案中,当RX0出现掉底的现象时,终端设备不会再直接根据RX0掉底时的RSRP来计算路径损耗,而是会根据RX0当前时刻之前的历史时刻获取的历史RSRP或分集天线的RSRP来对路径损耗进行估算。估算过程中所选择的RSRP能够代表当前终端设备和基站之间的信号损失的情况,因而估算得到的路径损耗不会发生突然变大的情况,就不会使得发射功率突然变大导致TPC指令指示终端设备的发射功率大幅下调的情况。因此能够避免终端设备的发射功率大幅下调后,上行链路的误块率增加导致系统卡顿的情况,确保了上行链路的误块率满足通信需求,确保了系统运行流畅和通信质量,提高了用户体验。In the technical solution provided by this application, when RX0 bottoms out, the terminal device will no longer directly calculate the path loss based on the RSRP when RX0 bottoms out, but will calculate the path loss based on the historical time before the current moment of RX0. RSRP or diversity antenna RSRP to estimate path loss. The RSRP selected during the estimation process can represent the current signal loss situation between the terminal equipment and the base station. Therefore, the estimated path loss will not suddenly increase, and the transmit power will not suddenly increase causing a TPC command indication. The transmission power of the terminal equipment is significantly reduced. Therefore, it can avoid the situation where the block error rate of the uplink increases and causes system freezes after the transmit power of the terminal equipment is significantly reduced, ensuring that the block error rate of the uplink meets the communication needs, ensuring smooth system operation and communication quality, and improving user experience.

为了便于理解,本申请以下实施例将以具有图1和图2所示结构的终端设备为例,结合附图和应用场景,对本申请实施例提供的发射功率确定方法进行具体阐述。In order to facilitate understanding, the following embodiments of the present application will take the terminal device with the structure shown in Figure 1 and Figure 2 as an example. The method for determining the transmission power provided by the embodiments of the present application will be specifically described in conjunction with the drawings and application scenarios.

本申请实施例所提供的路径损耗确定方法可以应用于终端设备,该终端设备上设置多个天线,包括一个主集天线,以及一个或多个分集天线。其中,主集天线可以用来发射和接收射频信号,当接收射频信号的时候,可以叫做主集接收天线。分集天线可以用来接收射频信号,当接收射频信号的时候,也可以叫做分集接收天线。The path loss determination method provided by the embodiment of the present application can be applied to a terminal device that is equipped with multiple antennas, including a main antenna and one or more diversity antennas. Among them, the main set antenna can be used to transmit and receive radio frequency signals. When receiving radio frequency signals, it can be called the main set receiving antenna. Diversity antennas can be used to receive radio frequency signals. When receiving radio frequency signals, they can also be called diversity receiving antennas.

本申请实施例所提供的发射功率确定方法的具体可以参见图7所示的实施例,图7为本申请实施例提供的一例根据历史RSRP确定目标路径损耗的方法流程图。该方法包括:For details of the transmit power determination method provided by the embodiment of the present application, please refer to the embodiment shown in Figure 7. Figure 7 is a flow chart of a method for determining target path loss based on historical RSRP provided by the embodiment of the present application. The method includes:

S701、判断主集天线是处于通信异常的状态。若是,则执行S702。S701. Determine whether the main antenna is in a communication abnormal state. If yes, execute S702.

具体的,终端设备可以对其上设置的天线的通信状态进行监控来确定天线是否处于通信异常的状态(也即掉底的状态)。Specifically, the terminal device can monitor the communication status of the antenna installed on it to determine whether the antenna is in an abnormal communication state (that is, in a bottom-down state).

可选地,终端设备判断天线的通信状态是否异常,可以是根据接收到的基站广播的CRS的信噪比来判断。当终端设备通过主集天线接收到的CRS的信噪比小于预设信噪比阈值时,则确定此时主集天线处于通信异常的状态,即主集天线出现掉底的现象。如果终端设备通过主集天线接收到的CRS的信噪比大于或等于预设信噪比阈值,则可以确定此时主集天线处于通信正常的状态。上述预设信噪比阈值设置的大,可以在通信能力变差的过程中及早识别出通信异常的状态,提高了识别效率;预设信噪比阈值设置的小,则可以准确识别出通信异常的状态,避免误识别。可选地,预设信噪比阈值还可以为其他的阈值,例如-19dB、-19.5dB、-20.5dB、-21dB等阈值。该预设信噪比阈值可以根据需要进行选择和调整。可选地,预设信噪比阈值可以为-20dB时,能够兼容识别效率和准确性,因此更合理。Optionally, the terminal device may determine whether the communication status of the antenna is abnormal based on the signal-to-noise ratio of the received CRS broadcast by the base station. When the signal-to-noise ratio of the CRS received by the terminal device through the main antenna is less than the preset signal-to-noise ratio threshold, it is determined that the main antenna is in an abnormal communication state at this time, that is, the main antenna is bottomed out. If the signal-to-noise ratio of the CRS received by the terminal device through the main antenna is greater than or equal to the preset signal-to-noise ratio threshold, it can be determined that the main antenna is in a normal communication state at this time. If the above-mentioned preset signal-to-noise ratio threshold is set to a large value, abnormal communication status can be identified early in the process of deteriorating communication capabilities, improving the identification efficiency; if the preset signal-to-noise ratio threshold is set to a small value, communication abnormalities can be accurately identified status to avoid misidentification. Optionally, the preset signal-to-noise ratio threshold can also be other thresholds, such as -19dB, -19.5dB, -20.5dB, -21dB and other thresholds. This preset signal-to-noise ratio threshold can be selected and adjusted as needed. Optionally, the preset signal-to-noise ratio threshold can be -20dB, which is compatible with recognition efficiency and accuracy, and is therefore more reasonable.

可选地,终端设备判断天线的通信状态是否异常,还可以是根据接收到的基站广播的CRS的SINR来判断。信噪干比是指接收到的有用信号的强度与接收到的干扰信号(噪声和干扰)的强度的比值,可以简单理解为信噪比。采用SINR的方式和采用SNR的方式相同。Optionally, the terminal device may determine whether the communication status of the antenna is abnormal or based on the received SINR of the CRS broadcast by the base station. The signal-to-noise-to-interference ratio refers to the ratio of the intensity of the received useful signal to the intensity of the received interfering signal (noise and interference). It can be simply understood as the signal-to-noise ratio. The way to use SINR is the same as the way to use SNR.

可选地,终端设备判断天线的通信状态是否异常,还可以根据接收到的基站广播的CRS的RSRP来判断。当终端设备通过主集天线接收到的CRS的RSPR为预设异常值时,表征该主集天线为通信异常的状态,即出现掉底的情况。在一些实施例中,预设异常值可以为-156dBm。当然,预设异常值还可以为其它数值,只要是能够表征天线掉底的状态即可,本申请实施例对此不做限定。Optionally, the terminal device may determine whether the communication status of the antenna is abnormal or not based on the received RSRP of the CRS broadcast by the base station. When the RSPR of the CRS received by the terminal device through the main antenna is a preset abnormal value, it indicates that the main antenna is in a communication abnormal state, that is, a bottom-out situation occurs. In some embodiments, the preset abnormal value may be -156dBm. Of course, the preset abnormal value can also be other values, as long as it can represent the state of the antenna bottoming out, which is not limited in the embodiments of the present application.

由于信噪比SNR=Pr,crs/Pn,其中,Pn表示噪声功率。由此可以看出,SNR和Pr,crs为正比关系。又因为Pr,crs为RSRP,SNR的大小能够表征RSRP的大小。当SNR小于一定的阈值时,说明RSRP也很低。在一些实施例中,当终端设备接收到的CRS的信号的信噪比或信噪干比小于-20dB时,终端设备可以直接设置RSRP为-156dBm,表示天线失去通信能力,处于掉底的状态,也即出现掉底的现象。Since the signal-to-noise ratio SNR=P r,crs /P n , where P n represents the noise power. It can be seen that SNR and P r,crs are directly proportional to each other. And because P r, crs is RSRP, the size of SNR can characterize the size of RSRP. When the SNR is less than a certain threshold, it means that the RSRP is also very low. In some embodiments, when the signal-to-noise ratio or signal-to-noise-to-interference ratio of the CRS signal received by the terminal device is less than -20dB, the terminal device can directly set the RSRP to -156dBm, indicating that the antenna has lost communication capability and is in a bottom-out state. , that is, the phenomenon of bottoming out occurs.

S702、获取历史RSRP。其中,历史RSRP为主集天线在当前时刻之前接收到的信号的RSRP,历史RSRP大于预设RSRP异常值。S702. Obtain historical RSRP. Among them, the historical RSRP is the RSRP of the signal received by the main set antenna before the current time, and the historical RSRP is greater than the preset RSRP abnormal value.

终端设备按照一定的周期检测每个天线的RSRP并记录,将主集天线在当前时刻之前的一段时间内获取的RSRP的值作为RSRP的集合。RSRP的集合中可以包括异常值,异常值则为等于预设RSRP异常值的数值;也可以包括正常值,即为不等于预设RSRP异常值的数值。如果预设RSRP异常值为-156dBm时,则正常值可以是-120dBm、-130dBm等大于-156dBm的数值。The terminal device detects and records the RSRP of each antenna at a certain period, and uses the RSRP value obtained by the main set of antennas within a period of time before the current time as a set of RSRPs. The RSRP set may include outliers, which are values equal to the preset RSRP outlier value; it may also include normal values, which are values that are not equal to the preset RSRP outlier value. If the preset RSRP abnormal value is -156dBm, the normal value can be -120dBm, -130dBm and other values greater than -156dBm.

当发现主集天线掉底时,即主集天线在当前时刻接收到的信号的RSRP为异常值-156dBm时,终端设备可以从RSRP的集合中选择一个记录时间(也即检测的时间)距离当前时刻最近的且为正常值的RSRP作为历史RSRP。距离当前时刻越近,终端设备的天线状态变化的程度越小,因此采用记录时间距离当前时刻最近的历史RSRP来确定的目标路径损耗更准确,进而使得确定的目标发射功率更合理。When it is found that the main set antenna has bottomed out, that is, when the RSRP of the signal received by the main set antenna at the current moment is an abnormal value of -156dBm, the terminal device can select a recording time (that is, the detection time) from the RSRP set that is far away from the current The most recent and normal RSRP is used as the historical RSRP. The closer to the current moment, the smaller the change in the antenna status of the terminal device. Therefore, the target path loss determined by using the historical RSRP whose recording time is closest to the current moment is more accurate, which in turn makes the determined target transmit power more reasonable.

可选地,终端设备获取历史RSRP的过程可以是:终端设备获取当前时刻的上一个时刻所记录的RSRP后,可以先判断该RSRP是否为正常值,如果是正常值,则说明上一时刻的主集天线还没有掉底,可以采用上一时刻记录的RSRP来代替当前时刻的RSRP,计算目标路径损耗。如果上一时刻记录RSRP不是正常值,例如也是-156dBm,则说明上一时刻主集天线已经发生掉底,则上一时刻记录的RSRP不能用来估算目标路径损耗。此时,可以继续查看上一时刻之前的再上一个时刻的RSRP是否为正常值,如果是正常值,就可以选择再上一个时刻的正常的RSRP来计算目标路径损耗。如果再上一个时刻记录的RSRP不是正常值,则继续按照记录RSRP的时间向前查找,直至找到正常值为止。在一些实施例中,正常值可以是大于-156dBm的数值,即如果RSRP为大于-156dBm的数值时,认为该RSRP为正常值。Optionally, the process for the terminal device to obtain the historical RSRP may be: after the terminal device obtains the RSRP recorded at the previous time of the current time, it may first determine whether the RSRP is a normal value. If it is a normal value, then indicate the RSRP at the previous time. The main antenna has not bottomed out yet. You can use the RSRP recorded at the previous moment to replace the RSRP at the current moment to calculate the target path loss. If the RSRP recorded at the last moment is not a normal value, for example -156dBm, it means that the main antenna has dropped at the last moment, and the RSRP recorded at the last moment cannot be used to estimate the target path loss. At this time, you can continue to check whether the RSRP at the previous moment before the previous moment is a normal value. If it is a normal value, you can select the normal RSRP at the previous moment to calculate the target path loss. If the RSRP recorded at the last moment is not a normal value, continue searching forward according to the time when the RSRP was recorded until a normal value is found. In some embodiments, the normal value may be a value greater than -156dBm, that is, if the RSRP is a value greater than -156dBm, the RSRP is considered to be a normal value.

可选地,终端设备还可以判断这个正常的历史RSRP的记录时间和当前时刻的间隔是否超过了预设时段阈值。如果没有超过,即历史RSRP的记录时间和当前时刻的时间的间隔是小于或等于预设时段阈值,则说明历史RSRP的记录时间较近,此时终端设备所处的环境不会发生大的变化,主集天线掉底可能是由于主集天线的方向发生变化或主集天线周围的环境发生变化导致,因此可以采用主集天线的历史RSRP来计算目标路径损耗。如果获取的为正常值的历史RSRP的记录时间和当前时刻的时间的间隔超过了预设时段阈值,则说明历史RSRP的记录时间较远,此时终端设备所处的环境可能已经发生较大的变化,历史RSRP对当前时刻的RSRP没有参考意义,则无需采用历史RSRP来确定目标路径损耗。Optionally, the terminal device can also determine whether the interval between the recording time of this normal historical RSRP and the current time exceeds a preset period threshold. If it does not exceed, that is, the interval between the recording time of historical RSRP and the current time is less than or equal to the preset period threshold, it means that the recording time of historical RSRP is relatively recent, and the environment in which the terminal device is located will not change significantly at this time. The drop of the main antenna may be caused by changes in the direction of the main antenna or changes in the environment around the main antenna. Therefore, the historical RSRP of the main antenna can be used to calculate the target path loss. If the interval between the obtained normal value of the recording time of historical RSRP and the current time exceeds the preset period threshold, it means that the recording time of historical RSRP is far away, and at this time, the environment in which the terminal device is located may have experienced a major disaster. changes, the historical RSRP has no reference significance for the RSRP at the current moment, so there is no need to use the historical RSRP to determine the target path loss.

可选地,上述预设时段阈值可以为640毫秒(ms)或1秒。通常天线切换的周期为640ms或1s,如果预设时段阈值没有超过天线切换的周期,说明此时主集天线还没有被切换,则可以根据历史RSRP来计算目标路径损耗。可选地,如果预设时段阈值超过天线切换的周期,则历史RSRP的记录时间和当前时刻的间隔可能超过了天线切换的周期,此时主集天线可能不再是之前的主集天线,而是切换为分集天线中的一个,则无需再采用历史RSRP来计算目标路径损耗。Optionally, the above-mentioned preset period threshold may be 640 milliseconds (ms) or 1 second. Usually the antenna switching period is 640ms or 1s. If the preset period threshold does not exceed the antenna switching period, it means that the main set antenna has not been switched at this time, and the target path loss can be calculated based on the historical RSRP. Optionally, if the preset period threshold exceeds the period of antenna switching, the interval between the recording time of the historical RSRP and the current moment may exceed the period of antenna switching. At this time, the main set antenna may no longer be the previous main set antenna, but is to switch to one of the diversity antennas, there is no need to use historical RSRP to calculate the target path loss.

在一些实施例中,上述历史RSRP不一定是距离当前时刻最近的正常值,也可以是在当前时刻之前记录的且距离当前时刻较近的为正常值的RSRP。例如,终端设备可以在当前时刻之前的预设时段(当前时刻之前的640ms或者1秒)内所记录的RSRP中任选一个正常值作为历史RSRP,或者将当前时刻之前的预设时段内所记录的正常的RSRP的平均值作为历史RSRP,本申请实施例对此并不做限定。此处的预设时段的数值可以为上述预设时段阈值。In some embodiments, the above-mentioned historical RSRP is not necessarily the nearest normal value to the current time, but may also be an RSRP with a normal value that was recorded before the current time and is closer to the current time. For example, the terminal device can select any normal value from the RSRP recorded in the preset period before the current time (640ms or 1 second before the current time) as the historical RSRP, or use the RSRP recorded in the preset period before the current time. The average value of the normal RSRP is used as the historical RSRP, which is not limited in the embodiment of the present application. The value of the preset period here may be the above-mentioned preset period threshold.

S703、根据所述历史RSRP,确定所述目标路径损耗。S703. Determine the target path loss according to the historical RSRP.

终端设备可以将历史RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗。The terminal device can take the historical RSRP as P r,crs and put it into the formula PL=P t,crs -P r,crs to obtain the target path loss.

S704、根据所述目标路径损耗,确定所述终端设备的目标发射功率。S704. Determine the target transmission power of the terminal device according to the target path loss.

终端设备可以将目标路径损耗带入上述公式(1)中计算出终端设备的目标发射功率。具体过程可以参见前述对公式(1)的描述,此处不再赘述。The terminal device can put the target path loss into the above formula (1) to calculate the target transmit power of the terminal device. For the specific process, please refer to the aforementioned description of formula (1) and will not be repeated here.

上述图7所示的实施例中,当终端设备发现主集天线掉底时,则可以选择历史RSRP来代替当前时刻的RSRP计算目标路径损耗。上述历史RSRP能够反映出终端设备在历史时刻所处的环境,包括在历史时刻时周边的障碍物和距离基站的位置远近等。由于历史时刻所处的环境和当前时刻所处的环境具有一定的关联性,选择历史RSRP能够代表当前终端设备和基站之间的信号损失的情况,因而得到的目标路径损耗不会发生突然变大的情况,就不会出现发射功率突然变大导致TPC指令指示终端设备的发射功率大幅下调的情况。因此能够避免终端设备的发射功率大幅下调后,上行链路的误块率增加导致系统卡顿的情况,确保了上行链路的误块率满足通信需求,确保了系统运行流畅和通信质量,提高了用户体验。In the above embodiment shown in Figure 7, when the terminal device finds that the main antenna is bottomed out, it can select the historical RSRP to replace the RSRP at the current moment to calculate the target path loss. The above historical RSRP can reflect the environment in which the terminal device was located at the historical moment, including the surrounding obstacles and the distance from the base station at the historical moment. Since there is a certain correlation between the environment at the historical moment and the environment at the current moment, selecting the historical RSRP can represent the current signal loss between the terminal device and the base station, so the target path loss obtained will not suddenly become larger. situation, there will be no situation where the transmission power suddenly increases, causing the TPC instruction to instruct the terminal device to significantly reduce the transmission power. Therefore, it can avoid the situation where the block error rate of the uplink increases and causes system freezes after the transmit power of the terminal equipment is significantly reduced, ensuring that the block error rate of the uplink meets the communication needs, ensuring smooth system operation and communication quality, and improving user experience.

由于主集天线和其他分集天线处于同一终端设备,分集天线的RSRP也能够反映出终端设备和基站之间的信号损失情况,因此采用分集天线的RSRP确定目标路径损耗也能够准确表达终端设备和基站之间的信号损失情况,从而得到目标发射功率,具体可以参见图8所示。图8为本申请实施例提供的一例根据分集天线接收到的信号的RSRP确定目标发射功率的具体过程,包括:Since the main antenna and other diversity antennas are in the same terminal equipment, the RSRP of the diversity antenna can also reflect the signal loss between the terminal equipment and the base station. Therefore, using the RSRP of the diversity antenna to determine the target path loss can also accurately express the terminal equipment and base station. The signal loss situation between them is used to obtain the target transmission power, as shown in Figure 8 for details. Figure 8 is an example of a specific process for determining the target transmit power based on the RSRP of the signal received by the diversity antenna provided by the embodiment of the present application, including:

S801、判断主集天线是处于通信异常的状态。若是,则执行S802。S801. Determine whether the main antenna is in a communication abnormal state. If yes, execute S802.

具体的S801的实现方式可以参见前述关于S701的描述,此处不再赘述。For the specific implementation of S801, please refer to the aforementioned description of S701, which will not be described again here.

S802、获取至少一个分集天线接收到的信号的RSRP。S802. Obtain the RSRP of the signal received by at least one diversity antenna.

S803、根据至少一个分集天线接收到的信号的RSRP,确定所述目标路径损耗。S803. Determine the target path loss based on the RSRP of the signal received by at least one diversity antenna.

具体的,当主集天线掉底时,终端设备可以根据分集天线接收到的信号的RSRP来计算目标路径损耗。终端设备可以从多个分集天线接收到的信号的RSRP中选择任意一个正常值作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗;还可以计算多个分集天线接收到的信号的RSRP的平均值,如果该平均值为正常值,则可以将该平均值作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗;终端设备还可以从多个分集天线接收到的信号的RSRP中选择最大的RSRP,如果最大的RSRP为正常值,则将最大的RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗。Specifically, when the main antenna is bottomed out, the terminal device can calculate the target path loss based on the RSRP of the signal received by the diversity antenna. The terminal equipment can select any normal value as P r,crs from the RSRP of the signals received by multiple diversity antennas, and bring it into the formula PL=P t,crs -P r,crs to obtain the target path loss; it can also calculate multiple The average value of RSRP of the signal received by the diversity antenna. If the average value is a normal value, the average value can be used as P r,crs and put into the formula PL=P t,crs -P r,crs to obtain the target path loss. ;The terminal device can also select the largest RSRP from the RSRP of signals received by multiple diversity antennas. If the largest RSRP is a normal value, then use the largest RSRP as P r,crs and enter it into the formula PL=P t,crs -P r,crs gets the target path loss.

上述分集天线接收到的信号的RSRP可以是当前时刻获取的数值。The RSRP of the signal received by the diversity antenna may be a value obtained at the current moment.

在一些实施例中,分集天线的数量可以是一个或多个。分集天线接收到的信号的RSRP,称为分集RSRP。这些分集RSRP可能为正常值,也可能为异常值,还有可能部分为正常值,另外一部分为异常值。In some embodiments, the number of diversity antennas may be one or more. The RSRP of the signal received by the diversity antenna is called diversity RSRP. These diversity RSRPs may be normal values or abnormal values, and some may be normal values and the other part may be abnormal values.

可选地,当分集天线的数量为多个时,分集RSRP也为多个。终端设备可以将这些分集RSRP进行筛选,选出正常值形成一个待选集合。具体的,终端设备可以获取至少一个分集天线中的任意一个的分集RSRP,如果该分集RSRP为正常值,则可以将该分集RSRP添加至待选集合;如果第一分集RSRP不是正常值,而是为异常值,则可以丢弃,无需加入待选集合。通过对分集天线的RSRP逐一执行上述筛选操作,得到最终的待选集合。然后,终端设备可以从待选集合中选择一个来计算目标路径损耗。可选地,终端设备可以从待选集合中任选一个作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗;也可以计算待选集合中的多个分集RSRP的平均值,并且将该平均值作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗。Optionally, when the number of diversity antennas is multiple, the number of diversity RSRPs is also multiple. The terminal device can filter these diversity RSRPs and select normal values to form a candidate set. Specifically, the terminal device can obtain the diversity RSRP of any one of at least one diversity antenna. If the diversity RSRP is a normal value, the diversity RSRP can be added to the candidate set; if the first diversity RSRP is not a normal value, but If it is an outlier, it can be discarded without adding it to the candidate set. By performing the above filtering operations one by one on the RSRPs of the diversity antennas, the final candidate set is obtained. Then, the terminal device can select one from the candidate set to calculate the target path loss. Alternatively, the terminal device can select any one from the candidate set as P r,crs and enter the formula PL=P t,crs -P r,crs to obtain the target path loss; it can also calculate multiple parameters in the candidate set. The average value of the diversity RSRP is taken as P r,crs and put into the formula PL=P t,crs -P r,crs to obtain the target path loss.

可选地,如果终端设备从多个分集天线的RSRP中选择的最大的RSRP不是正常值,说明所有天线均掉底,则无需计算目标路径损耗。此时,终端设备可以直接按照允许的最大发射功率满额发射,即采用终端设备当前的工作带宽所默认功率等级对应的最大发射功率来发射信号。通常,根据通信协议的规定,终端设备在不同的工作带宽均会对应一个默认功率等级,每个默认功率等级对应一个最大发射功率。终端设备在一个工作带宽下工作时,发射功率不能超过该工作带宽所默认功率等级对应的最大发射功率。终端设备采用终端设备当前的工作带宽所默认功率等级对应的最大发射功率来发射,即直接按照允许的最大发射功率满额发射,以此来确保即使获取不到有效的RSRP也能够尽可能保证通信质量。Optionally, if the maximum RSRP selected by the terminal device from the RSRPs of multiple diversity antennas is not a normal value, it means that all antennas are bottomed out, and there is no need to calculate the target path loss. At this time, the terminal device can directly transmit according to the maximum allowed maximum transmit power, that is, use the maximum transmit power corresponding to the default power level of the terminal device's current working bandwidth to transmit signals. Usually, according to the provisions of the communication protocol, the terminal equipment corresponds to a default power level in different working bandwidths, and each default power level corresponds to a maximum transmit power. When a terminal device operates under a working bandwidth, the transmit power cannot exceed the maximum transmit power corresponding to the default power level of the working bandwidth. The terminal device uses the maximum transmit power corresponding to the default power level of the current working bandwidth of the terminal device to transmit, that is, directly transmits according to the maximum allowable transmit power to ensure that the communication quality can be guaranteed as much as possible even if a valid RSRP cannot be obtained. .

当分集天线的数量为1时,则直接判断该分集天线的RSRP是否为正常值。如果是正常值,则可以根据这个分集天线的RSRP计算目标路径损耗;如果不是正常值,则说明该分集天线也掉底,则无需计算目标路径损耗,终端设备可以直接按照允许的最大发射功率满额发射,即采用终端设备当前的工作带宽所默认功率等级对应的最大发射功率来发射(也即当前的工作带宽对应的最大发射功率),以此来确保即使获取不到有效的RSRP也能够尽可能保证通信质量。需要说明的是,当预设异常值为-156dBm时,正常值可以为不等于-156dBm的其他数值,例如-110dBm、-120dBm等数值。When the number of diversity antennas is 1, it is directly determined whether the RSRP of the diversity antenna is a normal value. If it is a normal value, the target path loss can be calculated based on the RSRP of the diversity antenna; if it is not a normal value, it means that the diversity antenna has also dropped to the bottom, and there is no need to calculate the target path loss. The terminal device can directly use the maximum allowable transmit power at full capacity. Transmit, that is, use the maximum transmit power corresponding to the default power level of the current working bandwidth of the terminal device to transmit (that is, the maximum transmit power corresponding to the current working bandwidth) to ensure that even if a valid RSRP cannot be obtained, it can still be transmitted as much as possible. Ensure communication quality. It should be noted that when the preset abnormal value is -156dBm, the normal value can be other values not equal to -156dBm, such as -110dBm, -120dBm and other values.

上述实施例中,当主集天线出现掉底的现象时,终端设备不会再直接根据主集天线掉底时主集天线的RSRP来计算目标路径损耗,而是根据分集天线的RSRP来对目标路径损耗进行估算。由于主集天线和其他分集天线处于同一终端设备,分集天线的RSRP也能够反映出终端设备和基站之间的信号损失情况,因此采用分集天线的RSRP确定目标路径损耗也能够准确表达终端设备和基站之间的信号损失情况。根据分集天线的RSRP计算的目标路径损耗不会发生突然变大的情况,就不会出现发射功率突然变大导致TPC指令指示终端设备的发射功率大幅下调的情况。因此能够避免终端设备的发射功率大幅下调后,上行链路的误块率增加导致系统卡顿的情况,确保了上行链路的误块率满足通信需求,确保了系统运行流畅和通信质量,提高了用户体验。In the above embodiment, when the main antenna drops, the terminal device will no longer directly calculate the target path loss based on the RSRP of the main antenna when the main antenna drops. Instead, it will calculate the target path loss based on the RSRP of the diversity antenna. Losses are estimated. Since the main antenna and other diversity antennas are in the same terminal equipment, the RSRP of the diversity antenna can also reflect the signal loss between the terminal equipment and the base station. Therefore, using the RSRP of the diversity antenna to determine the target path loss can also accurately express the terminal equipment and base station. signal loss. The target path loss calculated based on the RSRP of the diversity antenna will not suddenly increase, and the transmission power will not suddenly increase causing the TPC instruction to instruct the terminal device to significantly reduce the transmission power. Therefore, it can avoid the situation where the block error rate of the uplink increases and causes system freezes after the transmit power of the terminal equipment is significantly reduced, ensuring that the block error rate of the uplink meets the communication needs, ensuring smooth system operation and communication quality, and improving user experience.

如果上述主集天线处于通信正常的状态,即没有发生掉底的情况,则可以将该主集天线的RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗。主集天线处于通信正常的状态,可以是终端设备接收到的CRS的信号的信噪比或信噪干比大于或等于-20dB,或者主集天线的RSRP为大于-156dBm的数值时的状态,例如为-115dBm。If the above-mentioned main set antenna is in a normal communication state, that is, no bottoming occurs, the RSRP of the main set antenna can be used as P r,crs and put into the formula PL=P t,crs -P r,crs to obtain the target path loss. The main antenna is in a normal communication state, which can be the state when the signal-to-noise ratio or signal-to-noise-to-interference ratio of the CRS signal received by the terminal device is greater than or equal to -20dB, or the RSRP of the main antenna is greater than -156dBm. For example -115dBm.

S804、根据所述目标路径损耗,确定所述终端设备的目标发射功率。S804. Determine the target transmission power of the terminal device according to the target path loss.

终端设备可以将目标路径损耗带入上述公式(1)中计算出终端设备的目标发射功率。具体过程可以参见前述对公式(1)的描述,此处不再赘述。The terminal device can put the target path loss into the above formula (1) to calculate the target transmit power of the terminal device. For the specific process, please refer to the aforementioned description of formula (1) and will not be repeated here.

上述图8实施例所描述的技术方案是终端设备根据分集天线接收到的信号的RSRP确定目标发射功率的具体过程。终端设备可以单独采用上述图8实施例实现确定目标发射功率,即直接根据分集天线的RSRP来确定目标路径损耗,而无需在历史RSRP不符合要求的情况下再使用分集天线的RSRP来确定目标发射功率。在另一些实施例中,终端设备还可以将图7和图8的实施例中的S802和S803结合起来,即在历史RSRP不符合要求的情况下,例如历史RSRP的记录时间距离当前时刻的间隔超过预设时段阈值时,再使用分集天线的RSRP来确定目标发射功率。The technical solution described in the above embodiment of Figure 8 is a specific process in which the terminal device determines the target transmit power based on the RSRP of the signal received by the diversity antenna. The terminal equipment can use the above-mentioned embodiment of Figure 8 alone to determine the target transmission power, that is, directly determine the target path loss based on the RSRP of the diversity antenna, without the need to use the RSRP of the diversity antenna to determine the target transmission when the historical RSRP does not meet the requirements. power. In other embodiments, the terminal device can also combine S802 and S803 in the embodiments of Figure 7 and Figure 8, that is, when the historical RSRP does not meet the requirements, for example, the interval between the recording time of the historical RSRP and the current moment When the preset period threshold is exceeded, the RSRP of the diversity antenna is used to determine the target transmit power.

如果单独使用主集天线的历史RSRP来计算目标发射功率,当主集天线掉底的时间长,则有可能获取不到历史RSRP,或者是获取到的历史RSRP不能表征当前时刻实际的信号损失情况,导致目标路径损耗计算不准确,进而影响目标发射功率的合理性。基于此,终端设备可以首先判断历史RSRP的记录时间距离当前时刻的间隔是否超过预设时段阈值。如果历史RSRP的记录时间距离当前时刻的间隔过不超过预设时段阈值时,则可以将历史RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗,并采用公式(1)计算目标发射功率。如果历史RSRP的记录时间距离当前时刻的间隔超过了预设时段阈值,则继续将最大的分集RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗,并采用公式(1)计算目标发射功率。采用将主集天线的历史RSRP和最大的分集RSRP结合来计算目标路径损耗的方式,避免了单独使用历史RSRP的方式导致的目标路径损耗计算不准确的情况,能够提高目标路径损耗的准确性。If the historical RSRP of the main set antenna is used alone to calculate the target transmit power, when the main set antenna bottoms out for a long time, the historical RSRP may not be obtained, or the historical RSRP obtained cannot represent the actual signal loss at the current moment. This results in inaccurate target path loss calculation, which in turn affects the rationality of the target transmission power. Based on this, the terminal device may first determine whether the interval between the recording time of the historical RSRP and the current time exceeds the preset period threshold. If the interval between the recording time of the historical RSRP and the current moment does not exceed the preset period threshold, the historical RSRP can be used as P r,crs and put into the formula PL=P t,crs -P r,crs to obtain the target path loss, And use formula (1) to calculate the target transmission power. If the interval between the recording time of historical RSRP and the current moment exceeds the preset period threshold, continue to use the maximum diversity RSRP as P r,crs and enter it into the formula PL=P t,crs -P r,crs to obtain the target path loss, And use formula (1) to calculate the target transmission power. The method of calculating the target path loss by combining the historical RSRP of the main antenna and the maximum diversity RSRP avoids the inaccurate calculation of the target path loss caused by using the historical RSRP alone, and can improve the accuracy of the target path loss.

在一些实施例中,终端设备还可以先获取至少一个分集天线接收到的信号的RSRP中的最大的分集RSRP。如果最大的分集RSRP不是正常值,则可以获取历史RSRP;如果历史RSRP的记录时间距离当前时刻的间隔小于或等于预设时段阈值,则可以根据历史RSRP确定目标路径损耗,并采用公式(1)计算目标发射功率。即本申请实施例对先判断历史RSRP的记录时间距离当前时刻的间隔是否大于预设时段阈值,还是先判断最大的分集RSRP是否为正常值的前后顺序不做限定。In some embodiments, the terminal device may also first obtain the largest diversity RSRP among the RSRPs of signals received by at least one diversity antenna. If the maximum diversity RSRP is not a normal value, the historical RSRP can be obtained; if the interval between the recording time of the historical RSRP and the current moment is less than or equal to the preset period threshold, the target path loss can be determined based on the historical RSRP, and formula (1) Calculate target transmit power. That is, the embodiment of the present application does not limit the order of whether to first determine whether the interval between the recording time of the historical RSRP and the current time is greater than the preset period threshold, or whether to first determine whether the maximum diversity RSRP is a normal value.

为了更加完整的描述本申请的技术方案,下面以一个具体的实施例对如何根据历史RSRP或分集RSRP确定目标发射功率的流程进行详细的说明。如图9所示,包括:In order to describe the technical solution of the present application more completely, the following uses a specific embodiment to describe in detail the process of how to determine the target transmit power based on historical RSRP or diversity RSRP. As shown in Figure 9, it includes:

S901、识别主集天线接收到的信号的SNR或RSRP,判断主集天线是否存在掉底的现象。若否,则执行S902A;若是,则执行S902B。S901. Identify the SNR or RSRP of the signal received by the main antenna, and determine whether the main antenna is bottomed out. If not, execute S902A; if yes, execute S902B.

该步骤S901具体的实现方式可以参见前述S701的详细描述,此处暂不赘述。For the specific implementation of step S901, please refer to the detailed description of S701, which will not be described again here.

S902A、根据主集天线接收到的信号的RSRP确定目标路径损耗。之后,执行S905。S902A: Determine the target path loss according to the RSRP of the signal received by the main antenna. After that, S905 is executed.

具体的,终端设备可以将主集天线接收到的信号的RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs中来计算目标路径损耗。Specifically, the terminal device can take the RSRP of the signal received by the main antenna as P r,crs and put it into the formula PL=P t,crs -P r,crs to calculate the target path loss.

S902B、判断主集天线的历史RSRP的记录时间距离当前时刻是否小于T1。其中,历史RSRP为终端设备在当前时刻之前记录的主集天线的RSRP。若是,则执行S903A;若否,则执行S903B。S902B: Determine whether the recording time of the historical RSRP of the main antenna is less than T1 from the current time. The historical RSRP is the RSRP of the main set antenna recorded by the terminal device before the current time. If yes, execute S903A; if not, execute S903B.

需要说明的是,历史RSRP为正常值。It should be noted that the historical RSRP is a normal value.

S903A、采用历史RSRP计算目标路径损耗。之后,执行S905。S903A. Use historical RSRP to calculate the target path loss. After that, S905 is executed.

S903B、判断分集RSRP中最大的一个是否为正常值。若否,则执行S904A;若是,则执行S904B。S903B. Determine whether the largest one in the diversity RSRP is a normal value. If not, execute S904A; if yes, execute S904B.

S904A、将当前工作带宽所默认功率等级对应的最大发射功率确定为上行的发射功率。S904A: Determine the maximum transmit power corresponding to the default power level of the current working bandwidth as the uplink transmit power.

S904B、根据分集RSRP中最大的一个计算目标路径损耗。之后,执行S905。S904B: Calculate the target path loss according to the largest one among the diversity RSRPs. After that, S905 is executed.

终端设备可以从至少一个分集天线接收到的信号的RSRP中选择最大的一个作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗。The terminal equipment can select the largest one as P r,crs from the RSRP of the signal received by at least one diversity antenna, and put it into the formula PL=P t,crs -P r,crs to obtain the target path loss.

S905、根据所述目标路径损耗,采用上述公式(1)确定上行的发射功率(也即目标发射功率)。S905. According to the target path loss, use the above formula (1) to determine the uplink transmission power (that is, the target transmission power).

在一些实施例中,终端设备还可以不关注历史RSRP,而是单独根据分集天线接收到的信号的RSRP来确定上行的终端设备的上行的发射功率。为了更加完整的描述本申请的技术方案,下面以一个具体的实施例对如何根据分集RSRP确定目标发射功率的流程进行详细的说明。如图10所示,包括:In some embodiments, the terminal device may not pay attention to the historical RSRP, but determine the uplink transmit power of the uplink terminal device solely based on the RSRP of the signal received by the diversity antenna. In order to describe the technical solution of the present application more completely, the process of how to determine the target transmit power according to the diversity RSRP is described in detail below using a specific embodiment. As shown in Figure 10, it includes:

S1001、识别主集天线接收到的信号的SNR或RSRP,判断主集天线是否存在掉底的现象。若否,则执行S1002A;若是,则执行S1002B。S1001. Identify the SNR or RSRP of the signal received by the main antenna, and determine whether the main antenna is bottomed out. If not, execute S1002A; if yes, execute S1002B.

该S1001的详细描述可以参见前述步骤S701的说明,此处不再赘述。For a detailed description of S1001, please refer to the description of the aforementioned step S701, and will not be described again here.

S1002A、根据主集天线接收到的信号的RSRP确定目标路径损耗。之后,执行S1004。S1002A. Determine the target path loss based on the RSRP of the signal received by the main antenna. After that, S1004 is executed.

具体的,终端设备可以将主集天线接收到的信号的RSRP作为Pr,crs,带入公式PL=Pt,crs-Pr,crs中来计算目标路径损耗。Specifically, the terminal device can take the RSRP of the signal received by the main antenna as P r,crs and put it into the formula PL=P t,crs -P r,crs to calculate the target path loss.

S1002B、判断分集天线的分集RSRP中的最大值是否为正常值。若是,则执行S1003A;若否,则执行S1003B。S1002B. Determine whether the maximum value in the diversity RSRP of the diversity antenna is a normal value. If yes, execute S1003A; if not, execute S1003B.

上述分集RSRP为分集天线接收到的信号的RSRP,每个分集天线都会对应一个分集RSRP。The above diversity RSRP is the RSRP of the signal received by the diversity antenna, and each diversity antenna corresponds to a diversity RSRP.

S1003A、根据分集RSRP中的最大值确定目标路径损耗。之后,执行S1004。S1003A. Determine the target path loss according to the maximum value in the diversity RSRP. After that, S1004 is executed.

终端设备可以从至少一个分集天线接收到的信号的RSRP中选择最大的一个作为Pr,crs,带入公式PL=Pt,crs-Pr,crs得到目标路径损耗。The terminal equipment can select the largest one as P r,crs from the RSRP of the signal received by at least one diversity antenna, and put it into the formula PL=P t,crs -P r,crs to obtain the target path loss.

S1003B、将当前工作带宽所默认功率等级对应的最大发射功率确定为上行的发射功率。S1003B. Determine the maximum transmit power corresponding to the default power level of the current working bandwidth as the uplink transmit power.

S1004、根据所述目标路径损耗,采用公式(1)确定上行的发射功率。S1004. According to the target path loss, use formula (1) to determine the uplink transmission power.

上述图9和图10的实施例中,各步骤的实现原理和技术效果可以参见前述实施例的描述,此处不再赘述。In the above-mentioned embodiments of FIG. 9 and FIG. 10 , the implementation principles and technical effects of each step can be referred to the description of the foregoing embodiments, and will not be described again here.

可选地,在上述图10实施例的基础上,当分集RSRP中的最大值不是正常值时,终端设备也可以根据主集天线的历史RSRP来确定目标路径损耗。Optionally, based on the above embodiment of Figure 10, when the maximum value in the diversity RSRP is not a normal value, the terminal device can also determine the target path loss based on the historical RSRP of the main antenna.

如果终端设备上的每个天线都处于通信异常的状态,则终端设备可以将终端设备的当前工作带宽所默认功率等级对应的最大发射功率作为目标发射功率进行发射。当终端设备的每个天线都处于通信异常的状态时,每个天线上接收到的CRS的信噪比都小于-20dBm,或者每个天线对应的RSRP都为异常值,例如为-156dBm,即每个天线都处于掉底的状态。这时,终端设备则直接按照终端设备的当前工作带宽所默认功率等级对应的最大发射功率进行满额发射,无需计算目标路径损耗,减少了运算量的同时,还可以尽可能地确保通信质量。If each antenna on the terminal device is in an abnormal communication state, the terminal device can transmit the maximum transmit power corresponding to the default power level of the current working bandwidth of the terminal device as the target transmit power. When each antenna of the terminal device is in an abnormal communication state, the signal-to-noise ratio of the CRS received on each antenna is less than -20dBm, or the RSRP corresponding to each antenna is an abnormal value, such as -156dBm, that is Each antenna is in a bottomed state. At this time, the terminal device directly transmits at full capacity according to the maximum transmit power corresponding to the default power level of the terminal device's current working bandwidth. There is no need to calculate the target path loss, which reduces the amount of calculation and ensures communication quality as much as possible.

此处确定天线是否处于通信异常的状态的方式可以参见前述实施例中的描述,暂不赘述。The method for determining whether the antenna is in a communication abnormal state may refer to the description in the foregoing embodiments, and will not be described again.

上文详细介绍了本申请提供的方法的示例。可以理解的是,相应的装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Examples of the methods provided in this application are detailed above. It can be understood that, in order to implement the above functions, the corresponding device includes corresponding hardware structures and/or software modules for performing each function. Persons skilled in the art should easily realize that, with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.

本申请可以根据上述方法示例对发射功率确定装置进行功能模块的划分,例如,可以将各个功能划分为各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。This application can divide the transmit power determining device into functional modules according to the above method examples. For example, each function can be divided into functional modules, or two or more functions can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in this application is schematic and is only a logical function division. In actual implementation, there may be other division methods.

图11示出了本申请提供的一种发射功率确定装置的结构示意图。装置1100包括:Figure 11 shows a schematic structural diagram of a transmission power determination device provided by this application. Device 1100 includes:

第一确定模块1101,用于确定所述主集天线处于通信异常的状态时,根据目标参考信号接收功率RSRP确定目标路径损耗;所述通信异常的状态包括如下条件中的至少一个:所述主集天线接收到的信号的信噪比小于预设信噪比阈值、所述主集天线接收到的信号的信噪干比小于预设信噪干比阈值和所述主集天线接收到的信号的RSRP等于预设RSRP异常值;所述目标RSRP大于所述预设RSRP异常值;根据所述目标路径损耗,确定所述终端设备的目标发射功率。The first determination module 1101 is used to determine the target path loss according to the target reference signal received power RSRP when it is determined that the main antenna is in a communication abnormal state; the communication abnormal state includes at least one of the following conditions: the main antenna The signal-to-noise ratio of the signal received by the collector antenna is less than the preset signal-to-noise ratio threshold, the signal-to-noise-to-interference ratio of the signal received by the main collector antenna is less than the preset signal-to-noise-to-interference ratio threshold, and the signal received by the main collector antenna is The RSRP is equal to the preset RSRP abnormal value; the target RSRP is greater than the preset RSRP abnormal value; and the target transmission power of the terminal device is determined according to the target path loss.

第二确定模块1102,用于根据所述目标路径损耗,确定所述终端设备的目标发射功率。The second determination module 1102 is configured to determine the target transmission power of the terminal device according to the target path loss.

在一些实施例中,所述目标RSRP包括所述主集天线的历史RSRP,所述历史RSRP为所述主集天线在当前时刻之前接收到的信号的RSRP,第二确定模块1102,具体用于根据所述历史RSRP,确定所述目标路径损耗。In some embodiments, the target RSRP includes the historical RSRP of the main set antenna, and the historical RSRP is the RSRP of the signal received by the main set antenna before the current moment. The second determination module 1102 is specifically used to Based on the historical RSRP, the target path loss is determined.

在一些实施例中,第二确定模块1102,具体用于当所述历史RSRP的记录时间距离当前时刻的间隔小于或等于预设时段阈值时,则根据所述历史RSRP,确定所述目标路径损耗。In some embodiments, the second determination module 1102 is specifically configured to determine the target path loss based on the historical RSRP when the interval between the recording time of the historical RSRP and the current moment is less than or equal to a preset period threshold. .

在一些实施例中,第二确定模块1102,还用于当所述历史RSRP的记录时间距离当前时刻的间隔大于所述预设时段阈值时,则根据所述至少一个分集天线的RSRP,确定所述目标路径损耗。In some embodiments, the second determination module 1102 is further configured to determine, when the interval between the recording time of the historical RSRP and the current moment is greater than the preset period threshold, based on the RSRP of the at least one diversity antenna. Describe the target path loss.

在一些实施例中,所述预设时段阈值为640毫秒或1秒。In some embodiments, the preset period threshold is 640 milliseconds or 1 second.

在一些实施例中,所述目标RSRP包括所述至少一个分集天线接收到的信号的RSRP,第二确定模块1102,具体用于根据所述至少一个分集天线接收到的信号的RSRP,确定所述目标路径损耗。In some embodiments, the target RSRP includes the RSRP of the signal received by the at least one diversity antenna, and the second determination module 1102 is specifically configured to determine the RSRP of the signal received by the at least one diversity antenna. Target path loss.

在一些实施例中,第二确定模块1102,具体用于获取第一分集RSRP,所述第一分集RSRP为所述至少一个分集天线接收到的信号的RSRP中最大的一个,或所述第一分集RSRP为所述至少一个分集天线接收到的信号的RSRP的平均值;当所述第一分集RSRP大于所述预设RSRP异常值时,则根据所述第一分集RSRP确定所述目标路径损耗。In some embodiments, the second determination module 1102 is specifically configured to obtain a first diversity RSRP, which is the largest one among the RSRPs of signals received by the at least one diversity antenna, or the first diversity RSRP. Diversity RSRP is the average RSRP of the signal received by the at least one diversity antenna; when the first diversity RSRP is greater than the preset RSRP abnormal value, the target path loss is determined based on the first diversity RSRP. .

在一些实施例中,所述预设信噪比阈值为-20dBm,所述预设信噪干比阈值为-20dBm,所述预设RSRP异常值为-156dBm。In some embodiments, the preset signal-to-noise ratio threshold is -20dBm, the preset signal-to-noise-to-interference ratio threshold is -20dBm, and the preset RSRP abnormal value is -156dBm.

在一些实施例中,第二确定模块1102,还用于确定所述主集天线和所述至少一个分集天线均处于通信异常的状态时,确定所述目标发射功率为终端设备的当前工作带宽所对应的最大发射功率。In some embodiments, the second determination module 1102 is further configured to determine that the target transmit power is the current operating bandwidth of the terminal device when it is determined that both the main antenna and the at least one diversity antenna are in a communication abnormal state. The corresponding maximum transmit power.

装置1100执行发射功率确定方法的具体方式以及产生的有益效果可以参见方法实施例中的相关描述,此处不再赘述。The specific manner in which the device 1100 performs the transmission power determination method and the beneficial effects produced can be found in the relevant descriptions in the method embodiments, and will not be described again here.

本申请实施例还提供了一种电子设备,包括上述处理器。本实施例提供的电子设备可以是图1所示的终端设备100,用于执行上述发射功率确定方法。在采用集成的单元的情况下,终端设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对终端设备的动作进行控制管理,例如,可以用于支持终端设备执行显示单元、检测单元和处理单元执行的步骤。存储模块可以用于支持终端设备执行存储程序代码和数据等。通信模块,可以用于支持终端设备与其它设备的通信。An embodiment of the present application also provides an electronic device, including the above processor. The electronic device provided in this embodiment may be the terminal device 100 shown in Figure 1, and is used to perform the above transmission power determination method. In the case of an integrated unit, the terminal device may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the terminal device. For example, it may be used to support the terminal device in executing steps performed by the display unit, the detection unit and the processing unit. The storage module can be used to support terminal devices to execute stored program codes and data. The communication module can be used to support communication between the terminal device and other devices.

其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其它终端设备交互的设备。The processing module may be a processor or a controller. It may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with this disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip and other devices that interact with other terminal devices.

在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的终端设备可以为具有图1所示结构的设备。In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in this embodiment may be a device with the structure shown in Figure 1 .

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储了计算机程序,当所述计算机程序被处理器执行时,使得处理器执行上述任一实施例所述的发射功率确定方法。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, it causes the processor to execute any of the above embodiments. method for determining transmit power.

本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的发射功率确定方法。An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the transmission power determination method in the above embodiment.

其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic devices, computer-readable storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the above provided The beneficial effects of the corresponding methods will not be described again here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,更换的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or can be integrated into another device, or some features can be ignored, or not implemented. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, and the replacement unit may or may not be physically separated, as The component displayed by the unit can be one physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Integrated units may be stored in a readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium , including several instructions to cause a device (which can be a microcontroller, a chip, etc.) or a processor to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above contents are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, and should are covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (11)

1. A method of transmit power determination, applied to a terminal device, the terminal device comprising a main set of antennas and at least one diversity antenna, the method comprising:
when the main set antenna is in a communication abnormal state, determining target path loss according to target Reference Signal Received Power (RSRP), wherein the target RSRP comprises historical RSRP of the main set antenna, and the historical RSRP is the RSRP of signals received by the main set antenna before the current moment;
the state of communication abnormality includes at least one of the following conditions: the signal to noise ratio of the signals received by the main set antenna is smaller than a preset signal to noise ratio threshold, the signal to noise plus interference ratio of the signals received by the main set antenna is smaller than a preset signal to noise plus interference ratio threshold, and the RSRP of the signals received by the main set antenna is equal to a preset RSRP abnormal value;
The target RSRP is larger than the preset RSRP abnormal value;
and determining the target transmitting power of the terminal equipment according to the target path loss.
2. The method of claim 1, wherein the determining the target path loss from the target RSRP comprises:
and determining the target path loss according to the historical RSRP.
3. The method of claim 2, wherein said determining said target path loss from said historical RSRP comprises:
and when the interval between the recording time of the historical RSRP and the current moment is smaller than or equal to a preset time period threshold, determining the target path loss according to the historical RSRP.
4. The method of claim 3, wherein said determining said target path loss from said historical RSRP further comprises:
and when the interval between the recording time of the historical RSRP and the current moment is larger than the preset time period threshold, determining the target path loss according to the RSRP of the at least one diversity antenna.
5. The method of claim 3 or 4, wherein the preset period of time threshold is 640 milliseconds or 1 second.
6. The method according to claim 1 or 4, wherein the target RSRP comprises an RSRP of signals received by the at least one diversity antenna, and wherein the determining the target path loss from the target RSRP comprises:
The target path loss is determined based on the RSRP of the signal received by the at least one diversity antenna.
7. The method of claim 6, wherein said determining the target path loss based on RSRP of signals received by the at least one diversity antenna comprises:
acquiring a first diversity RSRP, wherein the first diversity RSRP is the largest one of the RSRP of signals received by the at least one diversity antenna, or the first diversity RSRP is the average value of the RSRP of the signals received by the at least one diversity antenna;
and when the first diversity RSRP is larger than the preset RSRP abnormal value, determining the target path loss according to the first diversity RSRP.
8. The method according to any of claims 1 to 4, 7, wherein the preset signal to noise ratio threshold is-20 dBm, and the preset RSRP anomaly value is-156 dBm.
9. A chip, wherein the chip comprises a processor; the processor is configured to read and execute a computer program stored in a memory to perform the method of any one of claims 1 to 8.
10. A terminal device, comprising: a processor, a memory, and an interface;
The processor, the memory and the interface cooperating with each other such that the terminal device performs the method of any one of claims 1 to 8; or,
the terminal device comprising the chip of claim 9.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 8.
CN202211135105.9A 2022-09-19 2022-09-19 Transmission power determination method, chip, terminal equipment and readable storage medium Active CN115665841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211135105.9A CN115665841B (en) 2022-09-19 2022-09-19 Transmission power determination method, chip, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211135105.9A CN115665841B (en) 2022-09-19 2022-09-19 Transmission power determination method, chip, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115665841A CN115665841A (en) 2023-01-31
CN115665841B true CN115665841B (en) 2023-10-20

Family

ID=84983566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211135105.9A Active CN115665841B (en) 2022-09-19 2022-09-19 Transmission power determination method, chip, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115665841B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103650571A (en) * 2011-06-24 2014-03-19 阿尔卡特朗讯 Performing measurements in a digital cellular wireless telecommunication network
CN103748938A (en) * 2011-08-12 2014-04-23 夏普株式会社 Signaling power allocation parameters for uplink coordinated multipoint (CoMP)
CN104053222A (en) * 2013-03-14 2014-09-17 电信科学技术研究院 Base station transmitting power adjusting method and apparatus
CN109982334A (en) * 2017-12-28 2019-07-05 中国移动通信集团四川有限公司 Optimization method, device, equipment and the medium of antenna-feed parameter
CN113115325A (en) * 2020-01-10 2021-07-13 中国移动通信集团设计院有限公司 Wireless network quality optimization method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103650571A (en) * 2011-06-24 2014-03-19 阿尔卡特朗讯 Performing measurements in a digital cellular wireless telecommunication network
CN103748938A (en) * 2011-08-12 2014-04-23 夏普株式会社 Signaling power allocation parameters for uplink coordinated multipoint (CoMP)
CN104053222A (en) * 2013-03-14 2014-09-17 电信科学技术研究院 Base station transmitting power adjusting method and apparatus
CN109982334A (en) * 2017-12-28 2019-07-05 中国移动通信集团四川有限公司 Optimization method, device, equipment and the medium of antenna-feed parameter
CN113115325A (en) * 2020-01-10 2021-07-13 中国移动通信集团设计院有限公司 Wireless network quality optimization method and device

Also Published As

Publication number Publication date
CN115665841A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
CN113475057B (en) Video frame rate control method and related device
US11430358B2 (en) Frequency adjustment method and apparatus applied to terminal, and electronic device
WO2021047435A1 (en) Electronic device and sensor control method
CN113556466B (en) Focusing method and electronic equipment
CN112017615A (en) Ambient light brightness calibration method for electronic equipment and electronic equipment
CN113810938B (en) Channel switching method, electronic device and storage medium
WO2021190314A1 (en) Sliding response control method and apparatus of touch screen, and electronic device
CN113115439A (en) Positioning method and related equipment
EP4195836B1 (en) Method and apparatus for determining minimum slot offset value
EP4412233A1 (en) Image processing method and electronic device
CN115665841B (en) Transmission power determination method, chip, terminal equipment and readable storage medium
WO2022247324A1 (en) Motor damping measurement methods and system
WO2022161036A1 (en) Method and apparatus for selecting antenna, electronic device, and readable storage medium
WO2024139380A1 (en) Transmission power determination method, chip, terminal device, and readable storage medium
CN116321265B (en) Network quality evaluation method, electronic device and storage medium
CN116744392B (en) Dual-card communication method and device and terminal equipment
CN116232959B (en) Network quality detection method and device
CN116017138B (en) Light measuring control display method, computer equipment and storage medium
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN115993592B (en) Bluetooth ranging method, electronic equipment and storage medium
WO2023020420A1 (en) Volume display method, electronic device, and storage medium
WO2024001735A1 (en) Network connection method, electronic device, and storage medium
CN118450241A (en) Image processing method and related device
WO2023179432A1 (en) Antenna switching method and terminal device
CN118057858A (en) Data processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China