WO2022028339A1 - Antenna selection method and device - Google Patents

Antenna selection method and device Download PDF

Info

Publication number
WO2022028339A1
WO2022028339A1 PCT/CN2021/109896 CN2021109896W WO2022028339A1 WO 2022028339 A1 WO2022028339 A1 WO 2022028339A1 CN 2021109896 W CN2021109896 W CN 2021109896W WO 2022028339 A1 WO2022028339 A1 WO 2022028339A1
Authority
WO
WIPO (PCT)
Prior art keywords
antenna
terminal
message
random access
downlink measurement
Prior art date
Application number
PCT/CN2021/109896
Other languages
French (fr)
Chinese (zh)
Inventor
肖爱民
郭翱
杨建华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022028339A1 publication Critical patent/WO2022028339A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0608Antenna selection according to transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0608Antenna selection according to transmission parameters
    • H04B7/061Antenna selection according to transmission parameters using feedback from receiving side
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0833Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using a random access procedure

Definitions

  • the present application relates to the field of communications, and in particular, to a method and device for antenna selection.
  • the antenna is often blocked, resulting in large signal attenuation and affecting service experience.
  • the terminal equipment is usually designed with a structure of multiple antennas, and this problem is avoided by the uplink antenna selection technology.
  • Multiple antennas can share an RF (Radio Frequency, radio frequency) link, so high performance can be obtained without increasing hardware complexity.
  • the terminal after the terminal establishes a connection with the base station, the terminal usually selects the optimal uplink antenna through periodic evaluation. In order to obtain the optimal uplink antenna accurately, the terminal needs to count downlink measurement indicators of a longer period.
  • the embodiments of the present application provide an antenna selection method and apparatus, which can enable a terminal to select an appropriate antenna for data transmission during random access, so as to increase the success rate of random access and reduce the delay of random access.
  • the present application provides a method for antenna selection, which is applied to a random access procedure of a terminal including at least two antennas, and the method includes:
  • the terminal selects the optimal antenna among the at least two antennas as the first antenna
  • the terminal sends a first message to the base station on the first antenna, where the first message is a random access preamble;
  • the terminal When the terminal successfully receives the second message sent by the base station and the number of times the terminal sends the first message on the first antenna reaches the first preset number of times, the terminal selects the optimal antenna from the at least two antennas according to the first condition As the second antenna, the second message is a random access response;
  • the terminal sends the first message on the second antenna.
  • the terminal selects the optimal antenna to send the first message when it sends the first message for the first time, which increases the probability that the first message is successfully sent.
  • the method further includes: when the terminal successfully receives the second message sent by the base station, in response to the second message, the terminal sends a third message on the second antenna.
  • the method further includes:
  • the terminal When the terminal receives the retransmission scheduling of the third message by the base station and the number of times the terminal sends the third message on the second antenna reaches the second preset number of times, the terminal selects the optimal antenna from the at least two antennas according to the first condition as a third antenna;
  • the terminal sends the third message on the third antenna.
  • the terminal fails to send the third message on the current antenna, and when the preset number of times is reached, it switches to other antennas to continue sending the third message according to certain conditions, which improves the probability of successful sending and enhances the user experience. experience.
  • the random access procedure is a contention random access procedure
  • the third message is a radio resource control RRC connection establishment request message.
  • the method further includes:
  • the terminal When the terminal successfully receives the fourth message sent by the base station, in response to the fourth message, the terminal sends a fifth message on the third antenna, where the fourth message is an RRC connection establishment message, and the fifth message is an RRC connection establishment complete message.
  • the method further includes:
  • the terminal When the terminal receives the retransmission scheduling of the fifth message by the base station and the number of times the terminal sends the fifth message on the third antenna reaches the third preset number of times, the terminal selects the optimal antenna from the at least two antennas according to the first condition as the fourth antenna;
  • the terminal transmits the fifth message on the fourth antenna.
  • the terminal fails to send the fifth message on the current antenna, and when the preset number of times is reached, it switches to other antennas to continue sending the fifth message according to certain conditions, which improves the probability of successful sending and enhances the user experience. experience.
  • the random access procedure is a non-contention random access procedure
  • the third message is a radio resource control RRC connection establishment complete message.
  • the terminal selects the optimal antenna among the at least two antennas as the first antenna, including:
  • the default antenna is the optimal antenna, and the default antenna is selected as the first antenna;
  • the downlink measurement indicator of the default antenna When the downlink measurement indicator of the default antenna is lower than the preset threshold, select the antenna with the best downlink measurement indicator among the other antennas except the default antenna as the candidate antenna. If the downlink measurement indicator of the candidate antenna is not higher than the downlink measurement indicator of the default antenna The measurement index plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna; if the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna , select the candidate antenna as the first antenna.
  • the terminal when the terminal sends the first message for the first time, it uses an initial antenna selection mechanism to select the optimal antenna to send the first message according to the instantaneous downlink measurement index, which increases the probability of successful sending and enhances the user experience. experience.
  • the terminal selects the optimal antenna from at least two antennas according to the first condition, including:
  • the terminal selects the next antenna as the optimal antenna, or,
  • the terminal selects the antenna with the highest priority outside the current antenna as the optimal antenna.
  • the terminal switches the uplink transmission antenna according to certain conditions, rather than blindly switching, which increases the probability of successful uplink message transmission.
  • a terminal comprising: one or more processors, one or more memories, the one or more memories stores one or more computer programs, the one or more computer programs include instructions, when The instructions, when executed by one or more processors, cause the terminal to execute the method described in the first aspect.
  • Another aspect of the present application provides an apparatus, which includes a processor, which is coupled to a memory and reads instructions in the memory to execute the method described in the first aspect.
  • Another aspect of the present application provides a computer program product containing instructions, when the computer program product is run on a first terminal, the first terminal is caused to execute the method described in the first aspect.
  • Another aspect of the present application provides a computer-readable storage medium, including instructions, which, when the instructions are executed on a first terminal, cause the first terminal to execute the method described in the first aspect.
  • an antenna selection device for random access including: an antenna selection unit for selecting an uplink transmission antenna when a terminal transmits Msg1 (random access preamble) for the first time in a random access process ;
  • the data sending unit is used for the terminal to send uplink data in the random access process, including Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment complete), Msg5 (RRC connection establishment complete);
  • Data reception The unit is used for the terminal to receive downlink data in the random access process, including RAR (random access response), Msg3 (RRC connection establishment request or RRC connection establishment complete) retransmission scheduling, Msg4 (RRC connection establishment), Msg5 ( The retransmission scheduling of the RRC connection establishment is completed; the data transmission judgment unit is used for the terminal to judge Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg5 (RRC connection establishment) during the random
  • the antenna switching unit is used for the terminal to detect Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg5 (RRC connection) during the random access process.
  • Msg1 random access preamble
  • Msg3 RRC connection establishment request or RRC connection establishment completed
  • Msg5 RRC connection
  • 1A is a structural diagram of a terminal device
  • 1B is an antenna system diagram of a terminal device
  • FIG. 2 is a schematic structural diagram of a mobile communication system provided by an embodiment of the present application.
  • Fig. 3 is the basic flow chart of the contention random access of terminal
  • FIG. 4 is a general flowchart of a method for antenna selection provided by an embodiment of the present application.
  • 5A is a flowchart of uplink transmit antenna selection in a contention random access process according to an embodiment of the present application
  • 5B is a flowchart of uplink transmit antenna selection in a non-contention random access process according to an embodiment of the present application
  • FIG. 6 is a flowchart of uplink transmit antenna selection in a contention random access process according to another embodiment of the present application.
  • FIG. 7 is a random access antenna selection device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • plural refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects are an "or" relationship.
  • the terminal 100 may include: a processor 110 , an external memory interface 120 , an internal memory 121 , and a universal serial bus (USB) interface 130 , charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 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 and so on.
  • a processor 110 an external memory interface 120 , an internal memory 121 , and a universal serial bus (USB) interface 130
  • charging management module 140 power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180 , button 190, motor 191, indicator 192, camera 193, display screen 194,
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope 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.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal 100 .
  • the terminal 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • 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 processor (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) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the terminal 100 .
  • the controller can generate operation control signals according to the instruction opcode and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the 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 circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the terminal 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • 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 (DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the terminal 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the terminal 100.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the terminal 100, and can also be used to transmit data between the terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminals, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the terminal 100 .
  • the terminal 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the terminal through the power management module 141 .
  • the power management module 141 is used for connecting 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 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
  • the antenna 1 may include multiple antennas, and the multiple antennas share the same radio frequency circuit, and the mobile communication module 150 may transmit electromagnetic waves through the multiple antennas, and may also receive electromagnetic waves through the multiple antennas.
  • antenna 1 may include 4 antennas, and the terminal can simultaneously receive signals sent by the base station on the 4 antennas. If the terminal supports simultaneous transmission by 2 antennas, the terminal can select 1 or 2 of the 4 antennas according to the scheduling of the base station. The antenna transmits uplink data. Generally, the terminal will deploy 4 antennas at the 4 corners of the terminal.
  • FIG. 1B shows an antenna system of a terminal 100.
  • the antenna system includes: a first antenna 11, a second antenna 12, a third antenna 13, a fourth antenna 14, an antenna switching circuit 15, a radio frequency RF front-end circuit 16, a transceiver controller 17 , switching control path 18 and baseband circuit 19 .
  • the radio frequency RF front end circuit 16 may include filter circuits and other components.
  • Antenna switching circuit 15 is shown interposed between radio frequency RF front-end circuit 16 and the antenna.
  • the radio frequency RF front-end circuit 16 may also include an antenna switching circuit 15 .
  • the antenna switching circuit 15 is used to selectively route the transmission signal to one or more of the first antenna 11 , the second antenna 12 , the third antenna 13 and the fourth antenna 14 through the control path 18 .
  • the control signal may be provided to the antenna switching circuit 15 by the baseband circuit 19 or other control circuit through the control path 18 .
  • the antenna switching circuit 15 is configured to route through the control path 18 to receive radio frequency signals from one or more of the first antenna 11 , the second antenna 12 , the third antenna 13 and the fourth antenna 14 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • 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.
  • the wireless communication module 160 can provide applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • 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 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for
  • the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 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 (CDMA), broadband 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 (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is 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.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be 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).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the terminal 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the terminal 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits 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 tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and so on.
  • Video codecs are used to compress or decompress digital video.
  • Terminal 100 may support one or more video codecs.
  • the terminal 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the terminal 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • 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 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 100 and the like.
  • 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), and the like.
  • the terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. 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 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the terminal 100 may be provided with at least one microphone 170C.
  • the terminal 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals.
  • the terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be provided on display screen 194.
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the terminal 100 determines the intensity of the pressure according to the change in capacitance.
  • the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the terminal 100 .
  • the angular velocity of terminal 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyroscope sensor 180B detects the angle at which the terminal 100 shakes, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shake of the terminal 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the terminal 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the terminal posture, and can be used in horizontal and vertical screen switching, pedometer and other applications.
  • the terminal 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the terminal 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the terminal 100 emits infrared light to the outside through light emitting diodes.
  • the terminal 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 100 . When insufficient reflected light is detected, the terminal 100 may determine that there is no object near the terminal 100 .
  • the terminal 100 can use the proximity light sensor 180G to detect that the user holds the terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the terminal 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 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal 100 when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature.
  • the terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the terminal 100 , which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the terminal 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the terminal 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. 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 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the terminal 100 interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the terminal 100 employs an eSIM, ie an embedded SIM card.
  • the eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100 .
  • the terminal 100 may also include a magnetometer (not shown in the figure), which may also be called an electronic compass and a compass, which may be used to detect the strength and direction of the magnetic field.
  • a magnetometer not shown in the figure
  • a compass which may be used to detect the strength and direction of the magnetic field.
  • the mobile communication system may be a third-generation mobile communication technology 3G (3rd generation) system, or a Long Term Evolution (LTE) system, or a fifth-generation mobile communication technology 5G new radio (NR) system , it can also be a machine to machine communication (Machine To Machine, M2M) system, or it can be a sixth-generation communication system that will evolve in the future.
  • the mobile communication system includes: a base station 220 , a terminal 240 and a core network device 260 .
  • the base station 220 can be used to convert the received radio frame and the IP packet to each other, and can also coordinate the attribute management of the air interface.
  • the base station 220 may be an evolution base station (eNB, evolution Node B) in LTE, or a base station with a centralized and distributed architecture adopted in the 5G system.
  • a base station may also be an access point (Access Point, AP), a transit node (Trans Point, TRP), a central unit (Central Unit, CU) or other network entities, and may include some or all of the functions of the above network entities .
  • base station 220 also includes relay stations, which are stations that receive transmissions of data and/or other information from upstream stations and send transmissions of data and/or other information to downstream stations.
  • a relay station may also be a terminal that provides relay transmission for other terminals.
  • a relay station may also be referred to as a repeater.
  • the mobile communication system 200 may be a heterogeneous system including different types of base stations (eg, macros, picos, femtos, repeaters, etc.). These different types of base stations may have different transmit power levels, different coverage areas, and different interference effects. For example, macro stations may have high transmit power levels (eg, 20 watts), while pico stations, femto stations, and repeaters may have lower transmit power levels (eg, 1 watt).
  • base stations eg, macros, picos, femtos, repeaters, etc.
  • These different types of base stations may have different transmit power levels, different coverage areas, and different interference effects.
  • macro stations may have high transmit power levels (eg, 20 watts)
  • pico stations, femto stations, and repeaters may have lower transmit power levels (eg, 1 watt).
  • the base station 220 and the terminal 240 establish a wireless connection through a wireless air interface.
  • the wireless air interface may be a wireless air interface based on the LTE standard, or the wireless air interface may be a wireless air interface based on a 5G standard, for example, the wireless air interface is NR, or the wireless air interface may also be a next-generation mobile communication network technology based on 5G Standard wireless air interface.
  • Terminal 240 may be a device that provides voice and/or data communications to a user.
  • the terminal may communicate with one or more core network devices 260 via a radio access network (Radio Access Network, RAN) provided by the base station 220 .
  • the terminal 240 may be a mobile terminal, such as a mobile phone and a computer having a mobile terminal, for example, may be a portable, pocket-sized, hand-held, computer-built, or vehicle-mounted mobile device.
  • the base station 220 may be configured to communicate with the terminal 240 through the wireless interface 230 under the control of a network device controller (not shown in FIG. 2 ).
  • the network device controller may be a part of the core network device 260 , or may be integrated into the base station 220 .
  • the base station 220 may transmit information or user data to the core network device 260 through the interface 250 (eg, the S1 interface).
  • the base station 220 and the base station 220 may also communicate with each other through an interface (eg, an X2 interface, not shown in FIG. 2 ).
  • the wireless communication system 200 shown in FIG. 2 is only for illustrating the technical solutions of the present application more clearly, and does not constitute a limitation on the present application.
  • Those skilled in the art know that with the evolution of the network architecture and new services When a scenario occurs, the technical solutions provided in this application are also applicable to similar technical problems.
  • the Multiple-Input Multiple-Output (MIMO) technology is one of the key technologies.
  • the MIMO technology relies on the multi-antenna transmission technology, the so-called multi-antenna transmission technology, that is, using multiple antennas at both the transmitting end and the receiving end to transmit and receive data.
  • multi-antenna transmission and reception can provide power gain, array gain, diversity gain, multiplexing gain and shaping gain.
  • Power gain means that the transmit power on each antenna can be superimposed at the receiving end to achieve the effect of power enhancement.
  • the array gain mainly uses the non-correlation of white noise, which will cancel each other after combining, and the carrier signal can be enhanced after being superimposed. Therefore, the array gain can improve the signal-to-noise ratio of the receiving end, improve the quality of the received signal, and thus improve the cell coverage performance, especially It can effectively improve the user experience in the case of poor channel quality.
  • Diversity gain mainly utilizes the independence of spatial channel fading, transmits the same data simultaneously through multiple antennas, reduces the fluctuation of signal-to-noise ratio under fading channel, and brings about performance gain.
  • the multiplexing gain refers to the improvement of cell throughput and peak capacity by multiplexing two different data of the same user or data streams of different users onto the same time-frequency resources when the signal quality is good. .
  • Multiplexing gain is also called space division multiplexing. Two antennas transmit different signals at the same time, that is, two antennas transmit different streams respectively. The maximum number of streams that the system can support is equal to the number of antennas.
  • Shaped gain means that multiple antennas use beamforming technology to transmit signals, and beamforming can play the role of aligning the transmitted signal to the receiver.
  • Wireless signals without beamforming can be compared to incandescent lighting, and wireless signals with beamforming can be compared to flashlight lighting.
  • Beamforming and space division multiplexing can be used at the same time, but beamforming needs to use multiple antennas to form beams, so the total number of streams needs to be less than the number of antennas.
  • both the terminal and the base station need to be designed with a multi-antenna structure.
  • the selection of the downlink transmit antenna is completed by the base station.
  • the selection of the uplink transmission antenna is divided into open-loop antenna selection and closed-loop antenna selection according to whether there is feedback.
  • the feedback here refers to the feedback from the base station to the terminal after measuring the signal sent by the terminal.
  • the uplink antenna is often blocked.
  • the terminal when the user holds the terminal, if the user holds the part where the antenna is located, the uplink signal of the antenna will be attenuated greatly, affecting the service experience.
  • the multi-antenna design of the terminal allows the terminal to select different antennas to transmit uplink data, thereby solving the problem that data cannot be transmitted due to one of the antennas being blocked.
  • the protocol specifies that the antenna selection technology of the terminal in the RRC (Radio Resource Control, Radio Resource Control) connection state includes an open-loop antenna selection technology and a closed-loop antenna selection technology. If the terminal supports uplink antenna selection, it reports the capability to the base station, and the base station notifies the terminal to use the open-loop antenna selection technology or the closed-loop antenna selection technology through an RRC configuration message. If it is configured as an open-loop antenna selection technology, the terminal can select the uplink transmit antenna according to its own implementation. In the open-loop antenna selection technology, the terminal will generally measure the downlink reference signal for a certain period to obtain the downlink measurement indicators of each antenna, and then smooth the downlink measurement indicators of each antenna, and finally select based on the smoothed downlink measurement indicators. The antenna with the best quality is used as the uplink transmitting antenna.
  • RRC Radio Resource Control, Radio Resource Control
  • RRC connection establishment is also called random access (Random Access, RA).
  • the types of random access include contention random access and non-random access.
  • the terminal can obtain the services provided by the network only after establishing a connection with the base station through random access.
  • the terminal establishes a connection with the base station through the random access process, and the basic process of competing for random access is shown in Figure 3:
  • the terminal sends a random access preamble (represented by Msg1)
  • the base station obtains the Preamble ID by detecting the Preamble, and estimates the uplink transmission delay.
  • the base station replies a random access response RAR (Random Access Response, represented by Msg2) to the terminal.
  • RAR Random Access Response
  • the RAR carries the following information: the timing advance corresponding to the uplink transmission delay, the Preamble ID, the temporary user identifier allocated by the base station to the terminal, and the uplink scheduling resource authorization information.
  • the terminal sends an RRC connection establishment request (represented by Msg3) to the base station.
  • the terminal adjusts the uplink timing according to the timing advance in the RAR (random access response), and sends an RRC connection establishment request to the base station according to the uplink scheduling resource grant information in the RAR (random access response), Msg3 (RRC connection establishment request) ) carries the temporary user identity allocated to the terminal in the RAR (Random Access Response) by the base station.
  • Msg4 RRC connection establishment message
  • MCE MAC Control Element
  • the terminal sends an RRC connection establishment complete message (represented by Msg5) to the base station. After this step is completed, the terminal completes the process of establishing the RRC connection with the base station.
  • Msg1 random access preamble
  • Msg3 RRC connection establishment request
  • Msg5 RRC connection establishment completed
  • the terminal Since in the random access procedure, the terminal has not completed the establishment of the RRC connection with the base station, the base station cannot configure a specific uplink antenna selection technology by sending an RRC configuration message to the terminal.
  • the terminal In the process of establishing a connection through random access, the terminal cannot obtain a downlink measurement index for a long period of time, so the optimal antenna cannot be selected through periodic evaluation during the random access process. If an antenna with poor signal quality is always used to send uplink data during random access, it may cause slow access or access failure, which affects the service experience of the terminal.
  • the terminal is designed with four antennas, namely the first antenna, the second antenna, the third antenna and the fourth antenna, wherein the first antenna is the default antenna of the terminal.
  • the terminal first tries to send Msg1 (random access preamble) on the default antenna. If the terminal does not receive the RAR (random access response) sent by the base station within a fixed time window, and tries to send Msg1 (random access response) If the number of access preambles) reaches a preset number of times, the terminal will switch to the second antenna to try to send.
  • Msg1 random access preamble
  • the terminal When the terminal attempts to send Msg1 (random access preamble) on the second antenna for a preset number of times and still does not receive the RAR (random access response) sent by the base station, it switches to the third antenna for Msg1 (random access preamble) attempt to send. If the terminal sends Msg1 (random access preamble) on the third antenna and receives the RAR (random access response) sent by the base station within a fixed time window, it will continue to send Msg3 (RRC connection establishment request) on the third antenna ).
  • Msg1 random access preamble
  • RAR random access response
  • the terminal After the terminal sends Msg3 (RRC connection establishment request), if it receives the retransmission scheduling of Msg3 (RRC connection establishment request) by the base station and the number of times the terminal sends Msg3 (RRC connection establishment request) on the third antenna reaches the preset number of times, then Switch to the fourth antenna to attempt to send Msg3 (RRC connection establishment request). After the terminal sends Msg3 (RRC connection establishment request) on the fourth antenna and receives Msg4 (RRC connection establishment) sent by the base station, the terminal continues to send Msg5 on the fourth antenna (RRC connection establishment completed).
  • the terminal After the terminal sends Msg5 (RRC connection establishment completed), if it receives the retransmission scheduling of Msg5 (RRC connection establishment completed) by the base station and the number of times the terminal sends Msg5 on the fourth antenna (RRC connection establishment completed) reaches the preset number, then Switch to the first antenna to attempt to send Msg5 (RRC connection establishment completed). After the terminal successfully sends the Msg5 (the RRC connection establishment is completed), the terminal completes the process of establishing the RRC connection with the base station.
  • the prior art performs uplink through sequential switching after failure. Selection of transmit antenna.
  • the fourth antenna of the terminal is the optimal antenna
  • the terminal switches the uplink antenna according to the sequence described above, and it takes a long time to switch to the optimal antenna to transmit uplink data.
  • the signal quality may have deteriorated.
  • the method of sequential switching in the prior art will still be tried for antennas whose signal quality is much worse than that of the current antenna, which will increase the time delay of random access of users and affect user experience.
  • an embodiment of the present application provides a method for antenna selection. As shown in Figure 4, when the terminal sends Msg1 (random access preamble) for the first time in random access, an initial antenna selection mechanism is added, and the optimal antenna is selected as the first antenna according to the instantaneous downlink measurement index.
  • Msg1 random access preamble
  • the terminal can measure the DMRS (Demodulation Reference Signal, demodulation reference signal) of the PBCH (Physical Broadcast Channel) in the SSB (Synchronization Signal and PBCH block) before random access. signal) to obtain downlink measurements on each antenna.
  • the terminal can obtain downlink measurement indicators on each antenna by measuring CRS (Cell Reference Signal, cell reference signal) before random access.
  • the downlink measurement indicators here can be RSRP (Reference Signal Receiving Power, reference signal receiving power), SINR (Signal to Interference plus Noise Ratio, signal to interference plus noise ratio) or RSRQ (Reference Signal Receiving Quality, reference signal receiving quality), etc. .
  • both SSB and CRS are sent periodically.
  • the SSB can be sent according to a period of 20ms.
  • the terminal can update each The downlink measurement index of the antenna can also be used in the random access process all the time using the downlink measurement index measured before the random access.
  • FIG. 5A shows a flowchart of uplink transmission antenna selection in the contention random access process according to an embodiment of the present application, including:
  • the terminal when the terminal sends the Msg1 (random access preamble) for the first time, it detects whether the downlink measurement index of the default antenna is lower than a preset threshold, and when the downlink measurement index of the default antenna is lower than the preset threshold, it goes to step S502;
  • the downlink measurement index of the default antenna is not lower than the preset threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna and goes to step S503.
  • the downlink measurement indicator may be RSRP measured according to the reference signal, and the preset threshold may be set to -100dBm in this case.
  • the downlink measurement indicator may be the RSRQ measured according to the reference signal, and the preset threshold may be set to -15dB in this case.
  • the terminal obtains the optimal current antenna. Specifically, the terminal selects the antenna with the best downlink measurement index among the other antennas except the default antenna as the candidate antenna. If the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna, the candidate antenna is selected as the first antenna, and the current antenna is switched to the first antenna; If the downlink measurement index of the candidate antenna is not higher than the downlink measurement index of the default antenna plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna.
  • the reason for setting the first threshold here is that the default antenna in the terminal is generally the main antenna, and the main antenna is the antenna with the best technology in the terminal. Therefore, if the downlink measurement index of the candidate antenna is not higher than the downlink measurement of the default antenna When the index is to a certain extent, the default antenna is the optimal choice.
  • the downlink measurement indicator is the RSRP measured by the terminal according to the reference signal
  • the first threshold may be set to 3dB.
  • the terminal sends Msg1 (random access preamble) on the current antenna. After the terminal sends the Msg1 (random access preamble), it waits to receive the RAR (random access response) sent by the base station within a fixed time window. If the terminal does not receive the RAR (random access response) within the fixed time window, it goes to step S504; if the terminal successfully receives the RAR (random access response) within the fixed time window, it goes to step S506.
  • Msg1 random access preamble
  • the terminal determines whether the number of times of sending Msg1 (random access preamble) on the current antenna reaches a first preset number of times. If the first preset number of times has been reached, go to step S505; if the first preset number of times has not been reached, go to step S503. In an optional implementation manner, the terminal may set the first preset number of times of sending the Msg1 (random access preamble) on the current antenna to 2 times.
  • the terminal determines whether the downlink measurement index of the next antenna satisfies the first condition.
  • the first condition is whether the downlink measurement indicator of the next antenna of the terminal is greater than the downlink measurement indicator of the current antenna minus the second threshold, if the downlink measurement indicator of the next antenna is greater than the downlink measurement indicator of the current antenna minus the first
  • the terminal selects the next antenna as the second antenna, switches the current antenna to the second antenna, and then goes to step S503; if the downlink measurement index of the next antenna is not greater than the downlink measurement index of the current antenna minus the downlink measurement index of the current antenna
  • the terminal skips the antenna, and performs step S505 again.
  • the downlink measurement indicator of the next antenna is compared with the downlink measurement indicator of the current antenna minus the second threshold, rather than the downlink measurement indicator of the next antenna and the downlink measurement indicator of the current antenna plus the first Compared with the two thresholds, it is mainly considered that the quality of the data sent by the antenna is affected by many factors, so it is still necessary to try the antennas with poor downlink measurement indicators.
  • the second threshold may be set to 9dB, 3dB or 0dB.
  • the terminal sends Msg3 (RRC connection establishment request) on the current antenna.
  • Msg3 RRC connection establishment request
  • the terminal After the terminal sends Msg3 (RRC connection establishment request), if it successfully receives Msg4 (RRC connection establishment) sent by the base station, it enters step S509; if it receives the retransmission scheduling of Msg3 (RRC connection establishment request) by the base station, then Enter step S507;
  • the terminal determines whether the number of times of sending Msg3 (RRC connection establishment request) on the current antenna reaches a second preset number of times. If the second preset number of times has been reached, go to step S508; if the second preset number of times has not been reached, go to step S506. In an optional implementation manner, when the maximum number of times of sending Msg3 (RRC connection establishment request) is 5, the second preset times for the terminal to send Msg3 (RRC connection establishment request) on the current antenna may be set to 3 Second-rate.
  • the terminal determines whether the downlink measurement index of the next antenna satisfies the first condition.
  • the first condition is whether the downlink measurement indicator of the next antenna of the terminal is greater than the downlink measurement indicator of the current antenna minus the second threshold, and if the downlink measurement indicator of the next antenna is greater than the downlink measurement indicator of the current antenna minus the downlink measurement indicator
  • the terminal selects the next antenna as the third antenna, switches the current antenna to the third antenna, and proceeds to step S506. If the downlink measurement indicator of the next antenna is not greater than the downlink measurement indicator of the current antenna minus the second threshold, the terminal skips the antenna, and performs step S508 again.
  • the principle and setting of the second threshold may refer to the description of step S502, which will not be repeated here.
  • the terminal sends Msg5 on the current antenna (RRC connection establishment is completed). If the terminal successfully sends Msg5, the RRC connection establishment process with the base station is completed; if the terminal receives the retransmission scheduling of Msg5 (RRC connection establishment completed) by the base station, the terminal switches the uplink transmit antenna and sends Msg3 (RRC connection The switching method when establishing the request) is the same, and will not be repeated here.
  • the terminal when the terminal transmits Msg1 (random access preamble) for the first time in the random access process, the default antenna is detected according to the downlink measurement index. When it is not good, select the optimal antenna to transmit the Msg1 (random access preamble), which increases the probability of successful transmission of the Msg1 (random access preamble). Msg1 (random access preamble) judges the downlink measurement index of the next antenna when the number of transmissions on the current antenna reaches a preset number, and when the first condition is satisfied, the terminal switches the uplink transmission antenna to this antenna to attempt transmission.
  • Msg1 random access preamble
  • the types of random access include non-contention random access in addition to contention random access.
  • the usage scenarios of non-contention random access include terminal handover scenarios, and SCG (Secondary Cell Group, secondary cell group) bearer addition scenarios under NR non-independent networking.
  • Msg1 random access preamble
  • Msg2 random access response
  • Msg3 RRC connection establishment complete
  • the terminal when the terminal sends the Msg1 (random access preamble) for the first time, the terminal selects the optimal antenna as the first antenna. Specifically, when the terminal sends Msg1 (random access preamble) for the first time, it detects whether the downlink measurement index of the default antenna is lower than the preset threshold, and when the downlink measurement index of the default antenna is not lower than the preset threshold, the default antenna For the optimal antenna, select the default antenna as the first antenna, that is, maintain the default antenna as the current antenna. When the downlink measurement index of the default antenna is lower than the preset threshold, the terminal selects the antenna with the best downlink measurement index among the remaining antennas except the default antenna as the candidate antenna.
  • the candidate antenna is the optimal antenna, the candidate antenna is selected as the first antenna, and the current antenna is switched to the first antenna; If the downlink measurement index of the candidate antenna is not higher than the downlink measurement index of the default antenna plus the first threshold, the default antenna is selected as the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna.
  • the terminal sends Msg1 (random access preamble) on the current antenna. If the terminal does not receive an RAR (random access response) after sending the Msg1 (random access preamble), the antenna switches according to the first condition. Specifically, the terminal waits to receive an RAR (random access response) sent by the base station within a fixed time window after sending the Msg1 (random access preamble). If the terminal does not receive an RAR (random access response) within the fixed time window and the number of times the terminal sends Msg1 (random access preamble) on the current antenna is less than the first preset number of times, continue to repeat step S512.
  • RAR random access response
  • the terminal If the terminal does not receive an RAR (random access response) within a fixed time window and the number of times the terminal sends Msg1 (random access preamble) on the current antenna reaches the first preset number of times, then the terminal detects the next antenna. Whether the downlink measurement index satisfies the first condition, if the downlink measurement index of the next antenna satisfies the first condition, the terminal selects the next antenna as the second antenna, and switches the current antenna to the second antenna to continue to repeat the steps S512 ; if the downlink measurement index of the next antenna does not meet the first condition, skip and continue to perform detection, and continue to repeat step S512 until the current antenna is switched to an antenna that satisfies the condition.
  • the specific first condition judgment is consistent with that described in step S505, and is not repeated here. If the terminal successfully receives the RAR (Random Access Response) within the fixed time window, it goes to step S513.
  • the terminal sends Msg3 on the current antenna (the RRC connection is completed). After the terminal sends Msg3 (RRC connection is completed) and receives the retransmission scheduling of Msg3 (RRC connection is completed), antenna switching is performed according to the first condition. Specifically, if the terminal successfully sends Msg3 (RRC connection complete), the process of establishing an RRC connection with the base station is completed; if the terminal receives the retransmission scheduling of Msg3 (RRC connection complete) from the base station and the terminal sends the current antenna If the number of Msg3 (RRC connection completed) is less than the fourth preset number of times, step S513 is continuously performed repeatedly.
  • the terminal If the terminal receives the retransmission scheduling of Msg3 (RRC connection completed) by the base station and the number of times the terminal sends Msg3 (RRC connection completed) on the current antenna reaches the fourth preset number of times, the terminal detects the downlink measurement index of the next antenna Whether the first condition is met, if the downlink measurement index of the next antenna meets the first condition, the terminal selects the next antenna as the third antenna, and switches the current antenna to the third antenna to continue to repeat step S513; If the downlink measurement index of the next antenna does not satisfy the first condition, skip and continue to perform detection, and continue to repeat step 513 until the current antenna is switched to an antenna that satisfies the condition.
  • the specific first condition judgment is consistent with that described in step S505, and is not repeated here.
  • FIG. 6 shows a flowchart of uplink transmission antenna selection in the contention random access process of another embodiment of the present application, including:
  • the terminal when the terminal sends the Msg1 (random access preamble) for the first time, it detects whether the downlink measurement index of the default antenna is lower than a preset threshold, and when the downlink measurement index of the default antenna is lower than the preset threshold, it goes to step S602;
  • the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna and goes to step S603.
  • the terminal sets antenna priorities for at least two antennas.
  • the terminal sets the priorities of the antennas according to the downlink measurement indicators of at least two antennas, and specifically sets the priority of the antenna with the best downlink measurement indicator to the highest, and the antenna with the worst downlink measurement indicator The priority is set to the lowest.
  • there are differences in technology among the antennas of the terminal for example, the difference loss is different, so the terminal can set priorities for the antennas according to the technology differences between the antennas.
  • the terminal obtains the optimal current antenna. Specifically, the terminal selects the antenna with the best downlink measurement index among the other antennas except the default antenna as the candidate antenna. If the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna, the candidate antenna is selected as the first antenna, and the current antenna is switched to the first antenna; If the downlink measurement index of the candidate antenna is not higher than the downlink measurement index of the default antenna plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna.
  • the first threshold For the principle and setting of the first threshold, reference may be made to the description of step S502 in FIG. 5A , which will not be repeated here.
  • the terminal sends Msg1 (random access preamble) on the current antenna. After the terminal sends the Msg1 (random access preamble), it waits to receive the RAR (random access response) sent by the base station within a fixed time window. If the terminal does not receive the RAR (random access response) within the fixed time window, it goes to step S604; if the terminal successfully receives the RAR (random access response) within the fixed time window, it goes to step S606.
  • Msg1 random access preamble
  • the terminal determines whether the number of times of sending Msg1 (random access preamble) on the current antenna reaches a first preset number of times. If the first preset number of times has been reached, go to step S605; if the first preset number of times has not been reached, go to step S603.
  • the terminal switches the uplink transmission antenna according to the first condition, that is, selects the antenna with the highest priority except the current antenna as the second antenna according to the antenna priority set in step S601, and switches the current antenna to the second antenna Then go to step S603.
  • the terminal sets the antenna priority according to the downlink measurement index of the antenna in step S601
  • the antenna priority remains unchanged in this random access process, instead of The downlink measurement indicators obtained by the real-time antenna measurement are adjusted in real time, so as to ensure that all antennas can be tried.
  • the terminal after the terminal sets the antenna priority according to the downlink measurement index of the antenna in step S601, the terminal performs antenna priority according to the downlink measurement index obtained by real-time measurement of each antenna during the random access process Real-time adjustment of the level, so that each time the uplink transmitting antenna is switched according to the priority, it can be switched to the antenna with the best downlink measurement index.
  • the terminal continues to send Msg3 (RRC connection establishment request) on the current antenna.
  • Msg3 RRC connection establishment request
  • the terminal After the terminal sends Msg3 (RRC connection establishment request), if it successfully receives Msg4 (RRC connection establishment) sent by the base station, it will enter step S609; if it receives the retransmission scheduling of Msg3 (RRC connection establishment request) by the base station, Enter step S607;
  • the terminal determines whether the number of times of sending Msg3 (RRC connection establishment request) on the current antenna reaches a preset number of times. If the second preset number of times has been reached, go to step S608; if the second preset number of times has not been reached, go to step S606. In an optional implementation manner, when the maximum number of Msg3 (RRC connection establishment request) sending times is 5, the preset number of times the terminal sends Msg3 (RRC connection establishment request) on the current antenna may be set to 3 times.
  • the terminal switches the uplink transmission antenna according to the first condition, that is, selects the antenna with the highest priority except the current antenna as the third antenna according to the antenna priority set in step S601, and switches the current antenna to the third antenna Then go to step S606.
  • the specific setting of the antenna priority is the same as that described in step S605, and will not be repeated here.
  • the terminal continues to send Msg5 on the current antenna (RRC connection establishment is completed). If the terminal receives the retransmission scheduling of Msg5 (RRC connection establishment completed) by the base station, the switching method of the terminal for uplink transmission antenna is the same as the switching method when sending Msg3 (RRC connection establishment request), which will not be repeated here.
  • the terminal when the terminal first transmits Msg1 (random access preamble) for the first time in the random access process, it detects the default antenna according to the downlink measurement index. When the index is not good, the optimal antenna is selected to transmit the Msg1 (random access preamble), which increases the probability of successful transmission of the Msg1 (random access preamble).
  • Msg1 random access preamble
  • Msg1 random access preamble
  • the switching of the uplink transmission antennas sent by Msg3 (RRC connection establishment request) and Msg5 (RRC connection establishment completed) transmission also follows a similar principle, so that uplink data can be sent on the antenna with higher priority first, which improves the transmission success rate. probability, enhancing the user experience.
  • the selection of uplink transmit antennas in the contention random access process in FIG. 6 is still applicable to the selection of uplink transmit antennas in the non-contention random access process, and details are not repeated here.
  • the second threshold used by the terminal in the process of selecting an antenna according to the first condition may use the same threshold or different thresholds when sending different messages. No restrictions.
  • FIG. 7 shows a random access antenna optimization device provided by an embodiment of the present application.
  • the antenna optimization device can implement part of the terminal 240 shown in FIG. all.
  • the apparatus includes: an antenna selection unit 701 , a data transmission unit 702 , a data reception unit 703 , a data transmission judgment unit 704 , and an antenna switching unit 705 .
  • the antenna selection unit 701 is used for selecting the uplink transmission antenna when the terminal transmits Msg1 (random access preamble) for the first time in the random access process.
  • the data sending unit 702 is used for the terminal to send uplink data in the random access process, including Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg5 (RRC connection establishment completed).
  • the data receiving unit 703 is used for the terminal to receive downlink data in the random access process, including RAR (random access response), retransmission scheduling of Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg4 (RRC connection establishment) , Retransmission scheduling of Msg5 (RRC connection establishment completed).
  • RAR random access response
  • Msg3 RRC connection establishment request or RRC connection establishment completed
  • Msg4 RRC connection establishment
  • Retransmission scheduling of Msg5 RRC connection establishment completed.
  • the data transmission judgment unit 704 is used for the terminal to judge whether the transmission times of Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment complete), and Msg5 (RRC connection establishment complete) reach the threshold during the random access process .
  • the antenna switching unit 705 is used for the terminal to detect that the number of times of sending Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment complete), and Msg5 (RRC connection establishment complete) reaches the threshold during the random access process , and switch the uplink transmit antenna to the next antenna according to whether certain conditions are met or according to the priority.
  • Msg1 random access preamble
  • Msg3 RRC connection establishment request or RRC connection establishment complete
  • Msg5 RRC connection establishment complete
  • FIG. 8 shows a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal includes: a processor 801 , a receiver 802 , a transmitter 803 , a memory 804 , and a bus 805 .
  • the processor 801 includes one or more processing cores, and the processor 801 executes various functional applications and information processing by running software programs and modules.
  • the receiver 802 and the transmitter 803 may be implemented as a communication component, which may be a baseband chip.
  • the memory 804 is connected to the processor 801 through a bus 805 .
  • the memory 804 may be configured to store at least one program instruction, and the processor 801 may be configured to execute the at least one program instruction, so as to implement the technical solutions of the foregoing embodiments.
  • the implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
  • the embodiments of the present application provide a computer program product, which enables the terminal to execute the technical solutions in the foregoing embodiments when the computer program product runs on a terminal.
  • the implementation principle and technical effect thereof are similar to those of the above-mentioned related embodiments, which will not be repeated here.
  • the embodiments of the present application provide a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a terminal, the terminal executes the technical solutions of the foregoing embodiments.
  • the implementation principle and technical effect thereof are similar to those of the above-mentioned related embodiments, which will not be repeated here.
  • the application embodiment provides a chip, the chip is used for executing instructions, and when the chip is running, the technical solutions in the above-mentioned embodiments are executed.
  • the implementation principle and technical effect thereof are similar, and are not repeated here.
  • the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM).
  • Memory is, without limitation, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • the methods provided by the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • When implemented in software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL), or wireless (eg, infrared, wireless, microwave, etc.)
  • a readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media.
  • the available media can be magnetic media (eg, floppy disks, hard disks, magnetic tapes) ), optical media (eg, digital video disc (DWD), or semiconductor media (eg, SSD), etc.).

Abstract

The present invention relates to the field of communications, and embodiments of the present invention disclose an antenna selection method and device. The method is applied to a random access process of a terminal comprising at least two antennas, and comprises: a terminal selects an optimal antenna from the at least two antennas as a first antenna; the terminal sends, on the first antenna, a first message to a base station, the first message being a random access preamble; when the terminal fails to receive a second message sent by the base station, and the number of times of sending the first message by the terminal on the first antenna reaches a first preset number of times, the terminal selects an optimal antenna from the at least two antennas as a second antenna according to a first condition, the second message being a random access response; and the terminal sends the first message on the second antenna. Therefore, in the random access process of the terminal, an optimal antenna selection method is introduced, such that the probability of successful message sending is increased, and user experience is improved.

Description

一种天线选择的方法及装置Method and device for antenna selection
本申请要求在2020年8月1日提交中国国家知识产权局、申请号为202010763809.5的中国专利申请的优先权,发明名称为“一种天线选择的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010763809.5 submitted to the State Intellectual Property Office of China on August 1, 2020, and the priority of the Chinese patent application entitled "An Antenna Selection Method and Device", The entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及通信领域,尤其涉及一种天线选择的方法及装置。The present application relates to the field of communications, and in particular, to a method and device for antenna selection.
背景技术Background technique
终端设备在使用的过程中,常常会出现天线被遮挡的情况,导致信号衰减大,影响业务体验。为了解决这一问题,终端设备通常会设计成多根天线的结构,通过上行天线选择技术来避免该问题。多根天线可以共用一个RF(Radio Frequency,射频)链路,因此在不需要增加硬件复杂度的情况下就可以获得较高的性能。During the use of terminal equipment, the antenna is often blocked, resulting in large signal attenuation and affecting service experience. In order to solve this problem, the terminal equipment is usually designed with a structure of multiple antennas, and this problem is avoided by the uplink antenna selection technology. Multiple antennas can share an RF (Radio Frequency, radio frequency) link, so high performance can be obtained without increasing hardware complexity.
现有技术中,在终端和基站建立连接后,终端通常是通过周期评估来选择最优的上行天线。为了准确的得到最优的上行天线,终端需要统计一个较长周期的下行测量指标。In the prior art, after the terminal establishes a connection with the base station, the terminal usually selects the optimal uplink antenna through periodic evaluation. In order to obtain the optimal uplink antenna accurately, the terminal needs to count downlink measurement indicators of a longer period.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种天线选择的方法及装置,可以使得终端在随机接入过程中选择合适的天线进行数据的发送,达到增加随机接入成功率以及降低随机接入时延的目的。The embodiments of the present application provide an antenna selection method and apparatus, which can enable a terminal to select an appropriate antenna for data transmission during random access, so as to increase the success rate of random access and reduce the delay of random access.
第一方面,本申请提供了一种天线选择的方法,应用于包括至少两根天线的终端的随机接入流程中,该方法包括:In a first aspect, the present application provides a method for antenna selection, which is applied to a random access procedure of a terminal including at least two antennas, and the method includes:
终端选择至少两根天线中的最优天线作为第一天线;The terminal selects the optimal antenna among the at least two antennas as the first antenna;
终端在第一天线上向基站发送第一消息,第一消息为随机接入前导;The terminal sends a first message to the base station on the first antenna, where the first message is a random access preamble;
当终端为成功接收到基站发送的第二消息,并且终端在第一天线上发送第一消息的次数达到了第一预设次数时,终端根据第一条件从至少两根天线中选择最优天线作为第二天线,第二消息为随机接入响应;When the terminal successfully receives the second message sent by the base station and the number of times the terminal sends the first message on the first antenna reaches the first preset number of times, the terminal selects the optimal antenna from the at least two antennas according to the first condition As the second antenna, the second message is a random access response;
终端在第二天线上发送第一消息。The terminal sends the first message on the second antenna.
采用这种方法,终端在第一次发送第一消息时选择最优的天线进行发送,增加了第一消息发送成功的概率。当第一消息发送失败,并且达到预设次数时,按照一定的条件切换到其他的天线上继续发送第一消息,这样可以提高发送成功的概率,增强了用户的体验。With this method, the terminal selects the optimal antenna to send the first message when it sends the first message for the first time, which increases the probability that the first message is successfully sent. When the first message fails to be sent and the preset number of times is reached, switch to another antenna to continue sending the first message according to certain conditions, which can improve the probability of successful sending and enhance the user experience.
在一种实施方式中,该方法还包括:当终端成功接收到基站发送的第二消息时,响应该第二消息,终端在第二天线上发送第三消息。In an embodiment, the method further includes: when the terminal successfully receives the second message sent by the base station, in response to the second message, the terminal sends a third message on the second antenna.
在一种实施方式中,在终端在第二天线上发送第三消息之后,该方法还包括:In one embodiment, after the terminal sends the third message on the second antenna, the method further includes:
当终端接收到基站对第三消息的重传调度,并且终端在第二天线上发送第三消息的次数达到第二预设次数时,终端根据第一条件从至少两个天线中选择最优天线作为第三天线;When the terminal receives the retransmission scheduling of the third message by the base station and the number of times the terminal sends the third message on the second antenna reaches the second preset number of times, the terminal selects the optimal antenna from the at least two antennas according to the first condition as a third antenna;
终端在第三天线上发送所述第三消息。The terminal sends the third message on the third antenna.
采用这种方法,终端在当前天线上发送第三消息失败,并且达到了预设次数时,按照一定的条件切换到其他的天线上继续发送第三消息,这样提高发送成功的概率,增强了用户的体验。Using this method, the terminal fails to send the third message on the current antenna, and when the preset number of times is reached, it switches to other antennas to continue sending the third message according to certain conditions, which improves the probability of successful sending and enhances the user experience. experience.
在一种实施方式中,该随机接入流程为竞争随机接入流程,该第三消息为无线资源控制RRC连接建立请求消息。In an embodiment, the random access procedure is a contention random access procedure, and the third message is a radio resource control RRC connection establishment request message.
在一种实施方式中,在终端在第三天线上发送所述第三消息之后,该方法还包括:In an embodiment, after the terminal sends the third message on the third antenna, the method further includes:
当终端成功接收到基站发送的第四消息时,响应第四消息,终端在第三天线上发送第五消息,该第四消息为RRC连接建立消息,该第五消息为RRC连接建立完成消息。When the terminal successfully receives the fourth message sent by the base station, in response to the fourth message, the terminal sends a fifth message on the third antenna, where the fourth message is an RRC connection establishment message, and the fifth message is an RRC connection establishment complete message.
在一种实施方式中,在终端在第三天线上发送第五消息之后,该方法还包括:In one embodiment, after the terminal sends the fifth message on the third antenna, the method further includes:
当终端接收到基站对第五消息的重传调度,并且终端在第三天线上发送第五消息的次数达到第三预设次数时,终端根据第一条件从至少两根天线中选择最优天线作为第四天线;When the terminal receives the retransmission scheduling of the fifth message by the base station and the number of times the terminal sends the fifth message on the third antenna reaches the third preset number of times, the terminal selects the optimal antenna from the at least two antennas according to the first condition as the fourth antenna;
终端在第四天线上发送第五消息。The terminal transmits the fifth message on the fourth antenna.
采用这种方法,终端在当前天线上发送第五消息失败,并且达到了预设次数时,按照一定的条件切换到其他的天线上继续发送第五消息,这样提高发送成功的概率,增强了用户的体验。With this method, the terminal fails to send the fifth message on the current antenna, and when the preset number of times is reached, it switches to other antennas to continue sending the fifth message according to certain conditions, which improves the probability of successful sending and enhances the user experience. experience.
在一种实施方式中,该随机接入流程为非竞争随机接入流程,该第三消息为无线资源控制RRC连接建立完成消息。In an embodiment, the random access procedure is a non-contention random access procedure, and the third message is a radio resource control RRC connection establishment complete message.
在一种实施方式中,终端选择至少两根天线中的最优天线作为第一天线,包括:In one embodiment, the terminal selects the optimal antenna among the at least two antennas as the first antenna, including:
当终端的默认天线的下行测量指标不低于预设门限时,默认天线为最优天线,选择默认天线作为第一天线;When the downlink measurement index of the default antenna of the terminal is not lower than the preset threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna;
当默认天线的下行测量指标低于所述预设门限时,选择除默认天线外的其余天线中下行测量指标最好的天线作为候选天线,如果候选天线的下行测量指标不高于默认天线的下行测量指标加上第一门限,默认天线为最优天线,选择默认天线作为第一天线;如果候选天线的下行测量指标高于默认天线的下行测量指标加上第一门限,候选天线为最优天线,选择候选天线为第一天线。When the downlink measurement indicator of the default antenna is lower than the preset threshold, select the antenna with the best downlink measurement indicator among the other antennas except the default antenna as the candidate antenna. If the downlink measurement indicator of the candidate antenna is not higher than the downlink measurement indicator of the default antenna The measurement index plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna; if the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna , select the candidate antenna as the first antenna.
采用这种方法,终端在第一次发送第一消息时,使用一种初始天线优选机制,根据瞬时的下行测量指标选择最优的天线发送第一消息,增加了发送成功的概率,增强了用户的体验。With this method, when the terminal sends the first message for the first time, it uses an initial antenna selection mechanism to select the optimal antenna to send the first message according to the instantaneous downlink measurement index, which increases the probability of successful sending and enhances the user experience. experience.
在一种实施方式中,终端根据第一条件从至少两根天线中选择最优天线,包 括:In one embodiment, the terminal selects the optimal antenna from at least two antennas according to the first condition, including:
当终端的下一根天线的下行测量指标大于当前天线的下行测量指标减去第二门限时,终端选择下一根天线为最优天线,或者,When the downlink measurement index of the next antenna of the terminal is greater than the downlink measurement index of the current antenna minus the second threshold, the terminal selects the next antenna as the optimal antenna, or,
终端选择当前天线外优先级最高的天线作为最优天线。The terminal selects the antenna with the highest priority outside the current antenna as the optimal antenna.
采用这种方法,终端根据一定的条件切换上行发送天线,而不是盲目的进行切换,这样增加了上行消息发送成功的概率。With this method, the terminal switches the uplink transmission antenna according to certain conditions, rather than blindly switching, which increases the probability of successful uplink message transmission.
本申请另一方面提供了一种终端,包括:一个或多个处理器,一个或多个存储器,一个或多个存储器存储有一个或多个计算机程序,一个或多个计算机程序包括指令,当指令被一个或多个处理器执行时,使得终端执行上述第一方面所述的方法。Another aspect of the present application provides a terminal, comprising: one or more processors, one or more memories, the one or more memories stores one or more computer programs, the one or more computer programs include instructions, when The instructions, when executed by one or more processors, cause the terminal to execute the method described in the first aspect.
本申请另一方面提供了一种装置,该装置包括处理器,该处理器用于与存储器耦合,并读取存储器中的指令执行上述第一方面所述的方法。Another aspect of the present application provides an apparatus, which includes a processor, which is coupled to a memory and reads instructions in the memory to execute the method described in the first aspect.
本申请另一方面提供了一种包含指令的计算机程序产品,当所述计算机程序产品在第一终端上运行时,使得所述第一终端执行上述第一方面所述的方法。Another aspect of the present application provides a computer program product containing instructions, when the computer program product is run on a first terminal, the first terminal is caused to execute the method described in the first aspect.
本申请另一方面提供了一种计算机可读存储介质,包括指令,当所述指令在第一终端上运行时,使得所述第一终端执行上述第一方面所述的方法。Another aspect of the present application provides a computer-readable storage medium, including instructions, which, when the instructions are executed on a first terminal, cause the first terminal to execute the method described in the first aspect.
本申请另一方面提供了一种随机接入的天线优选装置,包括:天线选择单元,用于终端在随机接入过程中第一次发送Msg1(随机接入前导)时进行上行发送天线的选择;数据发送单元,用于终端在随机接入过程中发送上行数据,包括Msg1(随机接入前导)、Msg3(RRC连接建立请求或者RRC连接建立完成)、Msg5(RRC连接建立完成);数据接收单元,用于终端在随机接入过程中接收下行数据,包括RAR(随机接入响应)、Msg3(RRC连接建立请求或者RRC连接建立完成)的重传调度、Msg4(RRC连接建立)、Msg5(RRC连接建立完成)的重传调度;数据发送判断单元,用于终端在随机接入过程中判断Msg1(随机接入前导)、Msg3(RRC连接建立请求或者RRC连接建立完成)、Msg5(RRC连接建立完成)的发送次数是否达到门限;天线切换单元,用于终端在随机接入过程中检测到Msg1(随机接入前导)、Msg3(RRC连接建立请求或者RRC连接建立完成)、Msg5(RRC连接建立完成)的发送次数达到门限时,根据是否满足一定的条件或者根据优先级将上行发送天线切换到下一根天线。Another aspect of the present application provides an antenna selection device for random access, including: an antenna selection unit for selecting an uplink transmission antenna when a terminal transmits Msg1 (random access preamble) for the first time in a random access process ; The data sending unit is used for the terminal to send uplink data in the random access process, including Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment complete), Msg5 (RRC connection establishment complete); Data reception The unit is used for the terminal to receive downlink data in the random access process, including RAR (random access response), Msg3 (RRC connection establishment request or RRC connection establishment complete) retransmission scheduling, Msg4 (RRC connection establishment), Msg5 ( The retransmission scheduling of the RRC connection establishment is completed; the data transmission judgment unit is used for the terminal to judge Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg5 (RRC connection establishment) during the random access process. Whether the number of times of sending the establishment complete) reaches the threshold; the antenna switching unit is used for the terminal to detect Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg5 (RRC connection) during the random access process. When the number of times of sending (setup completed) reaches the threshold, the uplink sending antenna is switched to the next antenna according to whether certain conditions are met or according to the priority.
附图说明Description of drawings
图1A为终端设备的结构图;1A is a structural diagram of a terminal device;
图1B为终端设备的天线系统图;1B is an antenna system diagram of a terminal device;
图2为本申请实施例提供的移动通信系统的结构示意图;FIG. 2 is a schematic structural diagram of a mobile communication system provided by an embodiment of the present application;
图3为终端的竞争随机接入的基本流程图;Fig. 3 is the basic flow chart of the contention random access of terminal;
图4为本申请实施例提供的一种天线选择的方法的总流程图;FIG. 4 is a general flowchart of a method for antenna selection provided by an embodiment of the present application;
图5A为本申请的一个实施例的竞争随机接入过程中上行发送天线选择的流程图;5A is a flowchart of uplink transmit antenna selection in a contention random access process according to an embodiment of the present application;
图5B为本申请的一个实施例的非竞争随机接入过程中上行发送天线选择的流程图;5B is a flowchart of uplink transmit antenna selection in a non-contention random access process according to an embodiment of the present application;
图6为本申请的另一个实施例的竞争随机接入过程中上行发送天线选择的流程图;6 is a flowchart of uplink transmit antenna selection in a contention random access process according to another embodiment of the present application;
图7为本申请实施例提供的一种随机接入的天线优选装置;FIG. 7 is a random access antenna selection device provided by an embodiment of the present application;
图8为本申请实施例提供的一种终端的结构示意图;FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application;
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。As used herein, "plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
下面结合图1A对终端设备的结构进行介绍:The following describes the structure of the terminal device with reference to FIG. 1A :
图1A为本申请实施例提供的终端设备的结构示意图,参见图1A,终端100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial 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等。1A is a schematic structural diagram of a terminal device provided by an embodiment of the present application. Referring to FIG. 1A , the terminal 100 may include: a processor 110 , an external memory interface 120 , an internal memory 121 , and a universal serial bus (USB) interface 130 , charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 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 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope 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 structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal 100 . In other embodiments of the present application, the terminal 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,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 processor (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) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是终端100的神经中枢和指挥中心。控制器可以根据指令 操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the terminal 100 . The controller can generate operation control signals according to the instruction opcode and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 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 just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the 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 circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (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 that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the terminal 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an 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, so as to realize 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, sampling, quantizing and encoding 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, so as to realize the function of answering calls through the 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 may 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 typically used to connect the processor 110 with 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, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial 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 (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the terminal 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the terminal 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as 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 conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal 100, and can also be used to transmit data between the terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminals, such as AR devices, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端100的结构限定。在本申请另一些实施例中,终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that, the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the terminal 100 . In other embodiments of the present application, the terminal 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端供电。The charging management module 140 is used to receive charging input from the charger. The charger may 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 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the terminal 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 for connecting 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 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). 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 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal 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, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少 部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
在一些实施例中,天线1可以包括多根天线,多根天线共用同一个射频电路,移动通信模块150可以通过多根天线发送电磁波,也可以通过多根天线接收电磁波。比如天线1可以包括4根天线,终端可以在4根天线上同时接收基站发送的信号,如果终端支持2根天线同时发送,终端可以根据基站的调度选择4根天线中的1根天线或者2根天线进行上行数据的发送。一般终端会将4根天线部署在终端的4个角落。In some embodiments, the antenna 1 may include multiple antennas, and the multiple antennas share the same radio frequency circuit, and the mobile communication module 150 may transmit electromagnetic waves through the multiple antennas, and may also receive electromagnetic waves through the multiple antennas. For example, antenna 1 may include 4 antennas, and the terminal can simultaneously receive signals sent by the base station on the 4 antennas. If the terminal supports simultaneous transmission by 2 antennas, the terminal can select 1 or 2 of the 4 antennas according to the scheduling of the base station. The antenna transmits uplink data. Generally, the terminal will deploy 4 antennas at the 4 corners of the terminal.
图1B示出了一种终端100的天线系统,该天线系统包括:第一天线11、第二天线12、第三天线13、第四天线14、天线切换电路15、射频RF前端电路16、收发器17、切换控制路径18以及基带电路19。射频RF前端电路16可包括滤波电路和其他部件。天线切换电路15被图示为插入在射频RF前端电路16和天线之间。可选的,射频RF前端电路16也可以包括天线切换电路15。天线切换电路15用于通过控制路径18选择性地将传输信号路由至第一天线11、第二天线12、第三天线13以及第四天线14中的一个或者多个天线。控制信号可以通过控制路径18由基带电路19或者其他的控制电路提供给天线切换电路15。类似的,天线切换电路15用于通过控制路径18选择路由从第一天线11、第二天线12、第三天线13以及第四天线14中的一个或者多个天线上接收射频信号。FIG. 1B shows an antenna system of a terminal 100. The antenna system includes: a first antenna 11, a second antenna 12, a third antenna 13, a fourth antenna 14, an antenna switching circuit 15, a radio frequency RF front-end circuit 16, a transceiver controller 17 , switching control path 18 and baseband circuit 19 . The radio frequency RF front end circuit 16 may include filter circuits and other components. Antenna switching circuit 15 is shown interposed between radio frequency RF front-end circuit 16 and the antenna. Optionally, the radio frequency RF front-end circuit 16 may also include an antenna switching circuit 15 . The antenna switching circuit 15 is used to selectively route the transmission signal to one or more of the first antenna 11 , the second antenna 12 , the third antenna 13 and the fourth antenna 14 through the control path 18 . The control signal may be provided to the antenna switching circuit 15 by the baseband circuit 19 or other control circuit through the control path 18 . Similarly, the antenna switching circuit 15 is configured to route through the control path 18 to receive radio frequency signals from one or more of the first antenna 11 , the second antenna 12 , the third antenna 13 and the fourth antenna 14 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the 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上的包括无线局域网(wireless local 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 applications on the terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (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 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS), 码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,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),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal 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 (CDMA), broadband 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 (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is 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-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be 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 (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the terminal 100 may include one or N display screens 194 , where N is a positive integer greater than one.
终端100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
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 photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits 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 tone. 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 is projected through the lens to generate an optical image 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 transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the terminal 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and so on.
视频编解码器用于对数字视频压缩或解压缩。终端100可以支持一种或多种视频编解码器。这样,终端100可以播放或录制多种编码格式的视频,例如:动 态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Terminal 100 may support one or more video codecs. In this way, the terminal 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the terminal 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口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 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc 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 various functional applications and data processing of the terminal 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 100 and the like. 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), and the like.
终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. 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 referred to as a "speaker", is used to convert audio electrical signals into sound signals. The terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the terminal 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端100可以设置至少一个麦克风170C。在另一些实施例中,终端100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The 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 make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The terminal 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, 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 provided on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The terminal 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the 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 attitude of the terminal 100 . In some embodiments, the angular velocity of terminal 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the angle at which the terminal 100 shakes, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shake of the terminal 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,终端100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。终端100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端100是翻盖机时,终端100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The terminal 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the terminal 100 is a flip machine, the terminal 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测终端100在各个方向上(一般为三轴)加速度的大小。当终端100静止时可检测出重力的大小及方向。还可以用于识别终端姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal 100 in various directions (generally three axes). When the terminal 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the terminal posture, and can be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。终端100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The terminal 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the terminal 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端100通过发光二极管向外发射红外光。终端100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端100附近有物体。当检测到不充分的反射光时,终端100可以确定终端100附近没有物体。终端100可以利用接近光传感器180G检测用户手持终端100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The terminal 100 emits infrared light to the outside through light emitting diodes. The terminal 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 100 . When insufficient reflected light is detected, the terminal 100 may determine that there is no object near the terminal 100 . The terminal 100 can use the proximity light sensor 180G to detect that the user holds the terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used in holster mode, 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 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 100 is in a pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
温度传感器180J用于检测温度。在一些实施例中,终端100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端100对电池142加热,以避免低温导致终端100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal 100 heats the battery 142 to avoid abnormal shutdown of the terminal 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal 100 boosts 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 may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal 100 , which is different from the position where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The 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 voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端100可以接收按键输入,产生与终端100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The terminal 100 may receive key input and generate key signal input related to user settings and function control of the terminal 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
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 contacted and separated from the terminal 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The terminal 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. 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 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal 100 employs an eSIM, ie an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100 .
终端100还可以包括有磁力计(图中未示出),又可称为电子罗盘、指南针,可用于检测磁场强度以及方向。The terminal 100 may also include a magnetometer (not shown in the figure), which may also be called an electronic compass and a compass, which may be used to detect the strength and direction of the magnetic field.
参考图2,其示出了本申请实施例提供的移动通信系统200的结构示意图。该移动通信系统可以是第三代移动通信技术3G(3rd generation)系统,或者是长期演进(Long Term Evolution,LTE)系统,或者是第五代移动通信技术5G新空口(new radio,NR)系统,也可以是机器与机器通信(Machine To Machine,M2M)系统,还可以是未来演进的第六代通信系统。该移动通信系统包括:基站220和终端240以及核心网设备260。Referring to FIG. 2 , it shows a schematic structural diagram of a mobile communication system 200 provided by an embodiment of the present application. The mobile communication system may be a third-generation mobile communication technology 3G (3rd generation) system, or a Long Term Evolution (LTE) system, or a fifth-generation mobile communication technology 5G new radio (NR) system , it can also be a machine to machine communication (Machine To Machine, M2M) system, or it can be a sixth-generation communication system that will evolve in the future. The mobile communication system includes: a base station 220 , a terminal 240 and a core network device 260 .
基站220可用于将接收到的无线帧与IP分组报文进行相互转换,还可以协调对空中接口的属性管理。例如,基站220可以是LTE中的演进型基站(eNB,evolution Node B),或者,5G系统中采用的集中分布式架构的基站。基站也可以是接入点(Access Point,AP)、传输节点(Trans Point,TRP)、中心单元(Central Unit,CU)或者其他网络实体,并且可以包括以上网络实体的功能中的一些或所有功能。另外,基站220还包括中继站,中继站是从上游站接收数据和/或其他信息的传输以及向下游站发送数据和/或其他信息的传输的站。中继站还可以是为其他终端提供中继传输的终端。中继站还可以被称作为中继器。The base station 220 can be used to convert the received radio frame and the IP packet to each other, and can also coordinate the attribute management of the air interface. For example, the base station 220 may be an evolution base station (eNB, evolution Node B) in LTE, or a base station with a centralized and distributed architecture adopted in the 5G system. A base station may also be an access point (Access Point, AP), a transit node (Trans Point, TRP), a central unit (Central Unit, CU) or other network entities, and may include some or all of the functions of the above network entities . Additionally, base station 220 also includes relay stations, which are stations that receive transmissions of data and/or other information from upstream stations and send transmissions of data and/or other information to downstream stations. A relay station may also be a terminal that provides relay transmission for other terminals. A relay station may also be referred to as a repeater.
移动通信系统200可以是包括不同类型的基站(例如,宏站、微微站、毫微站、中继器等)的异构系统。这些不同的类型的基站可以具有不同的发送功率电平、不同的覆盖区域以及不同的干扰影响。例如,宏站可以具有高发射功率电平(例如,20瓦特),而微微站、毫微站和中继器可以具有较低的发射功率电平(例如,1瓦特)。The mobile communication system 200 may be a heterogeneous system including different types of base stations (eg, macros, picos, femtos, repeaters, etc.). These different types of base stations may have different transmit power levels, different coverage areas, and different interference effects. For example, macro stations may have high transmit power levels (eg, 20 watts), while pico stations, femto stations, and repeaters may have lower transmit power levels (eg, 1 watt).
基站220和终端240通过无线空口建立无线连接。该无线空口可以是基于LTE标准的无线空口,或者,该无线空口是基于5G标准的无线空口,比如该无线空口是NR,或者,该无线空口也可以是基于5G的更下一代移动通信网络技术标准的无线空口。The base station 220 and the terminal 240 establish a wireless connection through a wireless air interface. The wireless air interface may be a wireless air interface based on the LTE standard, or the wireless air interface may be a wireless air interface based on a 5G standard, for example, the wireless air interface is NR, or the wireless air interface may also be a next-generation mobile communication network technology based on 5G Standard wireless air interface.
终端240可以是指向用户提供语音和/或数据通信的设备。终端可以经基站220提供的无线接入网(Radio Access Network,RAN)与一个或多个核心网设备260进行通信。终端240可以是移动终端,如移动电话和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。 Terminal 240 may be a device that provides voice and/or data communications to a user. The terminal may communicate with one or more core network devices 260 via a radio access network (Radio Access Network, RAN) provided by the base station 220 . The terminal 240 may be a mobile terminal, such as a mobile phone and a computer having a mobile terminal, for example, may be a portable, pocket-sized, hand-held, computer-built, or vehicle-mounted mobile device.
具体的,基站220可用于在网络设备控制器(图2中未示出)的控制下,通过无线接口230与终端240通信。在一些实施例中,所述网络设备控制器可以是核心网设备260的一部分,也可以集成到基站220中。基站220可以通过接口250(如S1接口)向核心网设备260传输信息或者用户数据。基站220与基站220之间也可以通过接口(如X2接口,图2中未示出)相互通信。Specifically, the base station 220 may be configured to communicate with the terminal 240 through the wireless interface 230 under the control of a network device controller (not shown in FIG. 2 ). In some embodiments, the network device controller may be a part of the core network device 260 , or may be integrated into the base station 220 . The base station 220 may transmit information or user data to the core network device 260 through the interface 250 (eg, the S1 interface). The base station 220 and the base station 220 may also communicate with each other through an interface (eg, an X2 interface, not shown in FIG. 2 ).
需要说明的,图2示出的无线通信系统200仅仅是为了更加清楚的说明本申请的技术方案,并不构成对本申请的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。It should be noted that the wireless communication system 200 shown in FIG. 2 is only for illustrating the technical solutions of the present application more clearly, and does not constitute a limitation on the present application. Those skilled in the art know that with the evolution of the network architecture and new services When a scenario occurs, the technical solutions provided in this application are also applicable to similar technical problems.
在长期演进(Long Term Evolution,LTE)移动通信系统和新空口(New Radio,NR)移动通信系统中,多输入多输出(Multiple-Input Multiple-Output,MIMO)技术是关键技术之一。MIMO技术依赖于多天线传输技术,所谓多天线传输技术,即在发送端和接收端均使用多根天线进行数据的发送和接收。一般来说,多天线发送和接收能够提供功率增益、阵列增益、分集增益、复用增益和赋形增益。In a Long Term Evolution (LTE) mobile communication system and a New Radio (NR) mobile communication system, the Multiple-Input Multiple-Output (MIMO) technology is one of the key technologies. The MIMO technology relies on the multi-antenna transmission technology, the so-called multi-antenna transmission technology, that is, using multiple antennas at both the transmitting end and the receiving end to transmit and receive data. Generally speaking, multi-antenna transmission and reception can provide power gain, array gain, diversity gain, multiplexing gain and shaping gain.
功率增益是指每根天线上的发射功率可以在接收端进行叠加,从而达到功率增强的效果。Power gain means that the transmit power on each antenna can be superimposed at the receiving end to achieve the effect of power enhancement.
阵列增益主要是利用了白噪声的无相关性,合并后会相互抵消,而载波信号叠加后能够增强,因此阵列增益可以提高接收端的信噪比,提高接收信号质量,从而提升小区覆盖性能,特别是在信道质量较差的情况下可有效改善用户体验。The array gain mainly uses the non-correlation of white noise, which will cancel each other after combining, and the carrier signal can be enhanced after being superimposed. Therefore, the array gain can improve the signal-to-noise ratio of the receiving end, improve the quality of the received signal, and thus improve the cell coverage performance, especially It can effectively improve the user experience in the case of poor channel quality.
分集增益主要是利用了空间信道衰落的独立性,通过多天线同时发送相同数据,减少衰落信道下信噪比的波动,从而带来性能上的增益。Diversity gain mainly utilizes the independence of spatial channel fading, transmits the same data simultaneously through multiple antennas, reduces the fluctuation of signal-to-noise ratio under fading channel, and brings about performance gain.
复用增益是指在信号质量较好的情况,通过将同一用户的两个不同的数据或者是将不同用户的数据流,复用到相同的时频资源上,从而提高小区吞吐量以及峰值容量。复用增益也叫做空分复用,两根天线同时分别发送不同的信号,即两根天线分别发送不同的流。系统可以支持的最大流数等于天线的个数。The multiplexing gain refers to the improvement of cell throughput and peak capacity by multiplexing two different data of the same user or data streams of different users onto the same time-frequency resources when the signal quality is good. . Multiplexing gain is also called space division multiplexing. Two antennas transmit different signals at the same time, that is, two antennas transmit different streams respectively. The maximum number of streams that the system can support is equal to the number of antennas.
赋形增益是指多根天线采用波束赋形技术进行信号的发射,波束赋形可以起到发射信号对准接收方的作用。没有波束赋形的无线信号可以比喻为白炽灯照明,有波束赋形的无线信号可以比喻为手电筒照明。波束赋形可以和空分复用同时采用,不过波束赋形由于需要使用多根天线形成波束的原因,因此需要满足总的流数小于天线个数。Shaped gain means that multiple antennas use beamforming technology to transmit signals, and beamforming can play the role of aligning the transmitted signal to the receiver. Wireless signals without beamforming can be compared to incandescent lighting, and wireless signals with beamforming can be compared to flashlight lighting. Beamforming and space division multiplexing can be used at the same time, but beamforming needs to use multiple antennas to form beams, so the total number of streams needs to be less than the number of antennas.
为了支持MIMO技术,终端和基站都需要设计成多天线的结构,基站给终端发送数据的时候,下行发送天线的选择由基站完成。终端给基站发送数据的时候,上行发送天线的选择根据有无反馈分为开环天线选择和闭环天线选择,这里的反馈是指基站对终端发送的信号进行测量后给终端的反馈。当上行发送天线的选择为开环天线选择时,上行发送天线的选择由终端完成;当上行发送天线的选择为闭环天线选择时,上行发送天线的选择由基站完成。另外终端在使用的过程中,常常会出现上行天线被遮挡的情况,比如用户手握终端时,如果握持了某根天线所在的部位会导致该天线的上行信号衰减大,影响业务体验。终端的多天线设计使得终端可以选择在不同的天线上进行上行数据的发送,从而解决其中一根天线被遮挡导致数据无法发送的问题。In order to support the MIMO technology, both the terminal and the base station need to be designed with a multi-antenna structure. When the base station sends data to the terminal, the selection of the downlink transmit antenna is completed by the base station. When the terminal sends data to the base station, the selection of the uplink transmission antenna is divided into open-loop antenna selection and closed-loop antenna selection according to whether there is feedback. The feedback here refers to the feedback from the base station to the terminal after measuring the signal sent by the terminal. When the selection of the uplink transmission antenna is the open-loop antenna selection, the selection of the uplink transmission antenna is completed by the terminal; when the selection of the uplink transmission antenna is the closed-loop antenna selection, the selection of the uplink transmission antenna is completed by the base station. In addition, when the terminal is in use, the uplink antenna is often blocked. For example, when the user holds the terminal, if the user holds the part where the antenna is located, the uplink signal of the antenna will be attenuated greatly, affecting the service experience. The multi-antenna design of the terminal allows the terminal to select different antennas to transmit uplink data, thereby solving the problem that data cannot be transmitted due to one of the antennas being blocked.
协议中规定了终端在RRC(Radio Resource Control,无线资源控制)连接态下的天线选择技术包括开环天线选择技术和闭环天线选择技术。终端如果支持上 行天线选择,则将该能力上报给基站,基站通过RRC配置消息通知终端使用开环天线选择技术或者闭环天线选择技术。如果配置为开环天线选择技术,那么终端可以根据自身的实现来进行上行发送天线的选择。在开环天线选择技术中,一般终端会进行一定周期的下行参考信号的测量得到各个天线的下行测量指标,然后对各个天线的下行测量指标进行平滑处理,最终根据平滑处理后的下行测量指标选择质量最好的天线作为上行发送天线。The protocol specifies that the antenna selection technology of the terminal in the RRC (Radio Resource Control, Radio Resource Control) connection state includes an open-loop antenna selection technology and a closed-loop antenna selection technology. If the terminal supports uplink antenna selection, it reports the capability to the base station, and the base station notifies the terminal to use the open-loop antenna selection technology or the closed-loop antenna selection technology through an RRC configuration message. If it is configured as an open-loop antenna selection technology, the terminal can select the uplink transmit antenna according to its own implementation. In the open-loop antenna selection technology, the terminal will generally measure the downlink reference signal for a certain period to obtain the downlink measurement indicators of each antenna, and then smooth the downlink measurement indicators of each antenna, and finally select based on the smoothed downlink measurement indicators. The antenna with the best quality is used as the uplink transmitting antenna.
然而协议中并没有规定终端在RRC连接建立过程中如何进行上行发送天线的选择,RRC连接建立也被称为随机接入(Random Access,RA),随机接入的类型包括竞争随机接入和非竞争随机接入。终端只有通过随机接入和基站建立连接后,才能获得网络提供的服务。在LTE系统和NR系统中,终端通过随机接入过程与基站建立连接,其中竞争随机接入的基本流程如图3所示:However, the protocol does not specify how the terminal selects the uplink transmission antenna during the RRC connection establishment process. RRC connection establishment is also called random access (Random Access, RA). The types of random access include contention random access and non-random access. Contention random access. The terminal can obtain the services provided by the network only after establishing a connection with the base station through random access. In the LTE system and the NR system, the terminal establishes a connection with the base station through the random access process, and the basic process of competing for random access is shown in Figure 3:
S301,终端发送随机接入前导Preamble(用Msg1表示),基站通过检测Preamble获得Preamble ID,并估计上行传输时延。S301, the terminal sends a random access preamble (represented by Msg1), the base station obtains the Preamble ID by detecting the Preamble, and estimates the uplink transmission delay.
S302,基站给终端回复随机接入响应RAR(Random Access Response,用Msg2表示)。RAR(随机接入响应)中携带以下信息:与上行传输时延对应的定时提前量,Preamble ID,基站为该终端分配的临时用户标识,以及上行调度资源授权信息。S302, the base station replies a random access response RAR (Random Access Response, represented by Msg2) to the terminal. The RAR (Random Access Response) carries the following information: the timing advance corresponding to the uplink transmission delay, the Preamble ID, the temporary user identifier allocated by the base station to the terminal, and the uplink scheduling resource authorization information.
S303,终端发送RRC连接建立请求(用Msg3表示)给基站。终端根据RAR(随机接入响应)中的定时提前量进行上行定时的调整,并且根据RAR(随机接入响应)中的上行调度资源授权信息发送RRC连接建立请求给基站,Msg3(RRC连接建立请求)中携带基站在RAR(随机接入响应)中为终端分配的临时用户标识。S303, the terminal sends an RRC connection establishment request (represented by Msg3) to the base station. The terminal adjusts the uplink timing according to the timing advance in the RAR (random access response), and sends an RRC connection establishment request to the base station according to the uplink scheduling resource grant information in the RAR (random access response), Msg3 (RRC connection establishment request) ) carries the temporary user identity allocated to the terminal in the RAR (Random Access Response) by the base station.
S304,基站发送RRC连接建立消息(用Msg4表示)给终端。Msg4(RRC连接建立消息)中携带竞争解决MCE(MAC Control Element),该步骤解决了由于多个终端试图使用同一个随机接入资源和相同的Preamble ID接入时产生的竞争和冲突。S304, the base station sends an RRC connection establishment message (represented by Msg4) to the terminal. Msg4 (RRC connection establishment message) carries contention resolution MCE (MAC Control Element), which solves the contention and conflict caused when multiple terminals try to access using the same random access resource and the same Preamble ID.
S305,终端向基站发送RRC连接建立完成消息(用Msg5表示)。该步骤结束后,终端便完成了和基站的RRC连接的建立流程。S305, the terminal sends an RRC connection establishment complete message (represented by Msg5) to the base station. After this step is completed, the terminal completes the process of establishing the RRC connection with the base station.
从上面描述的随机接入流程中可以知道,其中Msg1(随机接入前导)、Msg3(RRC连接建立请求)、Msg5(RRC连接建立完成)为终端在随机接入过程中发送给基站的上行数据。由于在随机接入流程中,终端还未完成和基站的RRC连接的建立,基站无法通过给终端发送RRC配置消息的方式来配置具体的上行天线选择技术。It can be known from the random access procedure described above that Msg1 (random access preamble), Msg3 (RRC connection establishment request), Msg5 (RRC connection establishment completed) are the uplink data sent by the terminal to the base station during the random access process . Since in the random access procedure, the terminal has not completed the establishment of the RRC connection with the base station, the base station cannot configure a specific uplink antenna selection technology by sending an RRC configuration message to the terminal.
在随机接入建立连接的过程中,终端无法获得一个较长的时间周期的下行测量指标,因此在随机接入过程中无法通过周期评估来选择最优天线。如果随机接入过程中一直使用某个信号质量差的天线发送上行数据,就可能导致接入慢或者 接入失败的问题,从而影响终端的业务体验。In the process of establishing a connection through random access, the terminal cannot obtain a downlink measurement index for a long period of time, so the optimal antenna cannot be selected through periodic evaluation during the random access process. If an antenna with poor signal quality is always used to send uplink data during random access, it may cause slow access or access failure, which affects the service experience of the terminal.
在现有技术中,假设终端设计有4根天线,分别为第一天线、第二天线、第三天线以及第四天线,其中第一天线为终端的默认天线。终端在随机接入过程中首先在默认天线上尝试发送Msg1(随机接入前导),如果终端在固定的时间窗内没有接收到基站发送的RAR(随机接入响应),而且尝试发送Msg1(随机接入前导)的次数达到了预设的次数,终端会切换到第二天线尝试发送。终端在第二天线上尝试发送Msg1(随机接入前导)达到预设次数仍然没有收到基站发送的RAR(随机接入响应)时,再切换到第三天线上进行Msg1(随机接入前导)的尝试发送。如果终端在第三天线上发送Msg1(随机接入前导)并且在固定的时间窗内接收到了基站发送的RAR(随机接入响应),则将在第三天线上继续发送Msg3(RRC连接建立请求)。终端发送Msg3(RRC连接建立请求)后如果接收到基站对Msg3(RRC连接建立请求)的重传调度并且终端在第三天线上发送Msg3(RRC连接建立请求)的次数达到了预设次数,则切换到第四天线上进行Msg3(RRC连接建立请求)的尝试发送。终端在第四天线上发送Msg3(RRC连接建立请求)后接收到基站发送的Msg4(RRC连接建立),那么终端继续在第四天线上发送Msg5(RRC连接建立完成)。终端发送Msg5(RRC连接建立完成)后如果接收到基站对Msg5(RRC连接建立完成)的重传调度并且终端在第四天线上发送Msg5(RRC连接建立完成)的次数达到了预设次数,则切换到第一天线上进行Msg5(RRC连接建立完成)的尝试发送。终端成功发送完Msg5(RRC连接建立完成)后,终端便完成了和基站的RRC连接的建立流程。In the prior art, it is assumed that the terminal is designed with four antennas, namely the first antenna, the second antenna, the third antenna and the fourth antenna, wherein the first antenna is the default antenna of the terminal. In the random access process, the terminal first tries to send Msg1 (random access preamble) on the default antenna. If the terminal does not receive the RAR (random access response) sent by the base station within a fixed time window, and tries to send Msg1 (random access response) If the number of access preambles) reaches a preset number of times, the terminal will switch to the second antenna to try to send. When the terminal attempts to send Msg1 (random access preamble) on the second antenna for a preset number of times and still does not receive the RAR (random access response) sent by the base station, it switches to the third antenna for Msg1 (random access preamble) attempt to send. If the terminal sends Msg1 (random access preamble) on the third antenna and receives the RAR (random access response) sent by the base station within a fixed time window, it will continue to send Msg3 (RRC connection establishment request) on the third antenna ). After the terminal sends Msg3 (RRC connection establishment request), if it receives the retransmission scheduling of Msg3 (RRC connection establishment request) by the base station and the number of times the terminal sends Msg3 (RRC connection establishment request) on the third antenna reaches the preset number of times, then Switch to the fourth antenna to attempt to send Msg3 (RRC connection establishment request). After the terminal sends Msg3 (RRC connection establishment request) on the fourth antenna and receives Msg4 (RRC connection establishment) sent by the base station, the terminal continues to send Msg5 on the fourth antenna (RRC connection establishment completed). After the terminal sends Msg5 (RRC connection establishment completed), if it receives the retransmission scheduling of Msg5 (RRC connection establishment completed) by the base station and the number of times the terminal sends Msg5 on the fourth antenna (RRC connection establishment completed) reaches the preset number, then Switch to the first antenna to attempt to send Msg5 (RRC connection establishment completed). After the terminal successfully sends the Msg5 (the RRC connection establishment is completed), the terminal completes the process of establishing the RRC connection with the base station.
从上述现有技术的描述中可以看出,在随机接入过程中当默认天线(即第一天线)被遮挡导致该天线的信号较差时,现有技术通过失败后顺序切换的方式进行上行发送天线的选择。当终端的第四天线为最优天线时,终端按照上述描述的顺序进行上行天线的切换,需要较长的时间才能切换到最优的天线上进行上行数据的发送。尤其是在高速移动的场景下,等终端切换到第四天线上进行尝试发送时可能信号质量已经变差了。另外现有技术中的顺序切换的方式对于比当前天线信号质量差很多的天线仍然会去尝试,这样会增加用户随机接入的时延,影响用户的体验。It can be seen from the above description of the prior art that in the random access process, when the default antenna (ie, the first antenna) is blocked and the signal of the antenna is poor, the prior art performs uplink through sequential switching after failure. Selection of transmit antenna. When the fourth antenna of the terminal is the optimal antenna, the terminal switches the uplink antenna according to the sequence described above, and it takes a long time to switch to the optimal antenna to transmit uplink data. Especially in the scenario of high-speed movement, when the terminal switches to the fourth antenna to attempt transmission, the signal quality may have deteriorated. In addition, the method of sequential switching in the prior art will still be tried for antennas whose signal quality is much worse than that of the current antenna, which will increase the time delay of random access of users and affect user experience.
为了解决上述随机接入过程中上行天线选择方式存在的问题,本申请实施例提供了一种天线选择的方法。如图4所示,首先终端在随机接入第一次发送Msg1(随机接入前导)时,增加一种初始天线优选机制,根据瞬时的下行测量指标选择最优天线作为第一天线,在第一天线上发送Msg1(随机接入前导);然后当Msg1(随机接入前导)和Msg3(RRC连接建立请求)以及Msg5(RRC连接建立完成)在当前天线发送失败的次数达到预设次数后根据第一条件从所述至少两根天线中选择最优天线作为第二天线,然后在第二天线上继续发送Msg1(随机接入前导)或Msg3(RRC连接建立请求)或Msg5(RRC连接建立完成)。这样可以提高终端在随机接入过程中上行数据发送成功的概率,增强了用户的体验。In order to solve the problem of the uplink antenna selection method in the above random access process, an embodiment of the present application provides a method for antenna selection. As shown in Figure 4, when the terminal sends Msg1 (random access preamble) for the first time in random access, an initial antenna selection mechanism is added, and the optimal antenna is selected as the first antenna according to the instantaneous downlink measurement index. Send Msg1 (random access preamble) on one antenna; then when Msg1 (random access preamble), Msg3 (RRC connection establishment request) and Msg5 (RRC connection establishment complete) are sent on the current antenna after the number of failures reaches the preset number, according to the The first condition selects the optimal antenna from the at least two antennas as the second antenna, and then continues to send Msg1 (random access preamble) or Msg3 (RRC connection establishment request) or Msg5 (RRC connection establishment complete) on the second antenna ). In this way, the probability of successful uplink data transmission of the terminal in the random access process can be improved, and the user experience can be enhanced.
在NR系统中,终端在随机接入前可以通过测量SSB(Synchronization Signal and PBCH block,同步信号和PBCH块)中的PBCH(Physical Broadcast Channel,物理广播信道)的DMRS(Demodulation Reference Signal,解调参考信号)来获得每一根天线上的下行测量指标。在LTE系统中,终端在随机接入前可以通过测量CRS(Cell Reference Signal,小区参考信号)来获得每一根天线上的下行测量指标。这里的下行测量指标可以是RSRP(Reference Signal Receiving Power,参考信号接收功率)、SINR(Signal to Interference plus Noise Ratio,信号与干扰加噪声比)或者RSRQ(Reference Signal Receiving Quality,参考信号接收质量)等。In the NR system, the terminal can measure the DMRS (Demodulation Reference Signal, demodulation reference signal) of the PBCH (Physical Broadcast Channel) in the SSB (Synchronization Signal and PBCH block) before random access. signal) to obtain downlink measurements on each antenna. In the LTE system, the terminal can obtain downlink measurement indicators on each antenna by measuring CRS (Cell Reference Signal, cell reference signal) before random access. The downlink measurement indicators here can be RSRP (Reference Signal Receiving Power, reference signal receiving power), SINR (Signal to Interference plus Noise Ratio, signal to interference plus noise ratio) or RSRQ (Reference Signal Receiving Quality, reference signal receiving quality), etc. .
另外在NR系统和LTE系统中,SSB和CRS都是周期性发送的,比如在NR系统中,SSB可以按照20ms的周期进行发送,终端在随机接入过程中可以根据最新的测量结果实时刷新各天线的下行测量指标,也可以在随机接入过程中一直使用在随机接入前测量得到的下行测量指标。In addition, in the NR system and the LTE system, both SSB and CRS are sent periodically. For example, in the NR system, the SSB can be sent according to a period of 20ms. During the random access process, the terminal can update each The downlink measurement index of the antenna can also be used in the random access process all the time using the downlink measurement index measured before the random access.
结合图2给出的移动通信系统,假设终端220设计有至少两根天线,图5A给出了本申请的一个实施例的竞争随机接入过程中上行发送天线选择的流程图,包括:With reference to the mobile communication system given in FIG. 2 , assuming that the terminal 220 is designed with at least two antennas, FIG. 5A shows a flowchart of uplink transmission antenna selection in the contention random access process according to an embodiment of the present application, including:
S501,终端在第一次发送Msg1(随机接入前导)时,检测默认天线的下行测量指标是否低于预设门限,当默认天线的下行测量指标低于预设门限时,则进入步骤S502;当默认天线的下行测量指标不低于预设门限时,则默认天线为最优天线,选择该默认天线为第一天线,即维持默认天线为当前天线进入步骤S503。在一种可选的实施方式中,下行测量指标可以是根据参考信号测量得到的RSRP,此时预设门限可以设置为-100dBm。在另一种可选的实施方式中,下行测量指标可以是根据参考信号测量得到的RSRQ,此时预设门限可以设置为-15dB。S501, when the terminal sends the Msg1 (random access preamble) for the first time, it detects whether the downlink measurement index of the default antenna is lower than a preset threshold, and when the downlink measurement index of the default antenna is lower than the preset threshold, it goes to step S502; When the downlink measurement index of the default antenna is not lower than the preset threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna and goes to step S503. In an optional implementation manner, the downlink measurement indicator may be RSRP measured according to the reference signal, and the preset threshold may be set to -100dBm in this case. In another optional implementation manner, the downlink measurement indicator may be the RSRQ measured according to the reference signal, and the preset threshold may be set to -15dB in this case.
S502,终端获得最优的当前天线。具体的,终端选择除默认天线外的其余天线中下行测量指标最好的天线作为候选天线。如果该候选天线的下行测量指标高于默认天线的下行测量指标加上第一门限,则候选天线为最优天线,选择该候选天线为第一天线,并且将当前天线切换到该第一天线;如果该候选天线的下行测量指标不高于默认天线的下行测量指标加上第一门限,则默认天线为最优天线,选择默认天线为第一天线,即维持默认天线为当前天线。需要说明的是这里设置第一门限的原因是,终端中一般默认天线为主天线,而主天线是终端中工艺最好的天线,因此如果候选天线的下行测量指标没有高于默认天线的下行测量指标一定程度时,默认天线是最优的选择。当下行测量指标是终端根据参考信号测量得到的RSRP时,在一种可选的实施方式中,第一门限可以设置为3dB。S502, the terminal obtains the optimal current antenna. Specifically, the terminal selects the antenna with the best downlink measurement index among the other antennas except the default antenna as the candidate antenna. If the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna, the candidate antenna is selected as the first antenna, and the current antenna is switched to the first antenna; If the downlink measurement index of the candidate antenna is not higher than the downlink measurement index of the default antenna plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna. It should be noted that the reason for setting the first threshold here is that the default antenna in the terminal is generally the main antenna, and the main antenna is the antenna with the best technology in the terminal. Therefore, if the downlink measurement index of the candidate antenna is not higher than the downlink measurement of the default antenna When the index is to a certain extent, the default antenna is the optimal choice. When the downlink measurement indicator is the RSRP measured by the terminal according to the reference signal, in an optional implementation manner, the first threshold may be set to 3dB.
S503,终端在当前天线上发送Msg1(随机接入前导)。终端发送Msg1(随机接入前导)后在固定的时间窗内等待接收基站发送的RAR(随机接入响应)。如果终端在固定的时间窗内没有接收到RAR(随机接入响应),则进入步骤S504;如果终端在固定的时间窗内成功接收到了RAR(随机接入响应),则进入步骤S506。S503, the terminal sends Msg1 (random access preamble) on the current antenna. After the terminal sends the Msg1 (random access preamble), it waits to receive the RAR (random access response) sent by the base station within a fixed time window. If the terminal does not receive the RAR (random access response) within the fixed time window, it goes to step S504; if the terminal successfully receives the RAR (random access response) within the fixed time window, it goes to step S506.
S504,终端判断在当前天线上发送Msg1(随机接入前导)的次数是否达到第一预设次数。如果已经达到第一预设次数,则进入步骤S505;如果还未达到第一预设次数,则进入步骤S503。在一种可选的实施方式中,终端可以将在当前天线上发送Msg1(随机接入前导)的第一预设次数设置为2次。S504, the terminal determines whether the number of times of sending Msg1 (random access preamble) on the current antenna reaches a first preset number of times. If the first preset number of times has been reached, go to step S505; if the first preset number of times has not been reached, go to step S503. In an optional implementation manner, the terminal may set the first preset number of times of sending the Msg1 (random access preamble) on the current antenna to 2 times.
S505,终端判断下一根天线的下行测量指标是否满足第一条件。具体的该第一条件为终端的下一根天线的下行测量指标是否大于当前天线的下行测量指标减去第二门限,如果下一根天线的下行测量指标大于当前天线的下行测量指标减去第二门限,则终端选择该下一根天线作为第二天线,并且将当前天线切换到该第二天线后进入步骤S503;如果下一根天线的下行测量指标不大于当前天线的下行测量指标减去第二门限,则终端跳过该天线,重新执行步骤S505。需要说明的是这里将下一根天线的下行测量指标和当前天线的下行测量指标减去第二门限相比较,而不是将下一根天线的下行测量指标和当前天线的下行测量指标加上第二门限相比较,主要是考虑到天线发送数据的质量受到很多因素的影响,因此对于下行测量指标差一些的天线仍然需要进行尝试。当下行测量指标是根据参考信号测量得到的RSRP时,在一些可选的实施方式中,第二门限可以设置为9dB、3dB或者0dB。S505, the terminal determines whether the downlink measurement index of the next antenna satisfies the first condition. Specifically, the first condition is whether the downlink measurement indicator of the next antenna of the terminal is greater than the downlink measurement indicator of the current antenna minus the second threshold, if the downlink measurement indicator of the next antenna is greater than the downlink measurement indicator of the current antenna minus the first With two thresholds, the terminal selects the next antenna as the second antenna, switches the current antenna to the second antenna, and then goes to step S503; if the downlink measurement index of the next antenna is not greater than the downlink measurement index of the current antenna minus the downlink measurement index of the current antenna For the second threshold, the terminal skips the antenna, and performs step S505 again. It should be noted that the downlink measurement indicator of the next antenna is compared with the downlink measurement indicator of the current antenna minus the second threshold, rather than the downlink measurement indicator of the next antenna and the downlink measurement indicator of the current antenna plus the first Compared with the two thresholds, it is mainly considered that the quality of the data sent by the antenna is affected by many factors, so it is still necessary to try the antennas with poor downlink measurement indicators. When the downlink measurement indicator is the RSRP measured according to the reference signal, in some optional embodiments, the second threshold may be set to 9dB, 3dB or 0dB.
S506,终端在当前天线上发送Msg3(RRC连接建立请求)。终端在发送Msg3(RRC连接建立请求)后,如果成功接收到基站发送的Msg4(RRC连接建立),则进入步骤S509;如果接收到基站对Msg3(RRC连接建立请求)的重传调度时,则进入步骤S507;S506, the terminal sends Msg3 (RRC connection establishment request) on the current antenna. After the terminal sends Msg3 (RRC connection establishment request), if it successfully receives Msg4 (RRC connection establishment) sent by the base station, it enters step S509; if it receives the retransmission scheduling of Msg3 (RRC connection establishment request) by the base station, then Enter step S507;
S507,终端判断在当前天线上发送Msg3(RRC连接建立请求)的次数是否达到第二预设次数。如果已经达到第二预设次数,则进入步骤S508;如果还未达到第二预设次数,则进入步骤S506。在一种可选的实施方式中,当Msg3(RRC连接建立请求)的最大发送次数为5次,那么终端在当前天线上发送Msg3(RRC连接建立请求)的第二预设次数可以设置为3次。S507, the terminal determines whether the number of times of sending Msg3 (RRC connection establishment request) on the current antenna reaches a second preset number of times. If the second preset number of times has been reached, go to step S508; if the second preset number of times has not been reached, go to step S506. In an optional implementation manner, when the maximum number of times of sending Msg3 (RRC connection establishment request) is 5, the second preset times for the terminal to send Msg3 (RRC connection establishment request) on the current antenna may be set to 3 Second-rate.
S508,终端判断下一根天线的下行测量指标是否满足第一条件。具体的,该第一条件为终端的下一根天线的下行测量指标是否大于当前天线的下行测量指标减去第二门限,如果下一根天线的下行测量指标大于当前天线的下行测量指标减去第二门限,则终端选择该下一根天线作为第三天线,并且将当前天线切换到该第三天线,进入步骤S506。如果下一根天线的下行测量指标不大于当前天线的下行测量指标减去第二门限,则终端跳过该天线,重新执行步骤S508。其中第二门限的原理和设置可以参考步骤S502的描述,在此不再赘述。S508, the terminal determines whether the downlink measurement index of the next antenna satisfies the first condition. Specifically, the first condition is whether the downlink measurement indicator of the next antenna of the terminal is greater than the downlink measurement indicator of the current antenna minus the second threshold, and if the downlink measurement indicator of the next antenna is greater than the downlink measurement indicator of the current antenna minus the downlink measurement indicator For the second threshold, the terminal selects the next antenna as the third antenna, switches the current antenna to the third antenna, and proceeds to step S506. If the downlink measurement indicator of the next antenna is not greater than the downlink measurement indicator of the current antenna minus the second threshold, the terminal skips the antenna, and performs step S508 again. The principle and setting of the second threshold may refer to the description of step S502, which will not be repeated here.
S509,终端在当前天线上发送Msg5(RRC连接建立完成)。如果终端成功发送Msg5,便完成了和基站的RRC连接的建立流程;如果终端接收到基站对Msg5(RRC连接建立完成)的重传调度时,终端对上行发送天线的切换和发送Msg3(RRC连接建立请求)时的切换方式一致,此处不再赘述。S509, the terminal sends Msg5 on the current antenna (RRC connection establishment is completed). If the terminal successfully sends Msg5, the RRC connection establishment process with the base station is completed; if the terminal receives the retransmission scheduling of Msg5 (RRC connection establishment completed) by the base station, the terminal switches the uplink transmit antenna and sends Msg3 (RRC connection The switching method when establishing the request) is the same, and will not be repeated here.
从图5A给出的实施例中可以看出,终端在随机接入过程中第一次发送Msg1 (随机接入前导)时,根据下行测量指标对默认天线进行检测,当默认天线的下行测量指标不好时选择最优的天线进行Msg1(随机接入前导)的发送,增加了Msg1(随机接入前导)发送成功的概率。Msg1(随机接入前导)在当前天线上发送的次数达到预设次数时对下一根天线的下行测量指标进行判断,满足第一条件时终端将上行发送天线切换到该天线上进行尝试发送。Msg3(RRC连接建立请求)发送和Msg5(RRC连接建立完成)发送的上行天线的切换也遵循类似的原则,这样有效避免了在信号质量很差的天线上盲目尝试发送带来的随机接入流程的时延增加的问题。It can be seen from the embodiment given in FIG. 5A , when the terminal transmits Msg1 (random access preamble) for the first time in the random access process, the default antenna is detected according to the downlink measurement index. When it is not good, select the optimal antenna to transmit the Msg1 (random access preamble), which increases the probability of successful transmission of the Msg1 (random access preamble). Msg1 (random access preamble) judges the downlink measurement index of the next antenna when the number of transmissions on the current antenna reaches a preset number, and when the first condition is satisfied, the terminal switches the uplink transmission antenna to this antenna to attempt transmission. The switching of uplink antennas sent by Msg3 (RRC connection establishment request) and Msg5 (RRC connection establishment completed) transmission also follows a similar principle, which effectively avoids the random access process caused by blindly trying to send on antennas with poor signal quality. the problem of increased latency.
在LTE系统和NR系统中,随机接入的类型除了竞争随机接入,还存在非竞争随机接入。非竞争随机接入的使用场景包括终端的切换场景,NR非独立组网下的SCG(Secondary Cell Group,辅小区组)承载添加场景等。In the LTE system and the NR system, the types of random access include non-contention random access in addition to contention random access. The usage scenarios of non-contention random access include terminal handover scenarios, and SCG (Secondary Cell Group, secondary cell group) bearer addition scenarios under NR non-independent networking.
为了提高随机接入的成功率,非竞争随机接入流程中只有Msg1(随机接入前导)、Msg2(RAR,随机接入响应)以及Msg3(RRC连接建立完成)三条消息。需要说明的是,由于非竞争随机接入的流程只有三条消息,终端在发送完Msg3后随机接入流程就完成了,因此在非竞争随机接入流程中Msg3是RRC连接建立完成消息,而不是RRC连接建立请求消息。可以看出两种类型的随机接入的流程只有消息条数的区别,因此在图5A中描述的竞争随机接入流程的上行发送天线的选择,仍然适用于非竞争随机接入流程中发送Msg1(随机接入前导)和Msg3(RRC连接建立完成)时的上行发送天线的选择,下面对非竞争随机接入流程中的一个本申请实施例的上行发送天线选择的流程进行简单的介绍,同样假设终端设计有4根天线,如图5B所示,该流程包括:In order to improve the success rate of random access, there are only three messages in the non-contention random access procedure: Msg1 (random access preamble), Msg2 (RAR, random access response) and Msg3 (RRC connection establishment complete). It should be noted that since there are only three messages in the non-contention random access process, the random access process is completed after the terminal sends Msg3. Therefore, in the non-contention random access process, Msg3 is the RRC connection establishment completion message, not the message. RRC connection establishment request message. It can be seen that the process of the two types of random access only differs in the number of messages. Therefore, the selection of the uplink transmission antenna in the contention random access process described in FIG. 5A is still applicable to the transmission of Msg1 in the non-contention random access process. (Random access preamble) and Msg3 (RRC connection establishment completed) selection of uplink transmission antenna, the following is a brief introduction to the process of uplink transmission antenna selection in an embodiment of the present application in the non-contention random access process, Also assume that the terminal is designed with 4 antennas, as shown in Figure 5B, the process includes:
S511,终端在第一次发送Msg1(随机接入前导)时,选择最优天线作为第一天线。具体的,终端在第一次发送Msg1(随机接入前导)时,检测默认天线的下行测量指标是否低于预设门限,当默认天线的下行测量指标不低于预设门限时,则默认天线为最优天线,选择默认天线为第一天线,即维持默认天线为当前天线。当默认天线的下行测量指标低于预设门限时,终端选择除默认天线外的其余天线中下行测量指标最好的天线作为候选天线。如果该候选天线的下行测量指标高于默认天线的下行测量指标加上第一门限,则候选天线为最优天线,选择该候选天线为第一天线,并且将当前天线切换到该第一天线;如果该候选天线的下行测量指标不高于默认天线的下行测量指标加上第一门限,则默认天线作为最优天线,选择该默认天线为第一天线,即维持默认天线为当前天线。S511 , when the terminal sends the Msg1 (random access preamble) for the first time, the terminal selects the optimal antenna as the first antenna. Specifically, when the terminal sends Msg1 (random access preamble) for the first time, it detects whether the downlink measurement index of the default antenna is lower than the preset threshold, and when the downlink measurement index of the default antenna is not lower than the preset threshold, the default antenna For the optimal antenna, select the default antenna as the first antenna, that is, maintain the default antenna as the current antenna. When the downlink measurement index of the default antenna is lower than the preset threshold, the terminal selects the antenna with the best downlink measurement index among the remaining antennas except the default antenna as the candidate antenna. If the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna, the candidate antenna is selected as the first antenna, and the current antenna is switched to the first antenna; If the downlink measurement index of the candidate antenna is not higher than the downlink measurement index of the default antenna plus the first threshold, the default antenna is selected as the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna.
S512,终端在当前天线上发送Msg1(随机接入前导)。终端发送Msg1(随机接入前导)后未接收到RAR(随机接入响应)则按照第一条件进行天线的切换。具体的,终端在发送Msg1(随机接入前导)后在固定的时间窗内等待接收基站发送的RAR(随机接入响应)。如果终端在固定的时间窗内没有接收到RAR(随机接入响应)而且终端在当前天线上发送Msg1(随机接入前导)的次数小于第一预设次数,则继续重复执行步骤S512。如果终端在固定的时间窗内没有接收 到RAR(随机接入响应)而且终端在当前天线上发送Msg1(随机接入前导)的次数达到了第一预设次数,那么终端检测下一根天线的下行测量指标是否满足第一条件,若下一根天线的下行测量指标满足第一条件,则终端选择该下一根天线作为第二天线,并且将当前天线切换到该第二天线继续重复执行步骤S512;若下一根天线的下行测量指标不满足第一条件,则跳过继续进行检测,直到将当前天线切换到满足条件的天线上继续重复执行步骤S512。具体的第一条件判断和步骤S505中描述的一致,在此不再赘述。如果终端在固定的时间窗内成功接收到了RAR(随机接入响应),则进入步骤S513。S512, the terminal sends Msg1 (random access preamble) on the current antenna. If the terminal does not receive an RAR (random access response) after sending the Msg1 (random access preamble), the antenna switches according to the first condition. Specifically, the terminal waits to receive an RAR (random access response) sent by the base station within a fixed time window after sending the Msg1 (random access preamble). If the terminal does not receive an RAR (random access response) within the fixed time window and the number of times the terminal sends Msg1 (random access preamble) on the current antenna is less than the first preset number of times, continue to repeat step S512. If the terminal does not receive an RAR (random access response) within a fixed time window and the number of times the terminal sends Msg1 (random access preamble) on the current antenna reaches the first preset number of times, then the terminal detects the next antenna. Whether the downlink measurement index satisfies the first condition, if the downlink measurement index of the next antenna satisfies the first condition, the terminal selects the next antenna as the second antenna, and switches the current antenna to the second antenna to continue to repeat the steps S512 ; if the downlink measurement index of the next antenna does not meet the first condition, skip and continue to perform detection, and continue to repeat step S512 until the current antenna is switched to an antenna that satisfies the condition. The specific first condition judgment is consistent with that described in step S505, and is not repeated here. If the terminal successfully receives the RAR (Random Access Response) within the fixed time window, it goes to step S513.
S513,终端在当前天线上发送Msg3(RRC连接完成)。终端发送Msg3(RRC连接完成)后接收到Msg3(RRC连接完成)的重传调度则按照第一条件进行天线的切换。具体的,如果终端成功发送了Msg3(RRC连接完成),便完成了和基站的RRC连接的建立流程;如果终端接收到基站对Msg3(RRC连接完成)的重传调度而且终端在当前天线上发送Msg3(RRC连接完成)的次数小于第四预设次数,则继续重复执行步骤S513。如果终端接收到基站对Msg3(RRC连接完成)的重传调度而且终端在当前天线上发送Msg3(RRC连接完成)的次数达到了第四预设次数,那么终端检测下一根天线的下行测量指标是否满足第一条件,若下一根天线的下行测量指标满足第一条件,则终端选择该下一根天线作为第三天线,并且将当前天线切换到该第三天线继续重复执行步骤S513;若下一根天线的下行测量指标不满足第一条件,则跳过继续进行检测,直到将当前天线切换到满足条件的天线继续重复执行步骤513。具体的第一条件判断和步骤S505中描述的一致,在此不再赘述。S513, the terminal sends Msg3 on the current antenna (the RRC connection is completed). After the terminal sends Msg3 (RRC connection is completed) and receives the retransmission scheduling of Msg3 (RRC connection is completed), antenna switching is performed according to the first condition. Specifically, if the terminal successfully sends Msg3 (RRC connection complete), the process of establishing an RRC connection with the base station is completed; if the terminal receives the retransmission scheduling of Msg3 (RRC connection complete) from the base station and the terminal sends the current antenna If the number of Msg3 (RRC connection completed) is less than the fourth preset number of times, step S513 is continuously performed repeatedly. If the terminal receives the retransmission scheduling of Msg3 (RRC connection completed) by the base station and the number of times the terminal sends Msg3 (RRC connection completed) on the current antenna reaches the fourth preset number of times, the terminal detects the downlink measurement index of the next antenna Whether the first condition is met, if the downlink measurement index of the next antenna meets the first condition, the terminal selects the next antenna as the third antenna, and switches the current antenna to the third antenna to continue to repeat step S513; If the downlink measurement index of the next antenna does not satisfy the first condition, skip and continue to perform detection, and continue to repeat step 513 until the current antenna is switched to an antenna that satisfies the condition. The specific first condition judgment is consistent with that described in step S505, and is not repeated here.
结合图2给出的移动通信系统,假设终端220设计有至少两根天线,图6给出了本申请的另一个实施例的竞争随机接入过程中上行发送天线选择的流程图,包括:With reference to the mobile communication system given in FIG. 2 , assuming that the terminal 220 is designed with at least two antennas, FIG. 6 shows a flowchart of uplink transmission antenna selection in the contention random access process of another embodiment of the present application, including:
S601,终端在第一次发送Msg1(随机接入前导)时,检测默认天线的下行测量指标是否低于预设门限,当默认天线的下行测量指标低于预设门限时,则进入步骤S602;当默认天线的下行测量指标不低于预设门限时,则默认天线为最优天线,选择该默认天线为第一天线,即维持默认天线为当前天线进入步骤S603。同时终端为至少两根天线设置天线优先级。在一种可选的实施方式中,终端根据至少两根天线的下行测量指标设置天线的优先级,具体的将下行测量指标最好的天线的优先级设置为最高,下行测量指标最差的天线的优先级设置为最低。在另一种可选的实施方式中,终端的天线之间在工艺上是存在差异的,比如差损不一样,因此终端可以根据天线之间的工艺差异为天线设置优先级。S601, when the terminal sends the Msg1 (random access preamble) for the first time, it detects whether the downlink measurement index of the default antenna is lower than a preset threshold, and when the downlink measurement index of the default antenna is lower than the preset threshold, it goes to step S602; When the downlink measurement index of the default antenna is not lower than the preset threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna and goes to step S603. At the same time, the terminal sets antenna priorities for at least two antennas. In an optional implementation manner, the terminal sets the priorities of the antennas according to the downlink measurement indicators of at least two antennas, and specifically sets the priority of the antenna with the best downlink measurement indicator to the highest, and the antenna with the worst downlink measurement indicator The priority is set to the lowest. In another optional implementation manner, there are differences in technology among the antennas of the terminal, for example, the difference loss is different, so the terminal can set priorities for the antennas according to the technology differences between the antennas.
S602,终端获得最优的当前天线。具体的,终端选择除默认天线外的其余天线中下行测量指标最好的天线作为候选天线。如果该候选天线的下行测量指标高于默认天线的下行测量指标加上第一门限,则候选天线为最优天线,选择该候选天线为第一天线,并且将当前天线切换到该第一天线;如果该候选天线的下行测 量指标不高于默认天线的下行测量指标加上第一门限,则默认天线为最优天线,选择默认天线为第一天线,即维持默认天线为当前天线。第一门限的原理和设置可以参考图5A中的步骤S502的描述,此处不再赘述。S602, the terminal obtains the optimal current antenna. Specifically, the terminal selects the antenna with the best downlink measurement index among the other antennas except the default antenna as the candidate antenna. If the downlink measurement index of the candidate antenna is higher than the downlink measurement index of the default antenna plus the first threshold, the candidate antenna is the optimal antenna, the candidate antenna is selected as the first antenna, and the current antenna is switched to the first antenna; If the downlink measurement index of the candidate antenna is not higher than the downlink measurement index of the default antenna plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna, that is, the default antenna is maintained as the current antenna. For the principle and setting of the first threshold, reference may be made to the description of step S502 in FIG. 5A , which will not be repeated here.
S603,终端在当前天线上发送Msg1(随机接入前导)。终端发送Msg1(随机接入前导)后在固定的时间窗内等待接收基站发送的RAR(随机接入响应)。如果终端在固定的时间窗内没有接收到RAR(随机接入响应),则进入步骤S604;如果终端在固定的时间窗内成功接收到了RAR(随机接入响应),则进入步骤S606。S603, the terminal sends Msg1 (random access preamble) on the current antenna. After the terminal sends the Msg1 (random access preamble), it waits to receive the RAR (random access response) sent by the base station within a fixed time window. If the terminal does not receive the RAR (random access response) within the fixed time window, it goes to step S604; if the terminal successfully receives the RAR (random access response) within the fixed time window, it goes to step S606.
S604,终端判断在当前天线上发送Msg1(随机接入前导)的次数是否达到第一预设次数。如果已经达到第一预设次数,则进入步骤S605;如果还未达到第一预设次数,则进入步骤S603。S604, the terminal determines whether the number of times of sending Msg1 (random access preamble) on the current antenna reaches a first preset number of times. If the first preset number of times has been reached, go to step S605; if the first preset number of times has not been reached, go to step S603.
S605,终端按照第一条件进行上行发送天线的切换,即按照在步骤S601中设置的天线优先级选择除当前天线外优先级最高的天线为第二天线,并且将当前天线切换到该第二天线后进入步骤S603。S605, the terminal switches the uplink transmission antenna according to the first condition, that is, selects the antenna with the highest priority except the current antenna as the second antenna according to the antenna priority set in step S601, and switches the current antenna to the second antenna Then go to step S603.
在一种可选的实施方式中,当终端在步骤S601中根据天线的下行测量指标设置好天线优先级后,天线优先级在本次随机接入过程中一直保持不变,而不是根据终端各天线实时测量得到的下行测量指标进行实时调整,这样可以保证所有的天线都能够得到尝试。在另一种可选的实施方式中,当终端在步骤S601中根据天线的下行测量指标设置好天线优先级后,终端在随机接入过程中根据各天线实时测量得到的下行测量指标进行天线优先级的实时调整,这样可以每次根据优先级切换上行发送天线时能够切换到下行测量指标最好的天线上。In an optional implementation manner, after the terminal sets the antenna priority according to the downlink measurement index of the antenna in step S601, the antenna priority remains unchanged in this random access process, instead of The downlink measurement indicators obtained by the real-time antenna measurement are adjusted in real time, so as to ensure that all antennas can be tried. In another optional implementation manner, after the terminal sets the antenna priority according to the downlink measurement index of the antenna in step S601, the terminal performs antenna priority according to the downlink measurement index obtained by real-time measurement of each antenna during the random access process Real-time adjustment of the level, so that each time the uplink transmitting antenna is switched according to the priority, it can be switched to the antenna with the best downlink measurement index.
S606,终端在当前天线上继续发送Msg3(RRC连接建立请求)。终端在发送Msg3(RRC连接建立请求)后,如果成功接收到基站发送的Msg4(RRC连接建立),则进入步骤S609;如果接收到基站对Msg3(RRC连接建立请求)的重传调度时,则进入步骤S607;S606, the terminal continues to send Msg3 (RRC connection establishment request) on the current antenna. After the terminal sends Msg3 (RRC connection establishment request), if it successfully receives Msg4 (RRC connection establishment) sent by the base station, it will enter step S609; if it receives the retransmission scheduling of Msg3 (RRC connection establishment request) by the base station, Enter step S607;
S607,终端判断在当前天线上发送Msg3(RRC连接建立请求)的发送次数是否达到预设的次数。如果已经达到第二预设次数,则进入步骤S608;如果还未达到第二预设次数,则进入步骤S606。在一种可选的实施方式中,当Msg3(RRC连接建立请求)最大发送次数为5次,那么终端在当前天线上发送Msg3(RRC连接建立请求)的预设次数可以设置为3次。S607, the terminal determines whether the number of times of sending Msg3 (RRC connection establishment request) on the current antenna reaches a preset number of times. If the second preset number of times has been reached, go to step S608; if the second preset number of times has not been reached, go to step S606. In an optional implementation manner, when the maximum number of Msg3 (RRC connection establishment request) sending times is 5, the preset number of times the terminal sends Msg3 (RRC connection establishment request) on the current antenna may be set to 3 times.
S608,终端按照第一条件进行上行发送天线的切换,即按照在步骤S601中设置的天线优先级选择除当前天线外优先级最高的天线为第三天线,并且将当前天线切换到该第三天线后进入步骤S606。具体的天线优先级的设置和步骤S605描述一致,此处不再赘述。S608, the terminal switches the uplink transmission antenna according to the first condition, that is, selects the antenna with the highest priority except the current antenna as the third antenna according to the antenna priority set in step S601, and switches the current antenna to the third antenna Then go to step S606. The specific setting of the antenna priority is the same as that described in step S605, and will not be repeated here.
S609,终端在当前天线上继续发送Msg5(RRC连接建立完成)。如果终端接收到基站对Msg5(RRC连接建立完成)的重传调度时,终端对上行发送天线的切换和发送Msg3(RRC连接建立请求)时的切换方式一致,此处不再赘述。S609, the terminal continues to send Msg5 on the current antenna (RRC connection establishment is completed). If the terminal receives the retransmission scheduling of Msg5 (RRC connection establishment completed) by the base station, the switching method of the terminal for uplink transmission antenna is the same as the switching method when sending Msg3 (RRC connection establishment request), which will not be repeated here.
从图6给出的实施例中可以看出,终端首先在随机接入过程中第一次发送 Msg1(随机接入前导)时,根据下行测量指标对默认天线进行检测,当默认天线的下行测量指标不好时选择最优的天线进行Msg1(随机接入前导)的发送,增加了Msg1(随机接入前导)发送成功的概率。Msg1(随机接入前导)在当前天线上发送的次数达到预设次数时根据天线的优先级切换到除当前天线外优先级最高的天线上尝试发送。Msg3(RRC连接建立请求)发送和Msg5(RRC连接建立完成)发送的上行发送天线的切换也遵循类似的原则,这样可以先在优先级高的天线上进行上行数据的发送,提高了发送成功的概率,增强了用户的体验。It can be seen from the embodiment given in FIG. 6 , when the terminal first transmits Msg1 (random access preamble) for the first time in the random access process, it detects the default antenna according to the downlink measurement index. When the index is not good, the optimal antenna is selected to transmit the Msg1 (random access preamble), which increases the probability of successful transmission of the Msg1 (random access preamble). When Msg1 (random access preamble) is sent on the current antenna for a preset number of times, it switches to the antenna with the highest priority except the current antenna and tries to send it according to the priority of the antenna. The switching of the uplink transmission antennas sent by Msg3 (RRC connection establishment request) and Msg5 (RRC connection establishment completed) transmission also follows a similar principle, so that uplink data can be sent on the antenna with higher priority first, which improves the transmission success rate. probability, enhancing the user experience.
和图5B的实施例描述的一致,图6中对竞争随机接入流程中上行发送天线的选择仍然适用于非竞争随机接入流程中上行发送天线的选择,在此不再赘述。Consistent with the description of the embodiment in FIG. 5B , the selection of uplink transmit antennas in the contention random access process in FIG. 6 is still applicable to the selection of uplink transmit antennas in the non-contention random access process, and details are not repeated here.
需要说明的是,在本申请实施例中,终端在根据第一条件进行天线选择过程中使用的第二门限在发送不同消息时可以使用相同的门限,也可以使用不同的门限,本申请实施例不做限制。It should be noted that, in this embodiment of the present application, the second threshold used by the terminal in the process of selecting an antenna according to the first condition may use the same threshold or different thresholds when sending different messages. No restrictions.
请参考图7,其示出了本申请实施例提供的一种随机接入的天线优选装置,该天线优选装置可以通过软件、硬件或者两者的结合实现图2所示的终端240的部分或者全部。该装置包括:天线选择单元701、数据发送单元702、数据接收单元703、数据发送判断单元704、天线切换单元705。Please refer to FIG. 7 , which shows a random access antenna optimization device provided by an embodiment of the present application. The antenna optimization device can implement part of the terminal 240 shown in FIG. all. The apparatus includes: an antenna selection unit 701 , a data transmission unit 702 , a data reception unit 703 , a data transmission judgment unit 704 , and an antenna switching unit 705 .
天线选择单元701,用于终端在随机接入过程中第一次发送Msg1(随机接入前导)时进行上行发送天线的选择。The antenna selection unit 701 is used for selecting the uplink transmission antenna when the terminal transmits Msg1 (random access preamble) for the first time in the random access process.
数据发送单元702,用于终端在随机接入过程中发送上行数据,包括Msg1(随机接入前导)、Msg3(RRC连接建立请求或者RRC连接建立完成)、Msg5(RRC连接建立完成)。The data sending unit 702 is used for the terminal to send uplink data in the random access process, including Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg5 (RRC connection establishment completed).
数据接收单元703,用于终端在随机接入过程中接收下行数据,包括RAR(随机接入响应)、Msg3(RRC连接建立请求或者RRC连接建立完成)的重传调度、Msg4(RRC连接建立)、Msg5(RRC连接建立完成)的重传调度。The data receiving unit 703 is used for the terminal to receive downlink data in the random access process, including RAR (random access response), retransmission scheduling of Msg3 (RRC connection establishment request or RRC connection establishment completed), Msg4 (RRC connection establishment) , Retransmission scheduling of Msg5 (RRC connection establishment completed).
数据发送判断单元704,用于终端在随机接入过程中判断Msg1(随机接入前导)、Msg3(RRC连接建立请求或者RRC连接建立完成)、Msg5(RRC连接建立完成)的发送次数是否达到门限。The data transmission judgment unit 704 is used for the terminal to judge whether the transmission times of Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment complete), and Msg5 (RRC connection establishment complete) reach the threshold during the random access process .
天线切换单元705,用于终端在随机接入过程中检测到Msg1(随机接入前导)、Msg3(RRC连接建立请求或者RRC连接建立完成)、Msg5(RRC连接建立完成)的发送次数达到门限时,根据是否满足一定的条件或者根据优先级将上行发送天线切换到下一根天线。The antenna switching unit 705 is used for the terminal to detect that the number of times of sending Msg1 (random access preamble), Msg3 (RRC connection establishment request or RRC connection establishment complete), and Msg5 (RRC connection establishment complete) reaches the threshold during the random access process , and switch the uplink transmit antenna to the next antenna according to whether certain conditions are met or according to the priority.
请参考图8,其示出了本申请实施例提供的一种终端的结构示意图,该终端包括:处理器801、接收器802、发射器803、存储器804和总线805。处理器801包括一个或者多个处理核心,处理器801通过运行软件程序以及模块,从而 执行各种功能的应用以及信息处理。接收器802和发射器803可以实现为一个通信组件,该通信组件可以是一块基带芯片。存储器804通过总线805和处理器801相连。存储器804可用于存储至少一个程序指令,处理器801用于执行至少一个程序指令,以实现上述实施例的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。Please refer to FIG. 8 , which shows a schematic structural diagram of a terminal provided by an embodiment of the present application. The terminal includes: a processor 801 , a receiver 802 , a transmitter 803 , a memory 804 , and a bus 805 . The processor 801 includes one or more processing cores, and the processor 801 executes various functional applications and information processing by running software programs and modules. The receiver 802 and the transmitter 803 may be implemented as a communication component, which may be a baseband chip. The memory 804 is connected to the processor 801 through a bus 805 . The memory 804 may be configured to store at least one program instruction, and the processor 801 may be configured to execute the at least one program instruction, so as to implement the technical solutions of the foregoing embodiments. The implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在终端运行时,使得所述终端执行上述实施例中的技术方案。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。The embodiments of the present application provide a computer program product, which enables the terminal to execute the technical solutions in the foregoing embodiments when the computer program product runs on a terminal. The implementation principle and technical effect thereof are similar to those of the above-mentioned related embodiments, which will not be repeated here.
本申请实施例提供一种计算机可读存储介质,其上存储有程序指令,所述程序指令被终端执行时,使得所述终端执行上述实施例的技术方案。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。The embodiments of the present application provide a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a terminal, the terminal executes the technical solutions of the foregoing embodiments. The implementation principle and technical effect thereof are similar to those of the above-mentioned related embodiments, which will not be repeated here.
申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中的技术方案。其实现原理和技术效果类似,此处不再赘述。The application embodiment provides a chip, the chip is used for executing instructions, and when the chip is running, the technical solutions in the above-mentioned embodiments are executed. The implementation principle and technical effect thereof are similar, and are not repeated here.
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, steps and logic block diagrams disclosed in the embodiments of this application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SS)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,不限于此。In this embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM). Memory is, without limitation, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。本申请各实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如, 数字视频光盘(digital video disc,DWD)、或者半导体介质(例如,SSD)等。The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data. The methods provided by the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL), or wireless (eg, infrared, wireless, microwave, etc.) A readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The available media can be magnetic media (eg, floppy disks, hard disks, magnetic tapes) ), optical media (eg, digital video disc (DWD), or semiconductor media (eg, SSD), etc.).
综上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。To sum up, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (13)

  1. 一种天线选择的方法,应用于包括至少两根天线的终端的随机接入流程中,所述方法包括:A method for antenna selection, applied to a random access procedure of a terminal including at least two antennas, the method comprising:
    所述终端选择所述至少两根天线中的最优天线作为第一天线;selecting, by the terminal, an optimal antenna among the at least two antennas as the first antenna;
    所述终端在所述第一天线上向基站发送第一消息,所述第一消息为随机接入前导;sending, by the terminal, a first message to the base station on the first antenna, where the first message is a random access preamble;
    当所述终端未成功接收到所述基站发送的第二消息,并且所述终端在所述第一天线上发送所述第一消息的次数达到第一预设次数时,所述终端根据第一条件从所述至少两根天线中选择最优天线作为第二天线,所述第二消息为随机接入响应;When the terminal fails to receive the second message sent by the base station and the number of times the terminal sends the first message on the first antenna reaches a first preset number of times, the The condition selects the optimal antenna from the at least two antennas as the second antenna, and the second message is a random access response;
    所述终端在所述第二天线上发送所述第一消息。The terminal sends the first message on the second antenna.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述终端成功接收到所述基站发送的所述第二消息时,响应所述第二消息,所述终端在所述第二天线上发送第三消息。When the terminal successfully receives the second message sent by the base station, in response to the second message, the terminal sends a third message on the second antenna.
  3. 根据权利要求2所述的方法,其特征在于,在所述终端在所述第二天线上发送第三消息之后,所述方法还包括:The method according to claim 2, wherein after the terminal sends the third message on the second antenna, the method further comprises:
    当所述终端接收到所述基站对所述第三消息的重传调度,并且所述终端在所述第二天线上发送所述第三消息的次数达到第二预设次数时,所述终端根据所述第一条件从所述至少两根天线中选择最优天线作为第三天线;When the terminal receives the retransmission scheduling of the third message by the base station, and the number of times that the terminal sends the third message on the second antenna reaches a second preset number of times, the terminal selecting an optimal antenna from the at least two antennas as a third antenna according to the first condition;
    所述终端在所述第三天线上发送所述第三消息。The terminal sends the third message on the third antenna.
  4. 根据权利要求3所述的方法,其特征在于,所述随机接入流程为竞争随机接入流程,所述第三消息为无线资源控制RRC连接建立请求消息。The method according to claim 3, wherein the random access procedure is a contention random access procedure, and the third message is a radio resource control RRC connection establishment request message.
  5. 根据权利要求4所述的方法,其特征在于,在所述终端在所述第三天线上发送所述第三消息之后,所述方法还包括:The method according to claim 4, wherein after the terminal sends the third message on the third antenna, the method further comprises:
    当所述终端成功接收到所述基站发送的第四消息时,响应所述第四消息,所述终端在所述第三天线上发送第五消息,所述第四消息为RRC连接建立消息,所述第五消息为RRC连接建立完成消息。When the terminal successfully receives the fourth message sent by the base station, in response to the fourth message, the terminal sends a fifth message on the third antenna, where the fourth message is an RRC connection establishment message, The fifth message is an RRC connection establishment complete message.
  6. 根据权利要求5所述的方法,其特征在于,在所述终端在所述第三天线上发送第五消息之后,所述方法还包括:The method according to claim 5, wherein after the terminal sends the fifth message on the third antenna, the method further comprises:
    当所述终端接收到所述基站对所述第五消息的重传调度,并且所述终端在所述第三天线上发送所述第五消息的次数达到第三预设次数时,所述终端根据所述第一条件从所述至少两根天线中选择最优天线作为第四天线;When the terminal receives the retransmission scheduling of the fifth message by the base station, and the number of times that the terminal sends the fifth message on the third antenna reaches a third preset number of times, the terminal selecting the optimal antenna from the at least two antennas as the fourth antenna according to the first condition;
    所述终端在所述第四天线上发送所述第五消息。The terminal sends the fifth message on the fourth antenna.
  7. 根据权利要求3所述的方法,其特征在于,所述随机接入流程为非竞争随机接入流程,所述第三消息为无线资源控制RRC连接建立完成消息。The method according to claim 3, wherein the random access procedure is a non-contention random access procedure, and the third message is a radio resource control RRC connection establishment complete message.
  8. 根据权利要求1-7中任一项所述的方法,所述终端选择所述至少两根天线中的最优天线作为第一天线,包括:The method according to any one of claims 1-7, wherein the terminal selects an optimal antenna among the at least two antennas as the first antenna, comprising:
    当所述终端的默认天线的下行测量指标不低于预设门限时,所述默认天线为最优天线,选择所述默认天线作为所述第一天线;When the downlink measurement index of the default antenna of the terminal is not lower than a preset threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna;
    当所述默认天线的下行测量指标低于所述预设门限时,选择除所述默认天线外的其余天线中下行测量指标最好的天线作为候选天线,如果所述候选天线的下行测量指标不高于所述默认天线的下行测量指标加上第一门限,所述默认天线为最优天线,选择所述默认天线作为所述第一天线;如果所述候选天线的下行测量指标高于所述默认天线的下行测量指标加上所述第一门限,所述候选天线为最优天线,选择所述候选天线为所述第一天线。When the downlink measurement index of the default antenna is lower than the preset threshold, the antenna with the best downlink measurement index among the remaining antennas except the default antenna is selected as the candidate antenna. If the downlink measurement index of the candidate antenna is not The downlink measurement index higher than the default antenna plus the first threshold, the default antenna is the optimal antenna, and the default antenna is selected as the first antenna; if the downlink measurement index of the candidate antenna is higher than the The downlink measurement index of the default antenna is added with the first threshold, the candidate antenna is the optimal antenna, and the candidate antenna is selected as the first antenna.
  9. 根据权利要求1-7中任一项所述的方法,所述终端根据所述第一条件从所述至少两根天线中选择最优天线,包括:The method according to any one of claims 1-7, wherein the terminal selects an optimal antenna from the at least two antennas according to the first condition, comprising:
    当所述终端的下一根天线的下行测量指标大于所述当前天线的下行测量指标减去第二门限时,所述终端选择所述下一根天线为最优天线,或者,When the downlink measurement indicator of the next antenna of the terminal is greater than the downlink measurement indicator of the current antenna minus the second threshold, the terminal selects the next antenna as the optimal antenna, or,
    所述终端选择当前天线外优先级最高的天线作为最优天线。The terminal selects the antenna with the highest priority outside the current antenna as the optimal antenna.
  10. 一种终端,其特征在于,所述终端包括:一个或多个处理器,一个或多个存储器,所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述终端执行权利要求1至9任一项所述方法。A terminal, characterized in that the terminal comprises: one or more processors, one or more memories, the one or more memories stores one or more computer programs, the one or more computer programs comprising instructions that, when executed by the one or more processors, cause the terminal to perform the method of any one of claims 1 to 9.
  11. 一种装置,应用在终端中,其特征在于,所述装置包括处理器,所述处理器用于与存储器耦合,并读取存储器中的指令并根据所述指令执行权利要求1至9任一项所述方法。An apparatus, applied in a terminal, characterized in that the apparatus comprises a processor, and the processor is configured to be coupled with a memory, and read an instruction in the memory and execute any one of claims 1 to 9 according to the instruction the method.
  12. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在终端上运行时,使得所述终端执行如权利要求1至9中任一项所述的方法。A computer program product comprising instructions, characterized in that, when the computer program product is run on a terminal, the terminal is caused to execute the method according to any one of claims 1 to 9.
  13. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在第一终端上运行时,使得所述第一终端执行如权利要求1至9中任一项所述的方法。A computer-readable storage medium comprising instructions, characterized in that, when the instructions are executed on a first terminal, the first terminal is caused to execute the method according to any one of claims 1 to 9.
PCT/CN2021/109896 2020-08-01 2021-07-30 Antenna selection method and device WO2022028339A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010763809.5 2020-08-01
CN202010763809.5A CN114070369A (en) 2020-08-01 2020-08-01 Antenna selection method and device

Publications (1)

Publication Number Publication Date
WO2022028339A1 true WO2022028339A1 (en) 2022-02-10

Family

ID=80116982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109896 WO2022028339A1 (en) 2020-08-01 2021-07-30 Antenna selection method and device

Country Status (2)

Country Link
CN (1) CN114070369A (en)
WO (1) WO2022028339A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208438A (en) * 2022-09-05 2022-10-18 荣耀终端有限公司 Antenna control method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826346B (en) * 2022-03-30 2024-01-05 深圳市广和通无线股份有限公司 Antenna scheduling method and related product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090312018A1 (en) * 2006-08-22 2009-12-17 Koninklijke Philips Electronics N.V. Methods of transmitting and receiving data, and apparatus therefor
CN108055065A (en) * 2018-02-11 2018-05-18 广东欧珀移动通信有限公司 Antenna switching method, device, storage medium and electronic equipment
CN108112089A (en) * 2018-01-05 2018-06-01 北京小米移动软件有限公司 Accidental access method, device and non-transitorycomputer readable storage medium
CN110115095A (en) * 2019-03-25 2019-08-09 北京小米移动软件有限公司 Accidental access method, device and storage medium
CN110463264A (en) * 2019-06-17 2019-11-15 北京小米移动软件有限公司 Random access indicating means, device and storage medium
US20200100290A1 (en) * 2018-09-24 2020-03-26 Nxp Usa, Inc. Optimal Beamforming in Millimeter-Wave Cellular Networks Using Multiple Random Access Preambles

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571173B (en) * 2010-12-30 2014-08-13 联芯科技有限公司 Method for terminal to select transmission antennae in open loop mode, device and mobile terminal
CN109217881B (en) * 2017-06-30 2021-07-30 维沃移动通信有限公司 Transmitting antenna switching method, base station and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090312018A1 (en) * 2006-08-22 2009-12-17 Koninklijke Philips Electronics N.V. Methods of transmitting and receiving data, and apparatus therefor
CN108112089A (en) * 2018-01-05 2018-06-01 北京小米移动软件有限公司 Accidental access method, device and non-transitorycomputer readable storage medium
CN108055065A (en) * 2018-02-11 2018-05-18 广东欧珀移动通信有限公司 Antenna switching method, device, storage medium and electronic equipment
US20200100290A1 (en) * 2018-09-24 2020-03-26 Nxp Usa, Inc. Optimal Beamforming in Millimeter-Wave Cellular Networks Using Multiple Random Access Preambles
CN110115095A (en) * 2019-03-25 2019-08-09 北京小米移动软件有限公司 Accidental access method, device and storage medium
CN110463264A (en) * 2019-06-17 2019-11-15 北京小米移动软件有限公司 Random access indicating means, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208438A (en) * 2022-09-05 2022-10-18 荣耀终端有限公司 Antenna control method and electronic equipment

Also Published As

Publication number Publication date
CN114070369A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
JP7293386B2 (en) NETWORK CONNECTION PROCESSING METHOD, RELATED DEVICES AND COMPUTER STORAGE MEDIUM
WO2020192781A1 (en) Capability reporting method and user equipment
WO2021147427A1 (en) Method for determining fall back power and method for adjusting transmission power
CN114390337B (en) Screen projection method and system and electronic equipment
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
WO2022028339A1 (en) Antenna selection method and device
WO2021169698A1 (en) Connection management method and related device
WO2022127690A1 (en) Terminal device, multi-link communication method and chip
US20220272563A1 (en) Device control method and system, and related apparatus
US20230388170A1 (en) Method and Apparatus for Determining Minimum Slot Offset Value
WO2022089279A1 (en) Device orientation adjustment method and terminal device
CN111615177A (en) Cell search method and user equipment
WO2022068521A1 (en) Uplink power control method and related apparatus
CN114125930A (en) Method, device and system for switching access points
WO2023124186A1 (en) Communication method and communication apparatus
WO2022033550A1 (en) Data sending method and terminal device
WO2021197163A1 (en) Transmission power control method, terminal, chip system and system
WO2021174510A1 (en) Wireless network access method and apparatus, communication device, and storage medium
CN114071777A (en) Random access enhancement method, network equipment and terminal
WO2022028341A1 (en) Random access enhancement method, network device and terminal
WO2022152323A1 (en) Data transmission method, chip, terminal and storage medium
WO2023098874A1 (en) Random access method and related device
WO2023179432A1 (en) Antenna switching method and terminal device
WO2022179243A1 (en) Wi-fi access method and related device
RU2782338C1 (en) Method for processing the network connection, the appropriate device and computer media

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21853050

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21853050

Country of ref document: EP

Kind code of ref document: A1