CN-122002246-A - Method and device for managing service
Abstract
A method and device for managing service are provided, which are applied to the field of communication. The method is applied to terminal equipment, and the terminal equipment at least comprises a first chip and a second chip. The method comprises the steps that when the terminal equipment receives an execution request of a new service (such as a second service) when the terminal equipment is executing the first service, the terminal equipment determines a service coexistence policy by considering various factors, including, but not limited to, one or more of the service type of the second service, the working frequency of the second service, the running state of the first service, the working frequency of the first service and service priority information, and executes the determined service coexistence policy, so that the problem of service conflict caused when the terminal equipment executes the communication service by adopting a multi-chip structure can be avoided to the greatest extent, the requirement of multi-chip service coexistence is met, and the service communication performance is improved.
Inventors
- XU ZHENG
- ZHI GANG
- ZHAO CHEN
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241029
Claims (15)
- 1. A method of managing traffic, the method being applied to a terminal device comprising at least a first chip and a second chip, the method comprising: Acquiring an execution request of a second service under the condition that the terminal equipment is executing a first service, wherein the execution request is used for executing the second service, the first service is a service initiated by the first chip, and the second service is a service initiated by the second chip; Determining a service coexistence policy according to one or more of the service type of the second service, the working frequency of the second service, the running state of the first service, the working frequency of the first service and service priority information, wherein the service coexistence policy is a policy for executing the second service and/or the first service; And calling the second chip and/or the first chip to execute the service according to the service coexistence policy.
- 2. The method of claim 1, wherein the determining, according to the service type of the second service, the working frequency of the second service, the operation state of the service in the terminal device, and one or more of priorities corresponding to the second service, a service coexistence policy includes: According to the service type of the second service, the working frequency of the second service, the running state of the first service, and the working frequency of the first service, whether the first service and the second service have conflict or not is determined; determining the priority of the second service and the priority of the first service under the condition that the second service collides with the first service; Determining the service coexistence policy as a policy to stop the first service and to execute the second service in case that the priority of the second service is higher than the priority of the first service; And calling the second chip and/or the first chip to execute the service according to the service coexistence policy, wherein the method comprises the following steps: and according to the service coexistence policy, controlling the first chip to stop executing the first service, and controlling the second chip to execute the second service.
- 3. The method according to claim 2, wherein the method further comprises: Determining the service coexistence policy as not allowing the second service to be executed and maintaining the current service coexistence policy under the condition that the priority of the second service is lower than the priority of the first service; And calling the second chip and/or the first chip to execute the service according to the service coexistence policy, wherein the method comprises the following steps: and controlling the first chip to continuously execute the first service according to the service coexistence policy.
- 4. A method according to claim 2 or 3, characterized in that, The service coexistence policy is a policy of executing the first service and executing the second service in case that the second service does not collide with the first service; The calling the second chip and/or the first chip to execute the service according to the service coexistence policy comprises the following steps: And controlling the first chip to execute the first service and controlling the second chip to execute the second service according to the service coexistence policy.
- 5. The method of claim 4, wherein the traffic coexistence policy is specifically a policy that the first traffic and the second traffic are performed by switching modes of antennas, the modes of antennas including a multiple-input multiple-output MIMO mode and a single-input single-output SISO mode; Wherein the controlling the first chip to execute the first service and controlling the second chip to execute the second service according to the service coexistence policy includes: Controlling the first chip to switch from a MIMO mode to a SISO mode, and executing the first service by the first chip through a first antenna after switching to the SISO mode; And controlling the second chip to execute the second service by using a second antenna, wherein the second antenna is an idle antenna after the first chip is switched from the MIMO mode to the SISO mode, and the first antenna and the second antenna are different antennas.
- 6. The method of claim 5, wherein the second service has a lower priority than the first service, wherein during an antenna switching mode, the first chip performs the first service in a MIMO mode, and wherein the method further comprises: and if the antenna fails to switch when switching from the MIMO mode to the SISO mode, processing the service according to the actual state of the antenna.
- 7. The method according to claim 4 or 5, characterized in that the service coexistence policy is specifically a policy of executing the first service and the second service by means of time division multiplexing and/or frequency division multiplexing; Wherein the controlling the first chip to execute the first service and controlling the second chip to execute the second service according to the service coexistence policy includes: and setting antenna parameters in a time division multiplexing and/or frequency division multiplexing mode, and controlling the first chip to execute the first service and controlling the second chip to execute the second service based on the set antenna parameters.
- 8. The method according to any one of claims 1 to 7, further comprising: and under the condition of controlling the first chip to execute the first service and controlling the second chip to execute the second service, if the first service or the second service stops working, updating the service coexistence policy.
- 9. The method of claim 8, wherein in the case where the first chip and the second chip each perform a service in SISO mode, when the second service is stopped, the updating the service coexistence policy comprises: based on the stopping state of the second service, updating the service coexistence policy, wherein the updated service coexistence policy is a policy of switching the first chip from a SISO mode to a MIMO mode; The method further comprises the steps of: And switching the antenna mode and adjusting the antenna parameters according to the updated service coexistence strategy.
- 10. The method according to any of claims 1 to 9, wherein the first service comprises any of bluetooth service, device-to-device, D2D, peer-to-peer, P2P, WI-FI, and NFC; And/or the second service comprises any one of Bluetooth service, D2D service, P2P service, WI-FI service and near field communication NFC service.
- 11. The method of any one of claims 1 to 10, wherein the first chip is a primary chip and the second chip is a secondary chip.
- 12. A communication device comprising a processor coupled to a memory for storing a program or instructions that, when executed by the processor, cause the device to perform the method of any of claims 1-11.
- 13. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes a terminal device to perform the method of any of claims 1 to 11.
- 14. A chip system for application to a terminal device, the chip system comprising one or more processors for invoking computer instructions to cause the terminal device to perform the method of any of claims 1 to 11.
- 15. A computer program product comprising computer program instructions which cause the computer to perform the method of any one of claims 1 to 11.
Description
Method and device for managing service Technical Field The present application relates to the field of communications, and in particular, to a method and apparatus for managing services. Background In order to further improve the communication performance of the terminal equipment, the arrangement of dual chips in the terminal equipment becomes a current research hotspot. A dual chip is understood to include two chips, which may be named a primary chip and a secondary chip, respectively. Under the condition that the main chip and the auxiliary chip support various short-distance communication services, such as wireless fidelity (WIRELESS FIDELITY, WI-FI) service, bluetooth service and the like, the communication experience of a user can be improved by adopting a double-chip multi-link cooperative work mode. However, the main chip and the sub-chip cannot be completely decoupled at present due to the problems of the rf front-end antenna of the terminal, mutual interference, and the like. Under the scene that the main chip service and the auxiliary chip service have conflict, the main chip service and the auxiliary chip service cannot work simultaneously, so that the communication performance is reduced. Disclosure of Invention In view of the above, the application provides a method, a communication device, a chip system, a computer readable storage medium, a computer program product and a communication system for managing services, which can avoid the problem of service collision caused when a terminal device executes communication services by adopting a multi-chip structure to the greatest extent, meet the requirement of multi-chip service coexistence and improve the service communication performance. In a first aspect, a method of managing services is provided, which may be performed by a terminal device, for example, or may also be performed by a component (such as a circuit, a chip, or a system-on-chip) configured in the terminal device, or may be implemented by a logic module or software capable of implementing all or part of the functions of the terminal device. The application is not limited in this regard. For example, the terminal device is a user equipment UE. The terminal device at least comprises a first chip and a second chip. The method comprises the steps that under the condition that the terminal equipment is executing a first service, the terminal equipment obtains an execution request of a second service, the execution request is used for executing the second service, the first service is a service initiated by the first chip, the second service is a service initiated by the second chip, according to the service type of the second service, the working frequency of the second service, the running state of the first service, the working frequency of the first service and one or more items of service priority information, a service coexistence policy is determined, the service coexistence policy is a policy used for executing the second service and/or the first service, and the second chip and/or the first chip are called to execute the service according to the service coexistence policy. Based on the technical scheme, when the terminal equipment receives an execution request of a new service (such as a second service) while executing the first service, the terminal equipment determines a service coexistence policy by considering various factors, including, but not limited to, one or more of a service type of the second service, a working frequency of the second service, an operation state of the first service, a working frequency of the first service and service priority information, and executes the determined service coexistence policy, so that the problem of service conflict caused when the terminal equipment executes the communication service by adopting a multi-chip structure can be avoided to the greatest extent, the requirement of multi-chip service coexistence can be met, and the service communication performance is improved. The first service is a generic term for a service running in the terminal device. Optionally, the first service is used to refer to a service in the terminal device that is currently being executed by the first chip. The first service and the second service are introduced herein for distinguishing, and are not limited to the embodiment of the present application. The second service is used to refer to a service executed by the second chip application or a newly initiated service. In one possible implementation manner, the determining a service coexistence policy according to one or more of the priorities corresponding to the second service and the service type of the second service, the working frequency of the second service, the operating state of the first service, and the working frequency of the first service determine whether there is a conflict between the first service and the second service; And determining the priority of the second service and the prior