Path switching processing method and apparatus, and terminal
By determining the handover waiting timer and handover threshold through negotiation between UEs, the negotiation conflict when PC5 communication is switched to the Uu interface is avoided, the problem of signaling waste caused by terminals initiating the handover process at the same time in the existing technology is solved, and the communication efficiency is improved. Continuity and efficiency.
Patent Information
- Application Number
- PCT/CN2024/082082
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-03
AI Technical Summary
During the switching of PC5 communication between UEs to Uu interface communication, when it is detected that the link quality reaches or falls below a certain threshold, the two terminals initiate the negotiation process at the same time, resulting in conflicts and signaling waste.
By determining the handover waiting timer and handover threshold through negotiation between terminals, it is ensured that only one terminal initiates a path switching request when it detects that the quality of the direct communication link is lower than the threshold, and avoids initiating the handover process at the same time.
It effectively avoids conflicts in the PC5 negotiation process between UEs, reduces signaling waste, and improves communication continuity and efficiency.
Smart Images

Figure CN2024082082_03102024_PF_FP_ABST
Abstract
Description
Path switching processing method, device and terminal
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202310302406.4 filed in China on March 24, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of communication technology, and specifically relates to a path switching processing method, device and terminal. Background Art
[0004] In the related art, some services between user equipment (UE) require switching from PC5 communication to Uu communication. Therefore, a negotiation process for switching from PC5 communication to Uu communication is introduced between UEs. Currently, one trigger for this switching is when the UE detects that the PC5 link quality reaches or falls below a configured threshold. Since both UEs monitor this threshold, once this threshold is reached, they both initiate the PC5-to-Uu negotiation process, resulting in negotiation conflicts.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a path switching processing method, device, and terminal, which can solve the problem of conflicts in the PC5 negotiation process between UEs.
[0007] In a first aspect, a path switching processing method is provided, comprising:
[0008] The first terminal initiates a path switching process or executes a path switching process initiated by the second terminal based on the target information, wherein the first terminal and the second terminal communicate through a direct communication interface, and the path switching process is used to negotiate and / or trigger switching of a transmission mode of the target service from transmission through the direct communication interface to transmission through the air communication interface;
[0009] The target information is used to indicate at least one of the following:
[0010] timing information of a first handover wait timer of the first terminal;
[0011] Information about the initiator of the path switching process;
[0012] a relationship between a direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0013] The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold.
[0014] In a second aspect, a path switching processing device is provided, including:
[0015] a processing module, configured to initiate a path switching process or execute a path switching process initiated by a second terminal based on the target information, wherein the first terminal and the second terminal communicate via a direct communication interface, and the path switching process is used to negotiate and / or trigger switching of a transmission mode of the target service from transmission via the direct communication interface to transmission via an air communication interface;
[0016] The target information is used to indicate at least one of the following:
[0017] timing information of a first handover wait timer of the first terminal;
[0018] Information about the initiator of the path switching process;
[0019] a relationship between a direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0020] The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold.
[0021] In a third aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0022] According to a fourth aspect, a terminal is provided, including a processor and a communication interface, wherein the processor is configured to initiate a path switching process or execute a path switching process initiated by a second terminal based on target information, wherein the first terminal and the second terminal communicate via a direct communication interface, and the path switching process is configured to negotiate and / or trigger switching of a transmission mode of a target service from transmission via the direct communication interface to transmission via an air communication interface;
[0023] The target information is used to indicate at least one of the following:
[0024] timing information of a first handover wait timer of the first terminal;
[0025] Information about the initiator of the path switching process;
[0026] a relationship between a direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0027] The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold.
[0028] In a fifth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0029] In a sixth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.
[0030] In a seventh aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.
[0031] In an eighth aspect, a communication system is provided, comprising a first terminal and a second terminal, wherein the first terminal initiates a path switching process based on target information, and the second terminal executes the path switching process initiated by the first terminal; or, the second terminal initiates a path switching process based on target information, and the first terminal executes the path switching process initiated by the second terminal.
[0032] In an embodiment of the present application, the first terminal initiates a path switching process or executes a path switching process initiated by the second terminal based on the target information. The target information is used to indicate at least one of the following: timing information of the first switching wait timer of the first terminal; information of the initiator of the path switching process; a relationship between the direct communication link quality value and the first switching threshold, the first switching threshold being a switching threshold dedicated to the first terminal; a first random number carried in the first path switching request and a second random number carried in the second path switching request. Through the above scheme, the first terminal can determine whether to initiate a path negotiation process or execute a path switching process initiated by the second terminal based on the target information, thereby avoiding the two terminals communicating through the direct communication interface from initiating the path switching process at the same time, thereby effectively avoiding conflicts in the PC5 negotiation process between UEs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG1 is a structural diagram of a communication system applicable to embodiments of the present application;
[0034] FIG2 is a schematic diagram showing a flow chart of a path switching processing method according to an embodiment of the present application;
[0035] FIG3 shows one interactive schematic diagram of the path switching processing method according to an embodiment of the present application;
[0036] FIG4 shows a second interactive diagram of the path switching processing method according to an embodiment of the present application;
[0037] FIG5 shows a third interactive diagram of the path switching processing method according to an embodiment of the present application;
[0038] FIG6 is a module diagram of a path switching processing device according to an embodiment of the present application;
[0039] FIG7 is a block diagram showing a structure of a communication device according to an embodiment of the present application;
[0040] FIG8 shows a structural block diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0042] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0043] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.
[0044] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) or other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above, as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for example purposes, and NR terminology is used in most of the following description, but these technologies can also be applied to systems other than NR systems, such as 6th Generation (6G) communication systems.
[0045] FIG1 is a block diagram of a wireless communication system applicable to an embodiment of the present application. The wireless communication system includes a terminal 11 and a network-side device 12. The terminal 11 may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile internet device (MID), an augmented reality (AR), a virtual reality (VR) device, a robot, a wearable device (Wearable Device), an aircraft (Flight Vehicle), a vehicle-mounted device (VUE), a ship-mounted device, a pedestrian user equipment (PUE), a smart home (home appliances with wireless communication capabilities, such as refrigerators, televisions, washing machines, or furniture), a game console, a personal computer (PC), an ATM, or a self-service machine, or other terminal-side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. It should be noted that the specific type of the terminal 11 is not limited in the embodiment of the present application. The network side device 12 may include an access network device or a core network device, wherein the access network device may also be called a radio access network (Radio Access Network, RAN) device, a radio access network function or a radio access network unit. The access network device may include a base station, a wireless local area network (WLAN) access point (AS) or a wireless fidelity (WiFi) node, etc.Among them, the base station can be referred to as Node B (NB), Evolved Node B (eNB), the next generation Node B (gNB), New Radio Node B (NR Node B), access point, Relay Base Station (RBS), Serving Base Station (SBS), Base Transceiver Station (BTS), radio base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (ESS), Home Node B (HNB), Home Evolved Node B (home evolved Node B), Transmission Reception Point (TRP) or other appropriate terms in the field. As long as the same technical effect is achieved, the base station is not limited to specific technical vocabulary. It should be noted that in the embodiment of the present application, only the base station in the NR system is used as an example for introduction, and the specific type of the base station is not limited.
[0046] In order to enable those skilled in the art to better understand the embodiments of the present application, the following description is now provided.
[0047] UEs can communicate directly with each other through the PC5 interface, or they can communicate with each other through the network through the Uu interface. In order to maintain the continuity of service communications between UEs, for two UEs communicating through the PC5 interface, the quality of PC5 interface communication may decline due to some factors, such as the distance between the two UEs increases, which causes the quality of PC5 interface communication to decline and cannot meet the communication requirements of the service. In this case, it is necessary to switch to Uu interface communication. In order to enable UEs to switch certain services to Uu interface communication, a negotiation process for switching PC5 communication to Uu port communication is introduced between UEs. Currently, one of the triggering conditions for switching is when the UE detects that the PC5 link quality reaches or falls below a certain configured threshold value. Since both UEs will detect this threshold value, once this threshold value is detected, they will initiate the above-mentioned negotiation process for switching PC5 communication to Uu port communication, resulting in negotiation conflicts, further signaling waste, and inconsistent understanding of the negotiation process between terminals.
[0048] In related technologies, signaling conflicts on a PC5 link are considered abnormal. The initiating UE abandons the PC5 link management process it initiated and starts a timer. After the timer expires, it will re-initiate the relevant PC5 link management process. This is considered an abnormal situation because the probability of occurrence is very small. Because the triggering conditions for the current PC5 link management process are independent and random for each UE, there is no pre-configured mechanism to prevent such conflicts. Therefore, the inherent handling mechanism does not avoid PC5 management process conflicts between UEs. Subsequent conflict resolution solutions are only considered after a conflict occurs, resulting in a certain amount of signaling waste.
[0049] The switching process from the PC5 communication path to the Uu communication path in the related art may specifically include:
[0050] 1. UE-1 and UE-2 communicate directly through the PC5 interface.
[0051] 2. UE-1 sends a path switch request message to UE-2.
[0052] Specifically, UE-1 decides to switch Proximity Services (ProSe) from the PC5 path to the Uu path, for example, if the PC5 signal strength of the unicast link with UE-2 reaches or falls below a certain configured signal strength threshold.
[0053] UE-1 determines whether and which ProSe can be switched to the Uu path based on the path switching policy.
[0054] UE-1 sends a path switch request message to UE-2 to negotiate the ProSe to be switched. UE-1 includes the ProSe that can be switched to the Uu path in the path switch request message.
[0055] Optionally, UE-1 may determine the Uu QoS parameters of each UE based on the PC5 Quality of Service (QoS) parameters of each ProSe. UE-1 may include the Uu QoS parameters of the Uu path of UE-2 for switching to the ProSe service of the Uu path in the path switch request message.
[0056] 3. UE-2 responds with a Path Switch Response message.
[0057] UE-2 determines whether and which ProSe services can be switched to the Uu path based on, for example, the path switching policy, the availability of the Uu path, etc.
[0058] If UE-2 accepts the path switch request from UE-1, UE-2 includes the ProSe service to be switched to the Uu path among the ProSe services indicated by UE-1 in the path switch response message. Otherwise, UE-2 rejects the path switch request with an appropriate reason (e.g., ProSe service switching to the Uu path is not allowed, Uu path is unavailable) in the path switch response message.
[0059] 4a. UE-1 establishes or updates a Protocol Data Unit (PDU) session on the Uu interface.
[0060] 4b. UE-2 establishes or updates a PDU session on the Uu interface.
[0061] 5. The transmission of the ProSe service is switched from the PC5 path to the Uu path.
[0062] 6. UE-1 and UE-2 release the PC5 unicast connection.
[0063] The path switching processing method provided by the embodiment of the present application is described in detail below with reference to some embodiments and application scenarios with reference to the accompanying drawings.
[0064] As shown in FIG2 , an embodiment of the present application provides a path switching processing method, including:
[0065] Step 201: The first terminal initiates a path switching process or executes a path switching process initiated by a second terminal based on target information, wherein the first terminal and the second terminal communicate via a direct communication interface, and the path switching process is used to negotiate and / or trigger switching of a transmission mode of a target service from transmission via the direct communication interface to transmission via an air communication interface;
[0066] The target information is used to indicate at least one of the following:
[0067] Item 1: timing information of a first handover waiting timer of the first terminal;
[0068] The second item: information about the initiator of the path switching process;
[0069] Item 3: a relationship between the direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0070] Item 4: A first random number carried in a first path switch request and a second random number carried in a second path switch request. The first path switch request is sent by the first terminal when the first terminal detects that the direct communication link quality value is less than or equal to a second switch threshold. The second path switch request is sent by the second terminal when the second terminal detects that the direct communication link quality value is less than or equal to the second switch threshold. That is, the second switch threshold is a switch threshold shared by the first and second terminals.
[0071] Optionally, the direct communication interface in the embodiment of the present application includes a PC5 interface, and the air communication interface includes a Uu interface.
[0072] In an embodiment of the present application, a first terminal initiating a path switching process includes the first terminal sending a path switching request message to a second terminal, the path switching request message including identification information of a target service, such as an identifier (ID) of the target service, where the target service includes at least one service. After receiving the path switching request message, the second terminal sends a path switching response message to the first terminal, the path switching response message including identification information of the target service that the first terminal confirms switching to the air communication interface for transmission.
[0073] When a second terminal initiates a path switching process, the second terminal sends a path switching request message to the first terminal, where the path switching request message includes identification information of a target service, such as an ID of the target service, where the target service includes at least one service. The first terminal performs the path switching process initiated by the second terminal, including: the first terminal sends a path switching response message to the second terminal, where the path switching response message includes identification information of a target service that the second terminal confirms switching to the air communication interface for transmission.
[0074] In an embodiment of the present application, the first terminal initiates a path switching process or executes a path switching process initiated by the second terminal based on the target information. The target information is used to indicate at least one of the following: timing information of the first switching waiting timer of the first terminal; information of the initiator of the path switching process; a relationship between the direct communication link quality value and the first switching threshold, the first switching threshold being a switching threshold dedicated to the first terminal; a first random number carried in the first path switching request and a second random number carried in the second path switching request. Through the above scheme, the first terminal can determine whether to initiate a path negotiation process or execute a path switching process initiated by the second terminal based on the target information, thereby avoiding the two terminals communicating through the direct communication interface from initiating a path switching process at the same time, thereby effectively avoiding conflicts in the PC5 negotiation process between UEs.
[0075] Optionally, when the target information is used to indicate timing information of the first handover wait timer, the method further includes:
[0076] The first terminal starts the first handover waiting timer.
[0077] Optionally, the first terminal starting the first handover waiting timer includes:
[0078] The first terminal starts the first handover waiting timer when detecting that the direct communication link quality value is less than or equal to a third handover threshold, where the third handover threshold is a handover threshold shared by the first terminal and the second terminal.
[0079] Optionally, a timing value of the first handover wait timer is randomly set by the first terminal (e.g., based on UE implementation configuration), or is configured by the network side, or is pre-configured. The first handover wait timer expires when the value of the first handover wait timer reaches the timing value.
[0080] It should be noted that the expiration of each timer in this application can also be understood as the timer timing out or failure (expire).
[0081] Optionally, in an embodiment of the present application, the target information is used to indicate timing information of a first handover wait timer of the first terminal;
[0082] The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes:
[0083] Initiating a path switching process when the timing information of the first switching wait timer indicates that the first switching wait timer has expired and no path switching request sent by the second terminal has been received;
[0084] Alternatively, when the timing information of the first switching waiting timer indicates that the first switching waiting timer has not expired and the path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed, and the path switching request sent by the second terminal is sent when the timing information of the second switching waiting timer of the second terminal indicates that the second switching waiting timer has expired and the second terminal has not received the path switching request sent by the first terminal, wherein the second switching waiting timer is started by the second terminal when it detects that the direct communication link quality value is less than or equal to a third switching threshold, and the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
[0085] Optionally, the timing value of the second handover waiting timer is randomly set by the second terminal (for example, based on UE implementation configuration), or is configured by the network side, or is pre-configured.
[0086] Optionally, the method of the embodiment of the present application further includes:
[0087] When the path switching request sent by the second terminal is received, the first switching waiting timer is controlled to stop timing.
[0088] 3, the first terminal initiates a path switching process according to the timing information of the first switching wait timer. As shown in FIG3, the process includes:
[0089] Step 301: A first terminal (UE-1) and a second terminal (UE-2) communicate directly via a PC5 interface.
[0090] Step 302: When detecting that the direct communication link quality value is less than or equal to the third handover threshold, UE-1 sets and starts a first handover waiting timer, and UE-2 sets and starts a second handover waiting timer.
[0091] Optionally, a timing value of the first switching wait timer is different from a timing value of the second switching wait timer.
[0092] Step 303: When the first switching waiting timer expires and UE-1 has not received a path switching request sent by the second terminal, UE-1 initiates a path switching process.
[0093] That is, when the first switching waiting timer expires before the second switching waiting timer expires, the first terminal initiates the path switching process.
[0094] If the second switching waiting timer expires before the first switching waiting timer, the second terminal initiates a path switching process, and the first terminal executes the path switching process initiated by the second terminal.
[0095] Specifically, initiating the path switching process includes sending a path switching request message, where the path switching request message includes an ID of a target service, where the target service is a service that UE-1 determines needs to be switched to the Uu interface for communication.
[0096] Step 304: After receiving the path switch request message from UE-1, UE-2 controls the second switching wait timer to stop timing.
[0097] Step 305: UE-2 sends a path switch response message to UE-1. The path switch response message carries service information of the target service, indicating that UE-2 confirms switching to Uu communication. The service information may be a service ID.
[0098] Step 306: UE-1 and UE-2 respectively establish or update a PDU session on the Uu interface.
[0099] Step 307: The corresponding data stream on PC5 is switched to the Uu port.
[0100] Step 308: The PC5 connection between UE-1 and UE-2 is released.
[0101] In the above process, UE-1 and UE-2 respectively set a switching waiting timer. When the direct communication link quality value is less than or equal to the third switching threshold, UE-1 and UE-2 respectively start the above-mentioned switching waiting timer, and the UE whose switching waiting timer expires first initiates the path switching process, thereby effectively avoiding both UEs initiating the path switching process, thereby effectively avoiding conflicts in the PC5 negotiation process between UEs.
[0102] Optionally, in an embodiment of the present application, the target information is used to indicate information of an initiator of a path switching process;
[0103] The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes:
[0104] Initiate a path switching process when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the first terminal is the initiator of the path switching process;
[0105] Alternatively, when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process, executing the path switching process initiated by the second terminal;
[0106] The fourth switching threshold is a switching threshold shared by the first terminal and the second terminal.
[0107] In the embodiment of the present application, the initiator information of the above-mentioned path switching process may be determined by negotiation between the first terminal and the second terminal during the establishment of the PC5 connection.
[0108] Optionally, the method of the embodiment of the present application further includes:
[0109] The first terminal and the second terminal negotiate to determine the initiator information of the path switching process.
[0110] Optionally, the first terminal and the second terminal negotiate to determine the initiator information of the path switching process, including:
[0111] The first terminal sends a first direct communication request to the second terminal, where the first direct communication request carries information about the initiator of the path switching process, and the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process; the first terminal receives a first direct communication request acceptance message sent by the second terminal; the first direct communication request acceptance message is used to indicate agreement or acceptance of the initiator information.
[0112] Alternatively, the first terminal receives a second direct communication request sent by the second terminal, the second direct communication request carrying initiator information of the path switching process, the initiator information of the path switching process being used to indicate that the first terminal or the second terminal is the initiator of the path switching process, and the first terminal sends a second direct communication request accept message to the second terminal based on the second direct communication request. The second direct communication request accept message is used to indicate approval or acceptance of the initiator information.
[0113] Optionally, the method of the embodiment of the present application further includes:
[0114] When the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process and it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold, starting a third switching waiting timer;
[0115] When the path switching request sent by the second terminal is received, the third switching waiting timer is controlled to stop timing.
[0116] Here, the third handover wait timer can be used to determine whether the second terminal has a need to initiate a path switch process. For example, if the third handover wait timer expires but no path switch request is received from the second terminal, it is considered that the second terminal will not initiate a path switch process, that is, the second terminal has no need to switch services on the PC5 link to the Uu link.
[0117] 4, the first terminal initiating the path switching process according to the initiator information of the path switching process is described below. As shown in FIG4, the process includes:
[0118] Step 401: UE-1 sends a first direct communication request to UE-2.
[0119] The first direct communication request carries the initiator information of the path switching process. Optionally, the first direct communication request carries switching indication information, and the switching indication information indicates the initiator information of the path switching process.
[0120] Step 402: UE-2 sends a first direct communication acceptance message to UE-1.
[0121] Step 403: When the initiator information is UE-1, when UE-2 detects that the direct communication link quality value is less than or equal to the fourth handover threshold, a third handover waiting timer is set and started.
[0122] Step 404: When the third switching wait timer expires, if the path switching request message sent by UE-1 is not received, it is considered that UE-1 will not initiate the path switching process. If the path switching request message sent by UE-1 is received, the third switching wait timer is controlled to stop timing.
[0123] After step 404 is executed, steps 306 to 308 in the embodiment described in FIG. 3 are executed.
[0124] In an embodiment of the present application, the first terminal and the second terminal pre-negotiate to determine the initiator of the path switching process, and when the direct communication link quality value is less than or equal to the fourth switching threshold, the initiator initiates the path switching process, thereby effectively avoiding that both UEs initiate the path switching process, thereby effectively avoiding conflicts in the PC5 negotiation process between the UEs.
[0125] Optionally, in an embodiment of the present application, the target information is used to indicate a relationship between a direct communication link quality value and a first handover threshold;
[0126] The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes:
[0127] Initiating a path switching process when detecting that the direct communication link quality value is less than or equal to a first switching threshold and no path switching request sent by the second terminal is received;
[0128] Alternatively, when it is detected that the direct communication link quality value is greater than the first switching threshold and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed. The path switching request sent by the second terminal is sent when the second terminal detects that the direct communication link quality value is less than or equal to a fifth switching threshold and does not receive a path switching request sent by the first terminal. The fifth switching threshold is a path switching threshold dedicated to the second terminal.
[0129] Here, the above-mentioned first switching threshold is different from the above-mentioned fifth switching threshold. The first switching threshold or the fifth switching threshold can be configured by the RAN or the core network, or it can be the value adjusted by UE-1 or UE-2 itself to the configured switching threshold within a controllable range.
[0130] In an embodiment of the present application, the first terminal and the second terminal correspond to different switching thresholds respectively. The terminal that first checks that the direct communication link quality value is less than or equal to the corresponding switching threshold initiates the path switching process, thereby effectively avoiding that both UEs initiate the path switching process, thereby effectively avoiding conflicts in the PC5 negotiation process between the UEs.
[0131] Optionally, in an embodiment of the present application, the target information is used to indicate a first random number carried in the first path switching request and a second random number carried in the second path switching request;
[0132] The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes:
[0133] Initiate a path switching process when the first random number is greater than or equal to the second random number; or, initiate a path switching process initiated by the second terminal when the first random number is less than the second random number;
[0134] Alternatively, if the first random number is less than or equal to the second random number, a path switching process is initiated; or if the first random number is greater than the second random number, a path switching process initiated by the second terminal is executed.
[0135] 5, the process of the first terminal initiating a path switching according to the first random number and the second random number is described below. As shown in FIG5, the process includes:
[0136] Step 501a: When UE-1 detects that the direct communication link quality value is less than or equal to the second switching threshold, it sends a first path switching request, where the first path switching request carries a first random number.
[0137] Step 501b: When UE-2 detects that the direct communication link quality value is less than or equal to the second switching threshold, it sends a second path switching request, where the second path switching request carries a second random number.
[0138] Step 502: UE-1 and UE-2 respectively determine the size of the first random number and the second random number, and determine whether to execute the path switching process initiated by themselves or the path switching process initiated by the opposite UE.
[0139] Step 503: UE-2 determines to execute the path switching process initiated by UE-1 according to the sizes of the first random number and the second random number, sends a path switching response to UE-1, and discards the path switching process initiated by itself.
[0140] For example, if the second random number is greater than the first random number, or if the second random number is less than the first random number, UE-2 determines to execute the path switching process initiated by UE-1, sends a path switching response to UE-1, and discards the path switching process initiated by itself. Optionally, the first random number is different from the second random number.
[0141] In an embodiment of the present application, the UE carries a random number in the path switching request. The UE determines whether to execute the path switching process initiated by the opposite UE or the path switching process initiated by itself based on the random number set by itself and the random number received from the opposite end, thereby effectively avoiding conflicts in the PC5 negotiation process between UEs.
[0142] Optionally, after the first terminal initiates a path switching process according to the target information, the method further includes:
[0143] Upon receiving the path switching request sent by the second terminal, perform at least one of the following:
[0144] Stopping the path switching process;
[0145] Start the fourth switching waiting timer, wherein, after the fourth switching waiting timer expires, the first terminal re-initiates the path switching process. In the solution of the embodiment of the present application, the first terminal initiates the path switching process or executes the path switching process initiated by the second terminal according to the target information. The target information is used to indicate at least one of the following: the timing information of the first switching waiting timer of the first terminal; the initiator information of the path switching process; the relationship between the direct communication link quality value and the first switching threshold, the first switching threshold is a switching threshold dedicated to the first terminal; the first random number carried in the first path switching request and the second random number carried in the second path switching request. Through the above solution, the first terminal can determine whether to initiate the path negotiation process or execute the path switching process initiated by the second terminal based on the target information, thereby avoiding the two terminals communicating through the direct communication interface from initiating the path switching process at the same time, thereby effectively avoiding the conflict of the PC5 negotiation process between UEs.
[0146] The path switching processing method provided in the embodiment of the present application can be executed by a path switching processing device. In the embodiment of the present application, the path switching processing device provided in the embodiment of the present application is described by taking the path switching processing device executing the path switching processing method as an example.
[0147] As shown in FIG6 , an embodiment of the present application provides a path switching processing device 600, including:
[0148] a processing module 601, configured to initiate a path switching process or execute a path switching process initiated by a second terminal based on target information, wherein the first terminal and the second terminal communicate via a direct communication interface, and the path switching process is used to negotiate and / or trigger switching of a transmission mode of a target service from transmission via the direct communication interface to transmission via an air communication interface;
[0149] The target information is used to indicate at least one of the following:
[0150] timing information of a first handover wait timer of the first terminal;
[0151] Information about the initiator of the path switching process;
[0152] a relationship between a direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0153] The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold.
[0154] Optionally, when the target information is used to indicate timing information of the first handover wait timer, the apparatus further includes:
[0155] A first starting module is configured to start the first handover waiting timer. Optionally, the first starting module is configured to start the first handover waiting timer when detecting that the direct communication link quality value is less than or equal to a third handover threshold, where the third handover threshold is a handover threshold shared by the first terminal and the second terminal.
[0156] Optionally, when the target information is used to indicate timing information of the first handover wait timer, the apparatus further includes:
[0157] The first starting module is configured to start the first handover waiting timer when detecting that the direct communication link quality value is less than or equal to a third handover threshold, where the third handover threshold is a handover threshold shared by the first terminal and the second terminal.
[0158] Optionally, the timing value of the first switching waiting timer is randomly set by the first terminal, or is configured by the network side, or is pre-configured.
[0159] Optionally, the target information is used to indicate timing information of a first handover waiting timer of the first terminal;
[0160] The processing module is configured to initiate a path switching process when the timing information of the first switching wait timer indicates that the first switching wait timer has expired and no path switching request sent by the second terminal has been received;
[0161] Alternatively, when the timing information of the first switching waiting timer indicates that the first switching waiting timer has not expired and the path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed, and the path switching request sent by the second terminal is sent when the timing information of the second switching waiting timer of the second terminal indicates that the second switching waiting timer has expired and the second terminal has not received the path switching request sent by the first terminal, wherein the second switching waiting timer is started by the second terminal when it detects that the direct communication link quality value is less than or equal to a third switching threshold, and the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
[0162] Optionally, the device of the embodiment of the present application further includes:
[0163] The first control module is configured to control the first switching wait timer to stop timing when receiving the path switching request sent by the second terminal.
[0164] Optionally, the target information is used to indicate information of an initiator of the path switching process;
[0165] The processing module is configured to initiate a path switching process when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the first terminal is the initiator of the path switching process;
[0166] Alternatively, when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process, executing the path switching process initiated by the second terminal;
[0167] The fourth switching threshold is a switching threshold shared by the first terminal and the second terminal.
[0168] Optionally, the device of the embodiment of the present application further includes:
[0169] The negotiation module is configured to negotiate with the second terminal to determine the initiator information of the path switching process.
[0170] Optionally, the negotiation module is configured to send a first direct communication request to the second terminal, where the first direct communication request carries information about an initiator of the path switching process, where the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process; and receive a first direct communication request acceptance message sent by the second terminal;
[0171] Alternatively, it is used to receive a second direct communication request sent by a second terminal, the second direct communication request carries the initiator information of the path switching process, the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process, and send a second direct communication request acceptance message to the second terminal according to the second direct communication request.
[0172] Optionally, the device of the embodiment of the present application further includes:
[0173] A second starting module is configured to start a third handover waiting timer when the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process and it is detected that the direct communication link quality value is less than or equal to a fourth handover threshold;
[0174] The second control module is configured to control the third switching waiting timer to stop timing when receiving the path switching request sent by the second terminal.
[0175] Optionally, the target information is used to indicate a relationship between a direct communication link quality value and a first handover threshold;
[0176] The processing module is configured to initiate a path switching process when detecting that the direct communication link quality value is less than or equal to a first switching threshold and no path switching request sent by the second terminal is received;
[0177] Alternatively, when it is detected that the direct communication link quality value is greater than the first switching threshold and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed. The path switching request sent by the second terminal is sent when the second terminal detects that the direct communication link quality value is less than or equal to a fifth switching threshold and does not receive a path switching request sent by the first terminal. The fifth switching threshold is a path switching threshold dedicated to the second terminal.
[0178] Optionally, the target information is used to indicate a first random number carried in the first path switching request and a second random number carried in the second path switching request;
[0179] The processing module is configured to initiate a path switching process when the first random number is greater than or equal to the second random number; or, when the first random number is less than the second random number, execute the path switching process initiated by the second terminal;
[0180] Alternatively, when the first random number is less than or equal to the second random number, a path switching process is initiated; or when the first random number is greater than the second random number, a path switching process initiated by the second terminal is executed.
[0181] Optionally, the device of the embodiment of the present application further includes:
[0182] an execution module, configured to, after the processing module initiates the path switching process according to the target information, execute at least one of the following upon receiving a path switching request sent by the second terminal:
[0183] Stopping the path switching process;
[0184] A fourth switching waiting timer is started, wherein after the fourth switching waiting timer expires, the first terminal re-initiates the path switching process.
[0185] The device of the embodiment of the present application initiates a path switching process or executes a path switching process initiated by the second terminal according to the target information. The target information is used to indicate at least one of the following: the timing information of the first switching waiting timer of the first terminal; the initiator information of the path switching process; the relationship between the direct communication link quality value and the first switching threshold, the first switching threshold being a switching threshold dedicated to the first terminal; the first random number carried in the first path switching request and the second random number carried in the second path switching request. Through the above scheme, the first terminal can determine whether to initiate a path negotiation process or execute a path switching process initiated by the second terminal based on the target information, thereby avoiding the two terminals communicating through the direct communication interface from initiating the path switching process at the same time, thereby effectively avoiding the conflict of the PC5 negotiation process between UEs.
[0186] The path switching processing device in the embodiments of the present application can be an electronic device, such as an electronic device with an operating system, or a component of an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other device other than a terminal. For example, the terminal can include but is not limited to the types of terminal 11 listed above, and the other device can be a server, a network attached storage (NAS), etc., which is not specifically limited in the embodiments of the present application.
[0187] The path switching processing device provided in the embodiment of the present application can implement the various processes implemented in the method embodiments of Figures 2 to 5 and achieve the same technical effects. To avoid repetition, they are not described here.
[0188] Optionally, as shown in Figure 7, an embodiment of the present application further provides a communication device 700, including a processor 701 and a memory 702, where the memory 702 stores a program or instruction that can be run on the processor 701. For example, when the communication device 700 is a terminal, the program or instruction is executed by the processor 701 to implement the various steps of the above-mentioned path switching processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0189] An embodiment of the present application further provides a terminal, including a processor and a communication interface, wherein the processor is configured to initiate a path switching process or execute a path switching process initiated by a second terminal based on target information, wherein the first terminal and the second terminal communicate via a direct communication interface, and the path switching process is configured to negotiate and / or trigger switching of a transmission mode of a target service from transmission via the direct communication interface to transmission via an air communication interface;
[0190] The target information is used to indicate at least one of the following:
[0191] timing information of a first handover wait timer of the first terminal;
[0192] Information about the initiator of the path switching process;
[0193] a relationship between a direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0194] The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when it detects that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when it detects that the direct communication link quality value is less than or equal to the second switching threshold. This terminal embodiment corresponds to the above-mentioned terminal-side method embodiment, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to this terminal embodiment and can achieve the same technical effect. Specifically, Figure 8 is a schematic diagram of the hardware structure of a terminal that implements an embodiment of the present application.
[0195] The terminal 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809 and at least some of the components of the processor 810.
[0196] Those skilled in the art will appreciate that the terminal 800 may also include a power supply (such as a battery) to power various components. The power supply may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. The terminal structure shown in FIG8 does not constitute a limitation of the terminal. The terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0197] It should be understood that in an embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0198] In the embodiment of the present application, after receiving downlink data from a network-side device, the radio frequency unit 801 may transmit the data to the processor 810 for processing. Furthermore, the radio frequency unit 801 may send uplink data to the network-side device. Typically, the radio frequency unit 801 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.
[0199] The memory 809 can be used to store software programs or instructions and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0200] Processor 810 may include one or more processing units. Optionally, processor 810 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 810.
[0201] The processor 810 is configured to initiate a path switching process or execute a path switching process initiated by the second terminal according to the target information, wherein the first terminal and the second terminal communicate through the direct communication interface, and the path switching process is used to negotiate and / or trigger switching of the transmission mode of the target service from transmission through the direct communication interface to transmission through the air communication interface;
[0202] The target information is used to indicate at least one of the following:
[0203] timing information of a first handover wait timer of the first terminal;
[0204] Information about the initiator of the path switching process;
[0205] a relationship between a direct communication link quality value and a first handover threshold, where the first handover threshold is a handover threshold dedicated to the first terminal;
[0206] The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when detecting that the direct communication link quality value is less than or equal to the second switching threshold.
[0207] Optionally, the processor 810 is further configured to start the first handover wait timer when the target information is used to indicate timing information of the first handover wait timer.
[0208] Optionally, the processor 810 is further configured to start the first handover waiting timer when detecting that the direct communication link quality value is less than or equal to a third handover threshold, where the third handover threshold is a handover threshold shared by the first terminal and the second terminal.
[0209] Optionally, the timing value of the first switching waiting timer is randomly set by the first terminal, or is configured by the network side, or is pre-configured.
[0210] Optionally, the target information is used to indicate timing information of a first handover waiting timer of the first terminal;
[0211] The processor 810 is further configured to initiate a path switching process when the timing information of the first handover wait timer indicates that the first handover wait timer has expired and no path switching request sent by the second terminal has been received;
[0212] Alternatively, when the timing information of the first switching waiting timer indicates that the first switching waiting timer has not expired and the path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed, and the path switching request sent by the second terminal is sent when the timing information of the second switching waiting timer of the second terminal indicates that the second switching waiting timer has expired and the second terminal has not received the path switching request sent by the first terminal, wherein the second switching waiting timer is started by the second terminal when it detects that the direct communication link quality value is less than or equal to a third switching threshold, and the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
[0213] Optionally, the processor 810 is further configured to control the first switching wait timer to stop timing when receiving a path switching request sent by the second terminal.
[0214] Optionally, the target information is used to indicate information of an initiator of the path switching process;
[0215] The processor 810 is further configured to initiate a path switching process when detecting that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the first terminal is the initiator of the path switching process;
[0216] Alternatively, when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process, executing the path switching process initiated by the second terminal;
[0217] The fourth switching threshold is a switching threshold shared by the first terminal and the second terminal.
[0218] Optionally, the processor 810 is further configured to negotiate with the second terminal to determine information of an initiator of the path switching process.
[0219] Optionally, the processor 810 is further configured to: send a first direct communication request to the second terminal, where the first direct communication request carries initiator information of the path switching process, where the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process; and receive a first direct communication request acceptance message sent by the second terminal;
[0220] Alternatively, a second direct communication request sent by a second terminal is received, where the second direct communication request carries the initiator information of the path switching process, and the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process, and a second direct communication request acceptance message is sent to the second terminal according to the second direct communication request.
[0221] Optionally, the processor 810 is further configured to start a third switching waiting timer when the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process and detects that the direct communication link quality value is less than or equal to a fourth switching threshold; and control the third switching waiting timer to stop timing when a path switching request sent by the second terminal is received.
[0222] Optionally, the target information is used to indicate a relationship between a direct communication link quality value and a first handover threshold;
[0223] The processor 810 is further configured to initiate a path switching process when detecting that the direct communication link quality value is less than or equal to the first switching threshold and no path switching request sent by the second terminal is received;
[0224] Alternatively, when it is detected that the direct communication link quality value is greater than the first switching threshold and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed. The path switching request sent by the second terminal is sent when the second terminal detects that the direct communication link quality value is less than or equal to a fifth switching threshold and does not receive a path switching request sent by the first terminal. The fifth switching threshold is a path switching threshold dedicated to the second terminal.
[0225] Optionally, the target information is used to indicate a first random number carried in the first path switching request and a second random number carried in the second path switching request;
[0226] The processor 810 is further configured to initiate a path switching process when the first random number is greater than or equal to the second random number; or, when the first random number is less than the second random number, execute a path switching process initiated by the second terminal;
[0227] Alternatively, when the first random number is less than or equal to the second random number, a path switching process is initiated; or when the first random number is greater than the second random number, a path switching process initiated by the second terminal is executed.
[0228] Optionally, the processor 810 is further configured to, upon receiving the path switching request sent by the second terminal, perform at least one of the following:
[0229] Stopping the path switching process;
[0230] A fourth switching waiting timer is started, wherein after the fourth switching waiting timer expires, the first terminal re-initiates the path switching process.
[0231] In an embodiment of the present application, the first terminal initiates a path switching process or executes a path switching process initiated by the second terminal based on the target information. The target information is used to indicate at least one of the following: timing information of the first switching wait timer of the first terminal; information of the initiator of the path switching process; a relationship between the direct communication link quality value and the first switching threshold, the first switching threshold being a switching threshold dedicated to the first terminal; a first random number carried in the first path switching request and a second random number carried in the second path switching request. Through the above scheme, the first terminal can determine whether to initiate a path negotiation process or execute a path switching process initiated by the second terminal based on the target information, thereby avoiding the two terminals communicating through the direct communication interface from initiating the path switching process at the same time, thereby effectively avoiding conflicts in the PC5 negotiation process between UEs.
[0232] An embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned path switching processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here.
[0233] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. In some examples, the readable storage medium may be a non-transitory readable storage medium.
[0234] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned path switching processing method embodiment, and can achieve the same technical effect. To avoid repetition, it is not repeated here.
[0235] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0236] The present application also provides a computer program / program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-mentioned path switching processing method embodiment, and can achieve the same technical effects. To avoid repetition, they are not described here.
[0237] An embodiment of the present application also provides a communication system, which includes a first terminal and a second terminal, wherein the first terminal initiates a path switching process based on target information, and the second terminal executes the path switching process initiated by the first terminal; or, the second terminal initiates a path switching process based on target information, and the first terminal executes the path switching process initiated by the second terminal.
[0238] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0239] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general-purpose hardware platform, or of course, by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes a number of instructions for enabling a terminal or network-side device to execute the methods described in each embodiment of the present application.
[0240] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.
Claims
1. A path switching processing method, comprising: The first terminal initiates a path switching process or executes a path switching process initiated by the second terminal according to the target information, wherein the first terminal and the second terminal communicate through a direct communication interface, and the path switching process is used to negotiate and / or trigger switching of a transmission mode of the target service from transmission through the direct communication interface to transmission through the air communication interface; The target information is used to indicate at least one of the following: timing information of a first switching waiting timer of the first terminal; The initiator information of the path switching process; a relationship between a direct communication link quality value and a first switching threshold, wherein the first switching threshold is a switching threshold dedicated to the first terminal; The first random number carried in the first path switching request and the second random number carried in the second path switching request, the first path switching request is sent by the first terminal when it detects that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when it detects that the direct communication link quality value is less than or equal to the second switching threshold.
2. The method according to claim 1, wherein: In a case where the target information is used to indicate timing information of the first switching wait timer, the method further includes: The first terminal starts the first switching waiting timer.
3. The method according to claim 2, wherein: The first terminal starts the first switching waiting timer, including: The first terminal starts the first switching waiting timer when detecting that the direct communication link quality value is less than or equal to a third switching threshold, where the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
4. The method according to claim 3, wherein: The timing value of the first switching waiting timer is randomly set by the first terminal, or is configured by the network side, or is pre-configured.
5. The method according to any one of claims 1 to 4, wherein: The target information is used to indicate timing information of a first switching waiting timer of the first terminal; The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes: Initiate a path switching process when the timing information of the first switching waiting timer indicates that the first switching waiting timer has expired and no path switching request sent by the second terminal is received; Alternatively, when the timing information of the first switching wait timer indicates that the first switching wait timer has not expired, and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is performed, and the path switching request sent by the second terminal is within the timing information of the second switching wait timer of the second terminal. The information indicates that the second switching waiting timer expires and is sent when the second terminal has not received a path switching request sent by the first terminal, wherein the second switching waiting timer is started by the second terminal when it detects that the direct communication link quality value is less than or equal to a third switching threshold, and the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
6. The method according to claim 2, further comprising: When the path switching request sent by the second terminal is received, the first switching waiting timer is controlled to stop timing.
7. The method according to claim 1, wherein: The target information is used to indicate the initiator information of the path switching process; The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes: Initiate a path switching process when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the first terminal is the initiator of the path switching process; Alternatively, when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold, and the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process, executing the path switching process initiated by the second terminal; The fourth switching threshold is a switching threshold shared by the first terminal and the second terminal.
8. The method according to claim 7, further comprising: The first terminal negotiates with the second terminal to determine the initiator information of the path switching process.
9. The method according to claim 8, wherein: The first terminal and the second terminal negotiate to determine the initiator information of the path switching process, including: The first terminal sends a first direct communication request to the second terminal, the first direct communication request carries the initiator information of the path switching process, and the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process; the first terminal receives a first direct communication request acceptance message sent by the second terminal; Alternatively, the first terminal receives a second direct communication request sent by the second terminal, the second direct communication request carries the initiator information of the path switching process, the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process, and the first terminal sends a second direct communication request acceptance message to the second terminal according to the second direct communication request.
10. The method according to any one of claims 7 to 9, further comprising: When the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process and it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold, starting a third switching waiting timer; When the path switching request sent by the second terminal is received, the third switching waiting timer is controlled to stop timing.
11. The method according to claim 1, wherein: The target information is used to indicate the relationship between the direct communication link quality value and the first switching threshold; The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes: Initiating a path switching process when detecting that the direct communication link quality value is less than or equal to the first switching threshold and no path switching request sent by the second terminal is received; Alternatively, when it is detected that the direct communication link quality value is greater than the first switching threshold and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed, and the path switching request sent by the second terminal is sent when the second terminal detects that the direct communication link quality value is less than or equal to a fifth switching threshold and does not receive a path switching request sent by the first terminal, and the fifth switching threshold is a path switching threshold dedicated to the second terminal.
12. The method according to claim 1, wherein: After the first terminal initiates a path switching process according to the target information, the method further includes: Upon receiving the path switching request sent by the second terminal, performing at least one of the following: Stopping the path switching process; A fourth switching waiting timer is started, wherein after the fourth switching waiting timer expires, the first terminal re-initiates the path switching process.
13. The method according to claim 1, wherein: The target information is used to indicate a first random number carried in the first path switching request and a second random number carried in the second path switching request; The first terminal initiating a path switching process or executing a path switching process initiated by the second terminal according to the target information includes: In the case where the first random number is greater than or equal to the second random number, initiating a path switching process; or, in the case where the first random number is less than the second random number, executing a path switching process initiated by the second terminal; Alternatively, when the first random number is less than or equal to the second random number, a path switching process is initiated; or when the first random number is greater than the second random number, a path switching process initiated by the second terminal is executed.
14. A path switching processing device, comprising: a processing module, configured to initiate a path switching process or execute a path switching process initiated by a second terminal according to target information, wherein the first terminal and the second terminal communicate through a direct communication interface, and the path switching process is used to negotiate and / or trigger switching of a transmission mode of a target service from transmission through the direct communication interface to transmission through an air communication interface; The target information is used to indicate at least one of the following: timing information of a first switching waiting timer of the first terminal; The initiator information of the path switching process; a relationship between a direct communication link quality value and a first switching threshold, wherein the first switching threshold is a switching threshold dedicated to the first terminal; The first random number carried in the first path switching request and the second random number carried in the second path switching request are The first path switching request is sent by the first terminal when it detects that the direct communication link quality value is less than or equal to the second switching threshold, and the second path switching request is sent by the second terminal when it detects that the direct communication link quality value is less than or equal to the second switching threshold.
15. The device according to claim 14, wherein: In a case where the target information is used to indicate timing information of the first switching wait timer, the apparatus further includes: The first starting module is used to start the first switching waiting timer.
16. The device according to claim 15, wherein: The first starting module is used to start the first switching waiting timer when it is detected that the direct communication link quality value is less than or equal to a third switching threshold, and the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
17. The device according to claim 16, wherein: The timing value of the first switching waiting timer is randomly set by the first terminal, or is configured by the network side, or is pre-configured.
18. The device according to any one of claims 14 to 17, wherein: The target information is used to indicate timing information of a first switching waiting timer of the first terminal; The processing module is used to initiate a path switching process when the timing information of the first switching waiting timer indicates that the first switching waiting timer expires and no path switching request sent by the second terminal is received; Alternatively, when the timing information of the first switching waiting timer indicates that the first switching waiting timer has not expired and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed, and the path switching request sent by the second terminal is sent when the timing information of the second switching waiting timer of the second terminal indicates that the second switching waiting timer has expired and the second terminal has not received the path switching request sent by the first terminal, wherein the second switching waiting timer is started by the second terminal when it detects that the direct communication link quality value is less than or equal to a third switching threshold, and the third switching threshold is a switching threshold shared by the first terminal and the second terminal.
19. The apparatus according to claim 15, further comprising: The first control module is configured to control the first switching waiting timer to stop timing when receiving a path switching request sent by the second terminal.
20. The device according to claim 14, wherein: The target information is used to indicate the initiator information of the path switching process; The processing module is configured to initiate a path switching process when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold and the initiator information of the path switching process indicates that the first terminal is the initiator of the path switching process; Alternatively, when it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold, and the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process, executing the path switching process initiated by the second terminal; The fourth switching threshold is a switching threshold shared by the first terminal and the second terminal.
21. The apparatus according to claim 20, further comprising: The negotiation module is used to negotiate with the second terminal to determine the initiator information of the path switching process.
22. The device according to claim 21, wherein The negotiation module is used to send a first direct communication request to the second terminal, where the first direct communication request carries the initiator information of the path switching process, and the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process; receiving a first direct communication request acceptance message sent by the second terminal; Alternatively, it is used to receive a second direct communication request sent by a second terminal, the second direct communication request carries the initiator information of the path switching process, the initiator information of the path switching process is used to indicate that the first terminal or the second terminal is the initiator of the path switching process, and send a second direct communication request acceptance message to the second terminal according to the second direct communication request.
23. The device according to any one of claims 20 to 22, further comprising: A second starting module, configured to start a third switching waiting timer when the initiator information of the path switching process indicates that the second terminal is the initiator of the path switching process and it is detected that the direct communication link quality value is less than or equal to a fourth switching threshold; The second control module is configured to control the third switching waiting timer to stop timing when receiving the path switching request sent by the second terminal.
24. The device according to claim 14, wherein: The target information is used to indicate the relationship between the direct communication link quality value and the first switching threshold; The processing module is configured to initiate a path switching process when detecting that the direct communication link quality value is less than or equal to the first switching threshold and no path switching request sent by the second terminal is received; Alternatively, when it is detected that the direct communication link quality value is greater than the first switching threshold and a path switching request sent by the second terminal is received, the path switching process initiated by the second terminal is executed, and the path switching request sent by the second terminal is sent when the second terminal detects that the direct communication link quality value is less than or equal to a fifth switching threshold and does not receive a path switching request sent by the first terminal, and the fifth switching threshold is a path switching threshold dedicated to the second terminal.
25. The device according to claim 14, wherein: The target information is used to indicate a first random number carried in the first path switching request and a second random number carried in the second path switching request; The processing module is used to initiate a path switching process when the first random number is greater than or equal to the second random number; or, when the first random number is less than the second random number, execute the path switching process initiated by the second terminal; Alternatively, when the first random number is less than or equal to the second random number, a path switching process is initiated; or when the first random number is greater than the second random number, a path switching process initiated by the second terminal is executed.
26. The device according to claim 14, wherein: The processing module is also used for: Upon receiving the path switching request sent by the second terminal, performing at least one of the following: Stopping the path switching process; A fourth switching waiting timer is started, wherein after the fourth switching waiting timer expires, the path switching process is reinitiated.
27. A terminal comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the path switching processing method according to any one of claims 1 to 13 are implemented.
28. A readable storage medium storing a program or an instruction, wherein the program or the instruction is executed by a processor to implement the steps of the path switching processing method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Data transmission method and device and service switching method and device
CN110831075A
Switching method in sidelink relay architecture and equipment
CN113453272A
Transmission mode switching method and related device
CN115567991A
Proximity Services Path Selection and Switching
US20220312176A1
