Summary of the invention
The present invention is just for the technical matters existed in prior art, a kind of I.D. network decoding system based on mobile phone NFC is provided, this decode system achieves and is connected in a Security Encryption module and SAM module by multiple service terminal by internet, achieve the function that multiple service terminal shares a Security Encryption module, greatly reduce purchase cost and the upgrade cost of enterprise.When concrete engineering is implemented, can according to the scope of service point, the quantity of flexible configuration service terminal and Security Encryption module, ensures effective realization of business.In software function, the customer information of reading can effectively process and classify by business software as requested.
To achieve these goals, the technical solution used in the present invention is, a kind of I.D. network decoding system based on mobile phone NFC, it is characterized in that, described decode system comprises I.D. decoding terminal, service terminal, and described service terminal is set to mobile phone, and NFC function supported by mobile phone, support ISO-14443B agreement, described mobile phone carries out data information transfer by wireless network and I.D. decoding terminal.
As a modification of the present invention, described decode system also comprises decoding server, and described mobile phone carries out data information transfer by wireless network and decoding server.
As a modification of the present invention, described wireless communication module is integrated with two kinds of wireless communication modes, is WIFI and wireless data communications respectively.Smart mobile phone can be selected wherein a kind of at long-range connection I.D. decoding terminal.After setting up wireless connections, between smart mobile phone and I.D. decoding terminal, control command and communication data can be transmitted.
As a modification of the present invention, described I.D. decoding terminal comprises load-equalizing switch and decoding central apparatus, described decoding central apparatus comprises, main circuit board, line collecting plate, decoding device, power module, power board, data bus, supporting bracket, heat dissipation equipment, work indicating section, control chip; Wherein load-equalizing switch distributes for the task balance of multiple decoding central apparatus, and the connection response that equipment mainly completes the same IP of TCP and port is distributed with being connected, and like this, when using same IP and port, rear end can configure multiple decoding device;
Main circuit board is connected with decoding device, for the treatment of will the information of decoding be needed to send decoding device to, then by decoded letter
Breath is encrypted and is sent to reader end by network;
Line collecting plate is connected with main circuit board, is connected for giving the power supply of main circuit board, the state display of decoding device, network interface connector.And the power light display of equipment;
Decoding device is connected with main circuit board, for the decoding of card information;
Power module is connected with line collecting plate, for giving the power supply of whole equipment;
Power board is connected with mainboard, for the power supply of Long-distance Control decoding device.When decoding device occurs abnormal, by long-range, power-off restarting instruction is issued to power supply mainboard;
Data bus is the bus be connected with line collecting plate by main circuit board;
Supporting bracket is used for fixing main circuit board and decoding device;
Heat dissipation equipment is connected with power module, for controlling the temperature of whole equipment, controlling whole equipment and can normally work in a temperature range;
Work indicating equipment is used for the state display of network interface connection, the state of decoder module shows, the state display of working power, and the power switch of equipment;
Control chip connects circuit board, for the Energy control of decoder module.
Based on an I.D. network decoding systematic difference method of mobile phone NFC, it is characterized in that, described method is specific as follows:
1) utilize mobile phone A ndroid system to the support of NFC, open " android.permission.NFC ", " android.hardware.nfc " usage license, use NfcAdapter, carry out data manipulation to mobile phone NFC, data interaction is carried out in a binary fashion;
After mobile phone NFC opens, namely NFC radio frequency is in looks for card-like state, when there being card close, after NFC detects card, triggering Card Reader application program, starting Card Reader;
Read routine is recombinated to the card data read, is encrypted and be transferred to far-end decoded information server, cryptographic algorithm adopts fixing Key and random number array mode, make the encrypted result of each transmission not identical, mobile phone is returned to after server data encryption, read routine receives data and deciphers, then data decryption is recombinated, thus it is mutual to complete with card.
After decoding terminates, reading result is passed back by far-end decoded information server, pass part back at least to comprise: the Word message stored in card and pictorial information, Word message directly carries out format conversion decoding and identifiable design, pictorial information carries out transcoding in this locality, convert the pictorial information that wavelet algorithm compresses to discernible bmp data, and be supplied to interface use.
Read routine can be supplied to upper level applications with interface mode and call, and interface mode comprises .so file and jar file.Upper level applications only need by .so file and jar file be integrated enters, and compiling produces apk and can use.
2) when needs are to when sticking into line operate, order is sent by the control program operated on smart mobile phone, by NFC Flexible Interface Card analysis order, when needs obtain smart card information, NFC module reads smart card information, in Card Reader process, use contactless card reading method, first the order of reading smart card is produced, convert radiofrequency signal to by NFC module antenna and send to smart card, smart card returns the information of storage inside to NFC module by radiofrequency signal, after signal transacting is carried out in the conversion of NFC module antenna and NFC module, obtain data message; Again according to the information processing method preset, first the information partly or entirely read be encrypted, then be transmitted to the netscape messaging server Netscape of far-end by smart mobile phone; Information after process is returned by smart mobile phone and is sent to NFC reading application program by server; NFC reads application program and carries out next step action according to returning results, until smart card reading task finally completes.
Relative to prior art, advantage of the present invention is as follows, 1) whole decode system cost is lower, and purchase cost is cheap, because only need install decoding device in decoding server, each peripheral terminals only needs to use mobile phone, and therefore, cost reduces greatly.Can 90% be reduced costs; 2) upgrade cost is low, and the Ministry of Public Security promotes three generation IDs, existing secondary certificate reader in the future, must again buy up-to-date identity card reader in the future, cause great waste.Because demoder all on the server, so the code reader of each sales counter, without the need to changing, only needs the demoder on replacing, upgrade server, can reduce costs 90%; 3) this system achieves full channel coverage, for without computer, planless peripheral terminals, only need be connected by mobile phone and just can realize I.D. identification, reading.Greatly reduce the enforcement difficulty of the full channel coverage of system of real name; 4) this system is easy to use, plug and play, only needs on the server of operator company's Intranet, install decoding device and namely can be the whole province's service, be convenient to the unified management of company of company of province.For the contact staff of peripheral terminals, only mobile phone need be used.Therefore promotion and implementation difficulty is very little, is equal to standalone version identity card reader; 5) " online database contrast identify " in the past, adopt OCR technical limit spacing information by mobile phone photograph I.D., there is huge leak: the identity information None-identified true and false, I.D. itself also cannot the true and false; Sam decoder module by the Ministry of Public Security is only had for false I.D., " deck I.D. ", just can accomplish real identification.Any the most accurately, the most effective I.D. reading/identification equipment all can not lack the Ministry of Public Security authorize Security Encryption module (SAM module); The distinguishing true from false of each I.D., data decode, whole process is a process for a mutually checking, and wherein have more than 40 times data handshakes processes, the agreement that these processes use is the cryptographic protocol of Ministry of Public Security SAM module, does not decipher; The dll that data result is provided by the Ministry of Public Security through decoding server equipment end decodes, and needs the authentication file of SAM module simultaneously, otherwise cannot decode; Decoded data can be delivered to designated destination as requested, and acquiescence is sent to card-reading terminal place computer/mobile phone, and the security of this technical scheme improves greatly.
Embodiment
In order to deepen the understanding of the present invention and understanding, below in conjunction with accompanying drawing, the invention will be further described and introduce.
embodiment 1:as shown in Figure 1, Figure 2, a kind of I.D. network decoding system based on mobile phone NFC, described decode system comprises I.D. decoding terminal, service terminal, described service terminal is set to mobile phone, and described mobile phone and I.D. are read client and carried out data information transfer by wireless network and I.D. decoding terminal; Described service terminal needs to support NFC function and ISO-14443B agreement, and the far-distance communication service program run on smart mobile phone, described decode system also comprises decoding server, and described mobile phone carries out data information transfer by wireless network and decoding server.
embodiment 2:as a modification of the present invention, described wireless communication module is integrated with two kinds of wireless communication modes, is WIFI and wireless data communications respectively.Smart mobile phone can be selected wherein a kind of at long-range connection I.D. decoding terminal.After setting up wireless connections, between smart mobile phone and I.D. decoding terminal, control command and communication data can be transmitted.
Utilize the power of smart mobile phone as parametric controller, the work of application program controlling smart card information remote reader of user by smart mobile phone runs.
embodiment 3:see Fig. 4, as a modification of the present invention, described I.D. decoding terminal comprises load-equalizing switch and decoding central apparatus, described decoding central apparatus comprises, main circuit board, line collecting plate, decoding device, power module, power board, data bus, supporting bracket, heat dissipation equipment, work indicating section, control chip; Wherein load-equalizing switch distributes for the task balance of multiple decoding central apparatus, and the connection response that equipment mainly completes the same IP of TCP and port is distributed with being connected, and like this, when using same IP and port, rear end can configure multiple decoding device; Main circuit board is connected with decoding device, for the treatment of the information of decoding will be needed to send decoding device to, more decoded information is encrypted and is sent to reader end by network; Line collecting plate is connected with main circuit board, is connected for giving the power supply of main circuit board, the state display of decoding device, network interface connector.And the power light display of equipment; Decoding device is connected with main circuit board, for the decoding of card information; Power module is connected with line collecting plate, for giving the power supply of whole equipment; Power board is connected with mainboard, for the power supply of Long-distance Control decoding device.When decoding device occurs abnormal, by long-range, power-off restarting instruction is issued to power supply mainboard; Data bus is the bus be connected with line collecting plate by main circuit board; Supporting bracket is used for fixing main circuit board and decoding device; Heat dissipation equipment is connected with power module, for controlling the temperature of whole equipment, controlling whole equipment and can normally work in a temperature range; Work indicating equipment is used for the state display of network interface connection, the state of decoder module shows, the state display of working power, and the power switch of equipment; Control chip connects circuit board, for the Energy control of decoder module.
Integrated maximum 24 SAM decoding devices on server, the control mainboard of each SAM decoding device is connected with load-equalizing switch by RJ45 port, the front end of load-equalizing switch is connected with internet or job network, be supplied to the unified IP address of client and port numbers, client device carries out device access by unified IP address and port numbers.When there being client-access, load-equalizing switch controls the service condition of mainboard according to rear end SAM equipment, the SAM equipment of free time is controlled mainboard and carries out connection forwarding, makes visit data arrive SAM decoding device and controls mainboard.
The control mainboard of SAM decoding device is responsible for the work such as SAM decoding device is enabled, communicated, closedown, and complete the communication with client, after receiving client-access data, control mainboard chip is started working, receipt decoding data, and triggers SAM equipment and start working, the decoded data request received is communicated with SAM by specified protocol, result is delivered to control chip by SAM, and result is sent it back client by control chip, completes decode procedure.
embodiment 4:see Fig. 2, Fig. 3, based on the I.D. network decoding systematic difference method of mobile phone NFC, utilize mobile phone A ndroid system to the support of NFC, open " android.permission.NFC ", " android.hardware.nfc " usage license, use NfcAdapter, carry out data manipulation to mobile phone NFC, data interaction is carried out in a binary fashion.After mobile phone NFC opens, namely NFC radio frequency is in looks for card-like state, when there being card close, after NFC detects card, triggering Card Reader application program, starting Card Reader.Read routine is recombinated to the card data read, is encrypted and be transferred to far-end decoded information server, and cryptographic algorithm adopts fixing Key and random number array mode, makes the encrypted result of each transmission not identical.Return to mobile phone after server data encryption, read routine receives data and also deciphers, and is then recombinated by data decryption, thus it is mutual to complete with card.After decoding terminates, reading result is passed back by far-end decoded information server, pass part back at least to comprise: the Word message stored in card and pictorial information, Word message directly carries out format conversion decoding and identifiable design, pictorial information carries out transcoding in this locality, convert the pictorial information that wavelet algorithm compresses to discernible bmp data, and be supplied to interface use.Read routine can be supplied to upper level applications with interface mode and call, and interface mode comprises .so file and jar file.Upper level applications only need by .so file and jar file be integrated enters, and compiling produces apk and can use.
See Fig. 3, when needs are to when sticking into line operate, order is sent by the control program operated on smart mobile phone, by NFC Flexible Interface Card analysis order, when needs obtain smart card information, NFC module reads smart card information, in Card Reader process, use contactless card reading method, first the order of reading smart card is produced, convert radiofrequency signal to by NFC module antenna and send to smart card, smart card returns the information of storage inside to NFC module by radiofrequency signal, data message is obtained after signal transacting is carried out in the conversion of NFC module antenna and NFC module.Again according to the information processing method preset, first the information partly or entirely read be encrypted, then be transmitted to the netscape messaging server Netscape of far-end by smart mobile phone.Information after process is returned by smart mobile phone and is sent to NFC reading application program by server; NFC reads application program and carries out next step action according to returning results, until smart card reading task finally completes.
NFC application program is encrypted the information that the server that reading task obtains returns according to the disposal route pre-set, the process such as parsing, then be shown to user with good user interface after the result transmission user program operated on mobile phone is carried out graphical treatment.
At least one in technical characteristic described in embodiment 2,3 and embodiment 1 can also be combined to form new embodiment by the present invention.
It should be noted that above-described embodiment, be not used for limiting protection scope of the present invention, equivalents done on the basis of technique scheme or the alternative scope all falling into the claims in the present invention and protect.