Background technology
From early 1990s, smart card Germany by success be applied to the GSM terminal after, be widely used at present in all kinds of mobile communications networks, as the usim card that uses in the UIM card that uses in the CDMA terminal equipment, the 3G terminal equipment etc.(subscriber identification module is otherwise known as to be loaded in smart card in the mobile phone terminal, SIM-Subscriber Identity Module), mainly finish user identity identification and authentication, Speech Communication support, short message service and other all kinds of value-added services on the GSM network based on STK.
Basic design concept and system architecture since yet for a long time, SIM card circuit and software engineering have been continued to use it always and be born.Along with the fast development of wireless communication technology, it just is being subjected to the challenge of more and more new technologies, if can not implement upgrading technically as soon as possible, SIM card will be faced with the danger that is eliminated.
At first, from the function and application angle, the CPU of most smart cards is 8 or 16 bit processors in the market, instruction is carried out efficient and is generally about 0.5MIPS, carry out the application processing of normal words class and still can support, then can't support well for a large amount of network processes of calculating of needs, cryptographic calculations etc.
Secondly, the SIM card capacity majority that generally uses in the market is 32KB/64KB, and maximum is no more than 128KB.This storage capacity can't have been supported the application demand of telecom operators' business development and End-Customer well.The way of present a kind of transition is to adopt expansion card beyond the SIM card (as the Micro-SD card etc.) to come the increase capacity, this has not only brought many inconvenience and expense to mobile phone terminal exploitation and use, the more important thing is that expansion card adopts and the diverse business model of SIM card in sale and use, operator can't effectively utilize the development that expansion card supports its value-added service.
The 3rd, the mass storage of mobile phone terminal has also correspondingly improved the requirement to message transmission rate.The transmission rate of ISO/IEC 7816 interfaces arrives between the hundreds of kbps at several kbps (kilobits per second, kbps) usually.Need up to a hundred seconds with the file of this speed rates M level size, if consider the expense and the factor such as fault-tolerant of transmission, the time also can be longer.
The 4th, the employed STK application and development of traditional SIM card interface is mainly used in the business of handling the text class, can't realize such as complicated applications such as figure, networks poor user experience; Secondly, the software systems of conventional smart card also do not possess real operation system function, structurally can't support to be changed neatly by application developers even End-Customer.So, design and realize that operating system efficiently is the another key technical problem of supporting that the new application develop and field need solve on intelligent card chip.
In order to address the above problem, at present a kind of New type of S IM card of integrated high-performance embedded microprocessor, USB/SD/MMC high-speed interface, big capacity Flash memory and real time operating system (RTOS, Real Time OperatingSystem) has begun to occur.This novel intelligent is stuck on physical electrical characteristic, the software/hardware framework has all had very big difference with conventional smart card, it has more high-strength computing capability, bigger capacity storage, higher transmission rate than traditional SIM card what is more important, and can carry multiple novel radio valued added applications.
Yet, still do not have a kind of mobile phone terminal can support this novel smart card fully at present.Embody a concentrated expression of the following aspects: existing Terminal Design can't be supported and being connected of its newly-increased high-speed interface, and it is configured and manages; Can't satisfy the required power of its operation for novel smart card provides; The more important thing is that SIM card and USB/SD/MMC device chip are independent fully in existing terminal architecture, they can carry out respectively with the communication between the main frame separately, and mutually noninterfere need not extra synchronous and handshake mechanism.And novel smart card integrates both physically, and might be connected with different application processors, therefore need terminal can for start 7816 and the task of high-speed interface handle to provide and coordinate effectively and manage.
Summary of the invention
The objective of the invention is at the problems referred to above, a kind of mobile phone that can assemble novel smart card is provided, this mobile phone except that supporting basic GSM communication function, also support and New type of S IM card between mass data storage, high-speed data communications, and the processing of new application on the smart card.The present invention will provide the collaborative task scheduling scheme of the scheme that is electrically connected, power supply plan, access circuit management scheme and software/hardware of this mobile phone and novel smart card.
Technical scheme of the present invention is as follows: a kind of mobile phone of supporting novel smart card, comprise the baseband processor chip, the radio-frequency module that is attached thereto, the SDRAM cache module, LCDs, keyboard and several D/As, mould/number conversion circuit, be provided with the intelligent card socket of the 8-Pin distribution standard that meets ISO/IEC 7816 standards in the mobile phone, according to novel smart card high speed data transfer agreement, the C4 of intelligent card socket, C6 links to each other with the C8 pin pin corresponding with the baseband processor chip, the power management chip that is connected with battery provides the power supply of 3.3V-5V through the DC-DC voltage transitions for each module in the mobile phone, and the C1 pin by intelligent card socket provides drive current to smart card simultaneously; When and smart card between high speed data transfer when selecting usb protocol, the baseband processor chip is that 48MHz, error are 2.5 ‰ USB reference clock by the C6 pin for smart card provides frequency, and the C4 of intelligent card socket links to each other with the Data-pin with the Data+ of baseband processor chip respectively with the C8 pin simultaneously; When and smart card between high speed data transfer when selecting the SD/MMC agreement, the baseband processor chip provides the clock of 0~19.5MHz by the C6 pin for smart card, and the C4 of intelligent card socket and C8 pin link to each other with the Command pin with the Data0 of the SD/MMC of baseband processor chip respectively simultaneously.
The mobile phone of aforesaid support novel smart card, wherein, the clock pin of baseband processor chip, reseting pin and UART pin link to each other with C3 pin, C2 pin and the C7 pin of intelligent card socket respectively.
The mobile phone of aforesaid support novel smart card can also connect the multimedia application processor chip on the baseband processor chip.At this moment, SDRAM cache module, LCDs etc. are connected with the multimedia application processor chip respectively.
The mobile phone of aforesaid support novel smart card, on baseband processor or multimedia application processor, be provided with the interface clock administration module, the interface clock administration module is effective or invalid by SIM clock register mode bit and the high-speed interface clock register mode bit that is provided with in baseband processor or the multimedia application processor, starts or stops the clock signal on C3 and the C6 pin.Thereby realize the identification of smart card to type of cell phone (inventing described mobile phone and regular handset); And the switching of smart card between different working modes.
Mobile phone of the present invention can well support to have high-performance calculation, the novel smart card of high speed data transfer and big capacity storage capability, possesses following tangible practical function:
(1) can with mass data and personal information storage in novel smart card, solve the problem that need spend the great effort copy data when former user changes mobile phone terminal;
(2) utilize the high-performance calculation ability of novel smart card, can carry out complex application more efficiently, realize the scheduling and the Distributed Calculation of task, the calculated load of effectively having decomposed baseband processor and multimedia application processor;
(3), efficiently solve the function that mobile phone terminal faces and the problem of volume conflict because novel smart card has the storage of high-performance calculation ability and vast capacity.And make the complexity of mobile phones design and cost can obtain to a certain degree reduction;
(4) can be in smart card develop and field newly use, new business, especially radio communication operator are wished every mobile value-added service of releasing, as mobile TV, mobile e-business, multimedia application etc.Thereby make mobile phone of the present invention possess the feature of carrier customization mobile phone.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
Mobile phone of the present invention comprises the hardware and software two large divisions.Wherein hardware components is mainly by radio-frequency module (RF), baseband processor (Baseband Processor), multimedia application processor (ApplicationProcessor), SDRAM buffer memory, power management chip, LCDs, keyboard, some D/As, mould/number conversion circuit, and composition such as New type of S IM card module.Software section is then integrated embedded OS, protocol stack module, device driver module and relative application software.Possible structure principle chart as depicted in figs. 1 and 2.
The regulation smart card should have 8 contact electrode among the ISO/IEC 7816-2, is respectively C1-C8 (pinout is seen Fig. 3), and they are the electric interfaces between terminal equipment and smart card.Yet C4 and C8 pin are used as the usefulness of future feature expansion, not defined function in standard.In addition, the C6 pin is used for smartcard internal E at first
2PROM provides the program voltage input, and along with the development of technology, this voltage can directly be produced by the intelligent card chip internal charge pump, so the C6 pin also no longer is used.For the consideration of cost, the socket of smart card has only 6 contacts in present most of mobile phones.Novel smart card utilizes these three the idle pin of usefulness is not integrated high speed interface.Therefore, mobile phone of the present invention has adopted the intelligent card socket of the 8-pin distribution standard that meets the ISO/IEC7816 normalized definition fully, simultaneously, C4, C6 is linked to each other with the C8 pin pin corresponding with baseband processor (or application processor).
According to the GSM11.11 standard, the electric current of SIM card is no more than 10mA.In conventional mobile phone, this power supply is by baseband processor, or realized by power management chip (LDO, Low Dropout Regulator).Since novel smart card is integrated high speed data transmission interface, and may carry the application of some algorithm intensive, and therefore, mobile phone of the present invention adopts the power source special managing chip to provide the current drives of 100mA for it, to satisfy its power consumption.
Can select different mode of operations because novel intelligent is stuck in regular handset and the mobile phone of the present invention, therefore need terminal to provide a kind of recognition mechanism to make effectively sense terminals type of smart card.Mobile phone of the present invention can be realized this function by opening the high-speed interface clock in the smart card electrification reset stage.
The interface clock administration module can realize that smart card is to inventing the identification of described mobile phone and regular handset by open the high-speed interface clock in the smart card electrification reset stage.
Further, the interface clock administration module can be realized the switching of smart card between four kinds of mode of operations by opening or closing SIM clock and high-speed interface clock, thereby reaches the purpose of saving power consumption:
Complete park mode: mobile phone terminal closes the SIM clock and USB/SD/MMC high-speed interface clock makes smart card enter complete park mode.Smart card is only opened modules such as interrupt control unit, closes most of logics such as CPU, memory, and whole system is in the wake-up waiting state;
The SIM park mode: mobile phone terminal is only closed the SIM clock makes smart card enter the SIM park mode.Smart card SIM function is closed, and the high-speed interface data transfer task is carried out;
The high-speed interface park mode: mobile phone terminal only closing high-speed interface clock makes smart card enter the high-speed interface park mode;
Normal mode of operation: this moment, mobile phone terminal SIM clock and high-speed interface clock were all opened, and smart card ISO/IEC 7816 interfaces and high-speed interface are all in running order.
C3 and C6 go up starting or stoping of clock signal, and can SIM clock register mode bit in baseband processor and the multimedia application processor (as SIM_CSTS[1:0]) and high-speed interface clock register mode bit (MMC_STRPCL[1:0]) be set by device drives interface clock administration module is effective or invalid the realization.The interface clock administration module can be realized by general software program.
In the existing mobile phone terminal framework, SIM card and USB/SD/MMC device chip are separate, and they can carry out respectively with order between the main frame and transfer of data separately, need not extra synchronous and handshake mechanism.And novel smart card integrates both physically, and might be connected with different processors, therefore has complicated multitasking situation: as the initialization of SIM and USB/SD/MMC equipment; Parallel task processing etc. is carried out in high-speed interface transfer of data and ISO7816 instruction.
Mobile phone of the present invention adopts message based bus protocol module, according to AT order and response set up between USB/SD/MMC controller and the SIM controller synchronously, and standard in the smart card 7816 and the sequential carried out of high-speed interface task.Thereby realize the initialization of SIM and USB/SD/MMC equipment, the coordination of complicated parallel task processing such as asking is carried out in high-speed interface transfer of data and ISO 7816 instructions.And operate in real time operating system on the terminal handler, be responsible for control baseband processor and novel smart card, multimedia application processor and smart card, and the intercommunication mutually between baseband processor and the multimedia processor, realize interrupt management, task management etc. efficiently.
Specific embodiment one:
In the present embodiment, the only integrated uniprocessor of mobile phone, i.e. baseband processor (as NXP PCF5213, spreadtrum SC6600 etc.).Other parts are by IO equipment such as radio-frequency module (as PMB6258 of Infineon etc.), SDRAM, power management chip (as NXP PCF50606 etc.), LCDs, keyboards, and composition such as New type of S IM card module, as shown in Figure 1.
The hardware connection of embodiment and the major function of each several part are as follows:
Radio-frequency module is responsible for the reception and the emission of radio signal; Baseband processor is responsible for the processing of gsm protocol, the overall control of system, and the multimedia processing capacity; SDRAM is responsible for the buffer memory of text, multi-medium data; Power management chip is responsible for the conversion of voltage and is given each module for power supply; IO such as LCDs, keyboard equipment is responsible for man-machine interface; New type of S IM card module is responsible for the communication related application of GSM 11.11, GSM 11.14 regulations, uses program implementation in storage and other cards, and its pin definitions is shown in Fig. 4 and following table.
In the present embodiment, power management chip is battery-powered, and the power supply of 3.3V-5V is provided to each module among Fig. 1 through the voltage transitions of DC-DC.Provide 100mA drive current by the C1 pin to SIM card simultaneously.Baseband processor can realize the cold reset of SIM by the configuration register of this power management chip of configuration.
In the present embodiment, the clock pin of baseband processor chip, reseting pin and UART pin link to each other with C3 pin, C2 pin and the C7 pin of smart card respectively, for it provides clock, the reset signal of 3.25MHz, and carry out data communication with smart card 7816 interfaces.
In the present embodiment, and the high speed data transfer between the smart card is as selecting usb protocol, then the baseband processor chip is that 48MHz, error are the USB reference clock of 2.5 ‰ (48MHz@2500ppm) by the C6 pin for smart card provides frequency, and C4 links to each other with Data-with the Data+ of baseband processor chip respectively with the C8 pin simultaneously; And the high speed data transfer between the smart card is as selecting the SD/MMC agreement, then the baseband processor chip provides the clock of 0~19.5MHz by the C6 pin for smart card, and C4 links to each other with the Command pin with the SD/MMC Data0 of baseband processor chip respectively with the C8 pin simultaneously.
Specific embodiment two:
In the present embodiment, the integrated dual processor of mobile phone, i.e. baseband processor (as Broadcom2124 etc.) and multimedia application processor (as Intel PXA27x etc.).Other parts are by IO equipment such as radio-frequency module, SDRAM, power management chip, LCDs, keyboard, keyboards, and composition such as New type of S IM card module, as shown in Figure 2.
The hardware connection of embodiment and the major function of each several part are as follows:
Radio-frequency module is responsible for the reception and the emission of radio signal; Multimedia application processor is responsible for the overall control of system, and the multimedia processing capacity; Baseband processor only is responsible for the processing of gsm protocol; SDRAM is responsible for the buffer memory of text, multi-medium data; Power management chip is responsible for the conversion of voltage and is given each module for power supply; IO such as LCDs, keyboard equipment is responsible for man-machine interface; New type of S IM card module is responsible for the communication related application of GSM11.11, GSM11.14 regulation, uses program implementation in storage and other cards.
Power management chip is battery-powered in the present embodiment, and the power supply of 3.3V-5V is provided to each module among Fig. 2 through the voltage transitions of DC-DC.Provide 100mA drive current by the C1 pin to SIM card simultaneously.Baseband processor can realize the cold reset of SIM by the configuration register of this power management chip of configuration.
In the present embodiment, the clock pin of baseband processor chip, reseting pin and UART pin link to each other with C3 pin, C2 pin and the C7 pin of smart card respectively, for it provides clock, the reset signal of 3.25MHz, and carry out data communication with smart card 7816 interfaces.
In the present embodiment, and the high speed data transfer between the smart card is as selecting usb protocol, then the multimedia application processor chip provides the USB reference clock of 48MHz@2500ppm by the C6 pin for smart card, and C4 links to each other with Data-with the Data+ of multimedia application processor chip respectively with the C8 pin simultaneously; And the high speed data transfer between the smart card is as selecting the SD/MMC agreement, then the multimedia application processor chip provides the clock of 0~19.5MHz by the C6 pin for smart card, and C4 links to each other with the Command pin with the SD/MMC Data0 of multimedia application processor chip respectively with the C8 pin simultaneously.
More than the groundwork flow process of two kinds of embodiment as follows, see Fig. 5:
(1) electrification reset:
System powers on, and waits for V
CcAfter stable, baseband processor provides the clock signal of a 3.25MHz to SIM card, and SIM_RST is changed to low level, simultaneously SIM_IO is changed to receive mode.After waiting for 40,000 to 45,000 clock cycle RST is changed to high level, waits for the reset answer (ATR, Answer to Reset) of SIM card.In 400 to 40,000 clock cycle after this, do not receive correct ATR, judge that then this smart card is the fault card or does not have effectively card insertion.
As receive and then can carry out follow-up user identity identification, the transmission of data such as network registry and telephone directory, note by correct ATR.
Simultaneously, the interface clock administration module is opened the high-speed interface clock provides smart card to carry out the terminal type detection, and the sequential chart of electrification reset sees Fig. 6 for details.
(2) initialization of USB/SD/MMC equipment:
After baseband processor received correct SIM ATR, the AT command response that the USB/SD/MMC controller produces according to processor (as MRDY:<status=4 〉) started the example operation of USB device, or SD/MMC device initialize process.
(3) high-speed interface control and transfer of data:
After electrification reset and SD/MMC initialization were finished, as the high-speed interface operation that nothing continues, then main frame (baseband processor or multimedia application processor) can pass through closing high-speed interface clock (C6), notice SIM card closing high-speed interface logic.Carry out the high-speed interface transfer of data as need, then main frame recovers to set up high-speed interface clock (C6) signal, and the notice SIM card is opened the high-speed interface logic, and sends the corresponding command, after receiving correct response signal, follow USB/SD/MMC standard log-on data transmission process.
Consider the description of this invention disclosed herein and special embodiment, other embodiment of the present invention are conspicuous for a person skilled in the art.These explanations and embodiment only consider as an example that they all belong to by within the indicated protection scope of the present invention and spirit of claims.