CN102957454B - Method and system for utilizing magnetic bidirectional communication - Google Patents

Method and system for utilizing magnetic bidirectional communication Download PDF

Info

Publication number
CN102957454B
CN102957454B CN201110248412.3A CN201110248412A CN102957454B CN 102957454 B CN102957454 B CN 102957454B CN 201110248412 A CN201110248412 A CN 201110248412A CN 102957454 B CN102957454 B CN 102957454B
Authority
CN
China
Prior art keywords
radio
magnetic
frequency
frequency unit
field signal
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
CN201110248412.3A
Other languages
Chinese (zh)
Other versions
CN102957454A (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201110248412.3A priority Critical patent/CN102957454B/en
Publication of CN102957454A publication Critical patent/CN102957454A/en
Application granted granted Critical
Publication of CN102957454B publication Critical patent/CN102957454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Near-Field Transmission Systems (AREA)

Abstract

The invention relates to a method and a system for utilizing magnetic bidirectional communication. The method includes enabling a first magnetic radio frequency device and a second magnetic radio frequency device which are in radio frequency communication to bidirectionally communicate by means of magnetic field signals before accessing to radio frequency communication, and starting radio frequency communication after determining a radio frequency communication protocol version, a radio frequency communication frequency point, address and session keys used in radio frequency communication through negotiation only when only the first magnetic radio frequency device is capable of accurately analyzing second alternative magnetic field signals fed back by the second magnetic radio frequency device and judging the identity to be legal. By the method and the system for utilizing magnetic bidirectional communication, identities of two parties can be determined through bidirectional communication by means of magnetic field signals before radio frequency communication, and further, the problem about failure in negotiation of protocol versions used in the radio frequency communication before radio frequency communication is solved, and communication safety is improved.

Description

A kind of method and system utilizing magnetic two-way communication
Technical field
The present invention relates to wireless communication field, be specifically related to a kind of method and system utilizing magnetic two-way communication.
Background technology
Along with popularizing of mobile terminal, the demand utilizing mobile terminal to carry out paying by mails becomes very urgent, have multiple implementation at present, wherein a kind of scheme is by mobile terminal SIM(Subscriber Identity Module) card or SD(Secure Digital Memory Card) integrated 2.4G radio-frequency communication module, magnetic signal magnetic induction module realize in the smart card such as card.The magnetic communication of this scheme is one-way communication, and detect the magnetic information of magnetic signal intensity and the reception of being coupled to by being contained in SIM card in mobile phone or SD card, the radio-frequency communication module activated on SIM card or SD card carries out rf data exchange.This rf data exchanges the numerous areas that is generally applied in that stored value card pays, public transport subway is swiped the card etc.
Be in the radio-frequency (RF) communication system of one-way communication in magnetic communication, card reader as the first magnetic radio-frequency unit sends magnetic information, magnetic information is received as the second magnetic radio-frequency unit be contained in the SIM card of mobile terminal or SD card, after the second magnetic radio-frequency unit receives magnetic channel information, according to disclosed transformation for mula, it is converted, generate the frequency of radio communication use, address and session key.In electronic payment process, the fail safe of system depends on the communication distance of magnetic channel to a great extent.When the first magnetic radio-frequency unit end is maliciously tampered, when strengthening its magnetic signal transmitting power, mobile terminal and this first magnetic radio-frequency unit communication distance be tampered that will cause being mounted with the second magnetic radio-frequency unit increase, thus cause distance of swiping the card to exceed the predetermined unsafe factors such as distance of swiping the card; Be that in the radio-frequency (RF) communication system of one-way communication, the communication protocol version that radio communication both sides use can not be consulted out before radio communication in addition in magnetic communication, could must determine alternately by means of extra radio frequency.
Therefore, be in the radio-frequency (RF) communication system of one-way communication in magnetic communication, ubiquity the be maliciously tampered distance that causes swiping the card of the first magnetic radio-frequency unit end magnetic signal transmitting power and is increased far away, that card punching safety reduces and radio communication both sides use communication protocol version the problem such as can not to determine before radio communication.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and system utilizing magnetic two-way communication, and to realize both sides before carrying out radio communication, that field signal can be utilized to carry out two-way communication is legal to determine one's identity, thus improves the fail safe of radio communication.
The present invention is in order to solve the problems of the technologies described above, disclose a kind of method utilizing magnetic two-way communication, the method be between described first magnetic radio-frequency unit and the second magnetic radio-frequency unit by two-way parsing alternating magnetic field signal to determine that the identity of communicating pair is legal and to carry out data interaction by radio-frequency channel.
Further, described method comprises the steps:
Described first magnetic radio-frequency unit is by the first magnetic channels transmit first alternating magnetic field signal, and described first alternating magnetic field signal comprises the first random number that the first magnetic radio-frequency unit generates and the first radio frequency protocol version information that the first magnetic radio-frequency unit is supported;
Described second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal, by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal;
Described first magnetic radio-frequency unit receives the second alternating magnetic field signal, and according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit.
Further, the first random number that described first magnetic radio-frequency unit generates generates fisrt feature code through the first magnetic radio-frequency unit conversion, and described fisrt feature code is kept in the first magnetic radio-frequency unit.
Further, the method of described " the second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal; by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal " comprises the steps:
Described second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal by the first magnetic channel;
The first radio frequency protocol version information that described second magnetic radio-frequency unit is supported by resolving to obtain the first random number and the first magnetic radio-frequency unit to the first alternating magnetic field signal, generates the second random number simultaneously;
First random number of described second magnetic radio-frequency unit by parsing, and conversion generation second feature code is carried out to the first random number;
The first radio frequency protocol version information that described second magnetic radio-frequency unit is supported by the first magnetic radio-frequency unit parsed, and the radio frequency protocol version information supported according to self and determine the second radio frequency protocol version information that both sides support when carrying out radio communication mutually;
Described second magnetic radio-frequency unit is by the second magnetic channels transmit second random number, second feature code and the second radio frequency protocol version information.
Further, the method of described " the first magnetic radio-frequency unit receives the second alternating magnetic field signal, and according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit " comprises the steps:
Described first magnetic radio-frequency unit receives the second alternating magnetic field signal by the second magnetic channel, and resolves to obtain the second random number, second feature code and the second radio frequency protocol version information to the second alternating magnetic field signal;
The second feature code parsed and fisrt feature code compare by described first magnetic radio-frequency unit, if both are equal, then show that the communications identities of the first magnetic radio-frequency unit and the second magnetic radio-frequency unit both sides is legal, continue the following step and make both sides carry out exchanges data by radio-frequency channel; Otherwise double-terminating communication;
Described first magnetic radio-frequency unit is resolved the first random number and the second random number according to identical method with the second magnetic radio-frequency unit, carries out the address of radio communication, frequency and session key to obtain both sides;
It is mutual that described first magnetic radio-frequency unit and the second magnetic radio-frequency unit carry out rf data according to the second radio frequency protocol version information determined and identical radio communication address, frequency and session key.
The invention also discloses a kind of system utilizing magnetic two-way communication, comprise the first magnetic radio-frequency unit and the second magnetic radio-frequency unit, between described first magnetic radio-frequency unit and the second magnetic radio-frequency unit by two-way parsing alternating magnetic field signal to determine that the identity of communicating pair is legal and to carry out data interaction by radio-frequency channel.
Further, described first magnetic radio-frequency unit, for by the first magnetic channels transmit first alternating magnetic field signal, described first alternating magnetic field signal comprises the first random number that the first magnetic radio-frequency unit generates and the first radio frequency protocol version information that the first magnetic radio-frequency unit is supported; And receive the second alternating magnetic field signal, according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit;
Described second magnetic radio-frequency unit, for detecting magnetic signal intensity and receiving the first alternating magnetic field signal, by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal.
Further, described first magnetic radio-frequency unit comprise at least one first primary processor, at least one for generate the first random number the first randomizer, at least one for launch the first alternating magnetic field signal the first magnetic signal transmitter module, at least one for receiving the first magnetic signal receiver module of the second alternating magnetic field signal, at least one first radio-frequency (RF) receiving and transmission module for transceiving radio frequency data, at least one is for carrying out the first encryption/decryption module of encryption and decryption to the rf data of transmitting-receiving;
Described second magnetic radio-frequency unit be included in few second primary processor, at least one for generate the second random number the second randomizer, at least one for launch the second alternating magnetic field signal the second magnetic signal transmitter module, at least one for receiving the second magnetic signal receiver module of the first alternating magnetic field signal, at least one second radio-frequency (RF) receiving and transmission module for transceiving radio frequency data, at least one is for carrying out the second encryption/decryption module of encryption and decryption to the rf data of transmitting-receiving.
Further, described first primary processor, the first randomizer and the first magnetic signal transmitter module are sequentially connected in series; Described first primary processor is connected with the first magnetic signal receiver module; Described first primary processor, the first encryption/decryption module and the first radio-frequency (RF) receiving and transmission module are sequentially connected in series;
Described second primary processor is connected with the second magnetic signal receiver module; Described second primary processor, the second randomizer and the second magnetic signal transmitter module are sequentially connected in series; Described second primary processor, the second encryption/decryption module and the second radio-frequency (RF) receiving and transmission module are sequentially connected in series.
Further, described first magnetic signal transmitter module comprises at least one coding circuit, at least one modulation circuit, at least one drive circuit and at least one low frequencies coil, and described coding circuit, modulation circuit, drive circuit and low frequencies coil are sequentially connected in series; Described second magnetic signal transmitter module comprises at least one coding circuit, at least one modulation circuit, at least one drive circuit and at least one low frequencies coil, and described coding circuit, modulation circuit, drive circuit and low frequencies coil are sequentially connected in series.
Further, described first magnetic signal receiver module comprises at least one low-frequency magnetic sensor circuit, at least one low frequency filtering and amplifying circuit and at least one low frequency demodulator circuit, and described low-frequency magnetic sensor circuit, low frequency filtering and amplifying circuit and low frequency demodulator circuit are sequentially connected in series; Described second magnetic signal receiver module comprises at least one low-frequency magnetic sensor circuit, at least one low frequency filtering and amplifying circuit and at least one thresholding and judges and demodulator circuit, and described low-frequency magnetic sensor circuit, low frequency filtering and amplifying circuit and thresholding judge and demodulator circuit is sequentially connected in series.
Further, described first radio-frequency (RF) receiving and transmission module comprises at least one radio-frequency (RF) transmit-receive circuit and a radio-frequency antenna, and described radio-frequency (RF) transmit-receive circuit is connected with radio-frequency antenna; Described second radio-frequency (RF) receiving and transmission module comprises at least one radio-frequency (RF) transmit-receive circuit and a radio-frequency antenna, and described radio-frequency (RF) transmit-receive circuit is connected with radio-frequency antenna.
The beneficial effect of employing the invention described above technical scheme is: the both sides that the present invention makes to carry out radio communication utilize field signal to carry out two-way communication before access radio communication, the RF communication protocol version used during to determine that the identity of communicating pair is legal and both sides carry out radio communication, the frequency of radio communication, address and session key, thus the fail safe improving radio communication.
Accompanying drawing explanation
Fig. 1 is the system logic structure schematic diagram utilizing magnetic two-way communication in the embodiment of the present invention;
Fig. 2 is the structural representation of the first magnetic radio-frequency unit utilizing magnetic intercommunication system in the embodiment of the present invention;
Fig. 3 is the structural representation of the second magnetic radio-frequency unit utilizing magnetic intercommunication system in the embodiment of the present invention;
Fig. 4 is the method flow diagram utilizing magnetic two-way communication in the embodiment of the present invention;
Fig. 5 is the method implementing procedure figure utilizing magnetic two-way communication in the embodiment of the present invention.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
One embodiment of the invention provides a kind of system utilizing magnetic two-way communication, described system comprises at least one first magnetic radio-frequency unit and at least one second magnetic radio-frequency unit, between described first magnetic radio-frequency unit and the second magnetic radio-frequency unit by two-way parsing alternating magnetic field signal to determine that the identity of communicating pair is legal and to carry out data interaction by radio-frequency channel.
Fig. 1 is the system logic structure schematic diagram utilizing magnetic two-way communication in the embodiment of the present invention, below in conjunction with Fig. 1, system of the present invention is described in detail, as shown in Figure 1: described system comprises the first magnetic radio-frequency unit 100 and the second magnetic radio-frequency unit 200, in embodiments of the present invention, described first magnetic radio-frequency unit 100 can be card reader part; Described second magnetic radio-frequency unit 200 can be placed in mobile terminal or be placed in SIM card, UIM card, usim card, TF card or the SD card in mobile terminal, wherein, described mobile terminal refers to transportable terminal, can be mobile phone, personal digital assistant PDA or notebook computer etc.Whether legal to determine the identity of both sides by the two-way parsing alternating magnetic field signal of magnetic channel 301,302 between described first magnetic radio-frequency unit 100 and the second magnetic radio-frequency unit 200, if the identity of both sides is legal, carry out data interaction by radio-frequency channel 303.
Fig. 2 is the structural representation of the first magnetic radio-frequency unit utilizing magnetic intercommunication system in the embodiment of the present invention, as shown in Figure 2: in the present embodiment, described first magnetic radio-frequency unit 100 comprises at least one first primary processor 102, at least one is for generating the first randomizer 101 of the first random number, at least one is for launching the first magnetic signal transmitter module 120 of the first alternating magnetic field signal, at least one is for receiving the first magnetic signal receiver module 130 of the second alternating magnetic field signal, at least one is for the first radio-frequency (RF) receiving and transmission module 140 of transceiving radio frequency data, at least one is for carrying out the first encryption/decryption module 103 of encryption and decryption to the rf data of transmitting-receiving.Wherein, described first primary processor 102, first randomizer 101 and the first magnetic signal transmitter module 120 are sequentially connected in series; Described first primary processor 102 is connected with the first magnetic signal receiver module 130; Described first primary processor 102, first encryption/decryption module 103 and the first radio-frequency (RF) receiving and transmission module 140 are sequentially connected in series.
In one particular embodiment of the present invention, described first magnetic signal transmitter module 120 comprises at least one coding circuit 121, at least one modulation circuit 122, at least one drive circuit 123 and at least one low frequencies coil 124, and described coding circuit 121, modulation circuit 122, drive circuit 123 and low frequencies coil 124 are sequentially connected in series; Described first magnetic signal receiver module 130 comprises at least one low-frequency magnetic sensor circuit 133, at least one low frequency filtering and amplifying circuit 132 and at least one low frequency demodulator circuit 131, and described low-frequency magnetic sensor circuit 133, low frequency filtering and amplifying circuit 132 and low frequency demodulator circuit 131 are sequentially connected in series; Described first radio-frequency (RF) receiving and transmission module 140 comprises at least one radio-frequency (RF) transmit-receive circuit 141 and a radio-frequency antenna 142, and described radio-frequency (RF) transmit-receive circuit 141 is connected with radio-frequency antenna 142.
Fig. 3 is the structural representation of the second magnetic radio-frequency unit utilizing magnetic intercommunication system in the embodiment of the present invention, as shown in Figure 3: in this embodiment, described second magnetic radio-frequency unit 200 is included in few second primary processor 202, at least one is for generating the second randomizer 201 of the second random number, at least one is for launching the second magnetic signal transmitter module 230 of the second alternating magnetic field signal, at least one is for receiving the second magnetic signal receiver module 220 of the first alternating magnetic field signal, at least one is for the second radio-frequency (RF) receiving and transmission module 240 of transceiving radio frequency data, at least one is for carrying out the second encryption/decryption module 203 of encryption and decryption to the rf data of transmitting-receiving.Wherein, described second primary processor 202 is connected with the second magnetic signal receiver module 230; Described second primary processor 202, second randomizer 201 and the second magnetic signal transmitter module 220 are sequentially connected in series; Described second primary processor 202, second encryption/decryption module 203 and the second radio-frequency (RF) receiving and transmission module 240 are sequentially connected in series.
In one particular embodiment of the present invention, described second magnetic signal transmitter module 230 comprises at least one coding circuit 234, at least one modulation circuit 233, at least one drive circuit 232 and at least one low frequencies coil 231, and described coding circuit 234, modulation circuit 233, drive circuit 232 and low frequencies coil 231 are sequentially connected in series; Described second magnetic signal receiver module 220 comprises at least one low-frequency magnetic sensor circuit 221, at least one low frequency filtering and amplifying circuit 222 and at least one thresholding and judges and demodulator circuit 223, and described low-frequency magnetic sensor circuit 221, low frequency filtering and amplifying circuit 222 and thresholding judge and demodulator circuit 223 is sequentially connected in series; Described second radio-frequency (RF) receiving and transmission module 240 comprises at least one radio-frequency (RF) transmit-receive circuit 242 and a radio-frequency antenna 241, and described radio-frequency (RF) transmit-receive circuit 242 is connected with radio-frequency antenna 241.
State on the invention in embodiment, described system also has following characteristics: described modulation circuit, demodulator circuit can adopt but be not limited to FSK (Frequency-shift keying) frequency deviation key control mode; Described encryption/decryption module can adopt but be not limited to 3DES algorithm; Described randomizer can adopt but be not limited to SHA1 algorithm; Described encryption/decryption module, randomizer can be built in primary processor, also can use external independently module; Described interface module can be but be not limited to UART, 7816, SDIO interface; Described magnetic channel can be but be not limited to 1k, 2k, 9k, 20k, 25k, 125k.
In this execution mode, described first magnetic radio-frequency unit 100 launches the first alternating magnetic field signal by the first magnetic signal transmitter module 120 through the first magnetic channel 301, and described first alternating magnetic field signal comprises the first random number R and the first radio frequency protocol version information Pr of supporting of the first magnetic radio-frequency unit 100 that the first randomizer 101 generates; Described second magnetic radio-frequency unit 200 detects magnetic signal intensity, the first alternating magnetic field signal is received by the first magnetic channel 301 by the second magnetic signal receiver module 220, and resolve to generate the second alternating magnetic field signal to the first alternating magnetic field signal, launch the second alternating magnetic field signal by the second magnetic signal transmitter module 230 by the second magnetic channel 302, in described second alternating magnetic field signal, carry the second random number generated by the second randomizer 201; Described first magnetic radio-frequency unit 100 detects magnetic signal intensity, and receive the second alternating magnetic field signal by the first magnetic signal receiver module 130 by the second magnetic channel 302, and according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal, to judge whether can carry out data interaction by radio-frequency channel 303 between the first radio-frequency (RF) receiving and transmission module 140 of the first magnetic radio-frequency unit 100 and the second radio-frequency (RF) receiving and transmission module 240 of the second magnetic radio-frequency unit 200.
The present invention is directed to the Verify Your Identity questions of closely concluding the business between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit in mobile communication, propose a kind of by with the first magnetic radio-frequency unit of alternating magnetic field signal transmitting and receiving function and radiofrequency signal transmission-receiving function and the corresponding near field communication system formed with the second magnetic radio-frequency unit of alternating magnetic field signal transmitting and receiving function and radiofrequency signal transmission-receiving function with it.The present invention utilizes alternating magnetic field signal that communication system to be reached to the second magnetic radio-frequency unit and the second magnetic radio-frequency unit to the two-way detection of the first magnetic radio-frequency unit by the first magnetic radio-frequency unit to carry out certification to the identity of communicating pair, only have when the first magnetic radio-frequency unit can correctly resolve the second magnetic radio-frequency unit alternating magnetic field signal and after judging that its identity is legal, just open radio communication and transaction of swiping the card, so complete magnetic two-way communication to control, reach the restriction to communication bidirectional identification, to guarantee communication security.
Another embodiment of the present invention additionally provides a kind of method utilizing magnetic two-way communication, described method is applied in the near field communication system comprising at least one first magnetic radio-frequency unit and at least one the second magnetic radio-frequency unit, the method be between described first magnetic radio-frequency unit and the second magnetic radio-frequency unit by two-way parsing alternating magnetic field signal to determine that the identity of communicating pair is legal and to carry out data interaction by radio-frequency channel.
Fig. 4 is the method flow diagram utilizing magnetic two-way communication in the embodiment of the present invention, and as shown in Figure 4, described method comprises the steps:
Step S401, described first magnetic radio-frequency unit is by the first magnetic channels transmit first alternating magnetic field signal, and described first alternating magnetic field signal comprises the first random number that the first magnetic radio-frequency unit generates and the first radio frequency protocol version information that the first magnetic radio-frequency unit is supported;
In present embodiment, described first alternating magnetic field signal comprises the first random number R and the first radio frequency protocol version information P1 of supporting of the first magnetic radio-frequency unit that the first magnetic radio-frequency unit generates, and described first magnetic radio-frequency unit is by the first magnetic channels transmit first random number R and the first radio frequency protocol version information P1; And conversion generation fisrt feature code R1 is carried out to the first random number R, fisrt feature code R1 is kept in the first magnetic radio-frequency unit simultaneously.
Step S402, described second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal, by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal;
In the present embodiment, described second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal by the first magnetic channel, and the first alternating magnetic field signal is resolved to obtain the first radio frequency protocol version information P1 that the first random number R and the first magnetic radio-frequency unit support, generate the second random number C simultaneously; Then utilize the first random number R parsed, use the transform method identical with the first magnetic radio-frequency unit, conversion is carried out to the first random number R and generates second feature code R2; Simultaneously according to the first radio frequency protocol version information P1 that the first magnetic radio-frequency unit parsed is supported, then the radio frequency protocol version information supported in conjunction with self and determine the second radio frequency protocol version information P2 that both sides are mutual supported when carrying out radio communication; Finally by the second magnetic channels transmit second random number C, second feature code R2 and the second radio frequency protocol version information P2.
Step S403, described first magnetic radio-frequency unit receives the second alternating magnetic field signal, and according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit.
In this execution mode, described first magnetic radio-frequency unit receives the second alternating magnetic field signal by the second magnetic channel, and resolves to obtain the second random number C, second feature code R2 and the second radio frequency protocol version information P2 to the second alternating magnetic field signal; Then the fisrt feature code R1 of the second feature code R2 parsed and preservation is compared, if both are equal, then illustrate that the second alternating magnetic field signal of the second magnetic radio-frequency unit transmitting is the response of the first alternating magnetic field signal to the first magnetic radio-frequency unit, then judge that the communications identities of the first magnetic radio-frequency unit and the second magnetic radio-frequency unit both sides is legal, both sides can be made to proceed exchanges data by radio-frequency channel; Whether otherwise both sides can not use radio-frequency channel to communicate, but it is legal with the identity redefining communicating pair to repeat above-mentioned steps two-way parsing alternating magnetic field signal.
When the communications identities of judgement first magnetic radio-frequency unit and the second magnetic radio-frequency unit both sides is legal, described first magnetic radio-frequency unit is resolved the first random number R and the second random number C according to identical method with the second magnetic radio-frequency unit, to obtain address Addr, frequency Freq and the session key S that both sides carry out radio communication; In the present embodiment, because the first magnetic radio-frequency unit is identical with the analytic method that the second magnetic radio-frequency unit uses, input parameter is identical (being all the first random number R and the second random number C), address Addr, the frequency Freq of the radio communication therefore obtained are also all identical with session key S.Now, it is mutual that the second radio frequency protocol version information P2 mutual supported when described first magnetic radio-frequency unit and the second magnetic radio-frequency unit carry out radio communication according to the both sides determined and identical radio communication address Addr, frequency Freq and session key S carry out rf data.
Because the present invention makes the both sides carrying out radio communication utilize field signal to carry out two-way communication before access radio communication, the RF communication protocol version used during to determine that the identity of communicating pair is legal and both sides carry out radio communication, the frequency of radio communication, address and session key, thus improve the fail safe of radio communication to a certain extent.
Describe implementing procedure of the present invention in detail below in conjunction with the method and system of the invention described above embodiment and Fig. 5, Fig. 5 is the method implementing procedure figure utilizing magnetic two-way communication in the embodiment of the present invention, as shown in Figure 5:
Step S500: the first randomizer of described first magnetic radio-frequency unit generates random number R, and carry out R converting the condition code R1 generating R, R1=fr (R), can be use 3DES cryptographic algorithm to convert in the present embodiment, by R as key, R is encrypted and obtains ciphertext, get all or part of ciphertext as R1, therefore R1 can be shorter than R, then this random number R sent by the first magnetic channel 301; Whether R and R1 is used for the magnetic channel feedback information that receives of certification first magnetic radio-frequency unit is response to the first magnetic radio-frequency unit, prevents R1 from being revealed R by intercepting and capturing simultaneously;
First primary processor of the step S501: the first magnetic radio-frequency unit is by random number R and support that the up-to-date radio frequency protocol version information P1 of the first magnetic radio-frequency unit sends to the first magnetic signal transmitter module;
First magnetic signal transmitter module of the step S502: the first magnetic radio-frequency unit sends the first alternating magnetic field signal carrying R and P1;
Step S600: the second magnetic radio-frequency unit uses the second magnetic signal receiver module detect magnetic signal intensity and receive magnetic channel data information;
Step S601: if the second magnetic radio-frequency unit detects that signal strength signal intensity is greater than set point threshold value and receives effective magnetic channel data, then parse data, prepare next step; Otherwise continue detect magnetic signal intensity and receive magnetic channel data information;
Step S602, S603: after the second magnetic radio-frequency unit receives effective magnetic channel data information (the first alternating magnetic field signal), it is resolved, obtain its random number R, and use the algorithm identical with the first magnetic radio-frequency unit, converse the condition code R2 of R, R2 will send to the first magnetic radio-frequency unit as echo message, for the feedback (condition code R2 should be equal with the condition code R1 that the first magnetic radio-frequency unit generates under normal circumstances) of the first alternating magnetic field signal whether this echo message of certification sends for the first magnetic radio-frequency unit; Second randomizer of described second magnetic radio-frequency unit generate random number C, random number C and random number R for convert radio communication and use frequency, address and session key; Second magnetic radio-frequency unit is resolved receiving effective magnetic channel data information (the first alternating magnetic field signal), obtain the up-to-date radio frequency protocol version information P1 that the first magnetic radio-frequency unit is supported, and the up-to-date radio frequency protocol version information Pc supported in conjunction with itself, use a certain negotiation mode, the system of determining is about to the radio frequency protocol version information P2 used, P2=fp (P1, Pc).In the present embodiment, described negotiation mode can be select it jointly to support and the radio frequency protocol version information of compatibility according to known both sides radio frequency protocol version information supported separately;
Step S604, S605: the second primary processor of described second magnetic radio-frequency unit by carrying random number C, condition code R2, the second alternating magnetic field signal of radio frequency protocol version information P2 that both sides support passes to the second magnetic signal transmitter module, second magnetic signal transmitter module sends the second alternating magnetic field signal to the first magnetic radio-frequency unit carrying C, R2, P2 by the second magnetic channel 302, as the response of the magnetic channel information to the first magnetic radio-frequency unit;
Step S503: the first magnetic radio-frequency unit uses the first magnetic signal receiver module detect magnetic signal intensity and receive magnetic channel information, if the magnetic channel information that the second magnetic radio-frequency unit is responded can be received, then carry out resolving the random number C obtained in this information to it, condition code R2, the radio frequency protocol version information P2 that both sides support, and condition code R2 and condition code R1 is compared (R2 and R1 is that random number R converts), if condition code R2 and R1 is equal, then prove that this echo message is to the first magnetic radio-frequency unit, namely this echo message (the second alternating magnetic field signal) is the response of the first alternating magnetic field signal to the first magnetic radio-frequency unit, if condition code R2 and R1 is unequal, then illustrate this echo message be not to the first magnetic radio-frequency unit response, now the first magnetic radio-frequency unit uses the first magnetic signal receiver module to continue detect magnetic signal intensity and receive magnetic channel information and judge it,
Step S504, S505: when described first magnetic radio-frequency unit receives the magnetic channel information of the second magnetic radio-frequency unit response, and when judging that condition code R2 and R1 is equal, the radio frequency protocol version information P2 that the both sides that the system that parses is about to use support, and using random number C and random number R as parameter, according to certain mapping mode, convert out the session key S of radio communication frequency Freq, radio communication address Addr and radio communication respectively, wherein Freq=fc (R, C), Addr=fa (R, C), S=S=fs (R, C);
Step S606, S607: same, after second magnetic radio-frequency unit sends it back the magnetic channel information (the second alternating magnetic field signal) of answering, with random number R and C for parameter, according to the mapping mode identical with the first magnetic radio-frequency unit, convert out the session key S of radio communication frequency Freq, radio communication address Addr and radio communication respectively, wherein Freq=fc (R, C), Addr=fa (R, C), S=S=fs (R, C);
After step S506, the S608: the first magnetic radio-frequency unit and the second magnetic radio-frequency unit complete magnetic signal bidirectional data exchange, after the identity of namely having carried out both sides is determined, start to carry out rf data by radio-frequency channel 303 mutual, to complete radio frequency access;
Step S507, S609: if radio frequency interaction success, the first magnetic radio-frequency unit and the second magnetic radio-frequency unit so far complete radio frequency access; Otherwise radio frequency access failure, restarts access.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. utilize a method for magnetic two-way communication, it is characterized in that, between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit by two-way parsing alternating magnetic field signal to determine that the identity of communicating pair is legal and to carry out data interaction by radio-frequency channel;
Described first magnetic radio-frequency unit is by the first magnetic channels transmit first alternating magnetic field signal, and described first alternating magnetic field signal comprises the first random number that the first magnetic radio-frequency unit generates and the first radio frequency protocol version information that the first magnetic radio-frequency unit is supported;
Described second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal, by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal;
Described first magnetic radio-frequency unit receives the second alternating magnetic field signal, and according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit;
The method of " the second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal; by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal " comprises the steps:
Described second magnetic radio-frequency unit detects magnetic signal intensity and receives the first alternating magnetic field signal by the first magnetic channel;
The first radio frequency protocol version information that described second magnetic radio-frequency unit is supported by resolving to obtain the first random number and the first magnetic radio-frequency unit to the first alternating magnetic field signal, generates the second random number simultaneously;
First random number of described second magnetic radio-frequency unit by parsing, and conversion generation second feature code is carried out to the first random number;
The first radio frequency protocol version information that described second magnetic radio-frequency unit is supported by the first magnetic radio-frequency unit parsed, and the radio frequency protocol version information supported according to self and determine the second radio frequency protocol version information that both sides support when carrying out radio communication mutually;
Described second magnetic radio-frequency unit is by the second magnetic channels transmit second random number, second feature code and the second radio frequency protocol version information.
2. method according to claim 1, is characterized in that, the first random number that described first magnetic radio-frequency unit generates generates fisrt feature code through the first magnetic radio-frequency unit conversion, and described fisrt feature code is kept in the first magnetic radio-frequency unit.
3. method according to claim 2, it is characterized in that, the method of described " the first magnetic radio-frequency unit receives the second alternating magnetic field signal, and according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit " comprises the steps:
Described first magnetic radio-frequency unit receives the second alternating magnetic field signal by the second magnetic channel, and resolves to obtain the second random number, second feature code and the second radio frequency protocol version information to the second alternating magnetic field signal;
The second feature code parsed and fisrt feature code compare by described first magnetic radio-frequency unit, if both are equal, then show that the communications identities of the first magnetic radio-frequency unit and the second magnetic radio-frequency unit both sides is legal, continue the following step and make both sides carry out exchanges data by radio-frequency channel; Otherwise double-terminating communication;
Described first magnetic radio-frequency unit is resolved the first random number and the second random number according to identical method with the second magnetic radio-frequency unit, carries out the address of radio communication, frequency and session key to obtain both sides;
It is mutual that described first magnetic radio-frequency unit and the second magnetic radio-frequency unit carry out rf data according to the second radio frequency protocol version information determined and identical radio communication address, frequency and session key.
4. one kind utilizes the system of magnetic two-way communication, it is characterized in that, comprise the first magnetic radio-frequency unit and the second magnetic radio-frequency unit, between described first magnetic radio-frequency unit and the second magnetic radio-frequency unit by two-way parsing alternating magnetic field signal to determine that the identity of communicating pair is legal and to carry out data interaction by radio-frequency channel;
Described first magnetic radio-frequency unit comprise at least one first primary processor, at least one for generate the first random number the first randomizer, at least one for launch the first alternating magnetic field signal the first magnetic signal transmitter module, at least one for receiving the first magnetic signal receiver module of the second alternating magnetic field signal, at least one first radio-frequency (RF) receiving and transmission module for transceiving radio frequency data, at least one is for carrying out the first encryption/decryption module of encryption and decryption to the rf data of transmitting-receiving;
Described second magnetic radio-frequency unit be included in few second primary processor, at least one for generate the second random number the second randomizer, at least one for launch the second alternating magnetic field signal the second magnetic signal transmitter module, at least one for receiving the second magnetic signal receiver module of the first alternating magnetic field signal, at least one second radio-frequency (RF) receiving and transmission module for transceiving radio frequency data, at least one is for carrying out the second encryption/decryption module of encryption and decryption to the rf data of transmitting-receiving;
Described first magnetic radio-frequency unit, for by the first magnetic channels transmit first alternating magnetic field signal, described first alternating magnetic field signal comprises the first random number that the first magnetic radio-frequency unit generates and the first radio frequency protocol version information that the first magnetic radio-frequency unit is supported; And receive the second alternating magnetic field signal, according to the identity of the comparative result determination communicating pair to the second alternating magnetic field signal and the first alternating magnetic field signal to judge whether can carry out data interaction by radio-frequency channel between the first magnetic radio-frequency unit and the second magnetic radio-frequency unit;
Described second magnetic radio-frequency unit, for detecting magnetic signal intensity and receiving the first alternating magnetic field signal, by resolving to generate the second alternating magnetic field signal to the first alternating magnetic field signal, and through the second magnetic channels transmit second alternating magnetic field signal;
Described first primary processor, the first randomizer and the first magnetic signal transmitter module are sequentially connected in series; Described first primary processor is connected with the first magnetic signal receiver module; Described first primary processor, the first encryption/decryption module and the first radio-frequency (RF) receiving and transmission module are sequentially connected in series;
Described second primary processor is connected with the second magnetic signal receiver module; Described second primary processor, the second randomizer and the second magnetic signal transmitter module are sequentially connected in series; Described second primary processor, the second encryption/decryption module and the second radio-frequency (RF) receiving and transmission module are sequentially connected in series.
5. system according to claim 4, it is characterized in that, described first magnetic signal transmitter module comprises at least one coding circuit, at least one modulation circuit, at least one drive circuit and at least one low frequencies coil, and described coding circuit, modulation circuit, drive circuit and low frequencies coil are sequentially connected in series; Described second magnetic signal transmitter module comprises at least one coding circuit, at least one modulation circuit, at least one drive circuit and at least one low frequencies coil, and described coding circuit, modulation circuit, drive circuit and low frequencies coil are sequentially connected in series.
6. system according to claim 4, it is characterized in that, described first magnetic signal receiver module comprises at least one low-frequency magnetic sensor circuit, at least one low frequency filtering and amplifying circuit and at least one low frequency demodulator circuit, and described low-frequency magnetic sensor circuit, low frequency filtering and amplifying circuit and low frequency demodulator circuit are sequentially connected in series; Described second magnetic signal receiver module comprises at least one low-frequency magnetic sensor circuit, at least one low frequency filtering and amplifying circuit and at least one thresholding and judges and demodulator circuit, and described low-frequency magnetic sensor circuit, low frequency filtering and amplifying circuit and thresholding judge and demodulator circuit is sequentially connected in series.
7. system according to claim 4, is characterized in that, described first radio-frequency (RF) receiving and transmission module comprises at least one radio-frequency (RF) transmit-receive circuit and a radio-frequency antenna, and described radio-frequency (RF) transmit-receive circuit is connected with radio-frequency antenna; Described second radio-frequency (RF) receiving and transmission module comprises at least one radio-frequency (RF) transmit-receive circuit and a radio-frequency antenna, and described radio-frequency (RF) transmit-receive circuit is connected with radio-frequency antenna.
CN201110248412.3A 2011-08-26 2011-08-26 Method and system for utilizing magnetic bidirectional communication Active CN102957454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110248412.3A CN102957454B (en) 2011-08-26 2011-08-26 Method and system for utilizing magnetic bidirectional communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110248412.3A CN102957454B (en) 2011-08-26 2011-08-26 Method and system for utilizing magnetic bidirectional communication

Publications (2)

Publication Number Publication Date
CN102957454A CN102957454A (en) 2013-03-06
CN102957454B true CN102957454B (en) 2014-12-17

Family

ID=47765768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110248412.3A Active CN102957454B (en) 2011-08-26 2011-08-26 Method and system for utilizing magnetic bidirectional communication

Country Status (1)

Country Link
CN (1) CN102957454B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301479A (en) * 2016-08-01 2017-01-04 武汉工程大学 The method of reseptance of a kind of data and system
US10139934B2 (en) * 2016-12-22 2018-11-27 Microsoft Technology Licensing, Llc Magnetic tracker dual mode
DE102018212957B3 (en) 2018-08-02 2020-01-02 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. TRANSFER OF DATA FROM ONE USER TERMINAL TO ANOTHER DEVICE

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523423A (en) * 2006-08-11 2009-09-02 Ask股份有限公司 Security peripheral integrated with a contactless object of secure document type with radiofrequency device
WO2009110381A1 (en) * 2008-03-03 2009-09-11 株式会社村田製作所 Wireless ic device and wireless communication system
CN101944959A (en) * 2010-07-01 2011-01-12 北京泛在电子标签技术有限公司 Wireless short distance communication method and system based on distance control
CN201707679U (en) * 2009-12-09 2011-01-12 国民技术股份有限公司 Radiofrequency device, radiofrequency card reader and relative communication system
CN102096836A (en) * 2009-12-09 2011-06-15 国民技术股份有限公司 Radio frequency device, radio frequency card reader and related communication system and communication method
CN102142868A (en) * 2010-01-29 2011-08-03 国民技术股份有限公司 Near field communication method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630584B2 (en) * 2008-11-26 2014-01-14 Nationz Technologies Inc. RF SIM card, card reader, and communication method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523423A (en) * 2006-08-11 2009-09-02 Ask股份有限公司 Security peripheral integrated with a contactless object of secure document type with radiofrequency device
WO2009110381A1 (en) * 2008-03-03 2009-09-11 株式会社村田製作所 Wireless ic device and wireless communication system
CN201707679U (en) * 2009-12-09 2011-01-12 国民技术股份有限公司 Radiofrequency device, radiofrequency card reader and relative communication system
CN102096836A (en) * 2009-12-09 2011-06-15 国民技术股份有限公司 Radio frequency device, radio frequency card reader and related communication system and communication method
CN102142868A (en) * 2010-01-29 2011-08-03 国民技术股份有限公司 Near field communication method and system
CN101944959A (en) * 2010-07-01 2011-01-12 北京泛在电子标签技术有限公司 Wireless short distance communication method and system based on distance control

Also Published As

Publication number Publication date
CN102957454A (en) 2013-03-06

Similar Documents

Publication Publication Date Title
CN104063644B (en) The method of fingerprint recognition, terminal and server
US8666313B2 (en) Pairing devices using data exchanged in an out-of-band channel
CN102223234B (en) Electronic signature system and method based on audio communication
US20110028091A1 (en) Method and system for near-field wireless device pairing
US20100281261A1 (en) Device and method for near field communications using audio transducers
US8656027B2 (en) Wireless communication system, wireless communication apparatus, method for disconnection process thereof, and storage medium
EP1871135A2 (en) Address privacy in short-range wireless communication
EP2406712B1 (en) Method for transmitting an nfc application and computer device
EP3058792B1 (en) Wireless protocol message conversion method and corresponding device
KR20150014316A (en) Image forming apparatus and near field communication (NFC) device supporting function of NFC and method for performing authentication thereof
CN102768725B (en) A kind of radio-frequency unit and communication means
CN115242368B (en) Method and device for adjusting phase, near field communication equipment and storage medium
CN102917357B (en) A kind of authentication method and device
CN102957454B (en) Method and system for utilizing magnetic bidirectional communication
CN104660307A (en) Encrypted wireless communication system based on near field magnetic relay and user soft reset
EP1763936A1 (en) Method of choosing one of a multitude of data sets being registered with a device and corresponding device
CN104240080A (en) Realization method for mobile payment and device thereof
CN103187998A (en) Near field communication system and near field communication method
CN103731828B (en) A kind of terminal unit and method for electronic certificate authentication
Kumar Near field communication
CN201465128U (en) Identity card reading device
CN102624680A (en) Mobile payment system employing combined cipher and mobile payment method thereof
US20110294422A1 (en) Method and apparatuses for transmitting information by means of far field and short range communication
JPH11120307A (en) Communication equipment
EP2360987B1 (en) Device and method for coupling a cellular telecommunication device to an NFC terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant