CN104104728A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN104104728A
CN104104728A CN201410354499.6A CN201410354499A CN104104728A CN 104104728 A CN104104728 A CN 104104728A CN 201410354499 A CN201410354499 A CN 201410354499A CN 104104728 A CN104104728 A CN 104104728A
Authority
CN
China
Prior art keywords
data
data cell
value
terminal
mark
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
CN201410354499.6A
Other languages
Chinese (zh)
Other versions
CN104104728B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410354499.6A priority Critical patent/CN104104728B/en
Publication of CN104104728A publication Critical patent/CN104104728A/en
Application granted granted Critical
Publication of CN104104728B publication Critical patent/CN104104728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a data transmission method and device for decreasing additionally added devices while relieving the network transmission load. The data transmission method comprises the steps of downloading structural data in files from a server; resolving values of shared attribute fields of data units in the files from the structural data; broadcasting first identifications of the data units corresponding to public values in a wireless local area network when the values of the shared attribute fields of the data units are public values; receiving broadcasting response sent by terminals in the wireless local area network; downloading the data units corresponding to the public values from the terminals sending the response.

Description

Method and the device of transmission data
Technical field
The disclosure relates to communication and computer process field, relates in particular to method and the device of transmission data.
Background technology
Along with the development of the Internet, people's obtaining information of surfing the Net has become a kind of custom.The abundant of the network information also provides a lot of facilities to people.The abundant of the network information also brings pressure to offered load.Especially the appearance of multi-medium data, each multimedia file is larger, need to take more bandwidth.
Inventor's discovery of the present disclosure, in correlation technique, in order to alleviate network pressure, a kind of settling mode is the quantity that increases server.Share Internet Transmission pressure by more server.But this scheme needs more equipment, has increased equipment cost.Therefore, how more effective transmission data, are problem demanding prompt solutions.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of method and device that transmits data.
According to the first aspect of disclosure embodiment, a kind of method of transmitting data is provided, comprising:
Structured data from server download file;
From described structured data, parse the value of the shared attribute field of each data cell in described file;
In the time that the value of shared attribute field that has data cell is common value, in WLAN (wireless local area network), broadcast the first mark of the data cell that common value is corresponding;
Receive the response for described broadcast that in WLAN (wireless local area network), terminal sends;
From send the terminal of described response, download the data cell that common value is corresponding.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the present embodiment has been realized the contents distribution of data level, and the different pieces of information unit in a file can be downloaded from distinct device.Can download near end for the data cell that common value is corresponding, alleviate the pressure of the webserver, save number of servers.And multi-source is downloaded can improve download efficiency.
As optional execution mode, described response comprises the second mark of described data cell;
After the response for described broadcast that in described reception WLAN (wireless local area network), terminal sends, described method also comprises:
In WLAN (wireless local area network), again broadcast the second mark of the data cell that common value is corresponding;
Again receive that terminal in WLAN (wireless local area network) sends for the described response of broadcast again.
The technical scheme that present embodiment provides can comprise following beneficial effect: multiple marks that can obtain a data cell in the present embodiment, can be connected with more terminal by broadcasting multiple marks, from more end downloading data, further improve download efficiency.
Optionally, described method also comprises:
Obtain the fingerprint of the data cell of downloading;
Check whether this locality has stored described fingerprint;
In the time that described fingerprint is not stored in this locality, in the default public memory space in this locality, preserve the data cell of downloading;
While having stored described fingerprint in this locality, delete the data cell of downloading.
The technical scheme that present embodiment provides can comprise following beneficial effect: the present embodiment can unique identification data unit by fingerprint, can check by fingerprint whether this locality has stored data cell, can avoid repeated storage, has saved memory space.
Optionally, described method also comprises:
Set up the corresponding relation of described fingerprint and described the first mark.
The technical scheme that present embodiment provides can comprise following beneficial effect: the corresponding relation of having set up fingerprint and mark in the present embodiment, to can reduce repeated downloads in the time needing downloading data in the future, and can be better for other terminal provides data in the time receiving broadcast.
Optionally, described method also comprises:
In the time that the value of shared attribute field that has data cell is privately owned value, download the data cell of privately owned value correspondence from server.
The technical scheme that present embodiment provides can comprise following beneficial effect: the value of the shared attribute field of the data cell in the present embodiment in a file may be different, can download from server for being not suitable for disclosed data, can download from other end for the data that can share.Both ensure data security, can improve again download efficiency.
According to the second aspect of disclosure embodiment, a kind of device that transmits data is provided, comprising:
The first download module, for the structured data from server download file;
Parsing module, for parsing the value of the shared attribute field of each data cell described file from described structured data;
The first broadcast module in the time that the value of shared attribute field that has data cell is common value, is broadcasted the first mark of the data cell that common value is corresponding in WLAN (wireless local area network);
The first receiver module, the response for described broadcast sending for receiving WLAN (wireless local area network) terminal;
The second download module, for downloading from the terminal that sends described response the data cell that common value is corresponding.
In one embodiment, described response comprises the second mark of described data cell;
Described device also comprises:
The second broadcast module, for again broadcasting the second mark of the data cell that common value is corresponding in WLAN (wireless local area network);
The second receiver module, for again receive WLAN (wireless local area network) terminal send for described again broadcast response.
In one embodiment, described device also comprises:
Fingerprint module, for obtaining the fingerprint of data cell of download;
Checking module, for checking whether this locality has stored described fingerprint;
Memory module when not storing described fingerprint in this locality, is preserved the data cell of downloading in the default public memory space in this locality;
Removing module, when having stored described fingerprint in this locality, deletes the data cell of downloading.
In one embodiment, described device also comprises:
Relationship module, for setting up the corresponding relation of described fingerprint and described the first mark.
In one embodiment, described device also comprises:
The 3rd download module, in the time that the value of shared attribute field that has data cell is privately owned value, downloads the data cell of privately owned value correspondence from server.
According to the third aspect of disclosure embodiment, a kind of device that transmits data is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Structured data from server download file;
From described structured data, parse the value of the shared attribute field of each data cell in described file;
In the time that the value of shared attribute field that has data cell is common value, in WLAN (wireless local area network), broadcast the first mark of the data cell that common value is corresponding;
Receive the response for described broadcast that in WLAN (wireless local area network), terminal sends;
From send the terminal of described response, download the data cell that common value is corresponding.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in specification and forms the part of this specification, shows and meets embodiment of the present disclosure, and be used from and explain principle of the present disclosure with specification one.
Fig. 1 is according to the flow chart of a kind of method of transmitting data shown in an exemplary embodiment.
Fig. 2 is according to the flow chart of a kind of method of transmitting data shown in an exemplary embodiment.
Fig. 3 is according to the schematic diagram of a kind of network configuration shown in an exemplary embodiment.
Fig. 4 is according to the flow chart of a kind of method of transmitting data shown in an exemplary embodiment.
Fig. 5 is according to the block diagram of a kind of device that transmits data shown in an exemplary embodiment.
Fig. 6 is according to the block diagram of a kind of device that transmits data shown in an exemplary embodiment.
Fig. 7 is according to the block diagram of a kind of device that transmits data shown in an exemplary embodiment.
Fig. 8 is according to the block diagram of a kind of device that transmits data shown in an exemplary embodiment.
Fig. 9 is according to the block diagram of a kind of device that transmits data shown in an exemplary embodiment.
Figure 10 is according to the block diagram of a kind of device shown in an exemplary embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present disclosure.
In correlation technique, the abundant while of information also makes network load larger.A solution is to adopt content distributing network (Content Distribution Network, CDN), CDN node is set in network, and a CDN node can be a server farm, shares transmission pressure by the quantity that increases server.But this scheme is larger to the quantity demand of server, has increased equipment cost.Another kind of solution be by terminal as distribution node, terminal is also responsible for uploading data in downloading data.That is to say that terminal can, from end downloading data, alleviate network pressure.But this scheme is a kind of transmission plan of file-level, all data in file must be common data just can adopt this scheme.If the private data that some data in file are user, cannot adopt this scheme.For addressing the above problem, the present embodiment segments the data attribute in file, shares attribute field for each data cell increases.The value of this shared attribute field is common data or private data for flag data unit.If common data, can be near terminal downloads, if private data can be downloaded from server.The present embodiment has been realized the contents distribution of data level, has both improved efficiency of transmission, has ensured again the safety of private data.And because not every data all derive from server, therefore reduce the pressure of server, thereby reduced the demand of number of servers.
Fig. 1 is according to the flow chart of a kind of method of transmitting data shown in an exemplary embodiment, and as shown in Figure 1, the method can be realized by mobile terminal, comprises the following steps:
In step 101, the structured data from server download file.
In step 102, from described structured data, parse the value of the shared attribute field of each data cell in described file.
In one embodiment, the value of the shared attribute field of data cell can be configured by user or data content provider.Also configuration automatically after can identifying by means such as semantic analyses.For example, the data of news content are common data, and the data in individual subscriber cyberspace are private data etc.
In step 103, in the time that the value of shared attribute field that has data cell is common value, in WLAN (wireless local area network), broadcast the first mark of the data cell that common value is corresponding.
In step 104, receive the response for described broadcast that in WLAN (wireless local area network), terminal sends.
In step 105, from send the terminal of described response, download the data cell that common value is corresponding.
The present embodiment has been realized the contents distribution of data level, and the different pieces of information unit in a file can be downloaded from distinct device.Can download near end for the data cell that common value is corresponding, alleviate the pressure of the webserver, save number of servers.And multi-source is downloaded can improve download efficiency.
The general act that file in the present embodiment can be made up of multiple subfiles, a data cell can be a subfile.Structured data is structured file, and for example the file of .xml form is structured file.
Taking web page news as example, terminal may need to download the file that multiple webpages form, and has many news in each webpage, and every news may comprise news picture and news content.News picture or news item content are a data cell.News picture is a subfile.
For example, it is " Today's news " that terminal 1 needs the data of downloading, and " Today's news " comprise 5 news, and every news includes news picture and news content, altogether 10 data cells.First terminal 1 downloads the structured data of " Today's news " from server, known and had 10 data cells by analytic structure data, can also obtain the first mark of each data cell and the value of shared attribute field.For example, the example of one first mark is: http-cache: //www.xxx1.com/yy1, this mark is as example, can also adopt the mark of other form taking URL (unified resource location), is all applicable to the present embodiment.Wherein " cache " represents that the value of shared attribute field is common value, if do not comprise " cache ", that is to say that shared attribute field is default, be worth for sky, the value that represents shared attribute field is privately owned value, and for example the example of one first mark is: http://www.xxx1.com/yy1.
Then terminal 1 can be broadcasted the first mark of the data cell that common value is corresponding in WLAN (wireless local area network).For example 10 data cells are common data, and terminal 1 can be broadcasted 10 data cells first and identifies, as broadcast the first mark 1-first and identify 10.In the present embodiment, WLAN (wireless local area network) comprises the network that various short-distance wireless connect and compose, short-distance wireless connect as: infrared connection, bluetooth connect, WiFi connects, NFC connects etc.
For example in WLAN (wireless local area network), also has terminal 2-terminal 5.Terminal 2-terminal 5 receives that obtaining the first mark 1-first after broadcast identifies 10, checks the local data cell that whether has the first mark 1-first and identify 10 correspondences.For example terminal 2 has the first mark 1-first and identifies 3, and terminal 4 has the first mark 3-first and identifies 7, and terminal 3 and terminal 5 do not have the first mark 1-first and identify the data cell of 10 correspondences.Terminal 2 and terminal 4 send response to terminal 1, and the response of terminal 2 comprises that the first mark 1-first identifies 3, and the response of terminal 4 comprises that the first mark 3-first identifies 7.Then terminal 1 can be downloaded the first mark 1-first from terminal 2 and identify the data cell of 3 correspondences, and downloads the first mark 3-first from terminal 4 and identify 7 data cell.For the data cell of the first mark 3 correspondences, can respectively download a part from terminal 2 and terminal 4.Identify 10 for the first mark 8-first, can download from server.
In one embodiment, may have multiple websites to report for same news, may there be different names different websites to same news, that is to say that same news may have multiple marks.If can obtain multiple marks of same news, can expand the scope of Data Source, further improve download efficiency.Therefore can be referring to option A.
Option A:
Described response comprises the second mark of described data cell.
After step 104, described method also comprises: steps A 1 and steps A 2.
In steps A 1, in WLAN (wireless local area network), again broadcast the second mark of the data cell that common value is corresponding.
In steps A 2, again receive that terminal in WLAN (wireless local area network) sends for the described response of broadcast again.
In the present embodiment, in step 104 and steps A 2, all can receive response, can be for response downloading data unit from corresponding terminal in step 104 and steps A 2 in step 105.
Continue example above, website xxx1 and website xxx2 have all reported " Today's news ", and news is identical, and 10 data cells are all identical, but are the mark difference of 10 data cell locations.Website xxx1 is that the first mark 1-first that is designated of 10 data cell locations identifies 10, and website xxx2 is that the second mark 1-second that is designated of 10 data cell locations identifies 10.Corresponding the first mark 1 of first data cell and the second mark 1, by that analogy.First mark 1 as: http-cache: //www.xxx1.com/yy1, second mark 1 as: http-cache: //www.xxx2.com/yy1.
Terminal 1 has been downloaded the structured data of " Today's news " from the server of website xxx1, know that the first mark 1-first identifies 10, and the value of the shared attribute field of 10 data cells is common value.Terminal 1 is broadcasted the first mark 1-first and is identified 10 in WLAN (wireless local area network).Terminal 2 checks that there is the first mark 1-first this locality and identifies 3 data cell, and the local record that also has data cell 1 corresponding the second mark 1.The response that terminal 2 sends comprises that the first mark 1-first identifies 3, and comprises the corresponding relation of the first mark 1 and the second mark 1.
Terminal 1 is received after response, again in WLAN (wireless local area network), broadcasts, and the content of broadcast is the second mark 1.Now terminal 5 checks the local data cell 1 that has the second mark 1 correspondence, and sends response to terminal 1, and this response comprises the second mark 1.Terminal 1 can be from terminal 2 and terminal 5 downloading data unit 1.
The Data Source of terminal 1 expands to terminal 2, terminal 4 and terminal 5 from terminal 2 and terminal 4 as can be seen here.Obtain more Data Source by associated identification information, thereby improved download efficiency.
In one embodiment, after terminal downloads data cell, need to store in this locality, in order to reduce repeated storage, can be referring to option b, option b comprises step B1-step B4.
Option b:
In step B1, obtain the fingerprint of the data cell of downloading.
In step B2, check whether this locality has stored described fingerprint.
In step B3, while not storing described fingerprint in this locality, in the default public memory space in this locality, preserve the data cell of downloading.
In step B4, while having stored described fingerprint in this locality, delete the data cell of downloading.
Fingerprint in the present embodiment is to calculate by the content to data cell, can unique identification data content, the algorithm of calculated fingerprint is as Message Digest Algorithm 5 (Message Digest Algorithm, MD5), Secure Hash Algorithm (Secure Hash Algorithm, SHA) etc.
In the present embodiment, behind downloading data unit, calculate the fingerprint of this data cell, check whether this locality has had this fingerprint, if there has been this fingerprint, represent to have stored the data cell that this fingerprint is corresponding, the data cell of download can be deleted, and does not need repeated storage.If there is not this fingerprint, represent there is not the data cell that this fingerprint is corresponding, the data cell of download can be stored.Can reduce like this repeated storage, save memory space.And, the data cell of downloading from end (being common data) is stored in public memory space by the present embodiment, namely common data is concentrated to storage, while being convenient to receive broadcast, check whether this locality has the data that other terminal needs, and be convenient to the maintenance of common data.
For example, terminal 1 was once downloaded data cell 1 from website xxx1, data cell 1 be designated the first mark 1, corresponding fingerprint is 112aaa111.Terminal 1 obtains structured data from website xxx2 now, and parses the second mark 1.Because the second mark 1 is different from the first mark 1, so terminal 1 is determined the local data cell that does not have the second mark 1 correspondence, need to download.Then terminal 1 has been downloaded the data cell 1 of the second mark 1 correspondence from other end.112aaa111 after the fingerprint of the data cell 1 that acquisition is downloaded, terminal 1 is determined this locality storage data units 1, the data cell of download 1 is deleted, and as deleted from buffer memory, does not need in other words the data cell of download 1 to carry out permanent storage.
In one embodiment, in order to reduce repeated downloads data in the future, described method can also be set up the corresponding relation of described fingerprint and described the first mark.
In conjunction with example above, terminal 1 identifies behind 1 downloading data unit 1 by second, determines that by the fingerprint 112aaa111 of data cell 1 this locality has had data cell 1, and terminal 1 can also be set up the corresponding relation of fingerprint 112aaa111 and the second mark 1.When terminal 1 parses the second mark 1 again from structured data, do not need downloading data unit 1, because store this locality.Therefore network traffics have been saved.And in the time that other terminal broadcast second identifies 1, terminal 1 also can provide data for other terminal.Being equivalent to the Data Source that terminal 1 can be used as the first mark 1 and the second mark 1, is also the expansion to Data Source, contributes to improve download efficiency.
In one embodiment, in the time that the value of shared attribute field that has data cell is privately owned value, download the data cell of privately owned value correspondence from server.
For example, user 1 network data comprises individual photo of the user 1 and user 1 and other user's chat record.Individual photo is configured to common data by user 1, and the value of sharing attribute field is common value.Other user can download and check individual photo of the user 1.But user 1 does not wish that other user checks his chat record, therefore chat record is configured to private data, the value of sharing attribute field is privately owned value.
User 2 wishes the network data of download user 1 by terminal 1, and obtains user 1 mandate, can download chat record.Terminal 1 can be from the chat record of server download user 1, and the individual photo of other end download user 1 from WLAN (wireless local area network).
In the present embodiment, private data is downloaded from server, has ensured the fail safe of private data.Can download from end for common data, expand data source, improve download efficiency.
Introduce in detail the implementation procedure of transmission data below by several embodiment.
Fig. 2 is according to the flow chart of a kind of method of transmitting data shown in an exemplary embodiment, and as shown in Figure 2, the method can be realized by mobile terminal and server, comprises the following steps:
As shown in Figure 3, network comprises server 301 and multiple mobile terminal (mobile terminal 302-305), and multiple mobile terminals are positioned at same WLAN (wireless local area network) 306.
In step 201, terminal 1 in the time of download file, the structured data from server download file.
In step 202, terminal 1 parses the value of the shared attribute field of each data cell in described file from described structured data.In the time that the value of shared attribute field that has data cell is common value, continue step 203; In the time that the value of shared attribute field that has data cell is privately owned value, continue step 209.
In step 203, terminal 1 is broadcasted the first mark of the data cell that common value is corresponding in WLAN (wireless local area network).
In step 204, terminal 2 determines that there are the first mark and corresponding data cell in this locality after receiving broadcast.
In step 205, terminal 2 sends to terminal 1 response that comprises the first mark.If 1, terminal is downloaded a data cell, in this response, can not carry mark, acquiescence represents the first mark.
In step 206, terminal 1 is downloaded data cell corresponding to the first mark from terminal 2.
In step 207, terminal 1 is calculated the fingerprint of the data cell of downloading.
In step 208, terminal 1 is set up the corresponding relation of fingerprint and the first mark.
In step 209, terminal 1 is downloaded the data cell of privately owned value correspondence from server.
Terminal 1 can also check whether this locality has had this fingerprint, with the data cell that determines whether that storage is downloaded.
Fig. 4 is according to the flow chart of a kind of method of transmitting data shown in an exemplary embodiment, and as shown in Figure 4, the method can be realized by mobile terminal and server, comprises the following steps:
In step 401, terminal 1 in the time of download file, the structured data from server download file.
In step 402, terminal 1 parses the value of the shared attribute field of each data cell in described file from described structured data.In the time that the value of shared attribute field that has data cell is common value, continue step 403; In the time that the value of shared attribute field that has data cell is privately owned value, continue step 410.
In step 403, terminal 1 is broadcasted the first mark of the data cell that common value is corresponding in WLAN (wireless local area network).
In step 404, terminal 2 determines that there are the first mark and corresponding data cell in this locality after receiving broadcast.
In step 405, terminal 2 is determined also corresponding the second mark of this data cell.
In step 406, terminal 2 sends the response that comprises the first mark and the second mark to terminal 1.
In step 407, terminal 1 is again broadcasted the second mark in WLAN (wireless local area network).
In step 408, the response that comprises the second mark that terminal 1 receiving terminal 3 sends.
In step 409, terminal 1 is downloaded the first mark and data cell corresponding to the second mark from terminal 2 and terminal 3.
In step 410, terminal 1 is downloaded the data cell of privately owned value correspondence from server.
In the present embodiment, terminal 1 can, respectively from terminal 2 and the each part of downloading of terminal 3, improve download efficiency for same data cell.
The implementation procedure of having understood transmission data by above introduction, this process is realized by mobile terminal, is introduced below for internal structure and the function of equipment.
Fig. 5 is according to a kind of device schematic diagram that transmits data shown in an exemplary embodiment.With reference to Fig. 5, this device comprises: the first download module 501, parsing module 502, the first broadcast module 503, the first receiver module 504 and the second download module 505.
The first download module 501, for the structured data from server download file.
Parsing module 502, for parsing the value of the shared attribute field of each data cell described file from described structured data.
The first broadcast module 503 in the time that the value of shared attribute field that has data cell is common value, is broadcasted the first mark of the data cell that common value is corresponding in WLAN (wireless local area network).
The first receiver module 504, the response for described broadcast sending for receiving WLAN (wireless local area network) terminal.
The second download module 505, for downloading from the terminal that sends described response the data cell that common value is corresponding.
In one embodiment, described response comprises the second mark of described data cell; As shown in Figure 6, described device also comprises: the second broadcast module 506 and the second receiver module 507.
The second broadcast module 506, for again broadcasting the second mark of the data cell that common value is corresponding in WLAN (wireless local area network).
The second receiver module 507, for again receive WLAN (wireless local area network) terminal send for described again broadcast response.
In one embodiment, as shown in Figure 7, described device also comprises: fingerprint module 508, checking module 509, memory module 510 and removing module 511.
Fingerprint module 508, for obtaining the fingerprint of data cell of download.
Checking module 509, for checking whether this locality has stored described fingerprint.
Memory module 510 when not storing described fingerprint in this locality, is preserved the data cell of downloading in the default public memory space in this locality.
Removing module 511, when having stored described fingerprint in this locality, deletes the data cell of downloading.
In one embodiment, as shown in Figure 8, described device also comprises: relationship module 512.
Relationship module 512, for setting up the corresponding relation of described fingerprint and described the first mark.
In one embodiment, as shown in Figure 9, described device also comprises: the 3rd download module 513.
The 3rd download module 513, in the time that the value of shared attribute field that has data cell is privately owned value, downloads the data cell of privately owned value correspondence from server.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Figure 10 is a kind of for transmitting the block diagram of device 1000 of data according to shown in an exemplary embodiment.For example, device 1000 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 10, device 1000 can comprise following one or more assembly: processing components 1002, memory 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of I/O (I/O), sensor cluster 1014, and communications component 1016.
The integrated operation of processing components 1002 common control device 1000, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Processing components 1002 can comprise that one or more processors 1020 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more modules, is convenient to mutual between processing components 1002 and other assemblies.For example, processing unit 1002 can comprise multi-media module, to facilitate mutual between multimedia groupware 1008 and processing components 1002.
Memory 1004 is configured to store various types of data to be supported in the operation of equipment 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Electric power assembly 1006 provides electric power for installing 1000 various assemblies.Electric power assembly 1006 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 1000.
Multimedia groupware 1008 is included in the screen that an output interface is provided between described device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to output and/or input audio signal.For example, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal receiving can be further stored in memory 1004 or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loud speaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1014 comprises one or more transducers, is used to device 1000 that the state estimation of various aspects is provided.For example, sensor cluster 1014 can detect the opening/closing state of equipment 1000, the relative positioning of assembly, for example described assembly is display and the keypad of device 1000, the position of an assembly of all right checkout gear 1000 of sensor cluster 1014 or device 1000 changes, user is with device 1000 existence that contact or do not have the variations in temperature of device 1000 orientation or acceleration/deceleration and device 1000.Sensor cluster 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1016 is configured to be convenient to the communication of wired or wireless mode between device 1000 and other equipment.Device 1000 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1016 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communication component 1016 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the memory 1004 of instruction, above-mentioned instruction can have been carried out said method by the processor 1020 of device 1000.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
Those skilled in the art, considering specification and putting into practice after invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a method of transmitting data, is characterized in that, comprising:
Structured data from server download file;
From described structured data, parse the value of the shared attribute field of each data cell in described file;
In the time that the value of shared attribute field that has data cell is common value, in WLAN (wireless local area network), broadcast the first mark of the data cell that common value is corresponding;
Receive the response for described broadcast that in WLAN (wireless local area network), terminal sends;
From send the terminal of described response, download the data cell that common value is corresponding.
2. the method for transmission data according to claim 1, is characterized in that, described response comprises the second mark of described data cell;
Described method also comprises:
In WLAN (wireless local area network), again broadcast the second mark of the data cell that common value is corresponding;
Again receive that terminal in WLAN (wireless local area network) sends for the described response of broadcast again.
3. the method for transmission data according to claim 1, is characterized in that, described method also comprises:
Obtain the fingerprint of the data cell of downloading;
Check whether this locality has stored described fingerprint;
In the time that described fingerprint is not stored in this locality, in the default public memory space in this locality, preserve the data cell of downloading;
While having stored described fingerprint in this locality, delete the data cell of downloading.
4. the method for transmission data according to claim 3, is characterized in that, described method also comprises:
Set up the corresponding relation of described fingerprint and described the first mark.
5. the method for transmission data according to claim 1, is characterized in that, described method also comprises:
In the time that the value of shared attribute field that has data cell is privately owned value, download the data cell of privately owned value correspondence from server.
6. a device that transmits data, is characterized in that, comprising:
The first download module, for the structured data from server download file;
Parsing module, for parsing the value of the shared attribute field of each data cell described file from described structured data;
The first broadcast module in the time that the value of shared attribute field that has data cell is common value, is broadcasted the first mark of the data cell that common value is corresponding in WLAN (wireless local area network);
The first receiver module, the response for described broadcast sending for receiving WLAN (wireless local area network) terminal;
The second download module, for downloading from the terminal that sends described response the data cell that common value is corresponding.
7. the device of transmission data according to claim 6, is characterized in that, described response comprises the second mark of described data cell;
Described device also comprises:
The second broadcast module, for again broadcasting the second mark of the data cell that common value is corresponding in WLAN (wireless local area network);
The second receiver module, for again receive WLAN (wireless local area network) terminal send for described again broadcast response.
8. the device of transmission data according to claim 6, is characterized in that, described device also comprises:
Fingerprint module, for obtaining the fingerprint of data cell of download;
Checking module, for checking whether this locality has stored described fingerprint;
Memory module when not storing described fingerprint in this locality, is preserved the data cell of downloading in the default public memory space in this locality;
Removing module, when having stored described fingerprint in this locality, deletes the data cell of downloading.
9. the device of transmission data according to claim 8, is characterized in that, described device also comprises:
Relationship module, for setting up the corresponding relation of described fingerprint and described the first mark.
10. the device of transmission data according to claim 6, is characterized in that, described device also comprises:
The 3rd download module, in the time that the value of shared attribute field that has data cell is privately owned value, downloads the data cell of privately owned value correspondence from server.
11. 1 kinds transmit the device of data, it is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Structured data from server download file;
From described structured data, parse the value of the shared attribute field of each data cell in described file;
In the time that the value of shared attribute field that has data cell is common value, in WLAN (wireless local area network), broadcast the first mark of the data cell that common value is corresponding;
Receive the response for described broadcast that in WLAN (wireless local area network), terminal sends;
From send the terminal of described response, download the data cell that common value is corresponding.
CN201410354499.6A 2014-07-23 2014-07-23 Transmit the method and device of data Active CN104104728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410354499.6A CN104104728B (en) 2014-07-23 2014-07-23 Transmit the method and device of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410354499.6A CN104104728B (en) 2014-07-23 2014-07-23 Transmit the method and device of data

Publications (2)

Publication Number Publication Date
CN104104728A true CN104104728A (en) 2014-10-15
CN104104728B CN104104728B (en) 2017-09-01

Family

ID=51672527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410354499.6A Active CN104104728B (en) 2014-07-23 2014-07-23 Transmit the method and device of data

Country Status (1)

Country Link
CN (1) CN104104728B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019090997A1 (en) * 2017-11-13 2019-05-16 平安科技(深圳)有限公司 Data acquisition method and device, computer device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060268842A1 (en) * 2005-05-25 2006-11-30 Sharp Kabushiki Kaisha Receiving apparatus and transmitting apparatus
CN101192952A (en) * 2006-11-30 2008-06-04 中国科学院声学研究所 A deployment method for wide-area collaboration work system
CN102609507A (en) * 2012-02-03 2012-07-25 浙江工业大学 Data visualization system based on Web
CN102624756A (en) * 2011-01-28 2012-08-01 联想(北京)有限公司 Data download terminal and data download method
CN103198253A (en) * 2013-03-29 2013-07-10 北京奇虎科技有限公司 Method and system of file operation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060268842A1 (en) * 2005-05-25 2006-11-30 Sharp Kabushiki Kaisha Receiving apparatus and transmitting apparatus
CN101192952A (en) * 2006-11-30 2008-06-04 中国科学院声学研究所 A deployment method for wide-area collaboration work system
CN102624756A (en) * 2011-01-28 2012-08-01 联想(北京)有限公司 Data download terminal and data download method
CN102609507A (en) * 2012-02-03 2012-07-25 浙江工业大学 Data visualization system based on Web
CN103198253A (en) * 2013-03-29 2013-07-10 北京奇虎科技有限公司 Method and system of file operation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019090997A1 (en) * 2017-11-13 2019-05-16 平安科技(深圳)有限公司 Data acquisition method and device, computer device and storage medium

Also Published As

Publication number Publication date
CN104104728B (en) 2017-09-01

Similar Documents

Publication Publication Date Title
RU2619073C2 (en) Method and device for implementation of adjustment
JP6062608B2 (en) Web page access method, apparatus, server, terminal, program, and recording medium
RU2604420C2 (en) Method, device and terminal for lightweight applications updating in offline mode
US20160100035A1 (en) Personal handheld web server and storage device
CN104202624B (en) The method of transmission picture and device
CN104270404A (en) Login method and device based on terminal identification
CN105095427A (en) Search recommendation method and device
CN104123341A (en) Method and device for downloading file and route device
CN104158722A (en) Message push method and device used for light applications, as well as terminal and server
CN105491048A (en) Account management method and apparatus
CN104021155A (en) Webpage display method and device
CN105515831A (en) Network state information display method and device
CN112312222A (en) Video sending method and device and electronic equipment
CN105704655A (en) Media data sharing method and media data sharing device between terminals
EP3051772A1 (en) Method and apparatus for accessing network
CN104639972A (en) Content sharing method, device and equipment
CN109525652B (en) Information sharing method, device, equipment and storage medium
CN104010231A (en) Data synchronizing method and device
CN105183493A (en) Display method and device of network information
US20120179754A1 (en) System and method for device application and/or application programming interface discovery
CN105763601A (en) File sharing method and device
CN103944709A (en) Data synchronization method and device
CN104639609A (en) Method and device for sharing network
CN105163307A (en) Method and device for sharing cloud card
CN104683496A (en) Address filtering method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant