Smart card reader trunking
Technical field
The application is related to technical field of intelligent card, more particularly to smart card reader trunking.
Background technology
In the current information age, smart card plays highly important role, such as identity in the life of people
Card, access card, bank card, phonecard, mass transit card, mess card, member card etc. are all closely bound up with daily life.
Smart card mainly has contact or contactless two kinds.Wherein, it is contactless to refer to utilize RFID (Radio
Frequency Identification, non-contact radio-frequency identification) technology or NFC (Near Field Communication,
Near-field communication) technology smart card with control device end without directly contacting with regard to the purpose of data communication can be reached.And it is therein
Contact refer to using the hard contact of ISO7816 standards, i.e., 8 IC-card (Integrated Circuit Card, it is integrated
Circuit card) purpose for reaching data communication is directly contacted by hard contact with control device end.
Wherein, either contact or contactless smart card, are required for by matched control device,
Operation could be written and read to it.This control device is typically mounted at fixed place, such as the recharge point of mass transit card, uses
Family needs that to the place of this fixation its smart card could be written and read operation, including queries the balance, supplements with money.For convenience
User is written and read to smart card, and portable smart card control equipment, such as POS have also been provided the user in the prior art
(Pointofsales, point of sale) etc., using this equipment, the place that operation is written and read to smart card is no longer influenced by limitation,
But, this equipment has very prominent specificity feature, and domestic consumer typically will not specially purchase this special control and set
Standby, therefore, the use to this portable control is general at present to be also only limitted to the express delivery that market or support are cashed on delivery
The scenes such as business, this portable control is provided the user by businessman or Courier Service business etc..
In a word, in the prior art, if user needs to be written and read operation to the data in its smart card, all not enough
It is convenient.Therefore, how operation more easily to be written and read to the data in smart card, as in the urgent need to those skilled in the art
Technical problem to be solved.
The content of the invention
This application provides smart card reader trunking, it can realize and smart card is read by mobile terminal device
Write operation, uses smart card more convenient.
This application provides following scheme:
A kind of smart card reader trunking, including:Sense part, read-write operation chip and wireless communication module;
The wireless communication module is connected with the read-write operation chip, the read-write operation chip and the sensing part
Connection;
Wherein, needing by the mobile terminal device provided with corresponding wireless communication module to the number in the smart card
During according to being written and read operation, the smart card is positioned over to the specific bit of the trunking according to the position of the sensing part
Put place;
When the wireless communication module receives the command word that the mobile terminal device is sent, by the command word according to
The form conversion of the read-write operation chip, and be transferred to the read-write operation chip, so that the read-write operation chip is by institute
Command word is stated with the form of the smart card standard chip, the smart card standard chip is transferred to by the sensing part;
The read-write operation chip receives the response letter that the smart card standard chip is returned by the sensing part
Breath, is transferred to the wireless communication module, the response message is sent to by the wireless communication module by the response message
The mobile terminal device;
Wherein, the mobile terminal device is used to carry out data transmission between intelligent card server.
A kind of method for being written and read operation to smart card with smart card reader trunking, the smart card reader relaying
Equipment includes, read-write operation chip, sensing part and wireless communication module, the wireless communication module and the read-write operation
Chip is connected, and the read-write operation chip is connected with the sensing part;
The wireless communication module proceeds as follows step:
Receive the command word that the mobile terminal device provided with corresponding wireless communication module is transmitted;
The command word is changed according to the form of the read-write operation chip, the read-write operation chip is transferred to, with
Toilet states read-write operation chip and the command word is transferred into smart card standard chip.
A kind of smart card reader trunking, including wireless communication module, smart card neck, built in the smart card neck
There is hard contact, the wireless communication module is connected with the hard contact;
Needing to enter the data in the smart card by the mobile terminal device provided with corresponding wireless communication module
During row read-write operation, the hard contact is contacted with contact intelligent card standard chips;
When the wireless communication module receives the command word that the mobile terminal device is sent, according to contact intelligent card
Reading and writing data standard, by the command word enter row format conversion, and by the hard contact by after conversion command word pass
It is defeated by the standard chips of the contact intelligent card;
When the wireless communication module receives the response message that the standard chips are returned by the hard contact, press
According to contact intelligent card reading and writing data standard the response message is parsed after be transferred to the mobile terminal device.
A kind of method for being written and read operation to smart card with smart card reader trunking, the read-write equipment for smart card
Including, wireless communication module, smart card neck, the smart card neck are built-in with hard contact, the wireless communication module with
The hard contact connection, is proceeded as follows by the radio operation module:
Receive the command word that the mobile terminal device provided with corresponding wireless communication module is transmitted;
According to the reading and writing data standard of contact intelligent card, the command word is entered into row format conversion, and by after conversion
Command word is transferred to the contact intelligent card standard chips, so that the command word for sending the mobile terminal device is transferred to
Institute's contact states smart card standard chip.
The specific embodiment provided according to the application, this application discloses following technique effect:
By the embodiment of the present application, a kind of smart card reader can be provided the user after configuration in equipment, the trunking
There are wireless communication module and sensing part, when user needs to be written and read operation to its smart card, smart card can be put
The ad-hoc location in trunking is put, can just the mobile terminal device with wireless communication modules such as bluetooths be utilized (such as afterwards
Mobile phone etc.) operation is written and read to smart card, and no longer need to use special service equipment to be written and read, it is convenient and swift.
Certainly, any product for implementing the application it is not absolutely required to while reaching all the above advantage.
Brief description of the drawings
, below will be to institute in embodiment in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the application
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of smart card reader operation trunking structural representation that the embodiment of the present application is provided;
Fig. 2 is a kind of smart card that the embodiment of the present application is provided;
Fig. 3 is another smart card that the embodiment of the present application is provided;
Fig. 4 be the embodiment of the present application provide the first operation is written and read to smart card with smart card reader trunking
Method;
Fig. 5 is another smart card reader operation trunking structural representation that the embodiment of the present application is provided;
Fig. 6 be the embodiment of the present application provide operation is written and read to smart card with smart card reader trunking second
Method.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the application, the every other embodiment that those of ordinary skill in the art are obtained belongs to the application protection
Scope.
There is provided a kind of smart card reader trunking in embodiments of the present invention.The trunking can include sensing
Part, the sensing part is used when can be used for carrying out data transmission with smart card, primarily serves the effect for building information channel.
The trunking can also include wireless communication module, and the wireless communication module can be used for smart card reader trunking and tool
The mobile terminal device for having corresponding wireless communication module is used when carrying out data transmission, and wherein mobile terminal device can also be visited
Intelligent card server is asked, and obtains operating right and command information.Therefore passed through using mobile terminal device in smart card reader
Operation just can be written and read to intelligent card chip after equipment, such as using the mobile phone with correspondence wireless communication module to intelligence
Card is supplemented with money, and operation can be written and read to smart card by being not limited solely to special equipment, use smart card more convenient.
Specific implementation is introduced as follows below.
Embodiment one
Shown in Figure 1, Fig. 1 is the structural representation of smart card reader trunking provided in an embodiment of the present invention, main
To include sensing part 101, read-write operation chip 102, wireless communication module 103.Wherein read-write operation chip 102 is first defeated
Enter/output pin is connected with the input/output pin of wireless communication module 103 respectively.Second in read-write operation chip 102 is defeated
Enter/output pin respectively with sense part 101 input/output pin be connected.So sensing part 101 can be by data transfer
To read-write operation chip 102, read-write operation chip transfers data to wireless communication module 103 again.Same wireless communication module
103 can also transfer data to read-write operation chip 102, and read-write operation chip 102 transfers data to sensing part 101 again
On.
The purpose of the present embodiment is to realize to be written and read smart card operation by the mobile terminal device of non-dedicated property,
Here the mobile terminal device of non-dedicated property can be the mobile phone with wireless communication function, tablet personal computer, notebook electricity
Brain etc..Wherein, the present embodiment and it is indirect intelligent card chip is written and read, but in intelligent card chip and mobile terminal device
Between the transmission of reading writing information is realized by this trunking of the present embodiment.That is, the main work(of the trunking
Two stages can mainly be included:One stage is that data communication is carried out between smart card, and another stage is and mobile terminal
Equipment carries out data communication.Data communication is carried out wherein between smart card mainly by sensing part 101 and read-write chip 102
To realize;Data communication between mobile terminal device relies primarily on wireless communication module 103 to realize.
The concrete function of the wherein each part of smart card reader trunking is as follows.
Sensing part 101 therein is mainly used in identification intelligent card, and builds with smart card the passage of data transfer.Sensing
Part 101 can include hard contact, can also include coil.
Here hard contact is mainly used when needing to be written and read operation to contact intelligent card.Contact therein
Formula smart card can typically use ISO7816 standards, such as the smart card shown in Fig. 2 is contact intelligent card, including with eight
The chip 201 and card body 202 of individual hard contact, chip 201 are arranged in card body 202.And smart card reader is relayed
Hard contact in equipment can include three, respectively eight hard contacts of intelligent card corresponding (C1C2C3C4C5C6C7C8, C4 and
C8 be designed as in the future retain use) in tri- contacts of C2-RST, C3-CLK, C7-I/O.Gold in smart card reader trunking
Category contact is only needed directly to contact with the hard contact on chip 201, and read-write operation chip 102 just can be written and read to smart card
Operation.In order that smart card contact with sensing part 101 it is more abundant, smart card reader trunking can also include smart card
Neck, sets hard contact in neck, when smart card inserts neck, the hard contact in neck just with intelligent card chip
On hard contact contact.
, can be by smart card when needing to be written and read operation to contact intelligent card by smart card reader trunking
It is inserted into neck, hard contact contact corresponding with contact intelligent card standard chips, at this moment smart card standard core
The passage carried out data transmission between piece and trunking read-write operation chip 102 is connected.Read-write operation chip 102 just can be by
Command word is transferred to smart card standard chip by hard contact;And return information can also be passed through metal by smart card standard chip
Contact is transferred to read-write operation chip 102.It the present embodiment is applied to contact intelligent card piece, facilitate docking
The use of touch smart card.
Here coil is mainly used when needing to be written and read operation to contact type intelligent card.Wherein contactless intelligence
Can card can using RFID technique or NFC technique smart card, typically standard coil is equipped with this smart card, by this
Standard coil is planted, contact type intelligent card is with control device end without directly contacting with regard to that can reach data communication purpose.For example, figure
3 show a kind of structure of contact type intelligent card, wherein, standard chips 301, and standard are included in card body 303
Coil 302.Therefore, the sensing part in smart card reader trunking can be realized by the form of coil, pass through the line
The coupling between standard coil in circle and contact type intelligent card, plays the purpose of information transfer.
Wherein, can be with when needing to be written and read operation to contact type intelligent card by smart card reader trunking
Contact type intelligent card is placed on the region that can sense of sensing member coils, at this time sensing member coils just can be with
Coupling phenomenon occurs for the standard coil on smart card, and read-write operation chip 102 carries the electromagnetism of command word by coil transmissions
Ripple, by coupling, the standard coil on smart card produces the electromagnetic wave for carrying command word and command word is transferred into smart card
Standard chips;And smart card standard chip can also carry the electromagnetism of response message by the standard coil transmitting on smart card
Ripple, by coupling, sensing member coils can receive the electromagnetic wave for carrying response message, and response message is transferred into reading
Write operation chip 102.It the present embodiment is applied to contact type intelligent card, facilitate to contact type intelligent card
Use.
By wireless communication module 103 can not the information transmitted of Direct Recognition smart card standard chip, same intelligence
Card standard chips can not the information transmitted of Direct Recognition wireless communication module 103, it is possible to increases read-write operation core
Piece 102 is used for realizing the communication between wireless communication module 103 and intelligent card chip.The read-write operation chip 102 can be
There is the chip being had been carried out in technology, this chip has the function that operation is written and read to smart card standard chip.Wherein when
When read-write operation chip 102 receives the command word of the transmission of wireless communication module 103, command word is converted into smart card standard core
The form that piece can be recognized, intelligent card chip is transferred to by sensing part 101;On the other hand, read-write operation chip 102 is received
After the response message transmitted to intelligent card chip, the response message is returned into wireless communication module 103.Pass through above-mentioned technology hand
Section realizes the data transfer between wireless communication module 103 and smart card standard chip.Wireless communication module 103 therein is led
It is used between mobile terminal device carry out information exchange, wireless communication module 103 here can include bluetooth module, also
WiFi module, etc. can be included.
Wherein, bluetooth module is mainly used in carrying out data transmission with the mobile terminal device with bluetooth transceiver therein, should
Mobile terminal device can be the mobile phone with Bluetooth function, tablet personal computer, notebook computer etc..Can in existing Bluetooth technology
To have common bluetooth, bluetooth 4.0 and higher version, due to the work of the bluetooth and common bluetooth of bluetooth 4.0 and more highest version
Make principle different, be described in detail separately below.
Wherein, due to needing pairing to connect between common bluetooth, therefore, in order to realize matching somebody with somebody between common bluetooth
It is right, input module and display can also be included on trunking.The input module is used for the password inputted required for pairing, should
Display is used for the password for showing input equipment input.When needing to be written and read operation to smart card, set by mobile terminal
The neighbouring equipment of standby Bluetooth function search, chooses that the bluetooth in the embodiment sends pairing request and to generate pairing close in list
Code, bluetooth module is received after pairing request by input module input pairing password, successful matching.Then mobile terminal device
Smart card can be just written and read by Bluetooth function and operated.
Wherein bluetooth module can also be the bluetooth of bluetooth 4.0 or more highest version.Compared to common bluetooth, bluetooth 4.0 or
The bluetooth of more highest version without being matched, but can broadcast service information, the information on services includes the MAC of bluetooth module
(Media Access Control, medium access control) address etc., and then make the bluetooth 4.0 or higher that receives information on services
The bluetooth of version is attached thereto.Therefore, this mode is more suitable for the embodiment of the present application.Specifically, when carrying out data communication,
Bluetooth module in trunking periodically can outwards broadcast bluetooth service information, and mobile terminal device receives bluetooth mould
It is connected after the information on services of block broadcast with bluetooth module, mobile terminal device just can be by corresponding bluetooth transceiver therein with blue
Tooth module carries out data communication.Certainly, in this manner, it is also required to be equipped with bluetooth 4.0 or higher on mobile terminal device
The bluetooth module of version.
When wireless communication module is WiFi module, WiFi module and the difference of above-mentioned bluetooth module function here only exist
It is mainly used in carrying out data transmission with the mobile terminal device with corresponding WiFi R-T units in WiFi module, movement here
Terminal device can be the mobile phone with WiFi function, flat board, notebook computer etc., so as to expand the use field of smart card
Scape, facilitates the use to smart card.Mobile terminal device.
In a particular application, power module can also be included in smart card reader trunking.The power module is used to give
Wireless communication module is powered, so that wireless communication module normally works, that is, transmitting/receiving wireless signal etc..In order to save power supply
The electricity of module, in a preferred embodiment, can also include energy supply control module, the electricity in smart card reader trunking
Source control module can realize with the mode such as switching, for the break-make that controls electric power source pair of module wireless communication module to power, when
When needing the wireless communication module to work, control power supply is powered, on the contrary then power off.So holding state can be reduced well to be disappeared
The electricity of consumption, so as to increase battery electric power storage or change interval time, facilitates the use of trunking.
In a word, by the embodiment of the present application, a trunking can be provided the user, is configured with wireless in the trunking
Communication module and sensing part, when user needs to be written and read operation to its smart card, during can smart card be placed on
After the ad-hoc location of equipment, the mobile terminal device (such as mobile phone) with wireless communication modules such as bluetooths can be just utilized afterwards
Operation is written and read to smart card, and no longer needs to use special service equipment to be written and read, it is convenient and swift.
Embodiment two
In above-described embodiment one, because existing radio operation module can not be carried out directly with read-write operation chip
Data transfer.To solve this problem, one kind is provided in the present embodiment smart card carried out with smart card reader trunking
The method of read-write operation.Specific implementation is described in detail below.
When being written and read operation to smart card with smart card reader trunking, the smart card trunking can include
Read-write operation chip, sensing part and wireless communication module, wherein wireless communication module are connected with read-write operation chip, are sensed
Part is connected with read-write operation chip.Wherein, as shown in figure 4, wireless communication module can carry out following steps:
401:Receive the command word that the mobile terminal device provided with corresponding wireless communication module is transmitted;
402:Command word is changed according to the form of the read-write operation chip, smart card reader operation chip is transferred to,
So that the command word is transferred to smart card standard chip by the read-write operation chip.
So read-write operation chip just can receive and identify the command word that wireless communication module is transmitted, so as to realize shifting
Dynamic terminal device transmission command word gives smart card standard chip.
In addition, in a particular application in order to obtain the response message that smart card standard chip is returned, wireless communication module is also
Following steps can be carried out.
Receive the response message of the read-write operation chip transmission;
Form according to the read-write operation chip is parsed to the response message, and by the response message after parsing
It is transferred to the mobile terminal device.
Can thus realize can carry out data communication between wireless communication module and read-write operation chip.
Embodiment three
In the scheme that previous embodiment one is introduced, mainly by way of read-write operation chip transitional information form, reach
The purpose that smart card standard chip is communicated with wireless communication module.That is, being realized by way of " hardware "
Read-write to standard chips.In the embodiment three, for contact intelligent card, in order to realize the read-write behaviour to its standard chips
Make, read-write operation method directly can also be write in wireless communication module, that is, be the equal of by way of " software " come
Realize the read-write to standard chips.So, read-write operation chip can be saved in whole trunking, is fabricated to so as to reduce
This.Concrete implementation mode is described in detail below.
Shown in Figure 5, Fig. 5 is another smart card reader trunking structural representation that the embodiment of the present invention three is provided
Figure, mainly includes wireless communication module 502, contact intelligent card hard contact 501 and smart card neck.Wherein, channel radio
News module 502 is connected with hard contact 501, and hard contact 501 is placed in smart card neck.
The present embodiment can be written and read operation to the contact intelligent card with contact.When needing that smart card is read
During write operation, smart card is inserted in smart card neck, the hard contact on smart card is contacted with hard contact 501.At this moment
The data transmission channel waited between wireless communication module 502 and intelligent card chip builds completion.Mobile terminal device wireless telecommunications
Module 502 can carry out data transmission with the standard chips on smart card.At this moment just can be by entering on the mobile terminal device
Row operates to realize the read-write to smart card.Comprise the following steps that:
Mobile terminal device sends the wireless signal for carrying command word to the wireless of smart card by wireless communication module
Communication module 502;
The command word received is entered row format according to the read-write standard of smart card standard chip and turned by wireless communication module 502
Change, and the command word after conversion is transferred to smart card standard chip by hard contact 501.
Intelligent card chip is operated according to the command word received, generates response message, and response message is passed through into gold
Category contact 501 is transferred to wireless communication module 502;
Wireless communication module 502 carries out received response message according to the reading and writing data standard of contact intelligent card
Parsing, and the response message after parsing is sent on the bluetooth equipment of mobile terminal device;
Mobile terminal device receives response message, so just completes the read-write operation to smart card.
Wireless communication module 502 in the present embodiment can include bluetooth module, can also include WiFi module.Bluetooth mould
The corresponding mobile terminal device of block equally has bluetooth module, and the corresponding mobile terminal device of WiFi module equally has WiFi moulds
Block.Either bluetooth module or WiFi module are all existing common in the electronic device, for example, have Bluetooth function and/or WiFi
Mobile phone, notebook computer of function etc..Greatly facilitate the use of smart card.
The present embodiment is not only able to reach read-write of the mobile terminal device by trunking to smart card information, so as to reach
To the transmission between smart card and server, additionally it is possible to save the cost of manufacture of trunking.Use smart card more honest and cleaner
It is valency, more convenient.
Example IV
In above-described embodiment three, due to existing radio operation module can not directly with contact intelligent card standard
Chip carries out data transmission.To solve this problem, one kind is provided in the present embodiment with smart card reader trunking to intelligence
The method for carrying out read-write operation can be blocked.Specific implementation is described in detail below.
When being written and read operation to smart card with smart card reader trunking, the smart card trunking can include
Wireless communication module, smart card neck, the smart card neck are built-in with hard contact, the wireless communication module and the gold
Belong to contact portion.Wherein, as shown in fig. 6, wireless communication module can carry out following steps:
601:Receive the command word that the mobile terminal device provided with corresponding wireless communication module is transmitted;
602:According to the reading and writing data standard of contact intelligent card, the command word is entered into row format conversion, and will conversion
Command word afterwards is transferred to the contact intelligent card standard chips, so that the command word for sending the mobile terminal device is passed
It is defeated by institute's contact and states smart card standard chip.
So contact intelligent card standard chips just can receive and identify the command word that wireless communication module is transmitted, from
And realize mobile terminal device transmission command word and give smart card standard chip.
Wherein, in a particular application in order to obtain the response message that smart card standard chip is returned, wireless communication module is also
Following steps can be carried out.
Receive the response message of contact intelligent card standard chips transmission;
Reading and writing data standard according to the smart card standard chip is parsed to the response message, and by after parsing
Response message be transferred to the mobile terminal device.
Can thus realize can carry out data communication between wireless communication module and read-write operation chip.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
Realized by the mode of hardware plus necessary software generic platform.Understood based on such, the technical scheme essence of the application
On the part that is contributed in other words to prior art mainly embodied in the form of hardware and software is combined.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for equipment or
For apparatus embodiments, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.Equipment and apparatus embodiments described above is only schematical, wherein the conduct
The unit that separating component illustrates can be or may not be it is physically separate, the part shown as unit can be or
Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root
Some or all of module therein is factually selected to realize the purpose of this embodiment scheme the need for border.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
Above to smart card reader trunking provided herein, it is described in detail, tool used herein
Body example is set forth to the principle and embodiment of the application, and the explanation of above example is only intended to help and understands this Shen
Method and its core concept please;Simultaneously for those of ordinary skill in the art, according to the thought of the application, specific real
Apply and will change in mode and application.In summary, this specification content should not be construed as the limit to the application
System.