CN104754514B - A kind of file push method and device, document receiving method and device - Google Patents
A kind of file push method and device, document receiving method and device Download PDFInfo
- Publication number
- CN104754514B CN104754514B CN201510137258.0A CN201510137258A CN104754514B CN 104754514 B CN104754514 B CN 104754514B CN 201510137258 A CN201510137258 A CN 201510137258A CN 104754514 B CN104754514 B CN 104754514B
- Authority
- CN
- China
- Prior art keywords
- nfc
- file
- push
- bluetooth
- sending device
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000004044 response Effects 0.000 claims abstract description 47
- 230000005540 biological transmission Effects 0.000 claims description 23
- 238000009434 installation Methods 0.000 claims description 23
- 238000012790 confirmation Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 9
- 230000008859 change Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 19
- 238000005516 engineering process Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 241001062009 Indigofera Species 0.000 description 1
- 239000011230 binding agent Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Abstract
The present invention provides a kind of file push method and device, document receiving method and devices, and wherein file push method includes: to detect when pushing files in NFC sending device, obtain to pushing files in local store path;Standard bluetooth request message is constructed based on NFC protocol, and pushes standard bluetooth request message to NFC receiving device;The standard bluetooth response message that NFC receiving device is returned based on NFC protocol is received, is executed according to standard bluetooth response message and is worked with the Bluetooth matching of NFC receiving device;NFC receiving device will be pushed to pushing files by being obtained according to store path to pushing files, and by bluetooth.The present invention is based on the Bluetooth matchings that NFC protocol is automatically performed two NFC devices, realize the file-sharing between NFC device, have saved data traffic required for downloading file, and the large data files for realizing NFC device transmit automatically, and the user experience is improved.
Description
Technical field
The invention belongs to wireless communication technology field, be related to a kind of file push method and device, document receiving method and
Device.
Background technique
NFC (Near Field Communication, wireless near field communication) is a kind of short-range high frequency channel radio
Letter technology allows to carry out contactless Point-to-Point Data Transmission between electronic equipment, exchanges data in ten centimetres.
In the prior art, it is touched based on NFC and realizes short range transmission although data transmission credibility with higher, but two
Platform smart phone can only transmit a small amount of data information based on NFC function.If the user of two smart phones wishes to open same
The third party application of sample is then difficult to transmit the installation file of application program by NFC function, does not install this application program
Smart phone, which is generally required, re-downloads the third party application by data traffic.Data traffic resource can be occupied in this way,
Reduce user experience.
Summary of the invention
In consideration of it, the present invention provides a kind of file push method and device, document receiving method and devices, to facilitate use
Large data files transmission between family, promotes user experience.
To achieve the above object, the present invention adopts the following technical scheme:
In a first aspect, a kind of file push method provided in an embodiment of the present invention, comprising:
It is detected when pushing files in NFC sending device, obtains the store path to pushing files in local;
Standard bluetooth request message is constructed based on NFC protocol, and pushes the standard bluetooth request to NFC receiving device and disappears
Breath;
The standard bluetooth response message that the NFC receiving device is returned based on NFC protocol is received, according to the standard bluetooth
Response message is executed to work with the Bluetooth matching of the NFC receiving device;
Institute is pushed to pushing files by described to pushing files, and by bluetooth according to store path acquisition is described
State NFC receiving device.
Second aspect, a kind of document receiving method provided in an embodiment of the present invention, comprising:
Receive the standard bluetooth request message based on NFC protocol of NFC sending device push;
By the Bluetooth address information of NFC receiving device local, standard bluetooth response message is packaged into based on NFC protocol, and
The NFC sending device is returned to, to establish the Bluetooth matching with the NFC sending device;
The file of the NFC sending device push is received by bluetooth.
The third aspect, a kind of file push device provided in an embodiment of the present invention, comprising:
Store path acquiring unit detects when pushing files that acquisition is described to exist to pushing files in NFC sending device
Local store path;
BlueTooth request building and push unit for constructing standard bluetooth request message based on NFC protocol, and connect to NFC
Receiving unit pushes the standard bluetooth request message;
Bluetooth matching unit is disappeared for receiving the NFC receiving device based on the standard bluetooth response that NFC protocol returns
Breath is executed according to the standard bluetooth response message and is worked with the Bluetooth matching of the NFC receiving device;
File push unit, it is described to pushing files for being obtained according to the store path, and will be described by bluetooth
The NFC receiving device is pushed to pushing files.
Fourth aspect, a kind of file reception device provided in an embodiment of the present invention, comprising:
BlueTooth request receiving unit, the standard bluetooth request based on NFC protocol for receiving the push of NFC sending device disappear
Breath;
Bluetooth address transmission unit, for being encapsulated based on NFC protocol by the Bluetooth address information of NFC receiving device local
At standard bluetooth response message, and the NFC sending device is returned to, to establish the Bluetooth matching with the NFC sending device;
File reception unit, for receiving the file of the NFC sending device push by bluetooth.
Compared with prior art, it is the advantages of technical solution of the present invention:
A kind of file push method and device, document receiving method and device provided by the invention, compared with prior art,
The present invention is based on the Bluetooth matchings that NFC protocol is automatically performed two NFC devices to realize Jiang Yitai in the case where no wifi
File in NFC device is automatically pushed to the function of another NFC device, has saved data traffic required for downloading file,
The large data files for realizing NFC device transmit automatically, and the user experience is improved.
Detailed description of the invention
Exemplary embodiments of the present invention will be described in detail referring to the drawings by general below, makes those skilled in the art
Become apparent from above-mentioned and other feature and advantage of the invention, in attached drawing:
Fig. 1 is a kind of flow diagram for file push method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of file push method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram for file push method that the embodiment of the present invention three provides;
Fig. 4 is a kind of flow diagram for file push method that the embodiment of the present invention four provides;
Fig. 5 is a kind of flow diagram for document receiving method that the embodiment of the present invention five provides;
Fig. 6 is a kind of flow diagram for document receiving method that the embodiment of the present invention six provides;
Fig. 7 is a kind of structural schematic diagram for file push device that the embodiment of the present invention seven provides;
Fig. 8 is a kind of structural schematic diagram for file push device that the embodiment of the present invention seven provides;
Fig. 9 is a kind of structural schematic diagram for file push device that the embodiment of the present invention seven provides;
Figure 10 is a kind of structural schematic diagram for file reception device that the embodiment of the present invention eight provides;
Figure 11 is a kind of structural schematic diagram for file reception device that the embodiment of the present invention eight provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 gives a kind of flow diagram of file push method of the offer of the embodiment of the present invention one, and this method can be with
It is executed by file push device, file push device can be realized in the form of software and/or hardware.As shown in Figure 1, the party
Method includes:
Step 101 detects when pushing files in NFC sending device, obtains to pushing files on local storage road
Diameter.
NFC sending device and NFC receiving device be two and have NFC function, the equipment for realizing file push between each other,
Usually mobile terminal, wherein corresponding configuration file driving means and file reception device.It can be in a mobile terminal
Configuration file driving means and file reception device simultaneously, to realize the push and reception of file with other equipment.
Illustratively, user opens the NFC function of NFC sending device and NFC receiving device, by by NFC sending device
With closely (distance is less than the ten centimetres) contact of NFC receiving device, it is established that between NFC sending device and NFC receiving device
NFC connection.What is detected can be the file that NFC sending device is currently up to pushing files, be also possible to that user is specified to push away
The file sent.
Step 102 is constructed standard bluetooth request message based on NFC protocol, and asked to NFC receiving device push standard bluetooth
Seek message.
The file that small data quantity can only be transmitted between existing NFC device transmits third party application, view by NFC
Frequently, the large data files such as document are difficult to realize.And the present embodiment can realize big data text between NFC device based on NFC protocol
The automatic bluetooth of part transmits.
Bluetooth is a kind of radio technology of holding equipment short haul connection (in general 10m).Can include mobile phone,
Wireless messages exchange is carried out between numerous equipment such as PDA, wireless headset, laptop, related peripherals.Using Bluetooth technology,
The communication between mobile communication terminal device can effectively be simplified, also can successfully simplify equipment and internet Internet
Between communication, thus data transmission become more rapidly efficiently, for wirelessly communicate widening road.Bluetooth uses distributed network
Structure and fast frequency hopping and short packet technology support point-to-point and point-to-multipoint delivery, work in the 2.4GHz ISM of global general-use
(i.e. industry, science, medicine) frequency range.Its data rate is 1Mbps.Full duplex transmission is realized using time division duplex transmission scheme.
Before realizing Bluetooth transmission, to complete NFC sending device and work the Bluetooth matching of NFC receiving device.Example
Property, NFC sending device constructs the standard bluetooth request message of the reference format NDEF of NFC message, i.e., is constructed based on NFC protocol
Then the standard bluetooth request message is encapsulated in NdefMessage by standard bluetooth request message, so that the standard bluetooth is asked
Ask that message is reliable, is accurately and efficiently pushed to NFC receiving device.
Step 103 receives the standard bluetooth response message that NFC receiving device is returned based on NFC protocol, according to standard bluetooth
Response message is executed to work with the Bluetooth matching of NFC receiving device.
Wherein, standard bluetooth response message includes the Bluetooth address information of NFC receiving device.Illustratively, NFC transmission is set
The standby standard bluetooth response message for receiving NFC receiving device and being returned based on NFC protocol, thread are read NDEF data, obtained wherein
NdefMessage data, by NdefMessage data conversion at the standard bluetooth response data, and from the standard bluetooth ring
The Bluetooth address information that NFC receiving device is obtained in data is answered, according to the execution of the Bluetooth address information of NFC receiving device and NFC
The Bluetooth matching of receiving device works.
Step 104 obtains to pushing files according to store path, and will be pushed to NFC to pushing files by bluetooth and connect
Receiving unit.
Illustratively, with NFC receiving device complete Bluetooth matching after, NFC sending device according to store path obtain to
Pushing files will be pushed to NFC receiving device finally by bluetooth to pushing files.
It should be noted that installation file, the view that can be third party application to pushing files in the present embodiment
Frequently, the large data files such as audio, document, picture.
The embodiment of the present invention one provide file push method, by NFC sending device be based on NFC protocol be automatically performed with
The Bluetooth matching of NFC receiving device, in the case where no wifi, realizing will be automatic to pushing files in NFC sending device
Be pushed to the function of NFC receiving device, saved downloading to data traffic required for pushing files, realize NFC device it
Between large data files transmit automatically, the user experience is improved.
Embodiment two
Fig. 2 gives a kind of flow diagram of file push method provided by Embodiment 2 of the present invention, the present embodiment with
It optimizes based on above-described embodiment, in the present embodiment, is increased after NFC sending device is detected to pushing files
Step: it is sent based on NFC protocol to the NFC receiving device and is disappeared comprising the sending out notice to the file identification of pushing files
Breath;Receive the push confirmation response message that the NFC receiving device returns.
Correspondingly, the method for the present embodiment includes the following steps:
Step 201 detects when pushing files in NFC sending device, obtains to pushing files on local storage road
Diameter.
Step 202 is led to the transmission of NFC receiving device comprising the push of the file identification to pushing files based on NFC protocol
Know message.
In view of there may be identical as file name in NFC sending device or even file size is identical for NFC receiving device
Different files, the file identification in the present embodiment to pushing files include the file name to pushing files, file size and
File format.
Illustratively, after NFC sending device is detected to pushing files, obtain to pushing files file name,
File size and file format, and it is encapsulated into the sending out notice message of NDEF format, it is sent to NFC receiving device, with logical
Know that NFC receiving device needs pushing files so that NFC receiving device inquire the machine whether there is with to the identical text of pushing files
Part, and be confirmed whether to need to push to pushing files.
Step 203 receives the push confirmation response message that NFC receiving device returns.
In the step, NFC sending device is confirmed by the push of the NFC NDEF format for receiving NFC receiving device return
Response message, to be confirmed whether push to pushing files, if so, 204 are thened follow the steps, if it is not, then terminating this push operation.
Step 204 is constructed standard bluetooth request message based on NFC protocol, and asked to NFC receiving device push standard bluetooth
Seek message.
Step 205 receives the standard bluetooth response message that NFC receiving device is returned based on NFC protocol, according to standard bluetooth
Response message is executed to work with the Bluetooth matching of NFC receiving device.
Step 206 obtains to pushing files according to store path, and will be pushed to NFC to pushing files by bluetooth and connect
Receiving unit.
File push method provided by Embodiment 2 of the present invention is based on NFC protocol by NFC sending device and receives to NFC
Equipment sends the sending out notice message comprising the file identification to pushing files, and the push for receiving the return of NFC receiving device is true
Response message is recognized, to be confirmed whether that push to pushing files, in order to avoid the repetition of file is transmitted, causes the waste of time and resource.
Embodiment three
Fig. 3 give the embodiment of the present invention three offer a kind of file push method flow diagram, the present embodiment with
It optimizes based on above-described embodiment, in the present embodiment, step is detected when pushing files in NFC sending device,
It obtains and optimizes to pushing files in local store path are as follows: detect the third party application of starting in NFC sending device
When, using the installation file of third party application as to pushing files;Installation file is obtained in NFC sending device local
URI, as store path.
Correspondingly, the method for the present embodiment includes the following steps:
Step 301, when NFC sending device detects the third party application of starting, by third party application
Installation file is used as to pushing files;Installation file is obtained in the URI of NFC sending device local, as store path.
Illustratively, NFC sending device automatically detects the third party application of starting by process, meanwhile, consider
The third party application directly pushed can not be opened to NFC receiving device, therefore, NFC sending device searches the third of starting
The installation file of square application program, and using the installation file of third party application as to pushing files.In addition, NFC is sent
Equipment obtains the installation file in local unified money by the publicSourceDir variable in ApplicationInfo class
Source identifier URI, as store path.
Step 302 is led to the transmission of NFC receiving device comprising the push of the file identification to pushing files based on NFC protocol
Know message.
Step 303 receives the push confirmation response message that NFC receiving device returns.
Step 304 is constructed standard bluetooth request message based on NFC protocol, and asked to NFC receiving device push standard bluetooth
Seek message.
Step 305 receives the standard bluetooth response message that NFC receiving device is returned based on NFC protocol, according to standard bluetooth
Response message is executed to work with the Bluetooth matching of NFC receiving device.
Step 306 obtains to pushing files according to store path, and will be pushed to NFC to pushing files by bluetooth and connect
Receiving unit.
The file push method that the embodiment of the present invention three provides is set when pushing third party application by NFC transmission
The standby third party application for detecting starting, using the installation file of third party application as to pushing files;Obtain peace
File is filled in the URI of NFC sending device local, as store path.The automatic detection to pushing files is realized, it is automatic to obtain
The installation file and its store path of third party application effectively prevent the direct push of third party application, solve
The problem of NFC receiving device received third party application can not be opened.
Example IV
Fig. 4 give the embodiment of the present invention four offer a kind of file push method flow diagram, the present embodiment with
It optimizes based on embodiment one, in the present embodiment, is detected when pushing files in NFC sending device, described in acquisition
Step is increased after local store path to pushing files: store path is added to the array to be sent of NFC protocol
In;It include: then inquiry when based on NFC protocol discovery NFC receiving device based on NFC protocol building standard bluetooth request message
It whether there is store path in array to be sent;If so, constructing standard bluetooth request message based on NFC protocol.
Correspondingly, the method for the present embodiment includes the following steps:
Step 401 detects when pushing files in NFC sending device, obtains to pushing files on local storage road
Diameter.
Store path is added in the array to be sent of NFC protocol by step 402.
Illustratively, the store path to pushing files is encapsulated in Uri array by NFC sending device, then passes through NFC
Uri array is stored in NfcActivityState.uris array by agreement, then is communicated and obtained by Binder
Data in NfcActivityState.uris array, the data that finally will acquire are added to the array to be sent of NFC protocol
In P2pLinkManager.mUrisToSend.
Step 403, based on NFC protocol discovery NFC receiving device when, inquire in array to be sent with the presence or absence of storage road
Diameter.If so, 404 are thened follow the steps, if it is not, thening follow the steps 405.
In view of that may go wrong due to NFC sending device when obtaining store path, lead to not obtain storage road
Diameter causes not obtained according to store path to pushing files, causes to push failure always to pushing files.The present embodiment can be with
When based on NFC protocol discovery NFC receiving device, NFC sending device inquires array to be sent
It whether there is store path in P2pLinkManager.mUrisToSend.Store path if it exists, then automatic execution step
404.Store path if it does not exist thens follow the steps 405.
Step 404 is constructed standard bluetooth request message based on NFC protocol, and asked to NFC receiving device push standard bluetooth
Seek message.
Step 405 is periodically detected the array to be sent.
Step 406 receives the standard bluetooth response message that NFC receiving device is returned based on NFC protocol, according to standard bluetooth
Response message is executed to work with the Bluetooth matching of NFC receiving device.
Step 407 obtains to pushing files according to store path, and will be pushed to NFC to pushing files by bluetooth and connect
Receiving unit.
Wherein, step 405 can also be other default actions, for example, terminating this push operation.
The file push method that the embodiment of the present invention four provides, by the way that store path is added to the to be sent of NFC protocol
In array, convenient for the identification and acquisition of store path;It inquires in array to be sent with the presence or absence of store path, is obtained with confirming again
Store path, effectively prevents NFC sending device and goes wrong when obtaining store path, leads to not obtain storage road
Diameter causes not obtained according to store path to pushing files, causes to push failure always to pushing files.Above-mentioned technical side
Case can also make address obtain function and change independently of one another with file push function, Parallel Implementation.
Embodiment five
Fig. 5 gives a kind of flow diagram of document receiving method of the offer of the embodiment of the present invention five, and this method can be with
It is executed by file reception device, this document reception device can be realized by the form of software and/or hardware.As shown in figure 5, should
Method includes:
Step 501, the standard bluetooth request message based on NFC protocol for receiving the push of NFC sending device.
Illustratively, NFC receiving device receives the standard bluetooth request message of NFC sending device push, and thread is read
Data in the NdefMessage of NDEF format, by the data conversion in NdefMessage at standard bluetooth request data.
Step 502, by the Bluetooth address information of NFC receiving device local, standard bluetooth response is packaged into based on NFC protocol
Message, and NFC sending device is returned to, to establish the Bluetooth matching with NFC sending device.
Illustratively, whether NFC receiving device judgment criteria BlueTooth request data meet BlueTooth request standard, if meeting,
Then by local Bluetooth address information, standard bluetooth response message is packaged into based on NFC protocol, is encapsulated in
In NdefMessage, and NFC sending device is returned to by NFC, to establish the Bluetooth matching with NFC sending device.
Step 503, the file that the push of NFC sending device is received by bluetooth.
Illustratively, after NFC receiving device and the success of NFC sending device Bluetooth matching, NFC receiving device waits NFC
Sending device pushing files receive the push of NFC sending device by bluetooth when inquiring NFC sending device has file push
File.
The document receiving method that the embodiment of the present invention five provides is based on NFC protocol by NFC receiving device and receives NFC
The Bluetooth address Information encapsulation of equipment local returns to NFC sending device at standard bluetooth response message, with foundation and NFC
The Bluetooth matching of sending device realizes NFC receiving device and receives the push of NFC sending device automatically in the case where no wifi
File function, saved downloading to data traffic required for pushing files, realize between NFC device big data text
Part transmits automatically, and the user experience is improved.
Embodiment six
Fig. 6 give the embodiment of the present invention six offer a kind of document receiving method flow diagram, the present embodiment with
It is optimized based on above-described embodiment, in the present embodiment, in the mark based on NFC protocol for receiving the push of NFC sending device
Step is increased before quasi- BlueTooth request message: based on NFC protocol reception NFC sending device transmission comprising to pushing files
The sending out notice message of file identification;It is selected to return to push confirmation response message to NFC sending device according to user.
Correspondingly, the method for the present embodiment includes the following steps:
Step 601 receives the pushing away comprising the file identification to pushing files that NFC sending device is sent based on NFC protocol
Send notification message.
In view of there may be identical as file name in NFC sending device or even file size is identical for NFC receiving device
Different files, the file identification in the present embodiment to pushing files include the file name to pushing files, file size and
File format.
Illustratively, NFC receiving device receives the pushing away comprising the file identification to pushing files that NFC sending device is sent
Notification message is sent, file name, file size and file to pushing files are obtained from the sending out notice message of NDEF format
Format.
Step 602 selects to return to push confirmation response message to NFC sending device according to user.
Illustratively, NFC receiving device is according to the file name, file size and file format to pushing files, inquiry
The machine whether there is with to the identical file of pushing files, query result be showed user, user selects according to query result
The push of NFC sending device whether is needed to select to return to NFC sending device according to user to pushing files, then from NFC receiving device
It returns the push based on NFC protocol and confirms response message.
Step 603, the standard bluetooth request message based on NFC protocol for receiving the push of NFC sending device.
Step 604, by the Bluetooth address information of NFC receiving device local, standard bluetooth response is packaged into based on NFC protocol
Message, and NFC sending device is returned to, to establish the Bluetooth matching with NFC sending device.
Step 605, the file that the push of NFC sending device is received by bluetooth.
The document receiving method that the embodiment of the present invention six provides is based on NFC protocol by NFC receiving device and receives NFC hair
The sending out notice message comprising the file identification to pushing files that equipment is sent is sent, and selects to send to NFC according to user and set
It is standby to return to push confirmation response message, the repetition transmission of file is avoided, the waste of time and resource is caused.
Embodiment seven
Fig. 7 is a kind of structural schematic diagram for file push device that the embodiment of the present invention seven provides.As shown in fig. 7, this article
Part driving means 70 includes:
Store path acquiring unit 701 detects when pushing files that acquisition exists to pushing files in NFC sending device
Local store path;
BlueTooth request building and push unit 702, for constructing standard bluetooth request message based on NFC protocol, and to NFC
Receiving device pushes standard bluetooth request message;
Bluetooth matching unit 703, the standard bluetooth response message returned for receiving NFC receiving device based on NFC protocol,
It is executed according to standard bluetooth response message and is worked with the Bluetooth matching of NFC receiving device;
File push unit 704, for being obtained according to store path to pushing files, and will be to pushing files by bluetooth
It is pushed to NFC receiving device.
Wherein, store path acquiring unit 701 is constructed with BlueTooth request and push unit 702 is connect, Bluetooth matching unit
703 connect with file push unit 704, and above-mentioned file push device 70 is mounted in NFC sending device.
The file push device that the embodiment of the present invention seven provides, is automatically performed the indigo plant with NFC receiving device based on NFC protocol
Tooth matching, in the case where no wifi, NFC reception will be automatically pushed to pushing files in NFC sending device by, which realizing, is set
Standby function has saved the large data files downloaded realized between NFC device to data traffic required for pushing files certainly
Dynamic transmission, the user experience is improved.
Further, with reference to Fig. 8, above-mentioned file push device 70 further include:
File identification push unit 801, for being sent to NFC receiving device comprising to pushing files based on NFC protocol
The sending out notice message of file identification;
Push confirmation receiving unit 802, the push for receiving the return of NFC receiving device confirm response message.
Wherein, store path acquiring unit 701 is connect with file identification push unit 801, file identification push unit 801
It is connect with push confirmation receiving unit 802, push confirmation receiving unit 802 is constructed with BlueTooth request and push unit 702 is connect.
Further, store path acquiring unit 701 is specifically used for: detecting the third party of starting in NFC sending device
When application program, using the installation file of third party application as to pushing files;Installation file is obtained in NFC sending device
Local URI, as store path.
Further, with reference to Fig. 9, above-mentioned file push device 70 can also include:
Store path adding unit 901, for store path to be added in the array to be sent of NFC protocol;
Store path query unit 902, for inquiring array to be sent when based on NFC protocol discovery NFC receiving device
In whether there is store path;If so, the building of instruction BlueTooth request and push unit 702, which are based on NFC protocol, constructs standard blue
Tooth request message.
Wherein, store path acquiring unit 701 is connect with store path adding unit 901, store path adding unit 901
With store path query unit 902, store path query unit 902 is constructed with BlueTooth request and push unit 702 is connect.
Embodiment eight
Figure 10 is a kind of structural schematic diagram for file reception device that the embodiment of the present invention eight provides.As shown in Figure 10, should
File reception device 100 includes:
BlueTooth request receiving unit 1001, the standard bluetooth based on NFC protocol for receiving the push of NFC sending device are asked
Seek message;
Bluetooth address transmission unit 1002, for being based on NFC protocol for the Bluetooth address information of NFC receiving device local
It is packaged into standard bluetooth response message, and returns to NFC sending device, to establish the Bluetooth matching with NFC sending device;
File reception unit 1003, for receiving the file of NFC sending device push by bluetooth.
Wherein, BlueTooth request receiving unit 1001 is connect with Bluetooth address transmission unit 1002, above-mentioned file reception device
100 are mounted in NFC receiving device.
The file reception device that the embodiment of the present invention eight provides, by the bluetooth of NFC receiving device local based on NFC protocol
Location Information encapsulation returns to NFC sending device at standard bluetooth response message, to establish the bluetooth with NFC sending device
Match, in the case where no wifi, realizes the function that NFC receiving device receives the file of NFC sending device push automatically, save
To data traffic required for pushing files, the large data files realized between NFC device transmit automatically, improve for downloading
User experience.
Further, with reference to Figure 11, above-mentioned file reception device 100 further include:
File identification receiving unit 1101, for including text to be pushed based on NFC protocol reception NFC sending device transmission
The sending out notice message of the file identification of part;
Push confirmation transmission unit 1102 confirms that response disappears for selecting to return to push to NFC sending device according to user
Breath.
Wherein, file identification receiving unit 1101 is connect with push confirmation transmission unit 1102.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (8)
1. a kind of file push method characterized by comprising
It is detected when pushing files in wireless near field communication NFC sending device, to pushing files in local described in acquisition
Store path, comprising: when the NFC sending device detects the third party application of starting, by the third-party application
The installation file of program to pushing files, obtains the installation file in the URI of the NFC sending device local as described,
As store path, so that store path address obtains function and changes independently of one another with file push function, Parallel Implementation;Wherein,
The URI is obtained by the NFC sending device by the publicSourceDir variable in ApplicationInfo class;
Standard bluetooth request message is constructed based on NFC protocol, and pushes the standard bluetooth request message to NFC receiving device;
Wherein, the standard bluetooth request message is encapsulated in NdefMessage message;
The standard bluetooth response message that the NFC receiving device is returned based on NFC protocol is received, is responded according to the standard bluetooth
Message is executed to work with the Bluetooth matching of the NFC receiving device;
Obtained according to the store path it is described to pushing files, and by bluetooth by it is described be pushed to pushing files described in
NFC receiving device;
It is detected when pushing files in NFC sending device, described in acquisition to pushing files after local store path, also
It include: that the store path is added in the array to be sent of NFC protocol;
It include: then inquiry when based on NFC protocol discovery NFC receiving device based on NFC protocol building standard bluetooth request message
It whether there is store path in the array to be sent;If so, constructing standard bluetooth request message based on NFC protocol;Otherwise,
It is periodically detected the array to be sent.
2. file push method according to claim 1, which is characterized in that described to detect in NFC sending device wait push away
After sending file further include:
It is sent based on NFC protocol to the NFC receiving device and is disappeared comprising the sending out notice to the file identification of pushing files
Breath;
Receive the push confirmation response message that the NFC receiving device returns.
3. a kind of document receiving method characterized by comprising
Receive the standard bluetooth request message based on NFC protocol of wireless near field communication NFC sending device push;Wherein, institute
It states standard bluetooth request message and is read by NFC receiving device thread and convert the data in the NdefMessage of NDEF format and obtain
It takes;
By the Bluetooth address information of the NFC receiving device local, standard bluetooth response message is packaged into based on NFC protocol, and
The NFC sending device is returned to, to establish the Bluetooth matching with the NFC sending device;
The file of the NFC sending device push is received by bluetooth;
Wherein, the file of the push is the installation file for the third party application that the NFC sending device is currently up,
When the NFC sending device detects the third party application of starting, the installation file of the third party application is made
For the pushing files, and the installation file is obtained in the URI of the NFC sending device local, as store path;Its
In, the URI is obtained by the NFC sending device by the publicSourceDir variable in ApplicationInfo class.
4. document receiving method according to claim 3, which is characterized in that receive NFC sending device push based on
Before the standard bluetooth request message of NFC protocol further include:
The sending out notice for the file identification comprising the pushing files that the NFC sending device is sent is received based on NFC protocol
Message;
It is selected to return to push confirmation response message to the NFC sending device according to user.
5. a kind of file push device characterized by comprising
Store path acquiring unit detects when pushing files in wireless near field communication NFC sending device, obtain it is described to
Pushing files are specifically used in local store path: detecting the third party application of starting in the NFC sending device
When, using the installation file of the third party application as described to pushing files, the installation file is obtained in the NFC
The URI of sending device local, as store path, so that store path address obtains function and file push function is independent of one another
Change, Parallel Implementation;Wherein, the URI is passed through in ApplicationInfo class by the NFC sending device
PublicSourceDir variable obtains;
BlueTooth request building and push unit for constructing standard bluetooth request message based on NFC protocol, and are set to NFC reception
It is standby to push the standard bluetooth request message;Wherein, the standard bluetooth request message is encapsulated in NdefMessage message;
Bluetooth matching unit, the standard bluetooth response message returned for receiving the NFC receiving device based on NFC protocol, root
It executes according to the standard bluetooth response message and works with the Bluetooth matching of the NFC receiving device;
File push unit, it is described to pushing files for being obtained according to the store path, and pass through bluetooth for described wait push away
Send file push to the NFC receiving device
Store path adding unit, for the store path to be added in the array to be sent of NFC protocol;
Store path query unit, for inquiring in the array to be sent when based on NFC protocol discovery NFC receiving device
With the presence or absence of store path;If so, the building of instruction BlueTooth request and push unit are based on NFC protocol building standard bluetooth request
Message;Otherwise, it is periodically detected the array to be sent.
6. file push device according to claim 5, which is characterized in that further include:
File identification push unit, for being sent comprising described to the NFC receiving device to pushing files based on NFC protocol
The sending out notice message of file identification;
Push confirmation receiving unit confirms response message for receiving the push that the NFC receiving device returns.
7. a kind of file reception device characterized by comprising
BlueTooth request receiving unit, for receiving the standard based on NFC protocol of wireless near field communication NFC sending device push
BlueTooth request message;Wherein, the standard bluetooth request message is read by NFC receiving device thread and converts NDEF format
Data acquisition in NdefMessage;
Bluetooth address transmission unit, for being packaged into mark based on NFC protocol for the Bluetooth address information of NFC receiving device local
Quasi- bluetooth response message, and the NFC sending device is returned to, to establish the Bluetooth matching with the NFC sending device;
File reception unit, for receiving the file of the NFC sending device push by bluetooth;
Wherein, the file of the push is the installation file for the third party application that the NFC sending device is currently up,
When the NFC sending device detects the third party application of starting, the installation file of the third party application is made
For the pushing files, and the installation file is obtained in the URI of the NFC sending device local, as store path;Its
In, the URI is obtained by the NFC sending device by the publicSourceDir variable in ApplicationInfo class.
8. file reception device according to claim 7, which is characterized in that further include:
File identification receiving unit, for based on NFC protocol receive that the NFC sending device sends comprising the pushing files
File identification sending out notice message;
Push confirmation transmission unit returns to push confirmation response message to the NFC sending device for selecting according to user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510137258.0A CN104754514B (en) | 2015-03-26 | 2015-03-26 | A kind of file push method and device, document receiving method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510137258.0A CN104754514B (en) | 2015-03-26 | 2015-03-26 | A kind of file push method and device, document receiving method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104754514A CN104754514A (en) | 2015-07-01 |
CN104754514B true CN104754514B (en) | 2019-04-09 |
Family
ID=53593497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510137258.0A Expired - Fee Related CN104754514B (en) | 2015-03-26 | 2015-03-26 | A kind of file push method and device, document receiving method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104754514B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209976A (en) * | 2016-06-21 | 2016-12-07 | 广州视睿电子科技有限公司 | Information sharing method and system |
CN109151012A (en) * | 2018-08-11 | 2019-01-04 | 宁波亿拍客网络科技有限公司 | A kind of push mode runs program technic and its application method, correlation technique |
CN113132473A (en) * | 2021-04-09 | 2021-07-16 | 深圳市木千科技有限公司 | Data processing method and device of Bluetooth equipment and computer equipment |
CN113934452B (en) * | 2021-09-30 | 2022-08-09 | 北京五八信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1633104A1 (en) * | 2003-06-06 | 2006-03-08 | Sony Corporation | Communication system, communication device, communication method, and program |
CN103546200A (en) * | 2013-08-26 | 2014-01-29 | 深圳Tcl新技术有限公司 | Data transmission method and system based on near-field communication |
CN103781068A (en) * | 2012-10-18 | 2014-05-07 | 中兴通讯股份有限公司 | Data transmission method and terminal device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103780952B (en) * | 2014-01-28 | 2018-01-26 | 广东欧珀移动通信有限公司 | Intelligent terminal method for sending information and system |
-
2015
- 2015-03-26 CN CN201510137258.0A patent/CN104754514B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1633104A1 (en) * | 2003-06-06 | 2006-03-08 | Sony Corporation | Communication system, communication device, communication method, and program |
CN103781068A (en) * | 2012-10-18 | 2014-05-07 | 中兴通讯股份有限公司 | Data transmission method and terminal device |
CN103546200A (en) * | 2013-08-26 | 2014-01-29 | 深圳Tcl新技术有限公司 | Data transmission method and system based on near-field communication |
Also Published As
Publication number | Publication date |
---|---|
CN104754514A (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10278099B2 (en) | Electronic device and operating method thereof | |
EP3117586B1 (en) | Cross-layer context management | |
KR101583252B1 (en) | Method for transmitting data between terminals and terminal | |
US7940732B2 (en) | Automatic wireless network device configuration | |
CN102201846B (en) | Wireless data transmission system and method based on soft AP (access point) technology | |
EP2701457A1 (en) | Method for connecting peer-to-peer applications over a wireless lan, and method for maintaining a connection between the peer-to-peer applications over the wireless lan, and wireless lan-based peer terminal | |
KR101404383B1 (en) | Method and communication device for communicating with other devices | |
CN104754514B (en) | A kind of file push method and device, document receiving method and device | |
CN102833345A (en) | Method, apparatus and system for sharing content between devices | |
CN103200300B (en) | Terminal and resource sharing method | |
CN103781068A (en) | Data transmission method and terminal device | |
CN106028266B (en) | Information transmission method, device and system | |
CN104158883A (en) | Method, device, equipment and system for carrying out user login through cross-terminal equipment | |
EP2832181A1 (en) | Method and apparatus for relaying data communications in a bluetooth network | |
WO2015050544A1 (en) | Cloud phone notifications | |
CN103220822A (en) | Data transmission method, data transmission device and mobile terminal | |
WO2013117048A1 (en) | Wifi data transmission method and terminal | |
KR20080002127A (en) | Mobile communication terminal for sending emergency message using bluetooth module and method the same | |
CN102843434B (en) | A kind of equipment room shares method, the Apparatus and system of content | |
CN102412875A (en) | File sending and receiving method and device as well as file transmission method and system | |
KR20120066979A (en) | Wireless local area communication system | |
CN105744491A (en) | Communication management system and method between different android devices | |
CN108684021A (en) | A kind of Bluetooth Low Energy communication means and device | |
Rossey et al. | Wi-Fi helping out Bluetooth Smart for an improved home automation user experience | |
JP2003198672A (en) | Portable communication terminal and its control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190409 |
|
CF01 | Termination of patent right due to non-payment of annual fee |