Summary of the invention
The technical problem to be solved in the present invention is that for the prior art when downloading big file by WIFI, centre
Reason device can not suspend mode lead to the higher defect of mobile terminal power consumption, a kind of document down loading method of the mobile terminal based on WIFI is provided
And system.It may be implemented when mobile terminal downloads big file by WIFI, switch to low-power consumption downloading mode, close centre
Device is managed, downloading power consumption is greatly reduced, the service life for extending mobile terminal can be imitated.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of document down loading method of the mobile terminal based on WIFI, wherein include:
A, when mobile terminal is more than a predetermined value by the file size of WIFI starting downloading, mobile terminal configuration at this time
For low-power consumption downloading mode;
B, it is instructed when the screen for detecting mobile terminal extinguishes, if WIFI is low-power consumption downloading mode, controls disconnection
The connection of memory and central processing unit, switching memory connect with WIFI, are directly deposited downloaded file data by WIFI
It stores up in memory, and closes central processing unit;
C, when the instruction for receiving screen and lighting, if WIFI is low-power consumption downloading mode, restarting center is controlled
Processor updates the status information of WIFI downloading.
Document down loading method of the mobile terminal based on WIFI, wherein described to be configured to low-power consumption downloading mode: i.e.
Configure when mobile terminal WIFI downloading be more than predefined size file when, receive screen extinguishing instruction, control centre
It manages device and starts suspend mode, WIFI is directly downloaded to the downloading mode of memory;
It is described to be configured to low-power consumption downloading mode, it is to be configured to the mode register of WIFI chip;By to WIFI
The corresponding value of mode register setting of chip, makes mobile terminal when WIFI downloading is more than the file of predefined size, receives
The instruction that screen extinguishes, it is low-power consumption mode that control central processing unit, which closes WIFI,.
Document down loading method of the mobile terminal based on WIFI, wherein the step A is specifically included:
A1, when mobile terminal downloading, obtain the size of file for needing to download;
A2, judge whether the file size of downloading is greater than a predetermined threshold, if it is greater than a predetermined threshold, referred to as big file
Downloading, and configuring WIFI is low-power consumption downloading mode.
Document down loading method of the mobile terminal based on WIFI, wherein in stepb close central processing unit it
Before, comprising the following steps:
B1, the location information for storing downloading file in memory, are sent to WIFI;
B2, the connection for disconnecting central processing unit and WIFI, while memory being connected with WIFI.
Document down loading method of the mobile terminal based on WIFI, wherein in step C start central processing unit it
Before, comprising the following steps:
C1, the connection for disconnecting memory and WIFI, while memory being connected with central processing unit.
Document down loading method of the mobile terminal based on WIFI, wherein the state of WIFI downloading is updated in step C
Information, comprising the following steps:
C2, the size for obtaining the file downloaded in memory update the status information of WIFI downloading.
Document down loading method of the mobile terminal based on WIFI, wherein the predetermined value in the step A is 100M.
A kind of file download system of the mobile terminal based on WIFI, wherein include:
Detection and configuration module, for being more than a predetermined value when mobile terminal starts the file size downloaded by WIFI
When, mobile terminal configuration is low-power consumption downloading mode at this time;
Control module is downloaded, for extinguishing instruction when the screen for detecting mobile terminal, if WIFI is low-power consumption downloading
Mode, then control disconnect memory and central processing unit connection, switching memory connect with WIFI, by WIFI directly by under
The file data of load is stored into memory, and closes central processing unit;
Download information update module, for working as the instruction for receiving screen and lighting, if WIFI is low-power consumption downloading mode,
Restarting central processing unit is then controlled, the status information of WIFI downloading is updated;
Wherein, described to be configured to low-power consumption downloading mode: it is more than predefined size that i.e. configuration, which is downloaded when mobile terminal in WIFI,
File when, receive the instruction of screen extinguishing, control central processing unit starts suspend mode, and WIFI is directly downloaded under memory
Load mode;
It is described to be configured to low-power consumption downloading mode, it is to be configured to the mode register of WIFI chip;By to WIFI
The corresponding value of mode register setting of chip, makes mobile terminal when WIFI downloading is more than the file of predefined size, receives
The instruction that screen extinguishes, it is low-power consumption mode that control central processing unit, which closes WIFI,.
File download system of the mobile terminal based on WIFI, wherein the detection with configuration module includes:
First acquisition unit, for obtaining the size for needing the file downloaded when mobile terminal downloading;
Configuration unit, for judging whether the file size of downloading is greater than a predetermined threshold, if it is greater than a predetermined threshold,
Referred to as big file download, and configuring WIFI is low-power consumption downloading mode;
Downloading control module includes:
Detection unit, for extinguishing instruction when the screen for detecting mobile terminal, if WIFI is low-power consumption downloading mode,
Then control the connection for disconnecting memory and central processing unit;
Download location transmission unit, the location information stored in memory for that will download file, is sent to WIFI;
First control unit is connected for disconnecting the connection of central processing unit and WIFI, while by memory with WIFI,
By WIFI directly by the storage of downloaded file data into memory, and close central processing unit.
File download system of the mobile terminal based on WIFI, wherein download information update module includes:
Receiving unit, if WIFI is low-power consumption downloading mode, controls weight for working as the instruction for receiving screen and lighting
New starting central processing unit, updates the status information of WIFI downloading;
Second control unit is connected for disconnecting the connection of memory and WIFI, while by memory with central processing unit
It connects
Second acquisition unit updates the state letter of WIFI downloading for obtaining the size for the file downloaded in memory
Breath.
Document down loading method and system of the mobile terminal provided by the present invention based on WIFI, increase mobile terminal newly
Function: when being detected as downloading big file under WIFI mode automatically into low-power consumption mode;By detecting mobile terminal
When screen extinguishes instruction, the connection of memory and central processing unit is disconnected, and memory is connected with WIFI, thus in closing
Central processor, by WIFI directly by the storage of downloaded file data into memory;To make mobile terminal pass through WIFI
When downloading big file, central processing unit will be also closed if screen is off, and be reduced the power consumption of mobile terminal, effectively
Ground protects the energy consumption of mobile terminal.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Referring to Figure 1, Fig. 1 is the process of the preferred embodiment of document down loading method of the mobile terminal of the present invention based on WIFI
Figure.Document down loading method of a kind of mobile terminal based on WIFI shown in FIG. 1, comprising:
Step S100, it when mobile terminal is more than a predetermined value by the file size of WIFI starting downloading, moves at this time
Terminal is configured to low-power consumption downloading mode.
In the embodiment of the present invention, when detecting that mobile terminal is downloaded by WIFI, the big of the file for needing to download is obtained
It is small;Judge whether the file size of downloading is greater than a predetermined threshold (for example whether playing 100M), if it is greater than a predetermined threshold,
Referred to as big file download, when starting big file download by WIFI, then configuring WIFI is low-power consumption downloading mode.
Described to be configured to low-power consumption downloading mode in the embodiment of the present invention: as configuration is when mobile terminal is in WIFI downloading
More than predefined size file when, receive the instruction of screen extinguishing, control central processing unit starts suspend mode, and WIFI directly downloads
To the downloading mode of memory;
Specifically: it is being configured to low-power consumption downloading mode, is being configured to the mode register of WIFI chip;Pass through to
The corresponding value of mode register setting of WIFI chip, makes mobile terminal when WIFI downloading is more than the file of predefined size, connects
The instruction of screen extinguishing is received, it is low-power consumption mode that control central processing unit, which closes WIFI,.
Step S200, it instructs when the screen for detecting mobile terminal extinguishes, if WIFI is low-power consumption downloading mode, controls
System disconnects the connection of memory and central processing unit, and switching memory is connect with WIFI, by WIFI directly by downloaded file
Data are stored into memory, and close central processing unit.
In the embodiment of the present invention, when the instruction for receiving screen extinguishing in WIFI downloading process, if WIFI is low-power consumption
Downloading mode then controls the connection for disconnecting memory and central processing unit, and switching memory is connect with WIFI, directly will by WIFI
Downloaded file data are stored into memory, and close central processing unit, reduce energy consumption.
In the specific implementation, before closing central processing unit, comprising the following steps:
B1, the location information for storing downloading file in memory, are sent to WIFI;
B2, the connection for disconnecting central processing unit and WIFI, while memory being connected with WIFI.By WIFI directly by institute
The file data of downloading is stored into memory.
Step S300, when the instruction for receiving screen and lighting is controlled and opened again if WIFI is low-power consumption downloading mode
Dynamic central processing unit, updates the status information of WIFI downloading.
After screen lock is extinguished during downloading, again when the instruction for receiving screen and lighting, if WIFI is low function
Downloading mode is consumed, then controls restarting central processing unit, updates the status information of WIFI downloading.
Wherein, before receiving the instruction starting central processing unit that screen is lighted, comprising the following steps: C1, disconnection
The connection of memory and WIFI, while memory being connected with central processing unit.
Wherein, the status information for updating WIFI downloading, comprising the following steps:
C2, the size for obtaining the file downloaded in memory update the status information of WIFI downloading.
In the embodiment of the present invention, the predetermined value is 100M.
The present invention is described in further details below by way of a specific Application Example:
Referring to Fig. 2, Fig. 2 is the concrete application embodiment of document down loading method of the mobile terminal of the present invention based on WIFI
Flow chart, document down loading method of the mobile terminal based on WIFI described in Fig. 2 embodiment the following steps are included:
S101, when starting big file download by WIFI, then configure WIFI be low-power consumption downloading mode;
Specifically, when detecting user's starting WIFI download function, the size for needing the file downloaded first is obtained;Then sentence
Whether disconnected file size is greater than threshold value (such as 100M), if it is greater, then configuration WIFI is low-power consumption downloading mode.
The threshold value can be supplied to user's self-setting in a menu, can also fix when mobile terminal dispatches from the factory,
Such as 100M.
The configuration WIFI is low-power consumption downloading mode, is configured to the mode register of WIFI chip;Pass through to
The corresponding value of mode register setting of WIFI chip, so that it may so that WIFI is low-power consumption mode, pass through the mould to WIFI chip
The corresponding value of formula register setting, can also make WIFI normal mode.
S102, when receive screen extinguishing instruction, if WIFI be low-power consumption downloading mode, close central processing
Device.
Specifically, when receiving the instruction of screen extinguishing, the value of the mode register of WIFI chip is obtained, if set
Setting WIFI chip is that low-power consumption mode then closes central processing unit.
In addition, needing to download the position that file is stored in memory before closing central processing unit and living information, send out
Give WIFI, that is to say, that the file of downloading is put storage address in memory by notice WIFI;Then, it is also necessary in disconnection
The connection of central processor and WIFI, while memory being connected with WIFI, to keep WIFI that the file downloaded is direct
Memory is stored in specify in address.
S103, start central processing if WIFI is low-power consumption downloading mode when the instruction for receiving screen and lighting
Device updates the status information of WIFI downloading.
Specifically, when receiving the instruction that screen is lighted, the value of the mode register of WIFI chip is obtained, if set
Setting WIFI chip is that low-power consumption mode then starts central processing unit, updates the status information of WIFI downloading;
In addition, needing to disconnect memory and the connection of WIFI, while by memory in front of starting central processing unit
Central processor is connected;Then obtain the size of file downloaded in memory, update the status information of WIFI downloading, i.e., in
Central processor updates the information of file download by checking the size for the file downloaded in memory designated position;For example,
20M has been downloaded in the file of the previous 500M of screen extinguishing, 80M has been downloaded again after screen extinguishing, has been lighted again in screen
Afterwards, central processing unit updates display by checking the size (100M) for the file downloaded in memory designated position
Therefore the present invention provides a kind of document down loading method and system of the mobile terminal based on WIFI.It can be real
Now when mobile terminal downloads big file by WIFI, switch to low-power consumption downloading mode, closes central processing unit, greatly reduce
Power consumption is downloaded, the service life for extending mobile terminal can be imitated.
Based on the above embodiment, the file download system the present invention also provides a kind of mobile terminal based on WIFI, such as Fig. 3
It is shown, the system comprises:
Detection and configuration module 310, for being more than one predetermined when mobile terminal starts the file size downloaded by WIFI
When value, mobile terminal configuration is low-power consumption downloading mode at this time;As detailed above.
Control module 320 is downloaded, for extinguishing instruction when the screen for detecting mobile terminal, if WIFI is under low-power consumption
Load mode then controls the connection for disconnecting memory and central processing unit, and switching memory is connect with WIFI, by WIFI directly by institute
The file data of downloading is stored into memory, and closes central processing unit;As detailed above.
Download information update module 330, for working as the instruction for receiving screen and lighting, if WIFI is that mould is downloaded in low-power consumption
Formula then controls restarting central processing unit, updates the status information of WIFI downloading;As detailed above.
Wherein, described to be configured to low-power consumption downloading mode: it is more than predefined size that i.e. configuration, which is downloaded when mobile terminal in WIFI,
File when, receive the instruction of screen extinguishing, control central processing unit starts suspend mode, and WIFI is directly downloaded under memory
Load mode;
It is described to be configured to low-power consumption downloading mode, it is to be configured to the mode register of WIFI chip;By to WIFI
The corresponding value of mode register setting of chip, makes mobile terminal when WIFI downloading is more than the file of predefined size, receives
The instruction that screen extinguishes, it is low-power consumption mode that control central processing unit, which closes WIFI,.
Further, file download system of the mobile terminal based on WIFI, wherein the detection and configuration module packet
It includes:
First acquisition unit, for obtaining the size for needing the file downloaded when mobile terminal downloading;Specific institute as above
It states.
Configuration unit, for judging whether the file size of downloading is greater than a predetermined threshold, if it is greater than a predetermined threshold,
Referred to as big file download, and configuring WIFI is low-power consumption downloading mode;As detailed above.
Downloading control module includes:
Detection unit, for extinguishing instruction when the screen for detecting mobile terminal, if WIFI is low-power consumption downloading mode,
Then control the connection for disconnecting memory and central processing unit;As detailed above.
Download location transmission unit, the location information stored in memory for that will download file, is sent to WIFI;Tool
Body is as described above.
First control unit is connected for disconnecting the connection of central processing unit and WIFI, while by memory with WIFI,
By WIFI directly by the storage of downloaded file data into memory, and close central processing unit;As detailed above.
File download system of the mobile terminal based on WIFI, wherein download information update module includes:
Receiving unit, if WIFI is low-power consumption downloading mode, controls weight for working as the instruction for receiving screen and lighting
New starting central processing unit, updates the status information of WIFI downloading;As detailed above.
Second control unit is connected for disconnecting the connection of memory and WIFI, while by memory with central processing unit
It connects;As detailed above.
Second acquisition unit updates the state letter of WIFI downloading for obtaining the size for the file downloaded in memory
Breath;As detailed above.
In conclusion document down loading method and system of the mobile terminal provided by the present invention based on WIFI, make mobile whole
End increases new function: when being detected as downloading big file under WIFI mode automatically into low-power consumption mode;By detecting
When the screen of mobile terminal extinguishes instruction, the connection of memory and central processing unit is disconnected, and memory is connected with WIFI,
To close central processing unit, by WIFI directly by the storage of downloaded file data into memory;To make mobile terminal
When downloading big file by WIFI, central processing unit will be also closed if screen is off, and obtain the power consumption of mobile terminal
With decline, it is effectively protected the energy consumption of mobile terminal.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.