CN103023755A - Method and electronic device for data transmission - Google Patents

Method and electronic device for data transmission Download PDF

Info

Publication number
CN103023755A
CN103023755A CN2012105247336A CN201210524733A CN103023755A CN 103023755 A CN103023755 A CN 103023755A CN 2012105247336 A CN2012105247336 A CN 2012105247336A CN 201210524733 A CN201210524733 A CN 201210524733A CN 103023755 A CN103023755 A CN 103023755A
Authority
CN
China
Prior art keywords
transfer speeds
network transfer
data
default
transmitted
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
CN2012105247336A
Other languages
Chinese (zh)
Other versions
CN103023755B (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

Images

Landscapes

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

Abstract

The invention discloses a method and an electronic device for data transmission, relates to the electronic device application field, and can solve problems of low data obtaining efficiency caused by unnecessary information interaction and failure to obtain mail contents caused by overtime of data obtaining. The method comprises obtaining a current network transmission speed; comparing the current network transmission speed with a preset network transmission speed; and generating a transmission mode according to compared results. The method for data transmission is mainly applied to data uploading and downloading processes through the electronic device.

Description

The method of transfer of data and electronic equipment
Technical field
The present invention relates to the electronic apparatus application field, relate in particular 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.The user carries electronic equipment can pass through Generation Mobile Telecommunication System technology (2nd Generation on subway and other modes of transport, abbreviation 2G), 3G (Third Generation) Moblie technology (3rd Generation, be called for short 3G) etc. network communicate, when moving to office etc. when indoor, can communicate by Wireless Fidelity Wi-Fi wireless network and cable network.Along with the raising of network usage, the data that the large capacity annex of Email, voice messaging etc. have big data quantity are used widely in periodic traffic.
The user is when the electronic equipment reading mail, and the acquiescence mode is the mail head that electronic equipment only obtains mail, if when the user wishes Mail Contents read, need to obtain Mail Contents by clicking the mail head.Except the acquiescence mode, the user also can arrange the full content that electronic equipment obtains mail, namely obtains mail head, Mail Contents and the annex of mail.
State in realization in the process of transfer of data, the inventor finds that there are the following problems at least in the prior art: because the network that electronic equipment connects can change because of the place, therefore, for the acquiescence mode, when network transfer speeds was fast, network can support to obtain the full content of mail, need to again click the mail head if need to see the full content of mail, produce unnecessary information interaction, caused data acquisition efficient low.For the mode of the full content that obtains mail, when network transfer speeds was slow, electronic equipment can't obtain the full content of mail at short notice, and this mail will be defined as and can't obtain by electronic equipment because of wait timeout, cause mail to obtain failure.
Summary of the invention
Method and the electronic equipment that a kind of transfer of data is provided of the present invention can solve in the prior art because the inefficient problem of data acquisition that causes alternately because producing unnecessary information, and the overtime problem that causes Mail Contents to obtain failure of data acquisition time.
On the one hand, the invention provides a kind of data transmission method, described method comprises:
Obtain the current network transmission speed;
Described current network transmission speed and default network transfer speeds are compared;
Generate transmission means according to comparative result.
On the other hand, the invention provides a kind of electronic equipment, described electronic equipment comprises:
The network monitoring unit is used for obtaining the current network transmission speed;
Judging unit, the described current network transmission speed and the default network transfer speeds that are used for described network monitoring unit is obtained compare;
Generation unit is used for generating transmission means according to the comparative result of described judging unit.
The method of transfer of data provided by the invention and electronic equipment can generate different transmission meanss according to the current network transmission speed.With compared by artificial setting data transmission means in the prior art, the present invention need not manually data transfer mode to be set in data acquisition, by relatively current network transmission speed and default network transfer speeds can be determined concrete transmission means automatically.When network transfer speeds can be supported to obtain the full content of mail, directly download the full content of mail, can reduce the data interaction number of times, improve data acquisition efficient.When network transfer speeds can't be obtained the full content of mail at short notice, obtain the partial content of mail according to current network transfer speeds, reach and within the fixing stand-by period, download the partial data that adapts with the current network transmission speed, guarantee successfully to download mail data, avoid wait timeout.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of the method for a transfer of data in the embodiment of the invention;
Fig. 2 is the flow chart of the method for another transfer of data in the embodiment of the invention;
Fig. 3 is the flow chart of the method for another transfer of data in the embodiment of the invention;
Fig. 4 is a structural representation of electronic equipment in the embodiment of the invention;
Fig. 5 is another structural representation of electronic equipment in the embodiment of the invention;
Fig. 6 is another structural representation of electronic equipment in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
The embodiment of the invention provides a kind of data transmission method, and as shown in Figure 1, described method comprises:
Step 101, obtain the current network transmission speed.
Electronic equipment can obtain the current network transmission speed by equipment such as sniffers.Described current network transmission speed is mean value.In the Internet Transmission signal fluctuation that produces in the unit interval is calculated, 30 signal fluctuations that for example produce in 1 second calculate, and can obtain the average transmission speed in the unit interval.In addition, also can be with the average transmission speed in a period of time, the average transmission speed in 5 seconds for example is as the current network transmission speed.
Step 102, described current network transmission speed and default network transfer speeds are compared.
Described default network transfer speeds is the network transfer speeds corresponding to different transmission meanss.Described current network transmission speed and default network transfer speeds that step 101 is obtained compare, and can be used for distinguishing different transmission meanss.
Step 103, generate transmission means according to comparative result.
According to the comparative result of step 102, generate the transmission means corresponding with described current network transmission speed.For example, when data to be transmitted was mail, if current network transmission speed during greater than default network transfer speeds, the transmission means that then generates was to obtain the full content of mail.If the current network transmission speed is during less than described default network transfer speeds, the transmission means that then generates is to obtain the partial content of mail.
The method of the transfer of data that the embodiment of the invention provides can generate different transmission meanss according to the current network transmission speed.With compared by artificial setting data transmission means in the prior art, in data acquisition, need not manually data transfer mode to be set, by relatively current network transmission speed and default network transfer speeds are determined concrete transmission means.For example: during 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 in the current network transmission speed, can reduce the data interaction number of times, improve data acquisition efficient.In the current network transmission speed during less than described default network transfer speeds, be that network transfer speeds is can't obtain the full content of mail at short notice the time, download the partial content of mail, reach and within the fixing stand-by period, download the partial data that adapts with the current network transmission speed, guarantee successfully to download mail data, avoid wait timeout.
Embodiment two
As to the further specifying of embodiment one, the embodiment of the 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 further comprises:
Step 201, obtain the preset value of described default network transfer speeds.
Perhaps, draw described default network transfer speeds according to preset rules.
Wherein, described preset value is fixed value, such as 100kb/s, 15kb/s etc.Change less network environment for network transfer speeds, can preset network parameter and be set to preset value.Thus, when transfer of data, need not to obtain 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, size of data and the default stand-by period of the subdata of data to be transmitted are divided by, obtain the first default network transfer speeds.
The described default stand-by period is that the user is by the stand-by period of electronic equipment setting or the default value of storage.The described default stand-by period can be 5 seconds, 10 seconds etc.From the user clicked button log-on data acquisition processs such as " refreshing ", after the default stand-by period, electronic equipment was presented at the data of obtaining in the described default stand-by period.
Electronic equipment can obtain by network side server the attribute information of the subdata of described data to be transmitted, and 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 also is not quite similar.
When described data to be transmitted was mail, described subdata was following any one data:
The mail head;
Mail head and Mail Contents.
When described data to be transmitted was webpage, described subdata was following any one data:
Text message in the webpage;
Image information in the webpage;
Stream media information in the webpage.
When described data to be transmitted was video information, described subdata was following any one data:
The attribute information of video information;
The audio-frequency information of video information;
The image information of video information.
The described first default network transfer speeds is for finishing the minimal network transmission speed that the subdata of transmitting described data to be transmitted is transmitted within the default stand-by period.Less than the network transfer speeds of the first default network transfer speeds, can't finish the subdata transmission to described data to be transmitted.
Be 5 seconds when the described default stand-by period, the size of the subdata of described data to be transmitted is 50kb, and then the described first default network transfer speeds is 50/5=10kb/s.
Step 302, the overall data of described data to be transmitted size was divided by with the described default stand-by period, obtains the second default network transfer speeds.
Electronic equipment also can obtain by network side server the attribute information of the overall data of described data to be transmitted, and the attribute information of described overall data comprises the information such as the type of overall data, size.
Except carrying out computing according to the first default network transfer speeds corresponding to the subdata of described data to be transmitted, also need the second default network transfer speeds corresponding to the overall data of described data to be transmitted carried out computing.To determine the required time of overall data of the described data to be transmitted of transmission.
If the described default stand-by period is 5 seconds, the size of the overall data of described data to be transmitted is 500kb, and then the described first default network transfer speeds is 500/5=100kb/s.
Further, step 103, generate transmission means according to comparative result, specifically comprise: generate described transmission means according to the type of using under the described data to be transmitted, the described first default network transfer speeds and the described second default network transfer speeds.
According to the described first default network transfer speeds that obtains in step 301 and the step 302 and the described second default 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 was mail, the described first default network transfer speeds specifically comprised:
1, transmission mail head's First Speed;
2, the second speed of transmission mail head and Mail Contents.
The described second default network transfer speeds is 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 preset network transfer speeds, then display reminding information less than described first.
If described current network transmission speed is less than described First Speed, prompting user current network signal difference then.Since this moment, can't the minimum subdata of the transmission of data size, i.e. mail head.Electronic equipment prompting user current network signal difference.
2) if described current network transmission speed less than the described second default network transfer speeds, greater than the described first default network transfer speeds, is then transmitted the mail head.
Even described current network transmission speed greater than described First Speed, is then transmitted the mail head less than described second speed (namely less than described third speed).
3) if described current network transmission speed less than the described second default network transfer speeds, greater than the described first default network transfer speeds, is then transmitted mail head and Mail Contents.
Even described current network transmission speed greater than described second speed, is then transmitted mail head and Mail Contents less than described third speed.
4) if described current network transmission speed greater than the described second default network transfer speeds, is then transmitted mail head, Mail Contents and annex, namely transmit the mail full detail.
Even described current network transmission speed is then transmitted mail head, Mail Contents and annex greater than described third speed, namely transmits the mail full detail.
Optionally, when the type of described data to be transmitted was webpage, the described first default network transfer speeds specifically comprised:
1, the First Speed of the text message of transmission webpage;
2, the text message of transmission webpage and the second speed of image information.
The described second default network transfer speeds is text message, image information and the stream media information of 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 preset network transfer speeds, then display reminding information less than described first.
If described current network transmission speed is less than described First Speed, prompting user current network signal difference then.Since this moment, can't the minimum subdata of the transmission of data size, the i.e. text message of webpage.Electronic equipment prompting user current network signal difference.
2) if described current network transmission speed less than the described second default network transfer speeds, greater than the described first default network transfer speeds, is then transmitted the text message of webpage.
Even described current network transmission speed greater than described First Speed, is then transmitted text message less than described second speed (namely less than described third speed).
3) if described current network transmission speed less than the described second default network transfer speeds, greater than the described first default network transfer speeds, is then transmitted text message and the image information of webpage.
Even described current network transmission speed greater than described second speed, is then transmitted text message and the described image information of described webpage less than described third speed.
4) if described current network transmission speed greater than the described second default network transfer speeds, is then transmitted text message, image information and the stream media information of webpage, namely transmit the webpage full detail.
Even described current network transmission speed is then transmitted text message, image information and annex greater than described third speed, namely transmits the webpage full detail.
Optionally, when the type of described data to be transmitted was video information, the described first default network transfer speeds specifically comprised:
1, the First Speed of the attribute information of the described video information of transmission;
2, the attribute information of the described video information of transmission and the second speed of audio-frequency information.
The described second default network transfer speeds is attribute information, audio-frequency information and the image information of the described video information of transmission, 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 preset network transfer speeds, then display reminding information less than described first.
If described current network transmission speed is less than described First Speed, prompting user current network signal difference then.Since this moment, can't the minimum subdata of the transmission of data size, the i.e. attribute information of described video information.Electronic equipment prompting user current network signal difference.
2) if described current network transmission speed less than the described second default network transfer speeds, is preset network transfer speeds, the then attribute information of transmission of video information greater than described first.
Even described current network transmission speed greater than described First Speed, is then transmitted the attribute information of described video information less than described second speed (namely less than described third speed).
3) if described current network transmission speed less than the described second default network transfer speeds, is preset network transfer speeds, the then attribute information of transmission of video information and audio-frequency information greater than described first.
Even described current network transmission speed greater than described second speed, is then transmitted attribute information and the audio-frequency information of described video information less than described third speed.
4) if described current network transmission speed is preset network transfer speeds, the then attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information greater than described second.
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.
Electronic equipment can be stored the transmission means of above-mentioned generation, in order to use during lower data transfer.
In the step of above-mentioned generation, a plurality of speed be can mark off according to the difference of the type of subdata, First Speed, second speed and third speed are not limited to, such as: also have four-speed degree, the 5th speed etc. or only have First Speed.Described mail, webpage and video information illustrate as data to be transmitted, can not be interpreted as the restriction to data to be transmitted.Transmission comprises send and receive, sends to comprise the scenes such as uploading data, transmission information, receives to comprise the scenes such as browsing page, reception information.In addition, when default network speed is preset value, can adopt equally above-mentioned different transmission means that data are transmitted.During implementation, First Speed is equivalent to the first preset value (such as 15kb/s), and second speed is equivalent to the second preset value (such as 50kb/s), and third speed is equivalent to the 3rd preset value (such as 100kb/s).
The method of the transfer of data that the embodiment of the invention provides can generate different transmission meanss according to the current network transmission speed.With compared by artificial setting data transmission means in the prior art, the method that the embodiment of the invention provides need not manually data transfer mode to be set in data acquisition, by relatively current network transmission speed and default network transfer speeds generate concrete transmission means.Concrete transmission means is: during greater than third speed, when namely network transfer speeds can be supported to obtain the full content of mail, directly download the full content of mail in the current network transmission speed, can reduce the data interaction number of times, improve data acquisition efficient.In the current network transmission speed less than third speed, during greater than second speed or greater than First Speed, be that network transfer speeds is can't obtain the full content of mail at short notice the time, obtain the partial content of mail according to current network transfer speeds, reach and within the fixing stand-by period, download the partial data that adapts with the current network transmission speed, guarantee successfully to download mail data, avoid wait timeout.During less than First Speed, when namely network transfer speeds can't be obtained the partial content of mail at short notice, prompting user current network signal difference was avoided user's wait timeout in the current network transmission speed.
Embodiment three
The embodiment of the invention provides a kind of electronic equipment, and as shown in Figure 4, described electronic equipment comprises:
Network monitoring unit 41 is used for obtaining the current network transmission speed.
Described current network transmission speed is mean value.In the Internet Transmission signal fluctuation that produces in the unit interval is calculated, 30 signal fluctuations that for example produce in 1 second calculate, and can obtain the average transmission speed in the unit interval.In addition, also can be with the average transmission speed in a period of time, the average transmission speed in 5 seconds for example is as the current network transmission speed.
Judging unit 42, the described current network transmission speed and the default network transfer speeds that are used for described network monitoring unit 41 is obtained compare.
Wherein, described default network transfer speeds is the network transfer speeds corresponding to different transmission meanss.Described current network transmission speed and default network transfer speeds that network monitoring unit 41 is obtained compare, and can be used for distinguishing different transmission meanss.
Generation unit 43 is used for generating transmission means according to the comparative result of described judging unit 42.
Generation unit 43 generates the transmission means corresponding with described current network transmission speed according to the comparative result of judging unit 42.For example, when data to be transmitted is mail, if the current network transmission speed during greater than default network transfer speeds, is then obtained the full content of mail.If the current network transmission speed during less than described default network transfer speeds, is then obtained the partial content of mail.
Further, as shown in Figure 5, described electronic equipment also comprises default network transfer speeds acquiring unit 51, for the preset value of the described default network transfer speeds of obtaining storage.
Described preset value is fixed value, such as 100kb/s, 15kb/s etc.Change less network environment for network transfer speeds, can preset network parameter and be set to preset value.Thus, when transfer of data, need not to obtain default network parameter by computing, the preset value that judging unit 42 can directly obtain according to default network transfer speeds acquiring unit 51 is judged.
Described electronic equipment also comprises pretreatment unit 52, is used for drawing described default network transfer speeds according to preset rules.
Described pretreatment unit 52 specifically is used for: size of data and the default stand-by period of the subdata of data to be transmitted are divided by, obtain the first default network transfer speeds.
The described default stand-by period is the stand-by period that the user arranges by electronic equipment.The described default stand-by period can be 5 seconds, 10 seconds etc.From the user clicked button log-on data acquisition processs such as " refreshing ", after the default stand-by period, electronic equipment was presented at the data of obtaining in the described default stand-by period.
Receiving element 53 be used for to receive the attribute information of the subdata of the described data to be transmitted that network side server sends, and the attribute information of described subdata comprises the information such as the type of subdata, size, for described and processing unit 52 computings.
The described first default network transfer speeds is within the default stand-by period, can finish the minimal network transmission speed that the subdata of transmitting described data to be transmitted is transmitted.Less than the network transfer speeds of the first default network transfer speeds, can't finish the subdata transmission to described data to be transmitted.
Be 5 seconds when the described default stand-by period, the size of the subdata of described data to be transmitted is 50kb, and then to obtain the described first default network transfer speeds through computing be 50/5=10kb/s to described pretreatment unit 52.
Described pretreatment unit 52 also is used for: the overall data size of described data to be transmitted was divided by with the described default stand-by period, obtains the second default network transfer speeds.
Described receiving element 53 also be used for to receive 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 also needs the second default network transfer speeds corresponding to the overall data of described data to be transmitted carried out computing except carrying out computing by the first default network transfer speeds corresponding to the subdata of described data to be transmitted.To determine the required time of overall data of the described data to be transmitted of transmission.
If the described default stand-by period is 5 seconds, the size of the overall data of described data to be transmitted is 500kb, and then the described first default network transfer speeds is 500/5=100kb/s.
Further, described generation unit 43 also generates described transmission means for the type of using under the described data to be transmitted according to receiving element reception 53, the described first default network transfer speeds and the described second default network transfer speeds described and that pretreatment unit 52 obtains.
Concrete, when the type of described data to be transmitted was mail, the described first default network transfer speeds specifically comprised:
1, transmission mail head's First Speed;
2, the second speed of transmission mail head and Mail Contents.
The described second default network transfer speeds is 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, is used for determining display reminding information when described current network transmission speed is preset network transfer speeds less than described first.
Described first generates the transmission means that subelement 431 generates is: if described current network transmission speed less than described First Speed, prompting user current network signal difference then.Since this moment, can't the minimum subdata of the transmission of data size, i.e. mail head.Display display reminding information is with prompting user current network signal difference.
Second generates subelement 432, and the type that is used for when described data to be transmitted is mail, and described current network transmission speed during greater than the described first default network transfer speeds, is determined the transmission mail head less than the described second default network transfer speeds.
The described second transmission means that generates subelement 432 generations is: if described current network transmission speed is less than described second speed (namely less than described third speed), greater than described First Speed, then transmitting element 61 sends mail head or receiving element 53 reception mail head.
The 3rd generates subelement 433, and the type that is used for when described data to be transmitted is mail, and described current network transmission speed during greater than the described first default network transfer speeds, is determined transmission mail head and Mail Contents less than the described second default network transfer speeds.
The described the 3rd transmission means that generates subelement 433 generations is: if described current network transmission speed is less than described third speed, greater than described second speed, then transmitting element 61 sends mail head and Mail Contents, and perhaps, receiving element 53 receives mail head and Mail Contents.
The 4th generates subelement 434, and when the type of described data to be transmitted is mail, and described current network transmission speed determines transmission mail head, Mail Contents and annex during greater than the described second default network transfer speeds, namely transmits the mail full detail;
The described the 4th transmission means that generates subelement 434 generations is: if described current network transmission speed is greater than described third speed, then transmitting element 61 sends mail head, Mail Contents and annex, perhaps, receiving element 53 receives mail head, Mail Contents and annex, the i.e. full detail of mail.
Optionally, when the type of described data to be transmitted was webpage, the described first default network transfer speeds specifically comprised:
1, the First Speed of the text message of transmission webpage;
2, the text message of transmission webpage and the second speed of image information.
The described second default network transfer speeds is text message, image information and the stream media information of transmission webpage, namely transmits the third speed of webpage full detail.
First generates subelement 431, and the type that also is used for when described data to be transmitted is webpage, and described current network transmission speed is determined display reminding information during less than the described first default network transfer speeds.
Described first generates the transmission means that subelement 431 generates is: if described current network transmission speed less than described First Speed, prompting user current network signal difference then.Since this moment, can't the minimum subdata of the transmission of data size, the i.e. text message of webpage.Electronic equipment prompting user current network signal difference.
Second generates subelement 432, the type that also is used for when described data to be transmitted is webpage, and described current network transmission speed during greater than the described first default network transfer speeds, is determined the text message of the described webpage of transmission less than the described second default network transfer speeds.
The described second transmission means that generates subelement 432 generations is: if described current network transmission speed is less than described second speed (namely less than described third speed), greater than described First Speed, then transmitting element 61 sends text message, and perhaps, receiving element 53 receives text message.
The 3rd generates subelement 433, the type that also is used for when described data to be transmitted is webpage, and described current network transmission speed during greater than the described first default network transfer speeds, is determined text message and the image information of the described webpage of transmission less than the described second default network transfer speeds.
The described the 3rd transmission means that generates subelement 433 generations is: if described current network transmission speed is less than described third speed, greater than described second speed, then transmitting element 61 sends text message and the described image information of described webpage, perhaps, receiving element 53 receives text message and the described image information of described webpage.
The 4th generates subelement 434, the type that also is used for when described data to be transmitted is webpage, and when described current network transmission speed is preset network transfer speeds greater than described second, determine text message, image information and the stream media information of transmission webpage, namely transmit the webpage full detail.
The described the 4th transmission means that generates subelement 434 generations 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 transmit the webpage full detail, perhaps, receiving element 53 receives text message, image information and annex.
Optionally, when the type of described data to be transmitted was video information, the described first default network transfer speeds specifically comprised:
1, the First Speed of the attribute information of the described video information of transmission;
2, the attribute information of the described video information of transmission and the second speed of audio-frequency information.
The described second default network transfer speeds is attribute information, audio-frequency information and the image information of the described video information of transmission, the i.e. third speed of transmission of video information full detail.
First generates subelement 431, and the type that also is used for when described data to be transmitted is video information, and described current network transmission speed is determined display reminding information during less than the described first default network transfer speeds.
Described first generates the transmission means that subelement 431 generates is: if described current network transmission speed less than described First Speed, prompting user current network signal difference then.Since this moment, can't the minimum subdata of the transmission of data size, the i.e. text message of webpage.Electronic equipment prompting user current network signal difference.
Second generates subelement 432, the type that also is used for when described data to be transmitted is video information, and described current network transmission speed during greater than the described first default network transfer speeds, is determined the attribute information of the described video information of transmission less than the described second default network transfer speeds.
The described second transmission means that generates subelement 432 generations is: described current network transmission speed is less than described second speed (namely less than described third speed), greater than described First Speed, then transmitting element 61 sends the attribute information of described video information, perhaps, receiving element 53 receives the attribute information of described video information.
The 3rd generates subelement 433, the type that also is used for when described data to be transmitted is video information, and described current network transmission speed during greater than the described first default network transfer speeds, is determined attribute information and the audio-frequency information of transmission of video information less than the described second default network transfer speeds.
The described the 3rd transmission means that generates subelement 433 generations is: if described current network transmission speed is less than described third speed, greater than described second speed, then transmitting element 61 sends attribute information and the audio-frequency information of described video information, perhaps, receiving element 53 receives attribute information and the audio-frequency information of described video information.
The 4th generates subelement 434, the type that also is used for when described data to be transmitted is video information, and when described current network transmission speed is preset network transfer speeds greater than described second, determine attribute information, audio-frequency information and the image information of transmission of video information, i.e. all videos information.
The described the 3rd transmission means that generates subelement 433 generations is: if described current network transmission speed is greater than described third speed, then transmitting element 61 sends attribute information, audio-frequency information and the image information of video information, be all videos information, perhaps, attribute information, audio-frequency information and the image information of receiving element 53 receiver, video information.
Further, described electronic equipment also comprises: memory cell 54 is used for storing the described transmission means that described generation unit 43 generates.
Memory cell 54 also is used for the storage transmission means, in order to use during lower data transfer.
The electronic equipment that the embodiment of the invention provides can generate different transmission meanss according to the current network transmission speed that network monitoring unit 41 obtains by generation unit 43.With compared by artificial setting data transmission means in the prior art, the electronic equipment that the embodiment of the invention provides need not manually data transfer mode to be set in data acquisition, determines to generate concrete transmission means by judging unit 42 comparison current network transmission speeds and default network transfer speeds.The subelement that comprises by generation unit 43 generates concrete transmission means, the 4th generates subelement 434 is used in the current network transmission speed during greater than third speed, be that network transfer speeds is can support to obtain the full content of mail the time, directly download the full content of mail, can reduce the data interaction number of times, improve data acquisition efficient.Second generate subelement 432 and the 3rd generate subelement 433 all in the current network transmission speed less than third speed, during greater than second speed or greater than First Speed, be that network transfer speeds is can't obtain the full content of mail at short notice the time, obtain the partial content of mail according to current network transfer speeds, reach and within the fixing stand-by period, download the partial data that adapts with the current network transmission speed, guarantee successfully to download mail data, avoid wait timeout.First generates subelement 431 is used in the current network transmission speed during less than First Speed, and when namely network transfer speeds can't be obtained the partial content of mail at short notice, prompting user current network signal difference was avoided user's wait timeout.
The those skilled in the art can be well understood to, be the convenience described and succinct, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure that is about to electronic equipment is divided into different functional modules, to finish all or part of function described above.The system of foregoing description, the specific works process of electronic equipment and unit can with reference to the corresponding process among the preceding method embodiment, not repeat them here.
In several embodiment that the application provides, should be understood that, disclosed system, electronic equipment and method can realize by another way.For example, electronic equipment embodiment described above only is schematic, for example, the division of described module or unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or direct-coupling or communication connection can be by some interfaces, the indirect coupling of electronic equipment or unit or communication connection can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of unit to realize the purpose of present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics of unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) or processor (processor) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, 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 (10)

1. a data transmission method is characterized in that, described method comprises:
Obtain the current network transmission speed;
Described current network transmission speed and default network transfer speeds are compared;
Generate transmission means according to comparative result.
2. method according to claim 1 is characterized in that, described obtain the current network transmission speed before, described method further comprises:
Obtain the preset value of described default network transfer speeds;
Perhaps, draw described default network transfer speeds according to preset rules.
3. method according to claim 2 is characterized in that, describedly draws described default network transfer speeds according to preset rules, specifically comprises:
Size of data and the default stand-by period of the subdata of data to be transmitted are divided by, obtain the first default network transfer speeds;
And/or, the overall data size of described data to be transmitted was divided by with the described default stand-by period, obtain the second default network transfer speeds.
4. method according to claim 3 is characterized in that, and is described according to comparative result generation transmission means, specifically comprises:
Generate described transmission means according to the type of using under the described data to be transmitted, the described first default network transfer speeds and the described second default network transfer speeds.
5. method according to claim 4 is characterized in that, generates described transmission means according to the type of using under the described data to be transmitted, the described first default network transfer speeds and the described second default network transfer speeds, 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 the described first default network transfer speeds, then display reminding information;
If described current network transmission speed less than the described second default network transfer speeds, greater than the described first default network transfer speeds, is then transmitted mail head and Mail Contents, perhaps transmit the mail head;
If described current network transmission speed is then transmitted mail head, Mail Contents and annex greater than the described second default network transfer speeds, namely transmit the mail full detail; Perhaps,
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 the described first default network transfer speeds, then display reminding information;
If described current network transmission speed less than the described second default network transfer speeds, greater than the described first default network transfer speeds, is then transmitted the text message of webpage, perhaps, the text message of transmission webpage;
If described current network transmission speed greater than the described second default network transfer speeds, is then transmitted text message, image information and the stream media information of webpage, namely transmit the webpage full detail; Perhaps,
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 the described first default network transfer speeds, then display reminding information;
If described current network transmission speed is less than the described second default network transfer speeds, greater than the described first default network transfer speeds, the then attribute information of transmission of video information and audio-frequency information, perhaps, the attribute information of transmission of video information;
If described current network transmission speed is greater than the described second default network transfer speeds, the then attribute information of transmission of video information, audio-frequency information and image information, i.e. all videos information.
6. an electronic equipment is characterized in that, described electronic equipment comprises:
The network monitoring unit is used for obtaining the current network transmission speed;
Judging unit, the described current network transmission speed and the default network transfer speeds that are used for described network monitoring unit is obtained compare;
Generation unit is used for generating transmission means according to the comparative result of described judging unit.
7. electronic equipment according to claim 6 is characterized in that, described electronic equipment further comprises default network transfer speeds acquiring unit, for the preset value of the described default network transfer speeds of obtaining storage;
Described electronic equipment also comprises pretreatment unit, is used for drawing described default network transfer speeds according to preset rules.
8. electronic equipment according to claim 7 is characterized in that, described pretreatment unit specifically is used for:
Size of data and the default stand-by period of the subdata of data to be transmitted are divided by, obtain the first default network transfer speeds;
The overall data size of described data to be transmitted was divided by with the described default stand-by period, obtains the second default network transfer speeds.
9. electronic equipment according to claim 8, it is characterized in that, described generation unit also is used for generating described transmission means according to the type of using under the described data to be transmitted, the described first default network transfer speeds and the described second default network transfer speeds.
10. electronic equipment according to claim 9 is characterized in that, described generation unit specifically comprises:
First generates subelement, is used for determining display reminding information when described current network transmission speed is preset network transfer speeds less than described first;
Second generates subelement, and the type that is used for when described data to be transmitted is mail, and described current network transmission speed during greater than the described first default network transfer speeds, is determined the transmission mail head less than the described second default network transfer speeds;
The 3rd generates subelement, and the type that is used for when described data to be transmitted is mail, and described current network transmission speed during greater than the described first default network transfer speeds, is determined transmission mail head and Mail Contents less than the described second default network transfer speeds;
The 4th generates subelement, and when the type of described data to be transmitted is mail, and described current network transmission speed determines transmission mail head, Mail Contents and annex during greater than the described second default network transfer speeds, namely transmits the mail full detail;
First generates subelement, and the type that also is used for when described data to be transmitted is webpage, and described current network transmission speed is determined display reminding information during less than the described first default network transfer speeds;
Second generates subelement, the type that also is used for when described data to be transmitted is webpage, and described current network transmission speed during greater than the described first default network transfer speeds, is determined the text message of the described webpage of transmission less than the described second default network transfer speeds;
The 3rd generates subelement, the type that also is used for when described data to be transmitted is webpage, and described current network transmission speed during greater than the described first default network transfer speeds, is determined text message and the image information of the described webpage of transmission less than the described second default network transfer speeds;
The 4th generates subelement, the type that also is used for when described data to be transmitted is webpage, and when described current network transmission speed is preset network transfer speeds greater than described second, determine text message, image information and the stream media information of transmission webpage, namely transmit the webpage full detail;
First generates subelement, and the type that also is used for when described data to be transmitted is video information, and described current network transmission speed is determined display reminding information during less than the described first default network transfer speeds;
Second generates subelement, the type that also is used for when described data to be transmitted is video information, and described current network transmission speed during greater than the described first default network transfer speeds, is determined the attribute information of the described video information of transmission less than the described second default network transfer speeds;
The 3rd generates subelement, the type that also is used for when described data to be transmitted is video information, and described current network transmission speed during greater than the described first default network transfer speeds, is determined attribute information and the audio-frequency information of transmission of video information less than the described second default network transfer speeds;
The 4th generates subelement, the type that also is used for when described data to be transmitted is video information, and when described current network transmission speed is preset network transfer speeds greater than described second, determine attribute information, audio-frequency information and the image information of transmission of video 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 true CN103023755A (en) 2013-04-03
CN103023755B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917664A (en) * 2014-03-12 2015-09-16 张永杰 Sending method, sending system, receiving method and receiving system of email and mail system
CN105656921A (en) * 2016-02-03 2016-06-08 北京百度网讯科技有限公司 Data transmission method, apparatus and device
CN106331156A (en) * 2016-09-26 2017-01-11 广东小天才科技有限公司 Terminal information interaction method and device
CN106487652A (en) * 2016-09-19 2017-03-08 深圳市金立通信设备有限公司 A kind of information interacting method and terminal
CN106604298A (en) * 2015-10-20 2017-04-26 中兴通讯股份有限公司 Early-warning method, device and terminal suitable for big data services
CN108881454A (en) * 2018-06-28 2018-11-23 北京珠穆朗玛移动通信有限公司 Document transmission method, mobile terminal and storage medium
CN109474478A (en) * 2018-12-14 2019-03-15 厦门市美亚柏科信息股份有限公司 For monitoring the methods, devices and systems of transmission data exception
CN110166457A (en) * 2019-05-22 2019-08-23 泉后(深圳)科技有限公司 A kind of advertisement machine information issuing method and its device
CN115174075A (en) * 2022-07-22 2022-10-11 武汉卓诺世环电子商务有限公司 Data transmission method, data transmission equipment and computer storage medium

Citations (3)

* 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
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

Patent Citations (3)

* 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
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917664A (en) * 2014-03-12 2015-09-16 张永杰 Sending method, sending system, receiving method and receiving system of email and mail system
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
CN108881454A (en) * 2018-06-28 2018-11-23 北京珠穆朗玛移动通信有限公司 Document transmission method, mobile terminal and storage medium
CN108881454B (en) * 2018-06-28 2021-12-14 北京珠穆朗玛移动通信有限公司 File transmission method, mobile terminal and storage medium
CN109474478A (en) * 2018-12-14 2019-03-15 厦门市美亚柏科信息股份有限公司 For monitoring the methods, devices and systems of transmission data exception
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
CN115174075A (en) * 2022-07-22 2022-10-11 武汉卓诺世环电子商务有限公司 Data transmission method, data transmission equipment and computer storage medium

Also Published As

Publication number Publication date
CN103023755B (en) 2015-12-23

Similar Documents

Publication Publication Date Title
CN103023755A (en) Method and electronic device for data transmission
CN105046525A (en) Advertisement delivery system, device and method
CN104994401A (en) Barrage processing method, device and system
CN104424496A (en) Two-dimension code generation, identification and information providing method, device and system
CN103823626B (en) Method and device for regulating display contents and electronic equipment
CN102902531A (en) Customization and generation method and device of Android application program
CN101271376A (en) System and method for scrolling display screen, mobile terminal including the system, and recording medium storing program for executing the method
CN103019831A (en) Client, system and method for replacing desktop background by turns
CN103731497A (en) Method for supporting wireless access to storage device and mobile route hot point device
CN103500212A (en) Multi-media file recommending method and electronic device
KR20150042318A (en) Operating Method For Nearby Function and Electronic Device supporting the same
CN103763587A (en) Method and device for playing multimedia data
CN103268310A (en) Self-medium message editing method and device on basis of recommendation
CN103532991B (en) The method of display microblog topic and mobile terminal
CN104267801A (en) Power consumption and bandwidth reducing method and system
CN104423875A (en) Information display method and device
CN103440295A (en) Method for uploading multimedia files and electronic terminal
CN105453014A (en) Adjustable video player
CN105354293A (en) Assisted implementation method and apparatus for pushing playing object in mobile terminal
CN105991722A (en) Downloader recommendation method, application server, terminal and system
CN104063155A (en) Content sharing method and device and electronic equipment
CN104717555A (en) Video stream acquiring method and device
CN103747284A (en) Video pushing method and server
CN103136203A (en) Data receiving method and data receiving device of application program of mobile terminal
CN104765585A (en) Display device and method for controlling same

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