CN103796331B - A kind of method and apparatus for closely exchanging data - Google Patents

A kind of method and apparatus for closely exchanging data Download PDF

Info

Publication number
CN103796331B
CN103796331B CN201210427697.1A CN201210427697A CN103796331B CN 103796331 B CN103796331 B CN 103796331B CN 201210427697 A CN201210427697 A CN 201210427697A CN 103796331 B CN103796331 B CN 103796331B
Authority
CN
China
Prior art keywords
terminal
nfc
serving
mac address
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210427697.1A
Other languages
Chinese (zh)
Other versions
CN103796331A (en
Inventor
刘能
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210427697.1A priority Critical patent/CN103796331B/en
Publication of CN103796331A publication Critical patent/CN103796331A/en
Application granted granted Critical
Publication of CN103796331B publication Critical patent/CN103796331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of method and apparatus for closely exchanging data, to realize the exchange that Large Volume Data is carried out between two terminals.Methods described includes:Wireless near field communication NFC is set up with serving as the terminal of server end to be connected;According to the NFC message transmitted by the NFC connections, foundation is connected with the second of the terminal for serving as server end;Connected by described second, data interaction is carried out with the terminal for serving as server end.Method provided in an embodiment of the present invention has the features such as speed is fast, stability is high, disclosure satisfy that the requirement of the interaction Large Volume Data between two terminals with NFC function.

Description

A kind of method and apparatus for closely exchanging data
Technical field
The present invention relates to the Internet, applications field, more particularly to a kind of method and apparatus for closely exchanging data.
Background technology
Wireless near field communication(Near Field Communication, NFC)It is a kind of short-range high frequency channel radio Letter technology, it is allowed to contactless Point-to-Point Data Transmission is carried out between electronic equipment(In ten centimetres)Exchange data.NFC is one Plant and light, safety, the wireless connection technology rapidly communicated are provided, its transmission range compares radio frequency identification(Radio Frequency IDentification, RFID)It is small, but NFC take uniqueness signal attenuation technique, for RFID, NFC have away from , energy consumption low feature high near, bandwidth.Secondly, NFC is compatible with existing contactless smart card technology, has become obtain at present The official standard that more and more leading firms support.Again, there is provided various equipment rooms for NFC or a kind of closely connection protocol Easily, it is safe, rapid and automatically communicate.Compared with other connected modes in wireless world, NFC is a kind of private closely Close communication mode.Finally, NFC then plays huge effect in the fields such as gate inhibition, public transport, mobile-phone payment.
Two mobile phones with NFC function, can realize the function that the opposing party is transferred data to from a side by contacting.With Exemplified by the mobile phone of Android operation system, realized and transmitted data to from the mobile phone A with NFC function with NFC work(by NFC The step of mobile phone B of energy, is as follows:
S1, mobile phone A is touched with mobile phone B;
S2, the screen for clicking on mobile phone A is transmitted with trigger data;
S3, data are transmitted from mobile phone A to mobile phone B;
S4, data transfer is finished, and mobile phone A is separated with mobile phone B.
The defect of above-mentioned prior art is, it is impossible to the data of transmission of large capacity, for example, if desired transmitting 3M sound Frequency file, then the above method can not just accomplish.In addition, two mobile phones also need to separate to enter the option on screen after touching Row operation, the then connection set up is easier to interrupt.
The content of the invention
The embodiment of the present invention provides a kind of method and apparatus for closely exchanging data, is entered with realizing between two terminals The exchange of row Large Volume Data.
The embodiment of the present invention provides a kind of method for closely exchanging data, and methods described includes:
Wireless near field communication NFC is set up with serving as the terminal of server end to be connected;
According to the NFC message transmitted by the NFC connections, set up and connect with the second of the terminal for serving as server end Connect;
Connected by described second, data interaction is carried out with the terminal for serving as server end.
The embodiment of the present invention provides a kind of method for closely exchanging data, and methods described includes:
Wireless near field communication NFC is set up with serving as the terminal of client to be connected;
According to the NFC message transmitted by the NFC connections, set up and connect with the second of the terminal for serving as client Connect;
Connected by described second, data interaction is carried out with the terminal for serving as client.
The embodiment of the present invention provides a kind of device for closely exchanging data, and described device includes:
First connection establishment module, is connected for setting up wireless near field communication NFC with serving as the terminal of server end;
Second connection establishment module, for according to the NFC message transmitted by the NFC connections, foundation to be served as with described Second connection of the terminal of server end;
Data interaction module, for being connected by described second, data friendship is carried out with the terminal for serving as server end Mutually.
The embodiment of the present invention provides a kind of device for closely exchanging data, and described device includes:
NFC connection establishment modules, are connected for setting up wireless near field communication NFC with serving as the terminal of client;
Connection establishment module, for according to the NFC message transmitted by the NFC connections, setting up and serving as client with described Second connection of the terminal at end;
Data transmission module, for being connected by described second, data interaction is carried out with the terminal for serving as client.
It was found from the embodiments of the present invention, transmission is only needed because the NFC set up with serving as the terminal of server end is connected The less NFC message of capacity, and data in addition to NFC message can by according to NFC message set up with serving as server The second of the terminal at end connects to transmit.Therefore, compared with prior art transmits data using NFC connections merely, the present invention is real Applying the method for example offer has the features such as speed is fast, stability is high, disclosure satisfy that and is handed between two terminals with NFC function The requirement of mutual Large Volume Data.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in prior art or embodiment description The required accompanying drawing used is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention Example is applied, for those skilled in the art, other accompanying drawings can also be obtained such as these accompanying drawings.
Fig. 1 is the method flow schematic diagram provided in an embodiment of the present invention for closely exchanging data;
Fig. 2 is the method flow schematic diagram for closely exchanging data that another embodiment of the present invention is provided;
Fig. 3 is the apparatus structure schematic diagram provided in an embodiment of the present invention for closely exchanging data;
Fig. 4 is the apparatus structure schematic diagram for closely exchanging data that another embodiment of the present invention is provided;
Fig. 5 is the apparatus structure schematic diagram for closely exchanging data that another embodiment of the present invention is provided;
Fig. 6 is the apparatus structure schematic diagram for closely exchanging data that another embodiment of the present invention is provided;
Fig. 7 is the apparatus structure schematic diagram for closely exchanging data that another embodiment of the present invention is provided;
Fig. 8 is the apparatus structure schematic diagram for closely exchanging data that another embodiment of the present invention is provided;
Fig. 9 is the apparatus structure schematic diagram for closely exchanging data that another embodiment of the present invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other embodiment that those skilled in the art are obtained, belongs to the scope of protection of the invention.
In embodiments of the present invention, the method for closely exchanging data is based on two terminals for possessing NFC function, example As carried out between mobile phone, two terminals also possess client-server(Server-Client, CS)The function of interactive mode, Any one terminal of i.e. two terminals can both serve as server, can also serve as client.Accompanying drawing 1 is referred to, is this hair The method flow schematic diagram for closely exchanging data that bright embodiment is provided.In the method for the example of accompanying drawing 1, executive agent can be with Act as the terminal of client(For example, the wireless terminal such as mobile phone), mainly include step S101, step S102 and step S103, Specifically:
S101, sets up wireless near field communication NFC with serving as the terminal of server end and is connected.
S102, according to the NFC message transmitted by the NFC connections, sets up and the terminal for serving as server end Second connection.
As it was previously stated, method provided in an embodiment of the present invention is used to possess between the terminals such as the mobile phone of CS interactive modes. It is to serve as client in the present embodiment(Client)Terminal illustrated for executive agent.
In an embodiment of the invention, the NFC message for being sent to client by NFC connections can include unique subscriber Mark(Unique User IDentifier, UUID)And medium education(Media Access Control, MAC)Address Etc. information.Now, with serving as server end(Server)Terminal set up NFC connections, can be obtained by the terminal for serving as client The UUID and MAC Address of the machine bluetooth are taken, then, bluetooth server is created in the machine.The purpose for creating bluetooth server is can Using by the machine as bluetooth server, then, based on the bluetooth server of the establishment, by the UUID and MAC of the machine bluetooth Location encrypt and pack after with client-server(CS)Pattern be sent to the terminal for serving as server end.
Due to serving as server end(Server)Terminal establish NFC connections, also, serve as client(Client) Terminal by the UUID and MAC Address of the machine bluetooth with client-server(CS)Pattern be sent to and serve as server end Terminal, therefore, serve as client(Client)Terminal can also be connected by NFC, receive and serve as the terminal of server end Bluetooth UUID and MAC Address.If serving as UUID and the MAC Address encryption of the bluetooth of the terminal of server end, decryption is obtained The UUID and MAC Address of the bluetooth of the terminal of server end must be served as, otherwise, the indigo plant for the terminal for serving as server end is directly obtained The UUID and MAC Address of tooth.Then, according to the UUID and MAC Address of the bluetooth for the terminal for serving as server end, it is connected to and serves as The terminal of server end, in this way, completing to set up and the second process being connected of the terminal for serving as server end.
It should be noted that the second connection of terminal due in CS interactive modes, setting up and serving as server end Terminal is acting as client, and the UUID and MAC Address of the machine bluetooth are sent to the target for the terminal for serving as server end by it After the completion of, the role of bluetooth server no longer needs, therefore, for resource, is setting up the of the terminal with serving as server end After two connections are completed, the terminal for serving as client closes the bluetooth server created.
In an alternative embodiment of the invention, the NFC message for being sent to client by NFC connections can include media and access Control(Media Access Control, MAC)The information such as address.Now, with serving as server end(Server)Terminal build Vertical NFC connections, can be obtained the MAC Address of the machine by the terminal for serving as client.Then, by the MAC Address encryption of the machine simultaneously With client-server after packing(CS)Pattern be sent to the terminal for serving as server end.
Due to serving as server end(Server)Terminal establish NFC connections, also, serve as client(Client) Terminal by the MAC Address of the machine with client-server(CS)Pattern be sent to the terminal for serving as server end, because This, serves as client(Client)Terminal can also be connected by NFC, receive and serve as the MAC Address of server end.If serving as The MAC Address encryption of server end, then decryption obtains the MAC Address for the terminal for serving as server end, otherwise, directly obtains and serves as The MAC Address of server end.Then, according to the MAC Address for serving as server end, the terminal for serving as server end is connected to, such as This, completes to set up and the second process being connected of the terminal for serving as server end.
It should be noted that in the above-described embodiments, for serving as client(Client)Terminal and serve as server End(Server)Terminal set up NFC connections, the behaviour for the NFC connections that the operation of user and prior art are set up between two terminals Make process similar, i.e., completed in the way of touching.Except that, in method provided in an embodiment of the present invention, pass through NFC NFC message is only transmitted in connection, without the data of transmission of large capacity.For example, due to NFC message(Be in the present embodiment UUID and MAC Address)Capacity is smaller, typically only 2kB(2000 bytes)Left and right, even therefore it is of short duration touch, also can guarantee that these NFC message is reliably transmitted.
S103, is connected by described second, and data interaction is carried out with the terminal for serving as server end.
Unlike the prior art, in method provided in an embodiment of the present invention, NFC message is only transmitted in NFC connections, without transmitting The data of Large Copacity.Due to second connection have with roomy, speed is fast, stability is high the features such as, therefore, in the embodiment of the present invention In, the data of Large Copacity are transmitted by the second connection.
It was found from the method for the closely exchange data that the embodiments of the present invention are provided, due to serving as server end The NFC connections that terminal is set up only need the less NFC message of transmission capacity, and the data in addition to NFC message can pass through basis The second of the terminal with serving as server end that NFC message is set up is connected to transmit.Therefore, NFC is used merely with prior art Connection transmission data are compared, and method provided in an embodiment of the present invention has the features such as speed is fast, stability is high, disclosure satisfy that two The requirement of interaction Large Volume Data between the individual terminal with NFC function.
As it was previously stated, method provided in an embodiment of the present invention is used to possess between the terminals such as the mobile phone of CS interactive modes. It is to serve as client in the example of accompanying drawing 1(Client)Terminal illustrated for executive agent, below to serve as server end (Server)Terminal illustrated for executive agent.Accompanying drawing 2 is referred to, is provided in an embodiment of the present invention closely to exchange number According to method flow schematic diagram.In the method for the example of accompanying drawing 2, executive agent can act as the terminal of server end(For example, The wireless terminals such as mobile phone), mainly include step S201, step S202 and step S203, specifically:
S201, sets up wireless near field communication NFC with serving as the terminal of client and is connected.
S202, according to the NFC message transmitted by the NFC connections, sets up the with the terminal for serving as client Two connections.
In an embodiment of the invention, the NFC message for being sent to server end by NFC connections can include unique use Family is identified(Unique User IDentifier, UUID)And medium education(Media Access Control, MAC)Ground The information such as location.Now, with serving as client(Client)Terminal set up NFC connections, can be by serving as server end (Server)Terminal obtain the UUID and MAC Address of the machine bluetooth, then, bluetooth server is created in the machine;Create bluetooth The purpose of server is can to regard the machine as bluetooth server.Finally, the bluetooth server based on the establishment, the machine is blue The UUID and MAC Address of tooth encrypt and pack after with client-server(CS)Pattern be sent to the terminal for serving as client.
Due to serving as client(Client)Terminal establish NFC connections, also, serve as server end(Server) Terminal by the UUID and MAC Address of the machine bluetooth with client-server(CS)Pattern be sent to and serve as client (Client)Terminal, therefore, serve as server end(Server)Terminal can also be connected by NFC, reception serve as client End(Client)Terminal bluetooth UUID and MAC Address.If serving as client(Client)Terminal bluetooth UUID With MAC Address encryption, then decrypt acquisition and serve as client(Client)Terminal bluetooth UUID and MAC Address, otherwise, directly Obtain to take and serve as client(Client)Terminal bluetooth UUID and MAC Address.Then, according to serving as client (Client)Terminal bluetooth UUID and MAC Address, be connected to the terminal for serving as server end, in this way, complete set up with Serve as client(Client)Terminal second connection process.
In an alternative embodiment of the invention, the NFC message for being sent to client by NFC connections can include media and access Control(Media Access Control, MAC)The information such as address.Now, with serving as client(Client)Terminal set up NFC connections, can be by serving as server end(Server)Terminal obtain the MAC Address of the machine.Then, by the MAC of the machine Location encrypt and pack after with client-server(CS)Pattern be sent to and serve as client(Client)Terminal.
Due to serving as client(Client)Terminal establish NFC connections, also, serve as server end(Server) Terminal by the MAC Address of the machine with client-server(CS)Pattern be sent to and serve as client(Client)End End, therefore, serves as server end(Server)Terminal can also be connected by NFC, reception serve as client(Client)'s MAC Address.If serving as client(Client)MAC Address encryption, then decrypt acquisition serve as client(Client)Terminal MAC Address, otherwise, directly obtain serve as client(Client)MAC Address.Then, according to serving as client (Client)MAC Address, be connected to and serve as client(Client)Terminal, in this way, complete set up with serve as client (Client)Terminal second connection process.
It should be noted that in the above-described embodiments, for serving as client(Client)Terminal and serve as server End(Server)Terminal set up NFC connections, the behaviour for the NFC connections that the operation of user and prior art are set up between two terminals Make process similar, i.e., completed in the way of touching.Except that, in method provided in an embodiment of the present invention, pass through NFC NFC message is only transmitted in connection, without the data of transmission of large capacity.For example, due to NFC message(Be in the present embodiment UUID and MAC Address)Capacity is smaller, typically only 2kB(2000 bytes)Left and right, even therefore it is of short duration touch, also can guarantee that these NFC message is reliably transmitted.
S203, is connected by described second, and data interaction is carried out with the terminal for serving as client.
Unlike the prior art, in method provided in an embodiment of the present invention, NFC message is only transmitted in NFC connections, without transmitting The data of Large Copacity.Due to second connection have with roomy, speed is fast, stability is high the features such as, therefore, in the embodiment of the present invention In, the data of Large Copacity are transmitted by the second connection.
It was found from the method for the closely exchange data that the embodiments of the present invention are provided, due to serving as client (Client)The NFC connections set up of terminal only need the less NFC message of transmission capacity, and the data in addition to NFC message can With by according to NFC message set up with serving as client(Client)The second connection of terminal transmit.Therefore, with it is existing Technology is compared merely using NFC connections transmission data, and method provided in an embodiment of the present invention has the spies such as speed is fast, stability is high Point, disclosure satisfy that the requirement of the interaction Large Volume Data between two terminals with NFC function.
Accompanying drawing 3 is referred to, is the apparatus structure schematic diagram provided in an embodiment of the present invention for closely exchanging data.In order to just In explanation, the part related to the embodiment of the present invention illustrate only.The device for closely exchanging data of the example of accompanying drawing 3 can be with It is two terminals with NFC function(For example, mobile phone etc.)In serve as client(Client)Terminal, it include first connection Module 301, the second connection establishment module 302 and data interaction module 303 are set up, wherein:
First connection establishment module 301, for setting up wireless near field communication NFC companies with serving as the terminal of server end Connect;
Second connection establishment module 302, for according to the NFC message transmitted by the NFC connections, foundation to be filled with described When the second connection of the terminal of server end;
Data interaction module 303, for being connected by described second, data are carried out with the terminal for serving as server end Interaction.
It should be noted that the above is closely exchanged in the embodiment of device of data, the division of each functional module is only It is the facility of the realization of the configuration requirement or software of for example corresponding hardware for example, can be as needed in practical application Consider, and above-mentioned functions distributed and completed by different functional module, will the device for closely exchanging data inside Structure is divided into different functional modules, to complete all or part of function described above.Moreover, in practical application, this Corresponding functional module in embodiment can be realized by corresponding hardware, can also be performed by corresponding hardware corresponding soft Part is completed, for example, the first foregoing connection establishment module, can be set up with the foregoing terminal with serving as server end of execution The hardware of wireless near field communication NFC connections, such as first connects builder or is able to carry out corresponding computer program So as to complete the general processor or other hardware devices of foregoing function;Second connection establishment module as the aforementioned again, can be with It is the NFC message transmitted with the foregoing basis of execution by the NFC connections, sets up and the terminal for serving as server end The hardware of second linkage function, such as second connects builder or is able to carry out corresponding computer program to complete The general processor or other hardware devices of foregoing function(Each embodiment that this specification is provided can all apply foregoing description Principle).
In the device of the closely exchange data of the example of accompanying drawing 3, NFC message includes unique subscriber identification UUID and media Access control MAC address, the first connection establishment module 301 of the example of accompanying drawing 3 can include first acquisition unit 401, create single The delivery unit 403 of member 402 and first, the second connection establishment module 302 can include the first receiving unit 404 and the first connection is single Member 405, the device for closely exchanging data that another embodiment of the present invention is provided as shown in Figure 4, wherein:
First acquisition unit 401, UUID and MAC Address for obtaining the machine bluetooth;
Creating unit 402, for creating bluetooth server in the machine;
First delivery unit 403, for the bluetooth server based on the establishment, by the UUID of the machine bluetooth and MAC Address is sent to the terminal for serving as server end to serve as server end with described with the pattern of client-server Terminal set up wireless near field communication NFC connections;
First receiving unit 404, for being connected by the NFC, serves as the bluetooth of the terminal of server end described in reception UUID and MAC Address;
First connection unit 405, the UUID and MAC Address of the bluetooth of the terminal for serving as server end according to, It is connected to the terminal for serving as server end.
The device for closely exchanging data of the example of accompanying drawing 4 can also include closedown module 501, as shown in Figure 5 this hair The device for closely exchanging data that bright another embodiment is provided.Closedown module 501 is created for closing the creating unit 402 Bluetooth server.
In the device of the closely exchange data of the example of accompanying drawing 3, NFC message includes MAC address, attached First connection establishment module 301 of Fig. 3 examples can include the delivery unit 602 of second acquisition unit 601 and second, the second connection The second receiving unit 603 and the second connection unit 604 can be included by setting up module 302, as shown in Figure 6 another implementation of the invention The device for closely exchanging data that example is provided, wherein:
Second acquisition unit 601, the MAC Address for obtaining the machine;
Second delivery unit 602, for by the MAC Address of described the machine be sent to the terminal for serving as server end with Wireless near field communication NFC is set up with the terminal for serving as server end to be connected;
Second receiving unit 603, for being connected by the NFC, the MAC of the terminal of server end is served as described in reception Location;
Second connection unit 604, the MAC Address of the terminal for serving as server end according to is connected to described fill When the terminal of server end.
Accompanying drawing 7 is referred to, is the apparatus structure schematic diagram provided in an embodiment of the present invention for closely exchanging data.In order to just In explanation, the part related to the embodiment of the present invention illustrate only.The device for closely exchanging data of the example of accompanying drawing 3 can be with It is two terminals with NFC function(For example, mobile phone etc.)In serve as server end(Server)Terminal, it include NFC company Connect and set up module 701, connection establishment module 702 and data transmission module 703, wherein:
NFC connection establishment modules 701, are connected for setting up wireless near field communication NFC with serving as the terminal of client;
Connection establishment module 702, for according to the NFC message transmitted by the NFC connections, setting up and serving as visitor with described Second connection of the terminal at family end;
Data transmission module 703, for being connected by described second, data friendship is carried out with the terminal for serving as client Mutually.
In the device of the closely exchange data of the example of accompanying drawing 7, NFC message includes unique subscriber identification UUID and media Access control MAC address, the NFC connection establishment modules 701 of the example of accompanying drawing 7 can include relevant information acquiring unit 801, the machine Server creating unit 802 and relevant information delivery unit 803, connection establishment module 702 can include relevant information and receive single The connection unit 805 of member 804 and the 3rd, the device for closely exchanging data that another embodiment of the present invention is provided as shown in Figure 8, Wherein:
Relevant information acquiring unit 801, UUID and MAC Address for obtaining the machine bluetooth;
Local server creating unit 802, for creating bluetooth server in the machine;
Relevant information delivery unit 803, for the bluetooth server based on the establishment, by the UUID of the machine bluetooth With MAC Address with the pattern of client-server be sent to the terminal for serving as client with the client of serving as Terminal sets up wireless near field communication NFC connections;
Relevant information receiving unit 804, for being connected by the NFC, serves as the indigo plant of the terminal of client described in reception The UUID and MAC Address of tooth;
3rd connection unit 805, the UUID and MAC Address of the bluetooth of the terminal for serving as client according to, even It is connected to the terminal for serving as client.
In the device of the closely exchange data of the example of accompanying drawing 7, NFC message includes MAC address, attached The NFC connection establishment modules 701 of Fig. 7 examples can include the machine MAC Address acquiring unit 901 and MAC Address delivery unit 902, connection establishment module 702 can include the connection unit 904 of client mac address receiving unit 903 and the 4th, such as accompanying drawing 9 The device for closely exchanging data that shown another embodiment of the present invention is provided, wherein:
The machine MAC Address acquiring unit 901, the MAC Address for obtaining the machine;
MAC Address delivery unit 902, for the MAC Address of described the machine to be sent into the terminal for serving as client It is connected with setting up wireless near field communication NFC with the terminal for serving as client;
Client mac address receiving unit 903, for being connected by the NFC, serves as the terminal of client described in reception MAC Address;
4th connection unit 904, the MAC Address of the terminal for serving as client according to is connected to described serve as The terminal of client.
It should be noted that the content such as information exchange, implementation procedure between each module/unit of said apparatus, due to The inventive method embodiment is based on same design, and its technique effect brought is identical with the inventive method embodiment, particular content Reference can be made to the narration in the inventive method embodiment, here is omitted.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, such as following various methods it is one or more or whole:
Method one:Wireless near field communication NFC is set up with serving as the terminal of server end to be connected;According to passing through the NFC The NFC message of transmission is connected, foundation is connected with the second of the terminal for serving as server end;Connected by described second, with The terminal for serving as server end carries out data interaction.
Method two:Wireless near field communication NFC is set up with serving as the terminal of client to be connected;Connect according to by the NFC The NFC message of transmission is connect, foundation is connected with the second of the terminal for serving as client;Connected by described second, it is and described The terminal for serving as client carries out data interaction.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read-only storage(ROM, Read Only Memory), random access memory(RAM, Random Access Memory), disk or CD etc..
A kind of method and apparatus for closely exchanging data provided in an embodiment of the present invention are described in detail above, Specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is to use Understand the method and its core concept of the present invention in help;Simultaneously for those of ordinary skill in the art, according to the present invention's Thought, will change in specific embodiments and applications, in summary, and this specification content should not be construed as Limitation of the present invention.

Claims (14)

1. a kind of method for closely exchanging data, it is characterised in that methods described includes:
Wireless near field communication NFC is set up with serving as the terminal of server end to be connected;
According to the NFC message transmitted by the NFC connections, foundation is connected with the second of the terminal for serving as server end; Wherein, the NFC connections only transmit the NFC message;
Connected by described second, data interaction is carried out with the terminal for serving as server end;
In the case where the NFC message includes unique subscriber identification UUID and MAC address, the basis is led to Cross the NFC message of NFC connections transmission, foundation be connected with the second of the terminal for serving as server end including:By institute State NFC connections, receive described in serve as server end terminal bluetooth UUID and MAC Address;Server is served as according to described The UUID and MAC Address of the bluetooth of the terminal at end, are connected to the terminal for serving as server end;
Or in the case where NFC message includes MAC address, the basis is transmitted by the NFC connections NFC message, foundation be connected with the second of the terminal for serving as server end including:Connected by the NFC, receive described Serve as the MAC Address of the terminal of server end;According to the MAC Address of the terminal for serving as server end, described fill is connected to When the terminal of server end.
2. the method as described in claim 1, it is characterised in that include unique subscriber identification UUID and matchmaker in the NFC message In the case of body access control MAC address;The terminal with serving as server end sets up wireless near field communication NFC and is connected bag Include:Obtain the UUID and MAC Address of the machine bluetooth;Bluetooth server is created in the machine;Based on the bluetooth server of the establishment, The UUID and MAC Address of the machine bluetooth are sent to the end for serving as server end with the pattern of client-server End is connected with setting up wireless near field communication NFC with the terminal for serving as server end.
3. method as claimed in claim 2, it is characterised in that the foundation and the second of the terminal for serving as server end After connection, including:Close the bluetooth server of the establishment.
4. the method as described in claim 1, it is characterised in that include MAC address in the NFC message In the case of, the terminal with serving as server end set up wireless near field communication NFC be connected including:With obtaining the MAC of the machine Location;By the MAC Address of described the machine be sent to the terminal for serving as server end with the terminal for serving as server end Set up wireless near field communication NFC connections.
5. a kind of method for closely exchanging data, it is characterised in that methods described includes:
Wireless near field communication NFC is set up with serving as the terminal of client to be connected;
According to the NFC message transmitted by the NFC connections, foundation is connected with the second of the terminal for serving as client;Its In, the NFC connections only transmit the NFC message;
Connected by described second, data interaction is carried out with the terminal for serving as client;
In the case where the NFC message includes unique subscriber identification UUID and MAC address, the basis is led to Cross the NFC message of NFC connections transmission, foundation be connected with the second of the terminal for serving as client including:By described NFC connections, receive described in serve as client terminal bluetooth UUID and MAC Address;According to the end for serving as client The UUID and MAC Address of the bluetooth at end, are connected to the terminal for serving as client;
Or in the case where NFC message includes MAC address, the basis is transmitted by the NFC connections NFC message, foundation be connected with the second of the terminal for serving as client including:Connected, filled described in reception by the NFC When the MAC Address of the terminal of client;According to the MAC Address of the terminal for serving as client, it is connected to and described serves as client The terminal at end.
6. method as claimed in claim 5, it is characterised in that include unique subscriber identification UUID and matchmaker in the NFC message In the case of body access control MAC address, the terminal with serving as client sets up wireless near field communication NFC and is connected bag Include:Obtain the UUID and MAC Address of the machine bluetooth;Bluetooth server is created in the machine;Based on the bluetooth server of the establishment, The UUID and MAC Address of the machine bluetooth are sent to the terminal for serving as client with the pattern of client-server It is connected with setting up wireless near field communication NFC with the terminal for serving as client.
7. method as claimed in claim 5, it is characterised in that include MAC address in the NFC message In the case of, the terminal with serving as client set up wireless near field communication NFC be connected including:Obtain the MAC Address of the machine; The MAC Address of described the machine is sent to the terminal for serving as client to set up low coverage with the terminal for serving as client From radio communication NFC connections.
8. a kind of device for closely exchanging data, it is characterised in that described device includes:
First connection establishment module, is connected for setting up wireless near field communication NFC with serving as the terminal of server end;
Second connection establishment module, for according to the NFC message transmitted by the NFC connections, setting up and the service of serving as Second connection of the terminal at device end;Wherein, the NFC connections only transmit the NFC message;
Data interaction module, for being connected by described second, data interaction is carried out with the terminal for serving as server end;
In the case where the NFC message includes unique subscriber identification UUID and MAC address, described second connects Connect and set up module and include:First receiving unit, for being connected by the NFC, serves as the terminal of server end described in reception The UUID and MAC Address of bluetooth;First connection unit, for the bluetooth according to the terminal for serving as server end UUID with MAC Address, is connected to the terminal for serving as server end;
Or in the case where NFC message includes MAC address, second connection establishment module includes:The Two receiving units, for being connected by the NFC, serve as the MAC Address of the terminal of server end described in reception;Second connection is single Member, the MAC Address of the terminal for serving as server end according to is connected to the terminal for serving as server end.
9. device as claimed in claim 8, it is characterised in that include unique subscriber identification UUID and matchmaker in the NFC message In the case of body access control MAC address, first connection establishment module includes:
First acquisition unit, UUID and MAC Address for obtaining the machine bluetooth;
Creating unit, for creating bluetooth server in the machine;
First delivery unit, for the bluetooth server based on the establishment, by the UUID and MAC Address of the machine bluetooth with The pattern of client-server is sent to the terminal for serving as server end to set up with the terminal for serving as server end Wireless near field communication NFC connections.
10. device as claimed in claim 9, it is characterised in that described device also includes:
Closedown module, the bluetooth server for closing the establishment.
11. device as claimed in claim 8, it is characterised in that include MAC address in the NFC message In the case of, first connection establishment module includes:
Second acquisition unit, the MAC Address for obtaining the machine;
Second delivery unit, for by the MAC Address of described the machine be sent to the terminal for serving as server end with it is described The terminal for serving as server end sets up wireless near field communication NFC connections.
12. a kind of device for closely exchanging data, it is characterised in that described device includes:
NFC connection establishment modules, are connected for setting up wireless near field communication NFC with serving as the terminal of client;
Connection establishment module, for according to the NFC message transmitted by the NFC connections, setting up and the client of serving as Second connection of terminal;Wherein, the NFC connections only transmit the NFC message;
Data transmission module, for being connected by described second, data interaction is carried out with the terminal for serving as client;
In the case where the NFC message includes unique subscriber identification UUID and MAC address, the connection is built Formwork erection block includes:Relevant information receiving unit, for being connected by the NFC, serves as the indigo plant of the terminal of client described in reception The UUID and MAC Address of tooth;3rd connection unit, the UUID and MAC of the bluetooth of the terminal for serving as client according to Address, is connected to the terminal for serving as client;
Or in the case where the NFC message includes MAC address, the connection establishment module includes:Visitor Family end MAC Address receiving unit, for being connected by the NFC, serves as the MAC Address of the terminal of client described in reception;The Four connection units, the MAC Address of the terminal for serving as client according to is connected to the terminal for serving as client.
13. device as claimed in claim 12, it is characterised in that the NFC message include unique subscriber identification UUID and In the case of MAC address, the NFC connection establishment modules include:
Relevant information acquiring unit, UUID and MAC Address for obtaining the machine bluetooth;
Local server creating unit, for creating bluetooth server in the machine;
Relevant information delivery unit, for the bluetooth server based on the establishment, by the UUID and MAC of the machine bluetooth Location is sent to the terminal for serving as client to set up with the terminal for serving as client with the pattern of client-server Wireless near field communication NFC connections.
14. device as claimed in claim 12, it is characterised in that include MAC address in the NFC message In the case of, the NFC connection establishment modules include:
The machine MAC Address acquiring unit, the MAC Address for obtaining the machine;
MAC Address delivery unit, for by the MAC Address of described the machine be sent to the terminal for serving as client with it is described The terminal for serving as client sets up wireless near field communication NFC connections.
CN201210427697.1A 2012-10-31 2012-10-31 A kind of method and apparatus for closely exchanging data Active CN103796331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210427697.1A CN103796331B (en) 2012-10-31 2012-10-31 A kind of method and apparatus for closely exchanging data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210427697.1A CN103796331B (en) 2012-10-31 2012-10-31 A kind of method and apparatus for closely exchanging data

Publications (2)

Publication Number Publication Date
CN103796331A CN103796331A (en) 2014-05-14
CN103796331B true CN103796331B (en) 2017-07-21

Family

ID=50671475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210427697.1A Active CN103796331B (en) 2012-10-31 2012-10-31 A kind of method and apparatus for closely exchanging data

Country Status (1)

Country Link
CN (1) CN103796331B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104105053A (en) * 2014-07-14 2014-10-15 康佳集团股份有限公司 Method and system for achieving file sharing through NFC technology and Bluetooth technology
CN109379111A (en) * 2018-12-11 2019-02-22 浪潮(北京)电子信息产业有限公司 A kind of computer management method and relevant device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1802835A (en) * 2003-06-06 2006-07-12 索尼株式会社 Communication system, communication device, communication method, and program
CN102195684A (en) * 2010-03-16 2011-09-21 株式会社理光 Communication apparatus, wireless communication system and method for setting association information
CN102201842A (en) * 2010-03-24 2011-09-28 索尼公司 Information processing system, information processing apparatus, and administration server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1802835A (en) * 2003-06-06 2006-07-12 索尼株式会社 Communication system, communication device, communication method, and program
CN102195684A (en) * 2010-03-16 2011-09-21 株式会社理光 Communication apparatus, wireless communication system and method for setting association information
CN102201842A (en) * 2010-03-24 2011-09-28 索尼公司 Information processing system, information processing apparatus, and administration server

Also Published As

Publication number Publication date
CN103796331A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
Raza et al. Bluetooth smart: An enabling technology for the Internet of Things
CN104519458B (en) A kind of method of network connection, terminal, wireless router and system
CN105704252B (en) Bluetooth low energy device data transmission method and device
CN104253840A (en) Device for implementing communication among varieties of security carriers and communication method thereof
CN106793090B (en) The selection method and system of D2D direct communication resources
CN104467923B (en) Method, equipment and system that equipment is interacted
CN104247499B (en) Data pack transmission method, system and terminal device and the network equipment
JP2011528886A (en) Multiple application management method and system in near field communication
CN104216761A (en) Method for using shared device in device capable of operating two operation systems
CN104380773A (en) A virtual card download method, a terminal and intermediate equipment
CN102685210A (en) Wireless routing equipment, mobile terminal, management system and method
CN104541487B (en) Method and arrangement for multiple stack bluetooth controller
CN103987038A (en) Radio communication method and system
CN106535090A (en) Pairing method for Bluetooth device and intelligent device and Bluetooth device
CN105281809A (en) Auxiliary bluetooth low-power-consumption equipment pairing method and system
CN103561124A (en) Base station data configuring method and device
CN103457640A (en) Method and system for rapid data transmission and mobile terminals
CN105844466A (en) Payment method and system based on bluetooth communication
CN109791590A (en) Security processes
CN102420642A (en) Bluetooth device and communication method thereof
CN104065399A (en) Method, devices and system for negotiation work mode
CN115669022A (en) Method for providing ranging-based service by electronic equipment and electronic equipment
CN103796331B (en) A kind of method and apparatus for closely exchanging data
CN105072212B (en) To code method and to code system
CN102646175A (en) Safety certificating equipment and method based on audio signal communication

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