Patent Description:
In researches on a 5th-Generation (<NUM>) mobile communication technology, a beamforming technology is an important technology for improving coverage and spectrum efficiency. Beamforming refers to an antenna-array-based signal preprocessing technology and generates a directional beam by regulating a weight of a signal transmitted on each antenna array element.

A network device may transmit multiple signals using different beams, and a terminal device may measure the received signals to determine whether a link for transmitting the signals is too poor to be available. At present, there is yet no solution for how to perform subsequent processing based on a determination result.

Background may be found in <CIT>. Background may also be found in <NPL>; the <NPL>; and <NPL>.

Embodiments of the disclosure provide a method for wireless communication and a terminal, which selects a random access sequence by use of quality of a signal in a second signal set when a link for a signal in a first signal set is too poor to be available.

In order to describe the technical solutions of the embodiments of the disclosure more clearly, the drawings required to be used in descriptions about the embodiments or a related art will be simply introduced below. It is apparent that the drawings described below are only some embodiments of the disclosure. Other drawings may further be obtained by those of ordinary skill in the art according to these drawings without creative work.

The technical solutions in the embodiments of the disclosure will be described below in combination with the drawings in the embodiments of the disclosure. It is apparent that the described embodiments are not all embodiments but part of embodiments of the disclosure. All other embodiments obtained by those of ordinary skill in the art on the basis of the embodiments in the disclosure without creative work shall fall within the scope of protection of the disclosure.

The technical solutions of the embodiments of the disclosure may be applied to various communication systems, for example, a Global System of Mobile Communication (GSM), a Code Division Multiple Access (CDMA) system, a Wideband Code Division Multiple Access (WCDMA) system, a General Packet Radio Service (GPRS), a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), a Universal Mobile Telecommunication System (UMTS), a Worldwide Interoperability for Microwave Access (WiMAX) communication system or a future <NUM> system (which may also be called a New Radio (NR) system).

<FIG> illustrates a wireless communication system <NUM> to which the embodiments of the disclosure are applied. The wireless communication system <NUM> may include a network device <NUM>. The network device <NUM> may be a device communicating with a terminal device. The network device <NUM> may provide communication coverage for a specific geographical region and may communicate with a terminal device (for example, User Equipment (UE)) located in the coverage. Optionally, the network device <NUM> may be a Base Transceiver Station (BTS) in the GSM or the CDMA system, may also be a Node B (NB) in the WCDMA system, and may further be an Evolutional Node B (eNB or eNode B) in the LTE system or a wireless controller in a Cloud Radio Access Network (CRAN). Or the network device may be a relay station, an access point, a vehicle-mounted device, a wearable device, a network-side device in a future <NUM> network, a network device in a future evolved Public Land Mobile Network (PLMN) or the like.

The wireless communication system <NUM> further includes at least one terminal device <NUM> located within the coverage of the network device <NUM>. The terminal devices <NUM> may be mobile or fixed. Optionally, the terminal device <NUM> may refer to an access terminal, UE, a user unit, a user station, a mobile station, a mobile radio station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or a user device. The access terminal may be a cell phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device, another processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in the future <NUM> network, a terminal device in the future evolved PLMN or the like.

Optionally, Device to Device (D2D) communication may be implemented between the terminal devices <NUM>.

Optionally, the <NUM> system or network may also be called an NR system or network.

A network device and two terminal devices are exemplarily illustrated in <FIG>. Optionally, the wireless communication system <NUM> may include multiple network devices and another number of terminal devices may be included in coverage of each network device. There are no limits made thereto in the embodiments of the disclosure.

Optionally, the wireless communication system <NUM> may further include another network entity such as a network controller and a mobility management entity. There are no limits made thereto in the embodiments of the disclosure.

It is to be understood that terms "system" and "network" in the disclosure may usually be exchanged in the disclosure. In the disclosure, term "and/or" is only an association relationship describing associated objects and represents that three relationships may exist. For example, A and/or B may represent three conditions: i.e., independent existence of A, existence of both A and B and independent existence of B. In addition, character "/" in the disclosure usually represents that previous and next associated objects form an "or" relationship.

<FIG> is a schematic flowchart of a method for wireless communication <NUM> according to an embodiment of the disclosure. The method <NUM> may optionally be applied, but not limited, to the system illustrated in <FIG>. As illustrated in <FIG>, the method <NUM> includes at least part of the following contents.

In <NUM>, a terminal reports, in a first protocol layer, a first event to a second protocol layer. Herein, the first event is used to indicate that quality of a signal in a first signal set is poor enough to meet a first condition.

In the invention, the first protocol layer is a physical layer, and the second protocol layer is a higher layer. For example, the second protocol layer may be a Media Access Control (MAC) layer.

Optionally, the signal in the first signal set may be a Channel State Information Reference Signal (CSI-RS), a Synchronous Signal (SS) or a Physical Broadcast Channel (PBCH).

Optionally, each signal in the first signal set may be transmitted through different beams.

Herein, the terminal may measure the signal in the first signal set and, when discovering a signal with relatively high signal quality, may notify an index of the signal to a network side. The network side may send a downlink channel or a signal, for example, a Physical Downlink Control Channel (PDCCH), to the terminal by use of a transmission beam transmitting the signal.

Optionally, each signal in the first signal set and at least one control resource set are quasi-colocated with respect to a space receiving parameter.

Specifically, the control resource set may be used to send the PDCCH and thus the terminal may measure the signal in the first signal set to determine whether quality of the PDCCH sent by the control resource set, that is quasi-colocated with the signal in the first signal set with respect to the space receiving parameter, meets a threshold which is preset or configured by the network side.

Optionally, the terminal may determine, in the first protocol layer, whether performance of a measurement result of the signal in the first signal set is higher than the threshold. When the performance of the measurement result is lower than the threshold, it is determined that the first event, i.e., a beam failure instance, occurs once, and information related to the first event is reported to the second protocol layer.

In the invention, the terminal reports the first event to the second protocol layer when the terminal determines, in the first protocol layer, that the quality of each signal in the first signal set is poor enough to meet the first condition.

Optionally, the terminal may periodically measure the signal in the first signal set.

Optionally, the first event may be periodically reported, and if the first event is not reported once, the higher layer may obtain that the performance of the present corresponding measurement result is higher than the threshold and the first event does not occur.

In <NUM>, under the condition that the terminal determines, in the second protocol layer, occurrence of a second event based on an occurrence situation of the first event, the terminal determines, in the second protocol layer, at least one of a random access sequence or a random access resource for transmission based on a signal reporting situation provided by the first protocol layer about a second signal set. Herein, the random access sequence is a contention-based random access sequence or a contention-free random access sequence and the random access resource is a contention-based random access resource or a contention-free random access resource.

Optionally, under the condition that the terminal determines, in the second protocol layer, occurrence of the second event, the terminal may send indication information to the first protocol layer to trigger the first protocol layer to report to the second protocol layer information indicating that quality of a signal in the second signal set is good enough to meet a third condition. Herein, if the first protocol layer does not measure the signal in the second signal set before receiving the indication information, the indication information further triggers the first protocol layer to measure the signal in the second signal set.

Herein, the second event is used to indicate that link quality corresponding to the signal in the first signal set is poor enough to meet a second condition.

Specifically, the terminal may determine whether the second event occurs based on at least one of the number of the received first events or a frequency of occurrence of the first event or the like. The second condition may be related to at least one of the number or frequency of occurrence of the first event. If the second condition is met, it is indicated that the link quality corresponding to the signal in the first signal set is relatively poor.

For example, if the terminal determines, in the second protocol layer, that the number of continuously received (continuously received within a specific time period) first events exceeds a constant value, it may be determined that the second event occurs and it may also be determined that a beam failure occurs.

Optionally, the signal in the second signal set may be a CSI-RS, an SS or a PBCH.

Optionally, each signal in the second signal set may be transmitted through different beams.

Herein, the terminal may measure the signal in the second signal set and, when discovering a signal with relatively high signal quality, may notify an index of the signal to the network side. The network side may send a downlink channel or a signal, for example, a PDCCH, to the terminal by use of a transmission beam transmitting the signal.

Optionally, each signal in the second signal set and at least one control resource set are quasi-colocated with respect to a space receiving parameter.

Specifically, the control resource set may be used to send the PDCCH and thus the terminal may measure the signal in the second signal set to determine whether quality of the PDCCH sent by the control resource set, that is quasi-colocated with the signal in the second signal set with respect to the space receiving parameter, meets a threshold which is preset or configured by the network side.

In the invention, after occurrence of the second event is determined, the terminal starts a timer and performs a link reconfiguration program during a duration of the timer.

Herein, the link reconfiguration program may include at least one of:.

In the embodiment of the disclosure, the terminal starts, in the second protocol layer, a first timer.

The terminal determines, in the second protocol layer, the at least one of the random access sequence or the random access resource based on the signal reporting situation about the second signal set during a duration of the first timer.

Optionally, the terminal starts, in the second protocol layer at a first moment, the first timer.

Herein, the first moment is one of the following:.

Optionally, when the second protocol layer receives first report information from the first protocol layer during the duration of the first timer, the terminal determines at least one of: the random access sequence for transmission is a contention-free random access sequence, or the random access resource for transmission is a contention-free random access resource. Herein, the first report information is used to indicate at least one signal, of which quality is good enough to meet a third condition, in the second signal set.

Optionally, when the second protocol layer receives second report information from the first protocol layer during the duration of the first timer, the terminal determines at least one of: the random access sequence for transmission is a contention-based random access sequence, or the random access resource for transmission is a contention-based random access resource. Herein, the second report information is used to indicate that there is no signal, of which quality is good enough to meet the third condition, in the second signal set.

Optionally, when the second protocol layer receives, from the first protocol layer during the duration range of the first timer, no report information which is used to indicate at least one signal, of which quality is good enough to meet a third condition, in the second signal set, the terminal determines at least one of: the random access sequence for transmission is a contention-based random access sequence or the random access resource for transmission is a contention-based random access resource.

The operation that the terminal starts the first timer in the second protocol layer and determines at least one of the random access sequence or the random access resource for transmission based on the signal reporting situation during the duration of the first timer has been introduced above.

However, it is to be understood that the first timer may also not be started in the embodiment of the disclosure. Two implementation modes and optional modes thereof not covered by the invention will be introduced below.

In an implementation mode, after the first protocol layer receives indication information which is sent by the second protocol layer after determining occurrence of the second event, the terminal sends third report information to the second protocol layer based on a measurement result. Herein, the third report information is used to indicate at least one signal, of which quality is good enough to meet a third condition, in the second signal set or indicate that no signal, of which quality is good enough to meet a third condition, exists in the second signal set. Herein, the first protocol layer of the terminal may have started measuring the signal in the second signal set before receiving the indication information (for example, occurrence of the second event), and then may send the third report information based on the measurement result when receiving the indication information.

Optionally, when the third report information indicates the at least one signal, of which quality is good enough to meet a third condition, in the second signal set, the terminal determines at least one of: the random access sequence for transmission is a contention-free random access sequence or the random access resource for transmission is a contention-free random access resource; or
when the third report information indicates that no signal, of which the quality is good enough to meet the third condition, exists in the second signal set, the terminal determines at least one of: the random access sequence for transmission is a contention-based random access sequence or the random access resource for transmission is a contention-based random access resource.

In an implementation mode, after the first protocol layer receives indication information which is sent by the second protocol layer after determining occurrence of the second event, a second timer is started by the terminal in the first protocol layer.

During a duration of the second timer, the terminal sends fourth report information to the second protocol layer based on a measurement result. Here, the fourth report information is used to indicate at least one signal, of which a quality is good enough to meet a third condition, in the second signal set or indicate that no signal, of which quality is good enough to meet a third condition exists in the second signal set.

Optionally, when the fourth report information indicates the at least one signal, of which a quality is good enough to meet a third condition, in the second signal set, the terminal determines at least one of: the random access sequence is a contention-free random access sequence or the random access resource is a contention-free random access resource; or when the fourth report information indicates that no signal, of which the quality is good enough to meet the third condition, exists in the second signal set, the terminal determines at least one of: the random access sequence is a contention-based random access sequence or the random access resource is a contention-based random access resource.

Optionally, responsive to it is determined, based on the signal reporting situation, at least one of: the random access sequence is a contention-based random access sequence or the random access resource is a contention-based random access resource, the terminal determines at least one of the corresponding contention-based random access sequence or the corresponding contention-based random access resource based on an RLM measurement result.

In order to conveniently understand the disclosure, descriptions will be made below in combination with some examples.

At first, there is made such a hypothesis that q0 is a signal set including one or more signals (which may be CSI-RSs and may also be SS/PBCH blocks), and a terminal may measure quality of a signal in the signal set to judge whether a beam failure instance may occur (herein, a judgment threshold may be a hypothetical Block Error Ratio (BLER)). If performance corresponding to all the signals in q0 is lower than the threshold, one beam failure instance is determined. The terminal measures, in lower layer, link quality corresponding to the signal in q0, and then notifies a higher layer when the link quality is lower than the corresponding threshold. The higher layer judges according to a notification of the lower layer whether a beam failure occurs (for example, N notifications that indicates the link quality is lower than the corresponding threshold are continuously received and it is determined that a beam failure occurs).

q1 is a set including one or more signals (which may be CSI-RSs and may also be SS/PBCH blocks), and the terminal may measure corresponding quality to determine whether link quality corresponding to the signal is higher than a threshold to accordingly determine a possible new signal backup set (the judgment threshold is L1-Reference Signal Receiving Power (RSRP)).

The terminal, after a MAC layer determines occurrence of the beam failure (the second event, that is, the link quality is poor enough to meet a certain condition), may start a timer at any one of the following moments:.

When the MAC layer receives reference signals, which meet a certain threshold, reported by the physical layer before the timer ends, the MAC layer selects a reference signal from the reported reference signals and at least one of a contention-free PRACH resource or contention-free PRACH sequence corresponding to the reference signal for transmission. The following optional methods may be adopted to select the reference signal.

A reference signal with highest quality is selected from reference signals reported by the physical layer.

A reference signal is randomly selected from reference signals reported by the physical layer.

It is to be understood that another selection manner may also be adopted and there are no specific limits made thereto in the embodiment of the disclosure.

When the MAC layer receives no reference signal, which meets a certain threshold, reported by the physical layer before the timer ends, the MAC layer may select at least one of a corresponding contention-based PRACH sequence or contention-based PRACH resource for transmission according to other information (for example, an RLM measurement result of UE).

The terminal, after a MAC layer determines occurrence of the beam failure (the second event, that is, the link quality is poor enough to meet a certain condition), may start the timer at any one of the following moments:.

When the MAC layer receives information, which is used to indicate that there is no reference signal meeting a certain threshold, reported by the physical layer before the timer ends, the MAC layer may select at least one of a corresponding contention-based PRACH sequence or contention-based PRACH resource for transmission according to other information (for example, a RLM measurement result of UE).

The terminal, after a MAC layer determines occurrence of the beam failure (the second event, that is, the link quality is poor enough to meet a certain condition), may send indication information to a physical layer, and on the basis of the indication information, the physical layer may feed back whether a signal with relatively high quality exists in the set q1 to the MAC layer according to a measurement result. Herein, the measurement may be executed before triggering of the indication information. When the MAC layer receives information, which is used to indicate that there is no reference signal meeting a certain threshold, reported by the physical layer, the MAC layer may select at least one of a corresponding contention-based PRACH sequence or contention-based PRACH resource for transmission according to other information (for example, a RLM measurement result of UE). When the MAC layer receives reference signals, which meet a certain threshold, reported by the physical layer, the MAC layer selects a reference signal from the reported reference signals and at least one of a contention-free PRACH resource or contention-free PRACH sequence corresponding to the reference signal for transmission.

The terminal, after a MAC layer determines occurrence of the beam failure (the second event, that is, the link quality is poor enough to meet a certain condition), may send indication information to a physical layer, and based on the indication information, the physical layer may start a timer and perform measurement, and report to the MAC layer whether a reference signal meeting a certain threshold exists in the set q1 during a duration of the timer. When the MAC layer receives information, which is used to indicate that there is no reference signal meeting a certain threshold, reported by the physical layer, the MAC layer may select at least one of a corresponding contention-based PRACH sequence or contention-based PRACH resource for transmission according to other information (for example, a RLM measurement result of UE). When the MAC layer receives reference signals, which meet a certain threshold, reported by the physical layer, the MAC layer selects a reference signal from the reported reference signals and at least one of a contention-free PRACH resource or contention-free PRACH sequence corresponding to the reference signal for transmission.

Accordingly, in the embodiment of the disclosure, under the condition that the second protocol layer determines occurrence of the second event based on the occurrence situation of the first event, at least one of the random access sequence or the random access resource for transmission is determined in the second protocol layer based on the signal reporting situation provided by the first protocol layer about the second signal set, the random access sequence is the contention-based random access sequence or the contention-free random access sequence and the random access resource is the contention-based random access resource or the contention-free random access resource. Therefore, at least one of the random access sequence or the resource may be selected by use of the quality of the signal in the second signal set when the link for the signal in the first signal set is too poor to be available.

<FIG> is a schematic block diagram of a terminal <NUM> according to an embodiment of the disclosure. The terminal <NUM> includes a communication unit <NUM> and a processing unit <NUM>.

The communication unit <NUM> is configured to report, in a first protocol layer, a first event to a second protocol layer. Herein, the first event is used to indicate that quality of a signal in a first signal set is poor enough to meet a first condition.

The processing unit <NUM> is configured to, under the condition that the terminal, in the second protocol layer, determines occurrence of a second event based on an occurrence situation of the first event, determine, in the second protocol layer, at least one of a random access sequence or a random access resource for transmission based on a signal reporting situation provided by the first protocol layer about a second signal set. Herein, the random access sequence is a contention-based random access sequence or a contention-free random access sequence and the random access resource being a contention-based random access resource or a contention-free random access resource.

In the invention, the processing unit <NUM> is further configured to:.

Optionally, the processing unit <NUM> is further configured to:
responsive to the second protocol layer receives first report information from the first protocol layer during the duration of the first timer, determine at least one of: the random access sequence for transmission is a contention-free random access sequence or the random access resource for transmission is the contention-free random access resource, here, the first report information is used to indicate at least one signal, of which quality is good enough to meet a third condition in the second signal set.

Optionally, the processing unit <NUM> is further configured to:
responsive to the second protocol layer receives second report information from the first protocol layer during the duration of the first timer, determine at least one of: the random access sequence for transmission is a contention-based random access sequence or the random access resource for transmission is the contention-based random access resource, here, the second report information is used to indicate there is no signal, of which quality is good enough to meet a third condition, in the second signal set.

Optionally, the processing unit <NUM> is further configured to:
responsive to the second protocol layer receives, from the first protocol layer during the duration of the first timer, no report information which is used to indicate at least one signal, of which quality is good enough to meet a third condition, in the second signal set, determine at least one of: the random access sequence for transmission is the contention-based random access sequence or the random access resource for transmission is the contention-based random access resource.

Optionally, the processing unit <NUM> is further configured to:
start the first timer in the second protocol layer at a first moment, here, the first moment comprises one of:.

In an embodiment not being part of the present invention, the communication unit <NUM> is further configured to:
after the first protocol layer receives indication information which is sent by the second protocol layer after determining occurrence of the second event, send third report information to the second protocol layer based on a measurement result, here, the third report information is used to indicate at least one signal ,of which quality is good enough to meet a third condition, in the second signal set or indicate that no signal, of which quality is good enough to meet a third condition, exists in the second signal set.

Optionally, the processing unit <NUM> is further configured to:.

In an embodiment not being part of the present invention, the processing unit <NUM> is further configured to:
after the first protocol layer receives indication information which is sent by the second protocol layer after determining occurrence of the second event, start a second timer in the first protocol layer.

The communication unit <NUM> is further configured to, during a duration of the second timer, send fourth report information to the second protocol layer based on a measurement result, here, the fourth report information is used to indicate at least one signal of, which quality is good enough to meet a third condition, in the second signal set or indicate that no signal, of which quality is good enough to meet a third condition, exists in the second signal set.

Optionally, the processing unit <NUM> is further configured to:
responsive to it is determined, based on the signal reporting situation at least one of: the random access sequence is the contention-based random access sequence or the random access resource is the contention-based random access resource, determine at least one of a corresponding contention-based random access sequence or contention-based random access resource based on an RLM measurement result.

It is to be understood that the terminal <NUM> may correspond to the method <NUM> and may implement corresponding operations of the terminal in the method <NUM>. For simplicity, elaborations will be omitted herein.

<FIG> is a schematic structure diagram of a system chip <NUM> according to an embodiment of the disclosure not covered by the invention. The system chip <NUM> of <FIG> includes an input interface <NUM>, output interface <NUM>, processor <NUM> and memory <NUM> which may be connected through an internal communication connecting line. The processor <NUM> is configured to execute a code in the memory <NUM>.

Optionally, when the code is executed, the processor <NUM> implements a method executed by a terminal in the method embodiment. For simplicity, no more elaborations will be made herein.

<FIG> is a schematic block diagram of a communication device <NUM> according to an embodiment of the disclosure not covered by the invention. As illustrated in <FIG>, the communication device <NUM> includes a processor <NUM> and a memory <NUM>. Herein, the memory <NUM> may store a program code, and the processor <NUM> may execute the program code stored in the memory <NUM>.

Optionally, as illustrated in <FIG>, the communication device <NUM> may include a transceiver <NUM>, and the processor <NUM> may control the transceiver <NUM> for external communication.

Optionally, the processor <NUM> may call the program code stored in the memory <NUM> to execute corresponding operations of the terminal in the method embodiment. For similarity, elaborations will be omitted herein.

It is to be understood that the processor in the embodiment of the disclosure may be an integrated circuit chip and has a signal processing capability. In an implementation process, each operation of the method embodiment may be completed by an integrated logical circuit of hardware in the processor or an instruction in a software form. The processor may be a universal processor, a Digital Signal Processor (DSP), an Disclosure Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or another programmable logical device, discrete gate or transistor logical device and discrete hardware component. Each method, operation and logical block diagram disclosed in the embodiments of the disclosure may be implemented or executed. The universal processor may be a microprocessor or the processor may also be any conventional processor and the like. The operations of the method disclosed in combination with the embodiments of the disclosure may be directly embodied to be executed and completed by a hardware decoding processor or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in this field such as a Random Access Memory (RAM), a flash memory, a Read-Only Memory (ROM), a Programmable ROM (PROM) or Electrically EPROM (EEPROM) and a register. The storage medium is located in a memory, and the processor reads information in the memory, and completes the operations of the methods in combination with hardware.

It can be understood that the memory in the embodiment of the disclosure may be a volatile memory or a nonvolatile memory, or may include both the volatile and nonvolatile memories. The nonvolatile memory may be a ROM, a PROM, an Erasable PROM (EPROM), an EEPROM or a flash memory. The volatile memory may be a RAM, and is used as an external high-speed cache. It is exemplarily but unlimitedly described that RAMs in various forms may be adopted, such as a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDRSDRAM), an Enhanced SDRAM (ESDRAM), a Synchlink DRAM (SLDRAM) and a Direct Rambus RAM (DR RAM). It is to be noted that the memory of a system and method described in the disclosure is intended to include, but not limited to, memories of these and any other proper types.

Those of ordinary skill in the art may realize that the units and algorithm operations of each example described in combination with the embodiments disclosed in the disclosure may be implemented by electronic hardware or a combination of computer software and the electronic hardware. Whether these functions are executed in a hardware or software manner depends on specific disclosures and design constraints of the technical solutions. Professionals may realize the described functions for each specific disclosure by use of different methods, but such realization shall fall within the scope of the disclosure.

Those skilled in the art may clearly learn about that specific working processes of the system, device and unit described above may refer to the corresponding processes in the method embodiment and will not be elaborated herein for convenient and brief description.

When being realized in form of software functional unit and sold or used as an independent product, the function may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the disclosure substantially or parts making contributions to the conventional art or part of the technical solutions may be embodied in form of software product, and the computer software product is stored in a storage medium, including a plurality of instructions configured to enable a computer device (which may be a personal computer, a server, a network device or the like) to execute all or part of the operations of the method in each embodiment of the disclosure. The abovementioned storage medium includes: various media capable of storing program codes such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk.

Claim 1:
A method for wireless communication, comprising:
reporting (<NUM>), by a terminal, in a first protocol layer, a first event to a second protocol layer, the first event being used to indicate that quality of a signal in a first signal set q0 is worse than a threshold;
under the condition that the terminal determines, in the second protocol layer, occurrence of a second event based on an occurrence situation of the first event, starting, by the terminal, a first timer in the second protocol layer, and determining (<NUM>), by the terminal, in the second protocol layer, a random access sequence for transmission based on a signal reporting situation provided by the first protocol layer about a second signal set q1 during a duration of the first timer, the random access sequence being a contention-based random access sequence or a contention-free random access sequence,
wherein the second event is used to indicate that link quality corresponding to the signal in the first signal set q0 is poor enough to meet a second condition, wherein the first protocol layer is a physical layer and the second protocol layer is a higher layer,
characterized by determining (<NUM>), by the terminal, in the second protocol layer, the random access sequence for transmission based on the signal reporting situation about the second signal set q1 during the duration of the first timer comprises:
when the second protocol layer receives first report information from the first protocol layer during the duration of the first timer, determining, by the terminal, that the random access sequence for transmission is the contention-free random access sequence, the first report information being used to indicate at least one signal, of which quality is good enough to meet a third condition, in the second signal set q1.