CN103023755B - The method of transfer of data and electronic equipment - Google Patents

The method of transfer of data and electronic equipment Download PDF

Info

Publication number
CN103023755B
CN103023755B CN201210524733.6A CN201210524733A CN103023755B CN 103023755 B CN103023755 B CN 103023755B CN 201210524733 A CN201210524733 A CN 201210524733A CN 103023755 B CN103023755 B CN 103023755B
Authority
CN
China
Prior art keywords
transfer speeds
network transfer
data
transmitted
transmission speed
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.)
Active
Application number
CN201210524733.6A
Other languages
Chinese (zh)
Other versions
CN103023755A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201210524733.6A priority Critical patent/CN103023755B/en
Publication of CN103023755A publication Critical patent/CN103023755A/en
Application granted granted Critical
Publication of CN103023755B publication Critical patent/CN103023755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of method and electronic equipment of transfer of data, relate to electronic apparatus application field.Can solve the inefficient problem of data acquisition owing to causing alternately because of generation unnecessary information, and data obtaining time time-out causes Mail Contents to obtain failed problem.Described method comprises: obtain current network transmission speed; Described current network transmission speed and default network transfer speeds are compared; Transmission means is generated according to comparative result.The present invention is mainly applied and is undertaken in the process of data upload and download by electronic equipment.

Description

The method of transfer of data and electronic equipment
Technical field
The present invention relates to electronic apparatus application field, particularly relate to a kind of method and electronic equipment of transfer of data.
Background technology
Along with the development of network technology, network-covered is to each corner of life.User carries electronic equipment in subway and other modes of transport by Generation Mobile Telecommunication System technology (2ndGeneration, be called for short 2G), G mobile communication (3rdGeneration, be called for short 3G) etc. network communicate, when moving to the indoor such as office, communicate by Wireless Fidelity Wi-Fi wireless network and cable network.Along with the raising of network usage, the data that the Large Copacity annex, voice messaging etc. of Email have big data quantity are used widely in periodic traffic.
When user is by electronic equipment reading mail, default behavior is the mail head that electronic equipment only obtains mail, if when user wishes to read Mail Contents, needs to obtain Mail Contents by clicking mail head.Except default behavior, user also can arrange the full content that electronic equipment obtains mail, namely obtains the mail head of mail, Mail Contents and annex.
State in realization in the process of transfer of data, inventor finds that in prior art, at least there are the following problems: the network connected due to electronic equipment can change because of place, therefore, for default behavior, when network transfer speeds is fast, network can support the full content obtaining mail, if desired sees that the full content of mail needs again to click mail head, create unnecessary information interaction, cause data acquisition efficiency low.For the mode of the full content of acquisition mail, when network transfer speeds is slow, electronic equipment cannot obtain the full content of mail at short notice, and this mail will be defined as obtaining by electronic equipment because of wait timeout, cause mail to obtain unsuccessfully.
Summary of the invention
Method and the electronic equipment providing a kind of transfer of data of the present invention, can solve the inefficient problem of data acquisition owing to causing alternately because of generation unnecessary information in prior art, and data obtaining time time-out causes Mail Contents to obtain failed problem.
On the one hand, the invention provides a kind of data transmission method, described method comprises:
Draw default network transfer speeds according to preset rules, specifically comprise:
The size of data of the subdata of data to be transmitted and default stand-by period are divided by, obtain first and preset network transfer speeds;
And/or, the overall data size of described data to be transmitted and default stand-by period are divided by, obtain second and preset network transfer speeds;
Obtain current network transmission speed;
Described current network transmission speed and described default network transfer speeds are compared;
Generate transmission means according to comparative result, specifically comprise:
The type applied belonging to described data to be transmitted, described first presets network transfer speeds and the described second default network transfer speeds generates described transmission means.
On the other hand, the invention provides a kind of electronic equipment, described electronic equipment comprises:
Pretreatment unit, for drawing default network transfer speeds according to preset rules, specifically for:
The size of data of the subdata of data to be transmitted and default stand-by period are divided by, obtain first and preset network transfer speeds;
The overall data size of described data to be transmitted and default stand-by period are divided by, obtain second and preset network transfer speeds;
Network monitoring unit, for obtaining current network transmission speed;
Judging unit, for comparing the described current network transmission speed of described network monitoring unit acquisition and described default network transfer speeds;
Generation unit, generates transmission means for the comparative result according to described judging unit, specifically for:
The type applied belonging to described data to be transmitted, described first presets network transfer speeds and the described second default network transfer speeds generates described transmission means.
The method of transfer of data provided by the invention and electronic equipment, can generate different transmission meanss according to current network transmission speed.With set manually compared with data transfer mode in prior art, the present invention in data acquisition without the need to manually setting data transfer mode, by comparing current network transmission speed and default network transfer speeds can determine concrete transmission means automatically.When network transfer speeds can support the full content obtaining mail, directly download the full content of mail, data interaction number of times can be reduced, improve data acquisition efficiency.When network transfer speeds cannot obtain the full content of mail at short notice, the partial content of mail is obtained according to current network transfer speeds, reach the partial data downloaded within the fixing stand-by period and adapt with current network transmission speed, ensure successfully to download mail data, avoid wait timeout.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the method for a transfer of data in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another transfer of data in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for another transfer of data in the embodiment of the present invention;
Fig. 4 is a structural representation of electronic equipment in the embodiment of the present invention;
Fig. 5 is another structural representation of electronic equipment in the embodiment of the present invention;
Fig. 6 is another structural representation of electronic equipment in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention provides a kind of data transmission method, and as shown in Figure 1, described method comprises:
Step 101, acquisition current network transmission speed.
Electronic equipment obtains current network transmission speed by equipment such as sniffers.Described current network transmission speed is mean value.Calculate the signal fluctuation produced in the unit interval in Internet Transmission, 30 signal fluctuations such as, produced in 1 second calculate, and can obtain the average transmission speed in the unit interval.In addition, also can by the average transmission speed in a period of time, such as, average transmission speed in 5 seconds, as current network transmission speed.
Step 102, described current network transmission speed and default network transfer speeds to be compared.
Described default network transfer speeds is the network transfer speeds corresponding to different transmission means.Described current network transmission speed step 101 obtained and default network transfer speeds compare, and can be used for distinguishing different transmission meanss.
Step 103, according to comparative result generate transmission means.
According to the comparative result of step 102, generate the transmission means corresponding with described current network transmission speed.Such as, when data to be transmitted is mail, if when current network transmission speed is greater than default network transfer speeds, then the transmission means generated is the full content obtaining mail.If when current network transmission speed is less than described default network transfer speeds, then the transmission means generated is the partial content obtaining mail.
The method of the transfer of data that the embodiment of the present invention provides, can generate different transmission meanss according to current network transmission speed.With set manually compared with data transfer mode in prior art, without the need to manually setting data transfer mode in data acquisition, by comparing current network transmission speed and default network transfer speeds determines concrete transmission means.Such as: when current network transmission speed is greater than default network transfer speeds, when namely network transfer speeds can be supported to obtain the full content of mail, directly download the full content of mail, data interaction number of times can be reduced, raising data acquisition efficiency.When current network transmission speed is less than described default network transfer speeds, namely when network transfer speeds cannot obtain the full content of mail at short notice, download the partial content of mail, reach the partial data downloaded within the fixing stand-by period and adapt with current network transmission speed, ensure successfully to download mail data, avoid wait timeout.
Embodiment two
As further illustrating embodiment one, the embodiment of the present invention provides a kind of data transmission method, and as shown in Figure 2, described method comprises:
Before described step 101, as shown in Figure 2, described method comprises further:
Step 201, obtain the preset value of described default network transfer speeds.
Or, draw described default network transfer speeds according to preset rules.
Wherein, described preset value is fixed value, such as 100kb/s, 15kb/s etc.For the network environment that network transfer speeds change is less, default network parameter can be set to preset value.Thus, when transfer of data, without the need to obtaining default network parameter by computing.
Describedly draw described default network transfer speeds according to preset rules, as shown in Figure 3, specifically comprise:
Step 301, the size of data of the subdata of data to be transmitted and default stand-by period to be divided by, to obtain first and preset network transfer speeds.
The stand-by period that the described default stand-by period, to be user arranged by electronic equipment or the default value of storage.The described default stand-by period can be 5 seconds, 10 seconds etc.Click button log-on data acquisition processs such as " refreshings " from user, after the default stand-by period, electronic equipment is presented at the data obtained in the described default stand-by period.
Electronic equipment obtains the attribute information of the subdata of described data to be transmitted by network side server, the attribute information of described subdata comprises the information such as the type of subdata, size.
Dissimilar data to be transmitted, the type of its subdata is also not quite similar.
When described data to be transmitted is mail, described subdata is any one data following:
Mail head;
Mail head and Mail Contents.
When described data to be transmitted is webpage, described subdata is any one data following:
Text message in webpage;
Image information in webpage;
Stream media information in webpage.
When described data to be transmitted is video information, described subdata is any one data following:
The attribute information of video information;
The audio-frequency information of video information;
The image information of video information.
Described first presets network transfer speeds, for completing the minimal network transmission speed transmitted the subdata of the described data to be transmitted of transmission within the default stand-by period.Be less than the network transfer speeds that first presets network transfer speeds, cannot complete and the subdata of described data to be transmitted is transmitted.
Be 5 seconds when the described default stand-by period, the size of the subdata of described data to be transmitted is 50kb, then described first to preset network transfer speeds be 50/5=10kb/s.
Step 302, the overall data size of described data to be transmitted and described default stand-by period to be divided by, to obtain second and preset network transfer speeds.
Electronic equipment also obtains the attribute information of the overall data of described data to be transmitted by network side server, the attribute information of described overall data comprises the information such as the type of overall data, size.
Except the first default network transfer speeds corresponding according to the subdata of described data to be transmitted carries out computing, the second default network transfer speeds corresponding to the overall data of described data to be transmitted is also needed to carry out computing.To determine the time of transmitting needed for the overall data of described data to be transmitted.
If the described default stand-by period is 5 seconds, the size of the overall data of described data to be transmitted is 500kb, then the described first default network transfer speeds is 500/5=100kb/s.
Further, step 103, according to comparative result generate transmission means, specifically comprise: the type applied belonging to described data to be transmitted, described first preset network transfer speeds and described second preset network transfer speeds generate described transmission means.
Preset network transfer speeds and described second according to obtain in step 301 and step 302 described first and preset network transfer speeds, generate the transmission method corresponding to dissimilar data to be transmitted.Specifically comprise:
When the type of described data to be transmitted is mail, described first presets network transfer speeds specifically comprises:
1, the First Speed of mail head is transmitted;
2, the second speed of mail head and Mail Contents is transmitted.
Described second presets network transfer speeds for transmission mail head, Mail Contents and annex, namely transmits the third speed of mail full detail.
The described transmission means of described generation specifically comprises:
1) if described current network transmission speed is less than described first preset network transfer speeds, then display reminding information.
If described current network transmission speed is less than described First Speed, then point out user's current network signal difference.Because now, the subdata that size of data is minimum cannot be transmitted, i.e. mail head.Electronic device prompts user current network signal difference.
2) if described current network transmission speed is less than described second preset network transfer speeds, be greater than described first and preset network transfer speeds, then transmit mail head.
Even described current network transmission speed is less than described second speed (being namely less than described third speed), is greater than described First Speed, then transmits mail head.
3) if described current network transmission speed is less than described second preset network transfer speeds, be greater than described first and preset network transfer speeds, then transmit mail head and Mail Contents.
Even described current network transmission speed is less than described third speed, is greater than described second speed, then transmit mail head and Mail Contents.
4) if described current network transmission speed is greater than described second preset network transfer speeds, then transmit mail head, Mail Contents and annex, namely transmit mail full detail.
Even described current network transmission speed is greater than described third speed, then transmit mail head, Mail Contents and annex, namely transmits mail full detail.
Optionally, when the type of described data to be transmitted is webpage, described first presets network transfer speeds specifically comprises:
1, the First Speed of the text message of webpage is transmitted;
2, the text message of webpage and the second speed of image information is transmitted.
Described second presets text message, image information and the stream media information that network transfer speeds is transmission webpage, namely transmits the third speed of webpage full detail.
The described transmission means of described generation specifically comprises:
1) if described current network transmission speed is less than described first preset network transfer speeds, then display reminding information.
If described current network transmission speed is less than described First Speed, then point out user's current network signal difference.Because now, the subdata that size of data is minimum cannot be transmitted, i.e. the text message of webpage.Electronic device prompts user current network signal difference.
2) if described current network transmission speed is less than described second preset network transfer speeds, be greater than described first and preset network transfer speeds, then transmit the text message of webpage.
Even described current network transmission speed is less than described second speed (being namely less than described third speed), is greater than described First Speed, then transmits text message.
3) if described current network transmission speed is less than described second preset network transfer speeds, be greater than described first and preset network transfer speeds, then transmit text message and the image information of webpage.
Even described current network transmission speed is less than described third speed, is greater than described second speed, then transmit the text message of described webpage and described image information.
4) if described current network transmission speed is greater than described second preset network transfer speeds, then transmit the text message of webpage, image information and stream media information, namely transmit webpage full detail.
Even described current network transmission speed is greater than described third speed, then transmit text message, image information and annex, namely transmits webpage full detail.
Optionally, when the type of described data to be transmitted is video information, described first presets network transfer speeds specifically comprises:
1, the First Speed of the attribute information of described video information is transmitted;
2, the attribute information of described video information and the second speed of audio-frequency information is transmitted.
Described second to preset network transfer speeds be transmit the attribute information of described video information, audio-frequency information and image information, the i.e. third speed of transmission of video information full detail.
The described transmission means of described generation specifically comprises:
1) if described current network transmission speed is less than described first preset network transfer speeds, then display reminding information.
If described current network transmission speed is less than described First Speed, then point out user's current network signal difference.Because now, the subdata that size of data is minimum cannot be transmitted, i.e. the attribute information of described video information.Electronic device prompts user current network signal difference.
2) if described current network transmission speed is less than described second preset network transfer speeds, be greater than described first and preset network transfer speeds, the then attribute information of transmission of video information.
Even described current network transmission speed is less than described second speed (being namely less than described third speed), is greater than described First Speed, then transmits the attribute information of described video information.
3) if described current network transmission speed is less than described second preset network transfer speeds, be greater than described first and preset network transfer speeds, then the attribute information of transmission of video information and audio-frequency information.
Even described current network transmission speed is less than described third speed, is greater than described second speed, then transmit attribute information and the audio-frequency information of described video information.
4) if described current network transmission speed is greater than described second preset network transfer speeds, then the attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information.
Even described current network transmission speed is greater than described third speed, then the attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information.
Further, after step 103, described method also comprises: store described transmission means.
The transmission means of above-mentioned generation can store by electronic equipment, to use during lower data transfer.
In the step of above-mentioned generation, the difference according to the type of subdata can mark off multiple speed, is not limited to First Speed, second speed and third speed, such as: also have the 4th speed, the 5th speed etc. or only have First Speed.Described mail, webpage and video information illustrating as data to be transmitted, can not be interpreted as the restriction to data to be transmitted.Transmission comprises transmission and receives, and sends and comprises the scene such as uploading data, transmission information, receive and comprise the scene such as browsing page, reception information.In addition, when default network speed is preset value, above-mentioned different transmission means can be adopted equally to transmit data.During concrete enforcement, First Speed is equivalent to the first preset value (as 15kb/s), and second speed is equivalent to the second preset value (as 50kb/s), and third speed is equivalent to the 3rd preset value (as 100kb/s).
The method of the transfer of data that the embodiment of the present invention provides, can generate different transmission meanss according to current network transmission speed.With set manually compared with data transfer mode in prior art, the method that the embodiment of the present invention provides in data acquisition without the need to manually setting data transfer mode, by comparing current network transmission speed and default network transfer speeds generates concrete transmission means.Concrete transmission means is: when current network transmission speed is greater than third speed, when namely network transfer speeds can be supported to obtain the full content of mail, directly downloads the full content of mail, can reduce data interaction number of times, raising data acquisition efficiency.Third speed is less than in current network transmission speed, when being greater than second speed or being greater than First Speed, namely when network transfer speeds cannot obtain the full content of mail at short notice, the partial content of mail is obtained according to current network transfer speeds, reach the partial data downloaded within the fixing stand-by period and adapt with current network transmission speed, ensure successfully to download mail data, avoid wait timeout.When current network transmission speed is less than First Speed, when namely network transfer speeds cannot obtain the partial content of mail at short notice, prompting user current network signal difference, avoids user's wait timeout.
Embodiment three
The embodiment of the present invention provides a kind of electronic equipment, and as shown in Figure 4, described electronic equipment comprises:
Network monitoring unit 41, for obtaining current network transmission speed.
Described current network transmission speed is mean value.Calculate the signal fluctuation produced in the unit interval in Internet Transmission, 30 signal fluctuations such as, produced in 1 second calculate, and can obtain the average transmission speed in the unit interval.In addition, also can by the average transmission speed in a period of time, such as, average transmission speed in 5 seconds, as current network transmission speed.
Judging unit 42, compares for the described current network transmission speed that obtained by described network monitoring unit 41 and default network transfer speeds.
Wherein, described default network transfer speeds is the network transfer speeds corresponding to different transmission means.The described current network transmission speed obtained by network monitoring unit 41 and default network transfer speeds compare, and can be used for distinguishing different transmission meanss.
Generation unit 43, generates transmission means for the comparative result according to described judging unit 42.
Generation unit 43, according to the comparative result of judging unit 42, generates the transmission means corresponding with described current network transmission speed.Such as, when data to be transmitted is mail, if when current network transmission speed is greater than default network transfer speeds, then obtain the full content of mail.If when current network transmission speed is less than described default network transfer speeds, then obtain the partial content of mail.
Further, as shown in Figure 5, described electronic equipment also comprises default network transfer speeds acquiring unit 51, for obtaining the preset value of the described default network transfer speeds of storage.
Described preset value is fixed value, such as 100kb/s, 15kb/s etc.For the network environment that network transfer speeds change is less, default network parameter can be set to preset value.Thus, when transfer of data, without the need to obtaining default network parameter by computing, judging unit 42 can directly judge according to the preset value presetting network transfer speeds acquiring unit 51 acquisition.
Described electronic equipment also comprises pretreatment unit 52, for drawing described default network transfer speeds according to preset rules.
Described pretreatment unit 52 specifically for: the size of data of the subdata of data to be transmitted and default stand-by period are divided by, obtain first preset network transfer speeds.
The described default stand-by period is the stand-by period that user is arranged by electronic equipment.The described default stand-by period can be 5 seconds, 10 seconds etc.Click button log-on data acquisition processs such as " refreshings " from user, after the default stand-by period, electronic equipment is presented at the data obtained in the described default stand-by period.
Receiving element 53, for receiving the attribute information of subdata of the described data to be transmitted that network side server sends, the attribute information of described subdata comprises the information such as the type of subdata, size, for described with processing unit 52 computing.
Described first default network transfer speeds is within the default stand-by period, can complete the minimal network transmission speed transmitted the subdata of the described data to be transmitted of transmission.Be less than the network transfer speeds that first presets network transfer speeds, cannot complete and the subdata of described data to be transmitted is transmitted.
Be 5 seconds when the described default stand-by period, the size of the subdata of described data to be transmitted is 50kb, then described pretreatment unit 52 obtains described first through computing to preset network transfer speeds is 50/5=10kb/s.
Described pretreatment unit 52 also for: the overall data size of described data to be transmitted and described default stand-by period are divided by, obtain second preset network transfer speeds.
Described receiving element 53 is also for receiving the attribute information of the overall data of the described data to be transmitted that network side server sends, and the attribute information of described overall data comprises the information such as the type of overall data, size.
Described pretreatment unit 52 carries out computing except the first default network transfer speeds corresponding by the subdata of described data to be transmitted, also needs the second default network transfer speeds corresponding to the overall data of described data to be transmitted to carry out computing.To determine the time of transmitting needed for the overall data of described data to be transmitted.
If the described default stand-by period is 5 seconds, the size of the overall data of described data to be transmitted is 500kb, then the described first default network transfer speeds is 500/5=100kb/s.
Further, described generation unit 43, also presets network transfer speeds generate described transmission means for the type applied belonging to the described data to be transmitted of receiving element reception 53, described the described first default network transfer speeds and described second obtained with pretreatment unit 52.
Concrete, when the type of described data to be transmitted is mail, described first presets network transfer speeds specifically comprises:
1, the First Speed of mail head is transmitted;
2, the second speed of mail head and Mail Contents is transmitted.
Described second presets network transfer speeds for transmission mail head, Mail Contents and annex, namely transmits the third speed of mail full detail.
Described generation unit specifically comprises:
First generates subelement 431, during for being less than the described first default network transfer speeds when described current network transmission speed, determines display reminding information.
Described first transmission means generating subelement 431 generation is: if described current network transmission speed is less than described First Speed, then point out user's current network signal difference.Because now, the subdata that size of data is minimum cannot be transmitted, i.e. mail head.Display display reminding information, to point out user's current network signal difference.
Second generates subelement 432, is mail for the type when described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines to transmit mail head.
Described second transmission means generating subelement 432 generation is: if described current network transmission speed is less than described second speed (being namely less than described third speed), be greater than described First Speed, then transmitting element 61 sends mail head or receiving element 53 receives mail head.
3rd generates subelement 433, is mail for the type when described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines transmission mail head and Mail Contents.
Described 3rd transmission means generating subelement 433 generation is: if described current network transmission speed is less than described third speed, be greater than described second speed, then transmitting element 61 sends mail head and Mail Contents, or receiving element 53 receives mail head and Mail Contents.
4th generates subelement 434, when the type of described data to be transmitted is mail, and when described current network transmission speed is greater than the described second default network transfer speeds, determines transmission mail head, Mail Contents and annex, namely transmits mail full detail;
Described 4th transmission means generating subelement 434 generation is: if described current network transmission speed is greater than described third speed, then transmitting element 61 sends mail head, Mail Contents and annex, or, receiving element 53 receives mail head, Mail Contents and annex, i.e. the full detail of mail.
Optionally, when the type of described data to be transmitted is webpage, described first presets network transfer speeds specifically comprises:
1, the First Speed of the text message of webpage is transmitted;
2, the text message of webpage and the second speed of image information is transmitted.
Described second presets text message, image information and the stream media information that network transfer speeds is transmission webpage, namely transmits the third speed of webpage full detail.
First generates subelement 431, and also for being webpage when the type of described data to be transmitted, and described current network transmission speed is less than described first when presetting network transfer speeds, determines display reminding information.
Described first transmission means generating subelement 431 generation is: if described current network transmission speed is less than described First Speed, then point out user's current network signal difference.Because now, the subdata that size of data is minimum cannot be transmitted, i.e. the text message of webpage.Electronic device prompts user current network signal difference.
Second generates subelement 432, also for being webpage when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines the text message transmitting described webpage.
Described second transmission means generating subelement 432 generation is: if described current network transmission speed is less than described second speed (being namely less than described third speed), be greater than described First Speed, then transmitting element 61 sends text message, or receiving element 53 receives text message.
3rd generates subelement 433, also for being webpage when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines text message and the image information of transmitting described webpage.
Described 3rd transmission means generating subelement 433 generation is: if described current network transmission speed is less than described third speed, be greater than described second speed, then transmitting element 61 sends the text message of described webpage and described image information, or receiving element 53 receives the text message of described webpage and described image information.
4th generates subelement 434, also for being webpage when the type of described data to be transmitted, and described current network transmission speed is greater than described second when presetting network transfer speeds, determines to transmit the text message of webpage, image information and stream media information, namely transmits webpage full detail.
Described 4th transmission means generating subelement 434 generation is: if described current network transmission speed is greater than described third speed, then transmitting element 61 sends text message, image information and annex, namely webpage full detail is transmitted, or receiving element 53 receives text message, image information and annex.
Optionally, when the type of described data to be transmitted is video information, described first presets network transfer speeds specifically comprises:
1, the First Speed of the attribute information of described video information is transmitted;
2, the attribute information of described video information and the second speed of audio-frequency information is transmitted.
Described second to preset network transfer speeds be transmit the attribute information of described video information, audio-frequency information and image information, the i.e. third speed of transmission of video information full detail.
First generates subelement 431, and also for being video information when the type of described data to be transmitted, and described current network transmission speed is less than described first when presetting network transfer speeds, determines display reminding information.
Described first transmission means generating subelement 431 generation is: if described current network transmission speed is less than described First Speed, then point out user's current network signal difference.Because now, the subdata that size of data is minimum cannot be transmitted, i.e. the text message of webpage.Electronic device prompts user current network signal difference.
Second generates subelement 432, also for being video information when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines the attribute information transmitting described video information.
Described second transmission means generating subelement 432 generation is: described current network transmission speed is less than described second speed (being namely less than described third speed), be greater than described First Speed, then transmitting element 61 sends the attribute information of described video information, or receiving element 53 receives the attribute information of described video information.
3rd generates subelement 433, also for being video information when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines attribute information and the audio-frequency information of transmission of video information.
Described 3rd transmission means generating subelement 433 generation is: if described current network transmission speed is less than described third speed, be greater than described second speed, then transmitting element 61 sends attribute information and the audio-frequency information of described video information, or receiving element 53 receives attribute information and the audio-frequency information of described video information.
4th generates subelement 434, also for being video information when the type of described data to be transmitted, and described current network transmission speed be greater than described second preset network transfer speeds time, determine the attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information.
Described 3rd transmission means generating subelement 433 generation is: if described current network transmission speed is greater than described third speed, then transmitting element 61 sends the attribute information of video information, audio-frequency information and image information, i.e. all videos information, or, the attribute information of receiving element 53 receiver, video information, audio-frequency information and image information.
Further, described electronic equipment also comprises: memory cell 54, for storing the described transmission means that described generation unit 43 generates.
Memory cell 54 also for storing transmission means, to use during lower data transfer.
The electronic equipment that the embodiment of the present invention provides, the current network transmission speed obtained according to network monitoring unit 41 by generation unit 43 generates different transmission meanss.With set manually compared with data transfer mode in prior art, the electronic equipment that the embodiment of the present invention provides without the need to manually setting data transfer mode, compares current network transmission speed by judging unit 42 and default network transfer speeds is determined to generate concrete transmission means in data acquisition.The subelement comprised by generation unit 43 generates concrete transmission means, 4th generates subelement 434 for when current network transmission speed is greater than third speed, namely when network transfer speeds can be supported to obtain the full content of mail, the full content of direct download mail, data interaction number of times can be reduced, improve data acquisition efficiency.Second generates subelement 432 and the 3rd generates subelement 433 all for being less than third speed in current network transmission speed, when being greater than second speed or being greater than First Speed, namely when network transfer speeds cannot obtain the full content of mail at short notice, the partial content of mail is obtained according to current network transfer speeds, reach the partial data downloaded within the fixing stand-by period and adapt with current network transmission speed, ensure successfully to download mail data, avoid wait timeout.First generates subelement 431 for when current network transmission speed is less than First Speed, and when namely network transfer speeds cannot obtain the partial content of mail at short notice, prompting user current network signal difference, avoids user's wait timeout.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by electronic equipment is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of electronic equipment and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, electronic equipment and method, can realize by another way.Such as, electronic equipment embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of electronic equipment or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (6)

1. a data transmission method, is characterized in that, described method comprises:
Draw default network transfer speeds according to preset rules, specifically comprise:
The size of data of the subdata of data to be transmitted and default stand-by period are divided by, obtain first and preset network transfer speeds;
Be divided by with by the overall data size of described data to be transmitted and default stand-by period, obtain second and preset network transfer speeds;
Obtain current network transmission speed;
Described current network transmission speed and described default network transfer speeds are compared;
Generate transmission means according to comparative result, specifically comprise:
The type applied belonging to described data to be transmitted, described first presets network transfer speeds and the described second default network transfer speeds generates described transmission means;
The described type, described first applied belonging to described data to be transmitted presets network transfer speeds and the described second default network transfer speeds generates described transmission means, specifically comprises:
If described current network transmission speed is less than described first preset network transfer speeds, then display reminding information;
If described current network transmission speed is less than described second preset network transfer speeds, is greater than described first and presets network transfer speeds, then generate the transmission means of the subdata of the described data to be transmitted of transmission;
If described current network transmission speed is greater than described second preset network transfer speeds, then generate the transmission means of the whole described data to be transmitted of transmission.
2. method according to claim 1, is characterized in that, before described acquisition current network transmission speed, described method also comprises:
Obtain the preset value of described default network transfer speeds.
3. method according to claim 1, is characterized in that, the type applied belonging to described data to be transmitted, described first presets network transfer speeds and the described second default network transfer speeds generates described transmission means, specifically comprises:
When the type of described data to be transmitted is mail, generates described transmission means and specifically comprise:
If described current network transmission speed is less than described first preset network transfer speeds, then display reminding information;
If described current network transmission speed is less than described second preset network transfer speeds, is greater than described first and presets network transfer speeds, then transmit mail head and Mail Contents, or transmission mail head;
If described current network transmission speed is greater than described second preset network transfer speeds, then transmit mail head, Mail Contents and annex, namely transmit mail full detail; Or,
When the type of described data to be transmitted is webpage, generates described transmission means and specifically comprise:
If described current network transmission speed is less than described first preset network transfer speeds, then display reminding information;
If described current network transmission speed is less than described second preset network transfer speeds, is greater than described first and presets network transfer speeds, then transmit the text message of webpage, or, the text message of transmission webpage;
If described current network transmission speed is greater than described second preset network transfer speeds, then transmit the text message of webpage, image information and stream media information, namely transmit webpage full detail; Or,
When the type of described data to be transmitted is video information, generates described transmission means and specifically comprise:
If described current network transmission speed is less than described first preset network transfer speeds, then display reminding information;
If described current network transmission speed is less than described second preset network transfer speeds, is greater than described first and presets network transfer speeds, then the attribute information of transmission of video information and audio-frequency information, or, the attribute information of transmission of video information;
If described current network transmission speed is greater than described second preset network transfer speeds, then the attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information.
4. an electronic equipment, is characterized in that, described electronic equipment comprises:
Pretreatment unit, for drawing default network transfer speeds according to preset rules, specifically for:
The size of data of the subdata of data to be transmitted and default stand-by period are divided by, obtain first and preset network transfer speeds;
The overall data size of described data to be transmitted and default stand-by period are divided by, obtain second and preset network transfer speeds;
Network monitoring unit, for obtaining current network transmission speed;
Judging unit, for comparing the described current network transmission speed of described network monitoring unit acquisition and described default network transfer speeds;
Generation unit, generates transmission means for the comparative result according to described judging unit, specifically for:
The type applied belonging to described data to be transmitted, described first presets network transfer speeds and the described second default network transfer speeds generates described transmission means;
Described generation unit, specifically also for: when described current network transmission speed be less than described first preset network transfer speeds time, display reminding information;
Preset network transfer speeds when described current network transmission speed is less than described second, when being greater than the described first default network transfer speeds, generate the transmission means of the subdata of the described data to be transmitted of transmission;
When described current network transmission speed is greater than the described second default network transfer speeds, generate the transmission means of the whole described data to be transmitted of transmission.
5. electronic equipment according to claim 4, is characterized in that, described electronic equipment also comprises default network transfer speeds acquiring unit, for obtaining the preset value of the described default network transfer speeds of storage.
6. electronic equipment according to claim 4, is characterized in that, described generation unit specifically comprises:
First generates subelement, during for being less than the described first default network transfer speeds when described current network transmission speed, determines display reminding information;
Second generates subelement, is mail for the type when described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines to transmit mail head;
3rd generates subelement, is mail for the type when described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines transmission mail head and Mail Contents;
4th generates subelement, when the type of described data to be transmitted is mail, and when described current network transmission speed is greater than the described second default network transfer speeds, determines transmission mail head, Mail Contents and annex, namely transmits mail full detail;
First generates subelement, and also for being webpage when the type of described data to be transmitted, and described current network transmission speed is less than described first when presetting network transfer speeds, determines display reminding information;
Second generates subelement, also for being webpage when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines the text message transmitting described webpage;
3rd generates subelement, also for being webpage when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines text message and the image information of transmitting described webpage;
4th generates subelement, also for being webpage when the type of described data to be transmitted, and described current network transmission speed is greater than described second when presetting network transfer speeds, determines to transmit the text message of webpage, image information and stream media information, namely transmits webpage full detail;
First generates subelement, and also for being video information when the type of described data to be transmitted, and described current network transmission speed is less than described first when presetting network transfer speeds, determines display reminding information;
Second generates subelement, also for being video information when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines the attribute information transmitting described video information;
3rd generates subelement, also for being video information when the type of described data to be transmitted, and described current network transmission speed is less than the described second default network transfer speeds, when being greater than the described first default network transfer speeds, determines attribute information and the audio-frequency information of transmission of video information;
4th generates subelement, also for being video information when the type of described data to be transmitted, and described current network transmission speed be greater than described second preset network transfer speeds time, determine the attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information.
CN201210524733.6A 2012-12-07 2012-12-07 The method of transfer of data and electronic equipment Active CN103023755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210524733.6A CN103023755B (en) 2012-12-07 2012-12-07 The method of transfer of data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210524733.6A CN103023755B (en) 2012-12-07 2012-12-07 The method of transfer of data and electronic equipment

Publications (2)

Publication Number Publication Date
CN103023755A CN103023755A (en) 2013-04-03
CN103023755B true CN103023755B (en) 2015-12-23

Family

ID=47971905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210524733.6A Active CN103023755B (en) 2012-12-07 2012-12-07 The method of transfer of data and electronic equipment

Country Status (1)

Country Link
CN (1) CN103023755B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917664B (en) * 2014-03-12 2018-05-01 张永杰 The sending method and system of Email, method of reseptance and system and mailing system
CN106604298A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 Early-warning method, device and terminal suitable for big data services
CN105656921A (en) * 2016-02-03 2016-06-08 北京百度网讯科技有限公司 Data transmission method, apparatus and device
CN106487652A (en) * 2016-09-19 2017-03-08 深圳市金立通信设备有限公司 A kind of information interacting method and terminal
CN106331156A (en) * 2016-09-26 2017-01-11 广东小天才科技有限公司 Terminal information interaction method and device
CN108881454B (en) * 2018-06-28 2021-12-14 北京珠穆朗玛移动通信有限公司 File transmission method, mobile terminal and storage medium
CN109474478B (en) * 2018-12-14 2022-04-29 厦门市美亚柏科信息股份有限公司 Method, device and system for monitoring transmission data abnormity
CN110166457A (en) * 2019-05-22 2019-08-23 泉后(深圳)科技有限公司 A kind of advertisement machine information issuing method and its device
CN115174075B (en) * 2022-07-22 2023-07-21 上海迅软信息科技有限公司 Data transmission method, device and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272354A (en) * 2007-03-20 2008-09-24 重庆优腾信息技术有限公司 File transfer method, device and system
CN102209085A (en) * 2010-03-30 2011-10-05 腾讯科技(深圳)有限公司 Method and system for transmitting and displaying multiple files

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020188728A1 (en) * 2001-06-07 2002-12-12 Acceleration Softwave International Corporation Adaptive file transfer acceleration

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272354A (en) * 2007-03-20 2008-09-24 重庆优腾信息技术有限公司 File transfer method, device and system
CN102209085A (en) * 2010-03-30 2011-10-05 腾讯科技(深圳)有限公司 Method and system for transmitting and displaying multiple files

Also Published As

Publication number Publication date
CN103023755A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103023755B (en) The method of transfer of data and electronic equipment
CN104994401A (en) Barrage processing method, device and system
CN103079286A (en) Method and device for intelligently disconnecting wifi (wireless fidelity) hot points
CN104915306B (en) A kind of data manipulation control method and equipment manager
CN103823626B (en) Method and device for regulating display contents and electronic equipment
CN103384369A (en) Method, device and system for building data connection
CN103731497A (en) Method for supporting wireless access to storage device and mobile route hot point device
CN105100062A (en) Information push method, device and system
CN109729384A (en) The selection method and device of video code conversion
CN103440295A (en) Method for uploading multimedia files and electronic terminal
CN101206608A (en) Display apparatus having network communicating function and control method thereof
CN112640560A (en) Direct connection communication method and device, communication equipment and storage medium
CN104092648B (en) file request method and device
US8891105B2 (en) Data printing method and system using the same
CN103685430A (en) A mobile terminal combined display method, a system, and a server
CN202084086U (en) GPRS (General Packet Radio Service) attendance acquisition system
CN204089848U (en) A kind of television teaching system based on NFC
CN204649895U (en) Cable monitoring system
CN110809031A (en) Method for transmitting file to mobile phone by computer
CN105991726A (en) Wallpaper recommendation method and server
CN103294490A (en) Configuration information offering method and device as well as method and device for configuring operating system
CN106506575A (en) Communication means and device
CN104346120A (en) Display method and electronic equipment
CN103150291A (en) File trimming method, terminal and server
CN104253722A (en) Dataflow monitoring method and dataflow monitoring device for remote mobile phone management

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