CN202102425U - Port conversion device - Google Patents

Port conversion device Download PDF

Info

Publication number
CN202102425U
CN202102425U CN2010206747966U CN201020674796U CN202102425U CN 202102425 U CN202102425 U CN 202102425U CN 2010206747966 U CN2010206747966 U CN 2010206747966U CN 201020674796 U CN201020674796 U CN 201020674796U CN 202102425 U CN202102425 U CN 202102425U
Authority
CN
China
Prior art keywords
card
interface
intelligent
port
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CN2010206747966U
Other languages
Chinese (zh)
Inventor
周登威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN2010206747966U priority Critical patent/CN202102425U/en
Application granted granted Critical
Publication of CN202102425U publication Critical patent/CN202102425U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

The utility model discloses a port conversion device, which is used for achieving conversion from an intelligent card port to a storage card port and comprises an intelligent card adapting port used for being connected with an intelligent card port terminal, the storage card port used for being connected with a storage card, a main controller and a power supply conversion module. The main controller is respectively connected with the intelligent card adapting port and the storage card port and used for conducting format conversion on a received first operation order transmitted by the intelligent card port terminal to obtain a second operation order, sending the order to the storage card, and sending received processing results of the second operation order from the storage card back to the intelligent card port terminal. The power supply conversion module is connected with the intelligent card adapting port and the storage card port respectively and used for obtaining power from the intelligent card port terminal, conducting voltage conversion and then providing the power for the port conversion device. In an application process, the port conversion device can conduct read-write visit on the storage card on the intelligent card port terminal, thereby expanding application range of the storage card.

Description

A kind of interface switching device
Technical field
The utility model relates to conversion equipment, particularly, relates in particular to a kind of interface switching device.
Background technology
Smart card (Smart Card) is a kind of portable card that is embedded with integrated circuit (IC) chip, and it comprises microprocessor, I/O interface and storer, and data computing, access control and computing function are provided.Smart card is divided into contact intelligent card and contact type intelligent card, and wherein, contact intelligent card is followed the ISO/IEC7816 international standard.Along with rapid economy development, the purposes of smart card increases day by day.Wherein, an important use of smart card is to be used in field of telecommunications, such as the SIM that is used for mobile phone.Another important use of smart card then is to be used in the financial field, such as the IC-card of issued by banks.Along with the migration of bank card EMV, IC-card will progressively replace magnetic stripe card, and this has enlarged the range of application of IC-card beyond doubt.The widespread use of smart card makes increasing terminal support the ISO/IEC7816 interface, such as POS machine (Point of Sale), PC/SC card reader, ATM etc.
Numeric security SD card (Secure Digital Memory Card) is a kind of memory device of new generation of based semiconductor fast-flash memory device; It is widely used on the mancarried device, for example mobile phone, digital camera, personal digital assistant (PDA) and multimedia player etc.Size has high memory capacity, rapid data transmission rate, mobile dirigibility and well security greatly just as the SD card of stamp.
Along with the high speed development of internet and ecommerce, Web bank, E-Government etc. is widely used in the life that involves in people.In the process of using these application, people recognize that progressively the safety of personal information is more and more important, and are therefore, also increasingly high to the requirement of personal information.And Along with people's is increasingly high to the personal information security requirement, and intelligent SD card begins to just come onto stage.It is a kind of SD card by hardware to identifying identification based on the technology of SD card, and this kind SD card can fundamentally solve information security issue.
Though the card reader of a lot of SD card is arranged in the market, be to adopt USB interface to change the SD card mostly, like this have on the terminal of USB device more convenient.Yet require very high field in some information securities, the use of USB interface terminal device is not popularized, and can more adopt the interface termination of following the ISO/IEC7816 agreement such as bank more.So then make and on existing intelligent card interface terminal, can't stick into row access SD.
This shows that prior art also comes with some shortcomings, also need to improve.
The utility model content
The technical matters that the utility model will solve is the deficiency to prior art, and a kind of interface switching device is provided, and utilizes this interface switching device, can on existing intelligent card interface terminal, carry out read and write access to storage card.
For solving the problems of the technologies described above, the utility model has adopted following technical scheme:
A kind of interface switching device is used to realize the conversion of intelligent card interface to memory card interface, comprises the smart card converting interface that is used for connection of intelligent card terminal, the memory card interface that is used to connect storage card, master controller and power transfer module; Said master controller is connected respectively with said memory card interface with said smart card converting interface, is used for that first operational order that send at the said intelligent card interface terminal that receives is carried out format conversion and obtains second operational order and send to storage card; And the said storage card that will receive is given said intelligent card interface terminal to the result loopback of said second operational order; Said power transfer module is connected respectively with memory card interface with said smart card converting interface, thereby is used for from the said intelligent card interface terminal power taking and carries out voltage transformation being said interface switching device power supply.
In a kind of embodiment of the utility model, the firmware in the said master controller comprises the intelligent card interface communication unit, command conversion unit and memory card interface communication unit; Said intelligent card interface communication unit is used to receive first operational order that the smart card converting interface transfers and is sent to said command conversion unit; Said command conversion unit is used for said first operational order is carried out format conversion, obtains said second operational order and is sent to said memory card interface communication unit; Said memory card interface communication unit is sent to said storage card through said memory card interface with said second operational order, and gives said intelligent card interface terminal through said command conversion unit, intelligent card interface communication unit, the loopback of smart card converting interface with said storage card successively to the result of said second operational order.
In a kind of embodiment of the utility model, said intelligent card interface terminal is the interface termination of following the ISO/IEC7816 agreement, and said intelligent card interface communication unit is a communication unit of following the ISO/IEC7816 agreement.
In a kind of embodiment of the utility model, said storage card is the numeric security card.
In a kind of embodiment of the utility model, said command conversion unit is used for said first operational order is converted into said second operational order of SDC form.
In a kind of embodiment of the utility model, said memory card interface communication unit is a communication unit of following SD card agreement, and said memory card interface communication unit is supported SD pattern and SPI pattern.
Owing to adopted above technical scheme; The beneficial effect that the utility model is possessed is: first operational order of the intelligent card interface terminal being sent through the smart card converting interface is sent to master controller; And utilize master controller that operational order is carried out format conversion, convert second operational order that storage card can be handled into; Master controller is sent to storage card through memory card interface with second operational order, and receives the result of storage card to second operational order, and gives the intelligent card interface terminal through the smart card converting interface with the result loopback.Utilize the utility model, on the interface termination of the demanding smart card of existing information security, can read and write, thereby expanded the range of application of storage card storage card.For example bank just can utilize the utility model, on the interface termination of existing smart card, realizes the quick granting of storage card, has both practiced thrift cost, has improved hair fastener efficient again.
Description of drawings
Fig. 1 is the hardware configuration synoptic diagram of the conversion equipment of a kind of embodiment of the utility model;
Fig. 2 is the functional unit synoptic diagram of the master controller of a kind of embodiment of the utility model.
Embodiment
Combine accompanying drawing that the utility model is done further explain through embodiment below.
Shown in Figure 1 is the hardware configuration synoptic diagram of the conversion equipment of a kind of embodiment of the utility model.Can know that this kind interface switching device is used to realize the conversion of intelligent card interface to memory card interface, comprises smart card converting interface 1, master controller 2, memory card interface 3 and power transfer module 4 by figure; Wherein, smart card converting interface 1 is used for connection of intelligent card terminal; Master controller 2 is connected respectively with memory card interface 3 with smart card converting interface 1; Particularly; Master controller 2 receives first operational order sent at intelligent card interface terminal 10 and this first operational order is carried out format conversion through smart card converting interface 1, obtains second operational order that storage card can be handled; Master controller 2 also sends to storage card 20 through memory card interface 3 with second operational order, and the result of 20 pairs second operational orders of the storage card that receives is returned to intelligent card interface terminal 10 through smart card converting interface 1; Power transfer module 4 is connected respectively with memory card interface 3 with smart card converting interface 1; Particularly; Power transfer module is through smart card converting interface 1 power taking and carry out voltage transformation from the intelligent card interface terminal 10; Thereby be whole interface switching device power supply, and then guaranteed the normal transmission of first, second operational order.This shows that the main effect of smart card converting interface 1 is that first operational order that send at intelligent card interface terminal 10 is transferred on the interface switching device, guarantee the proper communication of intelligent card interface terminal 10 and master controller 2.And memory card interface 3 mainly is to be used to realize communicating by letter between interface switching device and the storage card 20.Master controller is as the CPU of interface switching device; The main conversion of being responsible for intelligent card interface and these two kinds of interface command forms of memory card interface; Promptly receive the operational order row format conversion of going forward side by side, be translated into the command format that storage card can be handled, and be sent to storage card.The main effect of power supply change-over device is to carry out voltage transformation; This is because the required voltage of required voltage of intelligent card interface and memory card interface is different; Therefore, need carry out voltage transitions, thereby guarantee normal command interaction between intelligent card interface terminal and the storage card.Utilize this interface converter device, on existing intelligent card interface terminal, just can support the read-write of storage card;
As shown in Figure 2, in a kind of embodiment of the utility model, master controller 2 comprises intelligent card interface communication unit 21, command conversion unit 22 and memory card interface communication unit 23; Intelligent card interface communication unit 21 is used to receive first operational order that smart card converting interface 1 transfers and is sent to command conversion unit 22; Command conversion unit 22 is used for first operational order is carried out format conversion, obtains second operational order and second operational order is sent to memory card interface communication unit 23; Memory card interface communication unit 23 is sent to storage card 20 through memory card interface 3 with second operational order; And the result of 20 pairs second operational orders of storage card returned to intelligent card interface terminal 10 through command conversion unit 22, intelligent card interface communication unit 21, smart card converting interface 1 successively, thereby realized the information interaction between intelligent card interface terminal and the storage card.Master controller can convert first operational order into second operational order that storage card can be handled as the processor of interface switching device, thereby guarantees normally the carrying out of command interaction between intelligent card interface terminal and the storage card.
In one embodiment; The intelligent card interface terminal is the interface termination of following the ISO/IEC7816 agreement; This kind interface termination is widely used in the demanding field of information security, and like bank etc., and the intelligent card interface communication unit is a communication unit of following the ISO/IEC7816 agreement.First operational order that so, then makes the intelligent card interface terminal send can successfully be transferred on the interface arrangement.In fact, this first operational order is specially APDU order, because the ISO/IEC7816 agreement is followed at the intelligent card interface terminal, so the APDU order also is that command format according to the ISO/IEC7816 agreement sends.
In an embodiment, storage card is specially the numeric security card, and promptly the SD card when being used in the bank field, based on the consideration to user information safety, can be selected intelligent SD card; The command conversion unit is second operational order with the ADPU command conversion, and the command format of second operational order is specially the SDC form that storage card can be handled, and promptly second operational order is the APDU order of SDC formal definition.And the memory card interface communication unit is a communication unit of following SD card agreement, can support the SD pattern and support the SPI pattern, and memory card interface specifically can be selected deck.Through above design, make on the interface termination of following the ISO/IEC7816 agreement, through this interface switching device, can carry out read and write access to digital safety card.Not only evaded falling the problem that to carry out information interaction in the prior art between the intelligent card interface terminal and memory card interface like this, on the one hand.And from another point of view, also promoted the widespread use of SD card, intelligent SD card popularizing especially in financial field that information security is had relatively high expectations.
Embodiment 1:
Intelligent card interface terminal 10 is sent the APDU order through smart card converting interface 1 to interface switching device.Intelligent card interface communication unit 21 in the master controller 2 of interface switching device receives the APDU order from smart card converting interface 1, and is sent to the command conversion unit as the slave unit of master controller.The command conversion unit is the APDU order of SDC formal definition with the ADPU command conversion and sends to intelligent SD card by the memory card interface communication unit through deck; The intelligent SD card loopback is given master controller 2 to the APDU process of commands result of this SDC form, and gives intelligent card interface terminal 10 through 1 loopback of smart card converting interface.And voltage dress die change piece 4 will be the power supply of VCC as whole interface converter device through voltage transformation from the power supply VIN at intelligent card interface terminal 10 through smart card converting interface 1.So, then realized on the interface termination of existing smart card, having realized read and write access to intelligent SD card.Need to prove that this interface switching device on existing intelligent card interface terminal, can be realized being not limited to intelligent SD card to the read and write access of SD card is arranged more.
Below, introduce the intelligent card interface communication unit in the master controller in detail, the workflow of command conversion unit and memory card interface communication unit.
The intelligent card interface communication unit:
The intelligent card interface communication unit is the slave unit existence as master controller; According to the ISO/IEC7816 agreement; The intelligent card interface communication unit need be dragged down 400 to 4000 clock period to reset answer signal of master controller at the RST pin, and the form of reset answer signal is provided by the ISO/IEC7816 agreement.Reset signal mainly comprises the agreement of level logic, clock frequency conversion and bit rate correction factor, and host-host protocol.Provide after the reset answer; The intelligent card interface communication unit begins to receive first byte, if the byte that receives is 0xff, shows that main needs carry out the PPS transmission and revise traffic rate; The intelligent card interface communication unit continues to receive remaining PPS byte; And the PPS data that receive are sent to the intelligent card interface terminal, and show the received communication modifying rates, revise baud rate according to second byte of PPS afterwards; And begin to wait for to receive the APDU order of sending at the intelligent card interface terminal, then APDU is sent to the ADPU order that the command conversion unit changes into the SDC formal definition.If first data of receiving after the reset answer are not 0xff, show and need not carry out PPS communication, then directly receive the APDU order.The concrete workflow of intelligent card interface communication unit is following:
1, the intelligent card interface communication unit of ISO/IEC7816 agreement is followed in configuration, and it is 9600bps that baud rate is set;
2, the reset answer word is sent in the back that powers within 400 to 4000 clock period;
3, receive first byte, if 0xff jumps to 4, if not jump to 6;
4, receive other PPS data, and the PPS data that receive are sent to the intelligent card interface terminal;
5,, the baud rate of intelligent card interface communication unit is set according to the PPS data that receive;
6, begin to receive the APDU order, and send the APDU order to the command conversion unit, wait for receiving return results;
The result that 7, will receive returns to the intelligent card interface terminal.
The memory card interface communication unit:
Though SD card agreement comprises two kinds of patterns, i.e. SD pattern and SPI pattern.But because the main flow main control chip on the market supports that the SPI interface is more than standard SD card, so the utility model adopts the SPI pattern to carry out detailed explanation as a concrete enforcement example.
It is to stick into row communication with SD that the memory card interface communication unit mainly acts on, and the order after 23 conversions of command conversion unit is write the sector of SD card appointment, and reads result.Because SD is stuck in the communication of the SD pattern that acquiescence adopts when powering on,, then need do certain initialization if need to adopt the SPI pattern to communicate.Initialization procedure according to SD card agreement SPI pattern is following:
01, configuration store card communication unit is provided with baud rate less than 400Kbps;
02, postpones 74 Clock;
03, send reset command CMD0, the response that circulation receives the SD card shows that until returning 0x01 card gets into the idle state, perhaps overtimely shows that initialization fails;
04, circulation is sent CMD55+ACMD41 and is shown that up to returning 0x00 card gets into the ready state, and SPI pattern initialization success perhaps overtimely shows that initialization fails;
05, read-write block size being set is 512 bytes;
06, the baud rate that the memory card interface communication unit is set is 10Mbps;
07, waits for that receiving the APDU that meets the SDC form that sends into the command conversion unit orders;
08, sends the assigned address that the APDU that receives orders the SD card;
09, waits for the result (reading) that reception SD card returns from the assigned address of SD card;
10, return results being sent into the command conversion unit changes.
The command conversion unit:
Because is that unit is operated through the SPI pattern with the piece to the read-write of SD card, the size of general piece is set to 512 bytes, and ISO/IEC7816APDU order of sending into through the intelligent card interface terminal and the result that need return do not reach 512 bytes.Therefore in order to guarantee correct the giving storage card and can correctly return to the intelligent card interface terminal of APDU order ability, need command conversion unit of design, data are resolved conversion from the return results that storage card reads.Its major function is:
1,512 bytes that the APDU command conversion that the intelligent card interface communication unit is received becomes storage card to discern;
2, the return results that 512 byte conversion that the memory card interface communication unit received become the intelligent card interface terminal to discern.
The utility model can realize supporting the conversion of ISO/IEC7816 intelligent card interface terminal to the SD card, makes on the interface termination of existing smart card, can stick into capable read and write access to SD.Can utilize the utility model on existing hair fastener terminal device, to realize the quick hair fastener of intelligent SD card such as bank, so both practice thrift cost, improve hair fastener efficient again.Along with popularizing gradually of intelligent SD card, can obtain using more widely at field the utility model such as finance, safety, payments.
Above content is the further explain that combines concrete embodiment that the utility model is done, and can not assert that the practical implementation of the utility model is confined to these explanations.For the those of ordinary skill of technical field under the utility model, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace, all should be regarded as belonging to the protection domain of the utility model.

Claims (2)

1. interface switching device; Be used to realize the conversion of intelligent card interface to memory card interface; It is characterized in that, comprise the smart card converting interface that is used for connection of intelligent card terminal, be used to connect memory card interface, master controller and the power transfer module of storage card; Said master controller is connected respectively with said memory card interface with said smart card converting interface, is used for that first operational order that send at the said intelligent card interface terminal that receives is carried out format conversion and obtains second operational order and send to storage card; And the said storage card that will receive is given said intelligent card interface terminal to the result loopback of said second operational order; Said power transfer module is connected respectively with memory card interface with said smart card converting interface, thereby is used for from the said intelligent card interface terminal power taking and carries out voltage transformation being said interface switching device power supply.
2. device as claimed in claim 1 is characterized in that, said storage card is the numeric security card.
CN2010206747966U 2010-12-22 2010-12-22 Port conversion device Expired - Lifetime CN202102425U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010206747966U CN202102425U (en) 2010-12-22 2010-12-22 Port conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010206747966U CN202102425U (en) 2010-12-22 2010-12-22 Port conversion device

Publications (1)

Publication Number Publication Date
CN202102425U true CN202102425U (en) 2012-01-04

Family

ID=45388430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010206747966U Expired - Lifetime CN202102425U (en) 2010-12-22 2010-12-22 Port conversion device

Country Status (1)

Country Link
CN (1) CN202102425U (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831450A (en) * 2012-08-14 2012-12-19 东信和平科技股份有限公司 Method and system for reading and writing SD card (Secure Digital Memory Card) based on ISO/IEC7816-3 interface
CN103049362A (en) * 2012-12-17 2013-04-17 北京大唐智能卡技术有限公司 Intelligent card adaptor, intelligent card detection system and intelligent card detection method
CN108090548A (en) * 2016-11-21 2018-05-29 瑞昱半导体股份有限公司 For the intermediary circuit of storage card access
WO2019075696A1 (en) * 2017-10-19 2019-04-25 深圳市乐得瑞科技有限公司 Method for realizing transfer between devices, and switching apparatus
CN109684246A (en) * 2018-12-19 2019-04-26 东莞博力威电池有限公司 The method and system carried out data transmission between the equipment of distinct interface agreement

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831450A (en) * 2012-08-14 2012-12-19 东信和平科技股份有限公司 Method and system for reading and writing SD card (Secure Digital Memory Card) based on ISO/IEC7816-3 interface
CN103049362A (en) * 2012-12-17 2013-04-17 北京大唐智能卡技术有限公司 Intelligent card adaptor, intelligent card detection system and intelligent card detection method
CN108090548A (en) * 2016-11-21 2018-05-29 瑞昱半导体股份有限公司 For the intermediary circuit of storage card access
WO2019075696A1 (en) * 2017-10-19 2019-04-25 深圳市乐得瑞科技有限公司 Method for realizing transfer between devices, and switching apparatus
CN109684246A (en) * 2018-12-19 2019-04-26 东莞博力威电池有限公司 The method and system carried out data transmission between the equipment of distinct interface agreement

Similar Documents

Publication Publication Date Title
US10949726B2 (en) Mobile phone with NFC apparatus that does not rely on power derived from an interrogating RF field
US8814053B2 (en) Mobile payment device with small inductive device powered by a host device
CN202102425U (en) Port conversion device
CN101908157A (en) NFC-SIM (Near Field Communication-Subscriber Identity Module) chip
CN202142082U (en) Financial IC card reader-writer
CN103679101B (en) Handset audio reader device and system
CN203338379U (en) Card-type read-write equipment based on double-standard audio interface
CN202126697U (en) Dual interface secure digital (SD) card
CN101840528A (en) Micro secure digital card additionally provided with coprocessor
CN201503599U (en) Intelligent card and terminal equipment
CN202632310U (en) Converter of security TF (TransFlash) card and intelligent card as well as communication system
CN201262749Y (en) Control device of card reader based on safety digital standard
CN202795423U (en) Small-sized memory card
CN103473861A (en) Pos machine device based on cellphone card swiping
CN203276428U (en) Multifunctional fiscard read-write apparatus
Jeon et al. Design of hardware module to process contactless protocol for IC card system

Legal Events

Date Code Title Description
GR01 Patent grant
C14 Grant of patent or utility model
CX01 Expiry of patent term

Granted publication date: 20120104

CX01 Expiry of patent term