A kind of method of near-field communicationTechnical field
The present invention relates to a kind of method of near-field communication.
Background technology
At present, near-field communication is widely used in every field such as mobile computing, communication, logistics, thus realizes the various functions such as the automatic identification of equipment, quick payment.But, realize functions such as the payment related to, safety verifications, safety just seems very important, common near field communication means coverage can reach 20cm, this distance is very near, during the operation that this makes carrying out paying, safety verification etc. is very responsive, be easy to the phenomenon causing information to be ravesdropping.Have a strong impact on the property safety of dealer.
Summary of the invention
The object of the invention is to the shortcoming overcoming prior art, provide a kind of and enhance the difficulty of the communication information, add the method for the near-field communication of the fail safe of near-field communication.
Object of the present invention is achieved through the following technical solutions: a kind of method of near-field communication, and it comprises the following steps:
The reception of S1, information, magnetic field intensity information is sent to analysis program by the intensity of magnetometer measures surrounding magnetic field, analysis program goes out the identity information of opposite end by the information analysis such as change, power, feature in magnetic field, and be handed over to terminal and use, thus achieve the reception of information;
The transmission of S2, information, terminal sends Data Concurrent and gives analysis program, and analysis program converts data to magnetic field coding and magnetic field coding is sent to magnetic field generation device, and magnetic field generation device produces magnetic field information to be sent, thus achieves the transmission of information.
The present invention has the following advantages: the present invention significantly increases the difficulty stealing the communication information, and add the fail safe using near-field communication, meanwhile, the present invention allows the existing magnetometer of equipment utilization to carry out the operations such as device discovery, can effectively utilize existing hardware.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of receives information in the present invention;
Fig. 2 is the schematic diagram that in the present invention, information sends;
In figure, 1-magnetometer, 2-analysis program, 3-magnetic field generation device, 4-magnetic field, 5-terminal.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described, and protection scope of the present invention is not limited to the following stated:
As depicted in figs. 1 and 2, a kind of method of near-field communication, it comprises the following steps:
The reception of S1, information, measure the intensity of surrounding magnetic field by magnetometer 1 and magnetic field intensity information is sent to analysis program 2, analysis program 2 goes out the identity information of opposite end by the information analysis such as change, power, feature in magnetic field, and be handed over to terminal 5 and use, thus achieve the reception of information;
The transmission of S2, information, terminal 5 sends Data Concurrent and gives analysis program 2, analysis program 2 converts data to magnetic field coding and magnetic field coding is sent to magnetic field generation device 3, can produce the variation magnetic field that controls by program, produce magnetic field effective range be less than 10cm, magnetic field generation device 3 produces magnetic field information to be sent, thus achieves the transmission of information.Therefore, the method controls the distance of near field with letter, significantly improve the difficulty stealing the communication information, add the fail safe using near-field communication, meanwhile, the present invention allows the existing magnetometer of equipment utilization to carry out the operations such as device discovery, effectively can utilize existing hardware, this invention simultaneously can also help the number of chips reducing terminal equipment, contributes to the further portability of mobile device.
The above is only the preferred embodiment of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.