CN109815749A - Control system, method and the chip of SE - Google Patents

Control system, method and the chip of SE Download PDF

Info

Publication number
CN109815749A
CN109815749A CN201711164962.0A CN201711164962A CN109815749A CN 109815749 A CN109815749 A CN 109815749A CN 201711164962 A CN201711164962 A CN 201711164962A CN 109815749 A CN109815749 A CN 109815749A
Authority
CN
China
Prior art keywords
power
processor
electrical component
upper electrical
signal
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.)
Granted
Application number
CN201711164962.0A
Other languages
Chinese (zh)
Other versions
CN109815749B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201711164962.0A priority Critical patent/CN109815749B/en
Priority to PCT/CN2018/090424 priority patent/WO2019100693A1/en
Publication of CN109815749A publication Critical patent/CN109815749A/en
Application granted granted Critical
Publication of CN109815749B publication Critical patent/CN109815749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/72Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information in cryptographic circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/81Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • G07G1/14Systems including one or more distant stations co-operating with a central processing unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

A kind of system, method and chip controlling SE.The system comprises SE, processor, upper electrical component, PMU and communication units;SE, processor, upper electrical component are located in the first semiconductor chip;Communication unit exports the supreme electrical component of the first power on signal for receiving the signal of communication for meeting preset condition, and according to signal of communication;Upper electrical component is powered on for triggering processor;Processor powers on instruction information for obtaining SE from upper electrical component, and powers on instruction information control SE according to SE and power on;SE carries out safe handling for interacting safety communication data with communication unit, and to safety communication data;PMU, for powering for processor, SE, upper electrical component and communication unit.Scheme provided by the embodiments of the present application can power on carry out safe handling by the electric SE that still triggers later under processor, not influence the use of security function under the premise of saving power consumption as far as possible for the scheme of built-in SE.

Description

Control system, method and the chip of SE
Technical field
The invention relates to chip technology field, in particular to a kind of control safety element (Secure Element, SE system, method and chip).
Background technique
With the continuous development of mobile terminal, mobile terminal has more and more functions, while people are for mobile whole Data safety in end is also increasingly paid attention to.In general, protecting the data safety in mobile terminal by SE.SE, which is independently of, is Primary processor has encryption and a decryption logic in system, and internal includes being exclusively used in the processor of safe handling and all kinds of hard Part circuit, for carrying out encryption and decryption to the data of interaction between equipment in data exchange process, to improve the safety of data.It is logical For often, it includes mobile payment that SE, which can be used for realizing, bus card is swiped the card or all kinds of safe handlings such as gate inhibition swipes the card.
Currently, in the terminal, in application processor (Application Processor, AP) chip Set the scheme of SE.The scheme of built-in SE, which refers to, to be integrated in SE on the AP chip of mobile terminal namely SE is one of AP chip Point.For built-in SE scheme, whether SE starts Power Management Unit (the Power Management dependent on mobile terminal Unit, PMU) whether power to AP chip.When mobile terminal is in open state, PMU powers to AP chip, and AP chip is in Energized state, SE are also at energized state;When mobile terminal is in off-mode, PMU stops powering to AP chip, AP chip In off-position, SE is also at off-position.
For the scheme of built-in SE, when mobile terminal is in off-mode, since the SE being integrated on AP chip is in Off-position, therefore safe handling can not be carried out to interaction data, cause the safety of data to reduce.
Summary of the invention
System, method and the chip that the embodiment of the present application provides a kind of control SE work as system for the scheme of built-in SE When middle processor is in power-down state, realizes and do safe handling using SE.
In a first aspect, the embodiment of the present application provides a kind of system for controlling SE, including SE, processor, upper electrical component, power supply Administrative unit PMU and communication unit.SE, processor, upper electrical component are located in the first semiconductor chip.Optionally, the PMU and At least one in communication unit is located in first semiconductor chip.Optionally, the PMU and communication unit are located at the first half In other same or different semiconductor chips except conductor chip.
Communication unit, for receiving the signal of communication for meeting preset condition, and according to telecommunications in signal of communication output first Number supreme electrical component.Upper electrical component for obtaining the first power on signal from communication unit, and triggers processor and powers on.Place Device is managed, for switching to the first power-up state from the first power-down state under the triggering of upper electrical component, and is obtained from upper electrical component SE powers on instruction information, and powers on instruction information control SE according to SE and power on.SE is used under the control of a processor under second Electricity condition switches to the second power-up state, safety communication data is interacted with communication unit, and carry out safety to safety communication data Processing.PMU, for powering for processor, SE, upper electrical component and communication unit.
In scheme provided by the embodiments of the present application, for the scheme of built-in SE, by communication unit detect meet it is pre- If being powered on to trigger processor, to module the first power on signal of output is powered on so that with processing when the signal of communication of condition Device is integrated in the SE electrifying startup on same chip, and then interacts safety communication data with communication unit and carry out safe place to it Reason, can still triggering SE power on carry out safe handling after electricity under processor, not shadow under the premise of saving power consumption as far as possible Ring the use of security function.
In a kind of possible embodiment, in terms of upper electrical component is powered on for triggering processor, upper electrical component tool Body is for exporting the second power on signal to PMU.PMU, for obtaining the second power on signal from upper electrical component, and according to second Power on signal is powered to processor.
It is powered on by the above-mentioned means, electrical component is enabled to trigger processor by PMU.
In another possible design, in terms of processor is powered on for controlling SE, processor is specifically used for PMU Send third power on signal.PMU, for receiving the third power on signal from processor, and according to third power on signal to SE Power supply.
It is powered on by the above-mentioned means, enabling a processor to control SE.
In another possible design, PMU is also used to when detecting battery capacity less than the first preset threshold, to Processor sends the first off signal.Processor is also used to receive the first off signal from PMU, and according to the first shutdown Signal executes the first power-off operation, wherein the first power-off operation includes: electric under control processor and SE.
In embodiments of the present invention, by the first power-off operation, electricity under control processor and SE, so that mobile terminal passes through The upper electrical component triggering SE of not lower electricity powers on carry out safe handling.
In another possible design, PMU is also used to when detecting battery capacity less than the second preset threshold, defeated The 4th supreme electrical component of power on signal out, the second preset threshold is less than the first preset threshold.Upper electrical component is also used to acquisition and comes from The 4th power on signal of PMU, and trigger processor and power on.Processor is also used in the case where upper electrical component is triggered the electric shape under first State switches to the first power-up state, and obtains shutdown instruction information from upper electrical component, and executes the according to shutdown instruction information Two power-off operations, the second power-off operation include: electric under control processor, SE and upper electrical component.
In the embodiment of the present application, battery capacity is detected by PMU, when battery capacity is lower than the second preset threshold, PMU Upward electrical component exports the 4th power on signal, so that upper electrical component triggering processor powers on, executes the second shutdown by processor Operation, allows mobile terminal to enter normal shutdown state.By the above-mentioned means, mobile terminal is avoided to run out of in the first off-mode Electricity, so that there are a part of electricity to use for subsequent (such as placement of emergency calls, starting shutdown alarm clock).
In another possible design, upper electrical component is also used to: being started after processor executes the first power-off operation Timer;When the timer expires, triggering processor powers on.Processor is also used to electric under first in the case where upper electrical component is triggered State switches to the first power-up state, and obtains shutdown instruction information from upper electrical component, and execute according to shutdown instruction information Second power-off operation, the second power-off operation include: electric under control processor, SE and upper electrical component.
In the embodiment of the present application, by timer timing, after the duration of timer setting, at upper electrical component control Reason device powers on, and executes the second power-off operation by processor, mobile terminal is allowed to enter normal shutdown state.By the above-mentioned means, The duration that mobile terminal enters the first off-mode can be set according to user demand, mobile terminal is avoided to keep the first shutdown shape State cross for a long time and cause mobile terminal to run out of electricity in the first off-mode, so as to there are a part of electricity for it is subsequent (such as Placement of emergency calls, starting shutdown alarm clock etc.) it uses.
In another possible design, it includes default mark that preset condition, which is in signal of communication, alternatively, preset condition is The frequency range of signal of communication is in default frequency range.
By the above-mentioned means, it is relevant to itself function of swiping card of offer logical to enable communication unit accurately to pick out Believe signal.
In another possible design, processor is also used to after powering on instruction information from upper electrical component acquisition SE, The execution program of SE is loaded onto the memory inside the first semiconductor chip from the memory outside the first semiconductor chip. SE after being also used to switch to the second power-up state from the second power-down state under the control of a processor, will execute program from the The memory of semiconductor chip interior is loaded onto the memory inside SE, and is run and executed program to realize and communication unit Interaction safety communication data, and the function of safe handling is carried out to safety communication data.
By the above-mentioned means, the execution program of SE is stored in the memory outside the first semiconductor chip, Ke Yijie The memory space for saving SE, enables SE to design more lightening.
In another possible design, processor is also used to after SE is powered on execute third by preset duration and close Machine operation;Alternatively, starting timer clock after SE is powered on, when receiving the resetting order of SE transmission, timer clock is reset, Wherein, when SE often receives the signal from communication unit, resetting order is sent to processor, when timer clock time-out, is held Row third power-off operation;Wherein, third power-off operation includes electric under control processor and SE, and the upper electrical component is maintained to be in logical Electricity condition.
By above two mode, realizes and execute automatic close after SE carries out safe handling to safety communication data Machine avoids the electricity of waste mobile terminal.
On the other hand, the embodiment of the present application provides a kind of method for controlling SE, this method comprises: communication unit reception meets The signal of communication of preset condition, and exported in the first power on signal to the first semiconductor chip according to signal of communication and power on group Part;Upper electrical component obtains the first power on signal from communication unit, and the processor triggered in the first semiconductor chip powers on; Processor switches to the first power-up state from the first power-down state under the triggering of upper electrical component, obtains SE from upper electrical component and powers on finger Show information, and the SE in instruction information the first semiconductor chip of control is powered on according to SE and is powered on;SE under the control of a processor from Second power-down state switches to the second power-up state, interacts safety communication data with communication unit, and to safety communication data into Row safe handling;It is above-mentioned processor, SE, upper electrical component and communication unit power supply by PMU.
Another aspect, the embodiment of the present application provide a kind of chip, including SE, processor and upper electrical component.Upper electrical component, coupling The first power on signal from communication unit is received, and trigger processing for receiving the power supply of PMU together in communication unit and PMU Device powers on;Processor is coupled in electrical component, SE and PMU, for receiving the power supply of PMU under the triggering of upper electrical component and from the One power-down state switches to the first power-up state, and obtains SE from upper electrical component and power on instruction information, and power on finger according to SE Show that information control SE is powered on;SE is coupled in communication unit, processor and PMU, for receiving PMU's under the control of a processor It powers and switches to the second power-up state from the second power-down state, safety communication data is interacted with communication unit, and logical to safety Letter data carries out safe handling.Optionally, the chip can also by possible embodiments various in first aspect or design come It realizes.
Another aspect, the embodiment of the present application provide a kind of mobile terminal, which includes as described in terms of above-mentioned The system for controlling SE.
Another aspect, the embodiment of the present application provide a kind of computer program product, when the computer program product is by first When processor in semiconductor chip executes, for realizing the method and step of processor side described in above-mentioned aspect.
Another aspect, the embodiment of the present application provide a kind of computer program product, when the computer program product is by first When SE in semiconductor chip is executed, for realizing the method and step of the side SE described in above-mentioned aspect.
Compared to the prior art, in scheme provided by the embodiments of the present application, for the scheme of built-in SE, pass through communication unit When detecting the signal of communication for meeting preset condition to module the first power on signal of output is powered on, to trigger on processor Electricity so that being integral to the processor in the SE electrifying startup on same chip, and then interacts safety communication data with communication unit And safe handling is carried out to it, carry out safe handling can be powered on by the electric SE that still triggers later under processor, saved as far as possible The use of security function is not influenced under the premise of power consumption.
Detailed description of the invention
Fig. 1 is the schematic diagram for the implementation environment that the application one embodiment provides;
Fig. 2 is the structural schematic diagram for the mobile terminal that the application one embodiment provides;
Fig. 3 is the structural schematic diagram for the first semiconductor chip that the application one embodiment provides;
Fig. 4 is the flow chart of the method for the control SE that the application one embodiment provides;
Fig. 5 is the flow chart of the method for the control SE that another embodiment of the application provides;
Fig. 6 is the flow chart for entering normal shutdown state from the first off-mode that the application one embodiment provides;
Fig. 7 is the flow chart for entering normal shutdown state from the first off-mode that another embodiment of the application provides;
Fig. 8 is the flow chart of the method for the control SE that another embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.The system architecture and business scenario of the embodiment of the present application description are to clearly say The technical solution of bright the embodiment of the present application, does not constitute the restriction to technical solution provided by the embodiments of the present application, and this field is general Logical technical staff is it is found that with the differentiation of system architecture and the appearance of new business scene, technical side provided by the embodiments of the present application Case is equally applicable for similar technical problem.
Referring to FIG. 1, the schematic diagram of the implementation environment provided it illustrates the application one embodiment.The implementation environment packet It includes: mobile terminal 10 and card-reading apparatus 20.It is portable that mobile terminal 10 can be mobile phone, tablet computer, wearable device etc. Formula electronic equipment.Card-reading apparatus 20 can be any electronic equipment with card-reading function, such as point of sale (Point Of Sales, POS) machine, public transport card reader, gate inhibition's card reader etc..
Illustratively, when card-reading apparatus 20 is POS machine, mobile terminal 10 can replace bank card and card-reading apparatus 20 into Row communication, to complete cCredit card payment operation;When card-reading apparatus 20 is public transport card reader, mobile terminal 10 can replace public transport Card is communicated with card-reading apparatus 20, to complete bus card-reading operation;It is mobile whole when card-reading apparatus 20 is gate inhibition's card reader End 10 can replace access card and be communicated with card-reading apparatus 20, to complete gate inhibition's swiping card.
Equipped with compatible communication unit in mobile terminal 10 and card-reading apparatus 20, led to by above-mentioned communication unit Letter completes swiping card.It wherein, can be by short-distance wireless communication technology come complete between mobile terminal 10 and card-reading apparatus 20 At swiping card.Illustratively, when being led between mobile terminal 10 and card-reading apparatus 20 by short-range wireless communication protocol Letter, come when completing swiping card, above-mentioned communication unit can be short haul connection chip, such as near-field communication (Near Field Communication, NFC) chip.
Use above scene is the application of swiping the card based on short haul connection, but actually this programme can extend to it His application scenarios.For example, communication unit can support all kinds of cellular communications, for example, global system for mobile telecommunications (Global System of Mobile communication, GSM) system, CDMA (Code Division Multiple Access, CDMA) system, wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA) system System, General Packet Radio Service (General Packet Radio Service, GPRS), long term evolution (Long Term Evolution, LTE) system, LTE frequency division duplex (Frequency Division Duplex, FDD) system, LTE time division duplex (Time Division Duplex, TDD), Universal Mobile Communication System (Universal Mobile Telecommunication System, UMTS) etc..When communication unit supports any type of cellular communication, then movement is whole End 10 can realize the safety operation based on communication, such as subscriber identification module with opposite equip. (such as server, base station etc.) The safety operation of (Subscriber Identification Module, SIM).
In the embodiment of the present application, as shown in Fig. 2, mobile terminal 10 uses the scheme of built-in SE.The mobile terminal 10 packet The system for including control SE, which may include: the first semiconductor chip 11, communication unit 12 and PMU 13.First semiconductor Processor 11a, upper electrical component 11b and SE 11c are integrated on chip 11.Wherein, processor 11a respectively with SE 11c and PMU 13 couplings, SE 11c couples with PMU 13 and communication unit 12 respectively, upper electrical component 11b respectively with PMU 13 and communication unit 12 Coupling.When communication unit 12 supports short haul connection, then SE 11c is corresponding executes and related safe handling of swiping the card.Work as communication unit Member 12 supports cellular communication, then SE 11c is corresponding executes safe handling related with the SIM of cellular communication, for example, virtually SIM function or the safe encryption and decryption of SIM card or authentication function.The application subsequent embodiment is made for swiping the card safely as application scenarios It introduces, but this application scenarios are not used in the scope of application for limiting technical solution.
First semiconductor chip 11 is responsible for the operations of processing mobile terminal 10, including startup and shutdown operation.It is optional Ground, the first semiconductor chip 11 are the AP chips of mobile terminal 10.The AP chip includes application processor, and except application processing Other one or more devices outside device, to form a System on Chip/SoC (System on Chip, SoC).First semiconductor core Piece 11 further includes at least one processor, memory is for depositing in addition to including processor 11a, upper electrical component 11b and SE 11c Store up the program that the first semiconductor chip 11 temporarily loads and the ephemeral data that processor 11a operation program generates.For example, this is extremely A few memory is random access memory (Random Access Memory, RAM).
Optionally, processor 11a can be application processor, for running the general-purpose operating system of mobile terminal 10, such as Android (Android) operating system, iOS operating system, Windows operating system etc..Illustratively, processor 11a is to include Including ARM (Advanced RISC Machine) processor central processing unit (Central Processing Unit, ) or micro-control unit (Micro Control Unit, MCU) CPU.Further, processor 11a can be used for running based on above-mentioned The types of applications scene or other programs of operating system.
Upper electrical component 11b be used for carry out shutdown swipe the card when, triggering processor 11a power on.Wherein, when PMU 13 is in logical When electricity condition, upper electrical component 11b is also at energized state.Upper electrical component 11b includes timer (Timer) and is placed in electrical component RAM in 11b.Timer is used for timing, after timing time-out, so that upper electrical component 11b triggering processor 11a is powered on.It powers on RAM in component 11b is used for the interim storing data when the first semiconductor chip 11 is in off-position.Upper electrical component 11b is used In other at least one portion in the first semiconductor chip 11, as it is electric under processor 11a when, in the shape that is powered always State.
SE 11c is also used to mobile terminal 10 and opposite equip. (in scene of such as swiping the card for communicating with communication unit 12 Card-reading apparatus 20) between interaction safety communication data carry out safe handling, to improve the safety of data.Safe handling can To include at least one of following: data encryption, data integrity protection.Safe handling may also include all kinds of safe drivers or Security application processing.For example, SE 11c can support secure operating system software to handle, which be can be respectively Class platform software, such as chip operating system (Chip Operating System, COS).A kind of typical COS is exactly to support brush Block the operating system of operation.Further, SE 11c can support security application software to handle.Typical security application software can be with Make the software of swiping the card based on above-mentioned COS.
Communication unit 12 with card-reading apparatus 20 for being communicated, to realize swiping card.For example, when communication unit 12 is When NFC chip, radio frequency identification can be based between the NFC chip of mobile terminal 10 and the NFC chip of card-reading apparatus 20 (Radio Frequency Identification, RFID) agreement is communicated, with the signal in interactive application of swiping the card.Such as it Preceding described, under other application scenarios, communication unit 12 can support other kinds of communication, such as cellular communication.Communication unit 12 It is used to execute signal interaction with opposite equip., may include the baseband processor for executing communication protocol and algorithm process Transceiver with for receiving and transmitting signal, can further include antenna and radio frequency front-end devices, such as filtering, impedance matching and function The components such as rate amplification.
PMU 13 can be a kind of highly integrated Power Management Unit for portable use, be used for chip (such as First semiconductor chip 11 described above and communication unit 12) or it is (as described above to locate to the composition component of chip Manage device 11a, upper electrical component 11b and SE 11c) stabilized power supply is provided.It is appreciated that PMU 13 can integrate in the first semiconductor In chip 11, or exist as an individual chips.
Optionally, as shown in Fig. 2, mobile terminal 10 further include: battery 14.Battery 14 respectively with PMU 13 and communication unit 12 couplings.Battery 14 is used to provide electric energy for mobile terminal 10.The electric energy that PMU 13 can be provided based on battery 14 further produces The power supply of raw first semiconductor chip 11.
Optionally, mobile terminal 10 further includes external memory, which refers to outside the first semiconductor chip 11 The memory in portion.Memory outside first semiconductor chip 11 can be Embedded multimedia storage card (Embedded Multi Media Card, eMMc) or Common Flash Memory storage (Universal Flash Storage, UFS).First semiconductor Memory outside chip 11 includes replay protection partition holding (Replay Protected Memory Block, RPMB), RPMB is used to store the execution program of SE 11c.
Illustratively, as shown in figure 3, it illustrates a kind of structural schematic diagrams of first semiconductor chip 11.The first half lead Body chip 11 includes: processor 11a, upper electrical component 11b, SE 11c, RAM 11d, storage control 11e.
The RAM 11d of first semiconductor chip 11 is that one of first semiconductor chip 11 can be straight with processor 11a The memory for connecing interaction data, usually as processor 11a be currently running in program generate ephemeral data storaging medium. The data interaction of the first semiconductor chip of storage control 11e control 11 and external memory.
It should be noted that the first semiconductor chip 11 does not include communication unit 12 and PMU13 in Fig. 2 and Fig. 3, but this It is a kind of citing.In fact, PMU 13 can integrate in the first semiconductor chip 11, the first semiconductor core can not also be integrated in Piece 11;Communication unit 12 can integrate in the first semiconductor chip 11, can not also be integrated in the first semiconductor chip 11.At this During application is implemented, only it is not located at the situation on the first semiconductor chip 11 with PMU 13 and communication unit 12 and is introduced.PMU 13 and communication unit 12 can be located at the first semiconductor chip 11 except identical or different chip on.
In the embodiment of the present application, for the scheme of built-in SE, provide one kind can under processor after electricity still Triggering SE powers on the technical solution for carrying out safe handling, can not influence making for security function under the premise of saving power consumption as far as possible With, such as meet user mobile terminal is under low electric off-mode and realize that cCredit card payment, bus card-reading, gate inhibition such as swipe the card at the behaviour The practical application request of work, technical solution provided by the embodiments of the present application have stronger practical value.
Below by based on it is recited above the invention relates to general character in terms of, it is further detailed to the embodiment of the present application It describes in detail bright.In conjunction with reference mobile terminal 10 shown in Fig. 2, when the system by above-mentioned control SE realizes shutdown function of swiping card, The function of its each section building block is as follows:
Communication unit 12, for receiving the signal of communication for meeting preset condition, and according in signal of communication output first The supreme electrical component 11b of electric signal.The signal of communication can be foregoing various types of signals of communication, including but not limited to Short-range signal and cellular communication signal.
In the case where mobile terminal 10 is in the first off-mode, the communication unit 12 in mobile terminal 10 can be received Different signals of communication.Wherein, the first off-mode, which refers to remove in mobile terminal 10, powers on group on first semiconductor chip 11 The case where at least one component except part 11b, communication unit 12 and PMU 13 is in power-down state, for example, being closed first Under machine state, processor 11a and the SE 11c of the first semiconductor chip 11 are in power-down state.In the embodiment of the present application, Power-down state includes power-off state and low power consumpting state, and power-off state refers to that the component of chip or chip does not connect The state in energization source, also referred to as off-position.Low power consumpting state refers to the component of chip or chip compared to normal work Make state consumption more low-power consumption to maintain the state of operation, enters normal operating conditions compared to by off-position, by low-power consumption When state enters normal operating conditions, the component starting speed of chip or chip is faster.For example, under low power consumpting state, The component of chip can not achieve the function or complete function of the component.In another example under low power consumpting state, the member of chip Device only receives minimum voltage, but the undertension is to maintain it to realize complete processing function.As previously mentioned, in Fig. 2 and Fig. 3 Each unit can be the component in chip, furthermore may include other components, such as the first semiconductor chip in chip It can also include graphics processing unit (Graphics Processing Unit, GPU), codec, interface circuit, three in 11 Tie up (Three Dimensional, 3D) processing circuit, image-signal processor (Image Signal Processing, ISP), At least one in artificial intelligence (Artificial Intelligence, AI) processor, audio processor or sensor hub ?.At least one of these components can maintain power-up state always in upper electrical component 11b as processor 11a When be in power-down state, to save power consumption.
It can cooperate the card-reading apparatus 20 of realization function of swiping card that can launch outward with mobile terminal 10 and meet preset condition Signal of communication, the signal of communication is for enabling the mobile terminal 10 around card-reading apparatus 20 to perceive the card-reading apparatus 20 In the presence of.For example, card-reading apparatus 20 persistently launches outward signal of communication, or primary communication is launched outward every prefixed time interval Signal.Communication unit 12 in mobile terminal 10 after receiving signal of communication, detect the signal of communication whether meet it is default Condition, if the signal of communication meets preset condition, upward electrical component 11b exports the first power on signal.Illustratively, it is assumed that logical Believe that unit 12 is NFC chip, then when NFC chip receives the signal of communication for meeting preset condition, passes through universal input/output The upward electrical component 11b of (General Purpose Input Output, GPIO) interface exports the first power on signal.Wherein, on The GPIO interface for obtaining the first power on signal is provided on electrical component 11b.First power on signal is for triggering electrical component 11b control processor 11a is powered on.
Optionally, it includes default mark that preset condition, which is in signal of communication,.Default mark is for in mobile terminal 10 Communication unit 12 recognizes whether received signal of communication is signal of communication relevant to the function of swiping card that itself is provided.Example It such as, include pre- bidding relevant to bus card-reading function in the signal of communication that the communication unit 12 in mobile terminal 10 detects Know, then after communication unit 12 picks out the default mark, determines that subsequent execution bus card-reading operates.Alternatively, preset condition is The frequency of signal of communication is in default frequency range.Above-mentioned default frequency range can be preset according to actual needs, such as the default frequency Section can be frequency range used in NFC, a frequency sub-band being also possible in frequency range used in NFC.Certainly, in other possibility Embodiment in, preset condition is divided into preset duration between can also be signal of communication, which can be a number Value, is also possible to a value range.In practical applications, preset condition can be preset according to actual needs, to ensure to lead to Letter unit 12 can accurately pick out signal of communication relevant to the function of swiping card that itself is provided and other unrelated communications are believed Number.When communication unit 12 is short haul connection chip, such as NFC chip, signal of communication can be radiofrequency signal.
Upper electrical component 11b for obtaining the first power on signal from communication unit 12, and triggers processor 11a and powers on.
Optionally, upper electrical component 11b triggers processor 11a in the following way and powers on: in upper electrical component 11b output second Electric signal to PMU 13, second power on signal is powered for triggering PMU 13 to processor 11a.PMU 13 is obtained to come from and be powered on The second power on signal of component 11b, and powered according to second power on signal to processor 11a.
Optionally, upper electrical component 11b includes the first register.Upper electrical component 11b is also used to getting telecommunications on first After number, the SE that write-in is used to indicate that control SE 11c is powered in the first register powers on instruction information.For example, upper electrical component It is " 01 " that the SE that 11b is written in the first register, which powers on instruction information, is used to indicate processor 11a control SE 11c and powers on.
Processor 11a, for switching to the first power-up state from the first power-down state under upper electrical component 11b triggering, from Upper electrical component 11b obtains SE and powers on instruction information, and powers on instruction information control SE 11c according to SE and power on.
First power-down state can be power-off state, be also possible to low power consumpting state, and the first power-up state is logical Electricity condition.Optionally, processor 11a obtains SE from the first register of upper electrical component 11b and powers on instruction information.
Optionally, processor 11a controls SE 11c in the following way and powers on: processor 11a sends third to PMU 13 Power on signal, third power on signal are used to indicate PMU 13 and power to SE 11c.PMU 13 receives the third from processor 11a Power on signal, and powered according to the third power on signal to SE 11c.
SE 11c, for switching to the second power-up state from the second power-down state under the control of processor 11a, with communication Unit 12 interacts safety communication data, and carries out safe handling to safety communication data.
Second power-down state can be power-off state, be also possible to low power consumpting state, and the second power-up state is logical Electricity condition.Illustratively, it when card-reading apparatus 20 is POS machine, after SE 11c is powered on, is communicated and is interacted with communication unit 12 Payment information, while safe handling is carried out to payment information, and communication unit 12 is communicated with POS machine, completes cCredit card payment operation; When card-reading apparatus 20 is public transport card reader, after SE 11c is powered on, carry out communicating and interacting bus card letter with communication unit 12 Breath, while safe handling is carried out to public transport card information, and communication unit 12 is communicated with public transport card reader, completes bus card-reading behaviour Make;When card-reading apparatus 20 is gate inhibition's card reader, after SE 11c is powered on, carry out communicating and interacting gate inhibition's letter with communication unit 12 Breath, while carrying out safe handling to access information, and communication unit 12 is communicated with gate inhibition's card reader, and completion gate inhibition swipes the card behaviour Make.
In scheme provided by the embodiments of the present application, for the scheme of built-in SE, met by communication unit 12 receiving Upward electrical component 11b exports the first power on signal when the signal of communication of preset condition, powers on to trigger processor 11a, so that It obtains and is integrated in the SE 11c electrifying startup on same chip with processor 11a, and then interact secure communication number with communication unit 12 Safe handling is carried out according to and to it, SE 11c can be still triggered after electricity at processor 11a and power on carry out safe handling, The use of security function is not influenced under the premise of saving power consumption as far as possible.
Following is the application embodiment of the method, and embodiment of the method is corresponding with product embodiments above.The application is produced The content not described in product embodiment, reference can be made to the application embodiment of the method;Similarly, in the application embodiment of the method not The content of description, reference can be made to the application product embodiments.
Referring to FIG. 4, the flow chart of the method for controlling SE provided it illustrates the application one embodiment.This method can Applied in mobile terminal 10 shown in Fig. 2.This method may include the following steps:
Step 401, communication unit 12 receives the signal of communication for meeting preset condition, and according in signal of communication output first The supreme electrical component 11b of electric signal.
In the case where mobile terminal 10 is in the first off-mode, communication unit 12 is in energized state, can receive card reading and set Standby 20 signals of communication issued.When communication unit 12 receives the signal of communication for meeting preset condition, upward electrical component 11b is defeated First power on signal out, first power on signal are used to indicate electrical component 11b triggering processor 11a and power on.
Step 402, upper electrical component 11b obtains the first power on signal from communication unit 12, and triggers on processor 11a Electricity.
After upper electrical component 11b gets the first power on signal, automatic trigger processor 11a is powered on.Optionally, group is powered on Part 11b includes the first register.Upper electrical component 11b is written in the first register and uses after getting the first power on signal Instruction information is powered in the SE that instruction control SE 11c is powered on.
Step 403, processor 11a switches to the first power-up state from the first power-down state under upper electrical component 11b triggering, SE is obtained from upper electrical component 11b and powers on instruction information, and instruction information control SE 11c is powered on according to SE and is powered on.
Processor 11a is obtained from upper electrical component 11b and is indicated after switching to the first power-up state from the first power-down state Information executes subsequent operation according to the instruction information.Optionally, processor 11a is obtained from the first register of upper electrical component 11b Fetching shows information.If the instruction information that processor 11a is got is that SE powers on instruction information, then it represents that processor 11a is to move Dynamic terminal 10 is triggered in the case where be in the first off-mode to be powered on, processor 11a control SE 11c electrifying startup.
In addition, if the instruction information that gets of processor 11a is that normal boot-strap indicates information, then it represents that processor 11a is It is triggered and powers on when key booting, timing start-up or charging booting, then processor 11a executes normal boot-strap behaviour Make.Wherein, normal boot-strap operation includes start-up operation system and display user interface (User Interface, UI).
Step 404, SE 11c switches to the second power-up state from the second power-down state under the control of processor 11a, with Communication unit 12 interacts safety communication data, and carries out safe handling to safety communication data.
SE 11c is communicated with communication unit 12 after switching to the second power-up state from the second power-down state and is interacted peace All-pass letter data completes swiping card.Wherein, SE 11c carries out safe handling to safety communication data, and its purpose is to true It protects and the safety of the data interacted between communication unit 12.For example, carrying out encryption and decryption, message authentication code to safety communication data The safe calculation process such as (Message Authentication Code, MAC) operation or solution MAC operation.
Optionally, SE 11c is after electrifying startup, can by single-wire-protocol (Single Wire Protocol, SWP it) is communicated with communication unit 12, thus application protocol needed for receiving and responding the swiping card of the transmission of communication unit 12 Data cell (Application Protocol Data Unit, APDU) order.
Optionally, communication unit 12 is NFC chip.SE 11c is communicated with NFC chip, when completing swiping card, NFC core Piece is able to carry out card simulated operation, and card simulated operation refers to the card signal of the NFC chip simulation swiping card of being carried out, thus into Row is swiped the card.
In scheme provided by the embodiments of the present application, for the scheme of built-in SE, met by communication unit 12 receiving Upward electrical component 11b exports the first power on signal when the signal of communication of preset condition, powers on to trigger processor 11a, so that It obtains and is integrated in the SE 11c electrifying startup on same chip with processor 11a, and then interact secure communication number with communication unit 12 Safe handling is carried out according to and to it, SE 11c can be still triggered after electricity at processor 11a and power on carry out safe handling, The use of security function is not influenced under the premise of saving power consumption as far as possible.
Referring to FIG. 5, the flow chart of the method for controlling SE provided it illustrates another embodiment of the application.This method It can be applied in mobile terminal 10 shown in Fig. 2.This method may include the following steps:
Step 501, communication unit 12 receives the signal of communication for meeting preset condition, and according in signal of communication output first The supreme electrical component 11b of electric signal.
Step 502, upper electrical component 11b obtains the first power on signal from communication unit 12, and triggers on processor 11a Electricity.
Above-mentioned steps 501 and step 502 in Fig. 4 embodiment step 401 and step 402 it is identical, embodiment referring to fig. 4 In introduction explanation, the present embodiment repeats no more this.
Step 503, processor 11a runs processor ROM program, runs bootstrap by processor ROM program.
Processor 11a runs processor ROM program after electrifying startup, and processor ROM program, which is stored in, corresponds to place In the read-only memory (Read-Only Memory, ROM) for managing device 11a, which can be in the first semiconductor chip 11.Processing Device ROM program refers to whether need to run bootstrap for decision processor 11a.Processor 11a passes through processor ROM program Judge whether its mobile terminal 10 when powering on that is triggered is in the first off-mode;If so, operation bootstrap;If it is not, then Execute normal boot-strap operation.Bootstrap executes relevant to the first off-mode operation for control processor 11a, such as SE 11c is controlled under first off-mode to power on.If processor 11a by processor ROM program judge its be triggered power on when Mobile terminal 10 is not at the first off-mode, then shows that mobile terminal 10 is triggered in the case where being in normal shutdown state and power on, So processor 11a executes normal boot-strap operation.Optionally, normal shutdown state refers to all components in mobile terminal 10 The case where all in off-position.
It optionally, further include the second register in upper electrical component 11b.When processor 11a control mobile terminal 10 enters the When one off-mode, first state data are written in the second register of upper electrical component 11b, the first state data are for referring to Show that the processor 11a mobile terminal 10 when powering on that is triggered is in the first off-mode.Processor 11a is after electrifying startup, fortune Row processor ROM program obtains first state data by processor ROM program from above-mentioned second register, and according to One status data determines that its mobile terminal 10 when powering on that is triggered is in the first off-mode.In addition, when processor 11a is controlled When mobile terminal 10 enters normal shutdown state, the second status data is written in the second register in upper electrical component 11b, it should Second status data is used to indicate the processor 11a mobile terminal 10 when powering on that is triggered and is not at the first off-mode.Processor 11a runs processor ROM program after electrifying startup, obtains the from above-mentioned second register by processor ROM program Two-state data, and according to second status data determine its be triggered power on when mobile terminal 10 be not at the first off-mode
In a kind of possible embodiment, processor 11a determines that its mobile terminal 10 when powering on that is triggered is in After one off-mode, bootstrap is obtained from the memory outside the first semiconductor chip 11 by storage control, and The legitimacy of the bootstrap is verified, to ensure data safety.
In alternatively possible embodiment, when processor 11a control mobile terminal 10 enters the first off-mode, The bootstrap in the memory being stored in outside the first semiconductor chip 11 is obtained by storage control, and verifies the guidance The legitimacy of program, to ensure data safety, then by bootstrap storage into the RAM of upper electrical component 11b.Processor 11a It determines after it being triggered mobile terminal 10 being in the first off-mode when powering on, guidance journey is obtained from the RAM of upper electrical component 11b Sequence.
Step 504, processor 11a obtains SE from upper electrical component 11b by bootstrap and powers on instruction information, and controls SE 11c is powered on.
Processor 11a obtains SE by bootstrap from the first register of upper electrical component 11b and powers on instruction information, and Instruction information control SE 11c electrifying startup is powered on according to SE.
Optionally, processor 11a is after obtaining SE and powering on instruction information, by bootstrap by the execution program of SE 11c It is loaded onto the memory inside the first semiconductor chip 11 from the memory outside the first semiconductor chip 11, processor 11a The memory outside the first semiconductor chip 11 can be accessed by the storage control in the first semiconductor chip 11.SE 11c Execution program can be COS.In the present embodiment, the execution program of SE 11c is stored in outside the first semiconductor chip 11 In memory, by obtaining the execution program of SE 11c from the memory outside the first semiconductor chip 11, SE can be saved The memory space of 11c enables SE 11c to design more lightening.In other possible embodiments, SE 11c's is held Line program also can store in the memory inside SE 11c, or be stored in the memory inside the first semiconductor chip 11 In.
Step 505, SE 11c runs the ROM program of SE 11c, and the execution of SE 11c is loaded by the ROM program of SE 11c Program.
SE 11c runs the ROM program of SE 11c, the ROM program of SE 11c is for loading SE after electrifying startup The execution program of 11c.The ROM program of SE 11c is stored in the ROM inside SE 11c.
SE 11c is executed program and is loaded onto depositing inside SE 11c from the memory inside the first semiconductor chip 11 In reservoir.SE 11c can not load the execution program of SE 11c directly from the memory outside the first semiconductor chip 11, because This is loaded the execution program of SE 11c by processor 11a to the first semiconductor from the memory outside the first semiconductor chip 11 In memory inside chip 11, SE 11c passes through the ROM program of SE 11c from the storage inside the first semiconductor chip 11 again It is loaded in device in the memory that it is executed inside program to SE 11c, and runs the execution program.
Optionally, the execution program of SE 11c can be image file, image file will a series of specific files according to Certain format is fabricated to single file, to facilitate load and operation.
Optionally, by the ROM program of the processor operation SE 11c in SE 11c, SE 11c is executed program and is loaded into In the RAM of SE 11c, and run by the processor of SE 11c.
Optionally, before SE 11c runs the ROM program or its execution program of SE 11c, the conjunction for the program to be run is verified Method, to ensure data safety.Illustratively, by taking the execution program of SE 11c as an example, if check results are the execution of SE 11c Legitimacy of the procedure, then SE 11c runs the execution program;If check results are that the execution program of SE 11c is illegal, SE 11c is not Run the execution program.
Step 506, SE 11c executes program by it and interacts safety communication data with communication unit 12, and to secure communication Data carry out safe handling.
After SE 11c runs its execution program, communicated with communication unit 12, during communication, SE 11c can It is read from the memory outside the first semiconductor chip 11 by the interaction with processor 11a and needs to be sent to communication unit 12 Data, while SE 11c can will be written the first half from the received data of communication unit 12 by the interaction with processor 11a In memory outside conductor chip 11.
Optionally, SE 11c passes through interprocess communication (Inter-Process after running it and executing program Communication, IPC), mailbox memory (Mailbox) interacted with processor 11a, be stored in the first half with access and lead The data in memory outside body chip 11.Mailbox memory can also be replaced by bus bridge, no matter mailbox memory or Bus bridge is all the dedicated interaction channel between processor 11a and SE 11c.
In the present embodiment, SE 11c be one independently of the hardware except processor 11a, it can be achieved that all kinds of safety services Processing.With traditional safety zone (Trustzone) or credible performing environment (Trusted Execution Environment, TEE) it is different, all kinds of calculating that SE 11c carries out safe handling can be independent of processor 11a.For example, SE It include the processor for being exclusively used in safe handling in 11c, for running COS or giving the security application of COS.For another example SE It may also include the dedicated memory of safe handling, such as RAM or ROM in 11c, and be exclusively used in the various types of hardware of safe handling and add Fast device, such as key generator, encryption and decryption device, Hash (Hash) arithmetic unit or One Time Programmable (One Time Programable, OTP) memory.For another example other one or more devices in SE 11c and the first semiconductor chip 11 Between there are security isolation so that other one or more devices can not arbitrarily access the data for storing or running in SE 11c. In a kind of typical scheme, there are security isolations between SE 11c and processor 11a.Under above-mentioned security isolation, processor 11a can not arbitrarily access the data for storing or running in SE 11c.Under above-mentioned security isolation, SE 11c and processor 11a or Data interaction between other devices is both needed to the dedicated interaction channel by mentioning before.Above-mentioned dedicated interaction channel includes but not It is limited to the mailbox memory and bus bridge of the foregoing description.
SE 11c and the interaction safety communication data of communication unit 12 can be used for swiping card.Complete swiping card it Afterwards, mobile terminal 10 can restore to the first off-mode, so processor 11a can execute after completing swiping card Three power-off operations, third power-off operation include electricity under control processor 11a and SE 11c, and electrical component 11b, which is in, in maintenance is powered State.After processor completes third power-off operation, there is only upper electrical component 11b to be in energization shape in the first semiconductor chip State.
In a kind of possible embodiment, after SE 11c electrifying startup, processor 11a is executed after preset duration Third power-off operation.Processor 11a can execute third power-off operation by bootstrap after preset duration.It is exemplary Ground, it is assumed that preset duration is 10 seconds, then processor 11a executes third by bootstrap after SE 11c electrifying startup 10 seconds and closes Machine operation.
In alternatively possible embodiment, after SE 11c electrifying startup, processor 11a starts timer clock, When receiving the resetting order of SE 11c transmission, processor 11a resets timer clock, when timer clock time-out, processor 11a Execute third power-off operation.When SE 11c is communicated with communication unit 12, the signal from communication unit 12 is often received, then to place It manages device 11a and sends resetting order, processor 11a receives resetting order, then resets timer clock by bootstrap.
By above two mode, realizes after completing swiping card automatically into the first off-mode, avoid wave Take the electricity of mobile terminal 10.In addition, during above-mentioned automatic shutdown, if processor 11a receives the touching of normal boot-strap It signals, then no longer executes power-off operation, directly the operation of execution normal boot-strap.
Optionally, the processor 11a in the first semiconductor chip 11 is the control device of chip, can be CPU or MCU, Because MCU power consumption is smaller, MCU is used to facilitate to reduce the first semiconductor chip 11 when shutdown is swiped the card as processor 11a Power consumption.When processor 11a is MCU, in system, i.e. there is also other CPU in the first semiconductor chip 11, at this point, this its His CPU is the main core of the first semiconductor chip 11, and the power consumption of processor 11a is lower than above-mentioned main core, is the equal of one low Power consumption core.At this point, main core is application processor, for running such as operating system of Android one kind and based on the operating system Application software.Illustratively, processor 11a is only used for realizing necessary control function, such as entire first semiconductor The power consumption control of chip 11 or in which part of devices is not used in operation complicated operating system and application program.The power consumption control System includes but is not limited to the adjustment of clock frequency, operating voltage or operating current.Further, the power consumption of SE 11c can be lower than Processor 11a.
In scheme provided by the embodiments of the present application, for the scheme of built-in SE, met by communication unit 12 detecting Upward electrical component 11b exports the first power on signal when the signal of communication of preset condition, powers on to trigger processor 11a, so that It obtains and is integrated in the SE electrifying startup on same chip with processor 11a, and then interact safety communication data simultaneously with communication unit 12 Safe handling is carried out to it, SE can be still triggered after electricity at processor 11a and power on carry out safe handling, save as far as possible The use of security function is not influenced under the premise of power consumption.
Foregoing embodiments describe the method that SE 11c is controlled under the first off-mode, and following Fig. 6 embodiments will be introduced Control mobile terminal 10 enters the first off-mode and enters the process of normal shutdown state from the first off-mode.It please refers to Fig. 6, which may include the following steps:
Step 601, processor 11a executes the first power-off operation.
In the embodiment of the present application, user can choose whether to turn on by the configuration item in mobile terminal 10 The function of one off-mode.If opening, when mobile terminal 10 is shut down, processor 11a executes the first power-off operation, so that Mobile terminal 10 enters the first off-mode, so as to realize shutdown function of swiping card.Wherein, the first power-off operation includes: control It is electric under processor 11a and SE 11c processed.Optionally, the first power-off operation is electric under control processor 11a and SE 11c in addition to needing, It also needs to control electric under other components in mobile terminal 10 in addition to communication unit 12 and PMU 13.
In a kind of possible embodiment, processor 11a is held when receiving the first off signal of the transmission of PMU 13 The first power-off operation of row, the first off signal from PMU 13 when detecting battery capacity less than the first preset threshold to processor 11a is sent.Wherein the first preset threshold can be set based on practical experience.Illustratively, battery capacity 3000mAh, first Preset threshold is 150mAh, and when battery capacity is less than 150mAh, processor 11a executes the first power-off operation, so that mobile whole End 10 enters the first off-mode, while ensuring mobile terminal 10 still has the electricity of 150mAh to swipe the card for shutting down.
In alternatively possible embodiment, processor 11a is held when detecting the second off signal of user's triggering The first power-off operation of row, the second off signal are the signals of user's manual power-off operation triggering, for example, user's long-pressing power key into The second off signal can be triggered when row shutdown, then processor 11a executes the first shutdown behaviour when detecting the second off signal Make.
Step 602, for PMU 13 when detecting battery capacity less than the second preset threshold, the 4th power on signal of output is supreme Electrical component 11b.
After mobile terminal 10 enters the first off-mode, still due to upper electrical component 11b, PMU 13 and communication unit 12 In energized state, so mobile terminal 10 is still in the electricity of consumption battery.When battery capacity is lower than the second preset threshold, The upward electrical component 11b of PMU13 exports the 4th power on signal.Wherein, the second preset threshold can be set based on practical experience, can also To be set according to user demand, and the second preset threshold is less than the first preset threshold.
Step 603, upper electrical component 11b obtains the 4th power on signal from PMU 13, and triggers processor 11a and power on.
Optionally, upper electrical component 11b includes the first register.Upper electrical component 11b after getting the 4th power on signal, Write-in is used to indicate the shutdown instruction information for executing the second power-off operation in the first register.For example, upper electrical component 11b is The shutdown instruction information being written in one register is " 11 ", is used to indicate processor 11a and executes the second power-off operation.
Step 604, processor 11a switches to the first power-up state from the first power-down state under upper electrical component 11b triggering, Shutdown instruction information is obtained from upper electrical component 11b, and the second power-off operation is executed according to shutdown instruction information.
Processor 11a executes the second power-off operation, so that mobile terminal 10 enters normal shutdown state.Second power-off operation It include: electric under control processor 11a, SE 11c and upper electrical component 11b.Optionally, the second power-off operation further include: control PMU 13 and the lower electricity of communication unit 12.
In the embodiment of the present application, pass through PMU into after the first off-mode swiped the card of capable of shutting down in mobile terminal 13 detection battery capacities, when battery capacity is lower than the second preset threshold, telecommunications in the upward electrical component 11b of PMU 13 output the 4th Number, so that upper electrical component 11b triggering processor 11a is powered on, the second power-off operation is executed by processor 11a, allows mobile terminal Into normal shutdown state.By the above-mentioned means, avoiding mobile terminal from ruing out of electricity in the first off-mode, so that there are one Part electricity is used for subsequent (such as placement of emergency calls, starting shutdown alarm clock).
Above-mentioned Fig. 6 embodiment describes one kind that control mobile terminal 10 enters normal shutdown state from the first off-mode Possible case.Following Fig. 7 embodiments will introduce another control mobile terminal 10 and enter normal shutdown shape from the first off-mode The situation of state.Referring to FIG. 7, it may include the following steps:
Step 701, processor 11a executes the first power-off operation.
Above-mentioned steps 701 are identical as the step 601 in Fig. 6 embodiment, illustrate referring to the introduction in Fig. 6 embodiment, this reality It applies example and this is repeated no more.
Step 702, upper electrical component 11b starts timer after processor 11a executes the first power-off operation.
Upper electrical component 11b processor 11a execute the first power-off operation after start timer, i.e., when mobile terminal 10 into After entering the first off-mode, upper electrical component 11b starts timer, starts timing.
Step 703, when the timer expires, upper electrical component 11b triggering processor 11a is powered on.
After mobile terminal 10 enters the first off-mode after the duration of timer setting, upper electrical component 11b triggering Processor 11a is powered on.Optionally, upper electrical component 11b includes the first register.Upper electrical component 11b is in timer expiry Shi Write-in is used to indicate the shutdown instruction information for executing the second power-off operation in one register.
Step 704, processor 11a switches to the first power-up state from the first power-down state under upper electrical component 11b triggering, Shutdown instruction information is obtained from upper electrical component 11b, and the second power-off operation is executed according to shutdown instruction information.
Above-mentioned steps 704 are identical as the step 604 in Fig. 6 embodiment, and details refer to introducing in Fig. 6 embodiment Bright, the present embodiment repeats no more this.
In the embodiment of the present application, pass through timing into after the first off-mode swiped the card of capable of shutting down in mobile terminal Device timing, after the duration of timer setting, upper electrical component 11b control processor 11a is powered on, and is executed by processor 11a Second power-off operation allows mobile terminal to enter normal shutdown state.It is moved by the above-mentioned means, can be arranged according to user demand Terminal enters the duration of the first off-mode, avoids mobile terminal that the first off-mode is kept to cross for a long time and lead to mobile terminal Electricity is run out of in the first off-mode, so that there are a part of electricity for subsequent (such as placement of emergency calls, starting shutdown alarm clock Deng) use.
One exemplary embodiment of the application additionally provides a kind of chip, namely the first semiconductor chip 11 described above, The chip includes such as embodiment is mentioned before SE 11c, processor 11a and upper electrical component 11b.
One exemplary embodiment of the application additionally provides a kind of method for controlling SE, and this method is applied to the first semiconductor core In piece 11, as shown in figure 8, this method comprises the following steps:
Step 801, upper electrical component 11b receives the power supply of PMU 13, receives the first power on signal from communication unit 12, And it triggers processor 11a and powers on.
Step 802, processor 11a receives the power supply of PMU 13 under upper electrical component 11b triggering and from the first power-down state The first power-up state is switched to, SE is obtained from upper electrical component 11b and powers on instruction information, and instruction information control SE is powered on according to SE 11c is powered on.
Step 803, SE 11c receives the power supply of PMU 13 under the control of processor 11a and switches from the second power-down state To the second power-up state, safety communication data is interacted with communication unit 12, and safe handling is carried out to safety communication data.
Introduction explanation in relation to above-mentioned two embodiment sees above the introduction explanation of corresponding contents, and details are not described herein again.
One exemplary embodiment of the application additionally provides a kind of computer program product, which can be by Deposit in RAM, flash memory, ROM, Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), electricity Erasable programmable read-only memory (Electrically EPROM, EEPROM), register or it is well known in the art it is any its In the storage medium of its form, when the computer program product is executed by processor 11a, for realizing in above-described embodiment Manage the method and step of the side device 11a.
One exemplary embodiment of the application additionally provides a kind of computer program product, which can be by Deposit in the storage medium of RAM, flash memory, ROM, EPROM, EEPROM, register or any other form well known in the art In, when the computer program product is executed by SE 11c, for realizing the method and step of the side SE 11c in above-described embodiment.
Above-described specific embodiment carries out the purpose of the embodiment of the present application, technical scheme and beneficial effects It is further described, it should be understood that the foregoing is merely the specific embodiments of the embodiment of the present application, and does not have to In limit the embodiment of the present application protection scope, it is all on the basis of the technical solution of the embodiment of the present application, done it is any Modification, equivalent replacement, improvement etc. should all include within the protection scope of the embodiment of the present application.

Claims (21)

1. a kind of system for controlling safety element SE, which is characterized in that including SE, processor, upper electrical component, Power Management Unit PMU and communication unit;The SE, processor, upper electrical component are located in the first semiconductor chip;
The communication unit, for receiving the signal of communication for meeting preset condition, and according in signal of communication output first Electric signal is to the upper electrical component;
The upper electrical component for obtaining first power on signal from the communication unit, and triggers the processor It powers on;
The processor, for switching to the first power-up state from the first power-down state under the upper electrical component triggering, and SE is obtained from the upper electrical component and powers on instruction information, and the instruction information control SE is powered on according to the SE and is powered on;
The SE leads to for switching to the second power-up state from the second power-down state under the control of the processor with described Believe unit interaction safety communication data, and safe handling is carried out to the safety communication data;
The PMU, for powering for the processor, the SE, the upper electrical component and the communication unit.
2. system according to claim 1, which is characterized in that
In terms of the upper electrical component is powered on for triggering the processor, the upper electrical component is specifically used in output second Electric signal is to the PMU;
The PMU, for obtaining second power on signal from the upper electrical component, and according to second power on signal It powers to the processor.
3. system according to claim 1 or 2, which is characterized in that
In terms of the processor is powered on for controlling the SE, the processor is specifically used for sending third to the PMU Power on signal;
The PMU, for receiving the third power on signal from the processor, and according to the third power on signal to The SE power supply.
4. system according to any one of claim 1 to 3, which is characterized in that
The PMU is also used to when detecting battery capacity less than the first preset threshold, and Xiang Suoshu processor sends the first shutdown Signal;
The processor is also used to receive first off signal from the PMU, and according to first off signal Execute the first power-off operation, wherein first power-off operation includes: to control electricity under the processor and the SE.
5. system according to claim 4, which is characterized in that
The PMU is also used to when detecting the battery capacity less than the second preset threshold, the 4th power on signal of output to institute Electrical component is stated, second preset threshold is less than first preset threshold;
The upper electrical component is also used to obtain the 4th power on signal from the PMU, and triggers on the processor Electricity;
The processor, is also used to switch to described first from first power-down state under the upper electrical component triggering and powers on State obtains shutdown instruction information from the upper electrical component, and indicates that information executes the second power-off operation, institute according to the shutdown It includes: electric under the control processor, the SE and the upper electrical component for stating the second power-off operation.
6. system according to claim 4 or 5, which is characterized in that
The upper electrical component is also used to start timer after the processor executes first power-off operation;When described When timer expiry, triggers the processor and power on;
The processor, is also used to switch to described first from first power-down state under the upper electrical component triggering and powers on State, and shutdown instruction information is obtained from the upper electrical component, and indicate that information executes the second shutdown and grasps according to the shutdown Make, second power-off operation includes: electric under the control processor, the SE and the upper electrical component.
7. system according to any one of claim 1 to 6, which is characterized in that the preset condition is communication letter It include default mark in number, alternatively, the preset condition is the frequency of the signal of communication in default frequency range.
8. system according to any one of claim 1 to 7, which is characterized in that
The processor is also used to after powering on instruction information from the upper electrical component acquisition SE, by holding for the SE Line program is loaded onto the memory inside first semiconductor chip from the memory outside first semiconductor chip;
The SE is also used under the control of the processor switch to second power-up state from second power-down state Later, the memory execution program being loaded onto from the memory inside first semiconductor chip inside the SE In, and run the execution program and interact safety communication data with the communication unit to realize, and to the secure communication number According to the function of carrying out safe handling.
9. system according to any one of claim 1 to 8, which is characterized in that the processor is also used to:
Third power-off operation is executed by preset duration after the SE is powered on;
Alternatively,
Start timer clock after the SE is powered on, when receiving the resetting order that the SE is sent, resets the timing Clock, wherein when the SE is often received from the signal of the communication unit, Xiang Suoshu processor sends the resetting life It enables, when the timer clock time-out, executes the third power-off operation;
Wherein, the third power-off operation includes controlling electricity under the processor and the SE, and the upper electrical component is maintained to be in Energized state.
10. a kind of method for controlling safety element SE, which is characterized in that the described method includes:
Communication unit, which receives, meets the signal of communication of preset condition, and exports the first power on signal to the according to the signal of communication Upper electrical component in semiconductor chip;
The upper electrical component obtains first power on signal from the communication unit, and triggers first semiconductor core Processor in piece powers on;
The processor switches to the first power-up state from the first power-down state under the upper electrical component triggering, powers on from described Component obtains SE and powers on instruction information, and is powered on the SE that instruction information controls in first semiconductor chip according to the SE Electricity;
The SE switches to the second power-up state from the second power-down state under the control of the processor, with the communication unit Interaction safety communication data, and safe handling is carried out to the safety communication data;
It is the processor, the SE, the upper electrical component and communication unit power supply by PMU.
11. according to the method described in claim 10, it is characterized in that, the method also includes:
When the PMU detects battery capacity less than the first preset threshold, the PMU sends the first shutdown to the processor Signal;
The processor receives first off signal from the PMU, and executes the according to first off signal One power-off operation, first power-off operation include: to control electricity under the processor and the SE.
12. according to the method for claim 11, which is characterized in that the method also includes:
When the PMU detects the battery capacity less than the second preset threshold, the PMU exports the 4th power on signal to institute State electrical component;
The upper electrical component obtains the 4th power on signal from the PMU, and triggers the processor and power on;
The processor switches to first power-up state from first power-down state under the upper electrical component triggering, from The upper electrical component obtains shutdown instruction information, and indicates information the second power-off operation of execution according to the shutdown, and described second Power-off operation includes: electric under the control processor, the SE and the upper electrical component.
13. method according to claim 11 or 12, which is characterized in that the method also includes:
The upper electrical component starts timer after the processor executes first power-off operation;
When the timer expiry, the upper electrical component triggers the processor and powers on;
The processor switches to first power-up state from first power-down state under the upper electrical component triggering, from The upper electrical component obtains shutdown instruction information, and indicates information the second power-off operation of execution according to the shutdown, and described second Power-off operation includes: electric under the control processor, the SE and the upper electrical component.
14. a kind of chip, which is characterized in that including safety element SE, processor and upper electrical component;
The upper electrical component, is coupled in communication unit and Power Management Unit PMU, for receiving the power supply of the PMU, receives and From the first power on signal of the communication unit, and triggers the processor and power on;
The processor is coupled in the upper electrical component, the SE and the PMU, for connecing under the upper electrical component triggering It receives the power supply of the PMU and switches to the first power-up state from the first power-down state, and obtained on SE from the upper electrical component Electricity instruction information, and the instruction information control SE is powered on according to the SE and is powered on;
The SE is coupled in the communication unit, the processor and the PMU, for connecing under the control of the processor It receives the power supply of the PMU and switches to the second power-up state from the second power-down state, interact secure communication with the communication unit Data, and safe handling is carried out to the safety communication data.
15. chip according to claim 14, which is characterized in that
In terms of the upper electrical component is powered on for triggering the processor, the upper electrical component is specifically used in output second Electric signal is to the PMU, to indicate that the PMU powers to the processor.
16. chip according to claim 14 or 15, which is characterized in that
In terms of the processor is powered on for controlling the SE, the processor is specifically used for sending third to the PMU Power on signal, to indicate that the PMU powers to the SE.
17. chip described in any one of 4 to 16 according to claim 1, which is characterized in that
The processor is also used to receive the first off signal from the PMU, and is executed according to first off signal First power-off operation, first power-off operation include: to control electricity under the processor and the SE.
18. chip according to claim 17, which is characterized in that
The upper electrical component is also used to obtain the 4th power on signal from the PMU, and triggers the processor and power on;
The processor, is also used to switch to described first from first power-down state under the upper electrical component triggering and powers on State obtains shutdown instruction information from the upper electrical component, and indicates that information executes the second power-off operation, institute according to the shutdown It includes: electric under the control processor, the SE and the upper electrical component for stating the second power-off operation.
19. chip described in 7 or 18 according to claim 1, which is characterized in that
The upper electrical component is also used to start timer after the processor executes first power-off operation;When described When timer expiry, triggers the processor and power on;
The processor, is also used to switch to described first from first power-down state under the upper electrical component triggering and powers on State, and shutdown instruction information is obtained from the upper electrical component, and indicate that information executes the second shutdown and grasps according to the shutdown Make, second power-off operation includes: electric under the control processor, the SE and the upper electrical component.
20. chip described in any one of 4 to 19 according to claim 1, which is characterized in that
The processor is also used to after powering on instruction information from the upper electrical component acquisition SE, by holding for the SE Line program is loaded onto the memory inside first semiconductor chip from the memory outside first semiconductor chip;
The SE is also used under the control of the processor switch to second power-up state from second power-down state Later, the memory execution program being loaded onto from the memory inside first semiconductor chip inside the SE In, and run the execution program and interact safety communication data with the communication unit to realize, and to the secure communication number According to the function of carrying out safe handling.
21. chip described in any one of 4 to 20 according to claim 1, which is characterized in that the processor is also used to:
Third power-off operation is executed by preset duration after the SE is powered on;
Alternatively,
Start timer clock after the SE is powered on, when receiving the resetting order that the SE is sent, resets the timing Clock, wherein when the SE is often received from the signal of the communication unit, Xiang Suoshu processor sends the resetting life It enables, when the timer clock time-out, executes the third power-off operation;
Wherein, the third power-off operation includes controlling electricity under the processor and the SE, and the upper electrical component is maintained to be in Energized state.
CN201711164962.0A 2017-11-21 2017-11-21 System, method and chip for controlling SE Active CN109815749B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711164962.0A CN109815749B (en) 2017-11-21 2017-11-21 System, method and chip for controlling SE
PCT/CN2018/090424 WO2019100693A1 (en) 2017-11-21 2018-06-08 System for controlling se, method, and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711164962.0A CN109815749B (en) 2017-11-21 2017-11-21 System, method and chip for controlling SE

Publications (2)

Publication Number Publication Date
CN109815749A true CN109815749A (en) 2019-05-28
CN109815749B CN109815749B (en) 2021-01-15

Family

ID=66599715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711164962.0A Active CN109815749B (en) 2017-11-21 2017-11-21 System, method and chip for controlling SE

Country Status (2)

Country Link
CN (1) CN109815749B (en)
WO (1) WO2019100693A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272812A (en) * 2019-11-25 2021-01-26 深圳市大疆创新科技有限公司 Power management device, electronic equipment and movable platform assembly

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478607A (en) * 2009-01-20 2009-07-08 深圳华为通信技术有限公司 Electric power management apparatus and method for mobile terminal based on dual processor
CN103927200A (en) * 2014-03-25 2014-07-16 小米科技有限责任公司 Electronic equipment awakening method and related device
CN104778794A (en) * 2015-04-24 2015-07-15 华为技术有限公司 Mobile payment device and method
US20160234176A1 (en) * 2015-02-06 2016-08-11 Samsung Electronics Co., Ltd. Electronic device and data transmission method thereof
CN205540702U (en) * 2015-11-03 2016-08-31 质子世界国际公司 Electronic equipment
US20170041290A1 (en) * 2015-08-05 2017-02-09 Samsung Electronics Co., Ltd. Apparatus and method for transparent, secure element-based mediation of on-board diagnostic operations
CN106506472A (en) * 2016-11-01 2017-03-15 黄付营 A kind of safe mobile terminal digital certificate method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160118794A (en) * 2015-04-03 2016-10-12 삼성전자주식회사 Data communicating method using secure element and electronic system adopting the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478607A (en) * 2009-01-20 2009-07-08 深圳华为通信技术有限公司 Electric power management apparatus and method for mobile terminal based on dual processor
CN103927200A (en) * 2014-03-25 2014-07-16 小米科技有限责任公司 Electronic equipment awakening method and related device
US20160234176A1 (en) * 2015-02-06 2016-08-11 Samsung Electronics Co., Ltd. Electronic device and data transmission method thereof
CN104778794A (en) * 2015-04-24 2015-07-15 华为技术有限公司 Mobile payment device and method
US20170041290A1 (en) * 2015-08-05 2017-02-09 Samsung Electronics Co., Ltd. Apparatus and method for transparent, secure element-based mediation of on-board diagnostic operations
CN205540702U (en) * 2015-11-03 2016-08-31 质子世界国际公司 Electronic equipment
CN106506472A (en) * 2016-11-01 2017-03-15 黄付营 A kind of safe mobile terminal digital certificate method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272812A (en) * 2019-11-25 2021-01-26 深圳市大疆创新科技有限公司 Power management device, electronic equipment and movable platform assembly
WO2021102629A1 (en) * 2019-11-25 2021-06-03 深圳市大疆创新科技有限公司 Power supply management apparatus, electronic device and movable platform assembly

Also Published As

Publication number Publication date
WO2019100693A1 (en) 2019-05-31
CN109815749B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US8532706B2 (en) Techniques to manage a subscriber identity module for a mobile wireless device
CN104216777B (en) Dual system electronic installation and terminal
US8811896B2 (en) Non-volatile memory for contactless systems
US9288107B2 (en) Method and system for controlling operations in a mobile communication device that is enabled for near field communication (NFC)
CA3026587C (en) Mobile payment method and device
CN112492562B (en) NFC service processing method, terminal and NFC chip
EP2629499B1 (en) Battery management scheme for NFC
EP2775739B1 (en) Near-field communications and routing
US9589160B2 (en) Working method for smart card reader
CN103491655A (en) Multi-mode communication system and method between terminal devices
EP2568407B1 (en) Method and system for communicating with and programming a secure element
CN114462560B (en) Analog card switching method, electronic equipment and communication system
WO2011103734A1 (en) Method of terminal equipment for implementing near field communication and terminal equipment for implementing near field communication
CN102968864B (en) Method and device used for controlling start-up and based on neat field communication (NFC) and terminal
CN109379734A (en) Real-time control method, equipment, storage medium and the device of narrowband internet of things equipment
CN105375942A (en) Watch phone with wireless SIM (Subscriber Identity Module) transmission function
CN107798759A (en) Door lock door opening method, door lock and computer-readable recording medium
EP4336874A1 (en) Nfc-based data interaction method and device
CN110062929A (en) A kind of method, apparatus and terminal showing data
CN112085872A (en) NFC-based unlocking method, related device and system
CN109815749A (en) Control system, method and the chip of SE
CN103678972A (en) System and method for limits of authority
CN109426324A (en) Electrification control method, AP chip and mobile terminal
EP4145875A1 (en) Smart card sharing method, electronic device, and computer-readable storage medium
US9141163B2 (en) Portable terminal, recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant