Patent attributes
The embodiments of the disclosure provide a method for wireless communication and a device, which may select at least one of a random access sequence or a random access resource 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. The method includes that: a terminal reports, in a first protocol layer, a first event to a second protocol layer, here, 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; and 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, here, 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, and 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.