Background technology
Wireless near field communication (NFC) technology, developed by radio-frequency (RF) identification (RFID) technology and the Technology Integration that interconnects, combining induction card reader, induction type card and point-to-point function on one chip can be identified and exchanges data with compatible equipment in short distance.
REID (RFID) is an emerging automatic identification technology of rising in recent years.RFID utilizes RF-wise to carry out contactless two-way communication, thereby realizes the identification to object, and the related data that collects is transmitted by wireless technology is long-range.The characteristics that RFID has distance of reading (several meters to tens meters), penetration capacity strong (can see through the direct reading information of packing case), antipollution, efficient height (can process simultaneously a plurality of labels), contains much information.
2.4G radio-frequency (RF) identification (RFID) technology is applied to the mobile payment field, such as mobile phone mobile payment field.Because mobile phone, if the NFC of 13.56MHZ is applied in the mobile phone mobile payment, so existing user uses the mobile-phone payment business must be replaced by special mobile phone, and this special mobile phone must add the coil of 13.56MHZ.And this shortcoming just can be effectively avoided in the appearance of 2.4GHz radio-frequency (RF) identification scheme, at first the volume of 2.4G radio-frequency antenna is little, can be integrated into easily in the smart card, as be integrated into and embed in the SIM card that smart card module is arranged or the Micro SD card that embeds smart card module, secondly the wavelength of 2.4G is very short, and the electromagnetism wave energy is along the slit of mobile phone or working of plastics reflective advancing back and forth.But mobile phone has adopted the generation that can be accompanied by a problem after the 2.4G radio-frequency (RF) identification scheme: well-known, 2.4G the transmitting boundary of radio-frequency antenna can several meters to tens meters, and 0-10cm is the on-site payment Secure Transaction distance of extensively approving, if therefore do not do Distance Judgment, the 2.4G radio-frequency (RF) identification is not suitable for doing the on-site payment scene and uses.RSSI (Received Signal Strength Indication, received signal strength indicator) technology is by the distance of the strong and weak measured signal point of the signal that receives with acceptance point, and then positions a kind of location technology of calculating according to corresponding data.
As from the foregoing, the communication distance that replaces the 13.56M the short distance wireless communication technology to bring owing to the 2.4G REID in the mobile payment field in the prior art is not allowed manageable problem.
Summary of the invention
The object of the present invention is to provide a kind of intelligent expansion card and based near field communication control system and the method for RSSI, be intended to solve the communication distance that in the mobile payment field, replaces the 13.56M the short distance wireless communication technology to bring owing to the 2.4G REID that exists in the prior art and do not allow manageable problem.
The present invention is achieved in that a kind of intelligent expansion card, and described intelligent expansion card comprises: control module and the memory module that is connected with described control module, smart card module, external interface and 2.4G module; Described 2.4G module comprises 2.4G antenna and rssi measurement chip; Set in advance a RSSI threshold value, and described RSSI threshold value is saved in the control module in the described intelligent expansion card; When the close 2.4G card-reading apparatus of intelligent expansion card, described intelligent expansion card constantly sends described RSSI threshold value to described 2.4G card-reading apparatus, rssi measurement chip in the described 2.4G card-reading apparatus is measured the RSSI value in real time, and the described RSSI value of measuring is in real time transferred in the main control module in the 2.4G card-reading apparatus; Described main control module compares the described RSSI value of measuring in real time and the RSSI threshold value that receives, when the described RSSI value of measuring in real time during greater than the RSSI threshold value that receives, activates described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.
Another object of the present invention is to provide a kind of near field communication control system based on RSSI, described system comprises: the handheld device and the 2.4G card-reading apparatus that contain intelligent expansion card as described above, described 2.4G card-reading apparatus comprises main control module and 2.4G module, and described 2.4G module comprises 2.4G antenna and rssi measurement chip; Described handheld device and the wireless connections of 2.4G card-reading apparatus; Described intelligent expansion card accesses in the described handheld device by the intelligent expansion card slot of handheld device, and the external interface of described intelligent expansion card slot and described intelligent expansion card is complementary; Set in advance a RSSI threshold value, and described RSSI threshold value is saved in the control module in the described intelligent expansion card; When the close 2.4G card-reading apparatus of handheld device, described intelligent expansion card constantly sends described RSSI threshold value to described 2.4G card-reading apparatus, rssi measurement chip in the described 2.4G card-reading apparatus is measured the RSSI value in real time, and the described RSSI value of measuring in real time transferred in the main control module, described main control module compares the described RSSI value of measuring in real time and the RSSI threshold value that receives, when the described RSSI value of measuring in real time during greater than the RSSI threshold value that receives, activate described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.
Another object of the present invention is to provide a kind of short-range communication control method based on RSSI, said method comprising the steps of:
Set in advance a RSSI threshold value, and described RSSI threshold value is saved in the control module in the described intelligent expansion card;
When the close 2.4G card-reading apparatus of handheld device, described intelligent expansion card constantly sends described RSSI threshold value to described 2.4G card-reading apparatus, rssi measurement chip in the described 2.4G card-reading apparatus is measured the RSSI value in real time, and the described RSSI value of measuring is in real time transferred in the main control module in the 2.4G card-reading apparatus;
Described main control module compares the described RSSI value of measuring in real time and the RSSI threshold value that receives, when the described RSSI value of measuring in real time during greater than the RSSI threshold value that receives, activates described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.
In the present invention, compare by the handheld device that will measure in real time and the RSSI value between the 2.4G card-reading apparatus and RSSI threshold value, when the described RSSI value of measuring in real time during greater than the RSSI threshold value, activate described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.Thereby solved the communication distance that in the mobile payment field, replaces the 13.56M the short distance wireless communication technology to bring owing to the 2.4G REID that exists in the prior art and do not allowed manageable problem.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
See also Fig. 1, the structure of the intelligent expansion card that provides for the embodiment of the invention for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Described intelligent expansion card comprises: control module 10 and the memory module 11 that is connected with described control module 10, smart card module 12, external interface 13 and 2.4G module 14.Described 2.4G module comprises 2.4G antenna and rssi measurement chip.
See also Fig. 2, the structure based on the near field communication control system of RSSI for the embodiment of the invention provides for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Described near field communication control system based on RSSI comprises: the handheld device and the 2.4G card-reading apparatus that contain described intelligent expansion card.Described 2.4G card-reading apparatus mainly comprises main control module and 2.4G module, and described 2.4G module comprises 2.4G antenna and rssi measurement chip.Described handheld device and the wireless connections of 2.4G card-reading apparatus are specially: the intelligent expansion card in the described handheld device is set up wireless connections by 2.4G antenna and 2.4G card-reading apparatus.Described intelligent expansion card accesses in the described handheld device by the intelligent expansion card slot of handheld device, and the external interface of described intelligent expansion card slot and described intelligent expansion card is complementary.
Described intelligent expansion card can be for being integrated with the SIM card of 2.4G module and smart card module; Perhaps can be for being integrated with the Micro SD card of 2.4G module and smart card module; Or other are integrated with the various cards of 2.4G module and smart card module, at this not in order to limit the present invention.Described handheld device can be other equipment that are fit to such as mobile phone, personal digital assistant (PDA), digital playback equipment, at this not in order to limit the present invention.
In embodiments of the present invention, being integrated with the software that the control module 10 in the intelligent expansion card of 2.4G module moves is to utilize the APDU agreement to communicate by letter with described handheld device.
The operation principle of described near field communication control system based on RSSI is as follows: set in advance a RSSI threshold value, and described RSSI threshold value is saved in the control module 10 in the described intelligent expansion card.When the close 2.4G card-reading apparatus of handheld device, described intelligent expansion card constantly sends described RSSI threshold value to described 2.4G card-reading apparatus, rssi measurement chip in the described 2.4G card-reading apparatus is measured the RSSI value in real time, and the described RSSI value of measuring in real time transferred in the main control module in the described 2.4G card-reading apparatus, wherein, the described RSSI value of measuring in real time is the distance between handheld device and the 2.4G card-reading apparatus, described main control module compares the described RSSI value of measuring in real time and the RSSI threshold value that receives, when the described RSSI value of measuring in real time during greater than the RSSI threshold value that receives, activate described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.
See also Fig. 3, be the realization flow based on the short-range communication control method of RSSI that the embodiment of the invention provides, it may further comprise the steps:
In step S101, set in advance a RSSI threshold value, and described RSSI threshold value is saved in the control module in the described intelligent expansion card;
In embodiments of the present invention, described RSSI threshold value determines that by the transmitted power of described 2.4G antenna described transmitted power increases, and then corresponding RSSI threshold value also increases, otherwise, then reduce.
In step S102, when the close 2.4G card-reading apparatus of handheld device, described intelligent expansion card constantly sends described RSSI threshold value to described 2.4G card-reading apparatus, rssi measurement chip in the described 2.4G card-reading apparatus is measured the RSSI value in real time, and the described RSSI value of measuring in real time transferred in the main control module in the 2.4G card-reading apparatus, wherein, the described RSSI value of measuring in real time is the distance between handheld device and the 2.4G card-reading apparatus;
In embodiments of the present invention, the distance between described RSSI value and handheld device and the 2.4G card-reading apparatus is logarithmic relationship, and the distance between described handheld device and the 2.4G card-reading apparatus is nearer, and the RSSI value is larger, and described RSSI value changes faster.Described RSSI value is also relevant with the transmitting power of antenna, and described transmitting power increases, and described RSSI value also increases, otherwise, then reduce.
In step S103, described main control module compares the described RSSI value of measuring in real time and the RSSI threshold value that receives, when the described RSSI value of measuring in real time during greater than the RSSI threshold value that receives, activate described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.
In embodiments of the present invention, different because of shell mechanism and the making material of various handheld devices, cause its shield effectiveness to signal also not identical.Therefore, when all handheld devices are arranged identical RSSI threshold value, then arrange for the 2.4G module in the different handheld devices that different transmitted powers compensates such as, the handheld device good to shield effectiveness, increase the transmitting power of 2.4G antenna, the handheld device poor to shield effectiveness then can reduce the transmitting power of described 2.4G antenna.
In the embodiment of the invention, described RSSI threshold value also can be set to according to different handheld devices different values, the handheld device good such as shield effectiveness, and its corresponding RSSI threshold value is little, the handheld device that shield effectiveness is poor, its corresponding RSSI threshold value is large.
In embodiments of the present invention, the step that described intelligent expansion card and 2.4G card-reading apparatus are concluded the business is specially:
In step S201, the 2.4G card-reading apparatus distributes a unique frequency range and ID number to handheld device;
In embodiments of the present invention, described 2.4G card-reading apparatus is that the handheld device that contains intelligent expansion card of different activating sale is distributed different frequency range values and corresponding ID number; During transaction, described 2.4G card-reading apparatus poll sends the transaction order to ID number of corresponding band and correspondence.
In step S202, described handheld device receives frequency range that the 2.4G card-reading apparatus distributes and ID number; Described handheld device with described frequency range detect whether can receive that described 2.4G card-reading apparatus sends set up data link order or idle state command;
In step S203, described 2.4G card-reading apparatus sends to described handheld device and sets up data link order or idle state command;
In step S204, in Preset Time, if when the 2.4G card-reading apparatus is not received the response that is ready to the receive data designated command that handheld device is returned or negative response instruction; Then described 2.4G card-reading apparatus judges that described handheld device has broken away from trading range, and deletes described frequency range and ID number, then, turns back to step S201.
In step S205, in Preset Time, if the 2.4G card-reading apparatus have that the handheld device received returns be ready to the response of receive data designated command the time; Then described 2.4G card-reading apparatus sends APDU (Application Protocol Data Unit, Application Protocol Data Unit) data to described handheld device;
In step S206, described handheld device receives the APDU data in Preset Time, sends the smart card response message then with in the smart card module of described APDU transfer of data to the intelligent expansion card, and to the 2.4G card-reading apparatus.
In sum, the embodiment of the invention compares by the handheld device that will measure in real time and the RSSI value between the 2.4G card-reading apparatus and RSSI threshold value, when the described RSSI value of measuring in real time during greater than the RSSI threshold value, activate described intelligent expansion card and the 2.4G card-reading apparatus is concluded the business.Thereby solved the communication distance that in the mobile payment field, replaces the 13.56M the short distance wireless communication technology to bring owing to the 2.4G REID that exists in the prior art and do not allowed manageable problem.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.