Data transmission method and apparatus, and terminal
View Patent ↗The embodiments of the present application provide a data transmission method and apparatus, and a terminal. The method comprises: a terminal sends uplink data to a network device by means of a NAS message; if the number of times the terminal fails to send the uplink data reaches a first threshold value, the terminal executes an RRC connection establishment process, establishes a dedicated bearer by means of the RRC connection establishment process, and sends the uplink data by means of the dedicated bearer.
1. A method for data transmission, comprising:
transmitting, by a terminal, uplink data to a network device through a Non-Access Stratum (NAS) message; and
in response to a number of failures in transmitting the uplink data by the terminal reaching a first threshold, performing, by the terminal, a Radio Resource Control (RRC) connection establishment procedure, establishing, by the terminal, a dedicated bearer through the RRC connection establishment procedure, and transmitting, by the terminal, the uplink data through the dedicated bearer,
wherein the transmitting, by the terminal, the uplink data to the network device through the NAS message comprises:
triggering, by a NAS layer of the terminal, an Access Stratum (AS) layer of the terminal to: transmit the uplink data to the network device and start a first timer; and
in response to failing to complete transmission of the uplink data upon expiration of the first timer, notifying, by the AS layer of the terminal, the NAS layer of the terminal that transmission of the uplink data fails.
2. The method of claim 1 , wherein in response to the number of failures in transmitting the uplink data by the terminal reaching the first threshold, performing, by the terminal, the RRC connection establishment procedure comprises:
determining, by the NAS layer of the terminal, that the number of failures in transmitting the uplink data reaches the first threshold, and
notifying, by the NAS layer of the terminal, the AS layer of the terminal to transmit a RRC connection establishment request message.
3. The method of claim 2 , wherein the determining, by the NAS layer of the terminal, that the number of failures in transmitting the uplink data reaches the first threshold comprises:
each time after triggering the AS layer of the terminal to transmit the uplink data to the network device, adding, by the NAS layer of the terminal, 1 to a value of a first counter; and
determining, by the NAS layer of the terminal, that the value of the first counter reaches the first threshold.
4. The method of claim 3 , wherein the first counter is configured to count transmission times of same uplink data.
5. The method of claim 1 , wherein in response to the number of failures in transmitting the uplink data by the terminal reaching the first threshold, performing, by the terminal, the RRC connection establishment procedure comprises:
determining, by the AS layer of the terminal, that the number of failures in transmitting the uplink data reaches the first threshold,
transmitting, by the AS layer of the terminal, a RRC connection establishment request message, and
notifying, by the AS layer of the terminal, the NAS layer of the terminal to perform the RRC connection establishment procedure.
6. The method of claim 5 , wherein the determining, by the AS layer of the terminal, that the number of failures in transmitting the uplink data reaches the first threshold comprises:
each time after transmitting the uplink data to the network device, adding, the AS layer of the terminal, 1 to a value of a second counter; and
determining, by the AS layer of the terminal, that the value of the second counter reaches the first threshold.
7. The method of claim 5 , wherein the second counter is configured to count transmission times of same uplink data.
8. A terminal, comprising:
a transceiver, configured to transmit uplink data to a network device through a Non-Access Stratum (NAS) message; and in response to a number of failures in transmitting the uplink data by the terminal reaching a first threshold, the transceiver is further configured to perform a Radio Resource Control (RRC) connection establishment procedure, establish a dedicated bearer through the RRC connection establishment procedure, and transmit the uplink data through the dedicated bearer,
wherein the transceiver comprises a NAS layer and an Access Stratum (AS) layer;
wherein the NAS layer is configured to trigger the AS layer to: transmit the uplink data to the network device and start a first timer; and
in response to failing to complete transmission of the uplink data upon expiration of the first timer, the AS layer is further configured to notify the NAS layer that transmission of the uplink data fails.
9. The terminal of claim 8 , wherein the NAS layer is further configured to determine that the number of failures in transmitting the uplink data reaches the first threshold, and notify the AS layer to transmit a RRC connection establishment request message.
10. The terminal of claim 9 , wherein each time after the NAS layer triggers the AS layer to transmit the uplink data to the network device, the NAS layer is configured to add 1 to a value of a first counter; and the NAS layer is further configured to determine that the value of the first counter reaches the first threshold.
11. The terminal of claim 10 , wherein the first counter is configured to count transmission times of same uplink data.
12. The terminal according to claim 8 , wherein the AS layer is configured to determine that the number of failures in transmitting the uplink data reaches the first threshold, and the AS layer is further configured to transmit a RRC connection establishment request message, and notify the NAS layer of the terminal to perform the RRC connection establishment procedure.
13. The terminal of claim 12 , wherein each time after the AS layer transmits the uplink data to the network device, the AS layer is configured to add 1 to a value of a second counter; the AS layer is further configured to determine that the value of the second counter reaches the first threshold.
14. The terminal of claim 13 , wherein the second counter is configured to count transmission times of same uplink data.
15. A terminal, comprising:
a transceiver, configured to receive first indication information from a network device, the first indication information being used to indicate a signal quality threshold; and
a processor, configured to measure a first signal quality of a target cell; and
the processor, further configured to determine a transmission mode of uplink data based on the measured first signal quality and the signal quality threshold,
wherein the processor is further configured to:
in response to the measured first signal quality being less than the signal quality threshold, notify, by an Access Stratum (AS) layer of the terminal, a Non-Access Stratum (NAS) layer of the terminal that transmission of the uplink data is not supported; and
in response to the measured first signal quality being greater than or equal to the signal quality threshold, notify, by the AS layer of the terminal, the NAS layer of the terminal that the transmission of the uplink data is supported.
16. The terminal according to claim 15 , wherein the processor is configured to: in response to the measured first signal quality being greater than or equal to the signal quality threshold, determine to transmit the uplink data to the network device in an Early Data Transmission (EDT) mode; and in response to the measured first signal quality being less than the signal quality threshold, the determine to transmit the uplink data to the network device through a dedicated bearer.
17. The terminal of claim 15 , wherein the signal quality comprises at least one of Reference Signal Received Power (RSRP), Reference Signal Received Quality (RSRQ) or Signal to Interference plus Noise Ratio (SINR).