技术领域technical field
本申请实施例涉及芯片技术领域,特别涉及一种上电控制方法、应用处理器(Application Processor,AP)芯片及移动终端。The embodiments of the present application relate to the field of chip technology, and in particular, to a power-on control method, an application processor (Application Processor, AP) chip, and a mobile terminal.
背景技术Background technique
目前,移动终端已经具备代替银行卡、公交卡、门禁卡等卡片实现刷卡功能。At present, mobile terminals already have the function of swiping cards instead of bank cards, bus cards, and access control cards.
移动终端在实现刷卡功能(特别是刷卡支付功能)时,需要考虑数据安全的问题。在现有技术中,在硬件上通过安全元件(Secure Element,SE)来确保刷卡时的数据安全。SE具有加密和解密逻辑电路,用于对刷卡过程中移动终端与读卡设备之间交互的数据进行加解密,以提高数据的安全性。When the mobile terminal implements the card swiping function (especially the swiping card payment function), it is necessary to consider the issue of data security. In the prior art, a secure element (Secure Element, SE) is used on hardware to ensure data security during card swiping. SE has an encryption and decryption logic circuit, which is used to encrypt and decrypt the data exchanged between the mobile terminal and the card reader device during the card swiping process, so as to improve the security of the data.
在现有技术中,存在外置SE和内置SE两种方案。外置SE方案是指将SE设置在移动终端的AP芯片(也称为“主芯片”)外部,也即SE和AP芯片是两个互相独立的芯片;内置SE方案是指将SE集成于移动终端的AP芯片上,也即SE是AP芯片的一部分。对于内置SE方案,SE是否启动依赖于移动终端的电源管理单元(Power Management Unit,PMU)是否向AP芯片供电。当移动终端处于开机状态时,PMU向AP芯片供电,AP处于通电状态,SE也处于通电状态;当移动终端处于关机状态时,PMU停止向AP芯片供电,AP处于断电状态,SE也处于断电状态。In the prior art, there are two solutions of external SE and built-in SE. The external SE solution refers to setting the SE outside the AP chip (also called the "main chip") of the mobile terminal, that is, the SE and the AP chip are two independent chips; the built-in SE solution refers to integrating the SE into the mobile terminal. On the AP chip of the terminal, that is, the SE is a part of the AP chip. For the built-in SE solution, whether the SE starts depends on whether the power management unit (Power Management Unit, PMU) of the mobile terminal supplies power to the AP chip. When the mobile terminal is powered on, the PMU supplies power to the AP chip, the AP is powered on, and the SE is also powered on; when the mobile terminal is powered off, the PMU stops supplying power to the AP chip, the AP is powered off, and the SE is also powered off power status.
针对内置SE的方案,当移动终端处于关机状态时,由于集成在AP芯片上的SE处于断电状态,因此无法实现在关机状态下完成刷卡操作的功能(下文简称“关机刷卡功能”)。For the solution with built-in SE, when the mobile terminal is turned off, the SE integrated on the AP chip is in a power-off state, so the function of completing the card swiping operation in the off state (hereinafter referred to as "shutdown card swiping function") cannot be realized.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种上电控制方法、AP芯片及移动终端,用以解决现有技术中针对内置SE的方案,当移动终端处于关机状态时,由于集成在AP芯片上的SE处于断电状态,因此无法实现关机刷卡功能的问题。The embodiments of the present application provide a power-on control method, an AP chip, and a mobile terminal, so as to solve the solution for the built-in SE in the prior art. power status, so the problem of turning off the card and swiping the card cannot be realized.
第一方面,本申请实施例提供一种AP芯片,该AP芯片上集成有SE,SE与短距离通信芯片耦合,AP芯片与PMU耦合,短距离通信芯片也与PMU耦合;In a first aspect, an embodiment of the present application provides an AP chip, the AP chip is integrated with an SE, the SE is coupled to a short-range communication chip, the AP chip is coupled to a PMU, and the short-range communication chip is also coupled to the PMU;
AP芯片,用于在上电之后,确定是否由短距离通信芯片触发开机;若是由短距离通信芯片触发开机,则控制SE上电;其中,在AP芯片处于下电状态的情况下,由PMU在检测到上电信号之后向AP芯片供电,短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号。SE,用于在上电之后,与短距离通信芯片通信。The AP chip is used to determine whether the power-on is triggered by the short-distance communication chip after power-on; if the power-on is triggered by the short-distance communication chip, the SE is controlled to power on; among them, when the AP chip is in the power-off state, the PMU After detecting the power-on signal, power is supplied to the AP chip, and the short-range communication chip sends a power-on signal to the PMU when it detects a radio frequency signal that meets the preset conditions. SE is used to communicate with the short-range communication chip after power-on.
本申请实施例提供的方案中,针对内置SE的方案,通过短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号,PMU检测到上电信号后向AP芯片供电,以使得集成于AP芯片上的SE上电启动,进而与短距离通信芯片通信,以完成刷卡操作,从而实现了关机刷卡功能,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。In the solution provided by the embodiment of the present application, for the solution with built-in SE, the short-range communication chip sends a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected, and the PMU supplies power to the AP chip after detecting the power-on signal, So that the SE integrated on the AP chip is powered on and started, and then communicates with the short-distance communication chip to complete the card swiping operation, thereby realizing the shutdown and swiping function, so as to better satisfy the user's ability to swipe the card when the mobile terminal is in a low-power shutdown state. For the practical application requirements of operations such as payment, bus swiping, and access control card swiping, the technical solutions provided by the embodiments of the present application have strong practical value.
可选地,AP芯片确定是否由短距离通信芯片触发开机包括如下两种可能的实施方式。Optionally, the AP chip determines whether to trigger the power-on by the short-range communication chip, including the following two possible implementation manners.
在一种可能的实施方式中,AP芯片,用于在上电之后,接收PMU发送的指示信号,该指示信号用于指示是否由短距离通信芯片触发开机;根据指示信号确定是否由短距离通信芯片触发开机。在另一种可能的实施方式中,AP芯片,用于在上电之后,若检测到预置引脚接收到短距离通信芯片发送的预设信号,则确定是由短距离通信芯片触发开机。In a possible implementation manner, the AP chip is configured to receive an indication signal sent by the PMU after power-on, where the indication signal is used to indicate whether the short-range communication chip triggers the power-on; according to the indication signal, it is determined whether the short-range communication The chip triggers the boot. In another possible implementation, the AP chip is configured to, after power-on, determine that the short-range communication chip triggers the power-on if the preset pin receives a preset signal sent by the short-range communication chip.
本申请实施例提供的方案中,AP芯片先于SE上电启动,通过AP芯片在确定是由短距离通信芯片触发开机的情况下,再控制SE上电,有助于节省电量消耗。In the solution provided by the embodiment of the present application, the AP chip is powered on before the SE, and the AP chip controls the SE to power on when it is determined that the short-range communication chip triggers the power-on, which helps to save power consumption.
在又一个可能的设计中,预设条件为射频信号中包括预设标识,或者,预设条件为射频信号的频段在预设频段内。In another possible design, the preset condition is that the radio frequency signal includes a preset identifier, or the preset condition is that the frequency band of the radio frequency signal is within the preset frequency band.
通过上述方式,使得短距离通信芯片能够准确地辨识出与自身提供的刷卡功能相关的射频信号。Through the above method, the short-distance communication chip can accurately identify the radio frequency signal related to the card swiping function provided by itself.
在另一个可能的设计中,AP芯片,还用于:若不是由短距离通信芯片触发开机,则执行正常开机操作,其中,正常开机操作包括启动操作系统和显示用户界面(UserInterface,UI),且正常开机操作不包括控制SE上电。In another possible design, the AP chip is also used for: if the boot is not triggered by the short-range communication chip, perform a normal boot operation, wherein the normal boot operation includes booting the operating system and displaying the user interface (User Interface, UI), And the normal power-on operation does not include controlling the SE to power on.
在又一个可能的设计中,AP芯片,用于:若是由短距离通信芯片触发开机,则加载第一引导程序,该第一引导程序用于控制SE上电;若不是由短距离通信芯片触发开机,则加载第二引导程序,该第二引导程序用于执行正常开机操作。其中,第一引导程序的数据量小于第二引导程序的数据量。In yet another possible design, the AP chip is used to: if the short-range communication chip triggers the power-on, load the first boot program, and the first boot program is used to control the SE to power on; if not triggered by the short-range communication chip When the device is turned on, the second boot program is loaded, and the second boot program is used to perform a normal boot operation. Wherein, the data amount of the first boot program is smaller than the data amount of the second boot program.
通过上述方式,AP芯片在确定是由短距离通信芯片触发开机的情况下,通过加载并运行数据量相对较小的第一引导程序,使得SE能够更快地上电启动,并有助于节省AP芯片的处理开销。In the above manner, when the AP chip is determined to be powered on by the short-range communication chip, it loads and runs the first boot program with a relatively small amount of data, so that the SE can be powered on and started faster, and helps save APs The processing overhead of the chip.
在又一个可能的设计中,AP芯片,还用于将SE的执行程序从AP芯片外部的存储器加载至AP芯片内部的存储器中,该执行程序用于实现刷卡功能。SE,还用于在上电之后,将其执行程序从AP芯片内部的存储器加载至SE内部的存储器中。In yet another possible design, the AP chip is also used to load the execution program of the SE from the memory outside the AP chip into the memory inside the AP chip, where the execution program is used to implement the card swiping function. The SE is also used to load its execution program from the internal memory of the AP chip into the internal memory of the SE after power-on.
通过上述方式,将SE的执行程序存储在AP芯片外部的存储器中,可以节省SE的存储空间,使得SE能够设计地更加轻薄化。In the above manner, the execution program of the SE is stored in the memory outside the AP chip, which can save the storage space of the SE, so that the SE can be designed to be lighter and thinner.
在又一个可能的设计中,AP芯片,还用于:在SE上电之后经过预设时长执行关机操作;或者,在SE上电之后启动定时器;在接收到SE发送的重置命令时,重置定时器,其中,SE每接收到来自短距离通信芯片的信号时,向AP芯片发送重置命令;当定时器超时时,执行关机操作。In another possible design, the AP chip is further used to: perform a shutdown operation after a preset time period after the SE is powered on; or, start a timer after the SE is powered on; when receiving a reset command sent by the SE, Reset the timer, wherein the SE sends a reset command to the AP chip every time it receives a signal from the short-range communication chip; when the timer times out, a shutdown operation is performed.
通过上述两种方式,实现了在完成刷卡操作之后执行自动关机,避免浪费移动终端的电量。Through the above two methods, the automatic shutdown is implemented after the card swiping operation is completed, so as to avoid wasting the power of the mobile terminal.
另一方面,本申请实施例提供一种上电控制方法,应用于集成有SE的AP芯片中,SE与短距离通信芯片耦合,AP芯片与PMU耦合,短距离通信芯片也与PMU耦合。上述方法包括:AP芯片在上电之后,确定是否由短距离通信芯片触发开机;若是由短距离通信芯片触发开机,则控制SE上电;其中,在AP芯片处于下电状态的情况下,由PMU在检测到上电信号之后向AP芯片供电,短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号;SE在上电之后,与短距离通信芯片通信。On the other hand, an embodiment of the present application provides a power-on control method, which is applied to an AP chip integrated with an SE. The SE is coupled to a short-range communication chip, the AP chip is coupled to a PMU, and the short-range communication chip is also coupled to the PMU. The above method includes: after the AP chip is powered on, determining whether the power-on is triggered by the short-range communication chip; if the power-on is triggered by the short-range communication chip, controlling the SE to power on; wherein, when the AP chip is in a power-off state, the The PMU supplies power to the AP chip after detecting the power-on signal, and the short-range communication chip sends a power-on signal to the PMU when it detects a radio frequency signal that meets the preset conditions; after the SE is powered on, it communicates with the short-range communication chip.
又一方面,本申请实施例提供一种移动终端,该移动终端包括AP芯片、短距离通信芯片、PMU和集成于AP芯片上的SE,其中,SE与短距离通信芯片耦合,AP芯片与PMU耦合,短距离通信芯片也与PMU耦合。短距离通信芯片,用于在检测到符合预设条件的射频信号时,向PMU发送上电信号;PMU,用于在检测到上电信号之后,向AP芯片供电;AP芯片,用于在上电之后,确定是否由短距离通信芯片触发开机;若是由短距离通信芯片触发开机,则控制SE上电;SE,用于在上电之后,与短距离通信芯片通信。In yet another aspect, an embodiment of the present application provides a mobile terminal, the mobile terminal includes an AP chip, a short-range communication chip, a PMU, and an SE integrated on the AP chip, wherein the SE is coupled to the short-range communication chip, and the AP chip is connected to the PMU Coupling, the short-range communication chip is also coupled with the PMU. The short-range communication chip is used to send a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected; the PMU is used to supply power to the AP chip after detecting the power-on signal; the AP chip is used to power on the After the power is turned on, it is determined whether the boot is triggered by the short-range communication chip; if it is triggered by the short-range communication chip, the SE is controlled to be powered on; the SE is used to communicate with the short-range communication chip after power-on.
相较于现有技术,本申请实施例提供的方案中,针对内置SE的方案,通过短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号,PMU检测到上电信号后向AP芯片供电,以使得集成于AP芯片上的SE上电启动,进而与短距离通信芯片通信,以完成刷卡操作,从而实现了关机刷卡功能,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。Compared with the prior art, in the solution provided by the embodiment of the present application, for the solution with built-in SE, the short-range communication chip sends a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected, and the PMU detects the power-on. After the signal, power is supplied to the AP chip, so that the SE integrated on the AP chip is powered on and started, and then communicates with the short-distance communication chip to complete the card swiping operation, thereby realizing the function of turning off the card and swiping the card, so as to better satisfy the user's need for the mobile terminal in the The technical solutions provided by the embodiments of the present application have strong practical value to meet the practical application requirements of realizing operations such as credit card payment, bus credit card credit, and access control credit card credit in a low-power shutdown state.
附图说明Description of drawings
图1是本申请一个实施例提供的实施环境的示意图;1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
图2是本申请一个实施例提供的移动终端的结构示意图;2 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;
图3是本申请一个实施例提供的AP芯片的结构示意图;3 is a schematic structural diagram of an AP chip provided by an embodiment of the present application;
图4是本申请一个实施例提供的上电控制方法的流程图;4 is a flowchart of a power-on control method provided by an embodiment of the present application;
图5是本申请另一个实施例提供的上电控制方法的流程图;5 is a flowchart of a power-on control method provided by another embodiment of the present application;
图6是本申请另一个实施例提供的上电控制方法的流程图;6 is a flowchart of a power-on control method provided by another embodiment of the present application;
图7是本申请另一个实施例提供的AP芯片的结构示意图;7 is a schematic structural diagram of an AP chip provided by another embodiment of the present application;
图8是本申请另一个实施例提供的上电控制方法的流程图。FIG. 8 is a flowchart of a power-on control method provided by another embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
本申请实施例描述的系统架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The system architecture and business scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. The evolution of new business scenarios and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
请参考图1,其示出了本申请一个实施例提供的实施环境的示意图。该实施环境包括:移动终端10和读卡设备20。Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes: a mobile terminal 10 and a card reading device 20 .
移动终端10可以是诸如手机、平板电脑、可穿戴设备等便携式电子设备。The mobile terminal 10 may be a portable electronic device such as a mobile phone, a tablet computer, a wearable device, or the like.
读卡设备20可以是任意具有读卡功能的电子设备,如POS(Point Of Sales,销售点)机、公交卡读卡器、门禁卡读卡器等。The card reading device 20 may be any electronic device having a card reading function, such as a POS (Point Of Sales, point of sale) machine, a bus card reader, an access control card reader, and the like.
示例性地,当读卡设备20为POS机时,移动终端10可以代替银行卡与读卡设备20进行通信,以完成刷卡支付操作;当读卡设备20为公交卡读卡器时,移动终端10可以代替公交卡与读卡设备20进行通信,以完成公交刷卡操作;当读卡设备20为门禁卡读卡器时,移动终端10可以代替门禁卡与读卡设备20进行通信,以完成门禁刷卡操作。Exemplarily, when the card reading device 20 is a POS machine, the mobile terminal 10 can replace the bank card to communicate with the card reading device 20 to complete the card payment operation; when the card reading device 20 is a bus card reader, the mobile terminal 10 10 can replace the bus card to communicate with the card reading device 20 to complete the bus card swiping operation; when the card reading device 20 is an access control card reader, the mobile terminal 10 can replace the access control card and communicate with the card reading device 20 to complete the access control Swipe operation.
移动终端10和读卡设备20中配备有相适配的短距离通信芯片,通过上述短距离通信芯片进行通信,完成刷卡操作。示例性地,上述短距离通信芯片为近场通信(Near FieldCommunication,NFC)芯片。The mobile terminal 10 and the card reading device 20 are equipped with a corresponding short-range communication chip, and the above-mentioned short-range communication chip performs communication to complete the card swiping operation. Exemplarily, the above short-range communication chip is a near field communication (Near Field Communication, NFC) chip.
在本申请实施例中,如图2所示,移动终端10采用内置SE的方案。该移动终端10可以包括:AP芯片11、短距离通信芯片13、PMU 14和集成于AP芯片11上的SE 12。其中,SE12与短距离通信芯片13耦合,AP芯片11与PMU14耦合,短距离通信芯片13也与PMU14耦合。In the embodiment of the present application, as shown in FIG. 2 , the mobile terminal 10 adopts a solution with built-in SE. The mobile terminal 10 may include an AP chip 11 , a short-range communication chip 13 , a PMU 14 and an SE 12 integrated on the AP chip 11 . The SE12 is coupled with the short-distance communication chip 13 , the AP chip 11 is coupled with the PMU 14 , and the short-distance communication chip 13 is also coupled with the PMU 14 .
AP芯片11用于运行移动终端10的通用操作系统,如安卓(Android)操作系统、iOS操作系统、Windows操作系统等。AP芯片11负责处理移动终端10的各项操作,包括开机和关机操作。AP芯片11除包括SE 12之外,还包括至少一个处理器和至少一个存储器,处理器用于运行AP芯片所需运行的程序,存储器用于存储AP芯片加载的程序以及处理器运行程序的数据。The AP chip 11 is used to run a general operating system of the mobile terminal 10, such as an Android (Android) operating system, an iOS operating system, a Windows operating system, and the like. The AP chip 11 is responsible for processing various operations of the mobile terminal 10, including power-on and power-off operations. In addition to the SE 12, the AP chip 11 also includes at least one processor and at least one memory. The processor is used to run programs required by the AP chip, and the memory is used to store programs loaded by the AP chip and data of the processor running programs.
SE 12用于与短距离通信芯片13通信,还用于对刷卡过程中移动终端10与读卡设备20之间交互的数据进行加解密,以提高数据的安全性。The SE 12 is used to communicate with the short-distance communication chip 13, and is also used to encrypt and decrypt the data exchanged between the mobile terminal 10 and the card reading device 20 during the card swiping process, so as to improve the security of the data.
短距离通信芯片13用于与读卡设备20通过短距离无线通信协议进行通信,以实现刷卡操作。例如,当短距离通信芯片13为NFC芯片时,移动终端10的NFC芯片与读卡设备20的NFC芯片之间可以基于无线射频识别(Radio Frequency Identification,RFID)协议进行通信。The short-range communication chip 13 is used to communicate with the card reading device 20 through a short-range wireless communication protocol to implement a card swiping operation. For example, when the short-range communication chip 13 is an NFC chip, the communication between the NFC chip of the mobile terminal 10 and the NFC chip of the card reading device 20 may be based on a radio frequency identification (Radio Frequency Identification, RFID) protocol.
PMU 14是一种高度集成的针对便携式应用的电源管理单元,用于向芯片(如包括上述AP芯片11、SE 12和短距离通信芯片13)提供稳定电源。The PMU 14 is a highly integrated power management unit for portable applications, and is used to provide stable power to chips (eg, including the above-mentioned AP chip 11 , SE 12 and short-range communication chip 13 ).
可选地,如图2所示,移动终端10还包括:电池15。电池15分别与PMU 14和短距离通信芯片13耦合。电池15用于为移动终端10提供电能。Optionally, as shown in FIG. 2 , the mobile terminal 10 further includes: a battery 15 . The battery 15 is coupled to the PMU 14 and the short-range communication chip 13, respectively. The battery 15 is used to provide power for the mobile terminal 10 .
可选地,移动终端10还包括外部存储器,该外部存储器是指AP芯片11外部的存储器。AP芯片11外部的存储器可以是嵌入式的多媒体存储卡(Embedded Multi Media Card,eMMc)或通用闪存存储(Universal Flash Storage,UFS)。AP芯片11外部的存储器包括回放保护存储分区(Replay Protected Memory Block,RPMB),RPMB用于存储SE 12的执行程序。Optionally, the mobile terminal 10 further includes an external memory, and the external memory refers to a memory outside the AP chip 11 . The external memory of the AP chip 11 may be an embedded multimedia memory card (Embedded Multi Media Card, eMMc) or a universal flash storage (Universal Flash Storage, UFS). The external memory of the AP chip 11 includes a replay protected memory block (Replay Protected Memory Block, RPMB), and the RPMB is used to store the execution program of the SE 12 .
示例性地,如图3所示,其示出了一种AP芯片11的结构示意图。AP芯片11包括:主处理器111、微处理器112、只读存储器(Read-Only Memory,ROM)113、随机存取存储器(RandomAccess Memory,RAM)114和SE 12。Exemplarily, as shown in FIG. 3 , it shows a schematic structural diagram of an AP chip 11 . The AP chip 11 includes a main processor 111 , a microprocessor 112 , a read-only memory (Read-Only Memory, ROM) 113 , a random access memory (Random Access Memory, RAM) 114 and an SE 12 .
AP芯片11的主处理器111用于处理AP芯片11的各项操作,例如正常开机操作。AP芯片11的微处理器112主要用于处理AP芯片11实现关机刷卡功能时的各项操作。AP芯片11的主处理器111可以是ARM处理器,AP芯片11的微处理器112可以是微控制单元(MicroControl Unit,MCU)。The main processor 111 of the AP chip 11 is used to process various operations of the AP chip 11 , such as a normal power-on operation. The microprocessor 112 of the AP chip 11 is mainly used to process various operations when the AP chip 11 realizes the function of turning off the card and swiping the card. The main processor 111 of the AP chip 11 may be an ARM processor, and the microprocessor 112 of the AP chip 11 may be a Micro Control Unit (Micro Control Unit, MCU).
AP芯片11的ROM 113是AP芯片11中的一种只能读出事先所存数据的存储器。The ROM 113 of the AP chip 11 is a memory in the AP chip 11 that can only read data stored in advance.
AP芯片11的RAM 114是AP芯片11中的一种能够与处理器(包括主处理器111和微处理器112)直接交互数据的存储器,通常作为处理器正在运行中的程序的临时数据的存储媒介。The RAM 114 of the AP chip 11 is a kind of memory in the AP chip 11 that can directly exchange data with the processor (including the main processor 111 and the microprocessor 112 ), and is usually used as the storage of temporary data of the running program of the processor. medium.
可选地,AP芯片11还包括双倍速率内存控制器(Double Data Rate Controller,DDRC),DDRC用于控制AP芯片11与双倍速率内存的数据交互。Optionally, the AP chip 11 further includes a double-rate memory controller (Double Data Rate Controller, DDRC), and the DDRC is used to control the data interaction between the AP chip 11 and the double-rate memory.
如图3所示,SE 12包括:处理器121、ROM 122和RAM 123。As shown in FIG. 3 , the SE 12 includes a processor 121 , a ROM 122 and a RAM 123 .
SE 12的ROM 122是SE 12中的一种只能读出事先所存数据的存储器。The ROM 122 of the SE 12 is a memory in the SE 12 that can only read data stored in advance.
SE 12的RAM 123是SE 12中的一种能够与处理器121直接交互数据的存储器,通常作为处理器121正在运行中的程序的临时数据的存储媒介。The RAM 123 of the SE 12 is a kind of memory in the SE 12 that can directly interact with the processor 121 , and is generally used as a storage medium for temporary data of the running program of the processor 121 .
SE 12的处理器121用于执行SE 12的执行程序,以实现SE 12的各项功能。The processor 121 of the SE 12 is used to execute the execution program of the SE 12 to realize various functions of the SE 12.
可选地,SE 12与AP芯片11之间通过进程间通信(Inter Process Communication,IPC)机制交互数据。Optionally, data is exchanged between the SE 12 and the AP chip 11 through an Inter Process Communication (Inter Process Communication, IPC) mechanism.
在本申请实施例中,针对内置SE的方案,提供了一种能够实现关机刷卡功能的技术方案,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。In the embodiment of the present application, for the solution with built-in SE, a technical solution capable of realizing the function of swiping a card at shutdown is provided, so as to better satisfy the user's ability to realize payment by card, swipe a bus card, and swipe a card for access control when the mobile terminal is in a low-power shutdown state. The technical solutions provided in the embodiments of the present application have strong practical value.
下面将基于上面所述的本申请实施例涉及的共性方面,对本申请实施例进一步详细说明。The following will further describe the embodiments of the present application in detail based on the common aspects involved in the above-mentioned embodiments of the present application.
结合参考图2所示的移动终端10,在实现关机刷卡功能时,其各部分组成部件的功能如下:With reference to the mobile terminal 10 shown in FIG. 2 , when the function of turning off the card and swiping the card is realized, the functions of its various components are as follows:
短距离通信芯片13,用于在检测到符合预设条件的射频信号时,向PMU 14发送上电信号。The short-range communication chip 13 is configured to send a power-on signal to the PMU 14 when a radio frequency signal that meets a preset condition is detected.
在移动终端10处于关机状态的情况下,移动终端10中的短距离通信芯片13检测是否存在符合预设条件的射频信号。能够与移动终端10配合实现刷卡功能的读卡设备20会向外发射符合预设条件的射频信号,该射频信号用于使得读卡设备20周围的移动终端10能够感知到该读卡设备20的存在。例如,读卡设备20持续向外发射射频信号,或者每隔预设时间间隔向外发射一次射频信号。移动终端10中的短距离通信芯片13在检测到射频信号之后,检测该射频信号是否符合预设条件,若该射频信号符合预设条件,则向PMU 14发送上电信号。When the mobile terminal 10 is in an off state, the short-range communication chip 13 in the mobile terminal 10 detects whether there is a radio frequency signal that meets a preset condition. The card reading device 20 that can cooperate with the mobile terminal 10 to realize the card swiping function will transmit a radio frequency signal that meets the preset conditions. The radio frequency signal is used to enable the mobile terminals 10 around the card reading device 20 exist. For example, the card reading device 20 continuously transmits the radio frequency signal, or transmits the radio frequency signal at a preset time interval. After detecting the radio frequency signal, the short-range communication chip 13 in the mobile terminal 10 detects whether the radio frequency signal meets the preset condition, and sends a power-on signal to the PMU 14 if the radio frequency signal meets the preset condition.
示例性地,假设短距离通信芯片13是NFC芯片,则当NFC芯片检测到符合预设条件的射频信号时,向PMU 14发送上电信号。Exemplarily, assuming that the short-range communication chip 13 is an NFC chip, when the NFC chip detects a radio frequency signal that meets a preset condition, it sends a power-on signal to the PMU 14 .
可选地,预设条件为射频信号中包括预设标识。预设标识用于供移动终端10中的短距离通信芯片13辨识其接收到的射频信号是否为与自身提供的刷卡功能相关的射频信号。或者,预设条件为射频信号的频率在预设频段内。上述预设频段可以根据实际需求预先设定,例如该预设频段可以是NFC所使用的频段,也可以是NFC所使用的频段中的一个子频段。当然,在其它可能的实施方式中,预设条件还可以是射频信号的间隔为预设时长,该预设时长可以是一个数值,也可以是一个取值范围。在实际应用中,预设条件可根据实际需求预先设定,以确保短距离通信芯片13能够准确地辨识出与自身提供的刷卡功能相关的射频信号和其它无关的射频信号即可。Optionally, the preset condition is that the radio frequency signal includes a preset identifier. The preset identifier is used for the short-range communication chip 13 in the mobile terminal 10 to identify whether the radio frequency signal it receives is a radio frequency signal related to the card swiping function provided by itself. Or, the preset condition is that the frequency of the radio frequency signal is within the preset frequency band. The above-mentioned preset frequency band may be preset according to actual requirements. For example, the preset frequency band may be a frequency band used by NFC, or may be a sub-frequency band in a frequency band used by NFC. Of course, in other possible implementations, the preset condition may also be that the interval of the radio frequency signals is a preset duration, and the preset duration may be a numerical value or a value range. In practical applications, the preset conditions can be preset according to actual requirements to ensure that the short-range communication chip 13 can accurately identify the radio frequency signals related to the card swiping function provided by itself and other irrelevant radio frequency signals.
PMU 14,用于在检测到上电信号之后,向AP芯片11供电。The PMU 14 is used to supply power to the AP chip 11 after detecting the power-on signal.
在AP芯片处于下电状态的情况下,PMU 14在检测到上电信号之后,向AP芯片11供电,以使得AP芯片11上电启动。下电状态是指芯片未接通电源的状态,下电状态也称为断电状态。在本申请实施例中,由于采用内置SE 12的方案,SE 12是集成在AP芯片11上的,所以PMU 14在向AP芯片11供电之后,SE 12也能够上电启动。When the AP chip is in the power-off state, the PMU 14 supplies power to the AP chip 11 after detecting the power-on signal, so that the AP chip 11 is powered on and started. The power-off state refers to the state in which the chip is not powered on, and the power-off state is also called the power-off state. In the embodiment of the present application, since the built-in SE 12 solution is adopted, the SE 12 is integrated on the AP chip 11 , so after the PMU 14 supplies power to the AP chip 11 , the SE 12 can also be powered on and started.
在一个示例中,AP芯片11和SE 12同时上电启动。例如,AP芯片11和SE 12连接同一根电源线,当该电源线接通时,AP芯片11和SE 12同时上电启动。In one example, the AP chip 11 and the SE 12 are powered on at the same time. For example, the AP chip 11 and the SE 12 are connected to the same power line. When the power line is turned on, the AP chip 11 and the SE 12 are powered on and started at the same time.
在另一个示例中,AP芯片11先于SE 12上电启动。AP芯片11在上电之后,确定是否由短距离通信芯片13触发开机,若是由短距离通信芯片13触发开机,则AP芯片11控制SE 12上电。In another example, the AP chip 11 is powered up before the SE 12. After the AP chip 11 is powered on, it determines whether the short-range communication chip 13 triggers the power-on. If the short-range communication chip 13 triggers the power-on, the AP chip 11 controls the SE 12 to power on.
上电信号是用于指示PMU 14给AP芯片11供电的信号。例如,PMU 14上设置有用于指示上电信号的管脚,通过该管脚的高低电平来表示上电信号。PMU 14检测到的上电信号可能来自于短距离通信芯片13,也可能是因为移动终端10正常开机时使得PMU 14检测到上电信号。例如,移动终端10在按键开机、定时开机或者充电开机等情况下,相关元件也会向PMU 14发送上电信号,相应地,PMU 14会检测到上电信号。PMU 14不论是何种原因检测到上电信号,其都会向AP芯片11供电。The power-on signal is a signal used to instruct the PMU 14 to supply power to the AP chip 11 . For example, the PMU 14 is provided with a pin for indicating a power-on signal, and the power-on signal is represented by the high and low levels of the pin. The power-on signal detected by the PMU 14 may come from the short-range communication chip 13, or it may be because the PMU 14 detects the power-on signal when the mobile terminal 10 is normally powered on. For example, when the mobile terminal 10 is powered on by pressing a button, powered on at a fixed time, or powered on by charging, the related components will also send a power-on signal to the PMU 14, and accordingly, the PMU 14 will detect the power-on signal. The PMU 14 will supply power to the AP chip 11 regardless of the reason for detecting the power-on signal.
AP芯片11在上电之后需要确定是否由短距离通信芯片13触发开机,以此确定是否控制SE 12上电。若是由短距离通信芯片13触发开机,则AP芯片11控制SE 12上电。由短距离通信芯片13触发开机,则表示移动终端11需要与读卡设备10进行刷卡操作,而进行刷卡操作需要SE 12与短距离通信芯片13通信,因此AP芯片11在确定是由短距离通信芯片13触发开机的情况下,控制SE 12上电启动。After the AP chip 11 is powered on, it needs to determine whether the short-range communication chip 13 triggers the power-on, so as to determine whether to control the SE 12 to power on. If the short-range communication chip 13 triggers the power-on, the AP chip 11 controls the SE 12 to power on. The short-range communication chip 13 triggers the power-on, which means that the mobile terminal 11 needs to perform a card swiping operation with the card reader 10, and the card swiping operation requires the SE 12 to communicate with the short-range communication chip 13. Therefore, the AP chip 11 is determined by the short-range communication chip 11. When the chip 13 is triggered to be turned on, the SE 12 is controlled to be powered on and started.
另外,若不是由短距离通信芯片13触发开机,则AP芯片11执行正常开机操作。其中,正常开机操作包括启动操作系统和显示UI,且正常开机操作不包括控制SE 12上电。In addition, if the short-range communication chip 13 does not trigger the power-on, the AP chip 11 performs the normal power-on operation. The normal booting operation includes booting the operating system and displaying the UI, and the normal booting operation does not include controlling the SE 12 to be powered on.
SE 12,用于在上电之后,与短距离通信芯片13通信。The SE 12 is used to communicate with the short-range communication chip 13 after being powered on.
SE 12在上电启动之后,与短距离通信芯片13通信,完成刷卡操作。示例性地,当读卡设备20为POS机时,SE 12上电后,与短距离通信芯片13进行通信,而短距离通信芯片13与POS机通信,完成刷卡支付操作;当读卡设备20为公交卡读卡器时,SE 12上电后,与短距离通信芯片13进行通信,而短距离通信芯片13与公交卡读卡器通信,完成公交刷卡操作;当读卡设备20为门禁卡读卡器时,SE 12上电后,与短距离通信芯片13进行通信,而短距离通信芯片13与门禁卡读卡器通信,完成门禁刷卡操作。After the SE 12 is powered on, it communicates with the short-distance communication chip 13 to complete the card swiping operation. Exemplarily, when the card reading device 20 is a POS machine, after the SE 12 is powered on, it communicates with the short-range communication chip 13, and the short-range communication chip 13 communicates with the POS machine to complete the card payment operation; when the card reading device 20 When it is a bus card reader, after the SE 12 is powered on, it communicates with the short-distance communication chip 13, and the short-distance communication chip 13 communicates with the bus card reader to complete the bus card swiping operation; when the card reading device 20 is an access control card As a card reader, after the SE 12 is powered on, it communicates with the short-range communication chip 13, and the short-range communication chip 13 communicates with the access control card reader to complete the access control card swiping operation.
可选地,SE 12在上电之后,能够通过单线协议(Single Wire Protocol,SWP)与短距离通信芯片13进行通信。Optionally, after the SE 12 is powered on, it can communicate with the short-range communication chip 13 through a single wire protocol (Single Wire Protocol, SWP).
本申请实施例提供的方案中,针对内置SE的方案,通过短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号,PMU检测到上电信号后向AP芯片供电,以使得集成于AP芯片上的SE上电启动,进而与短距离通信芯片通信,以完成刷卡操作,从而实现了关机刷卡功能,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。In the solution provided by the embodiment of the present application, for the solution with built-in SE, the short-range communication chip sends a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected, and the PMU supplies power to the AP chip after detecting the power-on signal, So that the SE integrated on the AP chip is powered on and started, and then communicates with the short-distance communication chip to complete the card swiping operation, thereby realizing the shutdown and swiping function, so as to better satisfy the user's ability to swipe the card when the mobile terminal is in a low-power shutdown state. For the practical application requirements of operations such as payment, bus swiping, and access control card swiping, the technical solutions provided by the embodiments of the present application have strong practical value.
可选地,AP芯片11确定是否由短距离通信芯片13触发开机,包括如下两种可能的实施方式:Optionally, the AP chip 11 determines whether the power-on is triggered by the short-range communication chip 13, including the following two possible implementations:
在一种可能的实施方式中,AP芯片11,用于:在上电之后,接收PMU 14发送的指示信号,指示信号用于指示是否由短距离通信芯片13触发开机;根据指示信号确定是否由短距离通信芯片13触发开机。PMU 14能够确定上电信号的来源,若上电信号的来源为短距离通信芯片13,则PMU 14向AP芯片11发送用于指示是由短距离通信芯片13触发开机的指示信号,例如该指示信号为“1”;反之,若上电信号的来源不是短距离通信芯片13,则PMU 14向AP芯片11发送用于指示不是由短距离通信芯片13触发开机的指示信号,例如该指示信号为“0”。In a possible implementation, the AP chip 11 is configured to: after power-on, receive an indication signal sent by the PMU 14, and the indication signal is used to indicate whether the short-range communication chip 13 triggers the power-on; The short-range communication chip 13 triggers the power-on. The PMU 14 can determine the source of the power-on signal. If the source of the power-on signal is the short-range communication chip 13, the PMU 14 sends an indication signal to the AP chip 11 to indicate that the short-range communication chip 13 triggers the power-on, for example, this indication The signal is "1"; on the contrary, if the source of the power-on signal is not the short-range communication chip 13, the PMU 14 sends an indication signal to the AP chip 11 to indicate that the power-on is not triggered by the short-range communication chip 13. For example, the indication signal is "0".
在另一种可能的实施方式中,AP芯片11,用于:在上电之后,若检测到预置引脚接收到短距离通信芯片13发送的预设信号,则确定是由短距离通信芯片13触发开机。短距离通信芯片13与AP芯片11的预置引脚之间电性连接,短距离通信芯片13在检测到符合预设条件的射频信号之后,向AP芯片11发送预设信号,若AP芯片11检测到预置引脚接收到短距离通信芯片13发送的预设信号,则确定是由短距离通信芯片13触发开机,控制SE 12上电;反之,若AP芯片11没有检测到预置引脚接收到短距离通信芯片13发送的预设信号,则执行正常开机操作,且不控制SE 12上电。上述预设信号可以是上电信号也可以是一特定信号。上述预置引脚可以是通用输入输出(General Purpose Input Output,GPIO)引脚或其它AP芯片11能够识别的输入输出引脚。In another possible implementation manner, the AP chip 11 is configured to: after power-on, if it is detected that the preset pin receives the preset signal sent by the short-distance communication chip 13, determine that the short-distance communication chip 13 Trigger boot. The short-range communication chip 13 is electrically connected to the preset pins of the AP chip 11. After the short-range communication chip 13 detects a radio frequency signal that meets the preset condition, it sends a preset signal to the AP chip 11. If the AP chip 11 It is detected that the preset pin receives the preset signal sent by the short-distance communication chip 13, then it is determined that the short-distance communication chip 13 triggers the power-on, and controls the SE 12 to power on; on the contrary, if the AP chip 11 does not detect the preset pin After receiving the preset signal sent by the short-range communication chip 13, the normal power-on operation is performed, and the SE 12 is not controlled to be powered on. The above-mentioned preset signal may be a power-on signal or a specific signal. The above-mentioned preset pins may be general purpose input and output (General Purpose Input Output, GPIO) pins or other input and output pins that can be recognized by the AP chip 11 .
可选地,AP芯片11在确定是否由短距离通信芯片13触发开机之后,还用于:若是由短距离通信芯片13触发开机,则加载第一引导程序,该第一引导程序用于控制SE 12上电;若不是由短距离通信芯片13触发开机,则加载第二引导程序,该第二引导程序用于执行正常开机操作;其中,第一引导程序的数据量小于第二引导程序的数据量。AP芯片11在确定是由短距离通信芯片13触发开机的情况下,通过加载并运行数据量相对较小的第一引导程序,使得SE 12能够更快地上电启动,并有助于节省AP芯片11的处理开销。Optionally, after the AP chip 11 determines whether the short-range communication chip 13 triggers the power-on, the AP chip 11 is further configured to: if the short-range communication chip 13 triggers the power-on, load a first boot program, and the first boot program is used to control the SE. 12 Power on; if it is not triggered by the short-range communication chip 13 to boot, load the second boot program, which is used to perform a normal boot operation; wherein, the data volume of the first boot program is smaller than the data of the second boot program quantity. In the case that the AP chip 11 is determined to be powered on by the short-range communication chip 13, by loading and running the first boot program with a relatively small amount of data, the SE 12 can be powered on faster and help save the AP chip 11 processing overhead.
可选地,AP芯片11,还用于:将SE 12的执行程序从AP芯片11外部的存储器加载至AP芯片11内部的存储器中。SE 12的执行程序用于实现刷卡功能,以完成刷卡操作。SE 12的执行程序可以存储在AP芯片11外部的存储器中,通过从AP芯片11外部的存储器获取SE的执行程序,可以节省SE的存储空间,使得SE能够设计地更加轻薄化。在其它可能的实施例中,SE 12的执行程序也可以存储在SE 12内部的存储器中,或者存储在AP芯片11内部的存储器中。Optionally, the AP chip 11 is further configured to: load the execution program of the SE 12 from the memory outside the AP chip 11 into the memory inside the AP chip 11 . The executive program of SE 12 is used to realize the card swiping function to complete the card swiping operation. The execution program of the SE 12 can be stored in the memory outside the AP chip 11 . By acquiring the execution program of the SE from the memory outside the AP chip 11 , the storage space of the SE can be saved, and the SE can be designed to be lighter and thinner. In other possible embodiments, the execution program of the SE 12 may also be stored in the memory inside the SE 12 or in the memory inside the AP chip 11 .
相应地,SE 12还用于在上电之后,将其执行程序从AP芯片11内部的存储器加载至SE 12内部的存储器中。SE 12将其执行程序从AP芯片11内部的存储器加载至SE 12内部的存储器中。SE无法直接从AP芯片11外部的存储器中加载SE 12的执行程序,因此由AP芯片11从AP芯片11外部的存储器中加载SE 12的执行程序至AP芯片11内部的存储器中,SE 12再通从AP芯片11内部的存储器中加载其执行程序至SE 12内部的存储器中,并运行该执行程序。Correspondingly, the SE 12 is also used to load its execution program from the internal memory of the AP chip 11 into the internal memory of the SE 12 after being powered on. The SE 12 loads its execution program from the memory inside the AP chip 11 into the memory inside the SE 12 . The SE cannot directly load the execution program of the SE 12 from the memory outside the AP chip 11, so the AP chip 11 loads the execution program of the SE 12 from the memory outside the AP chip 11 to the memory inside the AP chip 11, and the SE 12 is reconnected Load its execution program from the memory inside the AP chip 11 into the memory inside the SE 12, and run the execution program.
可选地,在完成刷卡操作之后,移动终端10可以恢复至关机状态,所以AP芯片11可以在完成刷卡操作之后执行关机操作。Optionally, after the card swiping operation is completed, the mobile terminal 10 can be restored to the shutdown state, so the AP chip 11 can perform the shutdown operation after the card swiping operation is completed.
在一种可能的实施方式中,AP芯片11用于:在SE 12上电启动后,AP芯片11经过预设时长后执行关机操作。示例性地,假设预设时长为10秒,则AP芯片11在SE 12上电启动10秒后执行关机操作。In a possible implementation manner, the AP chip 11 is configured to: after the SE 12 is powered on and started, the AP chip 11 performs a shutdown operation after a preset time period. Exemplarily, assuming that the preset duration is 10 seconds, the AP chip 11 performs a shutdown operation 10 seconds after the SE 12 is powered on.
在另一种可能的实施方式中,AP芯片11用于:在SE 12上电启动后,启动定时器;在接收到SE 12发送的重置命令时,重置定时器;当定时器超时时,执行关机操作。SE 12与短距离通信芯片13通信时,每接收到来自短距离通信芯片13的信号,则向AP芯片11发送重置命令,AP芯片11接收到重置命令,则重置定时器。In another possible implementation, the AP chip 11 is used to: start the timer after the SE 12 is powered on; reset the timer when receiving the reset command sent by the SE 12; when the timer times out to perform a shutdown operation. When the SE 12 communicates with the short-range communication chip 13, each time it receives a signal from the short-range communication chip 13, it sends a reset command to the AP chip 11, and the AP chip 11 resets the timer after receiving the reset command.
通过上述两种方式,实现了在完成刷卡操作之后执行自动关机,避免浪费移动终端的电量。此外,在上述自动关机的过程中,若AP芯片11接收到正常开机的触发信号,则不再执行关机操作,直接执行正常开机操作。Through the above two methods, the automatic shutdown is implemented after the card swiping operation is completed, so as to avoid wasting the power of the mobile terminal. In addition, in the above-mentioned automatic shutdown process, if the AP chip 11 receives a trigger signal for normal startup, the shutdown operation is no longer performed, and the normal startup operation is directly performed.
下述为本申请方法实施例,方法实施例与上文产品实施例相对应。The following are method examples of the application, and the method examples correspond to the product examples above.
请参考图4,其示出了本申请一个实施例提供的上电控制方法的流程图。该方法可应用于图2所示的移动终端中。该方法可以包括如下几个步骤:Please refer to FIG. 4 , which shows a flowchart of a power-on control method provided by an embodiment of the present application. The method can be applied to the mobile terminal shown in FIG. 2 . The method may include the following steps:
步骤401,短距离通信芯片在检测到符合预设条件的射频信号时,向PMU发送上电信号。Step 401 , when the short-range communication chip detects a radio frequency signal that meets a preset condition, it sends a power-on signal to the PMU.
在移动终端处于关机状态的情况下,移动终端中的短距离通信芯片处于空闲状态,短距离通信芯片检测是否存在符合预设条件的射频信号。能够与移动终端配合实现刷卡功能的读卡设备会向外发射符合预设条件的射频信号,该射频信号用于使得读卡设备周围的移动终端能够感知到该读卡设备的存在。移动终端中的短距离通信芯片在检测到射频信号之后,检测该射频信号是否符合预设条件,若该射频信号符合预设条件,则向PMU发送上电信号。When the mobile terminal is in an off state, the short-range communication chip in the mobile terminal is in an idle state, and the short-range communication chip detects whether there is a radio frequency signal that meets a preset condition. The card reader device that can cooperate with the mobile terminal to realize the card swiping function will transmit a radio frequency signal that meets the preset conditions, and the radio frequency signal is used to enable the mobile terminals around the card reader device to perceive the existence of the card reader device. After detecting the radio frequency signal, the short-range communication chip in the mobile terminal detects whether the radio frequency signal meets the preset condition, and if the radio frequency signal meets the preset condition, sends a power-on signal to the PMU.
示例性地,假设短距离通信芯片是NFC芯片,则当NFC芯片检测到符合预设条件的射频信号时,向PMU发送上电信号。Exemplarily, assuming that the short-range communication chip is an NFC chip, when the NFC chip detects a radio frequency signal that meets a preset condition, it sends a power-on signal to the PMU.
可选地,预设条件为射频信号中包括预设标识。预设标识用于供移动终端中的短距离通信芯片辨识其接收到的射频信号是否为与自身提供的刷卡功能相关的射频信号。或者,预设条件为射频信号的频率在预设频段内。上述预设频段可以根据实际需求预先设定,例如该预设频段可以是NFC所使用的频段,也可以是NFC所使用的频段中的一个子频段。当然,在其它可能的实施方式中,预设条件还可以是射频信号的间隔为预设时长,该预设时长可以是一个数值,也可以是一个取值范围。在实际应用中,预设条件可根据实际需求预先设定,以确保短距离通信芯片能够准确地辨识出与自身提供的刷卡功能相关的射频信号和其它无关的射频信号即可。Optionally, the preset condition is that the radio frequency signal includes a preset identifier. The preset identifier is used for the short-range communication chip in the mobile terminal to identify whether the radio frequency signal it receives is a radio frequency signal related to the card swiping function provided by itself. Or, the preset condition is that the frequency of the radio frequency signal is within the preset frequency band. The above-mentioned preset frequency band may be preset according to actual requirements, for example, the preset frequency band may be a frequency band used by NFC, or may be a sub-frequency band in a frequency band used by NFC. Of course, in other possible implementations, the preset condition may also be that the interval of the radio frequency signals is a preset duration, and the preset duration may be a numerical value or a value range. In practical applications, the preset conditions can be preset according to actual needs to ensure that the short-range communication chip can accurately identify the radio frequency signals related to the card swiping function provided by itself and other irrelevant radio frequency signals.
步骤402,PMU在检测到上电信号之后,向AP芯片供电。In step 402, the PMU supplies power to the AP chip after detecting the power-on signal.
在AP芯片处于下电状态的情况下,PMU在检测到上电信号之后,向AP芯片供电,以使得AP芯片上电启动。在本申请实施例中,由于采用内置SE的方案,SE是集成在AP芯片上的,所以PMU在向AP芯片供电之后,SE也能够上电启动。When the AP chip is in a power-off state, the PMU supplies power to the AP chip after detecting the power-on signal, so that the AP chip is powered on and started. In the embodiment of the present application, since the built-in SE solution is adopted, the SE is integrated on the AP chip, so after the PMU supplies power to the AP chip, the SE can also be powered on and started.
上电信号是用于指示PMU给AP芯片供电的信号。例如,PMU上设置有用于指示上电信号的管脚,通过该管脚的高低电平来表示上电信号。PMU检测到的上电信号可能来自于短距离通信芯片,也可能是因为移动终端正常开机时使得PMU检测到上电信号。例如,移动终端在按键开机、定时开机或者充电开机等情况下,相关元件也会向PMU发送上电信号,相应地,PMU会检测到上电信号。PMU不论是何种原因检测到上电信号,其都会向AP芯片供电。The power-on signal is a signal used to instruct the PMU to supply power to the AP chip. For example, the PMU is provided with a pin for indicating a power-on signal, and the power-on signal is represented by the high and low levels of the pin. The power-on signal detected by the PMU may come from the short-range communication chip, or it may be because the PMU detects the power-on signal when the mobile terminal is powered on normally. For example, when the mobile terminal is powered on by pressing a button, powered on at a fixed time, or powered on by charging, the related components will also send a power-on signal to the PMU, and accordingly, the PMU will detect the power-on signal. No matter what the reason is for the PMU to detect the power-on signal, it will supply power to the AP chip.
步骤403,AP芯片在上电之后,确定是否由短距离通信芯片触发开机。Step 403: After the AP chip is powered on, it is determined whether the short-range communication chip triggers the power-on.
AP芯片在上电之后需要确定是否由短距离通信芯片触发开机,以此确定是否控制SE上电。可选地,AP芯片确定是否由短距离通信芯片触发开机,包括如下两种可能的实施方式:After the AP chip is powered on, it needs to determine whether the power-on is triggered by the short-range communication chip, so as to determine whether to control the SE to power on. Optionally, the AP chip determines whether the power-on is triggered by the short-range communication chip, including the following two possible implementations:
在一种可能的实施方式中,AP芯片在上电之后,接收PMU发送的指示信号,指示信号用于指示是否由短距离通信芯片触发开机,AP芯片根据指示信号确定是否由短距离通信芯片触发开机。PMU能够确定上电信号的来源,若上电信号的来源为短距离通信芯片,则PMU向AP芯片发送用于指示是由短距离通信芯片触发开机的指示信号,例如该指示信号为“1”;反之,若上电信号的来源不是短距离通信芯片,则PMU向AP芯片发送用于指示不是由短距离通信芯片触发开机的指示信号,例如该指示信号为“0”。In a possible implementation manner, after the AP chip is powered on, it receives an indication signal sent by the PMU, the indication signal is used to indicate whether the short-range communication chip triggers the power-on, and the AP chip determines whether it is triggered by the short-range communication chip according to the indication signal. power on. The PMU can determine the source of the power-on signal. If the source of the power-on signal is the short-range communication chip, the PMU sends an indication signal to the AP chip to indicate that the short-range communication chip triggers the power-on. For example, the indication signal is "1" On the other hand, if the source of the power-on signal is not the short-range communication chip, the PMU sends an indication signal to the AP chip to indicate that the power-on is not triggered by the short-range communication chip, for example, the indication signal is "0".
在另一种可能的实施方式中,AP芯片在上电之后,若检测到预置引脚接收到短距离通信芯片发送的预设信号,则确定是由短距离通信芯片触发开机。短距离通信芯片与AP芯片的预置引脚之间电性连接,短距离通信芯片在检测到符合预设条件的射频信号之后,向AP芯片发送预设信号,若AP芯片检测到预置引脚接收到短距离通信芯片发送的预设信号,则确定是由短距离通信芯片触发开机;反之,若AP芯片没有检测到预置引脚接收到短距离通信芯片发送的预设信号,则确定不是由短距离通信芯片触发开机。上述预设信号可以是上电信号也可以是一特定信号。上述预置引脚可以是GPIO引脚或其它AP芯片能够识别的输入输出引脚。In another possible implementation, after the AP chip is powered on, if it is detected that the preset pin receives a preset signal sent by the short-range communication chip, it is determined that the short-range communication chip triggers the power-on. The short-range communication chip is electrically connected to the preset pins of the AP chip. After the short-range communication chip detects a radio frequency signal that meets the preset conditions, it sends a preset signal to the AP chip. If the AP chip detects the preset pin If the AP chip receives the preset signal sent by the short-distance communication chip, it is determined that the short-distance communication chip triggers the boot; on the contrary, if the AP chip does not detect that the preset pin receives the preset signal sent by the short-distance communication chip, it is determined. The boot is not triggered by the short-range communication chip. The above-mentioned preset signal may be a power-on signal or a specific signal. The above-mentioned preset pins can be GPIO pins or other input and output pins that can be recognized by the AP chip.
步骤404,若是由短距离通信芯片触发开机,则AP芯片控制SE上电。Step 404, if the short-range communication chip triggers the power-on, the AP chip controls the SE to power on.
由短距离通信芯片触发开机,则表示移动终端需要与读卡设备进行刷卡操作,而进行刷卡操作需要SE与短距离通信芯片通信,因此AP芯片在确定是由短距离通信芯片触发开机的情况下,控制SE上电启动。If the power-on is triggered by the short-distance communication chip, it means that the mobile terminal needs to swipe the card with the card reader, and the card-swiping operation requires the SE to communicate with the short-distance communication chip, so the AP chip is determined to be triggered by the short-distance communication chip. , to control SE power-on and start-up.
另外,若不是由短距离通信芯片触发开机,则AP芯片执行正常开机操作,其中,正常开机操作包括启动操作系统和显示UI,且正常开机操作不包括控制SE上电。In addition, if the power-on is not triggered by the short-range communication chip, the AP chip performs a normal power-on operation, wherein the normal power-on operation includes starting the operating system and displaying the UI, and the normal power-on operation does not include controlling the SE to power on.
通过上述方式,AP芯片先于SE上电启动,通过AP芯片在确定是由短距离通信芯片触发开机的情况下,再控制SE上电,有助于节省电量消耗。In the above method, the AP chip is powered on before the SE, and the AP chip controls the SE to power on when it is determined that the short-range communication chip triggers the power-on, which helps to save power consumption.
在其它可能的实施例中,AP芯片也可以和SE同时上电启动。In other possible embodiments, the AP chip can also be powered on and started at the same time as the SE.
步骤405,SE在上电之后,与短距离通信芯片通信。Step 405, after the SE is powered on, communicates with the short-range communication chip.
SE在上电启动之后,与短距离通信芯片通信,完成刷卡操作。示例性地,当读卡设备为POS机时,SE上电后,与短距离通信芯片进行通信,而短距离通信芯片与POS机通信,完成刷卡支付操作;当读卡设备为公交卡读卡器时,SE上电后,与短距离通信芯片进行通信,而短距离通信芯片与公交卡读卡器通信,完成公交刷卡操作;当读卡设备为门禁卡读卡器时,SE上电后,与短距离通信芯片进行通信,而短距离通信芯片与门禁卡读卡器通信,完成门禁刷卡操作。可选地,SE在上电之后,能够通过SWP与短距离通信芯片进行通信。After the SE is powered on, it communicates with the short-distance communication chip to complete the card swiping operation. Exemplarily, when the card reading device is a POS machine, after the SE is powered on, it communicates with the short-distance communication chip, and the short-distance communication chip communicates with the POS machine to complete the card payment operation; when the card reading device is a bus card reading When the device is powered on, the SE communicates with the short-distance communication chip, and the short-distance communication chip communicates with the bus card reader to complete the bus card swiping operation; when the card reading device is an access control card reader, after the SE is powered on , communicate with the short-distance communication chip, and the short-distance communication chip communicates with the access control card reader to complete the access control card swiping operation. Optionally, after the SE is powered on, it can communicate with the short-range communication chip through the SWP.
本申请实施例提供的方案中,针对内置SE的方案,通过短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号,PMU检测到上电信号后向AP芯片供电,以使得集成于AP芯片上的SE上电启动,进而与短距离通信芯片通信,以完成刷卡操作,从而实现了关机刷卡功能,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。In the solution provided by the embodiment of the present application, for the solution with built-in SE, the short-range communication chip sends a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected, and the PMU supplies power to the AP chip after detecting the power-on signal, So that the SE integrated on the AP chip is powered on and started, and then communicates with the short-distance communication chip to complete the card swiping operation, thereby realizing the shutdown and swiping function, so as to better satisfy the user's ability to swipe the card when the mobile terminal is in a low-power shutdown state. For the practical application requirements of operations such as payment, bus swiping, and access control card swiping, the technical solutions provided by the embodiments of the present application have strong practical value.
请参考图5,其示出了本申请另一个实施例提供的上电控制方法的流程图。该方法可应用于图2所示的移动终端中。该方法可以包括如下几个步骤:Please refer to FIG. 5 , which shows a flowchart of a power-on control method provided by another embodiment of the present application. The method can be applied to the mobile terminal shown in FIG. 2 . The method may include the following steps:
步骤501,短距离通信芯片在检测到射频信号时,向PMU发送上电信号。Step 501 , when the short-range communication chip detects the radio frequency signal, it sends a power-on signal to the PMU.
上述步骤501与图4实施例中的步骤401相同,参见图4实施例中的介绍说明,本实施例对此不再赘述。The foregoing step 501 is the same as the step 401 in the embodiment of FIG. 4 , and reference is made to the introduction in the embodiment of FIG. 4 , which is not repeated in this embodiment.
步骤502,PMU在检测到上电信号之后,向AP芯片供电。In step 502, the PMU supplies power to the AP chip after detecting the power-on signal.
PMU在检测到上电信号之后向AP芯片供电,以使得AP芯片上电启动。The PMU supplies power to the AP chip after detecting the power-on signal, so that the AP chip is powered on and started.
步骤503,AP芯片运行第一ROM程序,通过第一ROM程序加载引导程序。Step 503, the AP chip runs the first ROM program, and loads the boot program through the first ROM program.
AP芯片在上电启动之后,运行第一ROM程序,通过第一ROM程序将引导程序从AP芯片外部的存储器加载至AP芯片内部的存储器中,并运行上述引导程序。第一ROM程序用于加载引导程序,引导程序用于控制SE上电。After the AP chip is powered on, it runs the first ROM program, loads the boot program from the memory outside the AP chip into the memory inside the AP chip through the first ROM program, and runs the boot program. The first ROM program is used to load a boot program, and the boot program is used to control SE power-on.
可选地,AP芯片将引导程序加载到AP芯片的RAM中,由AP芯片中的主处理器或微处理器运行引导程序。Optionally, the AP chip loads the bootstrap program into the RAM of the AP chip, and the main processor or microprocessor in the AP chip runs the bootstrap program.
在本实施例中,引导程序存储在AP芯片外部的存储器中,节省了AP芯片的存储空间,使得AP芯片能够设计地更加轻薄化。在其它可能的实施例中,引导程序也可以存储在AP芯片内部的存储器中,则AP芯片在上电启动之后,可直接运行引导程序。In this embodiment, the boot program is stored in a memory outside the AP chip, which saves the storage space of the AP chip and enables the AP chip to be designed to be lighter and thinner. In other possible embodiments, the bootstrap program may also be stored in the internal memory of the AP chip, and the AP chip may directly run the bootstrap program after it is powered on.
可选地,引导程序还用于执行正常开机操作。Optionally, the bootloader is also used to perform normal power-on operations.
可选地,AP芯片在运行第一ROM程序或引导程序之前,校验所要运行的程序的合法性,以确保数据安全。示例性地,以引导程序为例,若校验结果为引导程序合法,则AP芯片运行该引导程序;若校验结果为引导程序不合法,则AP芯片不运行该引导程序。Optionally, before running the first ROM program or the boot program, the AP chip verifies the validity of the program to be run to ensure data security. Exemplarily, taking the boot program as an example, if the verification result is that the boot program is valid, the AP chip runs the boot program; if the verification result is that the boot program is invalid, the AP chip does not run the boot program.
步骤504,AP芯片通过引导程序,确定是否由短距离通信芯片触发开机。In step 504, the AP chip determines, through the bootstrap program, whether the short-range communication chip triggers the power-on.
有关确定是否由短距离通信芯片触发开机的方式在图4实施例中已经介绍说明,本实施例对此不再赘述。The manner of determining whether the short-range communication chip triggers the power-on has already been described in the embodiment of FIG. 4 , and will not be repeated in this embodiment.
步骤505,若是由短距离通信芯片触发开机,则AP芯片通过引导程序将SE的执行程序从AP芯片外部的存储器加载至AP芯片内部的存储器中。Step 505 , if the short-range communication chip triggers the power-on, the AP chip loads the SE execution program from the external memory of the AP chip to the internal memory of the AP chip through the boot program.
SE的执行程序用于实现刷卡功能,以完成刷卡操作,例如执行程序可以是卡片操作系统(COS)。在本实施例中,SE的执行程序也存储在AP芯片外部的存储器中,通过从AP芯片外部的存储器获取SE的执行程序,可以节省SE的存储空间,使得SE能够设计地更加轻薄化。在其它可能的实施例中,SE的执行程序也可以存储在SE内部的存储器中,或者存储在AP芯片内部的存储器中。The executive program of the SE is used to implement the card swiping function to complete the card swiping operation, for example, the executive program may be a card operating system (COS). In this embodiment, the execution program of the SE is also stored in the memory outside the AP chip. By acquiring the execution program of the SE from the memory outside the AP chip, the storage space of the SE can be saved, and the SE can be designed to be lighter and thinner. In other possible embodiments, the execution program of the SE may also be stored in the memory inside the SE, or in the memory inside the AP chip.
另外,若不是由短距离通信芯片触发开机,则AP芯片通过引导程序执行正常开机操作。In addition, if the power-on is not triggered by the short-range communication chip, the AP chip performs a normal power-on operation through the boot program.
步骤506,AP芯片通过引导程序控制SE上电。Step 506, the AP chip controls the SE to power on through the boot program.
步骤507,SE运行第二ROM程序,通过第二ROM程序加载SE的执行程序。Step 507 , the SE runs the second ROM program, and loads the execution program of the SE through the second ROM program.
SE在上电启动之后,运行第二ROM程序,第二ROM程序用于加载SE的执行程序。After the SE is powered on and started, the second ROM program is run, and the second ROM program is used to load the execution program of the SE.
可选地,SE通过第二ROM程序加载的SE的执行程序可以是镜像文件,镜像文件将特定的一系列文件按照一定的格式制作成单一的文件,以方便加载和运行。Optionally, the SE executable program loaded by the SE through the second ROM program may be an image file, and the image file makes a specific series of files into a single file according to a certain format to facilitate loading and running.
SE将其执行程序从AP芯片内部的存储器加载至SE内部的存储器中。SE无法直接从AP芯片外部的存储器中加载SE的执行程序,因此由AP芯片从AP芯片外部的存储器中加载SE的执行程序至AP芯片内部的存储器中,SE再通过第二ROM程序从AP芯片内部的存储器中加载其执行程序至SE内部的存储器中,并运行该执行程序。The SE loads its execution program from the internal memory of the AP chip into the internal memory of the SE. The SE cannot directly load the SE execution program from the memory outside the AP chip. Therefore, the AP chip loads the SE execution program from the memory outside the AP chip into the memory inside the AP chip, and the SE uses the second ROM program to load the SE execution program from the AP chip. Load its execution program from the internal memory into the SE internal memory, and run the execution program.
可选地,由SE中的处理器运行第二ROM程序,SE将其执行程序加载到SE的RAM中,并由SE的处理器运行。Optionally, the second ROM program is run by the processor in the SE, and the SE loads its execution program into the RAM of the SE, and is executed by the processor of the SE.
可选地,SE运行第二ROM程序或其执行程序前,校验所要运行的程序的合法性,以确保数据安全。示例性地,以SE的执行程序为例,若校验结果为SE的执行程序合法,则SE运行该执行程序;若校验结果为SE的执行程序不合法,则SE不运行该执行程序。Optionally, before the SE runs the second ROM program or its execution program, the validity of the to-be-run program is checked to ensure data security. Illustratively, taking the execution program of the SE as an example, if the execution program of the SE is valid, the SE runs the execution program; if the execution program of the SE is invalid, the SE does not execute the execution program.
步骤508,AP芯片通过引导程序向SE提供外置存储驱动。Step 508, the AP chip provides an external storage driver to the SE through the boot program.
AP芯片通过引导程序向SE提供外置存储驱动,以使得SE能够对AP芯片外部的存储器进行读写操作。The AP chip provides an external storage driver to the SE through the boot program, so that the SE can perform read and write operations on the external memory of the AP chip.
步骤509,SE通过其执行程序与短距离通信芯片通信,以完成刷卡操作。Step 509, the SE communicates with the short-range communication chip through its execution program to complete the card swiping operation.
SE运行其执行程序后,与短距离通信芯片进行通信,在通信的过程中,SE能够从AP芯片外部的存储器中读取需要发送给短距离通信芯片的数据,同时SE能够将从短距离通信芯片接收的数据写入AP芯片外部的存储器中。After the SE runs its execution program, it communicates with the short-range communication chip. During the communication process, the SE can read the data that needs to be sent to the short-range communication chip from the memory outside the AP chip, and at the same time, the SE can send data from the short-range communication chip. The data received by the chip is written into the memory outside the AP chip.
在完成刷卡操作之后,移动终端可以恢复至关机状态,所以AP芯片可以在完成刷卡操作之后执行关机操作。After completing the card swiping operation, the mobile terminal can be restored to the shutdown state, so the AP chip can perform the shutdown operation after completing the card swiping operation.
在一种可能的实施方式中,在SE上电启动后,AP芯片经过预设时长后执行关机操作。AP芯片能够通过引导程序在预设时长之后执行关机操作。示例性地,假设预设时长为10秒,则AP芯片在SE上电启动10秒后通过引导程序执行关机操作。In a possible implementation manner, after the SE is powered on and started, the AP chip performs a shutdown operation after a preset time period. The AP chip can perform a shutdown operation after a preset period of time through the boot program. Exemplarily, assuming that the preset duration is 10 seconds, the AP chip performs a shutdown operation through the boot program 10 seconds after the SE is powered on and started.
在另一种可能的实施方式中,在SE上电启动后,AP芯片启动定时器,在接收到SE发送的重置命令时,AP芯片重置定时器,当定时器超时时,AP芯片执行关机操作。SE与短距离通信芯片通信时,每接收到来自短距离通信芯片的信号,则向AP芯片发送重置命令,AP芯片接收到重置命令,则通过引导程序重置定时器。In another possible implementation manner, after the SE is powered on, the AP chip starts the timer, when receiving the reset command sent by the SE, the AP chip resets the timer, and when the timer times out, the AP chip executes Shutdown operation. When the SE communicates with the short-range communication chip, every time it receives a signal from the short-range communication chip, it sends a reset command to the AP chip. The AP chip receives the reset command and resets the timer through the boot program.
通过上述两种方式,实现了在完成刷卡操作之后执行自动关机,避免浪费移动终端的电量。此外,在上述自动关机的过程中,若AP芯片接收到正常开机的触发信号,则不再执行关机操作,直接执行正常开机操作。Through the above two methods, the automatic shutdown is implemented after the card swiping operation is completed, so as to avoid wasting the power of the mobile terminal. In addition, in the above-mentioned automatic shutdown process, if the AP chip receives a trigger signal for normal startup, it will not perform the shutdown operation, but directly perform the normal startup operation.
可选地,结合参考图3,在AP芯片包括主处理器和微处理器的情况下,PMU在检测到上电信号之后,向AP芯片的微处理器供电,但不向AP芯片的主处理器供电。相应地,AP芯片的微处理器上电启动,而主处理器不上电。微处理器在上电之后,确定是否由短距离通信芯片触发开机,并在是由短距离通信芯片触发开机的情况下,控制SE上电。例如,微处理器在上电启动之后,运行第一ROM程序,由第一ROM程序执行上述操作。微处理器的耗电比主处理器的耗电小,通过上电微处理器而不上电主处理器,有助于降低AP芯片的功耗。另外,微处理器在确定出不是由短距离通信芯片触发开机时,触发主处理器上电,由主处理器执行正常开机操作。Optionally, with reference to FIG. 3 , when the AP chip includes a main processor and a microprocessor, the PMU supplies power to the microprocessor of the AP chip after detecting the power-on signal, but does not supply power to the main processor of the AP chip. power supply. Correspondingly, the microprocessor of the AP chip is powered on, but the main processor is not powered on. After the microprocessor is powered on, it determines whether the short-distance communication chip triggers the power-on, and controls the SE to power on if the short-distance communication chip triggers the power-on. For example, after the microprocessor is powered on, it runs the first ROM program, and the first ROM program performs the above operations. The power consumption of the microprocessor is smaller than that of the main processor. By powering on the microprocessor but not the main processor, the power consumption of the AP chip can be reduced. In addition, when the microprocessor determines that the power-on is not triggered by the short-distance communication chip, it triggers the power-on of the main processor, and the main processor performs the normal power-on operation.
本申请实施例提供的方案中,针对内置SE的方案,通过短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号,PMU检测上电信号后向AP芯片供电,以使得集成于AP芯片上的SE上电启动,进而与短距离通信芯片通信,以完成刷卡操作,从而实现了关机刷卡功能,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。In the solution provided by the embodiment of the present application, for the solution with built-in SE, the short-range communication chip sends a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected, and the PMU supplies power to the AP chip after detecting the power-on signal, to The SE integrated on the AP chip is powered on and started, and then communicates with the short-distance communication chip to complete the card swiping operation, thus realizing the shutdown and swiping card function, so as to better satisfy the user's ability to realize the swipe card payment when the mobile terminal is in a low-power shutdown state. , bus card swiping, access control card swiping and other practical application requirements, the technical solutions provided by the embodiments of the present application have strong practical value.
请参考图6,其示出了本申请另一个实施例提供的上电控制方法的流程图。该方法可应用于图2所示的移动终端中。该方法可以包括如下几个步骤:Please refer to FIG. 6 , which shows a flowchart of a power-on control method provided by another embodiment of the present application. The method can be applied to the mobile terminal shown in FIG. 2 . The method may include the following steps:
步骤601,短距离通信芯片在检测到符合预设条件的射频信号时,向PMU发送上电信号。Step 601 , when the short-range communication chip detects a radio frequency signal that meets a preset condition, it sends a power-on signal to the PMU.
步骤602,PMU在检测到上电信号之后,向AP芯片供电。Step 602: After detecting the power-on signal, the PMU supplies power to the AP chip.
步骤603,AP芯片运行第一ROM程序,通过第一ROM程序,确定是否由短距离通信芯片触发开机;若是,则执行下述步骤604;若否,则执行下述步骤610。Step 603, the AP chip runs the first ROM program, and determines whether the short-range communication chip triggers the booting through the first ROM program; if so, execute the following step 604; if not, execute the following step 610.
步骤604,AP芯片加载第一引导程序。Step 604, the AP chip loads the first boot program.
若是由短距离通信芯片触发开机,则AP芯片通过第一ROM程序将第一引导程序从AP芯片外部的存储器中加载至AP芯片内部的存储器中,并运行第一引导程序,该第一引导程序用于控制SE上电。If the boot is triggered by the short-range communication chip, the AP chip loads the first bootstrap program from the memory outside the AP chip into the memory inside the AP chip through the first ROM program, and runs the first bootstrap program, the first bootstrap program Used to control SE power-on.
步骤605,AP芯片通过第一引导程序将SE的执行程序从AP芯片外部的存储器加载至AP芯片内部的存储器中。Step 605, the AP chip loads the SE execution program from the memory outside the AP chip into the memory inside the AP chip through the first boot program.
步骤606,AP芯片通过第一引导程序控制SE上电。Step 606, the AP chip controls the SE to be powered on through the first boot program.
步骤607,SE运行第二ROM程序,通过第二ROM程序将执行程序从AP芯片内部的存储器加载至SE内部的存储器中。Step 607 , the SE runs the second ROM program, and loads the execution program from the internal memory of the AP chip into the internal memory of the SE through the second ROM program.
步骤608,AP芯片通过第一引导程序向SE提供外置存储驱动。Step 608, the AP chip provides an external storage driver to the SE through the first boot program.
步骤609,SE通过其执行程序与短距离通信芯片通信,以完成刷卡操作。Step 609, the SE communicates with the short-range communication chip through its execution program to complete the card swiping operation.
步骤610,AP芯片加载第二引导程序。Step 610, the AP chip loads the second boot program.
若不是由短距离通信芯片触发开机,则AP芯片通过第一ROM程序将第二引导程序从AP芯片外部的存储器中加载至AP芯片内部的存储器中,并运行第二引导程序,该第二引导程序用于执行正常开机操作。If the power-on is not triggered by the short-range communication chip, the AP chip loads the second boot program from the memory outside the AP chip into the memory inside the AP chip through the first ROM program, and runs the second boot program. The program is used to perform normal power-on operations.
步骤611,AP芯片通过第二引导程序执行正常开机操作。Step 611 , the AP chip performs a normal power-on operation through the second boot program.
AP芯片确定不是由短距离通信芯片触发的开机,则通过第二引导程序执行正常开机操作,且不控制SE上电。The AP chip determines that the power-on is not triggered by the short-range communication chip, and executes the normal power-on operation through the second boot program, and does not control the SE to power on.
在本实施例中,第一引导程序的数据量小于第二引导程序的数据量。AP芯片在确定是由短距离通信芯片触发开机的情况下,通过加载并运行数据量相对较小的第一引导程序,使得SE能够更快地上电启动,并有助于节省AP芯片的处理开销。In this embodiment, the data amount of the first boot program is smaller than the data amount of the second boot program. When the AP chip is determined to be powered on by the short-range communication chip, by loading and running the first boot program with a relatively small amount of data, the SE can be powered on faster and help save the processing overhead of the AP chip. .
本申请实施例提供的方案中,针对内置SE的方案,通过短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号,PMU检测到上电信号后AP芯片供电,以使得集成于AP芯片上的SE上电启动,进而与短距离通信芯片通信,以完成刷卡操作,从而实现了关机刷卡功能,以更好地满足用户对移动终端处于低电关机状态下实现刷卡支付、公交刷卡、门禁刷卡等操作的实际应用需求,本申请实施例提供的技术方案具有较强的实用价值。In the solution provided by the embodiment of the present application, for the solution with built-in SE, the short-range communication chip sends a power-on signal to the PMU when a radio frequency signal that meets the preset conditions is detected. After the PMU detects the power-on signal, the AP chip supplies power to The SE integrated on the AP chip is powered on and started, and then communicates with the short-distance communication chip to complete the card swiping operation, thus realizing the shutdown and swiping card function, so as to better satisfy the user's ability to realize the swipe card payment when the mobile terminal is in a low-power shutdown state. , bus card swiping, access control card swiping and other practical application requirements, the technical solutions provided by the embodiments of the present application have strong practical value.
另外,AP芯片在确定是由短距离通信芯片触发开机的情况下,通过加载并运行数据量相对较小的第一引导程序,使得SE能够更快地上电启动,并有助于节省AP芯片的处理开销。In addition, when the AP chip is determined to be triggered by the short-range communication chip, it loads and runs the first boot program with a relatively small amount of data, so that the SE can be powered on more quickly and helps save the AP chip's time. processing overhead.
本申请一示例性实施例还提供了一种AP芯片,如图7所示,该AP芯片71上集成有SE72。其中,SE 72与短距离通信芯片73耦合,AP芯片71与PMU 74耦合,短距离通信芯片73也与PMU 74耦合。An exemplary embodiment of the present application further provides an AP chip. As shown in FIG. 7 , SE72 is integrated on the AP chip 71 . The SE 72 is coupled to the short-range communication chip 73 , the AP chip 71 is coupled to the PMU 74 , and the short-range communication chip 73 is also coupled to the PMU 74 .
AP芯片71,用于在上电之后,确定是否由短距离通信芯片73触发开机;若是由短距离通信芯片73触发开机,则控制SE 72上电。其中,在AP芯片71处于下电状态的情况下,由PMU 74在检测到上电信号之后向AP芯片71供电,短距离通信芯片73在检测到符合预设条件的射频信号时向PMU 74发送上电信号。The AP chip 71 is used to determine whether the power-on is triggered by the short-range communication chip 73 after power-on; if the power-on is triggered by the short-distance communication chip 73 , the SE 72 is controlled to power on. Wherein, when the AP chip 71 is in the power-off state, the PMU 74 supplies power to the AP chip 71 after detecting the power-on signal, and the short-range communication chip 73 sends the PMU 74 to the PMU 74 when it detects the radio frequency signal that meets the preset condition. Power up signal.
SE 72用于在上电之后,与短距离通信芯片73通信。The SE 72 is used to communicate with the short-range communication chip 73 after power-on.
本申请一示例性实施例还提供了一种上电控制方法,该方法应用于集成有SE的AP芯片中。其中,SE与短距离通信芯片耦合,AP芯片与PMU耦合,短距离通信芯片也与PMU耦合。如图8所示,该方法包括如下几个步骤:An exemplary embodiment of the present application also provides a power-on control method, which is applied to an AP chip integrated with SE. Among them, the SE is coupled with the short-distance communication chip, the AP chip is coupled with the PMU, and the short-distance communication chip is also coupled with the PMU. As shown in Figure 8, the method includes the following steps:
步骤801,AP芯片在上电之后,确定是否由短距离通信芯片触发开机;Step 801, after the AP chip is powered on, determine whether the short-range communication chip triggers the power-on;
其中,在AP芯片处于下电状态的情况下,由PMU在检测到上电信号之后向AP芯片供电,短距离通信芯片在检测到符合预设条件的射频信号时向PMU发送上电信号;Wherein, when the AP chip is in a power-off state, the PMU supplies power to the AP chip after detecting the power-on signal, and the short-range communication chip sends a power-on signal to the PMU when it detects a radio frequency signal that meets the preset conditions;
步骤802,若是由短距离通信芯片触发开机,则AP芯片控制SE上电;Step 802, if the power-on is triggered by the short-range communication chip, the AP chip controls the SE to power on;
步骤803,SE在上电之后,与短距离通信芯片通信。Step 803: After the SE is powered on, it communicates with the short-range communication chip.
有关上述图7和图8两个实施例的介绍说明,参见上文相应内容的介绍说明,此处不再赘述。For the descriptions of the above two embodiments in FIG. 7 and FIG. 8 , please refer to the descriptions of the corresponding contents above, which will not be repeated here.
以上所述的具体实施方式,对本申请实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请实施例的具体实施方式而已,并不用于限定本申请实施例的保护范围,凡在本申请实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请实施例的保护范围之内。The specific embodiments described above further describe in detail the purposes, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above descriptions are only specific implementations of the embodiments of the present application, and are not intended to be used for The protection scope of the embodiments of the present application is limited, and any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included within the protection scope of the embodiments of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710765453.7ACN109426324B (en) | 2017-08-30 | 2017-08-30 | Power-on control method, AP chip and mobile terminal |
| PCT/CN2018/102567WO2019042260A1 (en) | 2017-08-30 | 2018-08-27 | Power-on control method, ap chip and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710765453.7ACN109426324B (en) | 2017-08-30 | 2017-08-30 | Power-on control method, AP chip and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN109426324Atrue CN109426324A (en) | 2019-03-05 |
| CN109426324B CN109426324B (en) | 2021-01-29 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710765453.7AActiveCN109426324B (en) | 2017-08-30 | 2017-08-30 | Power-on control method, AP chip and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN109426324B (en) |
| WO (1) | WO2019042260A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115022886A (en)* | 2022-05-26 | 2022-09-06 | Oppo广东移动通信有限公司 | A kind of NFC card reading and writing method, mobile terminal and computer storage medium |
| CN115017517A (en)* | 2022-06-07 | 2022-09-06 | Oppo广东移动通信有限公司 | Chip and verification method |
| CN116562870A (en)* | 2022-01-30 | 2023-08-08 | 中国人民银行数字货币研究所 | Digital currency transaction method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112153119B (en)* | 2020-09-09 | 2023-03-21 | 锐捷网络股份有限公司 | Control equipment, method and system |
| CN115237005B (en)* | 2021-04-25 | 2025-05-06 | 腾讯科技(深圳)有限公司 | A device power-on control method, device and storage medium |
| CN115454517B (en)* | 2022-11-11 | 2023-03-10 | 山东云海国创云计算装备产业创新中心有限公司 | Method, system, storage medium, device and chip for multi-medium secure boot |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101916950A (en)* | 2010-04-06 | 2010-12-15 | 上海复旦微电子股份有限公司 | Secure Chip Hub |
| CN201838037U (en)* | 2009-12-29 | 2011-05-18 | 北京万集科技有限责任公司 | Multi-awakening-source awakening circuit used for ETC (electronic temperature controller) vehicle-mounted unit |
| CN201878132U (en)* | 2010-11-03 | 2011-06-22 | 东莞宇龙通信科技有限公司 | Mobile terminal |
| CN202095097U (en)* | 2011-05-10 | 2011-12-28 | 武汉天喻信息产业股份有限公司 | SE module capable of expanding multiple ways SWP protocol interface |
| CN102316226A (en)* | 2011-09-23 | 2012-01-11 | 惠州Tcl移动通信有限公司 | NFC (near field communication) mobile terminal |
| US8171525B1 (en)* | 2011-09-15 | 2012-05-01 | Google Inc. | Enabling users to select between secure service providers using a central trusted service manager |
| US20130080233A1 (en)* | 2006-08-25 | 2013-03-28 | Blaze Mobile, Inc. | Single tap transactions using a secure element |
| CN103064816A (en)* | 2013-01-07 | 2013-04-24 | 华为终端有限公司 | SIM (subscriber identity module) card hot plug protection method and terminal, and SIM card in-place power-down swiping method and terminal |
| CN203643943U (en)* | 2013-12-31 | 2014-06-11 | 青岛歌尔声学科技有限公司 | Multifunctional starting circuit and Bluetooth product |
| CN104485982A (en)* | 2014-11-20 | 2015-04-01 | 广东欧珀移动通信有限公司 | NFC method and system based on smart accessories |
| CN106101406A (en)* | 2016-06-07 | 2016-11-09 | Tcl移动通信科技(宁波)有限公司 | A kind of shutdown quarter-bell based on mobile terminal triggers processing method and mobile terminal |
| CN107071714A (en)* | 2017-06-05 | 2017-08-18 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal and its bluetooth loading control method and storage device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101281611A (en)* | 2008-05-27 | 2008-10-08 | 北京握奇数据系统有限公司 | Double-interface smart card and method for starting non-contact application |
| CN101894290B (en)* | 2010-04-06 | 2015-07-08 | 上海复旦微电子集团股份有限公司 | Non-contact communication device |
| CN102325203B (en)* | 2011-05-10 | 2015-06-17 | 惠州Tcl移动通信有限公司 | Mobile terminal and communication device thereof |
| CN102411742A (en)* | 2011-12-27 | 2012-04-11 | 大唐微电子技术有限公司 | Mobile terminal |
| EP3033853B1 (en)* | 2013-08-12 | 2018-03-14 | Intel Corporation | Communications techniques for a secure near field communication architecture |
| CN204810251U (en)* | 2015-05-28 | 2015-11-25 | 比亚迪股份有限公司 | Switching on and shutting down circuit of consumer and consumer |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130080233A1 (en)* | 2006-08-25 | 2013-03-28 | Blaze Mobile, Inc. | Single tap transactions using a secure element |
| CN201838037U (en)* | 2009-12-29 | 2011-05-18 | 北京万集科技有限责任公司 | Multi-awakening-source awakening circuit used for ETC (electronic temperature controller) vehicle-mounted unit |
| CN101916950A (en)* | 2010-04-06 | 2010-12-15 | 上海复旦微电子股份有限公司 | Secure Chip Hub |
| CN201878132U (en)* | 2010-11-03 | 2011-06-22 | 东莞宇龙通信科技有限公司 | Mobile terminal |
| CN202095097U (en)* | 2011-05-10 | 2011-12-28 | 武汉天喻信息产业股份有限公司 | SE module capable of expanding multiple ways SWP protocol interface |
| US8171525B1 (en)* | 2011-09-15 | 2012-05-01 | Google Inc. | Enabling users to select between secure service providers using a central trusted service manager |
| CN102316226A (en)* | 2011-09-23 | 2012-01-11 | 惠州Tcl移动通信有限公司 | NFC (near field communication) mobile terminal |
| CN103064816A (en)* | 2013-01-07 | 2013-04-24 | 华为终端有限公司 | SIM (subscriber identity module) card hot plug protection method and terminal, and SIM card in-place power-down swiping method and terminal |
| CN203643943U (en)* | 2013-12-31 | 2014-06-11 | 青岛歌尔声学科技有限公司 | Multifunctional starting circuit and Bluetooth product |
| CN104485982A (en)* | 2014-11-20 | 2015-04-01 | 广东欧珀移动通信有限公司 | NFC method and system based on smart accessories |
| CN106101406A (en)* | 2016-06-07 | 2016-11-09 | Tcl移动通信科技(宁波)有限公司 | A kind of shutdown quarter-bell based on mobile terminal triggers processing method and mobile terminal |
| CN107071714A (en)* | 2017-06-05 | 2017-08-18 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal and its bluetooth loading control method and storage device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116562870A (en)* | 2022-01-30 | 2023-08-08 | 中国人民银行数字货币研究所 | Digital currency transaction method and device |
| CN115022886A (en)* | 2022-05-26 | 2022-09-06 | Oppo广东移动通信有限公司 | A kind of NFC card reading and writing method, mobile terminal and computer storage medium |
| CN115017517A (en)* | 2022-06-07 | 2022-09-06 | Oppo广东移动通信有限公司 | Chip and verification method |
| Publication number | Publication date |
|---|---|
| WO2019042260A1 (en) | 2019-03-07 |
| CN109426324B (en) | 2021-01-29 |
| Publication | Publication Date | Title |
|---|---|---|
| CN109426324A (en) | Electrification control method, AP chip and mobile terminal | |
| RU2402804C2 (en) | Method of booting host device from mmc/sd device, host device bootable from mmc/sd device and mmc/sd device from which host device may be booted | |
| US10317984B2 (en) | System on chip, method of managing power thereof, and electronic device | |
| US9713089B2 (en) | Communication apparatus, control method for communication apparatus, communication system, and program | |
| KR102408583B1 (en) | Method and apparatus for operating multimodal of near field communications circuitry | |
| US20030109218A1 (en) | Portable wireless storage unit | |
| CN112955879B (en) | Electronic device and method for transmitting and receiving control signals | |
| EP3751407B1 (en) | Electronic device and method of utilizing storage space thereof | |
| US20100064036A1 (en) | Peripheral device operation method, peripheral device and host | |
| JP2012014717A (en) | Perfectly concurrent information on change in state of dual interface object | |
| CN112395018B (en) | Direction control application starting method and device, electronic equipment and storage medium | |
| CN102739293A (en) | Management of secure element deadlock | |
| US9235249B2 (en) | Power control for serial bus peripheral device | |
| WO2015196479A1 (en) | Program data updating method and device | |
| CN104252631A (en) | Electronic device and control method of the electronic device | |
| KR20160041282A (en) | Electronic device and controlling method thereof | |
| CN117251217A (en) | Method and device for accessing USB device in starting stage of operating system, medium and terminal | |
| CN109815749B (en) | System, method and chip for controlling SE | |
| CN104252318A (en) | Data storing and processing method, device and terminal | |
| RU2815054C2 (en) | Electronic device and its method for using storage space | |
| JP2015154113A (en) | communication device, control method, and program | |
| JP6275190B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, COMMUNICATION SYSTEM, PROGRAM | |
| CN119342048A (en) | Log output method, IOT device and storage medium | |
| CN115348345A (en) | Control method, protective shell of terminal, terminal and computer storage medium | |
| KR20100126067A (en) | Power Management Method of Subscriber Identity Module and Subscriber Identity Module |
| 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 |