Resource configuration method and apparatus
A resource configuration method and an apparatus are applied to the field of communications technologies. The method includes: a user equipment (UE) receives a first message sent by a base station. The first message carries configuration information of a preconfigured resource, and the preconfigured resource is used for data transmission by the UE in an idle state. The UE obtains first indication information, and releases the preconfigured resource based on the first indication information.
1. A resource configuration method, comprising:
receiving, by a user equipment (UE), a first message from a base station, wherein the first message carries configuration information of a preconfigured resource used for data transmission by the UE in an idle state;
obtaining, by the UE, first indication information, wherein the first indication information indicates a quantity of times that the preconfigured resource can be used;
determining, by the UE, based on the first indication information, whether the preconfigured resource is valid, wherein determining whether the preconfigured resource is valid comprises:
based on the UE using the preconfigured resource, starting to count a number of times that the preconfigured resource appears, and
based on the number of times that the preconfigured resource appears not being within the quantity of times indicated by the first indication information, determining that the preconfigured resource is invalid; and
based on determining that the preconfigured resource is invalid, releasing the preconfigured resource.
2. The method according to claim 1 , wherein the first indication information is comprised in the configuration information.
3. The method according to claim 1 , wherein obtaining the first indication information comprises: receiving, by the UE, a wake-up signal (WUS) carrying the first indication information; and
wherein releasing the preconfigured resource is further based on a signal sequence of the WUS being the same as a preset signal sequence.
4. A terminal device, comprising:
a processor; and
a non-transitory computer-readable storage medium storing instructions for execution by the processor, wherein the instructions, when executed by the processor, facilitate performance of the following by the terminal device:
receiving a first message from a base station, wherein the first message carries configuration information of a preconfigured resource used for data transmission by the terminal device in an idle state;
obtaining first indication information, wherein the first indication information indicates a quantity of times that the preconfigured resource can be used;
determining, based on the first indication information, whether the preconfigured resource is valid, wherein determining whether the preconfigured resource is valid comprises:
based on the terminal device using the preconfigured resource, starting to count a number of times that the preconfigured resource appears, and
based on the number of times that the preconfigured resource appears not being within the quantity of times indicated by the first indication information, determining that the preconfigured resource is invalid; and
based on determining that the preconfigured resource is invalid, releasing the preconfigured resource.
5. The terminal device according to claim 4 , wherein the first indication information is comprised in the configuration information.
6. The terminal device according to claim 4 , wherein obtaining the first indication information comprises: receiving a wake-up signal (WUS) carrying the first indication information; and
wherein releasing the preconfigured resource is further based on a signal sequence of the WUS being the same as a preset signal sequence.
7. A non-transitory computer-readable medium having processor-executable instructions for resource configuration, wherein the processor-executable instructions, when executed, facilitate performance of the following:
receiving a first message from a base station, wherein the first message carries configuration information of a preconfigured resource used for data transmission by a user equipment (UE) in an idle state;
obtaining first indication information, wherein the first indication information indicates a quantity of times that the preconfigured resource can be used;
determining, based on the first indication information, whether the preconfigured resource is valid, wherein determining whether the preconfigured resource is valid comprises:
based on the UE using the preconfigured resource, starting to count a number of times that the preconfigured resource appears, and
based on the number of times that the preconfigured resource appears not being within the quantity of times indicated by the first indication information, determining that the preconfigured resource is invalid; and
based on determining that the preconfigured resource is invalid, releasing the preconfigured resource.
8. The non-transitory computer-readable medium according to claim 7 , wherein the first indication information is comprised in the configuration information.
9. The non-transitory computer-readable medium according to claim 7 , wherein obtaining the first indication information comprises: receiving, by the UE, a wake-up signal (WUS) carrying the first indication information; and
wherein releasing the preconfigured resource is further based on a signal sequence of the WUS being the same as a preset signal sequence.
10. A system for resource configuration, comprising:
a user equipment (UE); and
a base station configured to send a first message to the UE, wherein the first message carries configuration information of a preconfigured resource used for data transmission by the UE in an idle state;
wherein the UE is configured to:
obtain first indication information, wherein the first indication information indicates a quantity of times that the preconfigured resource can be used;
determine, based on the first indication information, whether the preconfigured resource is valid, wherein determining whether the preconfigured resource is valid comprises: based on the UE using the preconfigured resource, starting to count a number of times that the preconfigured resource appears, and based on the number of times that the preconfigured resource appears not being within the quantity of times indicated by the first indication information, determining that the preconfigured resource is invalid; and
based on determining that the preconfigured resource is invalid, release the preconfigured resource.
11. The system according to claim 10 , wherein the first indication information is comprised in the configuration information.
12. The system according to claim 10 , wherein obtaining the first indication information comprises: receiving a wake-up signal (WUS) carrying the first indication information; and
wherein releasing the preconfigured resource is further based on a signal sequence of the WUS being the same as a preset signal sequence.