CN106775856A - A kind of working mode of mobile terminal changing method and mobile terminal - Google Patents

A kind of working mode of mobile terminal changing method and mobile terminal Download PDF

Info

Publication number
CN106775856A
CN106775856A CN201611118228.6A CN201611118228A CN106775856A CN 106775856 A CN106775856 A CN 106775856A CN 201611118228 A CN201611118228 A CN 201611118228A CN 106775856 A CN106775856 A CN 106775856A
Authority
CN
China
Prior art keywords
mode
firmware
thread
mobile terminal
realized
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201611118228.6A
Other languages
Chinese (zh)
Other versions
CN106775856B (en
Inventor
蒋世民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611118228.6A priority Critical patent/CN106775856B/en
Publication of CN106775856A publication Critical patent/CN106775856A/en
Application granted granted Critical
Publication of CN106775856B publication Critical patent/CN106775856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Abstract

The embodiment of the invention discloses a kind of working mode of mobile terminal changing method and mobile terminal, including:Detect whether to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to switch to the second mode of operation by the first mode of operation;When detection receives the mode of operation switching command, according to the mode of operation switching command, and during corresponding first firmware of the first mode of operation of unloading is realized by first thread, corresponding first firmware of the first mode of operation of unloading is realized by first thread, corresponding second firmware of the second mode of operation of loading is realized by the second thread, the mobile terminal is switched to second mode of operation by the first mode of operation.The embodiment of the invention also discloses corresponding mobile terminal.The embodiment of the present invention is conducive to accelerating the switch speed between two kinds of mode of operations of WiFi workstation modes and WiFi access point modes of mobile terminal.

Description

A kind of working mode of mobile terminal changing method and mobile terminal
Technical field
The present invention relates to communication technical field, and in particular to a kind of working mode of mobile terminal changing method and movement are eventually End.
Background technology
WiFi (Wireless Fidelity) is the industrial standard (IEEE of a wireless communication of IEEE definition 802.11).There is the mobile communication terminal (such as mobile phone) of WiFi function in the prior art, its WiFi function may act as WiFi STA (Wireless Fidelity Station, WiFi work station) realize that is, the mobile communication terminal is operated in Under WiFi workstation modes, surfed the Net as terminal connection route device, it is also possible to as WiFi AP (Wireless Fidelity Access Point, WiFi access point) access other WiFi STA, i.e., as access point for peripheral equipment provides network insertion Service.
Because WiFi workstation modes and WiFi access point modes are two kinds of different mode of operations, thus mobile terminal without By being operated under any mode of operation, it is required for loading corresponding firmware.At present, mobile terminal in WiFi workstation modes and When switching mutually between two kinds of mode of operations of WiFi access point modes, above-mentioned handoff procedure has that switch speed is slow.
The content of the invention
A kind of working mode of mobile terminal changing method and mobile terminal are the embodiment of the invention provides, to accelerate movement Switch speed between two kinds of mode of operations of WiFi workstation modes and WiFi access point modes of terminal.
In a first aspect, the embodiment of the present invention provides a kind of working mode of mobile terminal changing method, including:
Detect whether to receive mode of operation switching command, the mode of operation switching command be used to indicating mobile terminal by First mode of operation switches to the second mode of operation;
When detection receives the mode of operation switching command, according to the mode of operation switching command, by first Thread realizes corresponding first firmware of the first mode of operation of unloading, and is realizing the first mode of operation pair of unloading by first thread During the first firmware answered, corresponding second firmware of the second mode of operation of loading is realized by the second thread, will be described Mobile terminal is switched to second mode of operation by the first mode of operation;Or, receive the mode of operation in detection and cut When changing instruction, according to the mode of operation switching command, loading the second mode of operation corresponding second is realized by the second thread Firmware, and during corresponding second firmware of the second mode of operation of loading is realized by the second thread, by first thread Unloading corresponding first firmware of the first mode of operation is realized, the mobile terminal is switched to described the by the first mode of operation Two mode of operations.
Second aspect, the embodiment of the invention provides a kind of mobile terminal, including:
Detection unit, for detecting whether receiving mode of operation switching command, the mode of operation switching command is used for Mobile terminal is indicated to switch to the second mode of operation by the first mode of operation;
Switch unit, for when detection receives the mode of operation switching command, being switched according to the mode of operation Instruction, realizes corresponding first firmware of the first mode of operation of unloading, and realizing unloading by first thread by first thread During corresponding first firmware of first mode of operation, loading the second mode of operation corresponding second is realized by the second thread Firmware, second mode of operation is switched to by the mobile terminal by the first mode of operation;Or, the switch unit, For when detection receives the mode of operation switching command, according to the mode of operation switching command, by the second thread Corresponding second firmware of the second mode of operation of loading is realized, and is realizing that the second mode of operation of loading is corresponding by the second thread During second firmware, corresponding first firmware of the first mode of operation of unloading is realized by first thread, by the movement Terminal is switched to second mode of operation by the first mode of operation.
The third aspect, the embodiment of the invention provides a kind of mobile terminal, including:
Processor, memory, communication interface and communication bus, the processor, the memory and the communication interface Mutual communication is connected and completed by the communication bus;
The memory storage has executable program code, and the communication interface is used for radio communication;
The processor is used to call the executable program code in the memory, performs such as the embodiment of the present invention Part or all of step in first aspect either method.
As can be seen that in working mode of mobile terminal changing method provided in an embodiment of the present invention, mobile terminal detection is No to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to be cut by the first mode of operation The second mode of operation is changed to, when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, second mode of operation is switched to by the mobile terminal by the first mode of operation.It can be seen that, move Dynamic terminal realizes corresponding first firmware of the first mode of operation of unloading by first thread, and loading second is realized by the second thread Corresponding second firmware of mode of operation, it is achieved thereby that corresponding first firmware of the first mode of operation of unloading works with loading second The parallel processing of corresponding second firmware of pattern, so as to be conducive to the WiFi workstation modes and WiFi of accelerating mobile terminal to access Switch speed between two kinds of mode of operations of dot pattern.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of working mode of mobile terminal changing method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another working mode of mobile terminal changing method disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another working mode of mobile terminal changing method disclosed in the embodiment of the present invention;
Fig. 4-1 is a kind of unit composition frame chart of mobile terminal disclosed in the embodiment of the present invention;
Fig. 4-2 is a kind of unit composition frame chart of mobile terminal disclosed in the embodiment of the present invention;
Fig. 5 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing etc. are for distinguishing Different objects, rather than for describing particular order.Additionally, term " comprising " and " having " and their any deformations, it is intended that It is to cover non-exclusive including.Process, method, system, product or the equipment for for example containing series of steps or unit do not have The step of having listed or unit are defined in, but alternatively also include the step of not listing or unit, or alternatively also wrapped Include for these processes, method, product or other intrinsic steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
In order to be best understood from a kind of working mode of mobile terminal changing method and mobile terminal disclosed in the embodiment of the present invention, The embodiment of the present invention is described in detail below.
Fig. 1 is referred to, Fig. 1 is to the embodiment of the invention provides a kind of working mode of mobile terminal changing method, such as Fig. 1 institutes Show, this working mode of mobile terminal changing method includes:
S101, detect whether to receive mode of operation switching command, the mode of operation switching command is used to indicate movement Terminal switches to the second mode of operation by the first mode of operation.
Wherein, the mobile terminal includes but is not limited to smart mobile phone (Smart Phone), panel computer, notebook electricity The portable electric appts such as brain, personal digital assistant.This working mode of mobile terminal changing method can also be applied to include platform The immobile terminals such as formula computer.
Wherein, mode of operation includes WiFi workstation modes or WiFi access point modes, and WiFi workstation modes refer to work For client connection route device is surfed the Net, it will be appreciated by those skilled in the art that it refers to open the end to open WiFi workstation modes WiFi STA (work station) function at end, or referred to as open WiFi;WiFi access point modes refer to as WiFi access points (Wi-Fi hotspot) is accessed for other-end, it will be appreciated by those skilled in the art that it refers to open described to open WiFi access point modes WiFi AP (access point) function of terminal, or referred to as open focus.
The terminal, with WiFi STA functions, can be linked under WiFi workstation modes by its WiFi chip Other WiFi AP are (for example:Wireless router, mobile router or personal router), and apply for IP address to the WiFi AP, With by network of WiFi network access enterprise networks, internet or operator etc..The terminal has under WiFi access point modes There are WiFi AP functions, its WiFi chip is as access point at least one WiFi station devices on periphery provide WiMAX Access service, network of enterprise network, internet or operator etc. is linked into by above-mentioned at least one WiFi station devices.
Here, the mode of operation switching command can be local instruction, or remote control command.When the work Operation mode switching command is when locally instructing, can to receive the mode of operation switching triggered by user by human-computer interaction interface and refer to Order.
S102, when detection receives the mode of operation switching command, according to the mode of operation switching command, pass through First thread realizes corresponding first firmware of the first mode of operation of unloading, and is realizing the first Working mould of unloading by first thread During corresponding first firmware of formula, corresponding second firmware of the second mode of operation of loading is realized by the second thread, will The mobile terminal is switched to second mode of operation by the first mode of operation.
Herein, regard as realizing that the average time of corresponding first firmware of the first mode of operation of unloading is big by first thread In the average time that corresponding second firmware of the second mode of operation of loading is realized by the second thread, or, when by First Line The average time that Cheng Shixian unloads corresponding first firmware of the first mode of operation realizes the second work of loading less than by the second thread During the average time of corresponding second firmware of operation mode, the mobile terminal receives the mode of operation switching command in detection When, can also carry out following operation:According to the mode of operation switching command, receive the mode of operation switching in detection and refer to When making, according to the mode of operation switching command, corresponding second firmware of the second mode of operation of loading is realized by the second thread, And during corresponding second firmware of the second mode of operation of loading is realized by the second thread, realize unloading by first thread Corresponding first firmware of the first mode of operation is carried, the mobile terminal is switched to second work by the first mode of operation Pattern.
Specifically, in the embodiment of the present invention firmware (Firmware) refers to run on MAC (Medium Access Control, medium access control) layer agreement or program, alternatively, the firmware include it is corresponding with WiFi workstation modes Firmware, and the firmware corresponding with WiFi access point modes.
As can be seen that in working mode of mobile terminal changing method provided in an embodiment of the present invention, mobile terminal detection is No to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to be cut by the first mode of operation The second mode of operation is changed to, when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, second mode of operation is switched to by the mobile terminal by the first mode of operation.It can be seen that, move Dynamic terminal realizes corresponding first firmware of the first mode of operation of unloading by first thread, and loading second is realized by the second thread Corresponding second firmware of mode of operation, it is achieved thereby that corresponding first firmware of the first mode of operation of unloading works with loading second The parallel processing of corresponding second firmware of pattern, so as to be conducive to the WiFi workstation modes and WiFi of accelerating mobile terminal to access Switch speed between two kinds of mode of operations of dot pattern.
Optionally, first mode of operation is WiFi workstation modes, and second mode of operation is WiFi access points Pattern;Or, first mode of operation is WiFi access point modes, and second mode of operation is WiFi workstation modes.
Optionally, when first mode of operation is WiFi workstation modes, second mode of operation is accessed for WiFi It is described to detect whether to receive mode of operation switching command during dot pattern, including:
When the mobile terminal has been switched on WiFi workstation modes, detect whether to receive unlatching WiFi access point moulds The instruction of formula;
When first mode of operation is WiFi access point modes, second mode of operation is WiFi workstation modes, It is described when detecting whether to receive mode of operation switching command, including:
When the mobile terminal has been switched on WiFi access point modes, detect whether to receive unlatching WiFi work station moulds The instruction of formula.
Optionally, it is described when detection receives the mode of operation switching command, referred to according to mode of operation switching Order, unloading corresponding first firmware of the first mode of operation is realized by first thread, and is realizing unloading the by first thread During corresponding first firmware of one mode of operation, realize that the second mode of operation of loading corresponding second is consolidated by the second thread Part, can be by the specific implementation that the first mode of operation is switched to second mode of operation by the mobile terminal:
The first mean time that corresponding first firmware of the first mode of operation of unloading is realized by first thread that acquisition prestores Between;
The second mean time that corresponding second firmware of the second mode of operation of loading is realized by the second thread that acquisition prestores Between;
Based on first average time and second average time, it is determined that perform realizing unloading the by first thread Corresponding first firmware of one mode of operation realizes loading corresponding second firmware of the second mode of operation with performing by the second thread Between target time interval;
The first moment of the mode of operation switching command is received in detection, the first work of unloading is realized by first thread Corresponding first firmware of operation mode, at the second moment, realizes that the second mode of operation of loading corresponding second is consolidated by the second thread Part, wherein, second moment is the target time interval with the time interval at first moment.
Specifically, corresponding first firmware of the first mode of operation of unloading is realized by first thread, sets up another the second thread and lead to Cross the second thread and realize loading corresponding second firmware of the second mode of operation, but too early, the meeting that the time of the second thread starts CPU internal memories are taken, the mobile terminal is subtracted by the switch speed that the first mode of operation is switched to second mode of operation on the contrary Slowly, if the time of the second thread start it is too late if, again can the corresponding firmware of the second mode of operation not yet load completion.Cause This, realize first average time of corresponding first firmware of the first mode of operation of unloading and pre- by first thread based on prestoring That deposits realizes the second average time of corresponding second firmware of the second mode of operation of loading, determining the second process by the second thread When start, and then reduce CPU usage, reduce system power dissipation, acquiescence realizes that unloading first works by first thread herein First average time of corresponding first firmware of pattern realizes the second mode of operation of loading corresponding the more than by the second thread Second average time of two firmwares
If realizing the first average time of corresponding first firmware of the first mode of operation of unloading less than logical by first thread The second average time that the second thread realizes corresponding second firmware of the second mode of operation of loading is spent, it is described to receive institute in detection When stating mode of operation switching command, according to the mode of operation switching command, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, and during corresponding second firmware of the second mode of operation of loading is realized by the second thread, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, by the mobile terminal by the first mode of operation Being switched to second mode of operation can be:
The first mean time that corresponding first firmware of the first mode of operation of unloading is realized by first thread that acquisition prestores Between;
The second mean time that corresponding second firmware of the second mode of operation of loading is realized by the second thread that acquisition prestores Between;
Based on first average time and second average time, it is determined that perform realizing unloading the by first thread Corresponding first firmware of one mode of operation realizes loading corresponding second firmware of the second mode of operation with performing by the second thread Between target time interval;
The first moment of the mode of operation switching command is received in detection, the second work of loading is realized by the second thread Corresponding second firmware of operation mode, at the second moment, realizes that the first mode of operation of unloading corresponding first is consolidated by first thread Part, wherein, second moment is the target time interval with the time interval at first moment.
For example, what is prestored realizes that unload corresponding first firmware of the first mode of operation first is flat by first thread The equal time is 2s, and what is prestored realizes the second average time of corresponding second firmware of the second mode of operation of loading by the second thread It is 5s, it is thus determined that perform realizing that corresponding first firmware of the first mode of operation of unloading passes through second with execution by first thread Thread realizes that the target time interval between corresponding second firmware of the second mode of operation of loading is 3s, i.e., receive institute in detection The first moment of mode of operation switching command is stated, corresponding second firmware of the second mode of operation of loading is realized by the second thread, At the second moment, corresponding first firmware of the first mode of operation of unloading is realized by first thread, wherein, second moment with The time interval at first moment is 3s.
If what is prestored realizes the first average time of corresponding first firmware of the first mode of operation of unloading by first thread It is 5s, what is prestored realizes that the second average time of corresponding second firmware of the second mode of operation of loading is 2s by the second thread, It is thus determined that perform realizing that corresponding first firmware of the first mode of operation of unloading passes through the second thread with execution by first thread Realize that the target time interval between corresponding second firmware of the second mode of operation of loading is 3s, i.e., receive the work in detection At first moment of operation mode switching command, unloading corresponding first firmware of the first mode of operation is realized by first thread, the At two moment, loading corresponding second firmware of the second mode of operation is realized by the second thread, wherein, second moment with it is described The time interval at the first moment is 3s.
Optionally, it is described to be referred to according to mode of operation switching when detection receives the mode of operation switching command Order, unloading corresponding first firmware of the first mode of operation is realized by first thread, and is realizing unloading the by first thread During corresponding first firmware of one mode of operation, realize that the second mode of operation of loading corresponding second is consolidated by the second thread Before part, or, when detection receives the mode of operation switching command, according to the mode of operation switching command, pass through Second thread realizes corresponding second firmware of the second mode of operation of loading, and is realizing the second Working mould of loading by the second thread During corresponding second firmware of formula, before realizing corresponding first firmware of the first mode of operation of unloading by first thread, The mobile terminal can also carry out following operation:
Detect the current CPU usage of the mobile terminal whether less than or equal to predetermined threshold value and/or the mobile terminal Whether current dump energy is more than or equal to default power threshold;
The current CPU usage of the mobile terminal is being detected less than or equal to predetermined threshold value and/or the mobile terminal When current dump energy is more than or equal to default power threshold, execution is described according to the mode of operation switching command, passes through First thread realizes corresponding first firmware of the first mode of operation of unloading, and the second mode of operation pair of loading is realized by the second thread The step of the second firmware answered.
Specifically, corresponding first firmware of the first mode of operation of unloading is realized by first thread, sets up another the second thread and lead to Cross the second thread and realize corresponding second firmware of the second mode of operation of loading, but, setting up another the second thread can increase CPU usage And system power dissipation, therefore firstly the need of current CPU usage and current residual electricity is checked, it is described mobile whole detecting Hold current CPU usage less than or equal to predetermined threshold value and/or the current dump energy of the mobile terminal more than or equal to pre- If during power threshold, just performing and realizing corresponding first firmware of the first mode of operation of unloading by first thread, by the second line The step of Cheng Shixian loads the second mode of operation corresponding second firmware, is otherwise performed and is realized unloading the first work by first thread Corresponding first firmware of operation mode, is realizing that corresponding first firmware of the first mode of operation of unloading completes it by first thread Afterwards, corresponding second firmware of the second mode of operation of loading is realized by first thread.
It is consistent with the embodiment shown in above-mentioned Fig. 1, Fig. 2 is referred to, Fig. 2 is another shifting provided in an embodiment of the present invention The schematic flow sheet of dynamic terminal work mode changing method.As shown in Fig. 2 this working mode of mobile terminal changing method includes:
S201, the first mode of operation being currently at when mobile terminal are WiFi workstation modes, detect whether to receive Open the instruction of WiFi access point modes.
S202, detection receive the instruction of the unlatchings WiFi access point modes when, by first thread realize unloading Corresponding first firmware of WiFi workstation modes, and realizing that the first mode of operation of unloading corresponding first is consolidated by first thread During part, corresponding second firmware of loading WiFi access point modes is realized by the second thread, by the mobile terminal The WiFi access point modes are switched to by WiFi workstation modes.
As can be seen that in working mode of mobile terminal changing method provided in an embodiment of the present invention, mobile terminal detection is No to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to be cut by the first mode of operation The second mode of operation is changed to, when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, second mode of operation is switched to by the mobile terminal by the first mode of operation.It can be seen that, move Dynamic terminal realizes corresponding first firmware of the first mode of operation of unloading by first thread, and loading second is realized by the second thread Corresponding second firmware of mode of operation, it is achieved thereby that corresponding first firmware of the first mode of operation of unloading works with loading second The parallel processing of corresponding second firmware of pattern, so as to be conducive to the WiFi workstation modes and WiFi of accelerating mobile terminal to access Switch speed between two kinds of mode of operations of dot pattern.
It is consistent with the embodiment shown in above-mentioned Fig. 1, Fig. 3 is referred to, Fig. 3 is another shifting provided in an embodiment of the present invention The schematic flow sheet of dynamic terminal work mode changing method.As shown in figure 3, this working mode of mobile terminal changing method includes:
S301, when the mobile terminal has been switched on WiFi access point modes, detect whether to receive unlatching WiFi works Make the instruction of station pattern.
Wherein, the terminal is under WiFi access point modes, its WiFi chip as access point by WiFi, bluetooth or The mode of USB provides wireless broadband access service at least one WiFi station devices on periphery, by above-mentioned at least one WiFi station devices are linked into network of enterprise network, internet or operator etc..Therefore, the terminal is in WiFi access point moulds Under formula, it is also possible to while open that there is WiFi workstation functions, it is also possible to be not turned on WiFi workstation functions.
S302, detection receive the instruction of the unlatchings WiFi workstation modes when, by first thread realize unloading Corresponding first firmware of WiFi access point modes, and realizing that the first mode of operation of unloading corresponding first is consolidated by first thread During part, corresponding second firmware of loading WiFi workstation modes is realized by the second thread, by the mobile terminal The WiFi workstation modes are switched to by WiFi access point modes.
As can be seen that in working mode of mobile terminal changing method provided in an embodiment of the present invention, mobile terminal detection is No to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to be cut by the first mode of operation The second mode of operation is changed to, when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, second mode of operation is switched to by the mobile terminal by the first mode of operation.It can be seen that, move Dynamic terminal realizes corresponding first firmware of the first mode of operation of unloading by first thread, and loading second is realized by the second thread Corresponding second firmware of mode of operation, it is achieved thereby that corresponding first firmware of the first mode of operation of unloading works with loading second The parallel processing of corresponding second firmware of pattern, so as to be conducive to the WiFi workstation modes and WiFi of accelerating mobile terminal to access Switch speed between two kinds of mode of operations of dot pattern.
It is below apparatus of the present invention embodiment, apparatus of the present invention embodiment is used to perform the inventive method embodiment one to three The method of realization, for convenience of description, illustrate only the part related to the embodiment of the present invention, and particular technique details is not disclosed , refer to the embodiment of the present invention one to embodiment three.
Fig. 4-1 is referred to, Fig. 4-1 is a kind of unit composition frame chart of mobile terminal that the present invention is provided, such as Fig. 4-1 institutes Show, the mobile terminal in the embodiment of the present invention includes detection unit 401, switch unit 402, wherein:
The detection unit 401, for detecting whether receiving mode of operation switching command, the mode of operation switching refers to Make for indicating mobile terminal to switch to the second mode of operation by the first mode of operation;
The switch unit 402, for when detection receives the mode of operation switching command, according to the Working mould Formula switching command, corresponding first firmware of the first mode of operation of unloading is realized by first thread, and by first thread reality During now unloading corresponding first firmware of the first mode of operation, loading the second mode of operation correspondence is realized by the second thread The second firmware, the mobile terminal is switched to second mode of operation by the first mode of operation;Or, connect in detection When receiving the mode of operation switching command, according to the mode of operation switching command, loading second is realized by the second thread Corresponding second firmware of mode of operation, and the mistake of corresponding second firmware of the second mode of operation of loading is being realized by the second thread Cheng Zhong, realizes corresponding first firmware of the first mode of operation of unloading, by the mobile terminal by the first work by first thread Operation mode is switched to second mode of operation.
Fig. 4-2 are referred to, Fig. 4-2 is the unit composition frame chart of another mobile terminal that the present invention is provided, such as Fig. 4-2 institutes Show, the mobile terminal in the embodiment of the present invention includes detection unit 401, the switch unit 402 as shown in Fig. 4-1.
Optionally, first mode of operation is WiFi workstation modes, and second mode of operation is WiFi access points Pattern;Or, first mode of operation is WiFi access point modes, and second mode of operation is WiFi workstation modes.
Optionally, the detection unit 401, when first mode of operation is WiFi workstation modes, second work Operation mode is WiFi access point modes, specifically for when the mobile terminal has been switched on WiFi workstation modes, detection is It is no to receive the instruction for opening WiFi access point modes;
The detection unit 401, when first mode of operation is WiFi access point modes, second mode of operation is WiFi workstation modes, specifically for when the mobile terminal has been switched on WiFi access point modes, detecting whether to receive Open the instruction of WiFi workstation modes.
Optionally, the switch unit 402, including:
Obtain subelement 4021, for obtain prestore the first mode of operation of unloading corresponding the is realized by first thread First average time of one firmware;
The acquisition subelement 4021, be additionally operable to obtain prestore the second mode of operation pair of loading is realized by the second thread Second average time of the second firmware answered;
Determination subelement 4022, for based on first average time and second average time, it is determined that performing logical Cross first thread and realize that corresponding first firmware of the first mode of operation of unloading realizes the second work of loading with execution by the second thread Target time interval between corresponding second firmware of operation mode;
Switching subelement 4023, for receiving the first moment of the mode of operation switching command in detection, by the One thread realizes corresponding first firmware of the first mode of operation of unloading, at the second moment, loading second is realized by the second thread Corresponding second firmware of mode of operation, wherein, when second moment is the target with the time interval at first moment Between be spaced.
Optionally, the detection unit 401, is used to receive the mode of operation switching in detection in switch unit 402 It is described according to the mode of operation switching command during instruction, the first mode of operation of unloading corresponding the is realized by first thread One firmware, before realizing corresponding second firmware of the second mode of operation of loading by the second thread, is additionally operable to detect the movement Whether whether the current CPU usage of terminal big less than or equal to predetermined threshold value and/or the current dump energy of the mobile terminal In or equal to default power threshold;
The mobile terminal also includes:
Trigger element 403, is less than detecting the current CPU usage of the mobile terminal for the detection unit 401 Or during equal to predetermined threshold value and/or the current dump energy of the mobile terminal more than or equal to default power threshold, trigger institute State switch unit to perform according to the mode of operation switching command, realize that the first mode of operation of unloading is corresponding by first thread First firmware, and during corresponding first firmware of the first mode of operation of unloading is realized by first thread, by second Thread realizes the operation of corresponding second firmware of the second mode of operation of loading.
It should be noted that the mobile terminal described by apparatus of the present invention embodiment is presented in the form of functional unit. Term " unit " used herein above should be understood to implication as most wide as possible, for realizing each function described by " unit " Object for example can be integrated circuit ASIC, single circuit, the treatment for performing one or more softwares or firmware program Device (shared, special or chipset) and memory, combinational logic circuit, and/or other conjunctions for realizing above-mentioned functions are provided Suitable component.
For example, above-mentioned detection unit 401 detects whether that the function of receiving mode of operation switching command can be by Fig. 5 Shown mobile terminal realizes, specifically can be by processor 101 by calling the executable program generation in memory 102 Code, detects whether to receive mode of operation switching command.
As can be seen that in working mode of mobile terminal changing method provided in an embodiment of the present invention, mobile terminal detection is No to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to be cut by the first mode of operation The second mode of operation is changed to, when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, second mode of operation is switched to by the mobile terminal by the first mode of operation.It can be seen that, move Dynamic terminal realizes corresponding first firmware of the first mode of operation of unloading by first thread, and loading second is realized by the second thread Corresponding second firmware of mode of operation, it is achieved thereby that corresponding first firmware of the first mode of operation of unloading works with loading second The parallel processing of corresponding second firmware of pattern, so as to be conducive to the WiFi workstation modes and WiFi of accelerating mobile terminal to access Switch speed between two kinds of mode of operations of dot pattern.
The embodiment of the present invention additionally provides another mobile terminal, as shown in figure 5, including:Processor 101, memory 102, communication interface 103 and communication bus 104;Wherein, processor 101, memory 102 and communication interface 103 are total by communication Line 104 is connected and completes mutual communication;Processor 101 controls the channel radio with External cell net by communication interface 103 Letter;Communication interface 103 includes but is not limited to antenna, amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Memory 102 includes following at least one:It is random access memory (RAM), non- Volatile memory and external memory storage, be stored with executable program code in memory 102, the executable program code energy Enough bootstrap processors 101 perform the specific working mode of mobile terminal changing method for disclosing in the inventive method embodiment.
The processor 101, for detecting whether mode of operation switching command is received, the mode of operation switching command For indicating mobile terminal to switch to the second mode of operation by the first mode of operation;The mode of operation switching is received in detection During instruction, according to the mode of operation switching command, realize that the first mode of operation of unloading corresponding first is consolidated by first thread Part, and during corresponding first firmware of the first mode of operation of unloading is realized by first thread, by the second thread reality Corresponding second firmware of the second mode of operation is now loaded, the mobile terminal is switched to described second by the first mode of operation Mode of operation;Or, the processor 101, for when detection receives the mode of operation switching command, according to the work Operation mode switching command, corresponding second firmware of the second mode of operation of loading is realized by the second thread, and by the second line During Cheng Shixian loads corresponding second firmware of the second mode of operation, the first mode of operation of unloading is realized by first thread Corresponding first firmware, second mode of operation is switched to by the mobile terminal by the first mode of operation.
Optionally, first mode of operation is WiFi workstation modes, and second mode of operation is WiFi access points Pattern;Or, first mode of operation is WiFi access point modes, and second mode of operation is WiFi workstation modes.
Optionally, when first mode of operation is WiFi workstation modes, second mode of operation is accessed for WiFi During dot pattern, the processor 101 when for detecting whether receiving mode of operation switching command, specifically in the shifting When dynamic terminal has been switched on WiFi workstation modes, detect whether to receive the instruction for opening WiFi access point modes;
When first mode of operation is WiFi access point modes, second mode of operation is WiFi workstation modes When, the processor 101 when for detecting whether receiving mode of operation switching command, specifically in the mobile terminal When having been switched on WiFi access point modes, detect whether to receive the instruction for opening WiFi workstation modes.
Optionally, the processor 101 is in detection when for receiving the mode of operation switching command, according to described Mode of operation switching command, realizes corresponding first firmware of the first mode of operation of unloading, by the second thread by first thread When realizing loading corresponding second firmware of the second mode of operation, specifically for obtain prestore unloading the is realized by first thread First average time of corresponding first firmware of one mode of operation;What acquisition prestored realizes that loading second works by the second thread Second average time of corresponding second firmware of pattern;Based on first average time and second average time, it is determined that Perform and realize that corresponding first firmware of the first mode of operation of unloading realizes loading with execution by the second thread by first thread Target time interval between corresponding second firmware of second mode of operation;The mode of operation switching command is received in detection The first moment, unloading corresponding first firmware of the first mode of operation is realized by first thread, at the second moment, by second Thread realizes loading corresponding second firmware of the second mode of operation, wherein, the time at second moment and first moment At intervals of the target time interval.
Optionally, the processor 101 is in detection when for receiving the mode of operation switching command, the basis The mode of operation switching command, and the process of corresponding first firmware of the first mode of operation of unloading is being realized by first thread In, corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second work of loading is realized by the second thread Before corresponding second firmware of operation mode, can be also used for detecting whether the current CPU usage of the mobile terminal is less than or waits In predetermined threshold value and/or the current dump energy of the mobile terminal whether more than or equal to default power threshold;Detecting The current CPU usage of mobile terminal is big less than or equal to predetermined threshold value and/or the current dump energy of the mobile terminal When default power threshold, execution is described according to the mode of operation switching command, realizes unloading by first thread Corresponding first firmware of first mode of operation, and corresponding first firmware of the first mode of operation of unloading is being realized by first thread During, the step of realize loading the second mode of operation corresponding second firmware by the second thread.
As can be seen that in working mode of mobile terminal changing method provided in an embodiment of the present invention, mobile terminal detection is No to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal to be cut by the first mode of operation The second mode of operation is changed to, when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, the second Working mould of loading is realized by the second thread Corresponding second firmware of formula, second mode of operation is switched to by the mobile terminal by the first mode of operation.It can be seen that, move Dynamic terminal realizes corresponding first firmware of the first mode of operation of unloading by first thread, and loading second is realized by the second thread Corresponding second firmware of mode of operation, it is achieved thereby that corresponding first firmware of the first mode of operation of unloading works with loading second The parallel processing of corresponding second firmware of pattern, so as to be conducive to the WiFi workstation modes and WiFi of accelerating mobile terminal to access Switch speed between two kinds of mode of operations of dot pattern.
The embodiment of the present invention additionally provides another mobile terminal, as shown in fig. 6, for convenience of description, illustrate only with The related part of the embodiment of the present invention, particular technique details is not disclosed, and refer to present invention method part.The movement Terminal can be to include mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, so that mobile terminal is as mobile phone as an example:
Fig. 6 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.Ginseng Fig. 6 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940th, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980, And the grade part of power supply 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 is not constituted to mobile phone Limit, part more more or less than diagram can be included, or combine some parts, or different part arrangements.
Each component parts of mobile phone is specifically introduced with reference to Fig. 6:
RF circuits 910 can be used for the reception of information and transmission.Generally, RF circuits 910 include but is not limited to antenna, at least one Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is many Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 920 can be used to store software program and module, and processor 980 is by running storage in memory 920 Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 920 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence etc.;Storage data field can be stored and use created data etc. according to mobile phone.Additionally, memory 920 can be included at a high speed Random access memory, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or Other volatile solid-state parts.
Input block 930 can be used to receive the numeral or character information of input, and generation and the user of mobile phone set with And the relevant key signals input of function control.Specifically, input block 930 may include fingerprint recognition module 931 and other are defeated Enter equipment 932.Fingerprint recognition module 931, can gather user's finger print data thereon.Optionally, fingerprint recognition module 931 can Including optical fingerprint module, capacitance type fingerprint module and RF-type fingerprint module.With fingerprint recognition module 931 as condenser type As a example by fingerprint recognition module, specifically include induction electrode (abnormal induction electrode and normal induction electrode) and with the induction electrode The signal processing circuit (such as amplifying circuit, noise suppression circuit, analog-to-digital conversion circuit, etc.) of connection.Except fingerprint recognition mould Group 931, input block 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but not It is limited to the one kind in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Or it is various.
Display unit 940 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display screen 941, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Display screen 941.Although in figure 6, fingerprint recognition module 931 and display screen 941 are to realize mobile phone as two independent parts Input and input function, but it is in some embodiments it is possible to fingerprint recognition module 931 is integrated and real with display screen 941 The input of existing mobile phone and output function.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display screen 941, proximity transducer can when mobile phone is moved in one's ear, close display screen 941 and/or Backlight.Used as one kind of motion sensor, (generally three axles) acceleration is big in the detectable all directions of accelerometer sensor It is small, size and the direction of gravity are can detect that when static, can be used to recognize application (such as horizontal/vertical screen switching, the phase of mobile phone attitude Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Be can also configure as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data conversion that road 960 will can receive, is transferred to loudspeaker 961, and sound is converted to by loudspeaker 961 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to voice data, then after voice data output processor 980 is processed, through RF circuits 910 to be sent to such as another mobile phone, Or export to memory 920 so as to further treatment voice data.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 6 shows WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform software program of the storage in memory 920 and/or module, and call storage in memory 920 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 980 can be wrapped Include one or more processing units;Preferably, processor 980 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly processed with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone also includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can be by power supply pipe Reason system is logically contiguous with processor 980, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also will not be repeated here including camera, bluetooth module etc..
In embodiment shown in earlier figures 1, Fig. 2 and Fig. 3, each step method flow can be based on the structure reality of the mobile phone It is existing.
In embodiment shown in earlier figures 4-1 and 4-2, the structure that each unit function can be based on the mobile phone is realized.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey Sequence, the portion including any working mode of mobile terminal changing method described in the above method embodiment when program is performed Divide or Overall Steps.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention not by described by sequence of movement limited because According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication connection of device or unit by some interfaces, Can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use When, can store in a computer-readable access to memory.Based on such understanding, technical scheme substantially or Person say the part or technical scheme contributed to prior art all or part can in the form of software product body Reveal and, the computer software product is stored in a memory, including some instructions are used to so that a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the invention Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable memory, memory Can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention is described in detail above, specific case used herein to principle of the invention and Implementation method is set forth, and the explanation of above example is only intended to help and understands the method for the present invention and its core concept; Simultaneously for those of ordinary skill in the art, according to thought of the invention, can in specific embodiments and applications There is change part, in sum, this specification content should not be construed as limiting the invention.

Claims (11)

1. a kind of working mode of mobile terminal changing method, it is characterised in that methods described includes:
Detect whether to receive mode of operation switching command, the mode of operation switching command is used to indicate mobile terminal by first Mode of operation switches to the second mode of operation;
When detection receives the mode of operation switching command, according to the mode of operation switching command, by first thread Corresponding first firmware of the first mode of operation of unloading is realized, and is realizing that the first mode of operation of unloading is corresponding by first thread During first firmware, corresponding second firmware of the second mode of operation of loading is realized by the second thread, by the movement Terminal is switched to second mode of operation by the first mode of operation;Or, receive the mode of operation switching in detection and refer to When making, according to the mode of operation switching command, corresponding second firmware of the second mode of operation of loading is realized by the second thread, And during corresponding second firmware of the second mode of operation of loading is realized by the second thread, realize unloading by first thread Corresponding first firmware of the first mode of operation is carried, the mobile terminal is switched to second work by the first mode of operation Pattern.
2. the method for claim 1, it is characterised in that
First mode of operation is WiFi workstation modes, and second mode of operation is WiFi access point modes;Or, institute The first mode of operation is stated for WiFi access point modes, second mode of operation is WiFi workstation modes.
3. method as claimed in claim 2, it is characterised in that
When first mode of operation is WiFi workstation modes, and second mode of operation is WiFi access point modes, institute State and detect whether to receive mode of operation switching command, including:
When the mobile terminal has been switched on WiFi workstation modes, detect whether to receive and open WiFi access point modes Instruction;
When first mode of operation is WiFi access point modes, and second mode of operation is WiFi workstation modes, institute State and detect whether to receive mode of operation switching command, including:
When the mobile terminal has been switched on WiFi access point modes, detect whether to receive and open WiFi workstation modes Instruction.
4. method as claimed in claim 1 or 2, it is characterised in that described to receive the mode of operation switching in detection and refer to When making, according to the mode of operation switching command, corresponding first firmware of the first mode of operation of unloading is realized by first thread, And during corresponding first firmware of the first mode of operation of unloading is realized by first thread, realize adding by the second thread Corresponding second firmware of the second mode of operation is carried, including:
The first average time that corresponding first firmware of the first mode of operation of unloading is realized by first thread that acquisition prestores;
The second average time that corresponding second firmware of the second mode of operation of loading is realized by the second thread that acquisition prestores;
Based on first average time and second average time, it is determined that perform realizing the first work of unloading by first thread Corresponding first firmware of operation mode is realized between loading corresponding second firmware of the second mode of operation by the second thread with performing Target time interval;
The first moment of the mode of operation switching command is received in detection, the first Working mould of unloading is realized by first thread Corresponding first firmware of formula, at the second moment, corresponding second firmware of the second mode of operation of loading is realized by the second thread, its In, second moment is the target time interval with the time interval at first moment.
5. method as claimed in claim 2, it is characterised in that when detection receives the mode of operation switching command, institute State according to the mode of operation switching command, corresponding first firmware of the first mode of operation of unloading is realized by first thread, and During corresponding first firmware of the first mode of operation of unloading is realized by first thread, realize loading by the second thread Before corresponding second firmware of second mode of operation, methods described also includes:
Detect whether the current CPU usage of the mobile terminal is current less than or equal to predetermined threshold value and/or the mobile terminal Dump energy whether more than or equal to default power threshold;
Detecting, the current CPU usage of the mobile terminal is current less than or equal to predetermined threshold value and/or the mobile terminal Dump energy when being more than or equal to default power threshold, perform it is described according to the mode of operation switching command, by first Thread realizes corresponding first firmware of the first mode of operation of unloading, and is realizing the first mode of operation pair of unloading by first thread During the first firmware answered, the step of realize loading the second mode of operation corresponding second firmware by the second thread.
6. a kind of mobile terminal, it is characterised in that including:
Detection unit, for detecting whether receiving mode of operation switching command, the mode of operation switching command is used to indicate Mobile terminal switches to the second mode of operation by the first mode of operation;
Switch unit, for when detection receives the mode of operation switching command, according to the mode of operation switching command, Corresponding first firmware of the first mode of operation of unloading is realized by first thread, and the first work of unloading is being realized by first thread During corresponding first firmware of operation mode, corresponding second firmware of the second mode of operation of loading is realized by the second thread, Second mode of operation is switched to by the first mode of operation with by the mobile terminal;Or, the switch unit, for When detection receives the mode of operation switching command, according to the mode of operation switching command, realize adding by the second thread Corresponding second firmware of the second mode of operation is carried, and is realizing that the second mode of operation of loading corresponding second is consolidated by the second thread During part, unloading corresponding first firmware of the first mode of operation is realized by first thread, by the mobile terminal by First mode of operation is switched to second mode of operation.
7. mobile terminal as claimed in claim 6, it is characterised in that
First mode of operation is WiFi workstation modes, and second mode of operation is WiFi access point modes;Or, institute The first mode of operation is stated for WiFi access point modes, second mode of operation is WiFi workstation modes.
8. mobile terminal as claimed in claim 7, it is characterised in that
The detection unit, when first mode of operation is WiFi workstation modes, second mode of operation connects for WiFi When entering dot pattern, specifically for when the mobile terminal has been switched on WiFi workstation modes, detecting whether to receive unlatching The instruction of WiFi access point modes;
The detection unit, when first mode of operation is WiFi access point modes, second mode of operation is WiFi works When making station pattern, specifically for when the mobile terminal has been switched on WiFi access point modes, detecting whether to receive unlatching The instruction of WiFi workstation modes.
9. mobile terminal as claimed in claims 6 or 7, it is characterised in that the switch unit, including:
Subelement is obtained, corresponding first firmware of the first mode of operation of unloading is realized by first thread for what acquisition prestored First average time;
The acquisition subelement, be additionally operable to obtain prestore loading the second mode of operation corresponding second is realized by the second thread Second average time of firmware;
Determination subelement, for based on first average time and second average time, it is determined that perform passing through First Line Cheng Shixian unloads corresponding first firmware of the first mode of operation and performs by the second thread realization the second mode of operation pair of loading Target time interval between the second firmware answered;
Switching subelement, the first moment for receiving the mode of operation switching command in detection, by first thread reality Corresponding first firmware of the first mode of operation is now unloaded, at the second moment, the second mode of operation of loading is realized by the second thread Corresponding second firmware, wherein, second moment is the target time interval with the time interval at first moment.
10. mobile terminal as claimed in claim 7, it is characterised in that
The detection unit, it is described according to institute when switch unit is used to receive the mode of operation switching command in detection Mode of operation switching command is stated, unloading corresponding first firmware of the first mode of operation is realized by first thread, and by the During one thread realizes corresponding first firmware of the first mode of operation of unloading, realize that loading second works by the second thread Whether before corresponding second firmware of pattern, it is additionally operable to detect the current CPU usage of the mobile terminal less than or equal to default Whether threshold value and/or the current dump energy of the mobile terminal are more than or equal to default power threshold;
The mobile terminal also includes:
Trigger element, the current CPU usage of the mobile terminal is being detected less than or equal to default for the detection unit When threshold value and/or the current dump energy of the mobile terminal are more than or equal to default power threshold, the switch unit is triggered Perform according to the mode of operation switching command, corresponding first firmware of the first mode of operation of unloading realized by first thread, And during corresponding first firmware of the first mode of operation of unloading is realized by first thread, realize adding by the second thread Carry the operation of corresponding second firmware of the second mode of operation.
A kind of 11. mobile terminals, it is characterised in that including:
Processor, memory, communication interface and communication bus, the processor, the memory and the communication interface pass through The communication bus is connected and completes mutual communication;
The memory storage has executable program code, and the communication interface is used for radio communication;
The processor is used to call the executable program code in the memory, performs as claim 1-5 is any Method described by.
CN201611118228.6A 2016-12-07 2016-12-07 Mobile terminal working mode switching method and mobile terminal Active CN106775856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611118228.6A CN106775856B (en) 2016-12-07 2016-12-07 Mobile terminal working mode switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611118228.6A CN106775856B (en) 2016-12-07 2016-12-07 Mobile terminal working mode switching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106775856A true CN106775856A (en) 2017-05-31
CN106775856B CN106775856B (en) 2020-05-05

Family

ID=58881342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611118228.6A Active CN106775856B (en) 2016-12-07 2016-12-07 Mobile terminal working mode switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106775856B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300414A (en) * 2019-07-11 2019-10-01 国网上海市电力公司 Realize the wireless network communication system of remote data interaction
CN110602774A (en) * 2019-10-21 2019-12-20 中国联合网络通信集团有限公司 Personal hotspot management method and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605077A (en) * 2008-06-10 2009-12-16 上海贝尔阿尔卡特股份有限公司 A kind of providing by the WiFi network moved method and the device thereof that inserts
CN101848513A (en) * 2009-03-24 2010-09-29 华为技术有限公司 Method for switching WiFi access network to WiMAX access network and related equipment
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN104202832A (en) * 2014-08-31 2014-12-10 深圳市智凌无线科技有限公司 Wireless accessing method and device of WIFI terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605077A (en) * 2008-06-10 2009-12-16 上海贝尔阿尔卡特股份有限公司 A kind of providing by the WiFi network moved method and the device thereof that inserts
CN101848513A (en) * 2009-03-24 2010-09-29 华为技术有限公司 Method for switching WiFi access network to WiMAX access network and related equipment
CN102098761A (en) * 2009-12-10 2011-06-15 华为终端有限公司 Mobile communication terminal and network access method thereof
CN104202832A (en) * 2014-08-31 2014-12-10 深圳市智凌无线科技有限公司 Wireless accessing method and device of WIFI terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300414A (en) * 2019-07-11 2019-10-01 国网上海市电力公司 Realize the wireless network communication system of remote data interaction
CN110602774A (en) * 2019-10-21 2019-12-20 中国联合网络通信集团有限公司 Personal hotspot management method and mobile terminal

Also Published As

Publication number Publication date
CN106775856B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN106055408B (en) A kind of application control method and mobile terminal
CN106506862B (en) A kind of working mode of mobile terminal switching method and mobile terminal
CN106484283A (en) A kind of display control method and mobile terminal
CN106095489B (en) A kind of application control method and mobile terminal
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN106708633B (en) The method and mobile terminal of increasing terminal WiFi workstation mode closing velocities
CN104951212A (en) Method, device and system for processing desktop data of mobile terminal
CN106507289A (en) A kind of cut-in method of wireless network and mobile terminal
CN104657105A (en) Method and device for starting voice input function of terminal
CN107071147A (en) A kind of parameter regulation means and equipment
CN107194222A (en) Screen display mode control method and related product
CN111258407A (en) Application function control method and related product
CN104778055A (en) Method and device for displaying progress bar
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN106792819A (en) A kind of method and device of the power consumption for reducing mobile terminal
CN106648455A (en) Data migration method and mobile terminal
CN106469028A (en) A kind of data migration method and mobile terminal
CN106534288A (en) Data transmission method and mobile terminal
CN106569916A (en) Data backup method and mobile terminal
CN106980554B (en) Process processing method and device
CN103561155B (en) Send the method for note, device and terminal
CN104901992A (en) Resource transfer method and device
CN106713648B (en) A kind of communication means and mobile terminal
CN106775856A (en) A kind of working mode of mobile terminal changing method and mobile terminal
CN107423150A (en) A kind of fingerprint module control method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant