Communication method for wireless mode switching, electronic device and storage medium
A communication method for wireless mode switching, performed by a terminal, includes: determining a first priority associated with an information packet of a first wireless mode and a second priority associated with an information packet of a second wireless mode; determining a target wireless mode based on the first priority and the second priority; and configuring a time domain position of a switching period within a transmission period of the target wireless mode.
1 . A communication method for wireless mode switching, performed by a terminal, comprising:
determining a first priority associated with an information packet of a first wireless mode and a second priority associated with an information packet of a second wireless mode;
determining a target wireless mode based on the first priority and the second priority; and
configuring a time domain position of a switching period within a transmission period of the target wireless mode;
wherein determining the target wireless mode comprises:
in response to the first priority and the second priority being the same, determining one of the first wireless mode and the second wireless mode as the target wireless mode.
2 . The method as claimed in claim 1 , further comprising:
in response to a failure of determining any one of the first priority and the second priority, determining one of the first wireless mode and the second wireless mode as the target wireless mode.
3 . The method as claimed in claim 1 , further comprising:
in response to identifying that the target wireless mode is consistent with a current wireless mode, aligning an end of the switching period with an end of the transmission period of the target wireless mode.
4 . The method as claimed in claim 1 , further comprising:
in response to identifying that the target wireless mode is inconsistent with a current wireless mode, aligning a start of the switching period with a start of the transmission period of the target wireless mode.
5 . The method as claimed in claim 1 , wherein determining the first priority associated with the information packet of the first wireless mode and the second priority associated with the information packet of the second wireless mode comprises:
obtaining sidelink control information carried on a physical sidelink control channel; and
obtaining the first priority and the second priority by demodulating the sidelink control information.
6 . The method as claimed in claim 1 , further comprising:
in response to a failure of determining any one of the first priority and the second priority, determining a wireless mode in the first and the second wireless mode, which is corresponding to a success of obtaining the priority, as the target wireless mode.
7 . An electronic device, comprising:
a processor; and
a memory communicatively connected to the processor; wherein,
the memory is configured to store instructions executable by the processor, and the processor is configured to execute the instructions to:
determine a first priority associated with an information packet of a first wireless mode and a second priority associated with an information packet of a second wireless mode;
determine a target wireless mode based on the first priority and the second priority; and
configure a time domain position of a switching period within a transmission period of the target wireless mode;
wherein the processor is further configured to execute the instructions to:
in response to the first priority and the second priority being the same, determine one of the first wireless mode and the second wireless mode as the target wireless mode.
8 . The electronic device as claimed in claim 7 , wherein the processor is configured to execute the instructions to:
in response to a failure of obtaining any one of the first priority and the second priority, determine one of the first wireless mode and the second wireless mode as the target wireless mode.
9 . The electronic device as claimed in claim 7 , wherein the processor is configured to execute the instructions to:
in response to identifying that the target wireless mode is consistent with a current wireless mode, align an end of the switching period with an end of the transmission period of the target wireless mode.
10 . The electronic device as claimed in claim 7 , wherein the processor is configured to execute the instructions to:
in response to identifying that the target wireless mode is inconsistent with a current wireless mode, align a start of the switching period with a start of the transmission period of the target wireless mode.
11 . The electronic device as claimed in claim 7 , wherein the processor is configured to execute the instructions to:
obtain sidelink control information carried on a physical sidelink control channel; and
obtain the first priority and the second priority by demodulating the sidelink control information.
12 . The electronic device as claimed in claim 7 , wherein the processor is configured to execute the instructions to:
in response to a failure of obtaining any one of the first priority and the second priority, determine a wireless mode in the first and the second wireless mode, which is corresponding to a success of obtaining the priority, as the target wireless mode.
13 . A non-transitory computer-readable storage medium having stored therein computer instructions that are configured to cause a computer to perform a communication method for wireless mode switching, the method comprising:
determining a first priority associated with an information packet of a first wireless mode and a second priority associated with an information packet of a second wireless mode;
determining a target wireless mode based on the first priority and the second priority; and
configuring a time domain position of a switching period within a transmission period of the target wireless mode;
wherein the method further comprises:
in response to the first priority and the second priority being the same, determining one of the first wireless mode and the second wireless mode as the target wireless mode.
14 . The non-transitory computer-readable storage medium as claimed in claim 13 , wherein the method further comprises:
in response to a failure of obtaining any one of the first priority and the second priority, determining one of the first wireless mode and the second wireless mode as the target wireless mode.
15 . The non-transitory computer-readable storage medium as claimed in claim 13 , wherein the method further comprises:
in response to identifying that the target wireless mode is consistent with a current wireless mode, aligning an end of the switching period with an end of the transmission period of the target wireless mode.
16 . The non-transitory computer-readable storage medium as claimed in claim 13 , wherein the method further comprises:
in response to identifying that the target wireless mode is inconsistent with a current wireless mode, aligning a start of the switching period with a start of the transmission period of the target wireless mode.
17 . The non-transitory computer-readable storage medium as claimed in claim 13 , wherein determining the first priority associated with the information packet of the first wireless mode and the second priority associated with the information packet of the second wireless mode comprises:
obtaining sidelink control information carried on a physical sidelink control channel; and
obtaining the first priority and the second priority by demodulating the sidelink control information.