[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103699338A - Method and equipment for downloading data - Google Patents

Method and equipment for downloading data Download PDF

Info

Publication number
CN103699338A
CN103699338A CN201310680348.5A CN201310680348A CN103699338A CN 103699338 A CN103699338 A CN 103699338A CN 201310680348 A CN201310680348 A CN 201310680348A CN 103699338 A CN103699338 A CN 103699338A
Authority
CN
China
Prior art keywords
data
capacity value
storage card
electronic equipment
download
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
CN201310680348.5A
Other languages
Chinese (zh)
Other versions
CN103699338B (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.)
LeTV Sports Culture Develop Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310680348.5A priority Critical patent/CN103699338B/en
Publication of CN103699338A publication Critical patent/CN103699338A/en
Application granted granted Critical
Publication of CN103699338B publication Critical patent/CN103699338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and equipment for downloading data and relates to the technical field of communication. When data are downloaded by electronic equipment, the data are stored by switching a built-in storage card into an externally arranged storage card, and the problem that the data cannot be downloaded due to the insufficient capacity of the built-in storage card is avoided. The method comprises the steps of after a downloading command is received, determining a first storage capacity value according to the data size information of the data to be downloaded, obtaining a second surplus capacity value of the external arranged storage card of the electronic equipment when a first surplus capacity value of the built-in storage card of the electronic equipment is determined to be smaller than the first storage capacity value, and, downloading the data according to logo information of the data to be downloaded and storing the downloaded data into the externally arranged storage card by the electronic equipment when the electronic equipment determines that the second surplus capacity value is not smaller than the first storage capacity value. The embodiment of the invention is used for downloading data.

Description

A kind of method and apparatus of downloading data
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and apparatus of downloading data.
Background technology
At present, most electronic equipments are except the built-in storage card carrying, also by draw-in groove, be inserted with external storage card outward, as SD card (Secure Digital Memory Card, safe digital card) or TF card (Trans Flash, flash-storing card), the capacity of the built-in storage card of general electronic equipment is smaller, and the volume ratio of external storage card is larger.
In prior art, electronic equipment, when downloading data, generally can be given tacit consent to the data of download are stored in the built-in storage card of electronic equipment.Wherein, this electronic equipment is before starting downloading data, obtain the size of these data, with the capacity of determining that these data of storage need, and whether the residual capacity that judges the built-in storage card of this electronic equipment enough stores these data, if the residual capacity of this built-in storage card is greater than the needed capacity of these data of storage, this electronic equipment starts to download these data, and these data are stored in this built-in storage card; If the residual capacity of this built-in storage card is less than the needed capacity of these data of storage, this electronic equipment is pointed out user's " memory space inadequate ", and cancels this download.
As from the foregoing, user is by electronic equipment during at downloading data, the data of download can only be stored in the built-in storage card of this electronic equipment, finite capacity due to this built-in storage card, if it is not enough that this electronic equipment detected the residual capacity of this built-in storage card before starting download, this electronic equipment will be cancelled this download, thereby cause completing data, downloads.
Summary of the invention
The invention provides a kind of method and apparatus of downloading data, can when electronic equipment downloading data, by built-in storage card, switch to external storage card and store this data, avoided cannot downloading because of not enough these data that cause of residual capacity of built-in storage card.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of method of downloading data, comprising:
Electronic equipment is after receiving download instruction, obtain identification information and the data amount information of data to be downloaded, and determine the first storage capacity value according to described data amount information, wherein, described the first memory capacity value representation is stored the size of the minimized storage space of described data needs;
Obtain the first residual capacity value of the built-in storage card of described electronic equipment;
When definite described the first residual capacity value is less than described the first storage capacity value, obtain the second residual capacity value of the external storage card of described electronic equipment;
When definite described the second residual capacity value is not less than described the first storage capacity value, according to described identification information, downloads described data, and described data are stored in described external storage card.
In the possible implementation of first aspect the first, described method also comprises: in definite described the second residual capacity value, be less than described the first storage capacity value, and when described the first residual capacity value and described the second residual capacity value sum are not less than described the first storage capacity value, according to described identification information, download described data, and first's data of the described data that download to are stored in described built-in storage card, the second portion data of the described data that download to are stored in described external storage card.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described first's data by the described data that download to are stored in described built-in storage card and comprise:
The data that download to are divided into a plurality of sub-blocks, and are stored in described built-in storage card at least one sub-block as first's data.
In conjunction with the possible implementation of the second, in the third possible implementation, the described second portion data by the described data that download to are stored in described external storage card and comprise:
Record the storage capacity value of each sub-block, and when the storage capacity value of described first data reaches default capacity threshold, using remaining sub-block as second portion data, be stored in described external storage card, wherein, described capacity threshold is less than or equal to described the first residual capacity value.
In conjunction with the possible implementation of the second or the third possible implementation, in the 4th kind of possible implementation, described first's data by the described data that download to are stored in described built-in storage card, the second portion data of the described data that download to are stored in to described external storage card and comprise:
First's data of the described data that download to and specific corresponding relation are stored in described built-in storage card;
The second portion data of the described data that download to and described specific corresponding relation are stored in described external storage card, and wherein, described specific corresponding relation is the corresponding relation between described first data and described second portion data.
Second aspect present invention provides a kind of electronic equipment, comprising:
Acquiring unit, for receiving after download instruction at electronic equipment, obtain identification information and the data amount information of data to be downloaded, and determine the first storage capacity value according to described data amount information, wherein, described the first memory capacity value representation is stored the size of the minimized storage space of described data needs;
Described acquiring unit also for, obtain the first residual capacity value of the built-in storage card of described electronic equipment;
Described acquiring unit also for, when definite described the first residual capacity value is less than described the first storage capacity value, obtain the second residual capacity value of the external storage card of described electronic equipment;
Processing unit, while being not less than described the first storage capacity value for the second residual capacity value getting at definite described acquiring unit, downloading described data according to described identification information, and described data is stored in described external storage card.
In the possible implementation of second aspect the first, described processing unit specifically for, in definite described the second residual capacity value, be less than described the first storage capacity value, and when described the first residual capacity value and described the second residual capacity value sum are not less than described the first storage capacity value, according to described identification information, download described data, and first's data of the described data that download to are stored in described built-in storage card, the second portion data of the described data that download to are stored in described external storage card.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described processing unit specifically for, the data that download to are divided into a plurality of sub-blocks, and are stored in described built-in storage card at least one sub-block as first's data.
In conjunction with the possible implementation of the second, in the third possible implementation, described processing unit specifically for, record the storage capacity value of each sub-block, and when the storage capacity value of described first data reaches default capacity threshold, using remaining sub-block as second portion data, be stored in described external storage card, wherein, described capacity threshold is less than or equal to described the first residual capacity value.
In conjunction with the possible implementation of the second or the third possible implementation, in the 4th kind of possibility implementation, described processing unit specifically for, first's data of the described data that download to and specific corresponding relation are stored in described built-in storage card, described processing unit also for, the second portion data of the described data that download to and described specific corresponding relation are stored in described external storage card, wherein, described specific corresponding relation is the corresponding relation between described first data and described second portion data.
Adopt such scheme, electronic equipment is when receiving download instruction, by obtaining the data amount information of data to be downloaded, determine the size of the minimized storage space that these data of storage need, i.e. the first storage capacity value, and when determining that this first storage capacity value is greater than the first residual capacity value of built-in storage card of this electronic equipment, obtain the second residual capacity value of the external storage card of this electronic equipment, and when definite this second residual capacity value is not less than this first storage capacity value, according to the identification information of these data, download this data, and these data are stored in this external storage card.Like this, electronic equipment is after receiving the download instruction of user's transmission, if the residual capacity of the built-in storage card of this electronic equipment is not enough, this electronic equipment can automatically switch to these data that external storage card storage downloads to, and has avoided cannot downloading because of not enough these data that cause of residual capacity of built-in storage card.
Accompanying drawing explanation
The schematic flow sheet of the method for a kind of downloading data that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the another kind of downloading data that Fig. 2 provides for the embodiment of the present invention;
The structural representation of a kind of electronic equipment that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of downloading data, and as shown in Figure 1, the method comprises:
S101, electronic equipment, after receiving download instruction, obtain identification information and the data amount information of data to be downloaded, and determine the first storage capacity value according to this data amount information.
Wherein, this first memory capacity value representation is stored the size of the minimized storage space of these data needs.
It should be noted that, this electronic equipment can be for carrying the outer mobile phone that is inserted with external storage card of built-in storage card while.
Particularly, user is when by electronic equipment downloading data, by corresponding operation (as clicked the download option), to this electronic equipment, send download instruction, this electronic equipment obtains identification information and the data amount information of these data according to this download instruction, wherein, this data amount information has represented the size of these data, and this electronic equipment is determined the size of the minimized storage space that these data of storage need, i.e. the first storage capacity value according to this data amount information.
Illustratively, data to be downloaded comprise two video files, wherein, the size of the first video file is 20M(million), the size of the second video file is 10M, this electronic equipment is when getting the data amount information of these data, and this electronic equipment determines that according to the size of the size of this first video file and this second video file the size of the needed minimized storage space of these data of storage is 30M, and this first storage capacity value is 30M.
S102, this electronic equipment obtain the first residual capacity value of the built-in storage card of this electronic equipment.
S103, this electronic equipment, when definite this first residual capacity value is less than this first storage capacity value, obtain the second residual capacity value of the external storage card of this electronic equipment.
Particularly, this electronic equipment is when getting the first residual capacity value of this built-in storage card, this the first residual capacity value is compared with this first storage capacity value, if this first residual capacity value is more than or equal to this first storage capacity value, this electronic equipment determines that this built-in storage card has enough residual capacities to store data to be downloaded, and starting to download these data according to the identification information of data to be downloaded, this electronic equipment is all stored in the data that download in this built-in storage card; If this first residual capacity value is less than this first storage capacity value, this electronic equipment determines that this built-in storage card does not have enough residual capacities to store data to be downloaded, this electronic equipment obtains the second residual capacity value of the external storage card of this electronic equipment, to judge whether this external storage card has enough described data to be downloaded of residual capacity storage.
S104, this electronic equipment, when definite this second residual capacity value is not less than this first storage capacity value, is downloaded this data according to this identification information, and these data are stored in this external storage card.
It should be noted that, this electronic equipment is before downloading data, need to determine the memory location of these data of storage, therefore this electronic equipment needed to judge whether this built-in storage card or this external storage card have enough residual capacities and store this data, with this, determine the memory location of described data to be downloaded before downloading these data.
Particularly, this electronic equipment is after getting the second residual capacity value of this external storage card, this the second residual capacity value is compared with this first storage capacity value, if this second residual capacity value is more than or equal to this first storage capacity value, this electronic equipment determines that this external storage card has enough residual capacities to store data to be downloaded, and starting to download these data according to the identification information of data to be downloaded, this electronic equipment is all stored in the data that download in this external storage card; If this second residual capacity value is less than this first storage capacity value, this electronic equipment determines that this external storage card does not have enough residual capacities to store data to be downloaded.
In a kind of possible implementation of the present invention, this electronic equipment is when definite this first residual capacity value and this second residual capacity value sum are not less than this first storage capacity value, according to this identification information, download this data, and first's data of these data that download to are stored in this built-in storage card, the second portion data of these data that download to are stored in this external storage card.
Alternatively, this electronic equipment is divided into a plurality of sub-blocks by the data that download to, and is stored in this built-in storage card at least one sub-block as first's data.
Particularly, this electronic equipment is when determining that this built-in storage card and this external storage card all do not have enough described data to be downloaded of residual capacity storage, this electronic equipment is this internal memory and the total residual capacity value (i.e. this first residual capacity value and this second residual capacity value sum) of this external memory relatively, if the total residual capacity value of this internal memory and this external memory is more than or equal to this first storage capacity value, this electronic equipment starts to download these data according to this identification information, and the data that download to are divided into a plurality of sub-blocks that size is identical, this electronic equipment forms first's data according to downloading order by a part of sub-block, the sub-block of remainder is formed to second portion data, Gai Bingjianggai first data are stored in this built-in storage card, these second portion data are stored in this external storage card.
Alternatively, this electronic equipment records the storage capacity value of each sub-block, when the storage capacity value of Bing Gai first data reaches default capacity threshold, remaining sub-block is formed to second portion data.
Wherein, this capacity threshold is less than or equal to this first residual capacity value.
Particularly, this electronic equipment is before starting downloading data, can point out user that the capacity threshold of this built-in storage card is set, this electronic equipment is when starting downloading data, record the memory capacity of each sub-block, with the storage capacity value of these first's data of dynamic monitoring, when the storage capacity value of Dang Gai first data reaches this capacity threshold, this electronic equipment automatically switches to the sub-block that external storage card is stored other.
Illustratively, the first residual capacity value of this built-in storage card is 20M, the second residual capacity value of this external storage card is 30M, described data volume to be downloaded size is 40M, this first storage capacity value is 40M, this capacity threshold is 20M, this electronic equipment is when definite this built-in storage card and the total residual capacity value of this external storage card are not less than this first storage capacity value, start downloading data, and the data that download to are divided into size is the sub-block of 4M, these data can be divided into 10 sub-blocks, this electronic equipment is using 5 sub-blocks that first download to as first's data, Bing Jianggai first data are stored in this built-in storage card, this electronic equipment determines that the memory capacity of these first's data reaches capacity threshold, this electronic equipment will be left 5 data blocks as second portion data, and these second portion data are stored in this external storage card.
Further, this electronic equipment is stored in first's data of these data that download to and specific corresponding relation in this built-in storage card, and the second portion data of these data that download to and this specific corresponding relation are stored in this external storage card.
Wherein, the corresponding relation between these specific corresponding relation Wei Gai first's data and this second portion data.
Adopt said method, electronic equipment is when receiving download instruction, by obtaining the data amount information of data to be downloaded, determine the size of the minimized storage space that these data of storage need, i.e. the first storage capacity value, and when determining that this first storage capacity value is greater than the first residual capacity value of built-in storage card of this electronic equipment, obtain the second residual capacity value of the external storage card of this electronic equipment, and when definite this second residual capacity value is not less than this first storage capacity value, according to the identification information of these data, download this data, and these data are stored in this external storage card.Like this, electronic equipment is after receiving the download instruction of user's transmission, if the residual capacity of the built-in storage card of this electronic equipment is not enough, this electronic equipment can automatically switch to these data that external storage card storage downloads to, and has avoided cannot downloading because of not enough these data that cause of residual capacity of built-in storage card.
The embodiment of the present invention provides a kind of method of downloading data, and as shown in Figure 2, the method comprises:
S201, electronic equipment, after receiving download instruction, obtain identification information and the data amount information of data to be downloaded.
It should be noted that, this electronic equipment can be for carrying the outer mobile phone that is inserted with external storage card of built-in storage card while.
S202, this electronic equipment are determined the first storage capacity value according to this data amount information.
Wherein, this first memory capacity value representation is stored the size of the minimized storage space of these data needs.
Particularly, user is when by electronic equipment downloading data, by corresponding operation (as clicked the download option), to this electronic equipment, send download instruction, this electronic equipment obtains identification information and the data amount information of these data according to this download instruction, wherein, this data amount information has represented the size of these data, and this electronic equipment is determined the size of the minimized storage space that these data of storage need, i.e. the first storage capacity value according to this data amount information.
Illustratively, data to be downloaded comprise two video files, wherein, the size of the first video file is 20M(million), the size of the second video file is 10M, this electronic equipment is when getting the data amount information of these data, and this electronic equipment determines that according to the size of the size of this first video file and this second video file the size of the needed minimized storage space of these data of storage is 30M, and this first storage capacity value is 30M.
S203, this electronic equipment obtain the first residual capacity value of built-in storage card, and determine whether this first residual capacity value is less than this first storage capacity value.
It should be noted that, if this first residual capacity value is not less than this first storage capacity value, execution step S204; If this first residual capacity value is less than this first storage capacity value, execution step S205.
Particularly, this electronic equipment is when getting the first residual capacity value of this built-in storage card, this the first residual capacity value is compared with this first storage capacity value, if this first residual capacity value is more than or equal to this first storage capacity value, this electronic equipment determines that this built-in storage card has enough residual capacities to store data to be downloaded, and starting to download these data according to the identification information of data to be downloaded, this electronic equipment is all stored in the data that download in this built-in storage card; If this first residual capacity value is less than this first storage capacity value, this electronic equipment determines that this built-in storage card does not have enough residual capacities to store data to be downloaded, this electronic equipment obtains the second residual capacity value of the external storage card of this electronic equipment, to judge whether this external storage card has enough described data to be downloaded of residual capacity storage.
S204, this electronic equipment start downloading data, and these data are stored in this built-in storage card.
S205, this electronic equipment obtain the second residual capacity value of external storage card, and determine whether this second residual capacity value is less than this first storage capacity value.
It should be noted that, if this second residual capacity value is not less than this first storage capacity value, execution step S206; If this second residual capacity value is less than this first storage capacity value, execution step S207.
In addition, this electronic equipment is before downloading data, need to determine the memory location of these data of storage, therefore this electronic equipment needed to judge whether this built-in storage card or this external storage card have enough residual capacities and store this data, with this, determine the memory location of described data to be downloaded before downloading these data.
Particularly, this electronic equipment is after getting the second residual capacity value of this external storage card, this the second residual capacity value is compared with this first storage capacity value, if this second residual capacity value is more than or equal to this first storage capacity value, this electronic equipment determines that this external storage card has enough residual capacities to store data to be downloaded, and starting to download these data according to the identification information of data to be downloaded, this electronic equipment is all stored in the data that download in this external storage card; If this second residual capacity value is less than this first storage capacity value, this electronic equipment determines that this external storage card does not have enough residual capacities to store data to be downloaded.
S206, this electronic equipment start downloading data, and these data are stored in this external storage card.
S207, this electronic equipment, when definite this first residual capacity value and this second residual capacity value sum are not less than this first storage capacity value, start downloading data.
S208, this electronic equipment are divided into a plurality of sub-blocks by the data that download to, and are stored in this built-in storage card at least one sub-block as first's data.
Particularly, this electronic equipment is when determining that this built-in storage card and this external storage card all do not have enough described data to be downloaded of residual capacity storage, this electronic equipment is this internal memory and the total residual capacity value (i.e. this first residual capacity value and this second residual capacity value sum) of this external memory relatively, if the total residual capacity value of this internal memory and this external memory is more than or equal to this first storage capacity value, this electronic equipment starts to download these data according to this identification information, and the data that download to are divided into a plurality of sub-blocks that size is identical, this electronic equipment according to downloading order using a part of sub-block as first's data, using the sub-block of remainder as second portion data, Gai Bingjianggai first data are stored in this built-in storage card, these second portion data are stored in this external storage card.
When the storage capacity value of S209, Gai first data reaches preset capacity threshold value, using remaining sub-block as second portion data, be stored in this external storage card.
Wherein, this capacity threshold is less than or equal to this first residual capacity value.
Particularly, this electronic equipment is before starting downloading data, can point out user that the capacity threshold of this built-in storage card is set, this electronic equipment is when starting downloading data, record the memory capacity of each sub-block, with the storage capacity value of these first's data of dynamic monitoring, when the storage capacity value of Dang Gai first data reaches this capacity threshold, this electronic equipment automatically switches to external storage card and stores other sub-blocks.
Illustratively, the first residual capacity value of this built-in storage card is 20M, the second residual capacity value of this external storage card is 30M, described size of data to be downloaded is 40M, this first storage capacity value is 40M, this capacity threshold is 20M, this electronic equipment is when definite this built-in storage card and the total residual capacity value of this external storage card are not less than this first storage capacity value, start downloading data, and the data that download to are divided into size is the sub-block of 4M, these data can be divided into 10 sub-blocks, this electronic equipment forms first's data by 5 sub-data blocks that first download to, Bing Jianggai first data are stored in this built-in storage card, this electronic equipment determines that the memory capacity of these first's data reaches capacity threshold, this electronic equipment will be left 5 data blocks composition second portion data, and these second portion data are stored in this external storage card.
It should be noted that, this electronic equipment can also be stored in first's data of these data that download to and specific corresponding relation in this built-in storage card, the second portion data of these data that download to and this specific corresponding relation are stored in this external storage card, wherein, the corresponding relation between these specific corresponding relation Wei Gai first's data and this second portion data.
Like this, electronic equipment is after receiving the download instruction of user's transmission, if the residual capacity of the built-in storage card of this electronic equipment is not enough, this electronic equipment can automatically switch to these data that external storage card storage downloads to, and has avoided cannot downloading because of not enough these data that cause of residual capacity of built-in storage card.
In addition, for said method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
The embodiment of the present invention provides a kind of electronic equipment 30, and as shown in Figure 3, this electronic equipment 30 comprises:
Acquiring unit 31, for receiving after download instruction at electronic equipment, obtain identification information and the data amount information of data to be downloaded, and determine the first storage capacity value according to this data amount information, wherein, this first memory capacity value representation is stored the size of the minimized storage space of these data needs;
This acquiring unit 31 also for, obtain the first residual capacity value of the built-in storage card of this electronic equipment;
This acquiring unit 31 also for, when definite this first residual capacity value is less than this first storage capacity value, obtain the second residual capacity value of the external storage card of this electronic equipment;
Processing unit 32, while being not less than this first storage capacity value for the second residual capacity value getting at definite this acquiring unit 31, downloading this data according to this identification information, and these data is stored in this external storage card.
It should be noted that, this electronic equipment can be for carrying the outer mobile phone that is inserted with external storage card of built-in storage card while.
Particularly, user is when by electronic equipment downloading data, by corresponding operation (as clicked the download option), to this electronic equipment, send download instruction, this electronic equipment obtains identification information and the data amount information of these data according to this download instruction, wherein, this data amount information has represented the size of these data, and this electronic equipment is determined the size of the minimized storage space that these data of storage need, i.e. the first storage capacity value according to this data amount information.
Illustratively, data to be downloaded comprise two video files, wherein, the size of the first video file is 20M(million), the size of the second video file is 10M, this electronic equipment is when getting the data amount information of these data, and this electronic equipment determines that according to the size of the size of this first video file and this second video file the size of the needed minimized storage space of these data of storage is 30M, and this first storage capacity value is 30M.
Further, this electronic equipment obtains the first residual capacity value of the built-in storage card of this electronic equipment, and when definite this first residual capacity value is less than this first storage capacity value, obtains the second residual capacity value of the external storage card of this electronic equipment.
Particularly, this electronic equipment is when getting the first residual capacity value of this built-in storage card, this the first residual capacity value is compared with this first storage capacity value, if this first residual capacity value is more than or equal to this first storage capacity value, this electronic equipment determines that this built-in storage card has enough residual capacities to store data to be downloaded, and starting to download these data according to the identification information of data to be downloaded, this electronic equipment is all stored in the data that download in this built-in storage card; If this first residual capacity value is less than this first storage capacity value, this electronic equipment determines that this built-in storage card does not have enough residual capacities to store data to be downloaded, this electronic equipment obtains the second residual capacity value of the external storage card of this electronic equipment, to judge whether this external storage card has enough described data to be downloaded of residual capacity storage.
Further, this electronic equipment, when definite this second residual capacity value is not less than this first storage capacity value, is downloaded this data according to this identification information, and these data is stored in this external storage card.
It should be noted that, this electronic equipment is before downloading data, need to determine the memory location of these data of storage, therefore this electronic equipment needed to judge whether this built-in storage card or this external storage card have enough residual capacities and store this data, with this, determine the memory location of described data to be downloaded before downloading these data.
Particularly, this electronic equipment is after getting the second residual capacity value of this external storage card, this the second residual capacity value is compared with this first storage capacity value, if this second residual capacity value is more than or equal to this first storage capacity value, this electronic equipment determines that this external storage card has enough residual capacities to store data to be downloaded, and starting to download these data according to the identification information of data to be downloaded, this electronic equipment is all stored in the data that download in this external storage card; If this second residual capacity value is less than this first storage capacity value, this electronic equipment determines that this external storage card does not have enough residual capacities to store data to be downloaded.
Further, this processing unit 32 specifically for, in definite this second residual capacity value, be less than this first storage capacity value, and when this first residual capacity value and this second residual capacity value sum are not less than this first storage capacity value, according to this identification information, download this data, and first's data of these data that download to are stored in this built-in storage card, the second portion data of these data that download to are stored in this external storage card.
Particularly, this processing unit 32 also for, the data that download to are divided into a plurality of sub-blocks, and are stored in this built-in storage card at least one sub-block as first's data.
Illustratively, this electronic equipment is when determining that this built-in storage card and this external storage card all do not have enough described data to be downloaded of residual capacity storage, this electronic equipment is this internal memory and the total residual capacity value (i.e. this first residual capacity value and this second residual capacity value sum) of this external memory relatively, if the total residual capacity value of this internal memory and this external memory is more than or equal to this first storage capacity value, this electronic equipment starts to download these data according to this identification information, and the data that download to are divided into a plurality of sub-blocks that size is identical, this electronic equipment forms first's data according to downloading order by a part of sub-block, the sub-block of remainder is formed to second portion data, Gai Bingjianggai first data are stored in this built-in storage card, these second portion data are stored in this external storage card.
Alternatively, this processing unit 32 specifically for, record the storage capacity value of each sub-block, when the storage capacity value of Bing Gai first data reaches default capacity threshold, remaining sub-block is formed to second portion data.
Wherein, this capacity threshold is less than or equal to this first residual capacity value.
Particularly, this electronic equipment is before starting downloading data, can point out user that the capacity threshold of this built-in storage card is set, this electronic equipment is when starting downloading data, record the memory capacity of each sub-block, with the storage capacity value of these first's data of dynamic monitoring, when the storage capacity value of Dang Gai first data reaches this capacity threshold, this electronic equipment automatically switches to the sub-block that external storage card is stored other.
Illustratively, the first residual capacity value of this built-in storage card is 20M, the second residual capacity value of this external storage card is 30M, described data volume to be downloaded size is 40M, this first storage capacity value is 40M, this capacity threshold is 20M, this electronic equipment is when definite this built-in storage card and the total residual capacity value of this external storage card are greater than this first storage capacity value, start downloading data, and the data that download to are divided into size is the sub-block of 4M, these data can be divided into 10 sub-blocks, this electronic equipment is using 5 sub-blocks that first download to as first's data, Bing Jianggai first data are stored in this built-in storage card, this electronic equipment determines that the memory capacity of these first's data reaches capacity threshold, this electronic equipment will be left 5 data blocks as second portion data, and these second portion data are stored in this external storage card.
Further, this processing unit 32 specifically for, first's data of these data that download to and specific corresponding relation are stored in this built-in storage card, this processing unit also for, the second portion data of these data that download to and this specific corresponding relation are stored in this external storage card, wherein, the corresponding relation between these specific corresponding relation Wei Gai first's data and this second portion data.
Adopt above-mentioned electronic equipment, this electronic equipment is when receiving download instruction, by obtaining the data amount information of data to be downloaded, determine the size of the minimized storage space that these data of storage need, i.e. the first storage capacity value, and when determining that this first storage capacity value is greater than the first residual capacity value of built-in storage card of this electronic equipment, obtain the second residual capacity value of the external storage card of this electronic equipment, and when definite this second residual capacity value is not less than this first storage capacity value, according to the identification information of these data, download this data, and these data are stored in this external storage card.Like this, electronic equipment is after receiving the download instruction of user's transmission, if the residual capacity of the built-in storage card of this electronic equipment is not enough, this electronic equipment can automatically switch to these data that external storage card storage downloads to, and has avoided cannot downloading because of not enough these data that cause of residual capacity of built-in storage card.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a method for downloading data, is characterized in that, comprising:
Electronic equipment is after receiving download instruction, obtain identification information and the data amount information of data to be downloaded, and determine the first storage capacity value according to described data amount information, wherein, described the first memory capacity value representation is stored the size of the minimized storage space of described data needs;
Obtain the first residual capacity value of the built-in storage card of described electronic equipment;
When definite described the first residual capacity value is less than described the first storage capacity value, obtain the second residual capacity value of the external storage card of described electronic equipment;
When definite described the second residual capacity value is not less than described the first storage capacity value, according to described identification information, downloads described data, and described data are stored in described external storage card.
2. method according to claim 1, it is characterized in that, described method also comprises: in definite described the second residual capacity value, be less than described the first storage capacity value, and when described the first residual capacity value and described the second residual capacity value sum are not less than described the first storage capacity value, according to described identification information, download described data, and first's data of the described data that download to are stored in described built-in storage card, the second portion data of the described data that download to are stored in described external storage card.
3. method according to claim 2, is characterized in that, described first's data by the described data that download to are stored in described built-in storage card and comprise:
The data that download to are divided into a plurality of sub-blocks, and are stored in described built-in storage card at least one sub-block as first's data.
4. method according to claim 3, is characterized in that, the described second portion data by the described data that download to are stored in described external storage card and comprise:
Record the storage capacity value of each sub-block, and when the storage capacity value of described first data reaches default capacity threshold, using remaining sub-block as second portion data, be stored in described external storage card, wherein, described capacity threshold is less than or equal to described the first residual capacity value.
5. according to the method described in claim 3 or 4, it is characterized in that, described first's data by the described data that download to are stored in described built-in storage card, the second portion data of the described data that download to are stored in to described external storage card and comprise:
First's data of the described data that download to and specific corresponding relation are stored in described built-in storage card;
The second portion data of the described data that download to and described specific corresponding relation are stored in described external storage card, and wherein, described specific corresponding relation is the corresponding relation between described first data and described second portion data.
6. an electronic equipment, is characterized in that, comprising:
Acquiring unit, for receiving after download instruction at electronic equipment, obtain identification information and the data amount information of data to be downloaded, and determine the first storage capacity value according to described data amount information, wherein, described the first memory capacity value representation is stored the size of the minimized storage space of described data needs;
Described acquiring unit also for, obtain the first residual capacity value of the built-in storage card of described electronic equipment;
Described acquiring unit also for, when definite described the first residual capacity value is less than described the first storage capacity value, obtain the second residual capacity value of the external storage card of described electronic equipment;
Processing unit, while being not less than described the first storage capacity value for the second residual capacity value getting at definite described acquiring unit, downloading described data according to described identification information, and described data is stored in described external storage card.
7. electronic equipment according to claim 6, it is characterized in that, described processing unit specifically for, in definite described the second residual capacity value, be less than described the first storage capacity value, and when described the first residual capacity value and described the second residual capacity value sum are not less than described the first storage capacity value, according to described identification information, download described data, and first's data of the described data that download to are stored in described built-in storage card, the second portion data of the described data that download to are stored in described external storage card.
8. electronic equipment according to claim 7, is characterized in that, described processing unit specifically for, the data that download to are divided into a plurality of sub-blocks, and are stored in described built-in storage card at least one sub-block as first's data.
9. electronic equipment according to claim 8, it is characterized in that, described processing unit specifically for, record the storage capacity value of each sub-block, and when the storage capacity value of described first data reaches default capacity threshold, using remaining sub-block as second portion data, be stored in described external storage card, wherein, described capacity threshold is less than or equal to described the first residual capacity value.
10. electronic equipment according to claim 8 or claim 9, it is characterized in that, described processing unit specifically for, first's data of the described data that download to and specific corresponding relation are stored in described built-in storage card, described processing unit also for, the second portion data of the described data that download to and described specific corresponding relation are stored in described external storage card, wherein, described specific corresponding relation is the corresponding relation between described first data and described second portion data.
CN201310680348.5A 2013-12-11 2013-12-11 A kind of method and apparatus downloading data Active CN103699338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310680348.5A CN103699338B (en) 2013-12-11 2013-12-11 A kind of method and apparatus downloading data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310680348.5A CN103699338B (en) 2013-12-11 2013-12-11 A kind of method and apparatus downloading data

Publications (2)

Publication Number Publication Date
CN103699338A true CN103699338A (en) 2014-04-02
CN103699338B CN103699338B (en) 2016-07-20

Family

ID=50360879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310680348.5A Active CN103699338B (en) 2013-12-11 2013-12-11 A kind of method and apparatus downloading data

Country Status (1)

Country Link
CN (1) CN103699338B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050000A (en) * 2014-06-23 2014-09-17 广州金山网络科技有限公司 Method and system for improving success rate of downloading and mounting
CN105278967A (en) * 2014-05-29 2016-01-27 腾讯科技(深圳)有限公司 Method, device, and system for updating system of mobile terminal
CN105991729A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation package downloading method and server
CN107122211A (en) * 2017-04-25 2017-09-01 努比亚技术有限公司 Application software installation method, terminal and computer-readable recording medium
CN108696849A (en) * 2017-04-07 2018-10-23 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN110263006A (en) * 2019-06-25 2019-09-20 上海连尚网络科技有限公司 A kind of method and apparatus for downloading file on a user device
CN111262822A (en) * 2018-12-03 2020-06-09 中国电信股份有限公司 File storage method, device, block link point and system
CN112214426A (en) * 2020-09-25 2021-01-12 湖北三江航天红峰控制有限公司 VNX-based high-speed data recording module, data recording and analyzing method
CN113254392A (en) * 2021-07-12 2021-08-13 深圳比特微电子科技有限公司 Data storage method for system on chip and device based on system on chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045434A (en) * 2009-10-12 2011-05-04 阿尔派株式会社 Telephone, vehicular hand-free telephone system and download method
US20120198133A1 (en) * 2011-01-28 2012-08-02 Hon Hai Precision Industry Co., Ltd. Electronic device with expandable memory capacity and an expansion method thereof
CN102902488A (en) * 2012-08-06 2013-01-30 广东欧珀移动通信有限公司 Memory card of handheld equipment and dynamic mounting method of memory card
CN103425436A (en) * 2012-05-21 2013-12-04 联想(北京)有限公司 Terminal equipment and virtual storage unit management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045434A (en) * 2009-10-12 2011-05-04 阿尔派株式会社 Telephone, vehicular hand-free telephone system and download method
US20120198133A1 (en) * 2011-01-28 2012-08-02 Hon Hai Precision Industry Co., Ltd. Electronic device with expandable memory capacity and an expansion method thereof
CN103425436A (en) * 2012-05-21 2013-12-04 联想(北京)有限公司 Terminal equipment and virtual storage unit management method
CN102902488A (en) * 2012-08-06 2013-01-30 广东欧珀移动通信有限公司 Memory card of handheld equipment and dynamic mounting method of memory card

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278967A (en) * 2014-05-29 2016-01-27 腾讯科技(深圳)有限公司 Method, device, and system for updating system of mobile terminal
CN105278967B (en) * 2014-05-29 2020-05-05 腾讯科技(深圳)有限公司 System updating method, device and system of mobile terminal
CN104050000A (en) * 2014-06-23 2014-09-17 广州金山网络科技有限公司 Method and system for improving success rate of downloading and mounting
CN105991729A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation package downloading method and server
CN105991729B (en) * 2015-02-12 2019-12-31 Oppo广东移动通信有限公司 Installation package downloading method and server
CN108696849A (en) * 2017-04-07 2018-10-23 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN107122211A (en) * 2017-04-25 2017-09-01 努比亚技术有限公司 Application software installation method, terminal and computer-readable recording medium
CN111262822A (en) * 2018-12-03 2020-06-09 中国电信股份有限公司 File storage method, device, block link point and system
CN111262822B (en) * 2018-12-03 2022-04-19 中国电信股份有限公司 File storage method, device, block link point and system
CN110263006A (en) * 2019-06-25 2019-09-20 上海连尚网络科技有限公司 A kind of method and apparatus for downloading file on a user device
CN112214426A (en) * 2020-09-25 2021-01-12 湖北三江航天红峰控制有限公司 VNX-based high-speed data recording module, data recording and analyzing method
CN113254392A (en) * 2021-07-12 2021-08-13 深圳比特微电子科技有限公司 Data storage method for system on chip and device based on system on chip

Also Published As

Publication number Publication date
CN103699338B (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN103699338B (en) A kind of method and apparatus downloading data
CN105760199B (en) A kind of application resource loading method and its equipment
CN103744821A (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN105430478B (en) A kind of network video buffered play method, apparatus and television set
CN104035769A (en) Processing method and device for space shortage
CN108495344B (en) Network switching method, device and terminal
CN104166621A (en) Data processing method and device
CN105677742A (en) Method and apparatus for storing files
CN104899049A (en) File deletion method and device
CN107590144A (en) A kind of file memory method and terminal
CN103763596A (en) State switching method and device
CN107229421B (en) Method and device for creating video data storage system, method and device for writing file into video data storage system and method and device for reading video data storage system
CN103825945A (en) Fragmentation storage method and user terminal
CN106406747A (en) Hard disk storage management method and apparatus for mobile terminal
US9195582B2 (en) Data storing method and apparatus applied to flash memory storage device
CN104765631A (en) Restoration method and device for application program of mobile terminal
CN104102498A (en) Mobile terminal and booting method thereof
CN104281505A (en) Data backup method and device and electronic device
CN101320389B (en) File management method and apparatus
CN107148612A (en) A kind of method and apparatus of extending user subregion
CN103116729B (en) A kind of portable device data derives method and system automatically
US10082956B2 (en) Method and apparatus for downloading data including a progress bar indicating progress of downloading
CN105657552A (en) Set top box upgrading method capable of reserving user configuration
CN108874591B (en) Document processing method and related product
CN104182181A (en) Data processing method, device and terminal of memory card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230110

Address after: 100025 1502, 12 / F, building 3, 105 yaojiayuan Road, Chaoyang District, Beijing

Patentee after: LETV new generation (Beijing) Cultural Media Co.,Ltd.

Address before: 100089 room 6184, 6th floor, building 19, 68 Xueyuan South Road, Haidian District, Beijing

Patentee before: LE SHI INTERNET INFORMATION & TECHNOLOGY CORP., BEIJING

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 1-103, Commercial Room 1, Floor 1, Building 3, No. 105, Yaojiayuan Road, Chaoyang District, Beijing 100025

Patentee after: LETV new generation (Beijing) Cultural Media Co.,Ltd.

Address before: 100025 1502, 12 / F, building 3, 105 yaojiayuan Road, Chaoyang District, Beijing

Patentee before: LETV new generation (Beijing) Cultural Media Co.,Ltd.