[summary of the invention]
The invention provides a kind of mobile-payment system and card reader thereof, Mobile payment terminal and method for measuring distance, can effectively measure the distance between Mobile payment terminal and the card reader, and then effectively control wireless communication distance between the two.
The invention provides a kind of mobile-payment system, comprise Mobile payment terminal and card reader.Be provided with sound wave generation module, sonic detection module and main control module in one in Mobile payment terminal and the card reader, sound wave generation module another emission sound wave in Mobile payment terminal and the card reader wherein, the sonic detection module is for detection of the sound wave of another reflection in Mobile payment terminal and card reader, and main control module is determined distance between card reader and the Mobile payment terminal according to the transmission time of sound wave.
According to one preferred embodiment of the present invention, sound wave generation module, sonic detection module and main control module are arranged on the card reader.
According to one preferred embodiment of the present invention, sound wave generation module, sonic detection module and main control module are arranged on the Mobile payment terminal.
According to one preferred embodiment of the present invention, Mobile payment terminal further comprises the RFID-SIM card, and main control module is arranged in the RFID-SIM card.
The invention provides a kind of card reader of mobile-payment system.Be provided with sound wave generation module, sonic detection module and main control module in the card reader, wherein the sound wave generation module is launched sound wave to Mobile payment terminal, the sonic detection module is for detection of the sound wave through Mobile payment terminal reflection, and main control module is determined distance between card reader and the Mobile payment terminal according to the transmission time of sound wave.
The invention provides a kind of Mobile payment terminal of mobile-payment system.Be provided with sound wave generation module, sonic detection module and main control module in the Mobile payment terminal, wherein the sound wave generation module is launched sound wave to card reader, the sonic detection module is for detection of the sound wave through card reader reflection, and main control module is determined distance between card reader and the Mobile payment terminal according to the transmission time of sound wave.
According to one preferred embodiment of the present invention, Mobile payment terminal further comprises the RFID-SIM card, and main control module is arranged in the RFID-SIM card.
The invention provides a kind of method for measuring distance of mobile-payment system, comprising: launch sound wave by one in Mobile payment terminal and the card reader to another; Detection is through the sound wave of another reflection; Determine distance between card reader and the Mobile payment terminal according to the transmission time of sound wave.
By the way, carry out distance test between Mobile payment terminal and the card reader according to the transmission time of sound wave, more accurately Distance Judgment can be provided, and then the communication distance of control mobile payment.
[embodiment]
Below in conjunction with drawings and Examples invention is elaborated.
In the following embodiments, to describe the present invention as an example of RFID-SIM card and RFID card reader example, but those skilled in the art can expect applying the present invention in other mobile-payment system that need to measure distance between portable terminal and the card reader fully.
As shown in Figure 1, Fig. 1 is the schematic block diagram of the first embodiment of a kind of mobile-payment system of the present invention.Mobile-payment system of the present invention comprises card reader 10 and Mobile payment terminal 20.
As shown in Figure 1, in the present embodiment, Mobile payment terminal 20 is preferably mobile phone.Be provided with sound wave generation module 21 and RFID-SIM card 22 in the Mobile payment terminal 20.Sound wave generation module 21 can be the loudspeaker module that Mobile payment terminal 20 carries, and the sound wave that changes for generation of the intensity transmission range, for example increase of the intensity transmission range of sound wave and strengthening, or the increase of the intensity transmission range of sound wave and decaying.In a preferred embodiment, can utilize RFID-SIM card 22 to control sound wave generation module 21 and produce sound wave.In other embodiments, also can utilize other main control modules to control this sound wave generation module 21.Sound wave specifically transmits with the form of sound wave pulse.The intensity of this sound wave will keep known variation relation with transmission range, and namely for a certain specific transmission range, the intensity of sound wave is known and different from other transmission range.General, have certain funtcional relationship between the intensity of sound wave and the transmission range.
As shown in Figure 1, in the present embodiment, be provided with sonic detection module 11, main control module 12 and memory module 13 in the card reader 10.Sonic detection module 11 is used for receiving the sound wave that the sound wave generation module 21 in the Mobile payment terminal 20 produces, and detects the intensity of the sound wave that receives.Store the variation relation of the intensity transmission range of sound wave in the memory module 13.For example, memory module 13 can store the functional relation of the intensity of sound wave and transmission range or represent light intensity and transmission range between the question blank of variation relation.
The variation relation of storing in the intensity of the sound wave that main control module 12 detects according to sonic detection module 11 and the memory module 13 is determined the distance between card reader 10 and the Mobile payment terminal 20.For example, main control module 12 can solve the predefined functional relation of intensity substitution of the sound wave that detects corresponding transmission range value, perhaps the intensity according to the sound wave that detects inquires corresponding transmission range value in predefined question blank, and this transmission range value is the distance between card reader 10 and the Mobile payment terminal 20.
Further, the card reader 10 interior first communication modules 14 that further arrange.At this moment, main control module 12 judges that further whether distance between card reader 10 and the Mobile payment terminal 20 is less than threshold distance, if less than threshold distance, then main control module 12 is further controlled first communication module 14 and is paid communication with the second communication module 23 in the RFID-SIM card 22.
As shown in Figure 2, Fig. 2 is the schematic block diagram of the second embodiment of a kind of mobile-payment system of the present invention.Mobile-payment system of the present invention comprises card reader 30 and Mobile payment terminal 40.
As shown in Figure 2, in the present embodiment, be provided with sound wave generation module 31 and second communication module 32 in the card reader 30.The sound wave that sound wave generation module 31 changes for generation of the intensity transmission range, for example increase of the intensity transmission range of sound wave and strengthening, or the increase of the intensity transmission range of sound wave and decaying.Sound wave specifically transmits with the form of sound wave pulse.The intensity of this sound wave will keep known variation relation with transmission range, and namely for a certain specific transmission range, the intensity of sound wave is known and different from other transmission range.General, have certain funtcional relationship between the intensity of sound wave and the transmission range.
As shown in Figure 2, in the present embodiment, Mobile payment terminal 40 is preferably mobile phone.Be provided with sonic detection module 41, main control module 43, memory module 44 and first communication module 45 in the Mobile payment terminal 40.In the present embodiment, main control module 43, memory module 44 and first communication module 45.In other embodiments, main control module 43, memory module 44 and first communication module 45 also can be arranged at RFID-SIM card 42 outsides.
Sonic detection module 41 is used for receiving the sound wave that the sound wave generation module 31 in the Mobile payment terminal 30 produces, and detects the intensity of the sound wave that receives.Store the variation relation of the intensity transmission range of sound wave in the memory module 44.For example, memory module 44 can store the functional relation of the intensity of sound wave and transmission range or represent light intensity and transmission range between the question blank of variation relation.
The variation relation of storing in the intensity of the sound wave that main control module 43 detects according to sonic detection module 41 and the memory module 44 is determined the distance between card reader 30 and the Mobile payment terminal 40.For example, main control module 43 can solve the predefined functional relation of intensity substitution of the sound wave that detects corresponding transmission range value, perhaps the intensity according to the sound wave that detects inquires corresponding transmission range value in predefined question blank, and this transmission range value is the distance between card reader 30 and the Mobile payment terminal 40.
Further, main control module 43 judges that further whether distance between card reader 30 and the Mobile payment terminal 40 is less than threshold distance, if less than threshold distance, then main control module 43 is further controlled first communication module 45 and is paid communication with the second communication module 32 in the card reader 30.
As shown in Figure 3, Fig. 3 is the schematic flow sheet of the method for measuring distance of Fig. 1 or mobile-payment system shown in Figure 2.
In step 50, send sound wave by one in Mobile payment terminal and the card reader.The intensity transmission range of this sound wave changes.The for example increase of the intensity transmission range of sound wave and strengthening, or the increase of the intensity transmission range of sound wave and decaying.This sound wave specifically transmits with the form of sound wave pulse.The intensity of this sound wave will keep known variation relation with transmission range, and namely for a certain specific transmission range, the intensity of sound wave is known and different from other transmission range.General, have certain funtcional relationship between the intensity of sound wave and the transmission range.
In step 51, the intensity of the sound wave that is received by another detection in Mobile payment terminal and the card reader.
In step 52, determine distance between Mobile payment terminal and the card reader according to the variation relation of the intensity of the intensity that detects and sound wave and transmission range.For example, the predefined functional relation of intensity substitution of the sound wave that detects is solved corresponding transmission range value, perhaps the intensity according to the sound wave that detects inquires corresponding transmission range value in predefined question blank, and this transmission range value is the distance between card reader and the Mobile payment terminal.
Further, whether can judge distance between Mobile payment terminal and the card reader less than threshold value, if less than threshold value, control Mobile payment terminal and card reader are paid communication.
As shown in Figure 4, Fig. 4 is the schematic block diagram of the 3rd embodiment of a kind of mobile-payment system of the present invention.Mobile-payment system of the present invention comprises card reader 60 and Mobile payment terminal 70.
As shown in Figure 4, in the present embodiment, Mobile payment terminal 70 is preferably mobile phone.Be provided with sound wave generation module 71, sonic detection module 72, main control module 74 and first communication module 75 in the Mobile payment terminal 70.In the present embodiment, main control module 74 and first communication module 75 are arranged in the RFID-SIM card 73.In other embodiments, main control module 74 and first communication module 75 also can be arranged at RFID-SIM card 73 outsides.
Sound wave generation module 71 is used for to card reader 60 emission sound waves.This sound wave specifically transmits with the form of sound wave pulse.The transmission time of this sound wave will keep known variation relation with transmission range, namely can calculate corresponding transmission range for a certain specific transmission time.General, the transmission speed of sound wave is 340 meter per seconds, but owing to reasons such as media, so slightly difference may appear in speed, therefore will preset the funtcional relationship between the transmission range of transmission time of sound wave and sound wave.In the present embodiment, produce sound wave by main control module 74 control sound wave generation modules 71.
Sonic detection module 72 is for detection of the sound wave through card reader 60 reflections.Main control module 74 transmission times according to sound wave are determined the distance between Mobile payment terminal 70 and the card reader 60.For example, main control module 74 is brought the transmission time of sound wave into predefined functional relation, obtains the transmission range of sound wave.Half of this transmission range is the distance between Mobile payment terminal 70 and the card reader 60.
As shown in Figure 4, in the present embodiment, be provided with second communication module 61 in the card reader 60.Whether main control module 74 further judges distance between Mobile payment terminal 70 and the card reader 60 less than threshold value, if less than threshold value, 74 of main control modules are further controlled first communication modules 75 and second communication module 61 and paid communication.
As shown in Figure 5, Fig. 5 is the schematic block diagram of the 4th embodiment of a kind of mobile-payment system of the present invention.Mobile-payment system of the present invention comprises card reader 80 and Mobile payment terminal 90.
As shown in Figure 5, in the present embodiment, be provided with sound wave generation module 81, sonic detection module 82, main control module 83 and first communication module 84 in the card reader 80.Sound wave generation module 81 is used for to Mobile payment terminal 90 emission sound waves, and Mobile payment terminal 90 is preferably mobile phone.This sound wave specifically transmits with the form of sound wave pulse.The transmission time of this sound wave will keep known variation relation with transmission range, namely can calculate corresponding transmission range for a certain specific transmission time.General, the transmission speed of sound wave is 340 meter per seconds, but owing to reasons such as media, so slightly difference may appear in speed, therefore will preset the funtcional relationship between the transmission range of transmission time of sound wave and sound wave.In the present embodiment, but produce sound waves by main control module 83 control sound wave generation modules 81.
Sonic detection module 82 is for detection of the sound wave through Mobile payment terminal 90 reflections.Main control module 83 transmission times according to sound wave are determined the distance between Mobile payment terminal 90 and the card reader 80.For example, main control module 83 is brought the transmission time of sound wave into predefined functional relation, obtains the transmission range of sound wave.Half of this transmission range is the distance between Mobile payment terminal 90 and the card reader 80.
As shown in Figure 5, in the present embodiment, Mobile payment terminal 90 is provided with second communication module 93.Second communication module 93 is preferably disposed in the RFID-SIM card 92.The main control module 83 of card reader 80 judges that further whether distance between Mobile payment terminal 90 and the card reader 80 is less than threshold value, if less than threshold value, 83 of main control modules are further controlled first communication module 84 and are paid communication with the second communication module 93 of Mobile payment terminal 90.
As shown in Figure 6, Fig. 6 is the schematic flow sheet of the method for measuring distance of Fig. 4 or mobile-payment system shown in Figure 5.
In step 100, send sound wave to another by one in Mobile payment terminal and the card reader, and reflected by another.The transmission time of this sound wave will keep known variation relation with transmission range, namely can calculate corresponding transmission range for a certain specific transmission time.General, the transmission speed of sound wave is 340 meter per seconds, but owing to reasons such as media, so slightly difference may appear in speed, therefore will preset the funtcional relationship between the transmission range of transmission time of sound wave and sound wave.
In step 101, another sound wave that reflects in Mobile payment terminal and card reader that is received by a detection in Mobile payment terminal and the card reader.
In step 102, determine distance between Mobile payment terminal and the card reader according to the sonic transmissions time that detects.For example, bring the transmission time of sound wave into predefined functional relation, obtain the transmission range of sound wave.Half of this transmission range is the distance between Mobile payment terminal and the card reader.
As shown in Figure 7, Fig. 7 is the schematic block diagram of the 5th embodiment of a kind of mobile-payment system of the present invention.Mobile-payment system of the present invention comprises card reader 110 and Mobile payment terminal 120.
As shown in Figure 7, in the present embodiment, be provided with sound wave generation module 111 in the card reader 110.The sound wave that sound wave generation module 111 changes for generation of the intensity transmission range, for example increase of the intensity transmission range of sound wave and decaying.This sound wave specifically transmits with the form of sound wave pulse.The intensity of this sound wave will keep known variation relation with transmission range, and namely for a certain specific transmission range, the intensity of sound wave is known and different from other transmission range.
As shown in Figure 7, in the present embodiment, Mobile payment terminal 120 is preferably mobile phone.Mobile payment terminal 120 comprises RFID-SIM card 121 and sonic detection module 122.RFID-SIM card 121 comprises main control module 123 and first communication module 124.Sonic detection module 122 is used for receiving the sound wave that the sound wave generation module 111 in the card reader 110 produces, and detects the intensity of the sound wave that receives.Main control module 123 compares intensity and the threshold value of the sound wave that detects, and according to communicating by letter between comparative result control Mobile payment terminal 120 and the card reader 110.For example, if the increase of the intensity transmission range of sound wave and decaying, then main control module 123 is in the intensity of the sound wave that detects during greater than threshold value, pays between control Mobile payment terminal 120 and the card reader 110 and communicates by letter.
As shown in Figure 7, in the present embodiment, the intensity that the card reader 110 interior second communication modules 112 that further are provided with, main control module 123 are judged the sound wave that detects is during greater than threshold value, then main control module 123 further control first communication modules 124 communicate with second communication module 112.
As shown in Figure 8, Fig. 8 is the schematic block diagram of the 6th embodiment of a kind of mobile-payment system of the present invention.Mobile-payment system of the present invention comprises card reader 130 and Mobile payment terminal 140.
As shown in Figure 8, in the present embodiment, Mobile payment terminal 140 is preferably mobile phone.Be provided with sound wave generation module 141 in the Mobile payment terminal 140.The sound wave that sound wave generation module 141 changes for generation of the intensity transmission range, for example increase of the intensity transmission range of sound wave and decaying.This sound wave specifically transmits with the form of sound wave pulse.The intensity of this sound wave will keep known variation relation with transmission range, and namely for a certain specific transmission range, the intensity of sound wave is known and different from other transmission range.
As shown in Figure 8, in the present embodiment, card reader 130 comprises sonic detection module 132, main control module 133 and first communication module 134.Sonic detection module 132 is used for receiving the sound wave that the sound wave generation module 141 in the Mobile payment terminal 140 produces, and detects the intensity of the sound wave that receives.Main control module 133 compares intensity and the threshold value of the sound wave that detects, and according to communicating by letter between comparative result control Mobile payment terminal 140 and the card reader 130.For example, if the increase of the intensity transmission range of sound wave and decaying, then main control module 133 is in the intensity of the sound wave that detects during greater than threshold value, pays between control Mobile payment terminal 140 and the card reader 130 and communicates by letter.
As shown in Figure 8, in the present embodiment, Mobile payment terminal 140 further is provided with second communication module 143.Second communication module 143 is preferably disposed in the RFID-SIM card 142.The intensity that the main control module 133 of card reader 130 is judged the sound wave that detects is during greater than threshold value, then main control module 133 further control first communication modules 134 communicate with second communication module 143.
As shown in Figure 9, Fig. 9 is the process flow diagram of the communication control method of Fig. 7 or mobile-payment system shown in Figure 8.
In step 150, receive another sound wave that sends by one in Mobile payment terminal and the card reader.The sound wave that the intensity transmission range of this sound wave changes, for example increase of the intensity transmission range of sound wave and decaying.This sound wave specifically transmits with the form of sound wave pulse.The intensity of this sound wave will keep known variation relation with transmission range, and namely for a certain specific transmission range, the intensity of sound wave is known and different from other transmission range.
In step 151, detect the intensity of the sound wave that receives.
In step 153, intensity and the threshold value of the sound wave that detects compared.
In step 154, according to communicating by letter between comparative result control Mobile payment terminal and the card reader.If the increase of the intensity transmission range of sound wave and decaying, when the intensity of the sound wave that detects greater than threshold value, then control Mobile payment terminal and card reader communicates.
By the way, carry out distance test between Mobile payment terminal and the card reader by sound wave, more accurately Distance Judgment can be provided, and then the communication distance of control mobile payment, user experience quality promoted.
In the above-described embodiments, only exemplary description has been carried out in invention, but those skilled in the art can carry out various modifications to invention after reading present patent application in the situation of the spirit and scope that do not break away from invention.