CN104104728B - Transmit the method and device of data - Google Patents
Transmit the method and device of data Download PDFInfo
- Publication number
- CN104104728B CN104104728B CN201410354499.6A CN201410354499A CN104104728B CN 104104728 B CN104104728 B CN 104104728B CN 201410354499 A CN201410354499 A CN 201410354499A CN 104104728 B CN104104728 B CN 104104728B
- Authority
- CN
- China
- Prior art keywords
- data
- data cell
- value
- terminal
- fingerprint
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The disclosure is directed to a kind of method and device for transmitting data, extra increased equipment is reduced while network transmission load is alleviated for realizing.Methods described includes:Structured data from server download file;The value of the shared attribute field of each data cell in the file is parsed from the structured data;When the value for the shared attribute field for having data cell is common value, the first mark of the corresponding data cell of common value is broadcasted in a wireless local area network;Receive the response for the broadcast that terminal is sent in WLAN;The corresponding data cell of common value is downloaded from the terminal for sending the response.
Description
Technical field
This disclosure relates to communicate and computer disposal field, more particularly to transmit the method and device of data.
Background technology
With the development of internet, people's online obtains information and has become a kind of custom.The abundant of the network information is also given
People provide many convenient.The abundant of the network information also brings pressure to network load.The especially appearance of multi-medium data,
Each multimedia file is than larger, it is necessary to take more bandwidth.
The inventor of the disclosure has found, in correlation technique, and in order to alleviate network pressure, a kind of settling mode is increase service
The quantity of device.Network transmission pressure is shared by more servers.But the program needs more equipment, add equipment into
This.Therefore, how data are more effectively transmitted, is urgent problem to be solved.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of method and device for transmitting data.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method for transmitting data, including:
Structured data from server download file;
The value of the shared attribute field of each data cell in the file is parsed from the structured data;
When the value for the shared attribute field for having data cell is common value, sharing pairs of values is broadcasted in a wireless local area network should
Data cell first mark;
Receive the response for the broadcast that terminal is sent in WLAN;
The corresponding data cell of common value is downloaded from the terminal for sending the response.
The technical scheme provided by this disclosed embodiment can include the following benefits:The present embodiment realizes data level
Content distribution, the different pieces of information unit in a file can download from distinct device.Data corresponding for common value
Unit can be downloaded from neighbouring end, alleviated the pressure of the webserver, saved number of servers.And multi-source is downloaded
Download efficiency can be improved.
As optional embodiment, the response includes the second mark of the data cell;
After the response for the broadcast that terminal is sent in the reception WLAN, methods described also includes:
The second of the corresponding data cell of broadcast common value identifies again in a wireless local area network;
The response broadcasted again for described in that terminal is sent in WLAN is received again.
The technical scheme that present embodiment is provided can include the following benefits:A number can be obtained in the present embodiment
According to multiple marks of unit, it can be connected, from more end downloading datas, entered with more terminals by broadcasting multiple marks
One step improves download efficiency.
Optionally, methods described also includes:
Obtain the fingerprint for the data cell downloaded;
Whether inspection has locally stored the fingerprint;
When locally not storing the fingerprint, the data cell of download is preserved in local default public memory space;
In the locally stored fingerprint, the data cell downloaded is deleted.
The technical scheme that present embodiment is provided can include the following benefits:The present embodiment can be marked uniquely by fingerprint
Know data cell, the local data cell that whether has been stored with can be checked by fingerprint, can avoid repeating to store, save storage empty
Between.
Optionally, methods described also includes:
Set up the fingerprint and the corresponding relation of the described first mark.
The technical scheme that present embodiment is provided can include the following benefits:Fingerprint and mark are established in the present embodiment
The corresponding relation of knowledge, so as to which repeated downloads can be reduced when needing downloading data future, and can be preferably when receiving broadcast
Other terminals provide data.
Optionally, methods described also includes:
When the value for the shared attribute field for having data cell is private value, the corresponding data of private value are downloaded from server
Unit.
The technical scheme that present embodiment is provided can include the following benefits:Number in the present embodiment in a file
May be different according to the value of the shared attribute field of unit, it can be downloaded for being not suitable for disclosed data from server, for can
The data shared can be downloaded from other ends.Both data safety is ensure that, download efficiency can be improved again.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device for transmitting data, including:
First download module, for from the structured data in server download file;
Parsing module, the shared attribute word for parsing each data cell in the file from the structured data
The value of section;
First broadcast module, for when the value for the shared attribute field for having data cell is common value, in wireless local
The first mark of the corresponding data cell of common value is broadcasted in net;
First receiving module, for receiving the response for the broadcast that terminal is sent in WLAN;
Second download module, for downloading the corresponding data cell of common value from the terminal for sending the response.
In one embodiment, described respond includes the second mark of the data cell;
Described device also includes:
Second broadcast module, for the second of the corresponding data cell of broadcast common value to be marked again in a wireless local area network
Know;
Second receiving module, for receiving the sound broadcasted again for described in that terminal in WLAN is sent again
Should.
In one embodiment, described device also includes:
Fingerprint module, the fingerprint for obtaining the data cell downloaded;
Module is checked, for checking locally whether stored the fingerprint;
Memory module, for when locally not storing the fingerprint, under being preserved in local default public memory space
The data cell of load;
Removing module, in the locally stored fingerprint, deleting the data cell downloaded.
In one embodiment, described device also includes:
Relationship module, for setting up the fingerprint and the corresponding relation of the described first mark.
In one embodiment, described device also includes:
3rd download module, for when the value for the shared attribute field for having data cell is private value, under server
Carry the corresponding data cell of private value.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of device for transmitting data, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Structured data from server download file;
The value of the shared attribute field of each data cell in the file is parsed from the structured data;
When the value for the shared attribute field for having data cell is common value, sharing pairs of values is broadcasted in a wireless local area network should
Data cell first mark;
Receive the response for the broadcast that terminal is sent in WLAN;
The corresponding data cell of common value is downloaded from the terminal for sending the response.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the method for transmission data according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the method for transmission data according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of network structure according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of the method for transmission data according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the device of transmission data according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the device of transmission data according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the device of transmission data according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the device of transmission data according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the device of transmission data according to an exemplary embodiment.
Figure 10 is a kind of block diagram of device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
In correlation technique, information abundant is while also make it that network load is larger.A solution is using content point
Hairnet network (Content Distribution Network, CDN), sets CDN node in a network, and CDN node can be with
It is a server farm, transmission pressure is shared by increasing the quantity of server.But the program is to the quantity of server
Demand is larger, adds equipment cost.Another solution is that terminal is in the same of downloading data as distribution node by terminal
When also be responsible for upload data.That is terminal can alleviate network pressure from end downloading data.But the program is
A kind of all data in transmission plan of file-level, file must be that common data can just use the program.If file
Some of data be user private data, then cannot use the program.To solve the above problems, the present embodiment is to file
In data attribute be finely divided, be each data cell increase shared attribute field.The value of the shared attribute field is used to mark
Data cell is common data or private data., then can be from neighbouring terminal downloads, if privately owned number if common data
According to can then be downloaded from server.The present embodiment realizes the content distribution of data level, both improves efficiency of transmission, ensures again
The safety of private data.And because not every data all derive from server, therefore reduce the pressure of server,
So as to reduce the demand of number of servers.
Fig. 1 is a kind of flow chart of the method for transmission data according to an exemplary embodiment, as shown in figure 1, should
Method can be realized by mobile terminal, be comprised the following steps:
In a step 101, from the structured data in server download file.
In a step 102, the shared attribute word of each data cell in the file is parsed from the structured data
The value of section.
In one embodiment, the value of the shared attribute field of data cell can be matched somebody with somebody by user or data content provider
Put.Automatically configured after can also being identified by means such as semantic analyses.For example, the data of news content are common data,
Data in individual subscriber cyberspace are private data etc..
In step 103, when the value for the shared attribute field for having data cell is common value, in a wireless local area network extensively
Broadcast the first mark of the corresponding data cell of common value.
At step 104, the response for the broadcast that terminal is sent in WLAN is received.
In step 105, the corresponding data cell of common value is downloaded from the terminal for sending the response.
The different pieces of information unit that the present embodiment is realized in the content distribution of data level, a file can be from distinct device
It is upper to download.Data cell corresponding for common value can be downloaded from neighbouring end, alleviate the pressure of the webserver, section
Number of servers is saved.And multi-source, which 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 one
Subfile.Structured data is structured file, and the file of such as .xml forms is structured file.
By taking web page news as an example, terminal, which may need to download, a plurality of new in the file that multiple webpages are constituted, each webpage
Hear, every news potentially includes news picture and news content.One news picture or news item content are a data sheet
Member.News picture is a subfile.
For example, terminal 1 needs the data downloaded to be " Today's news ", " Today's news " include 5 news, and every news is equal
Including news picture and news content, 10 data cells altogether.Terminal 1 downloads the structure of " Today's news " from server first
Data, are known by analytic structure data and have 10 data cells, can also obtain each data cell first mark and
The value of shared attribute field.For example, the example of one first mark is:http-cache://www.xxx1.com/yy1, the mark
Knowledge is the mark that can also be taken other form, suitable for the present embodiment by taking URL (unified resource positioning) as an example.Wherein
" cache " represents that the value of shared attribute field is common value, if not including " cache ", that is to say, that shared attribute field lacks
Save, be worth for sky, then it represents that the value of shared attribute field is private value, the example of such as one first mark is:http://
www.xxx1.com/yy1。
Then terminal 1 can broadcast the first mark of the corresponding data cell of common value in a wireless local area network.Such as 10
Individual data cell is common data, then terminal 1 can broadcast 10 data cells first and identify, and such as broadcast first identifies 1- first
Mark 10.WLAN includes the network that various short-distance wireless are connected and composed in the present embodiment, and short-distance wireless is connected such as:
Infrared connection, bluetooth connection, WiFi connections, NFC connections etc..
For example there are terminal 2- terminals 5 in WLAN.Terminal 2- terminals 5, which are received, to be obtained first and identifies 1- the after broadcast
One mark 10, checks that locally whether having the first mark 1- first identifies 10 corresponding data cells.For example terminal 2 has first
The marks of 1- first 3 are identified, terminal 4 has the first mark 3- first marks 7, and terminal 3 and terminal 5 do not have the first mark 1- first
Identify 10 corresponding data cells.Then terminal 2 and terminal 4 are sent to terminal 1 responds, and the response of terminal 2 includes the first mark 1-
First mark 3, the response of terminal 4 includes the first mark 3- first marks 7.Then terminal 1 can download first from terminal 2 and identify 1-
First 3 corresponding data cells of mark, and download the first data cell for identifying the marks of 3- first 7 from terminal 4.For first
3 corresponding data cells are identified, a part can be respectively downloaded at terminal 2 and terminal 4.Identified for the first mark 8- first
10, then it can be downloaded from server.
In one embodiment, multiple websites may report for same news, different websites are to same
News may have different names, that is to say, that same news may have multiple marks.If the multiple of same news can be obtained
Mark, then can expand the scope of data source, further improve download efficiency.Therefore it can be found in option A.
Option A:
Described respond includes the second mark of the data cell.
After step 104, methods described also includes:Step A1 and step A2.
In step A1, the second of the corresponding data cell of broadcast common value identifies again in a wireless local area network.
In step A2, the response broadcasted again for described in that terminal is sent in WLAN is received again.
Response can be received in step 104 and step A2 in the present embodiment, then can be directed to step 104 in step 105
With the downloading data unit from corresponding terminal is responded in step A2.
Continue the example above, website xxx1 and website xxx2 report " Today's news ", and news is identical, i.e., 10
Data cell all same, but the mark for 10 data cell configurations is different.Website xxx1 is 10 data cell configurations
The first mark 1- first marks 10 are designated, website xxx2 is that the second mark 1- second that is designated of 10 data cell configurations is marked
Know 10.First data cell correspondence the first mark 1 and the second mark 1, by that analogy.First mark 1 is such as:http-
cache://www.xxx1.com/yy1, the second mark 1 is such as:http-cache://www.xxx2.com/yy1.
Terminal 1 has downloaded the structured data of " Today's news " from website xxx1 server, knows the first mark 1-
One mark 10, and the value of the shared attribute field of 10 data cells is common value.Terminal 1 broadcasts in a wireless local area network
One mark 1- first marks 10.Terminal 2 checks the local data cell for having the first mark 1- first marks 3, and locally also
There is the record of the mark 1 of the correspondence of data cell 1 second.The response that then terminal 2 is sent includes the first mark 1- first marks 3, with
And the corresponding relation including the first mark 1 and the second mark 1.
Terminal 1 is received after response, is broadcasted in a wireless local area network again, and the content of broadcast is the second mark 1.Now terminal
5 check locally there is the corresponding data cell 1 of the second mark 1, and send response to terminal 1, and the response includes the second mark 1.
Then terminal 1 can be from downloading data unit 1 at terminal 2 and terminal 5.
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.By closing
The identification information of connection obtains more data sources, so as to improve download efficiency.
In one embodiment, need to be stored locally after terminal downloads data cell, in order to reduce repetition storage,
Reference can be made to option b, option b includes step B1- steps B4.
Option b:
In step bl is determined., the fingerprint for the data cell downloaded is obtained.
In step B2, whether inspection has locally stored the fingerprint.
In step B3, when locally not storing the fingerprint, preserve and download in local default public memory space
Data cell.
In step B4, in the locally stored fingerprint, the data cell downloaded is deleted.
Fingerprint in the present embodiment be by carrying out calculating what is obtained to the content of data cell, can be in unique identification data
Hold, calculate algorithm such as Message Digest Algorithm 5 (Message Digest Algorithm, MD5), the secure Hash of fingerprint
Algorithm (Secure Hash Algorithm, SHA) etc..
The fingerprint of the data cell is calculated in the present embodiment after downloading data unit, checks that locally whether having had this refers to
Line, if there being the fingerprint, then it represents that stored the corresponding data cell of the fingerprint, the data cell of download can then be deleted,
It need not repeat to store., can be by the number of download if there not being the fingerprint, then it represents that there is not the corresponding data cell of the fingerprint
Stored according to unit.Repetition storage can be so reduced, memory space is saved.Also, the present embodiment will be downloaded from end
Data cell (being common data) is stored in public memory space, that is, common data is concentrated into storage, is easy to receive extensively
Sowing time checks locally whether there are the data that other terminals need, and is easy to the maintenance of common data.
For example, terminal 1 once downloaded data cell 1 from website xxx1, data cell 1 is designated the first mark 1, right
The fingerprint answered is 112aaa111.Present terminal 1 obtains structured data from website xxx2, and parses the second mark 1.Due to
Two marks 1 are different from the first mark 1, so terminal 1 determines locally do not have the corresponding data cell of the second mark 1, it is necessary to enter
Row is downloaded.Then terminal 1 has downloaded the second 1 corresponding data cell 1 of mark from other ends.Obtain the data cell downloaded
112aaa111 after 1 fingerprint, terminal 1 determines locally stored data cell 1, then deletes the data cell 1 of download, such as from
Delete, the data cell 1 of download need not be permanently stored in other words in caching.
In one embodiment, in order to reduce repeated downloads data in future, methods described can also set up the fingerprint with
The corresponding relation of first mark.
With reference to the example above, after terminal 1 is by the second 1 downloading data unit 1 of mark, pass through the fingerprint of data cell 1
112aaa111 determines locally had data cell 1, then terminal 1 can also set up the marks of fingerprint 112aaa111 and second 1
Corresponding relation.When terminal 1 parses the second mark 1 from structured data again, it is not necessary to downloading data unit 1, because locally
Store.Therefore network traffics are saved.And when other terminal broadcasts second mark 1, terminal 1 can also be other terminals
Data are provided.Can be also the expansion to data source as the first mark 1 and the data source of the second mark 1 equivalent to terminal 1
Exhibition, is favorably improved download efficiency.
In one embodiment, when the value for the shared attribute field for having data cell is private value, downloaded from server
The corresponding data cell of private value.
For example, the network data of user 1 includes the personal photo of user 1 and the chat record of user 1 and other users.With
Personal photo is configured to common data, the i.e. value of shared attribute field for common value by family 1.Other users can download and check
The personal photo of user 1.But user 1 is not intended to other users and checks his chat record, therefore chat record is configured to
Private data, the i.e. value of shared attribute field are private value.
User 2 wishes to download the network data of user 1 by terminal 1, and obtains the mandate of user 1, can download merely
Its record.Then terminal 1 can download the chat record of user 1 from server, and from other ends in WLAN
Download the personal photo of user 1.
Private data is downloaded from server in the present embodiment, it is ensured that the security of private data.Can for common data
To be downloaded from end, data source is extended, download efficiency is improved.
The implementation process of transmission data is discussed in detail below by several embodiments.
Fig. 2 is a kind of flow chart of the method for transmission data according to an exemplary embodiment, as shown in Fig. 2 should
Method can be realized by mobile terminal and server, be comprised the following steps:
As shown in figure 3, network includes server 301 and multiple mobile terminals (mobile terminal 302-305), multiple movements
Terminal is located in same WLAN 306.
In step 201, terminal 1 is when downloading file, the structured data from server download file.
In step 202., terminal 1 parses the shared category of each data cell in the file from the structured data
The value of property field.When the value for the shared attribute field for having data cell is common value, continue step 203;There is data cell
Shared attribute field value be private value when, continue step 209.
In step 203, terminal 1 broadcasts the first mark of the corresponding data cell of common value in a wireless local area network.
In step 204, terminal 2 receives and determines locally have the first mark and corresponding data cell after broadcast.
In step 205, terminal 2 is sent to terminal 1 includes the response of the first mark.If 1 one number of download of terminal
According to unit, then mark can not be carried in the response, acquiescence represents that first identifies.
In step 206, terminal 1 downloads the corresponding data cell of the first mark at terminal 2.
In step 207, terminal 1 calculates the fingerprint for the data cell downloaded.
In a step 208, terminal 1 sets up the corresponding relation of fingerprint and the first mark.
In step 209, terminal 1 downloads the corresponding data cell of private value from server.
Terminal 1 can also check locally whether had the fingerprint, to determine whether the data cell of storage download.
Fig. 4 is a kind of flow chart of the method for transmission data according to an exemplary embodiment, as shown in figure 4, should
Method can be realized by mobile terminal and server, be comprised the following steps:
In step 401, terminal 1 is when downloading file, the structured data from server download file.
In step 402, terminal 1 parses the shared category of each data cell in the file from the structured data
The value of property field.When the value for the shared attribute field for having data cell is common value, continue step 403;There is data cell
Shared attribute field value be private value when, continue step 410.
In step 403, terminal 1 broadcasts the first mark of the corresponding data cell of common value in a wireless local area network.
In step 404, terminal 2 receives and determines locally have the first mark and corresponding data cell after broadcast.
In step 405, terminal 2 determines that the data cell also corresponds to the second mark.
In a step 406, terminal 2 is sent to terminal 1 includes the response of the first mark and the second mark.
In step 407, broadcast second is identified terminal 1 again in a wireless local area network.
In a step 408, what the receiving terminal 3 of terminal 1 was sent includes the response of the second mark.
In step 409, terminal 1 downloads the first mark and the corresponding data sheet of the second mark at terminal 2 and terminal 3
Member.
In step 410, terminal 1 downloads the corresponding data cell of private value from server.
Terminal 1 can respectively download a part from terminal 2 and terminal 3 respectively for same data cell in the present embodiment, carry
High download efficiency.
By the implementation process described above for having understood transmission data, the process realized by mobile terminal, below for setting
Standby internal structure and function is introduced.
Fig. 5 is a kind of schematic device of transmission data according to an exemplary embodiment.Reference picture 5, the device
Including:First download module 501, parsing module 502, the first broadcast module 503, the first receiving module 504 and second download mould
Block 505.
First download module 501, for from the structured data in server download file.
Parsing module 502, the shared category for parsing each data cell in the file from the structured data
The value of property field.
First broadcast module 503, for when the value for the shared attribute field for having data cell is common value, in wireless office
First mark of the corresponding data cell of broadcast common value in the net of domain.
First receiving module 504, for receiving the response for the broadcast that terminal is sent in WLAN.
Second download module 505, for downloading the corresponding data cell of common value from the terminal for sending the response.
In one embodiment, described respond includes the second mark of the data cell;As shown in fig. 6, described device
Also include:Second broadcast module 506 and the second receiving module 507.
Second broadcast module 506, second for broadcasting the corresponding data cell of common value again in a wireless local area network
Mark.
Second receiving module 507, is broadcasted again for receiving that terminal in WLAN sends again for described
Response.
In one embodiment, as shown in fig. 7, described device also includes:Fingerprint module 508, inspection module 509, storage
Module 510 and removing module 511.
Fingerprint module 508, the fingerprint for obtaining the data cell downloaded.
Module 509 is checked, for checking locally whether stored the fingerprint.
Memory module 510, for when locally not storing the fingerprint, being preserved in local default public memory space
The data cell of download.
Removing module 511, in the locally stored fingerprint, deleting the data cell downloaded.
In one embodiment, as shown in figure 8, described device also includes:Relationship module 512.
Relationship module 512, for setting up the fingerprint and the corresponding relation of the described first mark.
In one embodiment, as shown in figure 9, described device also includes:3rd download module 513.
3rd download module 513, for when the value for the shared attribute field for having data cell is private value, from server
Download the corresponding data cell of private value.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 10 is a kind of block diagram for being used to transmit the device 1000 of data according to an exemplary embodiment.For example,
Device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device,
Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 10, device 1000 can include following one or more assemblies:Processing assembly 1002, memory 1004,
Power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster
1014, and communication component 1016.
The integrated operation of the usual control device 1000 of processing assembly 1002, such as with display, call, data communication,
The camera operation operation associated with record operation.Processing assembly 1002 can include one or more processors 1020 to perform
Instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 1002 can include one or more moulds
Block, is easy to the interaction between processing assembly 1002 and other assemblies.For example, processing component 1002 can include multi-media module,
To facilitate the interaction between multimedia groupware 1008 and processing assembly 1002.
Memory 1004 is configured as storing various types of data supporting the operation in equipment 1000.These data
Example includes the instruction of any application program or method for being used to operate on device 1000, contact data, telephone book data,
Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they
Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Electric power assembly 1006 provides electric power for the various assemblies of device 1000.Electric power assembly 1006 can include power management
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1000.
Multimedia groupware 1008 is included in the screen of one output interface of offer between described device 1000 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed
Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic
The border of work, but also the detection duration related to the touch or slide and pressure.In certain embodiments, it is many
Media component 1008 includes a front camera and/or rear camera.When equipment 1000 is in operator scheme, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each preposition shooting
Head and rear camera can be a fixed optical lens systems or with focusing and optical zoom capabilities.
Audio-frequency assembly 1010 is configured as output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat
Gram wind (MIC), when device 1000 is in operator scheme, when such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The audio signal received can be further stored in memory 1004 or via communication
Component 1016 is sent.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1012 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1002 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor cluster 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented
Estimate.For example, sensor cluster 1014 can detect opening/closed mode of equipment 1000, the relative positioning of component, such as institute
Display and keypad that component is device 1000 are stated, sensor cluster 1014 can be with detection means 1000 or device 1000
The position of one component changes, the existence or non-existence that user contacts with device 1000, the orientation of device 1000 or acceleration/deceleration with
The temperature change of device 1000.Sensor cluster 1014 can include proximity transducer, be configured in not any thing
The presence of object nearby is detected during reason contact.Sensor cluster 1014 can also include optical sensor, and such as CMOS or ccd image are passed
Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress
The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1000.It is exemplary at one
In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1016 also includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 1004 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1020 of device 1000.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (9)
1. a kind of method for transmitting data, it is characterised in that including:
Structured data from server download file;
The value of the shared attribute field of each data cell in the file is parsed from the structured data;
When the value for the shared attribute field for having data cell is common value, the corresponding number of common value is broadcasted in a wireless local area network
According to the first mark of unit;
Receive the response for the broadcast that terminal is sent in WLAN;
The corresponding data cell of common value is downloaded from the terminal for sending the response;
When the value for the shared attribute field for having data cell is private value, the corresponding data sheet of private value is downloaded from server
Member.
2. the method for transmission data according to claim 1, it is characterised in that the response includes the data cell
Second mark;
Methods described also includes:
The second of the corresponding data cell of broadcast common value identifies again in a wireless local area network;
The response broadcasted again for described in that terminal is sent in WLAN is received again.
3. the method for transmission data according to claim 1, it is characterised in that methods described also includes:
Obtain the fingerprint for the data cell downloaded;Wherein, fingerprint is to carry out calculating what is obtained by the content to data cell, can
Unique identification data content;
Whether inspection has locally stored the fingerprint;
When locally not storing the fingerprint, the data cell of download is preserved in local default public memory space;
In the locally stored fingerprint, the data cell downloaded is deleted.
4. the method for transmission data according to claim 3, it is characterised in that methods described also includes:
Set up the fingerprint and the corresponding relation of the described first mark.
5. a kind of device for transmitting data, it is characterised in that including:
First download module, for from the structured data in server download file;
Parsing module, the shared attribute field for parsing from the structured data each data cell in the file
Value;
First broadcast module, during for the value in the shared attribute field for having data cell for common value, in a wireless local area network
Broadcast the first mark of the corresponding data cell of common value;
First receiving module, for receiving the response for the broadcast that terminal is sent in WLAN;
Second download module, for downloading the corresponding data cell of common value from the terminal for sending the response;
3rd download module, for when the value for the shared attribute field for having data cell is private value, being downloaded from server private
There is the corresponding data cell of value.
6. the device of transmission data according to claim 5, it is characterised in that the response includes the data cell
Second mark;
Described device also includes:
Second broadcast module, for the second of the corresponding data cell of broadcast common value to identify again in a wireless local area network;
Second receiving module, for receiving the response broadcasted again for described in that terminal in WLAN is sent again.
7. the device of transmission data according to claim 5, it is characterised in that described device also includes:
Fingerprint module, the fingerprint for obtaining the data cell downloaded;Wherein, fingerprint is carried out by the content to data cell
Calculate what is obtained, can unique identification data content;
Module is checked, for checking locally whether stored the fingerprint;
Memory module, for when locally not storing the fingerprint, preserving what is downloaded in local default public memory space
Data cell;
Removing module, in the locally stored fingerprint, deleting the data cell downloaded.
8. the device of transmission data according to claim 7, it is characterised in that described device also includes:
Relationship module, for setting up the fingerprint and the corresponding relation of the described first mark.
9. a kind of device for transmitting data, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Structured data from server download file;
The value of the shared attribute field of each data cell in the file is parsed from the structured data;
When the value for the shared attribute field for having data cell is common value, the corresponding number of common value is broadcasted in a wireless local area network
According to the first mark of unit;
Receive the response for the broadcast that terminal is sent in WLAN;
The corresponding data cell of common value is downloaded from the terminal for sending the response;
When the value for the shared attribute field for having data cell is private value, the corresponding data sheet of private value is downloaded from server
Member.
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 CN104104728A (en) | 2014-10-15 |
CN104104728B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682125A (en) * | 2017-11-13 | 2018-02-09 | 平安科技(深圳)有限公司 | A kind of data capture method, device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007006456A (en) * | 2005-05-25 | 2007-01-11 | Sharp Corp | Receiving system, transmitting system |
-
2014
- 2014-07-23 CN CN201410354499.6A patent/CN104104728B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104104728A (en) | 2014-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2610679C1 (en) | Method and device for instant messaging | |
RU2640632C2 (en) | Method and device for delivery of information | |
WO2015062462A1 (en) | Matching and broadcasting people-to-search | |
WO2016008243A1 (en) | Network connection method and apparatus | |
CN104462570B (en) | Web page contents acquisition methods and device | |
CN104572942A (en) | Push message display method and push message display device | |
CN104125162B (en) | The access processing method and device of Internet resources | |
JP6910300B2 (en) | A method for displaying chat history records and a device for displaying chat history records | |
KR20160016511A (en) | Method, device, server and terminal for visiting webpage | |
CN105183513A (en) | Application recommendation method and apparatus | |
CN106453528B (en) | The method and device of PUSH message | |
KR20140115413A (en) | System and method for generating album based on web services dealing with social information | |
CN104636164B (en) | Start page generation method and device | |
CN105488109A (en) | Content item configuration method, device and system | |
CN105447149A (en) | Interaction method, apparatus and electronic device for network searching | |
CN105095081A (en) | Application program function testing method and device | |
CN104639609A (en) | Method and device for sharing network | |
JP2016524767A (en) | Instant message management method, apparatus, program, and recording medium | |
JP2017511556A (en) | Address filtering method, apparatus, program, and recording medium | |
KR101744696B1 (en) | Method, device, program and recording medium for filtering information | |
CN104268611A (en) | Webpage synchronizing method and device | |
WO2017166297A1 (en) | Wifi hotpot portal authentication method and device | |
CN110928425A (en) | Information monitoring method and device | |
CN104104728B (en) | Transmit the method and device of data | |
CN104111829A (en) | Data storage 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 |