WO2016078053A1 - 任务处理装置、智能设备、任务处理方法及基带处理器 - Google Patents
任务处理装置、智能设备、任务处理方法及基带处理器 Download PDFInfo
- Publication number
- WO2016078053A1 WO2016078053A1 PCT/CN2014/091749 CN2014091749W WO2016078053A1 WO 2016078053 A1 WO2016078053 A1 WO 2016078053A1 CN 2014091749 W CN2014091749 W CN 2014091749W WO 2016078053 A1 WO2016078053 A1 WO 2016078053A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- task
- application
- baseband processor
- network
- processor
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3293—Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/73—Battery saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0229—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
- H04W52/028—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of computers, and in particular, to a task processing apparatus, a smart device, a task processing method, and a baseband processor.
- the smart device usually includes an application processor and a baseband processor.
- various local or network tasks corresponding to the application installed in the smart phone need to be performed by both the application processor and the baseband processor. Coordinate with each other to complete the process.
- the application processor enters a sleep state, and only triggers the application processor and The application processor wakes up for processing when the baseband processor coordinates the processing of the task.
- the embodiment of the present invention provides a task. Processing device, smart device, task processing method, and baseband processor.
- the technical solution is as follows:
- a task processing apparatus for use in a baseband processor of a smart device, the apparatus comprising:
- a trigger information acquiring module configured to acquire task trigger information, where the task trigger information is used to trigger a task corresponding to an application in the smart device;
- a determining module configured to determine whether the task is a managed task of the application, where the managed task is a task for the application processor of the smart device to notify the baseband processor to perform processing in advance;
- the first execution module is configured to invoke and execute the managed code corresponding to the task if the judgment result of the determining module is that the task is a managed task of the application.
- the first execution module includes: at least one of a first execution unit, a second execution unit, or a third execution unit;
- the first execution unit is configured to: when the task trigger information is information indicating that the network is available, invoke and execute a connection establishment code corresponding to the application, where the connection code is used to establish the smart device and the application Network connection between servers;
- the second execution unit is configured to invoke and execute a login code corresponding to the application when the task trigger information is information indicating that the network connection establishment between the smart device and the server of the application is completed.
- the login code is used to log in to the server of the application;
- the third executing unit is configured to: when the task triggering information is information indicating that the heartbeat data is sent to the server of the application, invoke and execute a heartbeat data sending code corresponding to the application, where the heartbeat data sending code is used by Sending the heartbeat data to a server of the application.
- the apparatus further includes:
- a hosting information receiving module configured to receive the hosting information sent by the application processor before the acquiring the task triggering information, where the hosting information includes a calling path of the managed code
- the first setting module is configured to set a task corresponding to the managed code as a managed task.
- the apparatus further includes:
- a detecting module configured to detect whether the task is a wake-up task if the judgment result of the determining module is that the task is not a managed task of the application;
- a second execution module configured to: if the detection result of the detection module is that the task is a wake-up task, invoke and execute a wake-up code corresponding to the task, where the wake-up code is used to wake up an application processor of the smart device And requesting the application processor to process the task.
- the apparatus further includes:
- a wake-up information receiving module configured to receive the application location before acquiring the task trigger information Wake-up information sent by the processor, where the wake-up information includes a call path of the wake-up code;
- a second setting module configured to set a task corresponding to the wakeup code as a wakeup task.
- the apparatus further includes:
- connection record obtaining module configured to acquire a network connection record of the application
- an optimization module configured to optimize network tasks of the application according to the network connection record.
- the optimization module includes: a first optimization unit and/or a second optimization unit;
- the first optimization unit is configured to: when the network task is disconnecting the smart device and the server of the application, and the network connection record indicates that the established duration of the connection is less than a preset threshold When the network task is not executed;
- the second optimization unit is configured to: when the network task is to send a network request to a server of the application, and the network connection record indicates a history sent to a server of the application in a historical time period that is located at a current time When the network request does not receive a response, the network task is not executed.
- a smart device comprising: a bus, and a baseband processor, an application processor, a memory, a transmitter, and a receiver connected to the bus.
- the memory is for storing a plurality of instructions, the instructions being configured to be executed by the baseband processor and the application processor;
- the baseband processor is configured to acquire task triggering information, where the task triggering information is used to trigger a task corresponding to an application in the smart device;
- the baseband processor is configured to determine whether the task is a managed task of the application, and the managed task is a task that the application processor notifies the baseband processor to perform processing in advance;
- the baseband processor is configured to: if the task is that the task is a managed task of the application, invoke and execute the managed code corresponding to the task.
- the baseband processor is configured to perform at least one of the following steps:
- the task triggering information is information indicating that the network is available, calling and executing a connection establishment code corresponding to the application, where the connection code is used to establish a network connection between the smart device and a server of the application;
- the login code corresponding to the application is invoked and executed, and the login generation is performed.
- the code is used to log in to the server of the application;
- the task triggering information is information indicating that the heartbeat data is sent to the server of the application
- calling and executing a heartbeat data sending code corresponding to the application where the heartbeat data sending code is used to send the message to the server of the application.
- Heartbeat data is information indicating that the heartbeat data is sent to the server of the application.
- the baseband processor is configured to receive, after acquiring the task triggering information, the hosting information sent by the application processor, where the managed information includes a calling path of the managed code, and the task corresponding to the managed code Set as a managed task.
- the baseband processor is configured to: if it is determined that the task is not a managed task of the application, detecting whether the task is a wake-up task, where the wake-up task is to wake up an application processor in the smart device for processing task;
- the baseband processor is configured to: if the task is detected as a wake-up task, invoke and execute a wake-up code corresponding to the task, where the wake-up code is used to wake up an application processor of the smart device, and request the The application processor processes the task.
- the baseband processor is configured to receive wakeup information sent by the application processor before acquiring task trigger information, where the wakeup information includes a call path of the wakeup code, and the task corresponding to the wakeup code Set to wake up the task.
- the baseband processor is configured to obtain a network connection record of the application, and optimize a network task of the application according to the network connection record.
- the baseband processor is configured to: when the network task is disconnecting the smart device from a server of the application, and the network connection record indicates that the established duration of the connection is less than a preset threshold Not performing the network task;
- the baseband processor configured to: when the network task sends a network request to a server of the application, and the network connection record indicates to send to the application server in a historical time period that is located at a current time When the historical network request does not receive a response, the network task is not executed.
- a task processing method for a smart device including a baseband processor, the method comprising:
- the baseband processor acquires task triggering information, where the task triggering information is used to trigger a task corresponding to an application in the smart device;
- the baseband processor determines whether the task is a managed task of the application, and the managed task is a task for the application processor in the smart device to notify the baseband processor to perform processing in advance;
- the baseband processor invokes and executes the managed code corresponding to the task.
- the baseband processor performs the managed code corresponding to the task, and includes at least one of the following three situations:
- the baseband processor invokes and executes a connection establishment code corresponding to the application, where the connection code is used to establish a relationship between the smart device and the application server.
- Network connection
- the baseband processor invokes and executes a login code corresponding to the application, where the login code is used by Logging in to the server of the application;
- the baseband processor invokes and executes a heartbeat data transmission code corresponding to the application, and the heartbeat data transmission code is used to The application server sends the heartbeat data.
- the method further includes:
- the baseband processor Before the obtaining the task trigger information, the baseband processor receives the hosting information sent by the application processor, where the hosting information includes a calling path of the managed code;
- the baseband processor sets a task corresponding to the managed code as a managed task.
- the method further includes:
- the baseband processor detects whether the task is a wake-up task, and the wake-up task is to wake up an application processor in the smart device.
- the baseband processor calls and executes a wake-up code corresponding to the task, and the wake-up code is used to wake up an application processor of the smart device, and request the application to process
- the handler handles the task.
- the method further includes:
- the baseband processor Before the acquiring the task trigger information, the baseband processor receives the wakeup information sent by the application processor, where the wakeup information includes a call path of the wakeup code;
- the baseband processor sets a task corresponding to the wakeup code as a wakeup task.
- the method further includes:
- the baseband processor acquires a network connection record of the application
- the baseband processor optimizes network tasks of the application according to the network connection record.
- the baseband processor according to the network connection record, optimizes network tasks of the application, including:
- the baseband processor When the network task is to disconnect the smart device from the server of the application, and the network connection record indicates that the established duration of the connection is less than a preset threshold, the baseband processor is The network task is not implemented;
- the baseband processor does not execute the network task.
- a baseband processor comprising:
- a task processing apparatus as described in the above first aspect or any one of the possible implementations of the first aspect.
- a task processing method for a smart device including a baseband processor, the method comprising:
- the baseband processor obtains a network connection record of the application
- the baseband processor optimizes network tasks of the application according to the network connection record.
- the baseband processor optimizes network tasks of the application according to the network connection record, including:
- the baseband processor When the network task is disconnecting a smart device from a server of the application, and the When the network connection record indicates that the established duration of the connection is less than a preset threshold, the baseband processor does not perform the network task, and the smart device is a device that includes the baseband processor;
- the baseband processor does not execute the network task.
- a task processing apparatus for use in a baseband processor of a smart device, the apparatus comprising:
- connection record obtaining module configured to acquire a network connection record of the application
- an optimization module configured to optimize network tasks of the application according to the network connection record.
- the optimization module includes: a first optimization unit and/or a second optimization unit;
- the first optimization unit is configured to: when the network task is disconnecting the smart device and the server of the application, and the network connection record indicates that the established duration of the connection is less than a preset threshold When the network task is not executed;
- the second optimization unit is configured to: when the network task is to send a network request to a server of the application, and the network connection record indicates a history sent to a server of the application in a historical time period that is located at a current time When the network request does not receive a response, the network task is not executed.
- a baseband processor comprising:
- the baseband processor Determining, by the baseband processor, whether the task corresponding to the task trigger information is a managed task of the application, and if so, the baseband processor directly calls and executes the managed code corresponding to the task to perform the task, and is originally processed by the application processor and the baseband
- the processing flow of the cooperative process is simplified to be processed by the baseband processor separately, which solves the problem that the application installed in the smart device in the prior art generates a lot of tasks that need to be processed by the application processor during the process of maintaining communication with the server, and the application processor is caused by the application processor.
- the problem of frequent wake-up achieves the purpose of reducing the power consumption of the device during the task processing and improving the power control effect.
- FIG. 1 is a structural diagram of a device of a task processing apparatus according to an embodiment of the present invention.
- FIG. 2 is a structural diagram of a device of a task processing apparatus according to another embodiment of the present invention.
- FIG. 3 is a block diagram of a smart device according to an embodiment of the present invention.
- FIG. 4 is a block diagram of a smart device according to another embodiment of the present invention.
- FIG. 5 is a flowchart of a method for processing a task according to an embodiment of the present invention.
- FIG. 6 is a flowchart of a method for processing a task according to another embodiment of the present invention.
- FIG. 7 is a block diagram of a baseband processor according to an embodiment of the present invention.
- FIG. 8 is a flowchart of a method for processing a task according to an embodiment of the present invention.
- FIG. 9 is a structural diagram of a device of a task processing apparatus according to an embodiment of the present invention.
- FIG. 10 is a block diagram of a baseband processor according to an embodiment of the present invention.
- FIG. 1 shows a device structure diagram of a task processing apparatus according to an embodiment of the present invention.
- the task processing apparatus is used in a baseband processor including a smart device, which may be a smart phone or a tablet computer. E-book readers and smart wearable devices.
- the task processing device can include:
- the trigger information acquiring module 101 is configured to acquire task triggering information, where the task triggering information is used to trigger a task corresponding to the application in the smart device;
- the determining module 102 is configured to determine whether the task is a managed task of the application, where the managed task is a task for the application processor in the smart device to notify the baseband processor to perform processing in advance;
- the first execution module 103 is configured to invoke and execute the managed code corresponding to the task if the determination result of the determining module 102 is that the task is a managed task of the application.
- the application processor is responsible for the transaction above the session layer, and is usually responsible for the operation of the application and the processing of the specific task; and the baseband processor is responsible for the transaction below the transport layer, such as data transmission and reception, in the task provided by the embodiment of the present invention.
- the corresponding part of the application is set as the escrow
- the managed task can be directly processed by the baseband processor.
- the application processor is in the sleep state, if the baseband processor determines that the generated task is a managed task, the processing is directly performed without waking up the application processor, thereby reducing the number. The power consumption of the application processor during the subtask processing.
- the baseband processor only needs to process the network communication function during the work, so the work of the baseband processor The cost is much lower than that of the application processor.
- the method shown in the embodiment of the present invention simplifies the task processing flow originally coordinated by the application processor and the baseband processor to be processed by the baseband processor separately, which can greatly reduce the task processing.
- the power consumption of the device in the process improves the power control effect.
- the task processing apparatus determines whether the task corresponding to the task trigger information is a managed task of the application by using a baseband processor, and if so, the baseband processor directly invokes and executes the managed code corresponding to the task.
- the processing flow originally coordinated by the application processor and the baseband processor is simplified to be separately processed by the baseband processor, and the application installed in the smart device in the prior art is generated in the process of maintaining communication with the server.
- Many tasks that require the application processor to process cause the application processor to be frequently woken up, which reduces the power consumption of the device during the task processing and improves the power control effect.
- FIG. 2 it shows a device structure diagram of a task processing apparatus according to another embodiment of the present invention.
- the task processing apparatus is used in a baseband processor including a smart device, which may be a smart phone or a tablet computer. , e-book readers, and smart wearable devices.
- the task processing device can include:
- the trigger information acquiring module 201 is configured to acquire task triggering information, where the task triggering information is used to trigger a task corresponding to the application in the smart device;
- the device further includes: a managed information receiving module 204, configured to receive, after the acquiring the task triggering information, the hosting information sent by the application processor, where the managed information includes the managed code Call path
- the first setting module 205 is configured to set a task corresponding to the managed code as a managed task.
- the device further includes: a wake-up information receiving module 206, configured to receive wake-up information sent by the application processor, where the wake-up information includes the wake-up code, before the acquiring task trigger information Call path
- the second setting module 207 is configured to set a task corresponding to the wakeup code as a wakeup task.
- the power consumption of a smart device mainly includes two parts: one part is called effective power consumption, and the effective power consumption is mainly To deal with the power consumption generated by direct service tasks, direct service tasks refer to tasks that provide services directly to users, such as sending and receiving text messages, active and passive calls, sending and receiving of instant messaging data, requesting and receiving web data, and other tasks; It is called invalid power consumption. Invalid power consumption is mainly to deal with the power consumption generated by supporting tasks. Such support tasks do not provide direct services to users, but provide support for direct service tasks, such as connecting or disconnecting networks, and automatically. Log in to the application server and maintain a connection with the application server by sending and receiving heartbeat data, and the like.
- the tasks in the smart device can be divided into two categories according to the processing priority: one is a task that the smart device can not handle when it is in a sleep state, and the other is a task that needs to be processed when the smart device is in a sleep state.
- a managed task callback interface may be set for a task that needs to be processed when the smart device is in a sleep state, and the task may include establishing a network. Tasks such as connecting, logging in to the server, sending heartbeat data proactively, and passively sending heartbeat data.
- the managed task callback interface that can be set may be a callback interface for establishing a connection, a callback interface for logging in to the server, a callback interface for passively transmitting heartbeat data, and a callback interface for actively sending heartbeat data.
- the developer of the third-party application sets the managed code of the corresponding task according to the callback interface of the base-managed task pre-defined in the smart device.
- the application processor After the application is successfully installed in the smart device, when the application processor in the smart device runs the application for the first time, if the third-party application needs to delegate the task corresponding to the preset managed code to the baseband processor when the application processor sleeps Processing, the application processor sends the hosting information including the calling path of the managed code to the baseband processor by calling the interface on the baseband processor side, and the calling path may be a library file storage path of the managed code.
- the library file can be a .jar file or a .so file.
- the embodiment of the present invention further provides a wake-up task callback interface for a task that needs to be processed when the smart device is in a sleep state in the task of generating an effective power consumption support in the smart device.
- these generate effective power support tasks in the smart Tasks that need to be processed while the device is in a sleep state may include receiving a text message or accepting a call.
- a developer of a third-party application can also set a wake-up code for a task that needs to be processed by the application processor according to a predetermined wake-up operation callback interface in the smart device.
- the application processor After the application is successfully installed in the smart device, when the application processor in the smart device runs the application for the first time, the application processor sends a call path containing the wake-up code to the baseband processor by calling the interface on the baseband processor side. Wake up information.
- the calling path may be a library file storage path of the wakeup code, and the library file may be a .jar file or a .so file.
- a pre-defined trustable baseband processor in a smart phone may include establishing a network connection, logging in to the server, actively sending heartbeat data, or passively transmitting heartbeat data, etc., and the wakeup task that needs to wake up the application processor for processing may include receiving a short message or receiving a call, etc., these managed task callback interfaces And the code to wake up the task callback interface can be as follows:
- the baseband processor sets the task corresponding to the received hosting information as a managed task, and sets the task corresponding to the received wakeup information as a wakeup task.
- the task trigger information may be information that actively triggers the task corresponding to the application. For example, when the smart device detects that the network becomes available from unavailable, generates task trigger information for indicating that the network is available, and actively triggers a task of establishing a network connection with the application server; when the smart device detects the application server When the network connection is established, the task triggering information is generated to indicate that the connection is successfully established, and the task of logging in to the application server is triggered. After the login is successful, the smart device detects that the heartbeat data is sent to the application server. At the same time, task triggering information for instructing to send heartbeat data is generated, and a task of sending heartbeat data to the application server is actively triggered.
- the task trigger information may also be information that passively triggers the task corresponding to the application. For example, when the smart device detects that the heartbeat data sent by the application server is received, the task triggering information for indicating the sending of the heartbeat data is generated, and the task of sending the heartbeat data to the application server is passively triggered; or the smart device detects the received When the message or the call is made, the task trigger information for instructing the trigger to wake up the application processor is generated, and the application processor is passively triggered to process the short message or the call task.
- the determining module 202 is configured to determine whether the task is a managed task of the application, and the managed task is a task that the application processor notifies the baseband processor to perform processing in advance;
- the baseband processor When the application processor of the smart device is in the sleep state, if the baseband processor receives the task trigger information, it may first determine whether the task triggered by the task trigger information is a managed task.
- the first execution module 203 is configured to invoke and execute the managed code corresponding to the task if the determination result of the determining module 202 is that the task is a managed task of the application.
- the first execution module 203 includes: at least one of a first execution unit, a second execution unit, or a third execution unit;
- the first execution unit 203a is configured to: when the task trigger information is information indicating that the network is available, invoke and execute a connection establishment code corresponding to the application, where the connection code is used to establish the smart device and the application Network connection between servers;
- the second executing unit 203b is configured to: when the task triggering information is information indicating that the network connection establishment between the smart device and the server of the application is completed, invoke and execute a login code corresponding to the application, The login code is used to log in to the server of the application;
- the third execution unit 203c is configured to: when the task trigger information is information indicating that the heartbeat data is sent to the server of the application, invoke and execute a heartbeat data sending code corresponding to the application, where the heartbeat data sending code is used to The heartbeat data is sent to a server of the application.
- the baseband processor determines that the task triggered by the task triggering information is a managed task that has been set, the managed code may be invoked and executed through the corresponding calling interface according to the calling path of the managed code corresponding to the task.
- the hosted task callback interface provided by the baseband processor sends the hosted information to the baseband processor as an example.
- the smart phone is connected to a certain router. Before the router is connected to the public network, the router can only implement the LAN communication function.
- the application A in the smart phone cannot log in to the server on the network side;
- the wireless access point of the smart phone does not change, but the data can be exchanged with the public network;
- the baseband processor learns that the router accesses the public network (for example, it detects that the smart phone successfully receives the data sent by the network side), it can pass
- the call path of the connection establishment code of the application A is notified, and the onConnect() function is called and executed to establish a network connection between the smartphone and the server of the application A.
- the baseband processor can call and execute the onRequestLogin(input, output) function to automatically log in to the application A server through the calling path of the login code notified by the application A.
- the smartphone When the smartphone receives the heartbeat data sent by the server of application A, or sends a heartbeat to the server of application A.
- the baseband processor sends the heartbeat data to the server of the application A by applying the onHearBeatTimeReceviced() function of the call path of the heartbeat data transmission code notified in advance by the application A.
- managed code including connection creation code and login code
- the managed code can be implemented as follows:
- the device further includes:
- the detecting module 208 is configured to: if the determining result of the determining module 202 is that the task is not a managed task of the application, detecting whether the task is a wake-up task;
- the second execution module 209 is configured to: if the detection result of the detection module 208 is that the task is a wake-up task, invoke and execute a wake-up code corresponding to the task, where the wake-up code is used to wake up an application of the smart device a processor and requesting the application processor to process the task.
- the baseband processor executes an onDataReceived(socket, datas) function to wake up the application processor in the smart phone to process the short message.
- the baseband processor may not process such tasks.
- the device further includes:
- connection record obtaining module 210 configured to acquire a network connection record of the application
- the optimization module 211 is configured to optimize network tasks of the application according to the network connection record.
- the optimization module 211 includes: a first optimization unit 211a and/or a second optimization unit 211b;
- a first optimization unit 211a configured to: when the network task is disconnecting the smart device from a server of the application, and the network connection record indicates that the established duration of the connection is less than a preset threshold Not performing the network task;
- a second optimization unit 211b configured to: when the network task is to send a network request to a server of the application, and the network connection record represents a historical network sent to a server of the application in a historical time period that is located at a current time When the request does not receive a response, the network task is not executed.
- the network task is a task related to the application and interacting with the network side, such as sending a network request, sending and receiving data, and establishing or disconnecting.
- the main task of the baseband processor is to maintain the transport layer and be familiar with the network, it is easier to optimize the network tasks according to the network conditions. In order to reduce the power consumption of the device by reducing unnecessary network tasks according to the network connection.
- the application when a smartphone runs an application, the application tries to connect to the server continuously, because only one connection to the server is needed at the same time. Therefore, when the next connection is established, the original connection needs to be closed first, and then initiated.
- the new connection request if the disconnection and initiation time of the two connections are too close, and the established time of the previous connection is less than 2 minutes, it can be determined that the task of disconnecting the reconnection is an unnecessary task, and Will not be processed.
- the resources on the web page are generally parallel, for example, acquiring multiple pictures in the same web page in parallel.
- a webpage has 10 requests for obtaining resources.
- the baseband processor finds that six consecutive requests are issued within three minutes before the current time, the network connection does not change. The baseband processor does not send the remaining 4 requests.
- the task processing apparatus determines whether the task corresponding to the task trigger information is a managed task of the application by using the baseband processor, and if so, the baseband processor directly invokes And executing the managed code corresponding to the task to perform the task, simplifying the processing flow originally coordinated by the application processor and the baseband processor to be separately processed by the baseband processor, and solving the application installed in the smart device in the prior art.
- the process of maintaining communication with the server a lot of tasks that need to be processed by the application processor are generated, which causes the application processor to be frequently woken up, thereby reducing the power consumption of the device during the task processing and improving the power consumption control effect.
- the task processing apparatus acquires a network connection record of an application through a baseband processor, and optimizes a network task of the application according to the network connection record, so as to reduce unnecessary network tasks according to the network connection situation. Therefore, the power consumption of the device is reduced, and the purpose of further improving the power consumption control effect is achieved.
- FIG. 3 is a block diagram of a smart device provided by an embodiment of the present invention, which may be a smart phone, a tablet computer, an e-book reader, a smart wearable device, or the like.
- the smart device 300 can include a bus 301, and a baseband processor 302, an application processor 303, a memory 304, a transmitter 305, and a receiver 306 coupled to the bus.
- the memory 304 is configured to store a plurality of instructions, the instructions being configured to be executed by the baseband processor 302 and the application processor 303;
- the baseband processor 302 is configured to acquire task triggering information, where the task triggering information is used to trigger a task corresponding to an application in the smart device;
- the baseband processor 302 is configured to determine whether the task is a managed task of the application, and the managed task is a task that the application processor notifies the baseband processor to perform processing in advance;
- the baseband processor 302 is configured to invoke and execute the managed code corresponding to the task if the result of the determination is that the task is a managed task of the application.
- the application processor is responsible for the transaction above the session layer, and is usually responsible for the operation of the application and the processing of the specific task; and the baseband processor is responsible for the transaction below the transport layer, such as data transmission and reception, in the task provided by the embodiment of the present invention.
- the corresponding part of the application is set as a managed task, and the managed task can be directly processed by the baseband processor.
- the application processor is in the sleep state, if the baseband processor determines that the generated task is a managed task, then Direct processing does not require waking up the application processor, thereby reducing the power consumption of the application processor during the processing of the task.
- the application processor needs to wake up all functions of the device during the processing of the task, while the baseband processor is working
- the network communication function only needs to be processed. Therefore, the power consumption of the baseband processor is much lower than that of the application processor.
- the task processing flow originally coordinated by the application processor and the baseband processor is performed by the method shown in the embodiment of the present invention. The process is simplified by the baseband processor alone, which can greatly reduce the power consumption of the device during the task processing and improve the power control effect.
- the smart device determines whether the task corresponding to the task trigger information is a managed task of the application, and if so, the baseband processor directly invokes and executes the managed code corresponding to the task.
- the processing flow originally coordinated by the application processor and the baseband processor is simplified to be handled by the baseband processor separately, which solves the problem that the application installed in the smart device in the prior art generates a lot in the process of maintaining communication with the server.
- the problem that the application processor needs to be processed causes the application processor to be frequently woken up, thereby reducing the power consumption of the device during the task processing and improving the power consumption control effect.
- FIG. 4 is a block diagram of a smart device according to another embodiment of the present invention.
- the smart device may be a smart phone, a tablet computer, an e-book reader, a smart wearable device, or the like.
- the smart device 400 can include a bus 401, and a baseband processor 402, an application processor 403, a memory 404, a transmitter 405, and a receiver 406 that are coupled to the bus.
- the memory 404 is configured to store a plurality of instructions, the instructions being configured to be executed by the baseband processor 402 and the application processor 403;
- the baseband processor 402 is configured to acquire task triggering information, where the task triggering information is used to trigger a task corresponding to an application in the smart device;
- the baseband processor 402 is configured to determine whether the task is a managed task of the application, and the managed task is a task that the application processor notifies the baseband processor to perform processing in advance;
- the baseband processor 402 is configured to invoke and execute the managed code corresponding to the task if the result of the determination is that the task is a managed task of the application.
- the application processor is responsible for the transaction above the session layer, and is usually responsible for the operation of the application and the processing of the specific task; and the baseband processor is responsible for the transaction below the transport layer, such as data transmission and reception, in the task provided by the embodiment of the present invention.
- the corresponding part of the application is set as a managed task, and the managed task can be directly processed by the baseband processor.
- the application processor is in the sleep state, if the baseband processor determines that the generated task is a managed task, then Direct processing does not require waking up the application processor, thereby reducing the power consumption of the application processor during the processing of the task.
- the application processor needs to wake up all functions of the device during the processing of the task, while the baseband processor is working
- the network communication function only needs to be processed. Therefore, the power consumption of the baseband processor is much lower than that of the application processor.
- the task processing flow originally coordinated by the application processor and the baseband processor is performed by the method shown in the embodiment of the present invention. The process is simplified by the baseband processor alone, which can greatly reduce the power consumption of the device during the task processing and improve the power control effect.
- the baseband processor 402 is configured to perform at least one of the following steps:
- the task triggering information is information indicating that the network is available, calling and executing a connection establishment code corresponding to the application, where the connection code is used to establish a network connection between the smart device and a server of the application;
- the task triggering information is information indicating that the network connection establishment between the smart device and the server of the application is completed, calling and executing a login code corresponding to the application, where the login code is used to log in to the application Server
- the task triggering information is information indicating that the heartbeat data is sent to the server of the application
- calling and executing a heartbeat data sending code corresponding to the application where the heartbeat data sending code is used to send the message to the server of the application.
- Heartbeat data is information indicating that the heartbeat data is sent to the server of the application.
- the baseband processor 402 is configured to receive, after acquiring task trigger information, the hosting information sent by the application processor, where the hosting information includes a calling path of the managed code, and the The task corresponding to the managed code is set to a managed task.
- the baseband processor 402 is configured to receive wakeup information sent by the application processor before acquiring task trigger information, where the wakeup information includes a call path of the wakeup code, and the The task corresponding to the wakeup code is set to wake up the task.
- the baseband processor provides a callback interface for the host task and the wakeup task, and the application sends the host information and the wakeup information to the baseband processor through the interface of the baseband processor, and the baseband processor sets the managed task and the wakeup task according to the information sent by the application.
- the steps please refer to the description in the embodiment corresponding to FIG. 2, and details are not described herein again.
- the baseband processor 402 is configured to: if it is determined that the task is not a managed task of the application, detect whether the task is a wake-up task, and the wake-up task is to wake up an application in the smart device. The task that the processor performs.
- the baseband processor 402 is configured to obtain a network connection record of the application, and optimize a network task of the application according to the network connection record.
- the baseband processor 402 is configured to: when the network task is disconnecting the smart device from a server of the application, and the network connection record indicates an established duration of the connection When the threshold is less than the preset threshold, the network task is not executed;
- the baseband processor 402 configured to: when the network task is to send a network request to a server of the application, and the network connection record indicates to the application in a historical time period that is located at a current time When the historical network request sent by the server does not receive a response, the network task is not executed.
- the smart device determines whether the task corresponding to the task trigger information is a managed task of the application, and if so, the baseband processor directly invokes and executes the managed code corresponding to the task.
- the processing flow originally coordinated by the application processor and the baseband processor is simplified to be handled by the baseband processor separately, which solves the problem that the application installed in the smart device in the prior art generates a lot in the process of maintaining communication with the server.
- the problem that the application processor needs to be processed causes the application processor to be frequently woken up, thereby reducing the power consumption of the device during the task processing and improving the power consumption control effect.
- the smart device acquires the network connection record of the application through the baseband processor, and optimizes the network task of the application according to the network connection record, so as to reduce unnecessary network tasks according to the network connection situation. Thereby reducing the power consumption of the device and achieving the purpose of further improving the power consumption control effect.
- FIG. 5 is a flowchart of a method for processing a task according to an embodiment of the present invention.
- the task processing method is used in a smart device including an application processor and a baseband processor, and the smart device may be a smart phone. , tablets, e-book readers, and smart wearable devices.
- the task processing method can include the following steps.
- Step 502 The baseband processor acquires task triggering information, where the task triggering information is used to trigger a task corresponding to the application in the smart device.
- Step 504 The baseband processor determines whether the task is a managed task of the application, and the managed task notifies the application processor in the smart device of the task of the baseband processor for processing.
- Step 506 If the result of the determination is that the task is the first type of task of the application, the baseband processor invokes and executes the managed code corresponding to the task.
- the application processor is responsible for the transaction above the session layer, and is usually responsible for the operation of the application and the processing of the specific task; and the baseband processor is responsible for the transaction below the transport layer, such as data transmission and reception, in the task provided by the embodiment of the present invention.
- the corresponding part of the application is set as a managed task, and the managed task can be directly processed by the baseband processor.
- the application processor is in the sleep state, if the baseband processor determines that the generated task is a managed task, then Direct processing does not require waking up the application processor, thereby reducing the power consumption of the application processor during the processing of the task.
- the application processor needs to wake up all functions of the device during the processing of the task, while the baseband processor is working
- the network communication function only needs to be processed. Therefore, the power consumption of the baseband processor is much lower than that of the application processor.
- the task processing method determines whether the task corresponding to the task trigger information is a managed task of the application by using a baseband processor, and if so, the baseband processor directly invokes and executes the managed code corresponding to the task.
- the processing flow originally coordinated by the application processor and the baseband processor is simplified to be separately processed by the baseband processor, and the application installed in the smart device in the prior art is generated in the process of maintaining communication with the server.
- Many tasks that require the application processor to process cause the application processor to be frequently woken up, which reduces the power consumption of the device during the task processing and improves the power control effect.
- FIG. 6 is a flowchart of a method for processing a task according to another embodiment of the present invention.
- the task processing method is used in a smart device including an application processor and a baseband processor, where the smart device may be intelligent. Mobile phones, tablets, e-book readers, and smart wearable devices.
- the task processing method can include the following steps.
- Step 602 The baseband processor receives the hosting information and the wakeup information sent by the application processor, where the managed information includes a calling path of the managed code, where the wakeup information includes a calling path of the wakeup code.
- the power consumption of a smart device mainly includes two parts: one part is called effective power consumption, the effective power consumption is mainly the power consumption generated by direct service type tasks, and the direct service type task is a task of directly providing services to users, such as sending and receiving short messages. , active and passive calls, instant messaging data transmission and reception, web page data request and reception tasks; another part is called invalid power consumption, invalid power consumption is mainly to deal with the power generated by supporting tasks, such support tasks are not provided to users Direct service, but support for direct service tasks, such as connecting or disconnecting the network, automatically logging in to the application server, and sending and receiving heartbeats The data remains connected to the application server, and so on.
- the tasks in the smart device can be divided into two categories according to the processing priority: one is a task that the smart device can not handle when it is in a sleep state, and the other is a task that needs to be processed when the smart device is in a sleep state.
- a managed task callback interface may be set for a task that needs to be processed when the smart device is in a sleep state, and the task may include establishing a network. Tasks such as connecting, logging in to the server, sending heartbeat data proactively, and passively sending heartbeat data.
- the managed task callback interface that can be set may be a callback interface for establishing a connection, a callback interface for logging in to the server, a callback interface for passively transmitting heartbeat data, and a callback interface for actively sending heartbeat data.
- the developer of the third-party application sets the managed code of the corresponding task according to the callback interface of the base-managed task pre-defined in the smart device.
- the application processor in the smart device runs the third-party application for the first time, if the third-party application needs to delegate the task corresponding to the preset managed code to the base processor in the application processor
- the application processor sends the hosted information containing the calling path of the managed code to the baseband processor by calling the interface on the baseband processor side, and the calling path may be a library file storage path of the managed code.
- the library file can be a .jar file or a .so file.
- the embodiment of the present invention further provides a wake-up task callback interface for a task that needs to be processed when the smart device is in a sleep state in the task of generating an effective power consumption support in the smart device.
- these generate effective power support tasks in the smart Tasks that need to be processed while the device is in a sleep state may include receiving a text message or accepting a call.
- a developer of a third-party application can also set a wake-up code for a task that needs to be processed by the application processor according to a predetermined wake-up operation callback interface in the smart device.
- the application processor in the smart device sends the wakeup information containing the calling path of the wakeup code to the baseband processor by calling the interface of the baseband processor on the first run.
- the calling path may be a library file storage path of the wakeup code
- the library file may be a .jar file or a .so file.
- a predetermined task that can be entrusted by the baseband processor in the smart phone may include establishing a network connection, logging in to the server, actively sending heartbeat data, or passively transmitting heartbeat data, etc., and need to wake up the application processor.
- the wake-up task for processing may include receiving a short message or receiving a call, etc.
- the code of the managed task callback interface and the wake-up task callback interface may be as follows:
- Step 604 the baseband processor sets the task corresponding to the managed code as a managed task, and sets the task corresponding to the wakeup code as a wakeup task, and the managed task is a task for the application to notify the baseband processor to process in advance, and the wakeup task is to wake up the smart device.
- the application processor handles the task.
- the baseband processor sets the task corresponding to the received hosting information as a managed task, and sets the task corresponding to the received wakeup information as a wakeup task.
- Step 606 The baseband processor acquires task triggering information, where the task triggering information is used to trigger a task corresponding to the application in the smart device.
- the task trigger information may be information that actively triggers the task corresponding to the application. For example, when the smart device detects that the network becomes available from unavailable, generates task trigger information for indicating that the network is available, and actively triggers a task of establishing a network connection with the application server; when the smart device detects the application server When the network connection is established, the task triggering information is generated to indicate that the connection is successfully established, and the task of logging in to the application server is triggered. After the login is successful, the smart device detects that the heartbeat data is sent to the application server. At the same time, task triggering information for instructing to send heartbeat data is generated, and a task of sending heartbeat data to the application server is actively triggered.
- the task trigger information may also be information that passively triggers the task corresponding to the application. For example, when the smart device detects that the heartbeat data sent by the application server is received, the task triggering information for indicating the sending of the heartbeat data is generated, and the task of sending the heartbeat data to the application server is passively triggered; or the smart device detects the received When the message or the call is made, the task trigger information for instructing the trigger to wake up the application processor is generated, and the application processor is passively triggered to process the short message or the call task.
- Step 608 the baseband processor determines whether the task is a managed task of the application, and if yes, proceeds to step 610, otherwise, proceeds to step 612.
- the baseband processor When the application processor of the smart device is in the sleep state, if the baseband processor receives the task trigger information, it may first determine whether the task triggered by the task trigger information is a managed task.
- Step 610 The baseband processor invokes and executes the managed code corresponding to the task.
- the baseband processor determines that the task triggered by the task triggering information is a managed task that has been set, the managed code may be invoked and executed through the corresponding calling interface according to the calling path of the managed code corresponding to the task.
- the baseband processor calls and executes a connection establishment code corresponding to an application, and the connection code is used to establish a network connection between the smart device and the server of the application;
- the task triggering information is information indicating that the network connection establishment between the smart device and the server of the application is completed
- the baseband processor calls and executes a login code corresponding to the application, and the login code is used to log in to the server of the application.
- the task trigger information is information indicating that heartbeat data is sent to the application server
- the baseband processor calls and executes a heartbeat data transmission code corresponding to the application, and the heartbeat data transmission code is used to send a heartbeat to the application server. data.
- the hosted task callback interface provided by the baseband processor sends the hosted information to the baseband processor as an example.
- the smart phone is connected to a certain router. Before the router is connected to the public network, the router can only implement the LAN communication function.
- the application A in the smart phone cannot log in to the server on the network side;
- the wireless access point of the smart phone does not change, but the data can be exchanged with the public network;
- the baseband processor learns that the router accesses the public network (for example, it detects that the smart phone successfully receives the data sent by the network side), it can pass
- the call path of the connection establishment code of the application A is notified, and the onConnect() function is called and executed to establish a network connection between the smartphone and the server of the application A.
- the baseband processor can call and execute the onRequestLogin(input, output) function to automatically log in to the application A server through the calling path of the login code notified by the application A.
- the baseband processor invokes and executes the call path of the heartbeat data transmission code notified by the application A in advance.
- the onHearBeatTimeReceviced() function sends heartbeat data to the application A's server.
- the managed code can be Now it is as follows:
- Step 612 The baseband processor detects whether the task is a wake-up task. If the detection result is that the task is a wake-up task, the wake-up code corresponding to the application is invoked and executed.
- the wake-up code is used to wake up the application processor of the smart device and request the application processor to process the wake-up task.
- the baseband processor executes an onDataReceived(socket, datas) function to wake up the application processor in the smart phone to process the short message.
- the baseband processor may not process.
- the baseband processor may also obtain a network connection record of an application, and optimize the network task of the application according to the network connection record.
- the network task is a task related to the application and interacting with the network side, such as sending a network request, sending and receiving data, and establishing or disconnecting.
- the baseband processor when the network task is to disconnect the smart device from the server of the application, and the network connection record indicates that the established duration of the connection is less than a preset threshold, the baseband processor does not perform the network task. Execution.
- the network connection record indicates that a historical network request sent to the application's server within a historical time period that is located at the current time does not receive a response.
- the baseband processor does not execute the network task.
- the main task of the baseband processor is to maintain the transport layer and be familiar with the network, it is easier to optimize the network tasks according to the network conditions. In order to reduce the power consumption of the device by reducing unnecessary network tasks according to the network connection.
- the application when a smartphone runs an application, the application tries to connect to the server continuously, because only one connection to the server is needed at the same time. Therefore, when the next connection is established, the original connection needs to be closed first, and then initiated.
- the new connection request if the disconnection and initiation time of the two connections are too close, and the established time of the previous connection is less than 2 minutes, it can be determined that the task of disconnecting the reconnection is an unnecessary task, and Will not be processed.
- the resources on the web page are generally parallel, for example, acquiring multiple pictures in the same web page in parallel.
- a webpage has 10 requests for obtaining resources.
- the baseband processor finds that six consecutive requests are issued within three minutes before the current time, the network connection does not change. The baseband processor does not send the remaining 4 requests.
- the task processing method determines whether the task corresponding to the task trigger information is a managed task of the application by using a baseband processor, and if so, the baseband processor directly invokes and executes the managed code corresponding to the task.
- the processing flow originally coordinated by the application processor and the baseband processor is simplified to be separately processed by the baseband processor, and the application installed in the smart device in the prior art is generated in the process of maintaining communication with the server.
- Many tasks that require the application processor to process cause the application processor to be frequently woken up, which reduces the power consumption of the device during the task processing and improves the power control effect.
- the task processing method provided by the embodiment of the present invention acquires the network connection record of the application through the baseband processor, optimizes the network task of the application according to the network connection record, and reduces unnecessary network tasks according to the network connection situation. Therefore, the power consumption of the device is reduced, and the purpose of further improving the power consumption control effect is achieved.
- FIG. 7 illustrates a block diagram of a baseband processor according to an embodiment of the present invention.
- the baseband processor may be used to implement the task processing method shown in any of the foregoing FIG. 5 or FIG. 6 .
- the baseband processor is used in a smart device, which may be a smart phone, a tablet computer, an e-book reader, a smart wearable device, or the like.
- the baseband processor 700 can include:
- the baseband processor determines whether the task corresponding to the task trigger information is a managed task of the application, and if so, the baseband processor directly invokes and executes the managed code corresponding to the task to execute
- the task is to simplify the processing flow originally coordinated by the application processor and the baseband processor to be separately processed by the baseband processor, and solve the problem that the application installed in the smart device in the prior art generates many applications in the process of maintaining communication with the server.
- the problem that the processor handles the task causes the application processor to be frequently woken up, thereby reducing the power consumption of the device during the task processing and improving the power consumption control effect.
- FIG. 8 is a flowchart of a method for processing a task according to an embodiment of the present invention.
- the task processing method is used in a smart device including an application processor and a baseband processor, and the smart device may be a smart phone. , tablets, e-book readers, and smart wearable devices.
- the task processing method can include the following steps.
- Step 802 The baseband processor acquires a network connection record of the application.
- Step 804 The baseband processor optimizes the network task of the application according to the network connection record.
- the baseband processor optimizes the network task of the application according to the network connection record, and may include:
- the smart device is a device including the baseband processor
- the baseband processor pair When the network task is to send a network request to the server of the application, and the network connection record indicates that the historical network request sent to the application's server within the historical time period of the current time location does not receive a response, the baseband processor pair The network task is not executed;
- the network task is to establish a connection with the application server, if the network connection record indicates that the network of the smart device is changed from unavailable to available, the network task is executed immediately.
- the network task is a task related to the application and interacting with the network side, such as sending a network request, sending and receiving data, and establishing or disconnecting.
- the main task of the baseband processor is to maintain the transport layer and be familiar with the network, it is easier to optimize the network tasks according to the network conditions. In order to reduce the power consumption of the device by reducing unnecessary network tasks according to the network connection.
- the application when a smartphone runs an application, the application tries to connect to the server continuously, because only one connection to the server is needed at the same time. Therefore, when the next connection is established, the original connection needs to be closed first, and then initiated.
- the new connection request if the disconnection and initiation time of the two connections are too close, and the established time of the previous connection is less than 2 minutes, it can be determined that the task of disconnecting the reconnection is an unnecessary task, and Will not be processed.
- the resources on the web page are generally parallel, for example, acquiring multiple pictures in the same web page in parallel.
- a webpage has 10 requests for obtaining resources.
- the baseband processor finds that six consecutive requests are issued within three minutes before the current time, the network connection does not change. The baseband processor does not send the remaining 4 requests.
- the smart phone is connected to a certain router, and the router can only implement the local area network communication function before the router is not connected to the public network.
- the application in the smart phone cannot log in to the server on the network side; when the router accesses the public network, The wireless access point of the smart phone does not change, but the data interaction with the public network can be performed; when the baseband processor learns that the router accesses the public network (for example, detecting that the smart phone successfully receives the data sent by the network side), Instantly establish a network connection between the smartphone and the application's server, reducing business downtime.
- the task processing method acquires the network connection record of the application through the baseband processor, and optimizes the network task of the application according to the network connection record, because the main task of the baseband processor is maintenance.
- the transport layer familiar with the network, makes it easier to optimize network tasks based on network conditions, thereby reducing unnecessary network tasks and reducing device power consumption based on network connectivity.
- FIG. 9 is a structural diagram of a device for a task processing apparatus according to an embodiment of the present invention.
- the task processing apparatus is used in a baseband processor including a smart device, which may be a smart phone or a tablet computer. E-book readers and smart wearable devices.
- the task processing device can include:
- connection record obtaining module 910 configured to acquire a network connection record of the application
- the optimization module 911 is configured to perform an optimization on the network task of the application according to the network connection record. Chemical.
- the optimization module 911 includes: a first optimization unit 911a and/or a second optimization unit 911b;
- the first optimization unit 911a is configured to: when the network task is disconnecting the smart device from a server of the application, and the network connection record indicates that the established duration of the connection is less than a preset When the threshold is reached, the network task is not executed;
- the second optimization unit 911b is configured to: when the network task is to send a network request to a server of the application, and the network connection record is sent to a server of the application in a historical time period that is located at a current time. When the historical network request does not receive a response, the network task is not executed.
- the network task is a task related to the application and interacting with the network side, such as sending a network request, sending and receiving data, and establishing or disconnecting.
- the main task of the baseband processor is to maintain the transport layer and be familiar with the network, it is easier to optimize the network tasks according to the network conditions. In order to reduce the power consumption of the device by reducing unnecessary network tasks according to the network connection.
- the application when a smartphone runs an application, the application tries to connect to the server continuously, because only one connection to the server is needed at the same time. Therefore, when the next connection is established, the original connection needs to be closed first, and then initiated.
- the new connection request if the disconnection and initiation time of the two connections are too close, and the established time of the previous connection is less than 2 minutes, it can be determined that the task of disconnecting the reconnection is an unnecessary task, and Will not be processed.
- the resources on the web page are generally parallel, for example, acquiring multiple pictures in the same web page in parallel.
- a webpage has 10 requests for obtaining resources.
- the baseband processor finds that six consecutive requests are issued within three minutes before the current time, the network connection does not change. The baseband processor does not send the remaining 4 requests.
- the smart phone is connected to a certain router, and the router can only implement the local area network communication function before the router is not connected to the public network.
- the application in the smart phone cannot log in to the server on the network side; when the router accesses the public network, The wireless access point of the smart phone does not change, but the data interaction with the public network can be performed; when the baseband processor learns that the router accesses the public network (for example, detecting that the smart phone successfully receives the data sent by the network side), Instantly establish a network connection between the smartphone and the application's server, reducing business downtime.
- the task processing apparatus acquires the network connection record of the application by using the baseband processor, and optimizes the network task of the application according to the network connection record, because the main task of the baseband processor is maintenance.
- the transport layer familiar with the network, makes it easier to optimize network tasks based on network conditions, thereby reducing unnecessary network tasks and reducing device power consumption based on network connectivity.
- FIG. 10 shows a block diagram of a baseband processor according to an embodiment of the present invention.
- the baseband processor can be used to implement the task processing method shown in FIG.
- the baseband processor is used in a smart device, which may be a smart phone, a tablet computer, an e-book reader, a smart wearable device, or the like.
- the baseband processor 1000 can include:
- the baseband processor provided by the embodiment of the present disclosure obtains the network connection record of the application, and optimizes the network task of the application according to the network connection record, because the main task of the baseband processor is to maintain the transport layer. Familiar with network conditions, it is easier to optimize network tasks according to network conditions, thereby reducing unnecessary network tasks and reducing device power consumption according to network connection conditions.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种任务处理装置、智能设备、任务处理方法及基带处理器,涉及计算机领域。所述任务处理装置用于智能设备的基带处理器中,包括:触发信息获取模块,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;判断模块,用于判断所述任务是否为所述应用的托管任务;第一执行模块,用于若所述判断模块的判断结果为所述任务是所述应用的托管任务,则调用并执行所述任务对应的托管代码。基带处理器直接调用并执行任务对应的托管代码,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
Description
本发明涉及计算机领域,特别涉及一种任务处理装置、智能设备、任务处理方法及基带处理器。
随着计算机及无线通信领域的不断发展,智能手机、平板电脑以及电子书阅读器等智能设备也越来越普及。这些智能设备大多通过预先或者后续安装的第三方应用来为用户提供服务。
智能设备通常包括应用处理器和基带处理器,在现有技术提供的任务处理方法中,智能手机中安装的应用所对应的各种本地或网络任务都需要由应用处理器和基带处理器两者彼此协调来完成处理。为了控制智能设备的功耗,提高续航,当智能设备处于锁屏状态,且没有需要应用处理器和基带处理器协调处理的任务时,应用处理器进入休眠状态,只有触发了需要应用处理器和基带处理器协调处理的任务时,才将应用处理器唤醒进行处理。
在实现本发明的过程中,申请人发现现有技术至少存在如下缺陷:
智能设备中安装的很多应用都需要与服务器保持通信,而保持通信的过程会产生很多需要应用处理器来处理的任务,当智能设备中安装的此类应用较多时,应用处理器会被频繁唤醒,导致设备功耗的控制效果较差。
发明内容
为了解决现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务,导致应用处理器被频繁唤醒的问题,本发明实施例提供了一种任务处理装置、智能设备、任务处理方法及基带处理器。所述技术方案如下:
第一方面,提供一种任务处理装置,用于智能设备的基带处理器中,所述装置包括:
触发信息获取模块,用于获取任务触发信息,所述任务触发信息用于触发
所述智能设备中的应用对应的任务;
判断模块,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述智能设备的应用处理器预先通知所述基带处理器进行处理的任务;
第一执行模块,用于若所述判断模块的判断结果为所述任务是所述应用的托管型任务,则调用并执行所述任务对应的托管代码。
在第一方面的第一种可能实现方式中,所述第一执行模块,包括:第一执行单元、第二执行单元或者第三执行单元中的至少一个;
所述第一执行单元,用于当所述任务触发信息为指示网络可用的信息时,调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;
所述第二执行单元,用于当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;
所述第三执行单元,用于当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
结合第一方面或者第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述装置还包括:
托管信息接收模块,用于在所述获取任务触发信息之前,接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径;
第一设置模块,用于将所述托管代码对应的任务设置为托管任务。
结合第一方面、第一方面的第一种可能实现方式,或者第一方面的第二种可能实现方式,在第一方面的第三种可能实现方式中,所述装置还包括:
检测模块,用于若所述判断模块的判断结果为所述任务不是所述应用的托管任务,则检测所述任务是否为唤醒任务;
第二执行模块,用于若所述检测模块的检测结果为所述任务为唤醒任务,则调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
结合第一方面的第三种可能实现方式,在第一方面的第四种可能实现方式中,所述装置还包括:
唤醒信息接收模块,用于在所述获取任务触发信息之前,接收所述应用处
理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径;
第二设置模块,用于将所述唤醒代码对应的任务设置为唤醒任务。
结合第一方面或者第一方面的第一至四种可能实现方式中的任一种,在第一方面的第五种可能实现方式中,所述装置还包括:
连接记录获取模块,用于获取所述应用的网络连接记录;
优化模块,用于根据所述网络连接记录对所述应用的网络任务进行优化。
结合第一方面的第五种可能实现方式,在第一方面的第六种可能实现方式中,所述优化模块,包括:第一优化单元和/或第二优化单元;
所述第一优化单元,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;
所述第二优化单元,用于当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
第二方面,提供了一种智能设备,所述智能设备包括:总线,以及连接到所述总线的基带处理器、应用处理器、存储器、发射器和接收器。其中,所述存储器用于存储若干个指令,所述若干个指令被配置成由所述基带处理器和所述应用处理器执行;
所述基带处理器,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;
所述基带处理器,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述应用处理器预先通知所述基带处理器进行处理的任务;
所述基带处理器,用于若判断结果为所述任务是所述应用的托管任务,则调用并执行所述任务对应的托管代码。
在第二方面的第一种可能实现方式中,所述基带处理器,用于执行如下步骤中的至少一个:
当所述任务触发信息为指示网络可用的信息时,调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;
当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,调用并执行所述应用对应的登录代码,所述登录代
码用于登录所述应用的服务器;
当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
结合第二方面或者第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,
所述基带处理器,用于在获取任务触发信息之前,接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径,并将所述托管代码对应的任务设置为托管任务。
结合第二方面、第二方面的第一种可能实现方式,或者第二方面的第二种可能实现方式,在第二方面的第三种可能实现方式中,
所述基带处理器,用于若判断出所述任务不是所述应用的托管任务,则检测所述任务是否为唤醒任务,所述唤醒任务为唤醒所述智能设备中的应用处理器进行处理的任务;
所述基带处理器,用于若检测出所述任务为唤醒任务,则调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
结合第二方面的第三种可能实现方式,在第二方面的第四种可能实现方式中,
所述基带处理器,用于在获取任务触发信息之前,接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径,并将所述唤醒代码对应的任务设置为唤醒任务。
结合第二方面或者第二方面的第一至四种可能实现方式中的任一种,在第二方面的第五种可能实现方式中,
所述基带处理器,用于获取所述应用的网络连接记录,根据所述网络连接记录对所述应用的网络任务进行优化。
结合第二方面的第五种可能实现方式,在第二方面的第六种可能实现方式中,
所述基带处理器,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;
和/或,所述基带处理器,用于当所述网络任务向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
第三方面,提供了一种任务处理方法,用于包含有基带处理器的智能设备中,所述方法包括:
所述基带处理器获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;
所述基带处理器判断所述任务是否为所述应用的托管任务,所述托管任务为所述智能设备中的应用处理器预先通知所述基带处理器进行处理的任务;
若判断结果为所述任务是所述应用的托管任务,则所述基带处理器调用并执行所述任务对应的托管代码。
在第三方面的第一种可能实现方式中,所述基带处理器执行所述任务对应的托管代码,包括以下三种情形中的至少一种:
当所述任务触发信息为指示网络可用的信息时,所述基带处理器调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;
当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,所述基带处理器调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;
当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,所述基带处理器调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
结合第三方面或者第三方面的第一种可能实现方式,在第三方面的第二种可能实现方式中,所述方法还包括:
在所述获取任务触发信息之前,所述基带处理器接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径;
所述基带处理器将所述托管代码对应的任务设置为托管任务。
结合第三方面、第三方面的第一种可能实现方式,或者第三方面的第二种可能实现方式,在第三方面的第三种可能实现方式中,所述方法还包括:
若判断结果为所述任务不是所述应用的托管任务,则所述基带处理器检测所述任务是否为唤醒任务,所述唤醒任务为唤醒所述智能设备中的应用处理器
进行处理的任务;
若检测结果为所述任务为唤醒任务,则所述基带处理器调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
结合第三方面的第三种可能实现方式,在第三方面的第四种可能实现方式中,所述方法还包括:
在所述获取任务触发信息之前,所述基带处理器接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径;
所述基带处理器将所述唤醒代码对应的任务设置为唤醒任务。
在第三方面的第五种可能实现方式中,所述方法还包括:
所述基带处理器获取所述应用的网络连接记录;
所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化。
结合第三方面的第五种可能实现方式,在第三方面的第六种可能实现方式中,所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化,包括:
当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,所述基带处理器对所述网络任务不予执行;
和/或,当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,所述基带处理器对所述网络任务不予执行。
第四方面,提供了一种基带处理器,所述基带处理器包括:
如上述第一方面或者第一方面的任一种可能实现方式所述的任务处理装置。
第五方面,提供了一种任务处理方法,用于包含有基带处理器的智能设备中,所述方法包括:
基带处理器获取应用的网络连接记录;
所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化。
在第五方面的第一种可能实现方式中,所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化,包括:
当所述网络任务为断开智能设备与所述应用的服务器之间的连接,且所述
网络连接记录表示所述连接的已建立时长小于预设阈值时,所述基带处理器对所述网络任务不予执行,所述智能设备为包含所述基带处理器的设备;
和/或,当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,所述基带处理器对所述网络任务不予执行。
第六方面,提供了一种任务处理装置,用于智能设备的基带处理器中,所述装置包括:
连接记录获取模块,用于获取所述应用的网络连接记录;
优化模块,用于根据所述网络连接记录对所述应用的网络任务进行优化。
结合第一方面的第五种可能实现方式,在第一方面的第六种可能实现方式中,所述优化模块,包括:第一优化单元和/或第二优化单元;
所述第一优化单元,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;
所述第二优化单元,用于当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
第七方面,提供了一种基带处理器,所述基带处理器包括:
如上述第六方面或者第六方面的第一种可能实现方式所述的任务处理装置。
本发明实施例提供的技术方案带来的有益效果是:
通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明
的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明一个实施例提供的任务处理装置的装置结构图;
图2是本发明另一实施例提供的任务处理装置的装置结构图;
图3是本发明一个实施例提供的智能设备的框图;
图4是本发明另一实施例提供的智能设备的框图;
图5是本发明一个实施例提供的任务处理方法的方法流程图;
图6是本发明另一实施例提供的任务处理方法的方法流程图;
图7是本发明一个实施例提供的基带处理器的框图;
图8是本发明一个实施例提供的任务处理方法的方法流程图;
图9是本发明一个实施例提供的任务处理装置的装置结构图;
图10是本发明一个实施例提供的基带处理器的框图。
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
请参考图1,其示出了本发明一个实施例提供的任务处理装置的装置结构图,该任务处理装置用于包含智能设备的基带处理器中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该任务处理装置可以包括:
触发信息获取模块101,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;
判断模块102,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述智能设备中的应用处理器预先通知所述基带处理器进行处理的任务;
第一执行模块103,用于若所述判断模块102的判断结果为所述任务是所述应用的托管型任务,则调用并执行所述任务对应的托管代码。
在智能设备中,应用处理器负责会话层以上的事务,通常负责应用的运行和具体任务的处理;而基带处理器负责传输层以下的事务,比如数据的收发,在本发明实施例提供的任务处理方法中,将应用对应的部分任务设定为托管任
务,该托管任务可以由基带处理器直接处理,当应用处理器处于休眠状态时,若基带处理器判断出生成的任务为托管任务,则直接进行处理,不需要唤醒应用处理器,从而减少本次任务处理过程中应用处理器的功耗,由于应用处理器在处理任务的过程中需要唤醒设备的全部功能,而基带处理器在工作时仅需要处理网络通讯功能,因此,基带处理器的功耗较比应用处理器低很多,通过本发明实施例所示的方法,将原本由应用处理器和基带处理器协作的任务处理流程简化为由基带处理器单独处理,可以极大的减少任务处理过程中的设备功耗,提高功耗控制的效果。
综上所述,本发明实施例提供的任务处理装置,通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
请参考图2,其示出了本发明另一实施例提供的任务处理装置的装置结构图,该任务处理装置用于包含智能设备的基带处理器中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该任务处理装置可以包括:
触发信息获取模块201,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;
可选的,所述装置还包括:托管信息接收模块204,用于在所述获取任务触发信息之前,接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径;
第一设置模块205,用于将所述托管代码对应的任务设置为托管任务。
可选的,所述装置还包括:唤醒信息接收模块206,用于在所述获取任务触发信息之前,接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径;
第二设置模块207,用于将所述唤醒代码对应的任务设置为唤醒任务。
智能设备的功耗主要包括两部分:一部分称为有效功耗,有效功耗主要是
处理直接服务类任务所产生的功耗,直接服务类任务是指直接向用户提供服务的任务,比如收发短信、主被动呼叫、即时通讯数据的收发、网页数据的请求与接收等任务;另一部分称为无效功耗,无效功耗主要是处理支撑任务所产生的功耗,此类支撑任务不向用户提供直接服务,而是对直接服务类任务提供支撑,比如,连接或者断开网络、自动登录应用服务器以及通过发送和接收心跳数据保持与应用服务器之间的连接等。
此外,智能设备中的任务还可以按照处理优先级分为两类:一类是智能设备处于休眠状态时可以不予处理的任务,另一类是智能设备处于休眠状态时也需要处理的任务。
在本发明实施例中,可以针对智能设备中产生无效功耗的支撑任务中,在智能设备处于休眠状态时也需要处理的任务设置托管任务回调接口,典型的,该此类任务可以包括建立网络连接、登录服务器、主动发送心跳数据以及被动发送心跳数据等任务。比如,可以设置的托管任务回调接口可以是建立连接的回调接口、登录服务器的回调接口、被动发送心跳数据的回调接口以及主动发送心跳数据的回调接口等。第三方应用的开发者根据智能设备中预先规定的基托管任务的回调接口,设置对应任务的托管代码。当应用程序在智能设备中成功安装后,智能设备中的应用处理器在首次运行该应用时,若第三方应用需要将预先设置的托管代码对应的任务委托由基带处理器在应用处理器休眠时处理,则应用处理器通过调用基带处理器侧的接口,向基带处理器发送包含有该托管代码的调用路径的托管信息,该调用路径可以是该托管代码的库文件存储路径。其中,该库文件可以是.jar文件或者.so文件。
此外,本发明实施例还针对智能设备中产生有效功耗支撑任务中,在智能设备处于休眠状态时需要处理的任务设置唤醒任务回调接口,典型的,这些产生有效功耗支撑任务中,在智能设备处于休眠状态时需要处理的任务可以包括接收短信或者接受呼叫等。比如,第三方应用的开发者还可以根据智能设备中预先规定的唤醒操作回调接口,对需要由应用处理器进行处理的任务设置唤醒代码。当应用程序在智能设备中成功安装后,智能设备中的应用处理器在首次运行该应用时,应用处理器通过调用基带处理器侧的接口,向基带处理器发送包含有唤醒代码的调用路径的唤醒信息。同样的,该调用路径可以是该唤醒代码的库文件存储路径,该库文件可以是.jar文件或者.so文件。
以智能设备为智能手机为例,智能手机中预先规定的可委托由基带处理器
管理的托管任务可以包括建立网络连接、登录服务器、主动发送心跳数据或者被动发送心跳数据等,需要唤醒应用处理器进行处理的唤醒任务可以包括接收到短信或者接收到呼叫等,这些托管任务回调接口以及唤醒任务回调接口的代码可以如下:
需要说明的是,在本发明实施例中,仅以上述几种托管任务和唤醒任务进行举例说明,在实际应用中,还可以是具体情况将其它种类的任务设置为托管任务或者唤醒任务。本发明实施例对托管任务和唤醒任务的种类不做限定。
基带处理器将接收到的托管信息对应的任务设置为托管任务,并将接收到的唤醒信息对应的任务设置为唤醒任务。
其中,任务触发信息可以是主动触发应用对应的任务的信息。比如,当智能设备检测出网络由不可用变为可用时,生成用于指示网络可用的任务触发信息,主动触发建立与应用服务器之间的网络连接的任务;当智能设备检测出与应用服务器之间的网络连接建立完成时,生成用于指示连接建立成功的任务触发信息,主动触发登录该应用服务器的任务;登录成功后,当智能设备检测出主动向该应用服务器发送心跳数据的时间点达到时,生成用于指示发送心跳数据的任务触发信息,主动触发向该应用服务器发送心跳数据的任务。
此外,任务触发信息还可以是被动触发应用对应的任务的信息。比如,当智能设备检测出接收到该应用服务器发送的心跳数据时,生成用于指示发送心跳数据的任务触发信息,被动触发向该应用服务器发送心跳数据的任务;或者,智能设备检测出接收到短信或者呼叫时,生成用于指示触发唤醒应用处理器的任务触发信息,被动触发唤醒应用处理器,由应用处理器处理短信或呼叫任务。
判断模块202,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述应用处理器预先通知所述基带处理器进行处理的任务;
当智能设备的应用处理器处于休眠状态时,若基带处理器接收到任务触发信息,可以首先判断该任务触发信息触发的任务是否为托管任务。
第一执行模块203,用于若所述判断模块202的判断结果为所述任务是所述应用的托管型任务,则调用并执行所述任务对应的托管代码。
可选的,所述第一执行模块203,包括:第一执行单元、第二执行单元或者第三执行单元中的至少一个;
第一执行单元203a,用于当所述任务触发信息为指示网络可用的信息时,调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;
第二执行单元203b,用于当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;
第三执行单元203c,用于当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
若基带处理器判断出该任务触发信息触发的任务是已经设置的托管任务,则可以根据该任务对应的托管代码的调用路径,通过对应的调用接口调用该托管代码并执行。
以应用A成功安装在智能手机中之后,通过基带处理器提供的托管任务回调接口向基带处理器发送托管信息为例。智能手机接入某一个路由器,在该路由器未接入公网之前,路由器仅能实现局域网通讯功能,此时智能手机中的应用A无法登录网络侧的服务器;当该路由器接入公网之后,智能手机的无线接入点没有发生变化,但是可以与公网进行数据交互;当基带处理器获知路由器接入公网(比如,检测到智能手机成功接收到网络侧发送的数据)时,可以通过应用A预先通知的连接建立代码的调用路径,调用并执行onConnect()函数,以建立智能手机与应用A的服务器之间的网络连接。当网络连接建立完成后,基带处理器可以通过应用A预先通知的登录代码的调用路径,调用并执行onRequestLogin(input,output)函数,自动登录应用A的服务器。当智能手机接收到应用A的服务器发送的心跳数据,或者到达向应用A的服务器发送心跳
数据的时间点时,基带处理器通过应用A预先通知的心跳数据发送代码的调用路径,调用并执行的onHearBeatTimeReceviced()函数,向应用A的服务器发送心跳数据。
比如,以托管代码包括连接建立代码和登录代码为例,该托管代码可以实现如下:
可选的,所述装置还包括:
检测模块208,用于若所述判断模块202的判断结果为所述任务不是所述应用的托管任务,则检测所述任务是否为唤醒任务;
第二执行模块209,用于若所述检测模块208的检测结果为所述任务为唤醒任务,则调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
比如,当智能手机中的应用处理器处于休眠状态,且接收到短信时,基带处理器执行onDataReceived(socket,datas)函数,以唤醒智能手机中的应用处理器来处理该短信。
在实际应用中,还有一些在智能设备处于休眠状态时不需要处理的任务,
比如接收即时通讯数据或者网页数据的任务,对于此类任务,基带处理器可以不予处理。
可选的,所述装置还包括:
连接记录获取模块210,用于获取所述应用的网络连接记录;
优化模块211,用于根据所述网络连接记录对所述应用的网络任务进行优化。
可选的,所述优化模块211,包括:第一优化单元211a和/或第二优化单元211b;
第一优化单元211a,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;
第二优化单元211b,用于当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
其中,该网络任务为该应用相关的,与网络侧进行交互的任务,比如发送网络请求、收发数据以及建立或者断开连接等。
由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化。以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗。
比如,智能手机运行某一应用时,应用会尝试不断连接服务器,因为同一时间只需要一个与服务器之间的连接,因此,当建立下一个连接时,原来的连接就需要先关闭,然后再发起新的连接请求,如果两个连接的断开和发起的时间相隔太近,并且前一个连接的已建立时长小于2分钟,则可以确定本次断开重连的任务为不必要的任务,可以不予处理。
或者,用户使用智能手机浏览网站时,获取网页上的资源通常是并行的,比如,并行获取同一网页中的多个图片。某一网页对应有10个获取资源的请求,在请求过程中,如果基带处理器发现在当前时刻之前三分钟内发出的连续6个请求都失败,则在网络连接情况没有发生变化的情况下,基带处理器暂不发送剩余的4个请求。
综上所述,本发明实施例提供的任务处理装置,通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用
并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
此外,本发明实施例提供的任务处理装置,通过基带处理器获取应用的网络连接记录,根据该网络连接记录对该应用的网络任务进行优化,以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗,达到进一步提高功耗控制效果的目的。
请参考图3,其示出了本发明一个实施例提供的智能设备的框图,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该智能设备300可以包括:总线301,以及连接到所述总线的基带处理器302、应用处理器303、存储器304、发射器305和接收器306。其中,所述存储器304用于存储若干个指令,所述若干个指令被配置成由所述基带处理器302和所述应用处理器303执行;
所述基带处理器302,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;
所述基带处理器302,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述应用处理器预先通知所述基带处理器进行处理的任务;
所述基带处理器302,用于若判断结果为所述任务是所述应用的托管任务,则调用并执行所述任务对应的托管代码。
在智能设备中,应用处理器负责会话层以上的事务,通常负责应用的运行和具体任务的处理;而基带处理器负责传输层以下的事务,比如数据的收发,在本发明实施例提供的任务处理方法中,将应用对应的部分任务设定为托管任务,该托管任务可以由基带处理器直接处理,当应用处理器处于休眠状态时,若基带处理器判断出生成的任务为托管任务,则直接进行处理,不需要唤醒应用处理器,从而减少本次任务处理过程中应用处理器的功耗,由于应用处理器在处理任务的过程中需要唤醒设备的全部功能,而基带处理器在工作时仅需要处理网络通讯功能,因此,基带处理器的功耗较比应用处理器低很多,通过本发明实施例所示的方法,将原本由应用处理器和基带处理器协作的任务处理流
程简化为由基带处理器单独处理,可以极大的减少任务处理过程中的设备功耗,提高功耗控制的效果。
综上所述,本发明实施例提供的智能设备,通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
请参考图4,其示出了本发明另一实施例提供的智能设备的框图,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该智能设备400可以包括:总线401,以及连接到所述总线的基带处理器402、应用处理器403、存储器404、发射器405和接收器406。其中,所述存储器404用于存储若干个指令,所述若干个指令被配置成由所述基带处理器402和所述应用处理器403执行;
所述基带处理器402,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;
所述基带处理器402,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述应用处理器预先通知所述基带处理器进行处理的任务;
所述基带处理器402,用于若判断结果为所述任务是所述应用的托管任务,则调用并执行所述任务对应的托管代码。
在智能设备中,应用处理器负责会话层以上的事务,通常负责应用的运行和具体任务的处理;而基带处理器负责传输层以下的事务,比如数据的收发,在本发明实施例提供的任务处理方法中,将应用对应的部分任务设定为托管任务,该托管任务可以由基带处理器直接处理,当应用处理器处于休眠状态时,若基带处理器判断出生成的任务为托管任务,则直接进行处理,不需要唤醒应用处理器,从而减少本次任务处理过程中应用处理器的功耗,由于应用处理器在处理任务的过程中需要唤醒设备的全部功能,而基带处理器在工作时仅需要处理网络通讯功能,因此,基带处理器的功耗较比应用处理器低很多,通过本发明实施例所示的方法,将原本由应用处理器和基带处理器协作的任务处理流
程简化为由基带处理器单独处理,可以极大的减少任务处理过程中的设备功耗,提高功耗控制的效果。
可选的,所述基带处理器402,用于执行如下步骤中的至少一个:
当所述任务触发信息为指示网络可用的信息时,调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;
当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;
当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
其中,基带处理器调用并执行托管代码的具体步骤请参考图2对应的实施例中的描述,此处不再赘述。
可选的,所述基带处理器402,用于在获取任务触发信息之前,接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径,并将所述托管代码对应的任务设置为托管任务。
可选的,所述基带处理器402,用于在获取任务触发信息之前,接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径,并将所述唤醒代码对应的任务设置为唤醒任务。
其中,基带处理器对外提供托管任务和唤醒任务的回调接口,应用通过基带处理器的接口向基带处理器发送托管信息和唤醒信息,以及基带处理器根据应用发送的信息设置托管任务和唤醒任务的步骤请参考图2对应的实施例中的描述,此处不再赘述。
可选的,所述基带处理器402,用于若判断出所述任务不是所述应用的托管任务,则检测所述任务是否为唤醒任务,所述唤醒任务为唤醒所述智能设备中的应用处理器进行处理的任务。
其中,基带处理器对唤醒任务进行处理的步骤请参考图2对应的实施例中的描述,此处不再赘述。
可选的,所述基带处理器402,用于获取所述应用的网络连接记录,根据所述网络连接记录对所述应用的网络任务进行优化。
可选的,所述基带处理器402,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;
和/或,所述基带处理器402,用于当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
其中,基带处理器根据网络连接情况对应用的网络任务进行优化的具体步骤请参考图2对应实施例中的描述,此处不再赘述。
综上所述,本发明实施例提供的智能设备,通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
此外,本发明实施例提供的智能设备,通过基带处理器获取应用的网络连接记录,根据该网络连接记录对该应用的网络任务进行优化,以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗,达到进一步提高功耗控制效果的目的。
请参考图5,其示出了本发明一个实施例提供的任务处理方法的方法流程图,该任务处理方法用于包含应用处理器和基带处理器的智能设备中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该任务处理方法可以包括如下步骤。
步骤502,基带处理器获取任务触发信息,该任务触发信息用于触发该智能设备中的应用对应的任务。
步骤504,该基带处理器判断该任务是否为该应用的托管任务,该托管任务为该智能设备中的应用处理器预先通知该基带处理器进行处理的任务。
步骤506,若判断结果为该任务是该应用的第一类型任务,则该基带处理器调用并执行该任务对应的托管代码。
在智能设备中,应用处理器负责会话层以上的事务,通常负责应用的运行和具体任务的处理;而基带处理器负责传输层以下的事务,比如数据的收发,在本发明实施例提供的任务处理方法中,将应用对应的部分任务设定为托管任务,该托管任务可以由基带处理器直接处理,当应用处理器处于休眠状态时,若基带处理器判断出生成的任务为托管任务,则直接进行处理,不需要唤醒应用处理器,从而减少本次任务处理过程中应用处理器的功耗,由于应用处理器在处理任务的过程中需要唤醒设备的全部功能,而基带处理器在工作时仅需要处理网络通讯功能,因此,基带处理器的功耗较比应用处理器低很多,通过本发明实施例所示的方法,将原本由应用处理器和基带处理器协作的任务处理流程简化为由基带处理器单独处理,可以极大的减少任务处理过程中的设备功耗,提高功耗控制的效果。
综上所述,本发明实施例提供的任务处理方法,通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
请参考图6,其示出了本发明另一实施例提供的任务处理方法的方法流程图,该任务处理方法用于包含应用处理器和基带处理器的智能设备中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该任务处理方法可以包括如下步骤。
步骤602,基带处理器接收应用处理器发送的托管信息和唤醒信息,托管信息中包含有托管代码的调用路径,唤醒信息中包含有唤醒代码的调用路径。
智能设备的功耗主要包括两部分:一部分称为有效功耗,有效功耗主要是处理直接服务类任务所产生的功耗,直接服务类任务是指直接向用户提供服务的任务,比如收发短信、主被动呼叫、即时通讯数据的收发、网页数据的请求与接收等任务;另一部分称为无效功耗,无效功耗主要是处理支撑任务所产生的功耗,此类支撑任务不向用户提供直接服务,而是对直接服务类任务提供支撑,比如,连接或者断开网络、自动登录应用服务器以及通过发送和接收心跳
数据保持与应用服务器之间的连接等。
此外,智能设备中的任务还可以按照处理优先级分为两类:一类是智能设备处于休眠状态时可以不予处理的任务,另一类是智能设备处于休眠状态时也需要处理的任务。
在本发明实施例中,可以针对智能设备中产生无效功耗的支撑任务中,在智能设备处于休眠状态时也需要处理的任务设置托管任务回调接口,典型的,该此类任务可以包括建立网络连接、登录服务器、主动发送心跳数据以及被动发送心跳数据等任务。比如,可以设置的托管任务回调接口可以是建立连接的回调接口、登录服务器的回调接口、被动发送心跳数据的回调接口以及主动发送心跳数据的回调接口等。第三方应用的开发者根据智能设备中预先规定的基托管任务的回调接口,设置对应任务的托管代码。当应用程序在智能设备中成功安装后,智能设备中的应用处理器在首次运行该第三方应用时,若第三方应用需要将预先设置的托管代码对应的任务委托由基带处理器在应用处理器休眠时处理,则应用处理器通过调用基带处理器侧的接口,向基带处理器发送包含有该托管代码的调用路径的托管信息,该调用路径可以是该托管代码的库文件存储路径。其中,该库文件可以是.jar文件或者.so文件。
此外,本发明实施例还针对智能设备中产生有效功耗支撑任务中,在智能设备处于休眠状态时需要处理的任务设置唤醒任务回调接口,典型的,这些产生有效功耗支撑任务中,在智能设备处于休眠状态时需要处理的任务可以包括接收短信或者接受呼叫等。比如,第三方应用的开发者还可以根据智能设备中预先规定的唤醒操作回调接口,对需要由应用处理器进行处理的任务设置唤醒代码。当应用程序在智能设备中成功安装后,智能设备中的应用处理器在首次运行时,通过调用基带处理器侧的接口,向基带处理器发送包含有唤醒代码的调用路径的唤醒信息。同样的,该调用路径可以是该唤醒代码的库文件存储路径,该库文件可以是.jar文件或者.so文件。
以智能设备为智能手机为例,智能手机中预先规定的可委托由基带处理器管理的托管任务可以包括建立网络连接、登录服务器、主动发送心跳数据或者被动发送心跳数据等,需要唤醒应用处理器进行处理的唤醒任务可以包括接收到短信或者接收到呼叫等,这些托管任务回调接口以及唤醒任务回调接口的代码可以如下:
需要说明的是,在本发明实施例中,仅以上述几种托管任务和唤醒任务进行举例说明,在实际应用中,还可以是具体情况将其它种类的任务设置为托管任务或者唤醒任务。本发明实施例对托管任务和唤醒任务的种类不做限定。
步骤604,基带处理器将托管代码对应的任务设置为托管任务,并将唤醒代码对应的任务设置为唤醒任务,托管任务为应用预先通知基带处理器进行处理的任务,唤醒任务为唤醒智能设备中的应用处理器进行处理的任务。
基带处理器将接收到的托管信息对应的任务设置为托管任务,并将接收到的唤醒信息对应的任务设置为唤醒任务。
步骤606,基带处理器获取任务触发信息,该任务触发信息用于触发智能设备中的应用对应的任务。
其中,任务触发信息可以是主动触发应用对应的任务的信息。比如,当智能设备检测出网络由不可用变为可用时,生成用于指示网络可用的任务触发信息,主动触发建立与应用服务器之间的网络连接的任务;当智能设备检测出与应用服务器之间的网络连接建立完成时,生成用于指示连接建立成功的任务触发信息,主动触发登录该应用服务器的任务;登录成功后,当智能设备检测出主动向该应用服务器发送心跳数据的时间点达到时,生成用于指示发送心跳数据的任务触发信息,主动触发向该应用服务器发送心跳数据的任务。
此外,任务触发信息还可以是被动触发应用对应的任务的信息。比如,当智能设备检测出接收到该应用服务器发送的心跳数据时,生成用于指示发送心跳数据的任务触发信息,被动触发向该应用服务器发送心跳数据的任务;或者,智能设备检测出接收到短信或者呼叫时,生成用于指示触发唤醒应用处理器的任务触发信息,被动触发唤醒应用处理器,由应用处理器处理短信或呼叫任务。
步骤608,基带处理器判断该任务是否为该应用的托管任务,若是,进入步骤610,否则,进入步骤612。
当智能设备的应用处理器处于休眠状态时,若基带处理器接收到任务触发信息,可以首先判断该任务触发信息触发的任务是否为托管任务。
步骤610,基带处理器调用并执行该任务对应的托管代码。
若基带处理器判断出该任务触发信息触发的任务是已经设置的托管任务,则可以根据该任务对应的托管代码的调用路径,通过对应的调用接口调用该托管代码并执行。
比如,当该任务触发信息为指示网络可用的信息时,该基带处理器调用并执行某个应用对应的连接建立代码,该连接代码用于建立智能设备与该应用的服务器之间的网络连接;当该任务触发信息为指示该智能设备与该应用的服务器之间的网络连接建立完成的信息时,该基带处理器调用并执行该应用对应的登录代码,该登录代码用于登录该应用的服务器;当该任务触发信息为指示向该应用的服务器发送心跳数据的信息时,该基带处理器调用并执行该应用对应的心跳数据发送代码,该心跳数据发送代码用于向该应用的服务器发送心跳数据。
以应用A成功安装在智能手机中之后,通过基带处理器提供的托管任务回调接口向基带处理器发送托管信息为例。智能手机接入某一个路由器,在该路由器未接入公网之前,路由器仅能实现局域网通讯功能,此时智能手机中的应用A无法登录网络侧的服务器;当该路由器接入公网之后,智能手机的无线接入点没有发生变化,但是可以与公网进行数据交互;当基带处理器获知路由器接入公网(比如,检测到智能手机成功接收到网络侧发送的数据)时,可以通过应用A预先通知的连接建立代码的调用路径,调用并执行onConnect()函数,以建立智能手机与应用A的服务器之间的网络连接。当网络连接建立完成后,基带处理器可以通过应用A预先通知的登录代码的调用路径,调用并执行onRequestLogin(input,output)函数,自动登录应用A的服务器。当智能手机接收到应用A的服务器发送的心跳数据,或者到达向应用A的服务器发送心跳数据的时间点时,基带处理器通过应用A预先通知的心跳数据发送代码的调用路径,调用并执行的onHearBeatTimeReceviced()函数,向应用A的服务器发送心跳数据。
比如,以托管代码包括连接建立代码和登录代码为例,该托管代码可以实
现如下:
步骤612,基带处理器检测该任务是否为唤醒任务,若检测结果为该任务是唤醒任务,则调用并执行该应用对应的唤醒代码。
其中,该唤醒代码用于唤醒该智能设备的应用处理器,并请求该应用处理器处理该唤醒任务。
比如,当智能手机中的应用处理器处于休眠状态,且接收到短信时,基带处理器执行onDataReceived(socket,datas)函数,以唤醒智能手机中的应用处理器来处理该短信。
在实际应用中,还有一些在智能设备处于休眠状态时不需要处理的任务,比如接收即时通讯数据或者网页数据的任务,对于此类任务,基带处理器可以不予处理。
可选的,基带处理器还可以获取某一个应用的网络连接记录,根据该网络连接记录对该应用的网络任务进行优化。
其中,该网络任务为该应用相关的,与网络侧进行交互的任务,比如发送网络请求、收发数据以及建立或者断开连接等。
比如,当该网络任务为断开该智能设备与该应用的服务器之间的连接,且该网络连接记录表示所述连接的已建立时长小于预设阈值时,该基带处理器对该网络任务不予执行。
和/或,当该网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,该基带处理器对该网络任务不予执行。
由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化。以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗。
比如,智能手机运行某一应用时,应用会尝试不断连接服务器,因为同一时间只需要一个与服务器之间的连接,因此,当建立下一个连接时,原来的连接就需要先关闭,然后再发起新的连接请求,如果两个连接的断开和发起的时间相隔太近,并且前一个连接的已建立时长小于2分钟,则可以确定本次断开重连的任务为不必要的任务,可以不予处理。
或者,用户使用智能手机浏览网站时,获取网页上的资源通常是并行的,比如,并行获取同一网页中的多个图片。某一网页对应有10个获取资源的请求,在请求过程中,如果基带处理器发现在当前时刻之前三分钟内发出的连续6个请求都失败,则在网络连接情况没有发生变化的情况下,基带处理器暂不发送剩余的4个请求。
综上所述,本发明实施例提供的任务处理方法,通过基带处理器判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
此外,本发明实施例提供的任务处理方法,通过基带处理器获取应用的网络连接记录,根据该网络连接记录对该应用的网络任务进行优化,以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗,达到进一步提高功耗控制效果的目的。
请参考图7,其示出了本发明一个实施例提供的基带处理器的框,该基带处理器可以用于实现上述图5或图6任一所示的任务处理方法。该基带处理器用于智能设备中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该基带处理器700可以包括:
如上述图1或图2所示的任务处理装置710。
综上所述,本发明实施例提供的基带处理器,通过判断任务触发信息对应的任务是否为应用的托管任务,若是,则该基带处理器直接调用并执行该任务对应的托管代码,以执行该任务,将原本由应用处理器和基带处理器协作的处理流程简化为由基带处理器单独处理,解决了现有技术中智能设备中安装的应用在与服务器保持通信的过程中产生很多需要应用处理器来处理的任务而导致应用处理器被频繁唤醒的问题,达到减少任务处理过程中的设备功耗,提高功耗控制效果的目的。
请参考图8,其示出了本发明一个实施例提供的任务处理方法的方法流程图,该任务处理方法用于包含应用处理器和基带处理器的智能设备中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该任务处理方法可以包括如下步骤。
步骤802,基带处理器获取应用的网络连接记录。
步骤804,基带处理器根据该网络连接记录对该应用的网络任务进行优化。
其中,基带处理器根据网络连接记录对该应用的网络任务进行优化,可以包括:
当该网络任务为断开智能设备与该应用的服务器之间的连接,且该网络连接记录表示该连接的已建立时长小于预设阈值时,该基带处理器对该网络任务不予执行,该智能设备为包含该基带处理器的设备;
当该网络任务为向该应用的服务器发送网络请求,且该网络连接记录表示在以当前时刻定位的历史时间段内向该应用的服务器发送的历史网络请求未接收到响应时,该基带处理器对该网络任务不予执行;
或者,当该网络任务为建立与应用服务器之间的连接时,若该网络连接记录表示智能设备的网络由不可用变化为可用,则立刻执行该网络任务。
其中,该网络任务为该应用相关的,与网络侧进行交互的任务,比如发送网络请求、收发数据以及建立或者断开连接等。
由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化。以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗。
比如,智能手机运行某一应用时,应用会尝试不断连接服务器,因为同一时间只需要一个与服务器之间的连接,因此,当建立下一个连接时,原来的连接就需要先关闭,然后再发起新的连接请求,如果两个连接的断开和发起的时间相隔太近,并且前一个连接的已建立时长小于2分钟,则可以确定本次断开重连的任务为不必要的任务,可以不予处理。
或者,用户使用智能手机浏览网站时,获取网页上的资源通常是并行的,比如,并行获取同一网页中的多个图片。某一网页对应有10个获取资源的请求,在请求过程中,如果基带处理器发现在当前时刻之前三分钟内发出的连续6个请求都失败,则在网络连接情况没有发生变化的情况下,基带处理器暂不发送剩余的4个请求。
或者,智能手机接入某一个路由器,在该路由器未接入公网之前,路由器仅能实现局域网通讯功能,此时智能手机中的应用无法登录网络侧的服务器;当该路由器接入公网之后,智能手机的无线接入点没有发生变化,但是可以与公网进行数据交互;当基带处理器获知路由器接入公网(比如,检测到智能手机成功接收到网络侧发送的数据)时,可以立即建立智能手机与该应用的服务器之间的网络连接,减少业务断连时间。
综上所述,本公开实施例提供的任务处理方法,通过基带处理器获取获取应用的网络连接记录,并根据该网络连接记录对该应用的网络任务进行优化,由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化,从而根据网络连接的情况减少执行不必要的网络任务,减少设备功耗。
请参考图9,其示出了本发明一个实施例提供的任务处理装置的装置结构图,该任务处理装置用于包含智能设备的基带处理器中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该任务处理装置可以包括:
连接记录获取模块910,用于获取所述应用的网络连接记录;
优化模块911,用于根据所述网络连接记录对所述应用的网络任务进行优
化。
可选的,所述优化模块911,包括:第一优化单元911a和/或第二优化单元911b;
所述第一优化单元911a,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;
所述第二优化单元911b,用于当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
其中,该网络任务为该应用相关的,与网络侧进行交互的任务,比如发送网络请求、收发数据以及建立或者断开连接等。
由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化。以便根据网络连接的情况减少执行不必要的网络任务,从而减少设备功耗。
比如,智能手机运行某一应用时,应用会尝试不断连接服务器,因为同一时间只需要一个与服务器之间的连接,因此,当建立下一个连接时,原来的连接就需要先关闭,然后再发起新的连接请求,如果两个连接的断开和发起的时间相隔太近,并且前一个连接的已建立时长小于2分钟,则可以确定本次断开重连的任务为不必要的任务,可以不予处理。
或者,用户使用智能手机浏览网站时,获取网页上的资源通常是并行的,比如,并行获取同一网页中的多个图片。某一网页对应有10个获取资源的请求,在请求过程中,如果基带处理器发现在当前时刻之前三分钟内发出的连续6个请求都失败,则在网络连接情况没有发生变化的情况下,基带处理器暂不发送剩余的4个请求。
或者,智能手机接入某一个路由器,在该路由器未接入公网之前,路由器仅能实现局域网通讯功能,此时智能手机中的应用无法登录网络侧的服务器;当该路由器接入公网之后,智能手机的无线接入点没有发生变化,但是可以与公网进行数据交互;当基带处理器获知路由器接入公网(比如,检测到智能手机成功接收到网络侧发送的数据)时,可以立即建立智能手机与该应用的服务器之间的网络连接,减少业务断连时间。
综上所述,本公开实施例提供的任务处理装置,通过基带处理器获取获取应用的网络连接记录,并根据该网络连接记录对该应用的网络任务进行优化,由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化,从而根据网络连接的情况减少执行不必要的网络任务,减少设备功耗。
请参考图10,其示出了本发明一个实施例提供的基带处理器的框,该基带处理器可以用于实现上述图8所示的任务处理方法。该基带处理器用于智能设备中,该智能设备可以是智能手机、平板电脑、电子书阅读器以及智能可穿戴设备等。该基带处理器1000可以包括:
如上述图9所示的任务处理装置1010。
综上所述,本公开实施例提供的基带处理器,通过获取获取应用的网络连接记录,并根据该网络连接记录对该应用的网络任务进行优化,由于基带处理器主要任务为维护传输层,熟悉网络情况,更易于根据网络情况对网络任务进行优化,从而根据网络连接的情况减少执行不必要的网络任务,减少设备功耗。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (24)
- 一种任务处理装置,其特征在于,用于智能设备的基带处理器中,所述装置包括:触发信息获取模块,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;判断模块,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述智能设备中的应用处理器预先通知所述基带处理器进行处理的任务;第一执行模块,用于若所述判断模块的判断结果为所述任务是所述应用的托管任务,则调用并执行所述任务对应的托管代码。
- 根据权利要求1所述的装置,其特征在于,所述第一执行模块,包括:第一执行单元、第二执行单元或者第三执行单元中的至少一个;所述第一执行单元,用于当所述任务触发信息为指示网络可用的信息时,调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;所述第二执行单元,用于当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;所述第三执行单元,用于当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
- 根据权利要求1或2所述的装置,其特征在于,所述装置还包括:托管信息接收模块,用于在所述获取任务触发信息之前,接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径;第一设置模块,用于将所述托管代码对应的任务设置为托管任务。
- 根据权利要求1至3任一所述的装置,其特征在于,所述装置还包括:检测模块,用于若所述判断模块的判断结果为所述任务不是所述应用的托管任务,则检测所述任务是否为唤醒任务;第二执行模块,用于若所述检测模块的检测结果为所述任务为唤醒任务,则调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
- 根据权利要求4所述的装置,其特征在于,所述装置还包括:唤醒信息接收模块,用于在所述获取任务触发信息之前,接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径;第二设置模块,用于将所述唤醒代码对应的任务设置为唤醒任务。
- 根据权利要求1至5任一所述的装置,其特征在于,所述装置还包括:连接记录获取模块,用于获取所述应用的网络连接记录;优化模块,用于根据所述网络连接记录对所述应用的网络任务进行优化。
- 根据权利要求6所述的装置,其特征在于,所述优化模块,包括:第一优化单元和/或第二优化单元;所述第一优化单元,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;所述第二优化单元,用于当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
- 一种智能设备,其特征在于,所述智能设备包括:总线,以及连接到所述总线的基带处理器、应用处理器、存储器、发射器和接收器。其中,所述存储器用于存储若干个指令,所述若干个指令被配置成由所述基带处理器和所述应用处理器执行;所述基带处理器,用于获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;所述基带处理器,用于判断所述任务是否为所述应用的托管任务,所述托管任务为所述应用处理器预先通知所述基带处理器进行处理的任务;所述基带处理器,用于若判断结果为所述任务是所述应用的托管任务,则 调用并执行所述任务对应的托管代码。
- 根据权利要求8所述的智能设备,其特征在于,所述基带处理器,用于执行如下步骤中的至少一个:当所述任务触发信息为指示网络可用的信息时,调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时,调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
- 根据权利要求8或9所述的智能设备,其特征在于,所述基带处理器,用于在获取任务触发信息之前,接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径,并将所述托管代码对应的任务设置为托管任务。
- 根据权利要求8至10任一所述的智能设备,其特征在于,所述基带处理器,用于若判断出所述任务不是所述应用的托管任务,则检测所述任务是否为唤醒任务,所述唤醒任务为唤醒所述智能设备中的应用处理器进行处理的任务;所述基带处理器,用于若检测出所述任务为唤醒任务,则调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
- 根据权利要求11所述的智能设备,其特征在于,所述基带处理器,用于在获取任务触发信息之前,接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径,并将所述唤醒代码对应的任务设置为唤醒任务。
- 根据权利要求8至11任一所述的智能设备,其特征在于,所述基带处理器,用于获取所述应用的网络连接记录,根据所述网络连接记录对所述应用的网络任务进行优化。
- 根据权利要求13所述的智能设备,其特征在于,所述基带处理器,用于当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,对所述网络任务不予执行;和/或,所述基带处理器,用于当所述网络任务向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,对所述网络任务不予执行。
- 一种任务处理方法,其特征在于,用于包含有基带处理器的智能设备中,所述方法包括:所述基带处理器获取任务触发信息,所述任务触发信息用于触发所述智能设备中的应用对应的任务;所述基带处理器判断所述任务是否为所述应用的托管任务,所述托管任务为所述智能设备中的应用处理器预先通知所述基带处理器进行处理的任务;若判断结果为所述任务是所述应用的托管任务,则所述基带处理器调用并执行所述任务对应的托管代码。
- 根据权利要求15所述的方法,其特征在于,所述基带处理器执行所述任务对应的托管代码,包括以下三种情形中的至少一种:当所述任务触发信息为指示网络可用的信息时,所述基带处理器调用并执行所述应用对应的连接建立代码,所述连接代码用于建立所述智能设备与所述应用的服务器之间的网络连接;当所述任务触发信息为指示所述智能设备与所述应用的服务器之间的网络连接建立完成的信息时,所述基带处理器调用并执行所述应用对应的登录代码,所述登录代码用于登录所述应用的服务器;当所述任务触发信息为指示向所述应用的服务器发送心跳数据的信息时, 所述基带处理器调用并执行所述应用对应的心跳数据发送代码,所述心跳数据发送代码用于向所述应用的服务器发送所述心跳数据。
- 根据权利要求15或16所述的方法,其特征在于,所述方法还包括:在所述获取任务触发信息之前,所述基带处理器接收所述应用处理器发送的托管信息,所述托管信息中包含有所述托管代码的调用路径;所述基带处理器将所述托管代码对应的任务设置为托管任务。
- 根据权利要求15至17任一所述的方法,其特征在于,所述方法还包括:若判断结果为所述任务不是所述应用的托管任务,则所述基带处理器检测所述任务是否为唤醒任务,所述唤醒任务为唤醒所述智能设备中的应用处理器进行处理的任务;若检测结果为所述任务为唤醒任务,则所述基带处理器调用并执行所述任务对应的唤醒代码,所述唤醒代码用于唤醒所述智能设备的应用处理器,并请求所述应用处理器处理所述任务。
- 根据权利要求18所述的方法,其特征在于,所述方法还包括:在所述获取任务触发信息之前,所述基带处理器接收所述应用处理器发送的唤醒信息,所述唤醒信息中包含有所述唤醒代码的调用路径;所述基带处理器将所述唤醒代码对应的任务设置为唤醒任务。
- 根据权利要求15至19任一所述的方法,其特征在于,所述方法还包括:所述基带处理器获取所述应用的网络连接记录;所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化。
- 根据权利要求20所述的方法,其特征在于,所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化,包括:当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,所述基带处理 器对所述网络任务不予执行;和/或,当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,所述基带处理器对所述网络任务不予执行。
- 一种基带处理器,其特征在于,所述基带处理器包括:如权利要求1至7任一所述的任务处理装置。
- 一种任务处理方法,其特征在于,用于包含有基带处理器的智能设备中,所述方法包括:基带处理器获取应用的网络连接记录;所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化。
- 根据权利要求23所述的方法,其特征在于,所述基带处理器根据所述网络连接记录对所述应用的网络任务进行优化,包括:当所述网络任务为断开所述智能设备与所述应用的服务器之间的连接,且所述网络连接记录表示所述连接的已建立时长小于预设阈值时,所述基带处理器对所述网络任务不予执行;和/或,当所述网络任务为向所述应用的服务器发送网络请求,且所述网络连接记录表示在以当前时刻定位的历史时间段内向所述应用的服务器发送的历史网络请求未接收到响应时,所述基带处理器对所述网络任务不予执行。
Priority Applications (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP18211663.2A EP3531676B1 (en) | 2014-11-20 | 2014-11-20 | Task processing apparatus, intelligent device, task processing method, and baseband processor |
ES14906349T ES2725440T3 (es) | 2014-11-20 | 2014-11-20 | Dispositivo de procesamiento de tareas, aparato inteligente, método de procesamiento de tareas y procesador de banda base |
US15/528,290 US10740142B2 (en) | 2014-11-20 | 2014-11-20 | System and method for obtaining task trigger information by a baseband processor of an intelligent device and triggering a hosting task |
PCT/CN2014/091749 WO2016078053A1 (zh) | 2014-11-20 | 2014-11-20 | 任务处理装置、智能设备、任务处理方法及基带处理器 |
EP14906349.7A EP3209005B1 (en) | 2014-11-20 | 2014-11-20 | Task processing device, intelligent apparatus, task processing method and baseband processor |
CN201480071515.9A CN105874773B (zh) | 2014-11-20 | 2014-11-20 | 任务处理装置、智能设备、任务处理方法及基带处理器 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/091749 WO2016078053A1 (zh) | 2014-11-20 | 2014-11-20 | 任务处理装置、智能设备、任务处理方法及基带处理器 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016078053A1 true WO2016078053A1 (zh) | 2016-05-26 |
Family
ID=56013082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/091749 WO2016078053A1 (zh) | 2014-11-20 | 2014-11-20 | 任务处理装置、智能设备、任务处理方法及基带处理器 |
Country Status (5)
Country | Link |
---|---|
US (1) | US10740142B2 (zh) |
EP (2) | EP3209005B1 (zh) |
CN (1) | CN105874773B (zh) |
ES (1) | ES2725440T3 (zh) |
WO (1) | WO2016078053A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506322A (zh) * | 2015-09-08 | 2017-03-15 | 阿里巴巴集团控股有限公司 | 业务功能的实现方法和装置 |
US10228916B2 (en) * | 2016-06-23 | 2019-03-12 | International Business Machines Corporation | Predictive optimization of next task through asset reuse |
US10423215B2 (en) * | 2017-05-15 | 2019-09-24 | Cavium, Llc | Methods and apparatus for adaptive power profiling in a baseband processing system |
CN112162898A (zh) * | 2020-09-07 | 2021-01-01 | 深圳比特微电子科技有限公司 | 算力芯片阵列的状态信息获取系统、方法和虚拟货币矿机 |
EP4210398A1 (en) * | 2021-03-05 | 2023-07-12 | Spotify AB | Systems and methods for communicating with a device in a low power mode |
CN114888804B (zh) * | 2022-05-18 | 2024-03-12 | 深圳鹏行智能研究有限公司 | 基于工作链的机器人控制装置及方法、介质、机器人 |
US11972267B2 (en) * | 2022-10-04 | 2024-04-30 | International Business Machines Corporation | Hibernation of computing device with faulty batteries |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082872A (zh) * | 2011-01-13 | 2011-06-01 | 湖南超视物联智能网络科技有限公司 | 一种手机ap与cp间睡眠唤醒机制 |
CN103092319A (zh) * | 2011-11-07 | 2013-05-08 | 联想(北京)有限公司 | 一种数据处理方法及装置 |
US20130316769A1 (en) * | 2012-05-25 | 2013-11-28 | Samsung Electronics Co. Ltd. | Dormancy mode control method and apparatus of portable terminal |
CN103809727A (zh) * | 2012-11-14 | 2014-05-21 | 重庆重邮信科通信技术有限公司 | 一种移动终端的省电处理方法、系统和移动终端 |
US20140286308A1 (en) * | 2013-03-21 | 2014-09-25 | Samsung Electronics Co., Ltd. | Method and apparatus for supporting multimedia service in electronic device |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7216172B2 (en) * | 2001-09-25 | 2007-05-08 | Webex Communications, Inc. | Systems and methods for establishing quasi-persistent HTTP connections |
US9521625B2 (en) * | 2008-09-15 | 2016-12-13 | Apple Inc. | Electronic devices for receiving pushed data |
US8677074B2 (en) * | 2008-12-15 | 2014-03-18 | Nvidia Corporation | Shared memory access techniques |
CN101771678B (zh) * | 2008-12-31 | 2014-04-16 | 华为技术有限公司 | 一种管理视图及视图触发的方法及装置 |
CN102104667B (zh) * | 2009-12-17 | 2013-10-09 | 深圳富泰宏精密工业有限公司 | 手机及其挂机的方法 |
GB2495025B (en) * | 2010-06-25 | 2018-07-04 | Hewlett Packard Development Co | Providing wakeup logic to awaken an electronic device from a lower power mode |
CN103384992B (zh) * | 2011-06-02 | 2015-11-25 | 华为技术有限公司 | 多处理器架构平台网络防火墙 |
JP5854687B2 (ja) * | 2011-08-03 | 2016-02-09 | 株式会社東芝 | 太陽光発電システム |
US20130331118A1 (en) | 2012-06-10 | 2013-12-12 | Apple Inc. | Performing enhanced background location scans to facilitate location-based geo-fencing |
US9329671B2 (en) * | 2013-01-29 | 2016-05-03 | Nvidia Corporation | Power-efficient inter processor communication scheduling |
US9603086B2 (en) * | 2013-06-07 | 2017-03-21 | Apple Inc. | Smart management of background network connections based on historical data |
-
2014
- 2014-11-20 WO PCT/CN2014/091749 patent/WO2016078053A1/zh active Application Filing
- 2014-11-20 CN CN201480071515.9A patent/CN105874773B/zh active Active
- 2014-11-20 EP EP14906349.7A patent/EP3209005B1/en active Active
- 2014-11-20 ES ES14906349T patent/ES2725440T3/es active Active
- 2014-11-20 US US15/528,290 patent/US10740142B2/en active Active
- 2014-11-20 EP EP18211663.2A patent/EP3531676B1/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082872A (zh) * | 2011-01-13 | 2011-06-01 | 湖南超视物联智能网络科技有限公司 | 一种手机ap与cp间睡眠唤醒机制 |
CN103092319A (zh) * | 2011-11-07 | 2013-05-08 | 联想(北京)有限公司 | 一种数据处理方法及装置 |
US20130316769A1 (en) * | 2012-05-25 | 2013-11-28 | Samsung Electronics Co. Ltd. | Dormancy mode control method and apparatus of portable terminal |
CN103809727A (zh) * | 2012-11-14 | 2014-05-21 | 重庆重邮信科通信技术有限公司 | 一种移动终端的省电处理方法、系统和移动终端 |
US20140286308A1 (en) * | 2013-03-21 | 2014-09-25 | Samsung Electronics Co., Ltd. | Method and apparatus for supporting multimedia service in electronic device |
Also Published As
Publication number | Publication date |
---|---|
US10740142B2 (en) | 2020-08-11 |
US20170329628A1 (en) | 2017-11-16 |
ES2725440T3 (es) | 2019-09-24 |
CN105874773B (zh) | 2020-03-20 |
EP3531676A1 (en) | 2019-08-28 |
EP3209005A1 (en) | 2017-08-23 |
EP3531676B1 (en) | 2021-04-28 |
CN105874773A (zh) | 2016-08-17 |
EP3209005A4 (en) | 2017-11-22 |
EP3209005B1 (en) | 2019-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016078053A1 (zh) | 任务处理装置、智能设备、任务处理方法及基带处理器 | |
US10542122B2 (en) | Event service for local client applications through local server | |
EP2523110B1 (en) | Transferring application state across devices by using checkpoints at which applications can be suspended and resumed | |
CN103051468B (zh) | 网络接口设备的操作系统管理 | |
US11516160B1 (en) | Techniques for efficient messaging client communication by updating user subscription stores based on subscription type and commands | |
EP3547715B1 (en) | Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker | |
JP6517370B2 (ja) | 端末とネットワークデバイスとの間の相互作用のための方法及び端末 | |
US9215654B2 (en) | System wakeup on wireless network messages | |
WO2016058335A1 (zh) | 信号传输的控制方法及装置、电子设备 | |
CN105916100B (zh) | 代理心跳包的方法、装置和通信系统 | |
WO2019205557A1 (zh) | 物联网设备的资源订阅 | |
CN108900370A (zh) | 长连接多重超时判断方法、装置及计算机可读存储介质 | |
WO2015172283A1 (zh) | 一种降低功耗的方法、装置及移动终端 | |
JP6154827B2 (ja) | 無線モバイル装置 | |
WO2022218107A1 (zh) | 数据传输方法、装置、设备及存储介质 | |
TW201839624A (zh) | 信息發送方法、信息顯示方法、終端、伺服器、系統及儲存介質 | |
CA2851514A1 (en) | Event service for local client applications through local server | |
US9930101B2 (en) | Receiving a communication event | |
WO2015103951A1 (zh) | 一种即时应用消息处理方法及调制解调器 | |
WO2021164593A1 (zh) | 数据传输方法及装置 | |
CN105357387B (zh) | 一种唤醒终端的方法、装置及系统 | |
CN105100125A (zh) | 一种虚拟桌面的休眠控制方法、装置及系统 | |
US20160099997A1 (en) | Method and system for managing application data in a communication device | |
US9639137B2 (en) | Control method and electronic device | |
US11653307B2 (en) | Modifying idle mode DRX on wireless devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14906349 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 15528290 Country of ref document: US |
|
REEP | Request for entry into the european phase |
Ref document number: 2014906349 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |