WO2015013874A1 - Power management method and terminal - Google Patents

Power management method and terminal Download PDF

Info

Publication number
WO2015013874A1
WO2015013874A1 PCT/CN2013/080362 CN2013080362W WO2015013874A1 WO 2015013874 A1 WO2015013874 A1 WO 2015013874A1 CN 2013080362 W CN2013080362 W CN 2013080362W WO 2015013874 A1 WO2015013874 A1 WO 2015013874A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
real
power consumption
time
processing
Prior art date
Application number
PCT/CN2013/080362
Other languages
French (fr)
Chinese (zh)
Inventor
钱凯
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to PCT/CN2013/080362 priority Critical patent/WO2015013874A1/en
Publication of WO2015013874A1 publication Critical patent/WO2015013874A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality

Definitions

  • the present invention relates to the field of power management technologies, and in particular, to a power management method and a terminal. Background technique
  • smartphones are often presented to users with the concept of multi-core and large screen.
  • the big screen does give the user a visually pleasing experience, but it also brings problems such as inconvenient one-handed control and excessive power consumption, plus the current mobile phone battery technology (charging time, capacity expansion, etc.)
  • the development of this is also clearly unable to keep up with the rapid pace of the large screen of smart phones.
  • the concept of a split type mobile communication terminal has been proposed, that is, the host and the slave work in cooperation, and are integrated into one by a short-distance wireless communication to satisfy the user's demand for large screen and portability.
  • the host and the slave can only perform simple data synchronization and processing, lacking overall application coordination and efficient power management measures.
  • the degree of integration and integration between the main and sub-machines cannot meet the needs of the users at all.
  • the invention is based on the above problems, and proposes a power management method, which can improve the power management capability between connected terminals and realize the intelligent and continuous process switching between connected terminals to ensure strong practicability and Higher user experience.
  • the present invention provides a power management method for a system including at least two connected terminals, the power management method including: detecting a power consumption condition of a specified terminal in the system; If the situation indicates that the remaining power of the designated terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to the system.
  • the at least one other terminal connected to the designated terminal processes the specified real-time process.
  • the real-time process that the terminal is processing is switched to be connected thereto.
  • the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience.
  • the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch.
  • any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal.” "And "other terminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal”, and the "specified terminal” will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
  • the real-time power consumption is greater than or equal to the preset power consumption, including: the real-time power consumption value of the designated terminal is greater than or equal to a preset power consumption value, and/or the The power consumption of the specified terminal in the preset time period is greater than or equal to the preset power consumption value.
  • the real-time power consumption of the terminal can be indirectly expressed by the real-time power consumption value, or the real-time power consumption of the terminal can be directly expressed by the power consumption value in a period of time.
  • the real-time power consumption value it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal.
  • Detecting the real-time power consumption of the terminal in different ways which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal.
  • the specified real-time process is a process that is the latest in the specified terminal, or a process that has the largest power consumption among all processes running in the designated terminal.
  • the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced.
  • the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally.
  • the method further includes: the designated terminal synchronizing processing progress information corresponding to the specified real-time process to the at least one other terminal, to be processed by the at least one other terminal according to the processing progress The information continues to process the specified real-time process; wherein, when the specified real-time process has a corresponding processed file, and the processed file does not exist in the at least one other terminal, the designated terminal further The processed file is transmitted to the at least one other terminal.
  • the installation program of the game program may be directly used by the current terminal.
  • movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. .
  • the host side switches the video playback process to the slave end processing. If the slave side stores the played video file, the host side synchronizes according to the host side. The video playback progress information continues to play the video. If the video file is not stored on the slave end, the host transmits the video file to the slave, and the slave continues to play the video according to the received video file and the video playback progress information.
  • the method further includes: determining whether the other terminal satisfies processing conditions for the specified real-time process, and if yes, submitting the specified real-time process to the other terminal, otherwise Processing continues by the designated terminal.
  • the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process. Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
  • the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as much as possible. For example, when the host side plays a video, the power is low. If both the slave A and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video.
  • the battery may be set after the power is lower than a certain threshold. , no process switching is performed, to avoid the process switching back and forth between multiple terminals (for example, between child A and child B, due to continuous power drop Low, slave A and slave B will alternate into terminals with higher remaining power, resulting in repeated switching of the process).
  • the method further includes: if the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the designated terminal, the designated terminal causes the communication module to continue
  • the communication module of the designated terminal decodes the received downlink communication signal, transmits the received downlink communication signal to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
  • the communication process such as call, short message, Internet data transmission and reception, etc.
  • the communication module since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules.
  • the communication process is switched. If the communication module is not available in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the current terminal and other terminals are further realized by means of data transmission.
  • the interaction between the other terminals causes the other terminals to interact with the base station indirectly.
  • the current terminal i.e., the designated terminal
  • the slave side still maintains the communication module in operation, it saves power consumption of the screen, speaker, microphone, and the like of the current terminal.
  • the slave side if the slave side does not have a communication module and the user chooses to use the slave side to process the call process, the slave side can process the call process by using the communication module on the host side.
  • the present invention also provides a terminal, which is connected to at least one other terminal, and the terminal includes: a power detecting unit, configured to detect a power consumption of the terminal; and a processing unit, configured to indicate, in the power consumption situation When the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the terminal terminates processing the real-time process specified in the terminal; the information synchronization unit, the designation The information of the real-time process is synchronized to at least one of the other terminals to switch to processing the specified real-time process by at least one of the other terminals.
  • the real-time process that the terminal is processing is switched to be connected thereto.
  • the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience.
  • the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch.
  • the process when the process is switched, the user can be prompted, for example, "The process will switch to the processing in the slave".
  • the user can also select (by setting the selection criteria at the time of switching or by real-time selection), the process is switched to the designated slave for processing.
  • "host" and "slave” are only conceptual differences. You can specify one of the multiple connected terminals as the "host” and the rest of the terminals as the "slave”. At the same time, you can also specify the current user. The "host” is used, and the rest of the terminals are "slave". It can be seen that the concept of "host” and "slave” can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
  • any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal.””And"otherterminals” are actually opposite.
  • the identity will be converted to "specified terminal", and the "specified terminal” will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
  • the real-time power consumption is greater than or equal to the preset power consumption, including: the real-time power consumption value of the terminal is greater than or equal to a preset power consumption value, and/or the terminal The amount of power consumption in the preset time period is greater than or equal to the preset power consumption amount.
  • the real-time power consumption of the terminal can be indirectly expressed by the real-time power consumption value, or the real-time power consumption of the terminal can be directly expressed by the power consumption value in a period of time.
  • the real-time power consumption value it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal.
  • Detecting the real-time power consumption of the terminal in different ways which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal.
  • the specified real-time process is a process that is the latest in the terminal, or a process that has the largest power consumption among all processes running in the terminal.
  • the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced.
  • the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally.
  • the information synchronization unit is further configured to synchronize processing progress information corresponding to the specified real-time process to the at least one other terminal, to be processed by the at least one other terminal according to the processing
  • the progress information continues to process the specified real-time process;
  • the terminal further includes: a file transfer unit, configured to: when the specified real-time process has a corresponding processed file, and the at least one other terminal does not exist When the file is processed, the processed file is transmitted to the at least one other terminal.
  • the installation program of the game program may be directly used by the current terminal.
  • movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. .
  • the host detects that the power is too low during the video playback, the host will switch the video playback process to the slave, and if the slave stores the played video. If the video file is not stored, the host side transmits the video file to the slave end, and the slave end transmits the video file according to the received video file. The video playback progress information continues to play the video.
  • the method further includes: a determining unit, configured to determine whether the at least one other terminal meets a processing condition for the specified real-time process; wherein, if the determination result is satisfied, The terminal passes the specified real-time process to the other terminal for processing; if the judgment result is not satisfied, the processing unit continues to process the specified real-time process.
  • a determining unit configured to determine whether the at least one other terminal meets a processing condition for the specified real-time process; wherein, if the determination result is satisfied, The terminal passes the specified real-time process to the other terminal for processing; if the judgment result is not satisfied, the processing unit continues to process the specified real-time process.
  • the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process.
  • Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
  • the method further includes: a selecting unit, configured to: when a plurality of the other terminals meet the processing condition at the same time, select a terminal in which the current remaining power is the most and/or the real-time power consumption is the least, Used to process the specified real-time process.
  • the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as low as possible. For example, when the host side plays a video, the power is low. If both the slave A and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video. Certainly, since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold.
  • the process switching is no longer performed, to avoid the process switching back and forth between multiple terminals (for example, between the slave A and the slave B, since the power is continuously reduced, the slave A and the slave B will alternately become the remaining power.
  • the terminal which causes repeated switching of the process).
  • the method further includes: a function module management unit, when the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, the terminal is configured The communication module continues to operate, wherein the communication module of the terminal decodes the received downlink communication signal, transmits it to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
  • a function module management unit when the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, the terminal is configured The communication module continues to operate, wherein the communication module of the terminal decodes the received downlink communication signal, transmits it to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
  • the communication module since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules. Realizing the switching of the communication process; and if there is no communication module in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the data transmission side is The method further implements the interaction between the current terminal and other terminals, so that other terminals indirectly interact with the base station. Although the current terminal (i.e., the designated terminal) still maintains the communication module in operation, it saves power consumption of the screen, speaker, microphone, and the like of the current terminal. Specifically, if there is no communication module on the slave end, and the user chooses to use the slave end to process the call process, the slave end can process the call process by using the communication module on the host side.
  • a program product stored on a non-transitory machine readable medium for power management of a system comprising at least two connected terminals
  • the program product comprising The system executes the following steps: the machine executable instruction: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or real-time power consumption
  • the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
  • a non-volatile machine readable medium storing a program product for power management of a system including at least two connected terminals, the program product comprising for causing a computer system to execute the following The machine executable instruction of the step: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or the real-time power consumption is greater than or When the power consumption is equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
  • a machine readable program the program causing a machine to execute the power management method according to any one of the above aspects.
  • a storage medium storing a machine readable program, wherein the machine readable program causes a machine to execute the power management method according to any one of the technical solutions described above.
  • FIG. 1 shows a flow chart of a power management method in accordance with an embodiment of the present invention
  • FIG. 2 shows a block diagram of a terminal in accordance with an embodiment of the present invention
  • FIG. 3 is a block diagram showing a split type mobile communication terminal according to an embodiment of the present invention.
  • FIG. 4 is a flow chart showing a host side power management method of a split type mobile communication terminal according to an embodiment of the present invention
  • FIG. 5 is a flowchart showing a communication mapping function of a master and a slave of a split type mobile communication terminal according to an embodiment of the present invention
  • 6A to 6C are diagrams showing main and slave process switching of a split type mobile communication terminal according to an embodiment of the present invention.
  • FIG. 7 is a block diagram of a slave and a host of a split type mobile communication terminal according to an embodiment of the present invention
  • FIG. 8 is a flowchart showing a process of a slave of a split type mobile communication terminal according to an embodiment of the present invention.
  • FIG. 9 is a flowchart showing a process of a host of a split type mobile communication terminal according to an embodiment of the present invention.
  • FIG. 10 is a diagram showing a slave of a split type mobile communication terminal received in a call module according to an embodiment of the present invention; Flowchart of processing when low battery alarm;
  • FIG. 11 is a flowchart showing a process of a slave of a split type mobile communication terminal when a sound and video playback module receives a low battery alarm according to an embodiment of the present invention;
  • FIG. 11 is a flowchart showing a process of a slave of a split type mobile communication terminal when a sound and video playback module receives a low battery alarm according to an embodiment of the present invention
  • FIG. 12 is a flowchart showing a process of a slave of a split type mobile communication terminal when a download module receives a low battery alarm according to an embodiment of the present invention
  • Figure 13 is a flow chart showing the processing of a slave of a split type mobile communication terminal when a document editing module receives a low battery alarm according to an embodiment of the present invention.
  • FIG. 1 shows a flow chart of a power management method in accordance with an embodiment of the present invention.
  • a power management method for a system including at least two connected terminals, includes: Step 102: Detecting a power consumption condition of a specified terminal in the system; Step 104: When the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches At least one other terminal connected to the designated terminal in the system processes the specified real-time process.
  • the real-time process that the terminal is processing is switched to be connected thereto.
  • the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience.
  • the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch.
  • the process when the process is switched, the user can be prompted, for example, "The process will switch to the processing in the slave".
  • the user can also select (by setting the selection criteria at the time of switching or by real-time selection), the process is switched to the designated slave for processing.
  • "host" and "slave” are only conceptual differences. You can specify one of the multiple connected terminals as the "host” and the rest of the terminals as the "slave”. At the same time, you can also specify the current user. The "host” is used, and the rest of the terminals are "slave". It can be seen that the concept of "host” and "slave” can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
  • any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal.” "And "other terminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal”, and the "specified terminal” will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
  • the real-time power consumption is greater than or equal to the preset power consumption, including:
  • the real-time power consumption value of the designated terminal is greater than or equal to the preset power consumption value, and/or the power consumption amount of the designated terminal within the preset time period is greater than or equal to the preset power consumption value.
  • the real-time power consumption of the terminal can be indirectly expressed by the real-time power consumption value, or the real-time power consumption of the terminal can be directly expressed by the power consumption value in a period of time.
  • the real-time power consumption value it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal.
  • Detecting the real-time power consumption of the terminal in different ways which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal.
  • the specified real-time process is a process that is the latest in the specified terminal, or a process that has the largest power consumption among all processes running in the designated terminal.
  • the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced.
  • the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally.
  • the method further includes: the designated terminal synchronizing processing progress information corresponding to the specified real-time process to the at least one other terminal, to be processed by the at least one other terminal according to the processing progress The information continues to process the specified real-time process; wherein, when the specified real-time process has a corresponding processed file, and the processed file does not exist in the at least one other terminal, the designated terminal further The processed file is transmitted to the at least one other terminal.
  • the installation program of the game program may be directly used by the current terminal.
  • movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. .
  • the host side switches the video playback process to the slave end processing. If the slave side stores the played video file, the host side synchronizes according to the host side.
  • the video playback progress information continues to play the video, if the slave end does not store the video
  • the host side transmits the video file to the slave end, and the slave end continues to play the video according to the received video file and the video playback progress information.
  • the method further includes: determining whether the other terminal satisfies processing conditions for the specified real-time process, and if yes, submitting the specified real-time process to the other terminal, otherwise Processing continues by the designated terminal.
  • the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process.
  • Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
  • the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as much as possible. For example, when the host side plays a video, the power is low. If both the handset and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video.
  • the battery since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold.
  • the process switching is no longer performed, to avoid the process switching back and forth between multiple terminals (for example, between the slave A and the slave B, since the power is continuously reduced, the slave A and the slave B will alternately become the remaining power.
  • the terminal which causes repeated switching of the process).
  • the method further includes: if the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the designated terminal, the designated terminal causes the communication module to continue
  • the communication module of the designated terminal decodes the received downlink communication signal, transmits the received downlink communication signal to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
  • the communication process such as call, short message, Internet data transmission and reception, etc.
  • the communication module since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules.
  • the communication process is switched. If the communication module is not available in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the current terminal and other terminals are further realized by means of data transmission.
  • the interaction between the other terminals causes the other terminals to interact with the base station indirectly.
  • the current terminal ie, the designated terminal
  • the festival The power consumption of the screen, speaker, microphone, and other components of the current terminal is saved.
  • the slave end can process the call process by using the communication module on the host side.
  • Figure 2 shows a block diagram of a terminal in accordance with an embodiment of the present invention.
  • the terminal 200 of the embodiment of the present invention is connected to at least one other terminal, and the terminal 200 includes: a power detecting unit 202, configured to detect a power consumption situation of the terminal; When the power consumption condition indicates that the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the terminal terminates processing the specified in the terminal.
  • the real-time process; the information synchronization unit 206 synchronizes the information of the specified real-time process to at least one of the other terminals to switch to processing the specified real-time process by at least one of the other terminals.
  • the real-time process that the terminal is processing is switched to be connected thereto.
  • the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience.
  • the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch.
  • the process when the process is switched, the user can be prompted, for example, "The process will switch to the processing in the slave".
  • the user can also select (by setting the selection criteria at the time of switching or by real-time selection), the process is switched to the designated slave for processing.
  • "host" and "slave” are only conceptual differences. You can specify one of the multiple connected terminals as the "host” and the rest of the terminals as the "slave”. At the same time, you can also specify the current user. The "host” is used, and the rest of the terminals are "slave". It can be seen that the concept of "host” and "slave” can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
  • any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal.” "And "other terminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal”, and the "specified terminal” will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
  • the real-time power consumption is greater than or equal to the preset power consumption, including: the real-time power consumption value of the terminal is greater than or equal to a preset power consumption value, and/or the terminal The amount of power consumption in the preset time period is greater than or equal to the preset power consumption amount.
  • the real-time power consumption of the terminal may be indirectly represented by the real-time power consumption value, or the real-time power consumption of the terminal may be directly represented by the power consumption value within a period of time.
  • the real-time power consumption value it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal.
  • the specified real-time process is a process that is the latest in the terminal, or a process that has the largest power consumption among all processes that are running in the terminal.
  • the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced.
  • the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally.
  • the information synchronization unit 206 is further configured to synchronize processing progress information corresponding to the specified real-time process to the at least one other terminal, to be used by the at least one other terminal according to the The processing progress information continues to process the specified real-time process; the terminal 200 further includes: a file transmission unit 208, configured to: when the specified real-time process has a corresponding processed file, and the at least one other terminal does not exist When the file is processed, the processed file is transmitted to the at least one other terminal.
  • the installation program of the game program may be directly used by the current terminal.
  • movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. .
  • the host side switches the video playback process to the slave end processing. If the slave side stores the played video file, the host side synchronizes according to the host side. The video playback progress information continues to play the video. If the video file is not stored on the slave end, the host transmits the video file to the slave, and the slave continues to play the video according to the received video file and the video playback progress information.
  • the method further includes: a determining unit 210, configured to determine whether the at least one other terminal satisfies a processing condition for the specified real-time process; wherein, if the determination result is satisfied, The terminal forwards the specified real-time process to the other terminal; if the determination result is not satisfied, the processing unit 204 continues to process the specified real-time process.
  • a determining unit 210 configured to determine whether the at least one other terminal satisfies a processing condition for the specified real-time process; wherein, if the determination result is satisfied, The terminal forwards the specified real-time process to the other terminal; if the determination result is not satisfied, the processing unit 204 continues to process the specified real-time process.
  • the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process.
  • Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
  • the terminal blindly switches the real-time process to other terminals, and other terminals cannot handle the situation. For example, other terminals do not have corresponding processing modules and cannot respond, or other terminals are low in power and cannot be processed normally (may be in the process Power down) The process.
  • the user has a tendency to use for different processes, for example, a terminal with a large screen and a strong processing capability runs a game, a movie, etc. A process with high requirements is required, and a terminal with a large battery capacity and a small size is required to run a communication process, etc., so that the most matching terminal can be determined for processing according to the type of the process that needs to be switched.
  • the method further includes: a selecting unit 212, configured to select, when the plurality of the other terminals meet the processing condition, select a terminal in which the current remaining power is the largest and/or the real-time power consumption is the least , for processing the specified real-time process.
  • a selecting unit 212 configured to select, when the plurality of the other terminals meet the processing condition, select a terminal in which the current remaining power is the largest and/or the real-time power consumption is the least , for processing the specified real-time process.
  • the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as low as possible. For example, when the host side plays a video, the power is low. If both the slave A and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video. Certainly, since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold.
  • the process switching is no longer performed, to avoid the process switching back and forth between multiple terminals (for example, between the slave A and the slave B, since the power is continuously reduced, the slave A and the slave B will alternately become the remaining power.
  • the terminal which causes repeated switching of the process).
  • the method further includes: a function module management unit 214, when the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, The communication module of the terminal continues to operate, wherein the communication module of the terminal decodes the received downlink communication signal, transmits the result to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
  • a function module management unit 214 when the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, The communication module of the terminal continues to operate, wherein the communication module of the terminal decodes the received downlink communication signal, transmits the result to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
  • the communication process such as call, short message, Internet data transmission and reception, etc.
  • the communication module since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules.
  • the communication process is switched. If the communication module is not available in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the current terminal and other terminals are further realized by means of data transmission.
  • the interaction between the other terminals causes the other terminals to interact with the base station indirectly.
  • the current terminal i.e., the designated terminal
  • the slave side still maintains the communication module in operation, it saves power consumption of the screen, speaker, microphone, and the like of the current terminal.
  • the slave side if the slave side does not have a communication module and the user chooses to use the slave side to process the call process, the slave side can process the call process by using the communication module on the host side.
  • FIG. 3 shows a block diagram of a split type mobile communication terminal in accordance with an embodiment of the present invention.
  • a split mobile communication terminal 300 includes a host 302 and a slave 304.
  • the host 302 is mainly used for some powerful arithmetic processing functions.
  • the main constituent modules are a host processing control module 302A (multi-core CPU), a host short-range wireless communication module 302B, and a host power management module 302C.
  • the host processing control module 302A ie, multi-core CPU
  • the host processing control module 302A is mainly used for computing and processing powerful game functions such as games and videos;
  • the short-range wireless communication module 302B of the host can pass short-range wireless communication technologies (such as Bluetooth, IEEE 802.11b, IrDA).
  • Infrared, etc. establishes a direct wireless channel connection with the slave short-range wireless communication module 304B in the slave, and the short-range wireless communication technology can satisfy the host 302 of the split-type mobile communication terminal 300 in terms of communication distance and data transmission bandwidth.
  • the communication function mapping between the sub-machines 304, the application function intelligent switching, and the normal data synchronization requirements; the host power management module 302C can detect the power consumption of the entire host system in real time in addition to the power management function of the traditional host system.
  • the battery power, and the system's power consumption value and current battery power are used as the identifier of the host system sleep and wake-up.
  • the power management module 302C transmits the detected data to the host processing control module 302A in real time, and the host processing control module 302A performs logical judgment.
  • the host processing The control module 302A can let the user select by popping up a selection box on the host screen: The host continues the game, the handset answers the call or the host automatically hangs the game in the background, and the host answers the call.
  • the host When the host is inconvenient to charge (such as on a train), if the battery is below a certain minimum value (such as 5% of the battery), the host performs a low-power warning and intelligently puts some basic application functions (online The use of the call, audio, microblog, etc. is switched to the less-used, fully-powered handset. After the handover is successful, the host enters the sleep standby state, maintaining the basic communication mapping function so that the host can be powered when the handset is too low. Make a call.
  • a certain minimum value such as 5% of the battery
  • the handset 304 of the split mobile communication terminal 300 is mainly used for communication functions and some basic application operation functions (such as Internet access, microblogging, audio, simple games, etc.).
  • the sub-machine processing control module 304D mainly performs the arithmetic processing functions of some simple applications; the protocol conversion module 304C can convert the wireless communication protocol (2G/3G/4G) into a short-range wireless communication protocol, thereby ensuring the wireless of the sub-machine 304.
  • the communication data can be synchronized and mapped to the host 302 in real time; the slave wireless communication module 304A can implement basic call and network (mobile network) functions; the slave power management module 304E is used for power management functions of the conventional slave system.
  • the power consumption of the entire slave system, the battery power, and the power consumption value of the system and the current battery power can be detected in real time as the identifier of the host system sleep and wake-up.
  • the slave 304 enters a sleep state, but keeps the wireless communication module and the short-range wireless communication module running, the host is woken up to start the call mapping function, and the call is continued.
  • FIG. 4 is a flow chart showing a host side power management method of a split type mobile communication terminal according to an embodiment of the present invention.
  • a host-side power management method of a split-type mobile communication terminal includes:
  • Step 402 The host side is running an application process with a large power consumption.
  • Step 404 The host power management module detects the power consumption value and the remaining power of the host in real time.
  • Step 406 The host processing control module performs a logic judgment. Determining whether the remaining power of the host is less than or equal to the preset power, and/or the real-time power consumption of the host is greater than or equal to the preset power consumption, wherein the real-time power consumption of the host is greater than or equal to the preset power consumption, including: The real-time power consumption value of the host is greater than or equal to the preset power consumption value, and/or the power consumption of the host within the preset time period is greater than or equal to the preset power consumption value.
  • Step 408 when the judgment result indicates that the real-time power consumption of the host is greater than or equal to the preset power consumption, step 410 is performed; when the judgment result indicates that the remaining power of the host is less than or equal to the preset power, step 418 is performed, and the result is determined. If it is indicated that the real-time power consumption and the remaining power of the host have not reached the critical condition, the process returns to step 402, and the real-time detection and determination are continued.
  • Step 410 When the judgment result indicates that the real-time power consumption of the host is greater than or equal to the preset power consumption, the host processing control module displays a selection box on the display interface, and the user selects whether to hand over the slave machine to process the real-time process (such as the call process). ).
  • Step 412 If the user selects that the host continues to perform the application with high power consumption, and the slave answers the call, step 416 is performed; otherwise, step 414 is performed.
  • Step 414 The host runs the process with a large power consumption in the background or shuts down, and preferentially processes the session process. After the process is completed, the process proceeds to step 406 to continue the real-time detection.
  • Step 416 After the host switches the real-time process (such as a call process) to the slave machine, if the power consumption value of the host reaches a preset limit, the host closes the process being processed, enters a sleep standby state, and maintains a basic communication mapping function. In case the sub-machine power is too low, the host can perform basic applications (such as call progress).
  • the real-time process such as a call process
  • Step 418 When the battery level of the host is lower than a preset threshold, a low point warning is performed.
  • Step 420 Determine whether the real-time process processed by the host is a basic application process, and if yes, execute step 422; otherwise, perform step 424. Specifically, it can be determined whether the slave can process the real-time process processed by the host, that is, whether the remaining power of the slave is greater than or equal to the preset power, and/or whether the real-time power consumption is less than or equal to the preset power consumption, and whether the configuration is processed. Hardware modules and/or software functions of the real-time process.
  • Step 422 If the real-time process processed by the host is a basic application process, the basic application process is switched to the slave machine for processing.
  • Step 424 After the host switches the process to the slave, the host enters the sleep standby state and maintains the basic communication mapping function.
  • Fig. 5 is a flow chart showing the main body and the slave implementing the communication mapping function in the split type mobile communication terminal according to the embodiment of the present invention.
  • the flow of the communication mapping function implemented by the master and the slave in the split type mobile communication terminal according to the embodiment of the present invention includes:
  • Step 502 the master and slave systems are turned on.
  • Step 504 Turn on each functional module in the main and sub-machines, where the main function includes a short-range wireless communication module of the host, a short-range wireless communication module of the sub-machine, and a wireless communication module of the sub-machine.
  • Step 506 the master and the child machine start the network.
  • Step 508 Determine whether the master and the slave are successfully paired. If yes, execute step 510. Otherwise, perform a jump to step 504.
  • the pairing between the master and the slave is performed by the short-range wireless communication module.
  • Step 510 The protocol conversion module in the slave converts the wireless communication protocol into a short-range wireless communication protocol.
  • Step 514 the wireless communication data is transmitted to the processing control module of the host, and is processed to be called and read by the system.
  • Step 516 Determine whether the wireless communication data is successfully mapped on the host. If yes, execute step 518. If no, go to step 510 to continue the protocol conversion.
  • Step 518 Recall the content of the wireless communication data that is successfully mapped in the host memory.
  • Step 520 Display an intensity indication of the virtual wireless communication signal on the screen of the host, and complete communication mapping between the master and the slave.
  • 6A to 6C are diagrams showing main and slave process switching of a split type mobile communication terminal according to an embodiment of the present invention.
  • the host 602 of the split type mobile communication terminal 600 does not have a wireless communication module, and the slave 604 converts the wireless communication protocol into a short-range wireless communication protocol to the host 602 through the protocol conversion module, so that the child machine 604 will itself
  • the wireless communication signal strength 606 (shown in FIG. 6B) is transmitted by the short-range wireless communication technology to the short-range wireless communication module of the host 602 in real time, and then transmitted to the processing control module of the host, and the wireless communication is added to the operating system of the host.
  • the data is synchronized in real time, the real-time mapping function is displayed, and the mapped value is displayed on the host side in the form of signal strength indication to form a virtual wireless communication signal strength 608.
  • the slave 604 may be in the standby/sleep state shown in FIG. 6A if there is no operation task; and when the host 602 receives a new processing task, as shown in FIG. 6B, for example, detecting Upon a new incoming call, the host 602 detects its own state of charge. When it is detected that the host power 609A of the host 602 is less than or equal to the preset power, a selection box 610 is popped up on the screen interface of the host 602, and the user selects whether to pass the slave 604 to process the real-time process.
  • the power of the slave 604 can be fully utilized, and the user can If "Host is connected to the Internet, the handset answers the call", the host 602 continues to perform the Internet operation, and the handset 604 wakes up from the standby/sleep state to process the call until the call ends.
  • the user can also select "online background, host to answer the call", then the state of the slave 604 is unchanged, and the host 602 directly responds to the incoming call without switching back and forth between the host 602 and the slave 604.
  • the host power 609A is continuously consumed, and when the minimum value is consumed, the low power warning is started, and the ongoing Internet access and the like are intelligently performed. Or the functional operation switches to the slave 604, the slave 604 continues to execute, and the host 604 enters the sleep/standby state to extend the standby time of the host 604.
  • the real-time power consumption of the host 602 or the slave 604 can be detected. Specifically, the real-time consumption speed of the host power 609A or the child power 609B (the power consumption per unit time), and the real-time power consumption value of the host 602 or the slave 604 (the greater the power consumption value, the corresponding power consumption Big) Wait a minute.
  • the process in which the host of the communication module is not configured to communicate by the communication module configured in the slave is actually performed.
  • the slave is inconvenient to perform the communication process, such as low power, small screen, and other processes, it can be switched to the host to perform the communication process.
  • the slave keeps the communication module in working state, performs data communication with the outside, and the host receives the external communication data transmitted by the slave, and transmits the data to be transmitted to the communication module of the slave, and is forwarded by the communication module of the slave to Destination device.
  • the communication module of the slave is in working state, since it does not need to use the screen, speaker and other devices of the slave, it can still reduce the power consumption, which is beneficial to ensure that the slave is in a working state for a long time, and fully utilize the power of the host. .
  • the slave can directly respond to the communication event; and when the remaining power of the slave is low or the real-time power consumption is large, the slave determines whether to switch to the host for response and operating.
  • any terminal may switch processes to other terminals, and may also accept other The process that the terminal switches over, the so-called "host” and "slave” are actually relative.
  • the identity will be converted to "host” and "host”.
  • the power status is ideal, it is also possible to convert the identity to "slave”.
  • FIG. 7 is a block diagram showing a slave and a host of a split type mobile communication terminal according to an embodiment of the present invention.
  • the slave 704 of the split mobile communication terminal is connected to the host 702 via Bluetooth, and the host daemon 702A in the host monitors the process in the slave to call 704A, play the audio and video file 704B, download the file 704C, and edit the document.
  • the signal of 704D or the like when the Bluetooth sub-machine 704 has a low-battery alarm, prompts the user to select whether to end the process or switch to the host for processing.
  • the user can quickly switch between the Bluetooth slave and the Bluetooth host by simply clicking the menu button, which realizes the integration between the Bluetooth host and the Bluetooth slave, and improves the user's experience.
  • FIG. 8 is a flowchart showing the processing of a child machine of a split type mobile communication terminal according to an embodiment of the present invention. As shown in FIG. 8, the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention includes:
  • Step 802 each module in the slave works normally.
  • Step 804 the slave detects in real time whether each module (such as the sub-phone service module, the sub-player audio and video module, the sub-machine download file module, the sub-machine editing document module, etc. shown in FIG. 8) has a low-power alarm signal.
  • each module such as the sub-phone service module, the sub-player audio and video module, the sub-machine download file module, the sub-machine editing document module, etc. shown in FIG. 8 has a low-power alarm signal.
  • FIG. 9 is a flowchart showing the processing of a host of a split type mobile communication terminal according to an embodiment of the present invention. As shown in FIG. 9, the processing flow of the host of the split type mobile communication terminal according to the embodiment of the present invention includes:
  • Step 902 The host starts the daemon to monitor the control signal sent by the slave.
  • Step 904 after receiving the signal sent by the slave, interpreting the signal and performing related switching processing. Specifically, the corresponding process is handled for different processes.
  • Fig. 10 is a flow chart showing the processing of the slave of the split type mobile communication terminal when the call module receives a low battery alarm according to an embodiment of the present invention.
  • the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention when the call module receives the low battery alarm includes:
  • Step 1002 the Bluetooth slave phone is in a call.
  • Step 1004 the Bluetooth slave determines whether there is a low battery alarm signal, and if so, performs the step 1006, if not, then go to step 1002 to continue the detection and determination.
  • Step 1006 The Bluetooth slave determines whether the user chooses to switch to the host to answer the call. If not, step 1008 is performed. If the user selects to switch, step 1010 is performed.
  • Step 1008 when the user chooses not to switch to the host to answer the call, hang up the call.
  • Step 1010 When the user selects to switch to the host to answer the call, the slave sends a low power alarm signal to the host.
  • Step 1012 The host receives the low power alarm signal sent by the slave.
  • Step 1014 the host audio system switches the audio channel to prepare to answer the call.
  • step 1016 the host continues to talk.
  • Figure 11 is a flow chart showing the processing of the slave of the split type mobile communication terminal when the audio and video playback module receives a low battery alarm according to an embodiment of the present invention.
  • the processing flow of the slave of the mobile communication terminal according to the embodiment of the present invention when the audio and video playback module receives the low battery alarm includes:
  • Step 1102 The Bluetooth slave plays an audio and video file.
  • Step 1104 the Bluetooth slave determines whether there is a low battery alarm signal, and if so, performs the step
  • step 1106 if not, then jump to step 1102 to continue the detection and determination.
  • Step 1106 The Bluetooth slave determines whether the user chooses to switch to the host to play the audio and video files. If not, step 1108 is performed. If the user selects to switch, step 1110 is performed.
  • Step 1108 When the user selects not to switch to the host to play the audio and video files, the audio and video files are stopped.
  • Step 1110 When the user selects to switch to the host to play the audio and video files, the slave sends a low power alarm signal to the host.
  • Step 1112 The host receives the low power alarm signal sent by the slave.
  • Step 1114 The host side determines whether the audio and video file exists in the host. If yes, step 1118 is performed. If not, step 1116 is performed.
  • step 1116 the slave copies the audio and video files to the host.
  • Step 1118 call up the host player, locate the original playback position, and continue playing.
  • Fig. 12 is a flow chart showing the processing of the slave of the split type mobile communication terminal when the download module receives a low battery alarm according to an embodiment of the present invention.
  • the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention when the download module receives the low battery alarm includes:
  • step 1202 the Bluetooth slave is downloading the file.
  • step 1204 the Bluetooth slave determines whether there is a low battery alarm signal. If yes, step 1206 is performed. If not, the process proceeds to step 1202 to continue the detection and determination.
  • Step 1206 The Bluetooth slave determines whether the user chooses to switch to the host to continue downloading the file. If not, step 1208 is performed. If the user selects to switch, step 1210 is performed.
  • Step 1208 when the user chooses not to switch to the host to continue downloading the file, stop downloading the file.
  • Step 1210 When the user selects to switch to the host to continue downloading the file, the slave sends a low power alarm signal to the host.
  • step 1212 the host receives the low power alarm signal sent by the slave.
  • step 1214 The host side determines whether the downloaded file exists in the host. If yes, step 1218 is performed. If not, step 1216 is performed.
  • step 1216 the original downloaded file of the child machine is copied to the host file system.
  • step 1218 the file continues to be downloaded from the host.
  • Figure 13 is a flow chart showing the processing of a slave of a split type mobile communication terminal when a document editing module receives a low battery alarm according to an embodiment of the present invention.
  • the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention when the document editing module receives the low battery alarm includes:
  • step 1302 the Bluetooth slave is editing the document.
  • Step 1304 The Bluetooth slave determines whether there is a low battery alarm signal. If yes, perform the step.
  • step 1306 if not, then jump to step 1302 to continue the detection and determination.
  • Step 1306 The Bluetooth slave determines whether the user chooses to switch to the host to continue editing the document. If not, step 1308 is performed. If the user selects to switch, step 1310 is performed.
  • Step 1308 When the user chooses not to switch to the host to continue editing the document, the slave saves the document and closes.
  • Step 1310 When the user selects to switch to the host to continue editing the document, the slave sends a low power alarm signal to the host.
  • Step 1312 The host receives the low power alarm signal sent by the slave.
  • Step 1314 The host performs a judgment on whether the edited document exists in the host. If yes, step 1318 is performed. If not, step 1316 is performed.
  • step 1316 the document that the child machine originally edited is copied to the host file system.
  • step 1318 the document continues to be edited in the host.
  • a program product stored on a non-transitory machine readable medium for power management of a system comprising at least two connected terminals
  • the program product comprising The system executes the following steps: the machine executable instruction: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or real-time power consumption
  • the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
  • a non-volatile machine readable medium storing a program product for power management of a system including at least two connected terminals, the program product comprising for causing a computer system to execute the following The machine executable instruction of the step: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or the real-time power consumption is greater than or When the power consumption is equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
  • a machine readable program the program causing a machine to execute the power management method according to any one of the technical solutions described above.
  • a storage medium storing a machine readable program, wherein the machine readable program causes a machine to execute the power management method according to any one of the technical solutions described above.
  • the present invention provides a power management method, which can improve the power management capability between connected terminals, and realize the intelligent and continuous process switching between connected terminals to ensure strong practicability and high user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

Provided is a power management method, which is used for a system comprising at least two connected terminals. The power management method comprises: detecting an electricity quantity consumption condition of a designated terminal in the system; and when the electricity quantity consumption condition indicates that the dump energy of the designated terminal is greater than or equal to a preset electricity quantity, and/or the real-time electricity quantity consumption amount is greater than or equal to a preset electricity quantity consumption amount, the designated terminal stopping processing a designated real-time process, and switching to at least one of the other terminals connected to the designated terminal in the system to process the designated real-time process. Also provided is a terminal. By means of the technical solution of the present invention, the power management capability among connected terminals can be improved, and the intelligence and the continuity of process switching among connected terminals are realized, so as to guarantee better practicability and a higher degree of user experience.

Description

说 明 书 电源管理方法和终端  Description Power management method and terminal
技术领域  Technical field
本发明涉及电源管理技术领域, 具体而言, 涉及一种电源管理方法和一种终端。 背景技术  The present invention relates to the field of power management technologies, and in particular, to a power management method and a terminal. Background technique
目前, 智能手机多以多核、 大屏的概念展现给用户。 大屏幕确实给用户带来了视 觉方面的美好体验, 但随之也带来了单手操控不便, 功耗过大等方面的问题, 再加上 目前手机电池技术 (充电时间、 容量扩展等) 的发展也明显跟不上智能手机大屏化的 快捷步伐。  At present, smartphones are often presented to users with the concept of multi-core and large screen. The big screen does give the user a visually pleasing experience, but it also brings problems such as inconvenient one-handed control and excessive power consumption, plus the current mobile phone battery technology (charging time, capacity expansion, etc.) The development of this is also clearly unable to keep up with the rapid pace of the large screen of smart phones.
因此, 单纯的大屏幕并不能给智能终端用户带来更好的体验。 为了能将大屏和操 控便捷、 携带方便相结合, 目前的一大发展趋势是釆用主机、 子机互为配合使用。  Therefore, a simple large screen does not bring a better experience to smart terminal users. In order to combine the large screen with the convenient operation and convenient carrying, the current development trend is to use the host and the sub-machines to cooperate with each other.
现有技术中, 已提出了分体式移动通信终端的概念, 即主机与子机协同工作, 通 过一种短距离无线通信的方式组合成一体, 来满足用户对大屏幕、 便携性的需求。 但 主机与子机仅能进行简单的数据同步和处理, 缺少整体的应用协同和高效的电源管理 措施。 而且, 在使用过程中, 主、 子机之间的结合程度、 一体化程度, 完全不能满足 用户的需求。  In the prior art, the concept of a split type mobile communication terminal has been proposed, that is, the host and the slave work in cooperation, and are integrated into one by a short-distance wireless communication to satisfy the user's demand for large screen and portability. However, the host and the slave can only perform simple data synchronization and processing, lacking overall application coordination and efficient power management measures. Moreover, in the process of use, the degree of integration and integration between the main and sub-machines cannot meet the needs of the users at all.
因此, 如何结合电源管理实现主、 子机之间切换的智能化与连续性, 以及提升 主、 子机之间的电源管理能力成为亟待解决的技术问题。 发明内容  Therefore, how to combine the power management to realize the intelligent and continuous switching between the main and sub-machines, and to improve the power management capability between the main and sub-machines has become a technical problem to be solved urgently. Summary of the invention
本发明正是基于上述问题, 提出了一种电源管理方法, 可以提升相连终端之间的 电源管理能力, 并实现相连终端之间进程切换的智能化与连续性, 以保证较强的实用 性和较高的用户体验度。  The invention is based on the above problems, and proposes a power management method, which can improve the power management capability between connected terminals and realize the intelligent and continuous process switching between connected terminals to ensure strong practicability and Higher user experience.
有鉴于此, 本发明提出了一种电源管理方法, 用于包含至少两个相连终端的系 统, 所述电源管理方法包括: 检测所述系统中的指定终端的电量消耗情况; 当所述电 量消耗情况表明所述指定终端的剩余电量小于或等于预设电量、 和 /或实时耗电量大于 或等于预设耗电量时, 所述指定终端终止处理指定的实时进程, 并切换至所述系统中 与所述指定终端相连的至少一个其他终端对所述指定的实时进程进行处理。  In view of the above, the present invention provides a power management method for a system including at least two connected terminals, the power management method including: detecting a power consumption condition of a specified terminal in the system; If the situation indicates that the remaining power of the designated terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to the system. The at least one other terminal connected to the designated terminal processes the specified real-time process.
在该技术方案中, 通过在终端的剩余电量小于或等于预设电量、 和 /或实时耗电量 大于或等于预设耗电量的情况下, 将终端正在处理的实时进程切换至与之相连的其他 终端中, 可以保证实时进程在不同终端中处理的连续性, 实现了终端之间切换的智能 化, 提升了用户体验。 具体来说, 比如主机在播放视频期间出现低电量报警, 此时, 主机可以关闭视频播放进程, 并将视频切换至与主机相连的子机中继续进行播放, 智 能化地实现了主子机之间进程切换的连续性。 当然, 在进行进程切换时, 可以对用户 给出提示信息, 比如 "该进程将切换至子机中处理" 。 而在子机 (即被作为切换目标 的终端) 数量较多时, 也可以由用户来选择 (可以通过事先设置切换时的选择标准, 也可以通过实时的选择) 将进程切换至指定子机进行处理, 实现了主子机切换的灵活 性。 当然, "主机" 和 "子机" 只是概念上的区别, 可以指定多个相连的终端中的某 个终端为 "主机" , 而其余的终端为 "子机" ; 同时, 也可以指定用户当前使用的为 "主机" , 而其余的终端为 "子机" 。 可见, "主机" 和 "子机" 的概念实际上可以 是相对的, 实际上, 任一终端的进程均可以切换至另一任意终端上继续执行。 In the technical solution, when the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the real-time process that the terminal is processing is switched to be connected thereto. In other terminals, the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience. Specifically, for example, the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch. Of course, when the process is switched, the user can be given a prompt message, such as "The process will switch to the processing in the slave". And in the child machine (that is, as the switching target When there are a large number of terminals, it can also be selected by the user (you can set the selection criteria when switching, or you can select in real time) to switch the process to the specified slave for processing, which realizes the flexibility of master and slave switching. Of course, "host" and "slave" are only conceptual differences. You can specify one of the multiple connected terminals as the "host" and the rest of the terminals as the "slave". At the same time, you can also specify the current user. The "host" is used, and the rest of the terminals are "slave". It can be seen that the concepts of "host" and "slave" can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
需要说明的是, 由于所述系统中的每个终端之间都是平等的, 因此, 任一终端都 可能向其他终端切换进程, 也可能接受其他终端切换过来的进程, 即所谓的 "指定终 端" 和 "其他终端" 实际上是相对的, "其他终端" 的电量降低或电量消耗过快时, 也将转换身份为 "指定终端" , 而 "指定终端" 在一段时间的保持后, 若电量状况理 想, 也可能转换身份为 "其他终端" 。  It should be noted that, since each terminal in the system is equal, any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal." "And "other terminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal", and the "specified terminal" will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
在上述技术方案中, 优选地, 所述实时耗电量大于或等于所述预设耗电量包括: 所述指定终端的实时功耗值大于或等于预设功耗值、 和 /或所述指定终端在预设时间段 内的电量消耗量大于或等于预设电量消耗值。  In the above technical solution, preferably, the real-time power consumption is greater than or equal to the preset power consumption, including: the real-time power consumption value of the designated terminal is greater than or equal to a preset power consumption value, and/or the The power consumption of the specified terminal in the preset time period is greater than or equal to the preset power consumption value.
在该技术方案中, 可以通过实时功耗值间接表示终端的实时耗电量, 也可以通过 一段时间内的电量消耗值直接表示终端的实时耗电量。 对于实时功耗值, 实际上也可 以通过多种方式获取, 比如可以直接检测终端的功耗; 也可以根据终端的 CPU 或内 存占用率来间接计算功耗 (预先存储占用率与功耗之间的转换关系) ; 由于不同的进 程对应于一定的 CPU 或内存占用率, 因而还可以检测终端中实时运行的进程, 转换 为 CPU 或内存占用率, 并进而转换为终端的功耗值。 通过上述不同方式检测终端的 实时耗电情况, 有利于降低检测难度、 提升检测效率和准确度, 从而及时将终端中的 实时进程切换至其他终端, 在短时间内降低终端的功耗, 节省了终端的电量。  In the technical solution, the real-time power consumption of the terminal can be indirectly expressed by the real-time power consumption value, or the real-time power consumption of the terminal can be directly expressed by the power consumption value in a period of time. For the real-time power consumption value, it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal. Detecting the real-time power consumption of the terminal in different ways, which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal.
在上述技术方案中, 优选地, 所述指定的实时进程为所述指定终端中最晚建立的 进程、 或在所述指定终端中正在运行的所有进程中对应的耗电量最大的进程。  In the above technical solution, preferably, the specified real-time process is a process that is the latest in the specified terminal, or a process that has the largest power consumption among all processes running in the designated terminal.
在该技术方案中, 通过将终端中的实时进程切换至其他终端, 减轻了终端处理单 元的负担, 降低了终端的功耗。 具体来说, 如果终端原本在运行过程中, 耗电量处于 无需切换进程的状态下, 而当建立了某个进程后, 使得耗电量增大至需要切换进程, 则这个新建的进程 (即最晚建立的进程) 实际上干扰了终端原本的处理进程 (比如游 戏运行的过程中接收到了打进的电话) , 且会增加主机处理单元的负担以及主机的功 耗, 因而将其切换至其他终端上, 以确保原来的终端正常运行。 或者, 由于终端中运 行的多个进程中, 有些进程需要较大的资源占用率 (如 CPU 或内存占用率) , 比如 手机游戏, 则通过将其切换至其他终端, 从而有助于降低当前终端的耗电量。 当然, 对于当前终端内运行的任意进程, 只要不是其正常运行所必须的系统进程, 都是可以 终止处理并切换至其他终端进行处理的。  In this technical solution, by switching the real-time process in the terminal to other terminals, the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced. Specifically, if the terminal is in the running process, the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally. Or, because some processes running in the terminal require a large resource occupancy rate (such as CPU or memory usage), such as mobile games, by switching to other terminals, it helps to lower the current terminal. Power consumption. Of course, for any process running in the current terminal, as long as it is not the system process necessary for its normal operation, it can terminate the processing and switch to other terminals for processing.
在上述技术方案中, 优选地, 还包括: 所述指定终端将所述指定的实时进程对应 的处理进度信息同步至所述至少一个其他终端, 以由所述至少一个其他终端 据所述 处理进度信息继续处理所述指定的实时进程; 其中, 当所述指定的实时进程存在对应 的被处理文件、 且所述至少一个其他终端中不存在所述被处理文件时, 所述指定终端 还将所述被处理文件传输至所述至少一个其他终端。 在该技术方案中, 对于进程的切换, 一种情况下, 仅保证其能够在其他终端上被 执行, 比如在其他终端上启动同一个游戏应用; 另一种情况下, 由于用户在当前终端 上存在一定的进程信息, 比如游戏已经玩到 "第三关" 或是电影已经看到第 33 分 28 秒, 则通过将实时进程的处理进度信息同步至其他终端, 可以确保其他终端在进程切 换之后, 能够按照原来的进度继续处理, 无需用户手动调整, 提升了用户的体验。 同 时, 由于其他终端中可能不存在当前终端正在处理的文件, 比如没有安装相应的游戏 程序或是不存在播放的电影文件或是文件下载未完成, 则可以由当前终端直接将游戏 程序的安装程序或是电影文件或是临时下载文件传输至其他终端; 对于可以从网络上 获取的文件, 也可以由当前终端将文件名称、 大小等文件信息告知其他终端, 由其他 终端自动从网络上搜索和下载。 具体来说, 如主机端在播放视频期间检测到电量过 低, 此时主机端将视频播放进程切换至子机端处理, 若子机端存储有所播放的视频文 件, 则根据主机端同步过来的视频播放进度信息继续播放视频, 若子机端未存储所述 的视频文件, 则主机端将视频文件传输至子机端, 子机端根据接收到的视频文件以及 视频播放进度信息继续播放视频。 In the above technical solution, preferably, the method further includes: the designated terminal synchronizing processing progress information corresponding to the specified real-time process to the at least one other terminal, to be processed by the at least one other terminal according to the processing progress The information continues to process the specified real-time process; wherein, when the specified real-time process has a corresponding processed file, and the processed file does not exist in the at least one other terminal, the designated terminal further The processed file is transmitted to the at least one other terminal. In this technical solution, for the process switching, in one case, only it can be executed on other terminals, such as starting the same game application on other terminals; in another case, because the user is on the current terminal There is certain process information, such as the game has already played the "third pass" or the movie has seen the 33rd minute and 28 seconds, then by synchronizing the processing progress information of the real-time process to other terminals, it can ensure that other terminals after the process switch , can continue to process according to the original progress, without the need for manual adjustment by the user, improving the user experience. At the same time, since the files currently being processed by the current terminal may not exist in other terminals, for example, the corresponding game program is not installed or the movie file does not exist or the file download is not completed, the installation program of the game program may be directly used by the current terminal. Or movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. . Specifically, if the host detects that the power is too low during the video playback, the host side switches the video playback process to the slave end processing. If the slave side stores the played video file, the host side synchronizes according to the host side. The video playback progress information continues to play the video. If the video file is not stored on the slave end, the host transmits the video file to the slave, and the slave continues to play the video according to the received video file and the video playback progress information.
在上述技术方案中, 优选地, 还包括: 判断所述其他终端是否满足对所述指定的 实时进程的处理条件, 若满足, 则将所述指定的实时进程交由所述其他终端处理, 否 则继续由所述指定终端进行处理。 优选地, 所述处理条件包括以下至少之一或其组 合: 剩余电量大于或等于预设电量、 和 /或实时耗电量小于或等于预设耗电量, 配置有 处理所述实时进程的硬件模块和 /或软件功能, 属于预设的用于处理所述指定的实时进 程的终端。  In the above technical solution, preferably, the method further includes: determining whether the other terminal satisfies processing conditions for the specified real-time process, and if yes, submitting the specified real-time process to the other terminal, otherwise Processing continues by the designated terminal. Preferably, the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process. Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
在该技术方案中, 通过对其他终端是否有处理实时进程的条件进行判断, 可以防 止终端盲目地将实时进程切换至其他终端, 而其他终端无法处理的情况出现, 比如其 他终端不具有相应的处理模块而无法响应, 或是其他终端本身电量低而无法正常处理 (可能在处理过程中掉电) 该进程。 此外, 对于存在多个其他终端的情况下, 由于各 个终端具有不同的特点, 则针对不同的进程, 用户存在使用上的倾向, 比如希望屏幕 大、 处理能力强的终端运行游戏、 电影等对视觉要求高的进程, 希望电池容量大、 体 积小的终端运行通信进程等, 因而可以根据当前需要切换的进程的类型, 确定最匹配 的终端进行处理。  In this technical solution, by judging whether other terminals have the conditions for processing the real-time process, it is possible to prevent the terminal from blindly switching the real-time process to other terminals, and other terminals cannot handle the situation, for example, other terminals do not have corresponding processing. The module is unable to respond, or the other terminal itself is low in power and cannot be processed normally (may be powered down during processing). In addition, in the case where there are multiple other terminals, since each terminal has different characteristics, the user has a tendency to use for different processes, for example, a terminal with a large screen and a strong processing capability runs a game, a movie, etc. A process with high requirements is required, and a terminal with a large battery capacity and a small size is required to run a communication process, etc., so that the most matching terminal can be determined for processing according to the type of the process that needs to be switched.
在上述技术方案中, 优选地, 若同时存在多个所述其他终端满足所述处理条件, 则选择其中当前剩余电量最多和 /或实时耗电量最少的终端, 用于处理所述指定的实时 进程。  In the above technical solution, preferably, if a plurality of the other terminals meet the processing condition at the same time, selecting a terminal in which the current remaining power is the most and/or the real-time power consumption is the least, for processing the specified real-time. process.
在该技术方案中, 通过将实时进程切换至剩余电量最多和 /或实时耗电量最少的终 端, 可以使得所述系统中的所有终端的电量作为一个整体而得以充分利用, 使得所有 终端都可以尽可能地保持在运行状态。 比如主机端在播放视频时出现电量低下, 此时 若子机 A与子机 B都满足对视频播放进程的处理条件 (子机 A的剩余电量多于子机 B ) , 则可以选择剩余电量较多的子机 A 来继续播放视频。 当然, 由于所述系统内的 每个终端都是平等的, 当所有终端或超过预设数量的终端的电量状况都属于能够切换 实时进程的状态时, 则可以设置当电量低于某个阈值后, 则不再执行进程切换, 以避 免进程在多个终端之间来回切换 (比如在子机 A 和子机 B 之间, 由于电量不断降 低, 子机 A 和子机 B 将交替成为剩余电量较高的终端, 从而导致进程的反复切 换) 。 In this technical solution, by switching the real-time process to the terminal with the most remaining power and/or the lowest power consumption in real time, the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as much as possible. For example, when the host side plays a video, the power is low. If both the slave A and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video. Certainly, since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold. , no process switching is performed, to avoid the process switching back and forth between multiple terminals (for example, between child A and child B, due to continuous power drop Low, slave A and slave B will alternate into terminals with higher remaining power, resulting in repeated switching of the process).
在上述技术方案中, 优选地, 还包括: 若所述指定的实时进程为通信进程, 且与 所述指定终端相连的其他终端中未配置通信模块, 则所述指定终端使自身的通信模块 继续运行, 其中, 所述指定终端的通信模块将接收到的下行通信信号解码后传输至所 述其他终端进行处理, 并将接收到来自所述其他终端的上行通信数据编码后发送。  In the above technical solution, preferably, the method further includes: if the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the designated terminal, the designated terminal causes the communication module to continue The communication module of the designated terminal decodes the received downlink communication signal, transmits the received downlink communication signal to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
在该技术方案中, 对于通信进程而言, 比如通话、 短信、 互联网数据收发等, 由 于必须依赖于通信模块进行数据传输, 因而在当前终端与其他终端都具有通信模块的 情况下, 自然能够顺利实现通信进程的切换; 而在其他终端中不具有通信模块的情况 下, 能可以仍由当前终端中的通信模块实现与基站的信息交互, 而通过数据传输的方 式进一步实现当前终端与其他终端之间的交互, 从而使得其他终端间接与基站实现交 互过程。 虽然当前终端 (即所述指定终端) 仍然要将通信模块保持在工作状态, 但节 省了当前终端的屏幕、 扬声器、 话筒等部件的电量消耗。 具体来说, 若子机端没有通 信模块, 而用户选择使用子机端处理通话进程, 则子机端可以通过使用主机端的通信 模块来处理通话进程。  In the technical solution, for the communication process, such as call, short message, Internet data transmission and reception, etc., since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules. The communication process is switched. If the communication module is not available in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the current terminal and other terminals are further realized by means of data transmission. The interaction between the other terminals causes the other terminals to interact with the base station indirectly. Although the current terminal (i.e., the designated terminal) still maintains the communication module in operation, it saves power consumption of the screen, speaker, microphone, and the like of the current terminal. Specifically, if the slave side does not have a communication module and the user chooses to use the slave side to process the call process, the slave side can process the call process by using the communication module on the host side.
本发明还提出了一种终端, 与至少一个其他终端相连, 所述终端包括: 电量检测 单元, 用于检测所述终端的电量消耗情况; 处理单元, 用于在所述电量消耗情况表明 所述终端的剩余电量小于或等于预设电量、 和 /或实时耗电量大于或等于预设耗电量 时, 所述终端终止处理所述终端中指定的实时进程; 信息同步单元, 将所述指定的实 时进程的信息同步至至少一个所述其他终端, 以切换至由至少一个所述其他终端对所 述指定的实时进程进行处理。  The present invention also provides a terminal, which is connected to at least one other terminal, and the terminal includes: a power detecting unit, configured to detect a power consumption of the terminal; and a processing unit, configured to indicate, in the power consumption situation When the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the terminal terminates processing the real-time process specified in the terminal; the information synchronization unit, the designation The information of the real-time process is synchronized to at least one of the other terminals to switch to processing the specified real-time process by at least one of the other terminals.
在该技术方案中, 通过在终端的剩余电量小于或等于预设电量、 和 /或实时耗电量 大于或等于预设耗电量的情况下, 将终端正在处理的实时进程切换至与之相连的其他 终端中, 可以保证实时进程在不同终端中处理的连续性, 实现了终端之间切换的智能 化, 提升了用户体验。 具体来说, 比如主机在播放视频期间出现低电量报警, 此时, 主机可以关闭视频播放进程, 并将视频切换至与主机相连的子机中继续进行播放, 智 能化地实现了主子机之间进程切换的连续性。 当然, 在进行进程切换时, 可以对用户 给出提示信息, 比如 "该进程将切换至子机中处理" 。 而在子机 (即被作为切换目标 的终端) 数量较多时, 也可以由用户来选择 (可以通过事先设置切换时的选择标准, 也可以通过实时的选择) 将进程切换至指定子机进行处理, 实现了主子机切换的灵活 性。 当然, "主机" 和 "子机" 只是概念上的区别, 可以指定多个相连的终端中的某 个终端为 "主机" , 而其余的终端为 "子机" ; 同时, 也可以指定用户当前使用的为 "主机" , 而其余的终端为 "子机" 。 可见, "主机" 和 "子机" 的概念实际上可以 是相对的, 实际上, 任一终端的进程均可以切换至另一任意终端上继续执行。  In the technical solution, when the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the real-time process that the terminal is processing is switched to be connected thereto. In other terminals, the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience. Specifically, for example, the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch. Of course, when the process is switched, the user can be prompted, for example, "The process will switch to the processing in the slave". In the case of a large number of slaves (that is, terminals that are used as handover targets), the user can also select (by setting the selection criteria at the time of switching or by real-time selection), the process is switched to the designated slave for processing. , realizes the flexibility of master and slave switching. Of course, "host" and "slave" are only conceptual differences. You can specify one of the multiple connected terminals as the "host" and the rest of the terminals as the "slave". At the same time, you can also specify the current user. The "host" is used, and the rest of the terminals are "slave". It can be seen that the concept of "host" and "slave" can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
需要说明的是, 由于所述系统中的每个终端之间都是平等的, 因此, 任一终端都 可能向其他终端切换进程, 也可能接受其他终端切换过来的进程, 即所谓的 "指定终 端" 和 "其他终端" 实际上是相对的, "其他终端" 的电量降低或电量消耗过快时, 也将转换身份为 "指定终端" , 而 "指定终端" 在一段时间的保持后, 若电量状况理 想, 也可能转换身份为 "其他终端" 。 在上述技术方案中, 优选地, 所述实时耗电量大于或等于所述预设耗电量包括: 所述终端的实时功耗值大于或等于预设功耗值、 和 /或所述终端在预设时间段内的电量 消耗量大于或等于预设电量消耗量。 It should be noted that, since each terminal in the system is equal, any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal.""And"otherterminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal", and the "specified terminal" will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals". In the above technical solution, preferably, the real-time power consumption is greater than or equal to the preset power consumption, including: the real-time power consumption value of the terminal is greater than or equal to a preset power consumption value, and/or the terminal The amount of power consumption in the preset time period is greater than or equal to the preset power consumption amount.
在该技术方案中, 可以通过实时功耗值间接表示终端的实时耗电量, 也可以通过 一段时间内的电量消耗值直接表示终端的实时耗电量。 对于实时功耗值, 实际上也可 以通过多种方式获取, 比如可以直接检测终端的功耗; 也可以根据终端的 CPU 或内 存占用率来间接计算功耗 (预先存储占用率与功耗之间的转换关系) ; 由于不同的进 程对应于一定的 CPU 或内存占用率, 因而还可以检测终端中实时运行的进程, 转换 为 CPU 或内存占用率, 并进而转换为终端的功耗值。 通过上述不同方式检测终端的 实时耗电情况, 有利于降低检测难度、 提升检测效率和准确度, 从而及时将终端中的 实时进程切换至其他终端, 在短时间内降低终端的功耗, 节省了终端的电量。  In the technical solution, the real-time power consumption of the terminal can be indirectly expressed by the real-time power consumption value, or the real-time power consumption of the terminal can be directly expressed by the power consumption value in a period of time. For the real-time power consumption value, it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal. Detecting the real-time power consumption of the terminal in different ways, which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal.
在上述技术方案中, 优选地, 所述指定的实时进程为所述终端中最晚建立的进 程、 或在所述终端中正在运行的所有进程中对应的耗电量最大的进程。  In the above technical solution, preferably, the specified real-time process is a process that is the latest in the terminal, or a process that has the largest power consumption among all processes running in the terminal.
在该技术方案中, 通过将终端中的实时进程切换至其他终端, 减轻了终端处理单 元的负担, 降低了终端的功耗。 具体来说, 如果终端原本在运行过程中, 耗电量处于 无需切换进程的状态下, 而当建立了某个进程后, 使得耗电量增大至需要切换进程, 则这个新建的进程 (即最晚建立的进程) 实际上干扰了终端原本的处理进程 (比如游 戏运行的过程中接收到了打进的电话) , 且会增加主机处理单元的负担以及主机的功 耗, 因而将其切换至其他终端上, 以确保原来的终端正常运行。 或者, 由于终端中运 行的多个进程中, 有些进程需要较大的资源占用率 (如 CPU 或内存占用率) , 比如 手机游戏, 则通过将其切换至其他终端, 从而有助于降低当前终端的耗电量。 当然, 对于当前终端内运行的任意进程, 只要不是其正常运行所必须的系统进程, 都是可以 终止处理并切换至其他终端进行处理的。  In this technical solution, by switching the real-time process in the terminal to other terminals, the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced. Specifically, if the terminal is in the running process, the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally. Or, because some processes running in the terminal require a large resource occupancy rate (such as CPU or memory usage), such as mobile games, by switching to other terminals, it helps to lower the current terminal. Power consumption. Of course, for any process running in the current terminal, as long as it is not the system process necessary for its normal operation, it can terminate the processing and switch to other terminals for processing.
在上述技术方案中, 优选地, 所述信息同步单元还用于将所述指定的实时进程对 应的处理进度信息同步至所述至少一个其他终端, 以由所述至少一个其他终端根据所 述处理进度信息继续处理所述指定的实时进程; 所述终端还包括: 文件传输单元, 用 于当所述指定的实时进程存在对应的被处理文件、 且所述至少一个其他终端中不存在 所述被处理文件时, 将所述被处理文件传输至所述至少一个其他终端。  In the above technical solution, preferably, the information synchronization unit is further configured to synchronize processing progress information corresponding to the specified real-time process to the at least one other terminal, to be processed by the at least one other terminal according to the processing The progress information continues to process the specified real-time process; the terminal further includes: a file transfer unit, configured to: when the specified real-time process has a corresponding processed file, and the at least one other terminal does not exist When the file is processed, the processed file is transmitted to the at least one other terminal.
在该技术方案中, 对于进程的切换, 一种情况下, 仅保证其能够在其他终端上被 执行, 比如在其他终端上启动同一个游戏应用; 另一种情况下, 由于用户在当前终端 上存在一定的进程信息, 比如游戏已经玩到 "第三关" 或是电影已经看到第 33 分 28 秒, 则通过将实时进程的处理进度信息同步至其他终端, 可以确保其他终端在进程切 换之后, 能够按照原来的进度继续处理, 无需用户手动调整, 提升了用户的体验。 同 时, 由于其他终端中可能不存在当前终端正在处理的文件, 比如没有安装相应的游戏 程序或是不存在播放的电影文件或是文件下载未完成, 则可以由当前终端直接将游戏 程序的安装程序或是电影文件或是临时下载文件传输至其他终端; 对于可以从网络上 获取的文件, 也可以由当前终端将文件名称、 大小等文件信息告知其他终端, 由其他 终端自动从网络上搜索和下载。 具体来说, 如主机端在播放视频期间检测到电量过 低, 此时主机端将视频播放进程切换至子机端处理, 若子机端存储有所播放的视频文 件, 则根据主机端同步过来的视频播放进度信息继续播放视频, 若子机端未存储所述 的视频文件, 则主机端将视频文件传输至子机端, 子机端根据接收到的视频文件以及 视频播放进度信息继续播放视频。 In this technical solution, for the process switching, in one case, only it can be executed on other terminals, such as starting the same game application on other terminals; in another case, because the user is on the current terminal There is certain process information, such as the game has already played the "third pass" or the movie has seen the 33rd minute and 28 seconds, then by synchronizing the processing progress information of the real-time process to other terminals, it can ensure that other terminals after the process switch , can continue to process according to the original progress, without the need for manual adjustment by the user, improving the user experience. At the same time, since the files currently being processed by the current terminal may not exist in other terminals, for example, the corresponding game program is not installed or the movie file does not exist or the file download is not completed, the installation program of the game program may be directly used by the current terminal. Or movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. . Specifically, if the host detects that the power is too low during the video playback, the host will switch the video playback process to the slave, and if the slave stores the played video. If the video file is not stored, the host side transmits the video file to the slave end, and the slave end transmits the video file according to the received video file. The video playback progress information continues to play the video.
在上述技术方案中, 优选地, 还包括: 判断单元, 用于判断所述至少一个其他终 端是否满足对所述指定的实时进程的处理条件; 其中, 在判断结果为满足的情况下, 所述终端将所述指定的实时进程交由所述其他终端处理; 在判断结果为不满足的情况 下, 所述处理单元继续处理所述指定的实时进程。  In the above technical solution, the method further includes: a determining unit, configured to determine whether the at least one other terminal meets a processing condition for the specified real-time process; wherein, if the determination result is satisfied, The terminal passes the specified real-time process to the other terminal for processing; if the judgment result is not satisfied, the processing unit continues to process the specified real-time process.
优选地, 所述处理条件包括以下至少之一或其组合: 剩余电量大于或等于预设电 量、 和 /或实时耗电量小于或等于预设耗电量, 配置有处理所述实时进程的硬件模块和 /或软件功能, 属于预设的用于处理所述指定的实时进程的终端。  Preferably, the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process. Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
在该技术方案中, 通过对其他终端是否有处理实时进程的条件进行判断, 可以防 止终端盲目地将实时进程切换至其他终端, 而其他终端无法处理的情况出现, 比如其 他终端不具有相应的处理模块而无法响应, 或是其他终端本身电量低而无法正常处理 (可能在处理过程中掉电) 该进程。 此外, 对于存在多个其他终端的情况下, 由于各 个终端具有不同的特点, 则针对不同的进程, 用户存在使用上的倾向, 比如希望屏幕 大、 处理能力强的终端运行游戏、 电影等对视觉要求高的进程, 希望电池容量大、 体 积小的终端运行通信进程等, 因而可以根据当前需要切换的进程的类型, 确定最匹配 的终端进行处理。 在上述技术方案中, 优选地, 还包括: 选择单元, 用于在同时存在 多个所述其他终端满足所述处理条件时, 选择其中当前剩余电量最多和 /或实时耗电量 最少的终端, 用于处理所述指定的实时进程。  In this technical solution, by judging whether other terminals have the conditions for processing the real-time process, it is possible to prevent the terminal from blindly switching the real-time process to other terminals, and other terminals cannot handle the situation, for example, other terminals do not have corresponding processing. The module is unable to respond, or the other terminal itself is low in power and cannot be processed normally (may be powered down during processing). In addition, in the case where there are multiple other terminals, since each terminal has different characteristics, the user has a tendency to use for different processes, for example, a terminal with a large screen and a strong processing capability runs a game, a movie, etc. A process with high requirements is required, and a terminal with a large battery capacity and a small size is required to run a communication process, etc., so that the most matching terminal can be determined for processing according to the type of the process that needs to be switched. In the above technical solution, preferably, the method further includes: a selecting unit, configured to: when a plurality of the other terminals meet the processing condition at the same time, select a terminal in which the current remaining power is the most and/or the real-time power consumption is the least, Used to process the specified real-time process.
在该技术方案中, 通过将实时进程切换至剩余电量最多和 /或实时耗电量最少的终 端, 可以使得所述系统中的所有终端的电量作为一个整体而得以充分利用, 使得所有 终端都可以尽可能低保持在运行状态。 比如主机端在播放视频时出现电量低下, 此时 若子机 A与子机 B都满足对视频播放进程的处理条件 (子机 A的剩余电量多于子机 B ) , 则可以选择剩余电量较多的子机 A 来继续播放视频。 当然, 由于所述系统内的 每个终端都是平等的, 当所有终端或超过预设数量的终端的电量状况都属于能够切换 实时进程的状态时, 则可以设置当电量低于某个阈值后, 则不再执行进程切换, 以避 免进程在多个终端之间来回切换 (比如在子机 A 和子机 B 之间, 由于电量不断降 低, 子机 A 和子机 B 将交替成为剩余电量较高的终端, 从而导致进程的反复切 换) 。  In this technical solution, by switching the real-time process to the terminal with the most remaining power and/or the lowest power consumption in real time, the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as low as possible. For example, when the host side plays a video, the power is low. If both the slave A and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video. Certainly, since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold. , the process switching is no longer performed, to avoid the process switching back and forth between multiple terminals (for example, between the slave A and the slave B, since the power is continuously reduced, the slave A and the slave B will alternately become the remaining power. The terminal, which causes repeated switching of the process).
在上述技术方案中, 优选地, 还包括: 功能模块管理单元, 在所述指定的实时进 程为通信进程, 且与所述终端相连的其他终端中未配置通信模块的情况下, 使所述终 端的通信模块继续运行, 其中, 所述终端的通信模块将接收到的下行通信信号解码后 传输至所述其他终端进行处理, 并将接收到来自所述其他终端的上行通信数据编码后 发送。  In the above technical solution, preferably, the method further includes: a function module management unit, when the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, the terminal is configured The communication module continues to operate, wherein the communication module of the terminal decodes the received downlink communication signal, transmits it to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
在该技术方案中, 对于通信进程而言, 比如通话、 短信、 互联网数据收发等, 由 于必须依赖于通信模块进行数据传输, 因而在当前终端与其他终端都具有通信模块的 情况下, 自然能够顺利实现通信进程的切换; 而在其他终端中不具有通信模块的情况 下, 能可以仍由当前终端中的通信模块实现与基站的信息交互, 而通过数据传输的方 式进一步实现当前终端与其他终端之间的交互, 从而使得其他终端间接与基站实现交 互过程。 虽然当前终端 (即所述指定终端) 仍然要将通信模块保持在工作状态, 但节 省了当前终端的屏幕、 扬声器、 话筒等部件的电量消耗。 具体来说, 若子机端没有通 信模块, 而用户选择使用子机端处理通话进程, 则子机端可以通过使用主机端的通信 模块来处理通话进程。 In the technical solution, for the communication process, such as call, short message, Internet data transmission and reception, etc., since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules. Realizing the switching of the communication process; and if there is no communication module in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the data transmission side is The method further implements the interaction between the current terminal and other terminals, so that other terminals indirectly interact with the base station. Although the current terminal (i.e., the designated terminal) still maintains the communication module in operation, it saves power consumption of the screen, speaker, microphone, and the like of the current terminal. Specifically, if there is no communication module on the slave end, and the user chooses to use the slave end to process the call process, the slave end can process the call process by using the communication module on the host side.
根据本发明的实施方式, 还提供了一种存储在非易失性机器可读介质上的程序产 品, 用于包含至少两个相连终端的系统的电源管理, 所述程序产品包括用于使计算机 系统执行以下步骤的机器可执行指令: 检测所述系统中的指定终端的电量消耗情况; 当所述电量消耗情况表明所述指定终端的剩余电量小于或等于预设电量、 和 /或实时耗 电量大于或等于预设耗电量时, 所述指定终端终止处理指定的实时进程, 并切换至所 述系统中与所述指定终端相连的至少一个其他终端对所述指定的实时进程进行处理。  According to an embodiment of the present invention, there is also provided a program product stored on a non-transitory machine readable medium for power management of a system comprising at least two connected terminals, the program product comprising The system executes the following steps: the machine executable instruction: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or real-time power consumption When the quantity is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
根据本发明的实施方式, 还提供了一种非易失机器可读介质, 存储有用于包含至 少两个相连终端的系统的电源管理的程序产品, 所述程序产品包括用于使计算机系统 执行以下步骤的机器可执行指令: 检测所述系统中的指定终端的电量消耗情况; 当所 述电量消耗情况表明所述指定终端的剩余电量小于或等于预设电量、 和 /或实时耗电量 大于或等于预设耗电量时, 所述指定终端终止处理指定的实时进程, 并切换至所述系 统中与所述指定终端相连的至少一个其他终端对所述指定的实时进程进行处理。  According to an embodiment of the present invention, there is also provided a non-volatile machine readable medium storing a program product for power management of a system including at least two connected terminals, the program product comprising for causing a computer system to execute the following The machine executable instruction of the step: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or the real-time power consumption is greater than or When the power consumption is equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
根据本发明的实施方式, 还提供了一种机器可读程序, 所述程序使机器执行如上 所述技术方案中任一所述的电源管理方法。  According to an embodiment of the present invention, there is further provided a machine readable program, the program causing a machine to execute the power management method according to any one of the above aspects.
根据本发明的实施方式, 还提供了一种存储有机器可读程序的存储介质, 其中, 所述机器可读程序使得机器执行如上所述技术方案中任一所述的电源管理方法。  According to an embodiment of the present invention, there is further provided a storage medium storing a machine readable program, wherein the machine readable program causes a machine to execute the power management method according to any one of the technical solutions described above.
通过以上技术方案, 可以提升相连终端之间的电源管理能力, 并实现相连终端之 间进程切换的智能化与连续性, 以保证较强的实用性和较高的用户体验度。 附图说明  Through the above technical solutions, the power management capability between the connected terminals can be improved, and the intelligent and continuous process switching between the connected terminals can be realized, so as to ensure strong practicability and high user experience. DRAWINGS
图 1示出了根据本发明的实施例的电源管理方法的流程图;  1 shows a flow chart of a power management method in accordance with an embodiment of the present invention;
图 2示出了根据本发明的实施例的终端的框图;  2 shows a block diagram of a terminal in accordance with an embodiment of the present invention;
图 3示出了根据本发明的实施例的分体式移动通信终端的模块图;  FIG. 3 is a block diagram showing a split type mobile communication terminal according to an embodiment of the present invention; FIG.
图 4 示出了根据本发明的实施例的分体式移动通信终端的主机端电源管理方法的 流程图;  4 is a flow chart showing a host side power management method of a split type mobile communication terminal according to an embodiment of the present invention;
图 5 示出了根据本发明的实施例的分体式移动通信终端的主、 子机实现通信映射 功能的流程图;  FIG. 5 is a flowchart showing a communication mapping function of a master and a slave of a split type mobile communication terminal according to an embodiment of the present invention; FIG.
图 6A 至图 6C 示出了根据本发明的实施例的分体式移动通信终端的主、 子机进 程切换的示意图;  6A to 6C are diagrams showing main and slave process switching of a split type mobile communication terminal according to an embodiment of the present invention;
图 7示出了根据本发明的实施例的分体式移动通信终端的子机与主机的框架图; 图 8示出了根据本发明的实施例的分体式移动通信终端的子机的处理流程图; 图 9示出了根据本发明的实施例的分体式移动通信终端的主机的处理流程图; 图 10 示出了根据本发明的实施例的分体式移动通信终端的子机在通话模块接到 低电量报警时的处理流程图; 图 1 1 示出了根据本发明的实施例的分体式移动通信终端的子机在音视频播放模 块接到低电量报警时的处理流程图; 7 is a block diagram of a slave and a host of a split type mobile communication terminal according to an embodiment of the present invention; FIG. 8 is a flowchart showing a process of a slave of a split type mobile communication terminal according to an embodiment of the present invention. FIG. 9 is a flowchart showing a process of a host of a split type mobile communication terminal according to an embodiment of the present invention; FIG. 10 is a diagram showing a slave of a split type mobile communication terminal received in a call module according to an embodiment of the present invention; Flowchart of processing when low battery alarm; FIG. 11 is a flowchart showing a process of a slave of a split type mobile communication terminal when a sound and video playback module receives a low battery alarm according to an embodiment of the present invention; FIG.
图 12 示出了根据本发明的实施例的分体式移动通信终端的子机在下载模块接到 低电量报警时的处理流程图;  12 is a flowchart showing a process of a slave of a split type mobile communication terminal when a download module receives a low battery alarm according to an embodiment of the present invention;
图 13 示出了根据本发明的实施例的分体式移动通信终端的子机在文档编辑模块 接到低电量报警时的处理流程图。 具体实施方式  Figure 13 is a flow chart showing the processing of a slave of a split type mobile communication terminal when a document editing module receives a low battery alarm according to an embodiment of the present invention. detailed description
为了能够更清楚地理解本发明的上述目的、 特征和优点, 下面结合附图和具体实 施方式对本发明进行进一步的详细描述。 需要说明的是, 在不冲突的情况下, 本申请 的实施例及实施例中的特征可以相互组合。  The present invention will be further described in detail with reference to the drawings and specific embodiments thereof. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本发明, 但是, 本发明还可 以釆用其他不同于在此描述的其他方式来实施, 因此, 本发明的保护范围并不受下面 公开的具体实施例的限制。  In the following description, numerous specific details are set forth in order to provide a thorough understanding of the invention, but the invention may be practiced in other embodiments other than those described herein. Limitations of specific embodiments.
图 1示出了根据本发明的实施例的电源管理方法的流程图。  FIG. 1 shows a flow chart of a power management method in accordance with an embodiment of the present invention.
如图 1 所示, 根据本发明的实施例的电源管理方法, 用于包含至少两个相连终端 的系统, 包括: 步骤 102 , 检测所述系统中的指定终端的电量消耗情况; 步骤 104 , 当所述电量消耗情况表明所述指定终端的剩余电量小于或等于预设电量、 和 /或实时耗 电量大于或等于预设耗电量时, 所述指定终端终止处理指定的实时进程, 并切换至所 述系统中与所述指定终端相连的至少一个其他终端对所述指定的实时进程进行处理。  As shown in FIG. 1, a power management method according to an embodiment of the present invention, for a system including at least two connected terminals, includes: Step 102: Detecting a power consumption condition of a specified terminal in the system; Step 104: When the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches At least one other terminal connected to the designated terminal in the system processes the specified real-time process.
在该技术方案中, 通过在终端的剩余电量小于或等于预设电量、 和 /或实时耗电量 大于或等于预设耗电量的情况下, 将终端正在处理的实时进程切换至与之相连的其他 终端中, 可以保证实时进程在不同终端中处理的连续性, 实现了终端之间切换的智能 化, 提升了用户体验。 具体来说, 比如主机在播放视频期间出现低电量报警, 此时, 主机可以关闭视频播放进程, 并将视频切换至与主机相连的子机中继续进行播放, 智 能化地实现了主子机之间进程切换的连续性。 当然, 在进行进程切换时, 可以对用户 给出提示信息, 比如 "该进程将切换至子机中处理" 。 而在子机 (即被作为切换目标 的终端) 数量较多时, 也可以由用户来选择 (可以通过事先设置切换时的选择标准, 也可以通过实时的选择) 将进程切换至指定子机进行处理, 实现了主子机切换的灵活 性。 当然, "主机" 和 "子机" 只是概念上的区别, 可以指定多个相连的终端中的某 个终端为 "主机" , 而其余的终端为 "子机" ; 同时, 也可以指定用户当前使用的为 "主机" , 而其余的终端为 "子机" 。 可见, "主机" 和 "子机" 的概念实际上可以 是相对的, 实际上, 任一终端的进程均可以切换至另一任意终端上继续执行。  In the technical solution, when the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the real-time process that the terminal is processing is switched to be connected thereto. In other terminals, the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience. Specifically, for example, the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch. Of course, when the process is switched, the user can be prompted, for example, "The process will switch to the processing in the slave". In the case of a large number of slaves (that is, terminals that are used as handover targets), the user can also select (by setting the selection criteria at the time of switching or by real-time selection), the process is switched to the designated slave for processing. , realizes the flexibility of master and slave switching. Of course, "host" and "slave" are only conceptual differences. You can specify one of the multiple connected terminals as the "host" and the rest of the terminals as the "slave". At the same time, you can also specify the current user. The "host" is used, and the rest of the terminals are "slave". It can be seen that the concept of "host" and "slave" can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
需要说明的是, 由于所述系统中的每个终端之间都是平等的, 因此, 任一终端都 可能向其他终端切换进程, 也可能接受其他终端切换过来的进程, 即所谓的 "指定终 端" 和 "其他终端" 实际上是相对的, "其他终端" 的电量降低或电量消耗过快时, 也将转换身份为 "指定终端" , 而 "指定终端" 在一段时间的保持后, 若电量状况理 想, 也可能转换身份为 "其他终端" 。  It should be noted that, since each terminal in the system is equal, any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal." "And "other terminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal", and the "specified terminal" will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
在上述技术方案中, 优选地, 所述实时耗电量大于或等于所述预设耗电量包括: 所述指定终端的实时功耗值大于或等于预设功耗值、 和 /或所述指定终端在预设时间段 内的电量消耗量大于或等于预设电量消耗值。 In the above technical solution, preferably, the real-time power consumption is greater than or equal to the preset power consumption, including: The real-time power consumption value of the designated terminal is greater than or equal to the preset power consumption value, and/or the power consumption amount of the designated terminal within the preset time period is greater than or equal to the preset power consumption value.
在该技术方案中, 可以通过实时功耗值间接表示终端的实时耗电量, 也可以通过 一段时间内的电量消耗值直接表示终端的实时耗电量。 对于实时功耗值, 实际上也可 以通过多种方式获取, 比如可以直接检测终端的功耗; 也可以根据终端的 CPU 或内 存占用率来间接计算功耗 (预先存储占用率与功耗之间的转换关系) ; 由于不同的进 程对应于一定的 CPU 或内存占用率, 因而还可以检测终端中实时运行的进程, 转换 为 CPU 或内存占用率, 并进而转换为终端的功耗值。 通过上述不同方式检测终端的 实时耗电情况, 有利于降低检测难度、 提升检测效率和准确度, 从而及时将终端中的 实时进程切换至其他终端, 在短时间内降低终端的功耗, 节省了终端的电量。  In the technical solution, the real-time power consumption of the terminal can be indirectly expressed by the real-time power consumption value, or the real-time power consumption of the terminal can be directly expressed by the power consumption value in a period of time. For the real-time power consumption value, it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal. Detecting the real-time power consumption of the terminal in different ways, which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal.
在上述技术方案中, 优选地, 所述指定的实时进程为所述指定终端中最晚建立的 进程、 或在所述指定终端中正在运行的所有进程中对应的耗电量最大的进程。  In the above technical solution, preferably, the specified real-time process is a process that is the latest in the specified terminal, or a process that has the largest power consumption among all processes running in the designated terminal.
在该技术方案中, 通过将终端中的实时进程切换至其他终端, 减轻了终端处理单 元的负担, 降低了终端的功耗。 具体来说, 如果终端原本在运行过程中, 耗电量处于 无需切换进程的状态下, 而当建立了某个进程后, 使得耗电量增大至需要切换进程, 则这个新建的进程 (即最晚建立的进程) 实际上干扰了终端原本的处理进程 (比如游 戏运行的过程中接收到了打进的电话) , 且会增加主机处理单元的负担以及主机的功 耗, 因而将其切换至其他终端上, 以确保原来的终端正常运行。 或者, 由于终端中运 行的多个进程中, 有些进程需要较大的资源占用率 (如 CPU 或内存占用率) , 比如 手机游戏, 则通过将其切换至其他终端, 从而有助于降低当前终端的耗电量。 当然, 对于当前终端内运行的任意进程, 只要不是其正常运行所必须的系统进程, 都是可以 终止处理并切换至其他终端进行处理的。  In this technical solution, by switching the real-time process in the terminal to other terminals, the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced. Specifically, if the terminal is in the running process, the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally. Or, because some processes running in the terminal require a large resource occupancy rate (such as CPU or memory usage), such as mobile games, by switching to other terminals, it helps to lower the current terminal. Power consumption. Of course, for any process running in the current terminal, as long as it is not the system process necessary for its normal operation, it can terminate the processing and switch to other terminals for processing.
在上述技术方案中, 优选地, 还包括: 所述指定终端将所述指定的实时进程对应 的处理进度信息同步至所述至少一个其他终端, 以由所述至少一个其他终端 据所述 处理进度信息继续处理所述指定的实时进程; 其中, 当所述指定的实时进程存在对应 的被处理文件、 且所述至少一个其他终端中不存在所述被处理文件时, 所述指定终端 还将所述被处理文件传输至所述至少一个其他终端。  In the above technical solution, preferably, the method further includes: the designated terminal synchronizing processing progress information corresponding to the specified real-time process to the at least one other terminal, to be processed by the at least one other terminal according to the processing progress The information continues to process the specified real-time process; wherein, when the specified real-time process has a corresponding processed file, and the processed file does not exist in the at least one other terminal, the designated terminal further The processed file is transmitted to the at least one other terminal.
在该技术方案中, 对于进程的切换, 一种情况下, 仅保证其能够在其他终端上被 执行, 比如在其他终端上启动同一个游戏应用; 另一种情况下, 由于用户在当前终端 上存在一定的进程信息, 比如游戏已经玩到 "第三关" 或是电影已经看到第 33 分 28 秒, 则通过将实时进程的处理进度信息同步至其他终端, 可以确保其他终端在进程切 换之后, 能够按照原来的进度继续处理, 无需用户手动调整, 提升了用户的体验。 同 时, 由于其他终端中可能不存在当前终端正在处理的文件, 比如没有安装相应的游戏 程序或是不存在播放的电影文件或是文件下载未完成, 则可以由当前终端直接将游戏 程序的安装程序或是电影文件或是临时下载文件传输至其他终端; 对于可以从网络上 获取的文件, 也可以由当前终端将文件名称、 大小等文件信息告知其他终端, 由其他 终端自动从网络上搜索和下载。 具体来说, 如主机端在播放视频期间检测到电量过 低, 此时主机端将视频播放进程切换至子机端处理, 若子机端存储有所播放的视频文 件, 则根据主机端同步过来的视频播放进度信息继续播放视频, 若子机端未存储所述 的视频文件, 则主机端将视频文件传输至子机端, 子机端根据接收到的视频文件以及 视频播放进度信息继续播放视频。 In this technical solution, for the process switching, in one case, only it can be executed on other terminals, such as starting the same game application on other terminals; in another case, because the user is on the current terminal There is certain process information, such as the game has already played the "third pass" or the movie has seen the 33rd minute and 28 seconds, then by synchronizing the processing progress information of the real-time process to other terminals, it can ensure that other terminals after the process switch , can continue to process according to the original progress, without the need for manual adjustment by the user, improving the user experience. At the same time, since the files currently being processed by the current terminal may not exist in other terminals, for example, the corresponding game program is not installed or the movie file does not exist or the file download is not completed, the installation program of the game program may be directly used by the current terminal. Or movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. . Specifically, if the host detects that the power is too low during the video playback, the host side switches the video playback process to the slave end processing. If the slave side stores the played video file, the host side synchronizes according to the host side. The video playback progress information continues to play the video, if the slave end does not store the video The video file, the host side transmits the video file to the slave end, and the slave end continues to play the video according to the received video file and the video playback progress information.
在上述技术方案中, 优选地, 还包括: 判断所述其他终端是否满足对所述指定的 实时进程的处理条件, 若满足, 则将所述指定的实时进程交由所述其他终端处理, 否 则继续由所述指定终端进行处理。  In the above technical solution, preferably, the method further includes: determining whether the other terminal satisfies processing conditions for the specified real-time process, and if yes, submitting the specified real-time process to the other terminal, otherwise Processing continues by the designated terminal.
优选地, 所述处理条件包括以下至少之一或其组合: 剩余电量大于或等于预设电 量、 和 /或实时耗电量小于或等于预设耗电量, 配置有处理所述实时进程的硬件模块和 /或软件功能, 属于预设的用于处理所述指定的实时进程的终端。  Preferably, the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process. Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
在该技术方案中, 通过对其他终端是否有处理实时进程的条件进行判断, 可以防 止终端盲目地将实时进程切换至其他终端, 而其他终端无法处理的情况出现, 比如其 他终端不具有相应的处理模块而无法响应, 或是其他终端本身电量低而无法正常处理 (可能在处理过程中掉电) 该进程。 此外, 对于存在多个其他终端的情况下, 由于各 个终端具有不同的特点, 则针对不同的进程, 用户存在使用上的倾向, 比如希望屏幕 大、 处理能力强的终端运行游戏、 电影等对视觉要求高的进程, 希望电池容量大、 体 积小的终端运行通信进程等, 因而可以根据当前需要切换的进程的类型, 确定最匹配 的终端进行处理。  In this technical solution, by judging whether other terminals have the conditions for processing the real-time process, it is possible to prevent the terminal from blindly switching the real-time process to other terminals, and other terminals cannot handle the situation, for example, other terminals do not have corresponding processing. The module is unable to respond, or the other terminal itself is low in power and cannot be processed normally (may be powered down during processing). In addition, in the case where there are multiple other terminals, since each terminal has different characteristics, the user has a tendency to use for different processes, for example, a terminal with a large screen and a strong processing capability runs a game, a movie, etc. A process with high requirements is required, and a terminal with a large battery capacity and a small size is required to run a communication process, etc., so that the most matching terminal can be determined for processing according to the type of the process that needs to be switched.
在上述技术方案中, 优选地, 若同时存在多个所述其他终端满足所述处理条件, 则选择其中当前剩余电量最多和 /或实时耗电量最少的终端, 用于处理所述指定的实时 进程。  In the above technical solution, preferably, if a plurality of the other terminals meet the processing condition at the same time, selecting a terminal in which the current remaining power is the most and/or the real-time power consumption is the least, for processing the specified real-time. process.
在该技术方案中, 通过将实时进程切换至剩余电量最多和 /或实时耗电量最少的终 端, 可以使得所述系统中的所有终端的电量作为一个整体而得以充分利用, 使得所有 终端都可以尽可能地保持在运行状态。 比如主机端在播放视频时出现电量低下, 此时 若子机 Α与子机 B都满足对视频播放进程的处理条件 (子机 A的剩余电量多于子机 B ) , 则可以选择剩余电量较多的子机 A 来继续播放视频。 当然, 由于所述系统内的 每个终端都是平等的, 当所有终端或超过预设数量的终端的电量状况都属于能够切换 实时进程的状态时, 则可以设置当电量低于某个阈值后, 则不再执行进程切换, 以避 免进程在多个终端之间来回切换 (比如在子机 A 和子机 B 之间, 由于电量不断降 低, 子机 A 和子机 B 将交替成为剩余电量较高的终端, 从而导致进程的反复切 换) 。  In this technical solution, by switching the real-time process to the terminal with the most remaining power and/or the lowest power consumption in real time, the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as much as possible. For example, when the host side plays a video, the power is low. If both the handset and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video. Certainly, since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold. , the process switching is no longer performed, to avoid the process switching back and forth between multiple terminals (for example, between the slave A and the slave B, since the power is continuously reduced, the slave A and the slave B will alternately become the remaining power. The terminal, which causes repeated switching of the process).
在上述技术方案中, 优选地, 还包括: 若所述指定的实时进程为通信进程, 且与 所述指定终端相连的其他终端中未配置通信模块, 则所述指定终端使自身的通信模块 继续运行, 其中, 所述指定终端的通信模块将接收到的下行通信信号解码后传输至所 述其他终端进行处理, 并将接收到来自所述其他终端的上行通信数据编码后发送。  In the above technical solution, preferably, the method further includes: if the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the designated terminal, the designated terminal causes the communication module to continue The communication module of the designated terminal decodes the received downlink communication signal, transmits the received downlink communication signal to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
在该技术方案中, 对于通信进程而言, 比如通话、 短信、 互联网数据收发等, 由 于必须依赖于通信模块进行数据传输, 因而在当前终端与其他终端都具有通信模块的 情况下, 自然能够顺利实现通信进程的切换; 而在其他终端中不具有通信模块的情况 下, 能可以仍由当前终端中的通信模块实现与基站的信息交互, 而通过数据传输的方 式进一步实现当前终端与其他终端之间的交互, 从而使得其他终端间接与基站实现交 互过程。 虽然当前终端 (即所述指定终端) 仍然要将通信模块保持在工作状态, 但节 省了当前终端的屏幕、 扬声器、 话筒等部件的电量消耗。 具体来说, 若子机端没有通 信模块, 而用户选择使用子机端处理通话进程, 则子机端可以通过使用主机端的通信 模块来处理通话进程。 In the technical solution, for the communication process, such as call, short message, Internet data transmission and reception, etc., since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules. The communication process is switched. If the communication module is not available in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the current terminal and other terminals are further realized by means of data transmission. The interaction between the other terminals causes the other terminals to interact with the base station indirectly. Although the current terminal (ie, the designated terminal) still has to keep the communication module in operation, the festival The power consumption of the screen, speaker, microphone, and other components of the current terminal is saved. Specifically, if there is no communication module on the slave end, and the user chooses to use the slave end to process the call process, the slave end can process the call process by using the communication module on the host side.
图 2示出了根据本发明的实施例的终端的框图。  Figure 2 shows a block diagram of a terminal in accordance with an embodiment of the present invention.
如图 2 所述, #居本发明的实施例的终端 200, 与至少一个其他终端相连, 所述 终端 200 包括: 电量检测单元 202 , 用于检测所述终端的电量消耗情况; 处理单元 204 , 用于在所述电量消耗情况表明所述终端的剩余电量小于或等于预设电量、 和 /或 实时耗电量大于或等于预设耗电量时, 所述终端终止处理所述终端中指定的实时进 程; 信息同步单元 206 , 将所述指定的实时进程的信息同步至至少一个所述其他终 端, 以切换至由至少一个所述其他终端对所述指定的实时进程进行处理。  As shown in FIG. 2, the terminal 200 of the embodiment of the present invention is connected to at least one other terminal, and the terminal 200 includes: a power detecting unit 202, configured to detect a power consumption situation of the terminal; When the power consumption condition indicates that the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the terminal terminates processing the specified in the terminal. The real-time process; the information synchronization unit 206 synchronizes the information of the specified real-time process to at least one of the other terminals to switch to processing the specified real-time process by at least one of the other terminals.
在该技术方案中, 通过在终端的剩余电量小于或等于预设电量、 和 /或实时耗电量 大于或等于预设耗电量的情况下, 将终端正在处理的实时进程切换至与之相连的其他 终端中, 可以保证实时进程在不同终端中处理的连续性, 实现了终端之间切换的智能 化, 提升了用户体验。 具体来说, 比如主机在播放视频期间出现低电量报警, 此时, 主机可以关闭视频播放进程, 并将视频切换至与主机相连的子机中继续进行播放, 智 能化地实现了主子机之间进程切换的连续性。 当然, 在进行进程切换时, 可以对用户 给出提示信息, 比如 "该进程将切换至子机中处理" 。 而在子机 (即被作为切换目标 的终端) 数量较多时, 也可以由用户来选择 (可以通过事先设置切换时的选择标准, 也可以通过实时的选择) 将进程切换至指定子机进行处理, 实现了主子机切换的灵活 性。 当然, "主机" 和 "子机" 只是概念上的区别, 可以指定多个相连的终端中的某 个终端为 "主机" , 而其余的终端为 "子机" ; 同时, 也可以指定用户当前使用的为 "主机" , 而其余的终端为 "子机" 。 可见, "主机" 和 "子机" 的概念实际上可以 是相对的, 实际上, 任一终端的进程均可以切换至另一任意终端上继续执行。  In the technical solution, when the remaining power of the terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the real-time process that the terminal is processing is switched to be connected thereto. In other terminals, the continuity of processing of real-time processes in different terminals can be ensured, and the switching between terminals is intelligent, thereby improving the user experience. Specifically, for example, the host has a low battery alarm during the video playback. At this time, the host can close the video playback process, and switch the video to the slave connected to the host to continue playing, intelligently realizing the between the master and the slave. The continuity of the process switch. Of course, when the process is switched, the user can be prompted, for example, "The process will switch to the processing in the slave". In the case of a large number of slaves (that is, terminals that are used as handover targets), the user can also select (by setting the selection criteria at the time of switching or by real-time selection), the process is switched to the designated slave for processing. , realizes the flexibility of master and slave switching. Of course, "host" and "slave" are only conceptual differences. You can specify one of the multiple connected terminals as the "host" and the rest of the terminals as the "slave". At the same time, you can also specify the current user. The "host" is used, and the rest of the terminals are "slave". It can be seen that the concept of "host" and "slave" can actually be relative. In fact, the process of any terminal can be switched to another terminal to continue execution.
需要说明的是, 由于所述系统中的每个终端之间都是平等的, 因此, 任一终端都 可能向其他终端切换进程, 也可能接受其他终端切换过来的进程, 即所谓的 "指定终 端" 和 "其他终端" 实际上是相对的, "其他终端" 的电量降低或电量消耗过快时, 也将转换身份为 "指定终端" , 而 "指定终端" 在一段时间的保持后, 若电量状况理 想, 也可能转换身份为 "其他终端" 。  It should be noted that, since each terminal in the system is equal, any terminal may switch processes to other terminals, and may also accept processes that other terminals switch over, that is, a so-called "designated terminal." "And "other terminals" are actually opposite. When the power of other terminals is reduced or the power consumption is too fast, the identity will be converted to "specified terminal", and the "specified terminal" will be charged after a period of time. The situation is ideal, and it is also possible to convert the identity to "other terminals".
在上述技术方案中, 优选地, 所述实时耗电量大于或等于所述预设耗电量包括: 所述终端的实时功耗值大于或等于预设功耗值、 和 /或所述终端在预设时间段内的电量 消耗量大于或等于预设电量消耗量。  In the above technical solution, preferably, the real-time power consumption is greater than or equal to the preset power consumption, including: the real-time power consumption value of the terminal is greater than or equal to a preset power consumption value, and/or the terminal The amount of power consumption in the preset time period is greater than or equal to the preset power consumption amount.
在该技术方案中, 可以通过实时功耗值间接表示终端的实时耗电量, 也可以通过 一段时间内的电量消耗值直接表示终端的实时耗电量。 对于实时功耗值, 实际上也可 以通过多种方式获取, 比如可以直接检测终端的功耗; 也可以根据终端的 CPU 或内 存占用率来间接计算功耗 (预先存储占用率与功耗之间的转换关系) ; 由于不同的进 程对应于一定的 CPU 或内存占用率, 因而还可以检测终端中实时运行的进程, 转换 为 CPU 或内存占用率, 并进而转换为终端的功耗值。 通过上述不同方式检测终端的 实时耗电情况, 有利于降低检测难度、 提升检测效率和准确度, 从而及时将终端中的 实时进程切换至其他终端, 在短时间内降低终端的功耗, 节省了终端的电量。 在上述技术方案中, 优选地, 所述指定的实时进程为所述终端中最晚建立的进 程、 或在所述终端中正在运行的所有进程中对应的耗电量最大的进程。 In the technical solution, the real-time power consumption of the terminal may be indirectly represented by the real-time power consumption value, or the real-time power consumption of the terminal may be directly represented by the power consumption value within a period of time. For the real-time power consumption value, it can be obtained in various ways, for example, the power consumption of the terminal can be directly detected; or the power consumption can be indirectly calculated according to the CPU or memory usage of the terminal (pre-storage between occupancy and power consumption) The conversion relationship); Because different processes correspond to a certain CPU or memory usage, it is also possible to detect the real-time running process in the terminal, convert it to CPU or memory usage, and then convert it to the power consumption value of the terminal. Detecting the real-time power consumption of the terminal in different ways, which is beneficial to reducing the detection difficulty, improving the detection efficiency and accuracy, and thus switching the real-time process in the terminal to other terminals in time, thereby reducing the power consumption of the terminal in a short time, saving The power of the terminal. In the foregoing technical solution, preferably, the specified real-time process is a process that is the latest in the terminal, or a process that has the largest power consumption among all processes that are running in the terminal.
在该技术方案中, 通过将终端中的实时进程切换至其他终端, 减轻了终端处理单 元的负担, 降低了终端的功耗。 具体来说, 如果终端原本在运行过程中, 耗电量处于 无需切换进程的状态下, 而当建立了某个进程后, 使得耗电量增大至需要切换进程, 则这个新建的进程 (即最晚建立的进程) 实际上干扰了终端原本的处理进程 (比如游 戏运行的过程中接收到了打进的电话) , 且会增加主机处理单元的负担以及主机的功 耗, 因而将其切换至其他终端上, 以确保原来的终端正常运行。 或者, 由于终端中运 行的多个进程中, 有些进程需要较大的资源占用率 (如 CPU 或内存占用率) , 比如 手机游戏, 则通过将其切换至其他终端, 从而有助于降低当前终端的耗电量。 当然, 对于当前终端内运行的任意进程, 只要不是其正常运行所必须的系统进程, 都是可以 终止处理并切换至其他终端进行处理的。  In this technical solution, by switching the real-time process in the terminal to other terminals, the burden on the terminal processing unit is reduced, and the power consumption of the terminal is reduced. Specifically, if the terminal is in the running process, the power consumption is in a state that does not need to switch processes, and when a certain process is established, the power consumption is increased to the need to switch processes, then the newly created process (ie, The latest established process) actually interferes with the original processing of the terminal (such as receiving incoming calls during the running of the game), and increases the burden on the host processing unit and the power consumption of the host, thus switching it to other On the terminal, to ensure that the original terminal is running normally. Or, because some processes running in the terminal require a large resource occupancy rate (such as CPU or memory usage), such as mobile games, by switching to other terminals, it helps to lower the current terminal. Power consumption. Of course, for any process running in the current terminal, as long as it is not the system process necessary for its normal operation, it can terminate the processing and switch to other terminals for processing.
在上述技术方案中, 优选地, 所述信息同步单元 206还用于将所述指定的实时进 程对应的处理进度信息同步至所述至少一个其他终端, 以由所述至少一个其他终端根 据所述处理进度信息继续处理所述指定的实时进程; 所述终端 200还包括: 文件传输 单元 208 , 用于当所述指定的实时进程存在对应的被处理文件、 且所述至少一个其他 终端中不存在所述被处理文件时, 将所述被处理文件传输至所述至少一个其他终端。  In the above technical solution, preferably, the information synchronization unit 206 is further configured to synchronize processing progress information corresponding to the specified real-time process to the at least one other terminal, to be used by the at least one other terminal according to the The processing progress information continues to process the specified real-time process; the terminal 200 further includes: a file transmission unit 208, configured to: when the specified real-time process has a corresponding processed file, and the at least one other terminal does not exist When the file is processed, the processed file is transmitted to the at least one other terminal.
在该技术方案中, 对于进程的切换, 一种情况下, 仅保证其能够在其他终端上被 执行, 比如在其他终端上启动同一个游戏应用; 另一种情况下, 由于用户在当前终端 上存在一定的进程信息, 比如游戏已经玩到 "第三关" 或是电影已经看到第 33 分 28 秒, 则通过将实时进程的处理进度信息同步至其他终端, 可以确保其他终端在进程切 换之后, 能够按照原来的进度继续处理, 无需用户手动调整, 提升了用户的体验。 同 时, 由于其他终端中可能不存在当前终端正在处理的文件, 比如没有安装相应的游戏 程序或是不存在播放的电影文件或是文件下载未完成, 则可以由当前终端直接将游戏 程序的安装程序或是电影文件或是临时下载文件传输至其他终端; 对于可以从网络上 获取的文件, 也可以由当前终端将文件名称、 大小等文件信息告知其他终端, 由其他 终端自动从网络上搜索和下载。 具体来说, 如主机端在播放视频期间检测到电量过 低, 此时主机端将视频播放进程切换至子机端处理, 若子机端存储有所播放的视频文 件, 则根据主机端同步过来的视频播放进度信息继续播放视频, 若子机端未存储所述 的视频文件, 则主机端将视频文件传输至子机端, 子机端根据接收到的视频文件以及 视频播放进度信息继续播放视频。  In this technical solution, for the process switching, in one case, only it can be executed on other terminals, such as starting the same game application on other terminals; in another case, because the user is on the current terminal There is certain process information, such as the game has already played the "third pass" or the movie has seen the 33rd minute and 28 seconds, then by synchronizing the processing progress information of the real-time process to other terminals, it can ensure that other terminals after the process switch , can continue to process according to the original progress, without the need for manual adjustment by the user, improving the user experience. At the same time, since the files currently being processed by the current terminal may not exist in other terminals, for example, the corresponding game program is not installed or the movie file does not exist or the file download is not completed, the installation program of the game program may be directly used by the current terminal. Or movie files or temporary download files are transferred to other terminals; for files that can be obtained from the network, the current terminal can also inform other terminals of file names such as file names and sizes, and other terminals automatically search and download from the network. . Specifically, if the host detects that the power is too low during the video playback, the host side switches the video playback process to the slave end processing. If the slave side stores the played video file, the host side synchronizes according to the host side. The video playback progress information continues to play the video. If the video file is not stored on the slave end, the host transmits the video file to the slave, and the slave continues to play the video according to the received video file and the video playback progress information.
在上述技术方案中, 优选地, 还包括: 判断单元 210 , 用于判断所述至少一个其 他终端是否满足对所述指定的实时进程的处理条件; 其中, 在判断结果为满足的情况 下, 所述终端将所述指定的实时进程交由所述其他终端处理; 在判断结果为不满足的 情况下, 所述处理单元 204继续处理所述指定的实时进程。  In the above technical solution, the method further includes: a determining unit 210, configured to determine whether the at least one other terminal satisfies a processing condition for the specified real-time process; wherein, if the determination result is satisfied, The terminal forwards the specified real-time process to the other terminal; if the determination result is not satisfied, the processing unit 204 continues to process the specified real-time process.
优选地, 所述处理条件包括以下至少之一或其组合: 剩余电量大于或等于预设电 量、 和 /或实时耗电量小于或等于预设耗电量, 配置有处理所述实时进程的硬件模块和 /或软件功能, 属于预设的用于处理所述指定的实时进程的终端。  Preferably, the processing condition includes at least one of the following or a combination thereof: the remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with hardware for processing the real-time process. Modules and/or software functions pertain to preset terminals for processing the specified real-time processes.
在该技术方案中, 通过对其他终端是否有处理实时进程的条件进行判断, 可以防 止终端盲目地将实时进程切换至其他终端, 而其他终端无法处理的情况出现, 比如其 他终端不具有相应的处理模块而无法响应, 或是其他终端本身电量低而无法正常处理 (可能在处理过程中掉电) 该进程。 此外, 对于存在多个其他终端的情况下, 由于各 个终端具有不同的特点, 则针对不同的进程, 用户存在使用上的倾向, 比如希望屏幕 大、 处理能力强的终端运行游戏、 电影等对视觉要求高的进程, 希望电池容量大、 体 积小的终端运行通信进程等, 因而可以根据当前需要切换的进程的类型, 确定最匹配 的终端进行处理。 In this technical solution, it can be prevented by judging whether other terminals have conditions for processing real-time processes. The terminal blindly switches the real-time process to other terminals, and other terminals cannot handle the situation. For example, other terminals do not have corresponding processing modules and cannot respond, or other terminals are low in power and cannot be processed normally (may be in the process Power down) The process. In addition, in the case where there are multiple other terminals, since each terminal has different characteristics, the user has a tendency to use for different processes, for example, a terminal with a large screen and a strong processing capability runs a game, a movie, etc. A process with high requirements is required, and a terminal with a large battery capacity and a small size is required to run a communication process, etc., so that the most matching terminal can be determined for processing according to the type of the process that needs to be switched.
在上述技术方案中, 优选地, 还包括: 选择单元 212 , 用于在同时存在多个所述 其他终端满足所述处理条件时, 选择其中当前剩余电量最多和 /或实时耗电量最少的终 端, 用于处理所述指定的实时进程。  In the above technical solution, preferably, the method further includes: a selecting unit 212, configured to select, when the plurality of the other terminals meet the processing condition, select a terminal in which the current remaining power is the largest and/or the real-time power consumption is the least , for processing the specified real-time process.
在该技术方案中, 通过将实时进程切换至剩余电量最多和 /或实时耗电量最少的终 端, 可以使得所述系统中的所有终端的电量作为一个整体而得以充分利用, 使得所有 终端都可以尽可能低保持在运行状态。 比如主机端在播放视频时出现电量低下, 此时 若子机 A与子机 B都满足对视频播放进程的处理条件 (子机 A的剩余电量多于子机 B ) , 则可以选择剩余电量较多的子机 A 来继续播放视频。 当然, 由于所述系统内的 每个终端都是平等的, 当所有终端或超过预设数量的终端的电量状况都属于能够切换 实时进程的状态时, 则可以设置当电量低于某个阈值后, 则不再执行进程切换, 以避 免进程在多个终端之间来回切换 (比如在子机 A 和子机 B 之间, 由于电量不断降 低, 子机 A 和子机 B 将交替成为剩余电量较高的终端, 从而导致进程的反复切 换) 。  In this technical solution, by switching the real-time process to the terminal with the most remaining power and/or the lowest power consumption in real time, the power of all the terminals in the system can be fully utilized as a whole, so that all terminals can be Keep it running as low as possible. For example, when the host side plays a video, the power is low. If both the slave A and the slave B satisfy the processing conditions of the video playback process (the remaining power of the slave A is more than the slave B), the remaining power can be selected. The slave A will continue to play the video. Certainly, since each terminal in the system is equal, when all the terminals or the power status exceeding the preset number of terminals belong to a state capable of switching the real-time process, the battery may be set after the power is lower than a certain threshold. , the process switching is no longer performed, to avoid the process switching back and forth between multiple terminals (for example, between the slave A and the slave B, since the power is continuously reduced, the slave A and the slave B will alternately become the remaining power. The terminal, which causes repeated switching of the process).
在上述技术方案中, 优选地, 还包括: 功能模块管理单元 214 , 在所述指定的实 时进程为通信进程, 且与所述终端相连的其他终端中未配置通信模块的情况下, 使所 述终端的通信模块继续运行, 其中, 所述终端的通信模块将接收到的下行通信信号解 码后传输至所述其他终端进行处理, 并将接收到来自所述其他终端的上行通信数据编 码后发送。  In the above technical solution, preferably, the method further includes: a function module management unit 214, when the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, The communication module of the terminal continues to operate, wherein the communication module of the terminal decodes the received downlink communication signal, transmits the result to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
在该技术方案中, 对于通信进程而言, 比如通话、 短信、 互联网数据收发等, 由 于必须依赖于通信模块进行数据传输, 因而在当前终端与其他终端都具有通信模块的 情况下, 自然能够顺利实现通信进程的切换; 而在其他终端中不具有通信模块的情况 下, 能可以仍由当前终端中的通信模块实现与基站的信息交互, 而通过数据传输的方 式进一步实现当前终端与其他终端之间的交互, 从而使得其他终端间接与基站实现交 互过程。 虽然当前终端 (即所述指定终端) 仍然要将通信模块保持在工作状态, 但节 省了当前终端的屏幕、 扬声器、 话筒等部件的电量消耗。 具体来说, 若子机端没有通 信模块, 而用户选择使用子机端处理通话进程, 则子机端可以通过使用主机端的通信 模块来处理通话进程。  In the technical solution, for the communication process, such as call, short message, Internet data transmission and reception, etc., since the communication module must be relied on for data transmission, it is naturally smooth in the case where the current terminal and other terminals have communication modules. The communication process is switched. If the communication module is not available in other terminals, the information exchange with the base station can still be realized by the communication module in the current terminal, and the current terminal and other terminals are further realized by means of data transmission. The interaction between the other terminals causes the other terminals to interact with the base station indirectly. Although the current terminal (i.e., the designated terminal) still maintains the communication module in operation, it saves power consumption of the screen, speaker, microphone, and the like of the current terminal. Specifically, if the slave side does not have a communication module and the user chooses to use the slave side to process the call process, the slave side can process the call process by using the communication module on the host side.
图 3示出了根据本发明的实施例的分体式移动通信终端的模块图。  FIG. 3 shows a block diagram of a split type mobile communication terminal in accordance with an embodiment of the present invention.
如图 3所示, 根据本发明实施例的分体式移动通信终端 300 , 包括主机 302与子 机 304, 其中, 主机 302 主要用于一些强大运算处理功能。 主要的组成模块有主机处 理控制模块 302A (多核 CPU ) 、 主机短距离无线通信模块 302B和主机电源管理模块 302C。 主机处理控制模块 302A (即多核 CPU ) 主要用于对一些游戏、 视频等强大应用 功能的运算、 处理; 主机短距离无线通信模块 302B 能够通过短距离无线通信技术 (如蓝牙、 IEEE 802.11b , IrDA 红外线等) 与子机中的子机短距离无线通信模块 304B 建立直接的无线通道连接, 该短距离无线通信技术在通信距离和数据传输带宽 方面能够满足该分体式移动通信终端 300的主机 302与子机 304间的通信功能映射、 应用功能智能切换以及正常的数据同步需求; 主机电源管理模块 302C 除了用于传统 的主机系统的电源管理功能外, 还能实时侦测整个主机系统的功耗、 电池电量, 并将 系统的功耗值与当前电池电量均作为主机系统休眠与唤醒的标识量。 比如, 当主机正 在运行一个功耗较大的游戏时, 主机功耗值较大, 主机发热严重, 此时如果有一个电 话打进来, 随手接听则会加重主机 CPU 的负担, 增加功耗, 主机电源管理模块 302C 会实时将侦测到的数据传输给主机处理控制模块 302A, 主机处理控制模块 302A进行 逻辑判断, 当判断到功耗值增大到已预定的某一上限值时, 主机处理控制模块 302A 可以通过在主机屏幕上弹出一个选择框, 让用户选择: 主机继续游戏, 子机接听电话 或主机自动将游戏挂后台, 主机接听电话。 这将大大提高用户的体验度, 同时不至于 使主机的功耗过快。 当主机在不便于充电 (如火车上) 的情况下使用时, 若电量低于 某个最低值 (如电量的 5% ) , 主机进行低电警告, 并智能化地将一些基本应用功能 (上网、 通话、 音频、 微博等) 的使用切换到较少使用、 电量充裕的子机上进行, 切 换成功后主机进入睡眠待机状态, 保持基本的通信映射功能以备在子机电量过低时主 机能进行通话。 As shown in FIG. 3, a split mobile communication terminal 300 according to an embodiment of the present invention includes a host 302 and a slave 304. The host 302 is mainly used for some powerful arithmetic processing functions. The main constituent modules are a host processing control module 302A (multi-core CPU), a host short-range wireless communication module 302B, and a host power management module 302C. The host processing control module 302A (ie, multi-core CPU) is mainly used for computing and processing powerful game functions such as games and videos; the short-range wireless communication module 302B of the host can pass short-range wireless communication technologies (such as Bluetooth, IEEE 802.11b, IrDA). Infrared, etc.) establishes a direct wireless channel connection with the slave short-range wireless communication module 304B in the slave, and the short-range wireless communication technology can satisfy the host 302 of the split-type mobile communication terminal 300 in terms of communication distance and data transmission bandwidth. The communication function mapping between the sub-machines 304, the application function intelligent switching, and the normal data synchronization requirements; the host power management module 302C can detect the power consumption of the entire host system in real time in addition to the power management function of the traditional host system. The battery power, and the system's power consumption value and current battery power are used as the identifier of the host system sleep and wake-up. For example, when the host is running a game with a large power consumption, the power consumption of the host is large, and the host is hot. If a call comes in at this time, it will increase the burden on the host CPU and increase the power consumption. The power management module 302C transmits the detected data to the host processing control module 302A in real time, and the host processing control module 302A performs logical judgment. When it is determined that the power consumption value increases to a predetermined upper limit value, the host processing The control module 302A can let the user select by popping up a selection box on the host screen: The host continues the game, the handset answers the call or the host automatically hangs the game in the background, and the host answers the call. This will greatly improve the user's experience, while not making the host's power consumption too fast. When the host is inconvenient to charge (such as on a train), if the battery is below a certain minimum value (such as 5% of the battery), the host performs a low-power warning and intelligently puts some basic application functions (online The use of the call, audio, microblog, etc. is switched to the less-used, fully-powered handset. After the handover is successful, the host enters the sleep standby state, maintaining the basic communication mapping function so that the host can be powered when the handset is too low. Make a call.
分体式移动通信终端 300的子机 304主要用于通信功能和一些基本的应用操作功 能 (如上网、 微博、 音频、 简单游戏等) 。 主要有无线通信模块 304A、 子机短距离 无线通信模块 304B、 协议转化模块 304C、 子机处理控制模块 304D (多核 CPU ) 以 及子机电源管理模块 304E组成。  The handset 304 of the split mobile communication terminal 300 is mainly used for communication functions and some basic application operation functions (such as Internet access, microblogging, audio, simple games, etc.). There are mainly wireless communication module 304A, sub-machine short-range wireless communication module 304B, protocol conversion module 304C, sub-machine processing control module 304D (multi-core CPU) and sub-machine power management module 304E.
子机处理控制模块 304D 主要是完成一些简单应用的运算处理功能; 协议转化模 块 304C 能将无线通信协议(2G/3G/4G ) 转化成短距离无线通信协议, 以此来保证子 机 304 的无线通信数据能被实时同步和映射到主机 302; 子机无线通信模块 304A能 实现基本的通话和连网 (移动网络) 功能; 子机电源管理模块 304E 除了用于传统的 子机系统的电源管理功能外, 还能实时侦测整个子机系统的功耗、 电池电量并将系统 的功耗值与当前电池电量均作为主机系统休眠与唤醒的标识量。 比如, 当子机 304经 过长时间通话后, 电池电量过低, 低于某个最低点限度值 (如电量的 10% ) 时, 会给 出低电警告, 并同时将正在进行的通话智能切换到主机 302上进行, 切换成功后子机 304 进入睡眠状态, 但保持无线通信模块、 短距离无线通信模块运行, 主机被唤醒启 动通话映射功能, 并继续进行通话。  The sub-machine processing control module 304D mainly performs the arithmetic processing functions of some simple applications; the protocol conversion module 304C can convert the wireless communication protocol (2G/3G/4G) into a short-range wireless communication protocol, thereby ensuring the wireless of the sub-machine 304. The communication data can be synchronized and mapped to the host 302 in real time; the slave wireless communication module 304A can implement basic call and network (mobile network) functions; the slave power management module 304E is used for power management functions of the conventional slave system. In addition, the power consumption of the entire slave system, the battery power, and the power consumption value of the system and the current battery power can be detected in real time as the identifier of the host system sleep and wake-up. For example, when the handset 304 has been talking for a long time, the battery power is too low, and below a certain minimum limit value (such as 10% of the power), a low battery warning will be given, and the ongoing call smart switching will be performed at the same time. After the handover is successful, the slave 304 enters a sleep state, but keeps the wireless communication module and the short-range wireless communication module running, the host is woken up to start the call mapping function, and the call is continued.
图 4 示出了根据本发明的实施例的分体式移动通信终端的主机端电源管理方法的 流程图。  4 is a flow chart showing a host side power management method of a split type mobile communication terminal according to an embodiment of the present invention.
如图 4 所示, 根据本发明的实施例的分体式移动通信终端的主机端电源管理方 法, 包括:  As shown in FIG. 4, a host-side power management method of a split-type mobile communication terminal according to an embodiment of the present invention includes:
步骤 402, 主机端正在运行功耗较大的应用进程。  Step 402: The host side is running an application process with a large power consumption.
步骤 404, 主机电源管理模块实时侦测主机的功耗值和剩余电量。 步骤 406 , 主机处理控制模块进行逻辑判断。 判断主机的剩余电量是否小于或等 于预设电量、 和 /或主机的实时耗电量大于或等于预设耗电量时, 其中, 主机的实时耗 电量大于或等于预设耗电量包括: 主机的实时功耗值大于或等于预设功耗值、 和 /或主 机在预设时间段内的电量消耗量大于或等于预设电量消耗值。 Step 404: The host power management module detects the power consumption value and the remaining power of the host in real time. Step 406: The host processing control module performs a logic judgment. Determining whether the remaining power of the host is less than or equal to the preset power, and/or the real-time power consumption of the host is greater than or equal to the preset power consumption, wherein the real-time power consumption of the host is greater than or equal to the preset power consumption, including: The real-time power consumption value of the host is greater than or equal to the preset power consumption value, and/or the power consumption of the host within the preset time period is greater than or equal to the preset power consumption value.
步骤 408 , 在判断结果表明主机的实时耗电量大于或等于预设耗电量时, 执行步 骤 410; 在判断结果表明主机的剩余电量小于或等于预设电量时, 执行步骤 418 , 在 判断结果表明主机的实时耗电量与剩余电量都未达到临界条件时, 返回步骤 402 , 继 续进行实时检测与判断。  Step 408, when the judgment result indicates that the real-time power consumption of the host is greater than or equal to the preset power consumption, step 410 is performed; when the judgment result indicates that the remaining power of the host is less than or equal to the preset power, step 418 is performed, and the result is determined. If it is indicated that the real-time power consumption and the remaining power of the host have not reached the critical condition, the process returns to step 402, and the real-time detection and determination are continued.
步骤 410 , 在判断结果表明主机的实时耗电量大于或等于预设耗电量时, 主机处 理控制模块在显示界面上显示一选择框, 由用户选择是否交由子机处理实时进程 (如 通话进程) 。  Step 410: When the judgment result indicates that the real-time power consumption of the host is greater than or equal to the preset power consumption, the host processing control module displays a selection box on the display interface, and the user selects whether to hand over the slave machine to process the real-time process (such as the call process). ).
步骤 412 , 若用户选择由主机继续进行功耗较大的应用, 子机接听电话, 则执行 步骤 416 , 否则, 执行步骤 414。  Step 412: If the user selects that the host continues to perform the application with high power consumption, and the slave answers the call, step 416 is performed; otherwise, step 414 is performed.
步骤 414 , 主机将功耗较大的进程置于后台运行或者关闭, 优先处理通话进程, 在处理完成后, 跳转至步骤 406 , 继续进行实时检测。  Step 414: The host runs the process with a large power consumption in the background or shuts down, and preferentially processes the session process. After the process is completed, the process proceeds to step 406 to continue the real-time detection.
步骤 416 , 在主机将实时进程 (如通话进程) 切换至子机运行之后, 若主机的功 耗值达到预设限度, 则主机关闭正在处理的进程, 进入睡眠待机状态, 保持基本的通 信映射功能以备在子机电量过低时主机能进行基本的应用 (如通话进程) 。  Step 416: After the host switches the real-time process (such as a call process) to the slave machine, if the power consumption value of the host reaches a preset limit, the host closes the process being processed, enters a sleep standby state, and maintains a basic communication mapping function. In case the sub-machine power is too low, the host can perform basic applications (such as call progress).
步骤 418 , 在主机的电池电量低于预设阈值时, 进行低点警告。  Step 418: When the battery level of the host is lower than a preset threshold, a low point warning is performed.
步骤 420 , 判断主机所处理的实时进程是否是基本的应用进程, 若是, 则执行步 骤 422 , 否则, 执行步骤 424。 具体可以判断子机是否可以处理主机所处理的实时进 程, 即子机的剩余电量是否大于或等于预设电量、 和 /或实时耗电量是否小于或等于预 设耗电量, 是否配置有处理所述实时进程的硬件模块和 /或软件功能。  Step 420: Determine whether the real-time process processed by the host is a basic application process, and if yes, execute step 422; otherwise, perform step 424. Specifically, it can be determined whether the slave can process the real-time process processed by the host, that is, whether the remaining power of the slave is greater than or equal to the preset power, and/or whether the real-time power consumption is less than or equal to the preset power consumption, and whether the configuration is processed. Hardware modules and/or software functions of the real-time process.
步骤 422 , 若主机所处理的实时进程是基本的应用进程, 则将基本的应用进程切 换至子机上处理。  Step 422: If the real-time process processed by the host is a basic application process, the basic application process is switched to the slave machine for processing.
步骤 424 , 主机将进程切换至子机处理之后, 进入睡眠待机状态, 保持基本的通 信映射功能。  Step 424: After the host switches the process to the slave, the host enters the sleep standby state and maintains the basic communication mapping function.
图 5 示出了根据本发明的实施例的分体式移动通信终端中主、 子机实现通信映射 功能的流程图。  Fig. 5 is a flow chart showing the main body and the slave implementing the communication mapping function in the split type mobile communication terminal according to the embodiment of the present invention.
如图 5 所示, 根据本发明的实施例的分体式移动通信终端中主、 子机实现通信映 射功能的流程, 包括:  As shown in FIG. 5, the flow of the communication mapping function implemented by the master and the slave in the split type mobile communication terminal according to the embodiment of the present invention includes:
步骤 502 , 主、 子机系统开启。  Step 502, the master and slave systems are turned on.
步骤 504 , 开启主、 子机中的各个功能模块, 其中主要包括主机短距离无线通信 模块、 子机短距离无线通信模块、 子机无线通信模块。  Step 504: Turn on each functional module in the main and sub-machines, where the main function includes a short-range wireless communication module of the host, a short-range wireless communication module of the sub-machine, and a wireless communication module of the sub-machine.
步骤 506 , 主、 子机启网。  Step 506, the master and the child machine start the network.
步骤 508 , 判断主、 子机是否顺利配对, 若是, 则执行步骤 510 , 否则, 执行跳 转至步骤 504 , 主、 子机之间的配对是通过短距离无线通信模块完成的。  Step 508: Determine whether the master and the slave are successfully paired. If yes, execute step 510. Otherwise, perform a jump to step 504. The pairing between the master and the slave is performed by the short-range wireless communication module.
步骤 510 , 子机内的协议转化模块将无线通信协议转化为短距离无线通信协议。 步骤 512 , 无线通信数据被子机短距离无线通信模块传送到主机的短距离无线通 信模块。 Step 510: The protocol conversion module in the slave converts the wireless communication protocol into a short-range wireless communication protocol. Step 512: The wireless communication data is transmitted to the short-distance wireless communication of the host by the short-range wireless communication module of the slave Letter module.
步骤 514 , 无线通信数据被被传送到主机的处理控制模块, 进行运算处理以被系 统调用和读取。  Step 514, the wireless communication data is transmitted to the processing control module of the host, and is processed to be called and read by the system.
步骤 516 , 判断无线通信数据是否在主机的被映射成功, 若是, 则执行步骤 518 , 若否, 则跳转至步骤 510继续进行协议转换。  Step 516: Determine whether the wireless communication data is successfully mapped on the host. If yes, execute step 518. If no, go to step 510 to continue the protocol conversion.
步骤 518 , 调去主机内存中被映射成功的无线通信数据的内容。  Step 518: Recall the content of the wireless communication data that is successfully mapped in the host memory.
步骤 520 , 在主机的屏幕上显示出虚拟的无线通信信号的强度指示, 完成主、 子 机之间的通信映射。  Step 520: Display an intensity indication of the virtual wireless communication signal on the screen of the host, and complete communication mapping between the master and the slave.
图 6A 至图 6C 示出了根据本发明的实施例的分体式移动通信终端的主、 子机进 程切换的示意图。  6A to 6C are diagrams showing main and slave process switching of a split type mobile communication terminal according to an embodiment of the present invention.
如图 6A所示, 分体式移动通信终端 600的主机 602不具有无线通信模块, 子机 604 通过协议转换模块将无线通信协议转换为短距离无线通信协议映射至主机 602 , 使得子机 604将自身的无线通信信号强度 606 (如图 6B 所示) 由短距离无线通信技 术进行数据实时传输给主机 602 的短距离无线通信模块, 再传输到主机的处理控制模 块, 主机的操作系统中加入无线通信数据实时同步, 实时映射功能, 并将映射值通过 信号强度指示的形式显示在主机端上, 形成虚拟无线通信信号强度 608。  As shown in FIG. 6A, the host 602 of the split type mobile communication terminal 600 does not have a wireless communication module, and the slave 604 converts the wireless communication protocol into a short-range wireless communication protocol to the host 602 through the protocol conversion module, so that the child machine 604 will itself The wireless communication signal strength 606 (shown in FIG. 6B) is transmitted by the short-range wireless communication technology to the short-range wireless communication module of the host 602 in real time, and then transmitted to the processing control module of the host, and the wireless communication is added to the operating system of the host. The data is synchronized in real time, the real-time mapping function is displayed, and the mapped value is displayed on the host side in the form of signal strength indication to form a virtual wireless communication signal strength 608.
当用户使用主机 602进行操作时, 子机 604若没有操作任务, 则可以处于图 6A 所示的待机 /睡眠状态; 而当主机 602接收到新的处理任务时, 如图 6B所示, 比如检 测到新的来电, 则主机 602 检测自身的电量状态。 在检测到主机 602 的主机电量 609A小于或等于预设电量时, 在主机 602的屏幕界面上弹出选择框 610 , 由用户选择 是否交由子机 604处理实时进程。  When the user operates using the host 602, the slave 604 may be in the standby/sleep state shown in FIG. 6A if there is no operation task; and when the host 602 receives a new processing task, as shown in FIG. 6B, for example, detecting Upon a new incoming call, the host 602 detects its own state of charge. When it is detected that the host power 609A of the host 602 is less than or equal to the preset power, a selection box 610 is popped up on the screen interface of the host 602, and the user selects whether to pass the slave 604 to process the real-time process.
由于主机电量 609A较低, 可能导致主机 602的待机时间缩短, 而子机电量 609B 则相对更为充裕, 所以为了不影响用户对主机 602 的使用, 又能够充分利用子机 604 的电量, 用户可以选择 "主机上网, 子机接听电话" , 则主机 602 继续进行上网操 作, 而将子机 604 从待机 /睡眠状态唤醒, 来处理通话进程, 直到通话结束为止。 当 然, 用户也可以选择 "上网挂后台, 主机接电话" , 则子机 604 的状态不变, 而由主 机 602直接对来电进行响应, 无需在主机 602和子机 604之间来回切换。  Since the power of the host 609A is low, the standby time of the host 602 may be shortened, and the power of the slave 609B is relatively more abundant. Therefore, in order not to affect the use of the host 602 by the user, the power of the slave 604 can be fully utilized, and the user can If "Host is connected to the Internet, the handset answers the call", the host 602 continues to perform the Internet operation, and the handset 604 wakes up from the standby/sleep state to process the call until the call ends. Of course, the user can also select "online background, host to answer the call", then the state of the slave 604 is unchanged, and the host 602 directly responds to the incoming call without switching back and forth between the host 602 and the slave 604.
如图 6C所示, 在主机 602响应来电或进行上网的过程中, 主机电量 609A在不 断消耗, 当消耗到最低限度值时, 开始给予低电警告, 并智能化地将正在进行的上网 等进程或功能操作切换到子机 604 , 由子机 604继续执行, 而主机 604则进入睡眠 /待 机状态, 以便延长主机 604的待机时间。  As shown in FIG. 6C, in the process of the host 602 responding to an incoming call or surfing the Internet, the host power 609A is continuously consumed, and when the minimum value is consumed, the low power warning is started, and the ongoing Internet access and the like are intelligently performed. Or the functional operation switches to the slave 604, the slave 604 continues to execute, and the host 604 enters the sleep/standby state to extend the standby time of the host 604.
当然, 在该技术方案中, 对于主机 602或子机 604的电量状态, 除了直接检测剩 余的主机电量 609A或子机电量 609B , 还可以对主机 602或子机 604的实时耗电量进 行检测, 具体如主机电量 609A 或子机电量 609B 的实时消耗速度 (单位时间内的耗 电量) , 再如主机 602或子机 604的实时功耗值 (功耗值越大, 对应的耗电量越大) 等等。  Of course, in the technical solution, for the power state of the host 602 or the slave 604, in addition to directly detecting the remaining host power 609A or the child power 609B, the real-time power consumption of the host 602 or the slave 604 can be detected. Specifically, the real-time consumption speed of the host power 609A or the child power 609B (the power consumption per unit time), and the real-time power consumption value of the host 602 or the slave 604 (the greater the power consumption value, the corresponding power consumption Big) Wait a minute.
此外, 在图 5、 图 6A至图 6C所示的技术方案中, 实际上是未配置通信模块的主 机借由子机中配置的通信模块进行通信的过程。 当子机不便于执行通信过程, 比如电 量低、 屏幕小、 需要执行其他进程等, 则可以切换至主机上执行该通信过程, 具体 地, 子机保持通信模块处于工作状态, 与外部进行数据通信, 而主机接收子机传送的 外部通信数据, 并将需要发送的数据传输至子机的通信模块, 并由子机的通信模块转 发至目的设备。 虽然子机的通信模块处于工作状态, 但由于不需要使用子机的屏幕、 扬声器等设备, 因而仍然能够降低电量的消耗, 有利于保证子机长时间处于可工作状 态, 且充分利用主机的电能。 Further, in the technical solutions shown in FIG. 5 and FIG. 6A to FIG. 6C, the process in which the host of the communication module is not configured to communicate by the communication module configured in the slave is actually performed. When the slave is inconvenient to perform the communication process, such as low power, small screen, and other processes, it can be switched to the host to perform the communication process. The slave keeps the communication module in working state, performs data communication with the outside, and the host receives the external communication data transmitted by the slave, and transmits the data to be transmitted to the communication module of the slave, and is forwarded by the communication module of the slave to Destination device. Although the communication module of the slave is in working state, since it does not need to use the screen, speaker and other devices of the slave, it can still reduce the power consumption, which is beneficial to ensure that the slave is in a working state for a long time, and fully utilize the power of the host. .
此外, 子机上配置有通信模块的情况下, 显然可以由子机直接对通信事件进行响 应; 而当子机的剩余电量低或实时耗电量大时, 再由子机确定是否转换至主机进行响 应和操作。  In addition, when the communication module is configured on the slave, it is obvious that the slave can directly respond to the communication event; and when the remaining power of the slave is low or the real-time power consumption is large, the slave determines whether to switch to the host for response and operating.
当然, 需要说明的是, 对于一个包含多个相连的终端的系统, 由于该系统中的每 个终端之间都是平等的, 因此, 任一终端都可能向其他终端切换进程, 也可能接受其 他终端切换过来的进程, 即所谓的 "主机" 和 "子机" 实际上是相对的, "子机" 的 电量降低或电量消耗过快时, 也将转换身份为 "主机" , 而 "主机" 在一段时间的保 持后, 若电量状况理想, 也可能转换身份为 "子机" 。  Of course, it should be noted that for a system including multiple connected terminals, since each terminal in the system is equal, any terminal may switch processes to other terminals, and may also accept other The process that the terminal switches over, the so-called "host" and "slave" are actually relative. When the power of the "slave" is reduced or the power consumption is too fast, the identity will be converted to "host" and "host". After a period of time, if the power status is ideal, it is also possible to convert the identity to "slave".
图 7示出了根据本发明的实施例的分体式移动通信终端的子机与主机的框架图。 如图 7所示, 分体式移动通信终端的子机 704与主机 702通过蓝牙连接, 主机内 的主机守护进程 702A监测子机内进程打电话 704A、 播放音视频文件 704B、 下载文 件 704C、 编辑文档 704D等的信号, 在蓝牙子机 704出现低电量报警时, 会提示用户 选择结束进程还是切换到主机上处理。 用户只需点击菜单键就可以快速实现蓝牙子机 与蓝牙主机之间的切换, 实现了蓝牙主机与蓝牙子机之间的一体化, 提升了用户的体 验。  FIG. 7 is a block diagram showing a slave and a host of a split type mobile communication terminal according to an embodiment of the present invention. As shown in FIG. 7, the slave 704 of the split mobile communication terminal is connected to the host 702 via Bluetooth, and the host daemon 702A in the host monitors the process in the slave to call 704A, play the audio and video file 704B, download the file 704C, and edit the document. The signal of 704D or the like, when the Bluetooth sub-machine 704 has a low-battery alarm, prompts the user to select whether to end the process or switch to the host for processing. The user can quickly switch between the Bluetooth slave and the Bluetooth host by simply clicking the menu button, which realizes the integration between the Bluetooth host and the Bluetooth slave, and improves the user's experience.
图 8示出了根据本发明的实施例的分体式移动通信终端的子机的处理流程图。 如图 8 所示, 根据本发明的实施例的分体式移动通信终端的子机的处理流程, 包 括:  FIG. 8 is a flowchart showing the processing of a child machine of a split type mobile communication terminal according to an embodiment of the present invention. As shown in FIG. 8, the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention includes:
步骤 802 , 子机中各个模块正常工作。  Step 802, each module in the slave works normally.
步骤 804 , 子机实时检测各个模块 (比如图 8 中所示的子机电话业务模块、 子机 播放音视频模块、 子机下载文件模块、 子机编辑文档模块等) 是否有低电量报警信 号。  Step 804, the slave detects in real time whether each module (such as the sub-phone service module, the sub-player audio and video module, the sub-machine download file module, the sub-machine editing document module, etc. shown in FIG. 8) has a low-power alarm signal.
图 9示出了根据本发明的实施例的分体式移动通信终端的主机的处理流程图。 如图 9 所示, 根据本发明的实施例的分体式移动通信终端的主机的处理流程, 包 括:  FIG. 9 is a flowchart showing the processing of a host of a split type mobile communication terminal according to an embodiment of the present invention. As shown in FIG. 9, the processing flow of the host of the split type mobile communication terminal according to the embodiment of the present invention includes:
步骤 902 , 主机开启守护进程以监听子机发送的控制信号。  Step 902: The host starts the daemon to monitor the control signal sent by the slave.
步骤 904 , 当接到子机发送的信号后, 解读信号, 并作相关的切换处理。 具体而 言, 针对不同的进程做出相应的处理。  Step 904, after receiving the signal sent by the slave, interpreting the signal and performing related switching processing. Specifically, the corresponding process is handled for different processes.
图 10 示出了根据本发明的实施例的分体式移动通信终端的子机在通话模块接到 低电量报警时的处理流程图。  Fig. 10 is a flow chart showing the processing of the slave of the split type mobile communication terminal when the call module receives a low battery alarm according to an embodiment of the present invention.
如图 10 所示, 根据本发明的实施例的分体式移动通信终端的子机在通话模块接 到低电量报警时的处理流程, 包括:  As shown in FIG. 10, the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention when the call module receives the low battery alarm includes:
步骤 1002 , 蓝牙子机电话通话中。  Step 1002, the Bluetooth slave phone is in a call.
步骤 1004 , 蓝牙子机进行判断是否有低电量报警信号, 若有, 则执行步骤 1006, 若没有, 则跳转至步骤 1002继续进行检测与判断。 Step 1004, the Bluetooth slave determines whether there is a low battery alarm signal, and if so, performs the step 1006, if not, then go to step 1002 to continue the detection and determination.
步骤 1006, 蓝牙子机判断用户是否选择切换至主机接听电话, 若否, 则执行步骤 1008, 若用户选择切换, 则执行步骤 1010。  Step 1006: The Bluetooth slave determines whether the user chooses to switch to the host to answer the call. If not, step 1008 is performed. If the user selects to switch, step 1010 is performed.
步骤 1008, 在用户选择不切换至主机接听电话时, 挂断电话。  Step 1008, when the user chooses not to switch to the host to answer the call, hang up the call.
步骤 1010, 在用户选择切换至主机接听电话时, 子机发送低电报警信号至主机 端。  Step 1010: When the user selects to switch to the host to answer the call, the slave sends a low power alarm signal to the host.
步骤 1012, 主机端接收到子机发送的低电报警信号。  Step 1012: The host receives the low power alarm signal sent by the slave.
步骤 1014, 主机端音频系统切换音频通道准备接听电话。  Step 1014, the host audio system switches the audio channel to prepare to answer the call.
步骤 1016, 主机端继续通话。  In step 1016, the host continues to talk.
图 11 示出了根据本发明的实施例的分体式移动通信终端的子机在音视频播放模 块接到低电量报警时的处理流程图。  Figure 11 is a flow chart showing the processing of the slave of the split type mobile communication terminal when the audio and video playback module receives a low battery alarm according to an embodiment of the present invention.
如图 11 所示, 根据本发明的实施例的分体式移动通信终端的子机在音视频播放 模块接到低电量报警时的处理流程, 包括:  As shown in FIG. 11, the processing flow of the slave of the mobile communication terminal according to the embodiment of the present invention when the audio and video playback module receives the low battery alarm includes:
步骤 1102, 蓝牙子机播放音视频文件。  Step 1102: The Bluetooth slave plays an audio and video file.
步骤 1104, 蓝牙子机进行判断是否有低电量报警信号, 若有, 则执行步骤 Step 1104, the Bluetooth slave determines whether there is a low battery alarm signal, and if so, performs the step
1106, 若没有, 则跳转至步骤 1102继续进行检测与判断。 1106, if not, then jump to step 1102 to continue the detection and determination.
步骤 1106, 蓝牙子机判断用户是否选择切换至主机播放音视频文件, 若否, 则执 行步骤 1108, 若用户选择切换, 则执行步骤 1110。  Step 1106: The Bluetooth slave determines whether the user chooses to switch to the host to play the audio and video files. If not, step 1108 is performed. If the user selects to switch, step 1110 is performed.
步骤 1108, 在用户选择不切换至主机播放音视频文件时, 停止播放音视频文件。 步骤 1110, 在用户选择切换至主机播放音视频文件时, 子机发送低电报警信号至 主机端。  Step 1108: When the user selects not to switch to the host to play the audio and video files, the audio and video files are stopped. Step 1110: When the user selects to switch to the host to play the audio and video files, the slave sends a low power alarm signal to the host.
步骤 1112, 主机端接收到子机发送的低电报警信号。  Step 1112: The host receives the low power alarm signal sent by the slave.
步骤 1114, 主机端进行判断音视频文件是否存在于主机中, 若是, 则执行步骤 1118, 若否, 则执行步骤 1116。  Step 1114: The host side determines whether the audio and video file exists in the host. If yes, step 1118 is performed. If not, step 1116 is performed.
步骤 1116, 子机将音视频文件拷贝到主机中。  In step 1116, the slave copies the audio and video files to the host.
步骤 1118 , 调出主机播放器, 定位到原来播放位置, 继续播放。  Step 1118, call up the host player, locate the original playback position, and continue playing.
图 12 示出了根据本发明的实施例的分体式移动通信终端的子机在下载模块接到 低电量报警时的处理流程图。  Fig. 12 is a flow chart showing the processing of the slave of the split type mobile communication terminal when the download module receives a low battery alarm according to an embodiment of the present invention.
如图 12 所示, 根据本发明的实施例的分体式移动通信终端的子机在下载模块接 到低电量报警时的处理流程, 包括:  As shown in FIG. 12, the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention when the download module receives the low battery alarm includes:
步骤 1202, 蓝牙子机正在下载文件。  In step 1202, the Bluetooth slave is downloading the file.
步骤 1204, 蓝牙子机进行判断是否有低电量报警信号, 若有, 则执行步骤 1206 , 若没有, 则跳转至步骤 1202继续进行检测与判断。  In step 1204, the Bluetooth slave determines whether there is a low battery alarm signal. If yes, step 1206 is performed. If not, the process proceeds to step 1202 to continue the detection and determination.
步骤 1206, 蓝牙子机判断用户是否选择切换至主机继续下载文件, 若否, 则执行 步骤 1208, 若用户选择切换, 则执行步骤 1210。  Step 1206: The Bluetooth slave determines whether the user chooses to switch to the host to continue downloading the file. If not, step 1208 is performed. If the user selects to switch, step 1210 is performed.
步骤 1208, 在用户选择不切换至主机继续下载文件时, 停止下载文件。  Step 1208, when the user chooses not to switch to the host to continue downloading the file, stop downloading the file.
步骤 1210, 在用户选择切换至主机继续下载文件时, 子机发送低电报警信号至主 机端。  Step 1210: When the user selects to switch to the host to continue downloading the file, the slave sends a low power alarm signal to the host.
步骤 1212, 主机端接收到子机发送的低电报警信号。 步骤 1214 , 主机端进行判断下载的文件是否存在于主机中, 若是, 则执行步骤 1218 , 若否, 则执行步骤 1216。 In step 1212, the host receives the low power alarm signal sent by the slave. Step 1214: The host side determines whether the downloaded file exists in the host. If yes, step 1218 is performed. If not, step 1216 is performed.
步骤 1216 , 将子机原来下载的文件拷贝到主机文件系统。  In step 1216, the original downloaded file of the child machine is copied to the host file system.
步骤 1218 , 主机中继续下载文件。  In step 1218, the file continues to be downloaded from the host.
图 13 示出了根据本发明的实施例的分体式移动通信终端的子机在文档编辑模块 接到低电量报警时的处理流程图。  Figure 13 is a flow chart showing the processing of a slave of a split type mobile communication terminal when a document editing module receives a low battery alarm according to an embodiment of the present invention.
如图 13 所示, 根据本发明的实施例的分体式移动通信终端的子机在文档编辑模 块接到低电量报警时的处理流程, 包括:  As shown in FIG. 13, the processing flow of the slave of the split type mobile communication terminal according to the embodiment of the present invention when the document editing module receives the low battery alarm includes:
步骤 1302 , 蓝牙子机正在编辑文档。  In step 1302, the Bluetooth slave is editing the document.
步骤 1304 , 蓝牙子机进行判断是否有低电量报警信号, 若有, 则执行步骤 Step 1304: The Bluetooth slave determines whether there is a low battery alarm signal. If yes, perform the step.
1306 , 若没有, 则跳转至步骤 1302继续进行检测与判断。 1306, if not, then jump to step 1302 to continue the detection and determination.
步骤 1306 , 蓝牙子机判断用户是否选择切换至主机继续编辑文档, 若否, 则执行 步骤 1308 , 若用户选择切换, 则执行步骤 1310。  Step 1306: The Bluetooth slave determines whether the user chooses to switch to the host to continue editing the document. If not, step 1308 is performed. If the user selects to switch, step 1310 is performed.
步骤 1308 , 在用户选择不切换至主机继续编辑文档时, 子机端保存文档并关闭。 步骤 1310 , 在用户选择切换至主机继续编辑文档时, 子机发送低电报警信号至主 机端。  Step 1308: When the user chooses not to switch to the host to continue editing the document, the slave saves the document and closes. Step 1310: When the user selects to switch to the host to continue editing the document, the slave sends a low power alarm signal to the host.
步骤 1312 , 主机端接收到子机发送的低电报警信号。  Step 1312: The host receives the low power alarm signal sent by the slave.
步骤 1314 , 主机端进行判断编辑的文档是否存在于主机中, 若是, 则执行步骤 1318 , 若否, 则执行步骤 1316。  Step 1314: The host performs a judgment on whether the edited document exists in the host. If yes, step 1318 is performed. If not, step 1316 is performed.
步骤 1316 , 将子机原来正在编辑的文档拷贝到主机文件系统。  In step 1316, the document that the child machine originally edited is copied to the host file system.
步骤 1318 , 主机中继续编辑文档。  In step 1318, the document continues to be edited in the host.
在图 7 至图 13 所述的技术方案中, 分体式移动通信终端的子机在处理进程时, 在遇到低电量报警时, 将所处理的进程切换至主机上继续处理。 当然, 需要说明的 是, "主机" 和 "子机" 只是概念上的区别, 可以指定多个相连的终端中的某个终端 为 "主机" , 而其余的终端为 "子机" ; 同时, 也可以指定用户当前使用的为 "主 机" , 而其余的终端为 "子机" 。 可见, "主机" 和 "子机" 的概念实际上可以是相 对的, 实际上, 任一终端的进程均可以切换至另一任意终端上继续执行。  In the technical solutions described in FIG. 7 to FIG. 13, when the slave of the mobile communication terminal processes the process, when the low battery alarm is encountered, the processed process is switched to the host to continue processing. Of course, it should be noted that "host" and "slave" are only conceptual differences, and one of the plurality of connected terminals may be designated as "host", and the remaining terminals are "slave"; It is also possible to specify that the user is currently using "host" and the remaining terminals are "slave". It can be seen that the concepts of "host" and "slave" can be actually opposite. In fact, the process of any terminal can be switched to another terminal to continue execution.
根据本发明的实施方式, 还提供了一种存储在非易失性机器可读介质上的程序产 品, 用于包含至少两个相连终端的系统的电源管理, 所述程序产品包括用于使计算机 系统执行以下步骤的机器可执行指令: 检测所述系统中的指定终端的电量消耗情况; 当所述电量消耗情况表明所述指定终端的剩余电量小于或等于预设电量、 和 /或实时耗 电量大于或等于预设耗电量时, 所述指定终端终止处理指定的实时进程, 并切换至所 述系统中与所述指定终端相连的至少一个其他终端对所述指定的实时进程进行处理。  According to an embodiment of the present invention, there is also provided a program product stored on a non-transitory machine readable medium for power management of a system comprising at least two connected terminals, the program product comprising The system executes the following steps: the machine executable instruction: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or real-time power consumption When the quantity is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process.
根据本发明的实施方式, 还提供了一种非易失机器可读介质, 存储有用于包含至 少两个相连终端的系统的电源管理的程序产品, 所述程序产品包括用于使计算机系统 执行以下步骤的机器可执行指令: 检测所述系统中的指定终端的电量消耗情况; 当所 述电量消耗情况表明所述指定终端的剩余电量小于或等于预设电量、 和 /或实时耗电量 大于或等于预设耗电量时, 所述指定终端终止处理指定的实时进程, 并切换至所述系 统中与所述指定终端相连的至少一个其他终端对所述指定的实时进程进行处理。 根据本发明的实施方式, 还提供了一种机器可读程序, 所述程序使机器执行如上 所述技术方案中任一所述的电源管理方法。 According to an embodiment of the present invention, there is also provided a non-volatile machine readable medium storing a program product for power management of a system including at least two connected terminals, the program product comprising for causing a computer system to execute the following The machine executable instruction of the step: detecting a power consumption condition of the designated terminal in the system; when the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to a preset power, and/or the real-time power consumption is greater than or When the power consumption is equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and switches to at least one other terminal connected to the designated terminal in the system to process the specified real-time process. According to an embodiment of the present invention, there is also provided a machine readable program, the program causing a machine to execute the power management method according to any one of the technical solutions described above.
根据本发明的实施方式, 还提供了一种存储有机器可读程序的存储介质, 其中, 所述机器可读程序使得机器执行如上所述技术方案中任一所述的电源管理方法。  According to an embodiment of the present invention, there is further provided a storage medium storing a machine readable program, wherein the machine readable program causes a machine to execute the power management method according to any one of the technical solutions described above.
以上结合附图详细说明了本发明的技术方案, 考虑到在现有技术中, 无法实现 主、 子机之间切换的智能化与连续性, 而且主、 子机之间的电源管理能力无法满足用 户的需求。 因此本发明提出了一种电源管理方法, 可以提升相连终端之间的电源管理 能力, 并实现相连终端之间进程切换的智能化与连续性, 以保证较强的实用性和较高 的用户体验度  The technical solution of the present invention is described in detail above with reference to the accompanying drawings. It is considered that in the prior art, the intelligence and continuity of switching between the master and the slave cannot be realized, and the power management capability between the master and the slave cannot be satisfied. User needs. Therefore, the present invention provides a power management method, which can improve the power management capability between connected terminals, and realize the intelligent and continuous process switching between connected terminals to ensure strong practicability and high user experience. Degree
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种电源管理方法, 其特征在于, 用于包含至少两个相连终端的 系统, 所述电源管理方法包括: A power management method, characterized in that, for a system including at least two connected terminals, the power management method includes:
检测所述系统中的指定终端的电量消耗情况;  Detecting a power consumption condition of a designated terminal in the system;
当所述电量消耗情况表明所述指定终端的剩余电量小于或等于预设电 量、 和 /或实时耗电量大于或等于预设耗电量时, 所述指定终端终止处理 指定的实时进程, 并切换至所述系统中与所述指定终端相连的至少一个其 他终端对所述指定的实时进程进行处理。  When the power consumption condition indicates that the remaining power of the designated terminal is less than or equal to the preset power, and/or the real-time power consumption is greater than or equal to the preset power consumption, the designated terminal terminates processing the specified real-time process, and Switching to at least one other terminal connected to the designated terminal in the system processes the specified real-time process.
2. 根据权利要求 1 所述的电源管理方法, 其特征在于, 所述实时耗 电量大于或等于所述预设耗电量包括:  2. The power management method according to claim 1, wherein the real-time power consumption is greater than or equal to the preset power consumption comprises:
所述指定终端的实时功耗值大于或等于预设功耗值、 和 /或所述指定 终端在预设时间段内的电量消耗量大于或等于预设电量消耗值。  The real-time power consumption value of the designated terminal is greater than or equal to the preset power consumption value, and/or the power consumption amount of the designated terminal within the preset time period is greater than or equal to the preset power consumption value.
3. 根据权利要求 1 所述的电源管理方法, 其特征在于, 所述指定的 实时进程为所述指定终端中最晚建立的进程、 或在所述指定终端中正在运 行的所有进程中对应的耗电量最大的进程。  The power management method according to claim 1, wherein the specified real-time process is a process that is newly established in the specified terminal, or a corresponding one of all processes running in the designated terminal. The process that consumes the most power.
4. 根据权利要求 1所述的电源管理方法, 其特征在于, 还包括: 所述指定终端将所述指定的实时进程对应的处理进度信息同步至所述 至少一个其他终端, 以由所述至少一个其他终端根据所述处理进度信息继 续处理所述指定的实时进程;  The power management method according to claim 1, further comprising: the designated terminal synchronizing processing progress information corresponding to the specified real-time process to the at least one other terminal, to be at least An other terminal continues to process the specified real-time process according to the processing progress information;
其中, 当所述指定的实时进程存在对应的被处理文件、 且所述至少一 个其他终端中不存在所述被处理文件时, 所述指定终端还将所述被处理文 件传输至所述至少一个其他终端。  Wherein, when the specified real-time process has a corresponding processed file, and the processed file does not exist in the at least one other terminal, the designated terminal further transmits the processed file to the at least one Other terminals.
5. 根据权利要求 1 至 4 中任一项所述的电源管理方法, 其特征在 于, 还包括:  The power management method according to any one of claims 1 to 4, further comprising:
判断所述其他终端是否满足对所述指定的实时进程的处理条件, 若不 满足, 则将所述指定的实时进程交由所述其他终端处理, 否则继续由所述 指定终端进行处理。 Determining whether the other terminal satisfies the processing condition of the specified real-time process, and if not, submits the specified real-time process to the other terminal for processing, otherwise continues to be processed by the designated terminal.
6. 根据权利要求 5 所述的电源管理方法, 其特征在于, 所述处理条 件包括以下至少之一或其组合: 6. The power management method according to claim 5, wherein the processing condition comprises at least one of the following or a combination thereof:
剩余电量大于或等于预设电量、 和 /或实时耗电量小于或等于预设耗 电量, 配置有处理所述实时进程的硬件模块和 /或软件功能, 属于预设的 用于处理所述指定的实时进程的终端。  The remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with a hardware module and/or a software function for processing the real-time process, which is preset for processing the The terminal of the specified real-time process.
7. 根据权利要求 5 所述的电源管理方法, 其特征在于, 若同时存在 多个所述其他终端满足所述处理条件, 则选择其中当前剩余电量最多的终 端, 用于处理所述指定的实时进程。  The power management method according to claim 5, wherein if a plurality of the other terminals satisfy the processing condition at the same time, selecting a terminal in which the current remaining power is the most, for processing the specified real-time process.
8. 根据权利要求 1 至 4 中任一项所述的电源管理方法, 其特征在 于, 还包括:  The power management method according to any one of claims 1 to 4, further comprising:
若所述指定的实时进程为通信进程, 且与所述指定终端相连的其他终 端中未配置通信模块, 则所述指定终端使自身的通信模块继续运行,  If the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the designated terminal, the designated terminal continues to operate its own communication module.
其中, 所述指定终端的通信模块将接收到的下行通信信号解码后传输 至所述其他终端进行处理, 并将接收到来自所述其他终端的上行通信数据 编码后发送。  The communication module of the designated terminal decodes the received downlink communication signal, transmits it to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
9. 一种终端, 其特征在于, 与至少一个其他终端相连, 所述终端包 括:  A terminal, characterized in that it is connected to at least one other terminal, the terminal comprising:
电量检测单元, 用于检测所述终端的电量消耗情况;  a power detecting unit, configured to detect a power consumption situation of the terminal;
处理单元, 用于在所述电量消耗情况表明所述终端的剩余电量小于或 等于预设电量、 和 /或实时耗电量大于或等于预设耗电量时, 所述终端终 止处理所述终端中指定的实时进程;  a processing unit, configured to: when the power consumption condition indicates that the remaining power of the terminal is less than or equal to a preset power, and/or the real-time power consumption is greater than or equal to a preset power consumption, the terminal terminates processing the terminal The real-time process specified in ;
信息同步单元, 将所述指定的实时进程的信息同步至至少一个所述其 他终端, 以切换至由至少一个所述其他终端对所述指定的实时进程进行处 理。  The information synchronization unit synchronizes the information of the specified real-time process to at least one of the other terminals to switch to processing the specified real-time process by at least one of the other terminals.
10. 根据权利要求 9所述的终端, 其特征在于, 所述实时耗电量大于 或等于所述预设耗电量包括:  The terminal according to claim 9, wherein the real-time power consumption is greater than or equal to the preset power consumption comprises:
所述终端的实时功耗值大于或等于预设功耗值、 和 /或所述终端在预 设时间段内的电量消耗量大于或等于预设电量消耗量。 The real-time power consumption value of the terminal is greater than or equal to the preset power consumption value, and/or the power consumption amount of the terminal in the preset time period is greater than or equal to the preset power consumption amount.
11. 根据权利要求 9所述的终端, 其特征在于, 所述指定的实时进程 为所述终端中最晚建立的进程、 或在所述终端中正在运行的所有进程中对 应的耗电量最大的进程。 The terminal according to claim 9, wherein the specified real-time process is the latest power generation process in the terminal, or the corresponding power consumption is the largest among all processes running in the terminal. Process.
12. 根据权利要求 9所述的终端, 其特征在于, 所述信息同步单元还 用于将所述指定的实时进程对应的处理进度信息同步至所述至少一个其他 终端, 以由所述至少一个其他终端根据所述处理进度信息继续处理所述指 定的实时进程;  The terminal according to claim 9, wherein the information synchronization unit is further configured to synchronize processing progress information corresponding to the specified real-time process to the at least one other terminal, by the at least one The other terminal continues to process the specified real-time process according to the processing progress information;
所述终端还包括:  The terminal further includes:
文件传输单元, 用于当所述指定的实时进程存在对应的被处理文件、 且所述至少一个其他终端中不存在所述被处理文件时, 将所述被处理文件 传输至所述至少一个其他终端。  a file transfer unit, configured to: when the specified real-time process has a corresponding processed file, and the processed file does not exist in the at least one other terminal, transmit the processed file to the at least one other terminal.
13. 根据权利要求 9 至 12 中任一项所述的终端, 其特征在于, 还包 括:  The terminal according to any one of claims 9 to 12, further comprising:
判断单元, 用于判断所述至少一个其他终端是否满足对所述指定的实 时进程的处理条件;  a determining unit, configured to determine whether the at least one other terminal satisfies processing conditions for the specified real-time process;
其中, 在判断结果为满足的情况下, 所述终端将所述指定的实时进程 交由所述其他终端处理;  Wherein, in a case that the determination result is satisfied, the terminal submits the specified real-time process to the other terminal for processing;
在判断结果为不满足的情况下, 所述处理单元继续处理所述指定的实 时进程。  In the case where the judgment result is not satisfied, the processing unit continues to process the specified real time process.
14. 根据权利要求 13 所述的终端, 其特征在于, 所述处理条件包括 以下至少之一或其组合:  The terminal according to claim 13, wherein the processing condition comprises at least one of the following or a combination thereof:
剩余电量大于或等于预设电量、 和 /或实时耗电量小于或等于预设耗 电量, 配置有处理所述实时进程的硬件模块和 /或软件功能, 属于预设的 用于处理所述指定的实时进程的终端。  The remaining power is greater than or equal to the preset power, and/or the real-time power consumption is less than or equal to the preset power consumption, and is configured with a hardware module and/or a software function for processing the real-time process, which is preset for processing the The terminal of the specified real-time process.
15. 根据权利要求 13所述的终端, 其特征在于, 还包括:  The terminal according to claim 13, further comprising:
选择单元, 用于在同时存在多个所述其他终端满足所述处理条件时, 选择其中当前剩余电量最多的终端, 用于处理所述指定的实时进程。  And a selecting unit, configured to: when a plurality of the other terminals meet the processing condition at the same time, select a terminal in which the current remaining power is the most, for processing the specified real-time process.
16. 根据权利要求 9 至 12 中任一项所述的终端, 其特征在于, 还包 括: 功能模块管理单元, 在所述指定的实时进程为通信进程, 且与所述终 端相连的其他终端中未配置通信模块的情况下, 使所述终端的通信模块继 续运行, The terminal according to any one of claims 9 to 12, further comprising: a function module management unit, if the specified real-time process is a communication process, and the communication module is not configured in another terminal connected to the terminal, the communication module of the terminal continues to operate,
其中, 所述终端的通信模块将接收到的下行通信信号解码后传输至所 述其他终端进行处理, 并将接收到来自所述其他终端的上行通信数据编码 后发送。  The communication module of the terminal decodes the received downlink communication signal, transmits it to the other terminal for processing, and encodes and receives the uplink communication data received from the other terminal.
PCT/CN2013/080362 2013-07-29 2013-07-29 Power management method and terminal WO2015013874A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/080362 WO2015013874A1 (en) 2013-07-29 2013-07-29 Power management method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/080362 WO2015013874A1 (en) 2013-07-29 2013-07-29 Power management method and terminal

Publications (1)

Publication Number Publication Date
WO2015013874A1 true WO2015013874A1 (en) 2015-02-05

Family

ID=52430824

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080362 WO2015013874A1 (en) 2013-07-29 2013-07-29 Power management method and terminal

Country Status (1)

Country Link
WO (1) WO2015013874A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471639A (en) * 2018-03-07 2018-08-31 深圳市沃特沃德股份有限公司 Wearable device and extension method in cruise duration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070238440A1 (en) * 2006-03-29 2007-10-11 Uttam Sengupta Method and apparatus for a power-efficient framework to maintain data synchronization of a mobile personal computer to simulate a connected scenario
CN101252617A (en) * 2008-03-25 2008-08-27 宇龙计算机通信科技(深圳)有限公司 Synchronizing method and synchronizing system of linkmen between host computer and secondary computer
CN101741909A (en) * 2009-12-11 2010-06-16 中国电信股份有限公司 Communication information terminal and inter-module process calling method thereof
CN102932910A (en) * 2012-10-30 2013-02-13 深圳凯虹移动通信有限公司 Internet dual-mobile system and communication method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070238440A1 (en) * 2006-03-29 2007-10-11 Uttam Sengupta Method and apparatus for a power-efficient framework to maintain data synchronization of a mobile personal computer to simulate a connected scenario
CN101252617A (en) * 2008-03-25 2008-08-27 宇龙计算机通信科技(深圳)有限公司 Synchronizing method and synchronizing system of linkmen between host computer and secondary computer
CN101741909A (en) * 2009-12-11 2010-06-16 中国电信股份有限公司 Communication information terminal and inter-module process calling method thereof
CN102932910A (en) * 2012-10-30 2013-02-13 深圳凯虹移动通信有限公司 Internet dual-mobile system and communication method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471639A (en) * 2018-03-07 2018-08-31 深圳市沃特沃德股份有限公司 Wearable device and extension method in cruise duration

Similar Documents

Publication Publication Date Title
WO2019232912A1 (en) Wireless headset role switching method, wireless headset and tws headset
US8255724B2 (en) Control of awake time in mobile device with event based time period followed by sleep mode algorithm
JP2018041483A (en) Techniques for utilizing computer input device with multiple computers
US20160323826A1 (en) Multimode and power-saving method of multimedia transmission and system thereof
EP2592877B1 (en) Communication apparatus, control method for communication apparatus and program
WO2013185679A1 (en) Method and device for controlling power supply and charging of cellular phone
KR101826648B1 (en) Device control method and device
WO2020215862A1 (en) Projection screen transmitter, projection screen transmitting system, and projection screen system
WO2021022720A1 (en) Bluetooth-based data transmission method, storage medium and terminal
WO2014023259A1 (en) Multifunctional intelligent terminal and energy management method thereof
WO2015021892A1 (en) Power consumption reduction method, wi-fi master controller, and wi-fi gateway
CN104866063B (en) A kind of method and electronic equipment of information processing
WO2012075750A1 (en) Method, system and mobile terminal for controlling mobile terminal projection demo
CN111093105A (en) Remote control method and device
CN104243720A (en) Electricity saving method of terminal device and terminal device
WO2014114075A1 (en) Mobile hotspot wakeup processing method and device
JP2017530568A (en) Power consumption control method for wearable device and wearable device
CN112616176B (en) Wake-up method and device and control method and device of equipment
Hong et al. Virtual connection: Selective connection system for energy-efficient wearable consumer electronics
JP2015176353A (en) Information processing device, control method thereof, and program
WO2015013874A1 (en) Power management method and terminal
CN114430542A (en) Energy saving method and terminal equipment
WO2014113991A1 (en) Nfc configuration method, nfc data transmission method, controller and nfc controller
WO2023098055A1 (en) Low-power-consumption mode starting method and apparatus, storage medium, and electronic apparatus
CN113825126B (en) Control method and device

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: 13890286

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13890286

Country of ref document: EP

Kind code of ref document: A1