WO2022135060A1 - Terminal device, nfc clock control method, nfc module, and medium - Google Patents

Terminal device, nfc clock control method, nfc module, and medium Download PDF

Info

Publication number
WO2022135060A1
WO2022135060A1 PCT/CN2021/133839 CN2021133839W WO2022135060A1 WO 2022135060 A1 WO2022135060 A1 WO 2022135060A1 CN 2021133839 W CN2021133839 W CN 2021133839W WO 2022135060 A1 WO2022135060 A1 WO 2022135060A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
module
signal
clock signal
main control
Prior art date
Application number
PCT/CN2021/133839
Other languages
French (fr)
Chinese (zh)
Inventor
吴雄鹏
盛培培
许凌
黄志鑫
Original Assignee
厦门紫光展锐科技有限公司
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 厦门紫光展锐科技有限公司 filed Critical 厦门紫光展锐科技有限公司
Publication of WO2022135060A1 publication Critical patent/WO2022135060A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/06Clock generators producing several clock signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the technical field of wireless communication, and in particular, to a terminal device and an NFC clock control method, an NFC module and a medium.
  • the clock signal of the NFC module is usually provided by the main control module.
  • the main control module is designed with reserved clock signal output pins.
  • both the NFC module and the main control module may be in a sleep state.
  • the main control module In the sleep state, the main control module cannot provide a clock signal to the NFC module. Therefore, when the NFC module is triggered by a task, it needs to send a clock signal request to the main control module first.
  • the clock signal request generates an interrupt through the general-purpose input output port (GPIO), and then wakes up the main control module through the interrupt, and the main control module outputs the corresponding clock signal.
  • GPIO general-purpose input output port
  • the clock signal of the NFC module is dependent on the main control module, the clock signal is generated slowly, and the fast startup of the NFC module cannot be realized.
  • the embodiments of the present invention solve the technical problem that the NFC module cannot be started quickly.
  • an embodiment of the present invention provides an NFC clock control method, which includes: when triggered by a target task, sending a first clock request signal to a clock signal generating module, and sending data corresponding to the target task to the main control module; receive a first clock signal, the first clock signal is generated by the clock signal generation module after receiving the first clock request signal; receive the target task execution returned by the main control module The completion instruction stops sending the first clock request signal to the clock signal generating module.
  • the NFC clock control method further includes: after being triggered by the target task, sending a wake-up signal to the main control module, so that the main control module can update the data corresponding to the target task after receiving the wake-up signal. to be processed.
  • the sending a wake-up signal to the main control module after being triggered by the target task includes: sending the first clock request signal to the main control module while sending the first clock request signal to the main control module. the wake-up signal.
  • the sending the first clock request signal to the clock signal generation module includes: outputting a high-level signal to the clock signal generation module, so that the clock generation module receives the high-level signal The first clock signal is then generated and output.
  • the stopping of sending the first clock request signal to the clock signal generation module includes: outputting a low level signal to the clock signal generation module, so that the clock generation module receives the low level signal. Stop generating the first clock signal after the level signal.
  • an embodiment of the present invention also provides a terminal device, including: an NFC module, a main control module, and a clock signal generation module, wherein: the NFC module is adapted to be triggered by a target task, to all The clock signal generation module sends the first clock request signal, and sends the data corresponding to the target task to the main control module; and, when receiving the instruction that the target task execution completed sent by the main control module is received, Stop sending the first clock request signal to the clock signal generating module; the main control module is adapted to, after receiving the data corresponding to the target task, perform corresponding processing on the data corresponding to the target task, and After the processing is completed, send an indication that the execution of the target task is completed to the NFC module; the clock signal generating module is adapted to generate a first clock signal and output it to the The NFC module; when the first clock request signal is not received, stop generating the first clock signal.
  • the NFC module is further adapted to send a wake-up signal to the main control module after being triggered by the target task.
  • the NFC module is adapted to send a wake-up signal to the main control module while sending the first clock request signal to the clock signal generation module; the main control module is adapted to receive the Wake up after the above wake-up signal.
  • the main control module is further adapted to send a second clock request signal to the clock signal generation module after receiving the wake-up signal; the clock signal generation module is further adapted to receive the wake-up signal.
  • a second clock signal is generated and output to the main control module.
  • the NFC module, the first clock request signal sent to the clock signal generation module is a high-level signal; when receiving the instruction sent by the main control module that the execution of the target task is completed, the The first clock request signal is converted from a high-level signal to a low-level signal.
  • An embodiment of the present invention further provides an NFC module, including: a sending unit, adapted to send a first clock request signal to a clock signal generating module when triggered by a target task, and send data corresponding to the target task to a a main control module; a receiving unit for receiving a first clock signal, the first clock signal is generated by the clock signal generating module after receiving the first clock request signal; a control unit for receiving all When the indication of completion of execution of the target task returned by the main control module is received, the sending of the first clock request signal to the clock signal generation module is stopped.
  • a sending unit adapted to send a first clock request signal to a clock signal generating module when triggered by a target task, and send data corresponding to the target task to a a main control module
  • a receiving unit for receiving a first clock signal, the first clock signal is generated by the clock signal generating module after receiving the first clock request signal
  • a control unit for receiving all When the indication of completion of execution of the target task returned by the main control module is received
  • An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, and the computer program is executed by a processor
  • the steps of any one of the NFC clock control methods described above are executed at runtime.
  • the NFC module When triggered by the target task, the NFC module sends a first clock request signal to the clock signal generating module, and sends data corresponding to the target task to the main control module. After receiving the indication of completion of execution of the target task returned by the main control module, stop sending the first clock request to the clock signal generating module. It can be seen that in the process of requesting the first clock signal, the NFC module does not need to participate in the process of the main control module, so the clock signal can be quickly provided to the NFC module to realize the rapid startup of the NFC module.
  • FIG. 1 is a schematic structural diagram of a terminal device in an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an NFC module in an embodiment of the present invention.
  • the clock signal of the NFC module is generated by the main control module.
  • the main control module needs to increase the interrupt processing on the software, the clock signal generation is slow, and the fast startup of the NFC module cannot be realized.
  • the NFC module in the process of requesting the first clock signal, directly sends the first clock request signal to the clock signal generation module, and directly receives the first clock signal output by the clock signal generation module, so no main control is required.
  • the process of the module is involved, so it can quickly provide a clock signal for the NFC module and realize the rapid startup of the NFC module.
  • FIG. 1 a terminal device in an embodiment of the present invention is shown. The specific structure and work flow of the terminal device will be described in detail below.
  • the terminal device may include an NFC module 101 , a main control module 102 and a clock signal generation module 103 .
  • the NFC module 101 may be connected in communication with the main control module 102 and the clock signal generation module 103 .
  • the NFC module 101 can send a first clock request signal to the clock signal generating module 103 , and send the data corresponding to the target task to the main control module 102 .
  • the NFC module 101 may also stop sending the first clock request signal to the clock signal generating module 103 when receiving the instruction sent by the main control module 102 that the execution of the target task is completed.
  • the main control module 102 may perform corresponding processing on the data corresponding to the target task. After the data corresponding to the target task is processed, the main control module 102 may send an indication that the execution of the target task is completed to the NFC module 101 .
  • the clock signal generating module 103 When the clock signal generating module 103 receives the first clock request signal, it can generate the corresponding first clock signal and output it to the NFC module 101; correspondingly, when the first clock request signal is not received, the clock signal generating module 103 can Stop generating the first clock signal.
  • the NFC module 101 may be an NFC chip, or other devices with NFC functions.
  • the NFC module 101 is triggered by a target task, and the target task may be a task corresponding to a function that the NFC chip can implement.
  • the target task is to detect the task of swiping the bus card.
  • the target task is to detect the task of swiping the access control card.
  • target task corresponding to the NFC module 101 may also be other types of tasks, and is not limited to the above example.
  • the NFC module 101 may be in a sleep state considering factors such as the power consumption of the terminal device. After being triggered by the target task, the state of the NFC module 101 is switched from the sleep state to the working state.
  • the NFC module 101 may send the first clock request signal to the clock signal generating module 103 .
  • the first clock request signal sent by the NFC module 101 to the clock signal generating module 103 may be a high-level signal.
  • the clock signal generating module 103 may generate a first clock signal and output it to the NFC module 101 .
  • the NFC module 101 receives the first clock signal.
  • the main control module 102 when the terminal device is in a sleep state, the main control module 102 may also be in a sleep state. Therefore, the main control module 102 needs to be woken up before it can perform corresponding processing on the data corresponding to the target task sent by the NFC module 101 .
  • the NFC module 101 may also send a wake-up signal to the main control module 102.
  • the main control module 102 can switch from the sleep state to the working state, and perform corresponding processing on the data corresponding to the target task.
  • the main control module 102 may send an indication that the execution of the target task is completed to the NFC module 101 .
  • the NFC module 101 may send a wake-up signal to the main control module 102 while sending the first clock request signal to the main control module 102 .
  • the NFC module 101 may also send a wake-up signal to the main control module 102 before or after sending the first clock request signal to the main control module 102 .
  • the NFC module 101 may stop sending the first clock request signal to the clock signal generating module 103 when receiving the instruction sent by the main control module 102 that the execution of the target task is completed.
  • the clock signal generating module 103 does not receive the first clock request signal, it stops generating the first clock signal.
  • the NFC module 101 may output a low-level signal when receiving an indication sent by the main control module 102 that the execution of the target task is completed. After receiving the low-level signal sent by the NFC module 101, the clock signal generating module 103 can stop generating the first clock signal, thereby saving the power consumption of the terminal device.
  • the NFC module 101 when the NFC module 101 needs the first clock signal, it can output a high-level signal to the clock signal generation module 103, so that the clock signal generation module 103 generates the first clock signal and outputs it to the NFC module 101; otherwise, when the NFC module 101 enters the sleep state, it can output a low-level signal to the clock signal generating module 103, so that the clock signal generating module 103 stops generating the first clock signal.
  • the clock signal of the main control module 102 may also be generated by the clock signal generating module 103 .
  • the main control module 102 may send the second clock request signal to the clock signal generation module 103 .
  • the clock signal generating module 103 can correspondingly generate the second clock signal, and output the second clock signal to the main control module 102 .
  • the second clock request signal sent by the main control module 102 to the clock signal generation module 103 may be a high-level signal.
  • the main control module 102 After completing the corresponding processing of the data corresponding to the target task, the main control module 102 sends an indication that the execution of the target task is completed to the NFC module 101 . If there are no other operations to be performed, the main control module 102 can also enter a sleep state to reduce the power consumption of the terminal device.
  • the main control module 102 may send a low level to the clock signal generating module 103 when sending an indication that the execution of the target task is completed to the NFC module 101 , or after sending an indication that the execution of the target task is complete to the NFC module 101 .
  • the clock signal generating module 103 can stop generating the second clock signal after receiving the low-level signal sent by the main control module 102 .
  • the clock signal generating module 103 may include a crystal oscillator, and after receiving the first clock request signal and/or the second clock request signal, the clock signal generating module 103 may control the crystal oscillator to oscillate to output the first clock of the corresponding frequency. a clock signal and/or a second clock signal.
  • the clock signal generation module 103 can also generate the first clock signal and the second clock signal at the same time, and the first clock signal is output to the NFC module 101 , the second clock signal is output to the main control module 102 , so that the main control module 102 does not need to send the second clock request signal to the clock signal generation module 103 again.
  • the main control module 102 may be a main controller, or other components capable of realizing a control function.
  • the clock signal generating module 103 reference may be made to the existing clock signal generating circuit, which is not repeated in the embodiment of the present invention.
  • An embodiment of the present invention further provides an NFC clock control method. Referring to FIG. 2 , the following detailed description is given through specific steps.
  • the following steps S201 to S203 may be performed by the NFC module.
  • Step S201 when triggered by the target task, send a first clock request signal to the clock signal generating module, and send the data corresponding to the target task to the main control module.
  • Step S202 receiving a first clock signal.
  • Step S203 receiving the indication that the execution of the target task is completed returned by the main control module, and stopping sending the first clock request signal to the clock signal generating module.
  • the NFC module can be an NFC chip, or other NFC-capable devices.
  • the NFC module is triggered by a target task, and the target task can be a task corresponding to a function that the NFC chip can implement. For example, if the NFC chip can realize the function of an electronic bus card, the target task is to detect the task of swiping the bus card. For another example, if the NFC chip can realize the function of an electronic access control card, the target task is to detect the task of swiping the access control card.
  • the target task corresponding to the NFC module may also be other types of tasks, and is not limited to the above example.
  • the NFC module before the NFC module receives the target task, the NFC module may be in a sleep state for consideration of factors such as the power consumption of the terminal device. After being triggered by the target task, the state of the NFC module is switched from the sleep state to the working state.
  • the NFC module may send the first clock request signal to the clock signal generating module.
  • the first clock request signal sent by the NFC module to the clock signal generating module may be a high-level signal.
  • the clock signal generating module can generate the first clock signal and output it to the NFC module.
  • the NFC module receives the first clock signal.
  • the main control module when the terminal device is in a sleep state, the main control module may also be in a sleep state. Therefore, the main control module needs to be woken up before it can perform corresponding processing on the data corresponding to the target task sent by the NFC module.
  • the NFC module may also send a wake-up signal to the main control module.
  • the main control module can switch from the sleep state to the working state, and perform corresponding processing on the data corresponding to the target task.
  • the main control module can send an indication that the execution of the target task is completed to the NFC module.
  • the NFC module may send a wake-up signal to the main control module while sending the first clock request signal to the main control module.
  • the NFC module may also send a wake-up signal to the main control module before or after sending the first clock request signal to the main control module.
  • the NFC module may stop sending the first clock request signal to the clock signal generating module when receiving the instruction sent by the main control module that the execution of the target task is completed.
  • the clock signal generating module stops generating the first clock signal when the first clock request signal is not received.
  • the NFC module may output a low-level signal when receiving the indication that the target task is completed and sent by the main control module.
  • the clock signal generating module can stop generating the first clock signal, thereby saving the power consumption of the terminal device.
  • the NFC module when the NFC module needs the first clock signal, it can output a high-level signal to the clock signal generation module, so that the clock signal generation module generates the first clock signal and outputs it to the NFC module; otherwise , when the NFC module enters the sleep state, it can output a low level signal to the clock signal generating module, so that the clock signal generating module stops generating the first clock signal.
  • the NFC module does not need to participate in the process of the main control module in the process of requesting the first clock signal, so the clock signal can be quickly provided for the NFC module to realize the rapid startup of the NFC module.
  • an NFC module 101 in an embodiment of the present invention including: a sending unit 301, a receiving unit 302, and a control unit 303, wherein:
  • the sending unit 301 is adapted to send a first clock request signal to the clock signal generation module when triggered by the target task, and send the data corresponding to the target task to the main control module;
  • a receiving unit 302 configured to receive a first clock signal, where the first clock signal is generated by the clock signal generating module after receiving the first clock request signal;
  • the control unit 303 is configured to stop sending the first clock request signal to the clock signal generating module when receiving the indication that the execution of the target task is completed returned by the main control module.
  • Embodiments of the present invention further provide a computer-readable storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, and the computer program is executed by a processor During operation, the steps of the NFC clock control method provided by the above steps S201 to S203 are executed.
  • each module/unit included in each device and product described in the above embodiments it may be a software module/unit, a hardware module/unit, or a part of a software module/unit, a part of which is a software module/unit. is a hardware module/unit.
  • each module/unit included therein may be implemented by hardware such as circuits, or at least some of the modules/units may be implemented by a software program.
  • Running on the processor integrated inside the chip the remaining (if any) part of the modules/units can be implemented by hardware such as circuits; for each device and product applied to or integrated in the chip module, the modules/units contained therein can be They are all implemented by hardware such as circuits, and different modules/units can be located in the same component of the chip module (such as chips, circuit modules, etc.) or in different components, or at least some of the modules/units can be implemented by software programs.
  • the software program runs on the processor integrated inside the chip module, and the remaining (if any) part of the modules/units can be implemented by hardware such as circuits; for each device and product applied to or integrated in the terminal, each module contained in it
  • the units/units may all be implemented in hardware such as circuits, and different modules/units may be located in the same component (eg, chip, circuit module, etc.) or in different components in the terminal, or at least some of the modules/units may be implemented by software programs Realization, the software program runs on the processor integrated inside the terminal, and the remaining (if any) part of the modules/units can be implemented in hardware such as circuits.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Telephone Function (AREA)

Abstract

A terminal device, an NFC clock control method, an NFC module, and a medium. The NFC clock control method comprises: when triggered by a target task, sending a first clock request signal to a clock signal generation module, and sending data corresponding to the target task to a main control module; receiving a first clock signal, the first clock signal being generated by the clock signal generation module after receiving the first clock request signal; receiving an indication that the target task has completed execution returned from the main control module, and ceasing sending the first clock request signal to the clock signal generation module. The described solution can quickly provide a clock signal for an NFC module.

Description

终端设备及NFC时钟控制方法、NFC模块、介质Terminal device and NFC clock control method, NFC module and medium
本申请要求于2020年12月23日提交中国专利局、申请号为202011544444.3、发明名称为“终端设备及NFC时钟控制方法、NFC模块、介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011544444.3 and the invention title "terminal device and NFC clock control method, NFC module, medium" filed with the China Patent Office on December 23, 2020, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本发明涉及无线通信技术领域,尤其涉及一种终端设备及NFC时钟控制方法、NFC模块、介质。The present invention relates to the technical field of wireless communication, and in particular, to a terminal device and an NFC clock control method, an NFC module and a medium.
背景技术Background technique
在终端设备中,NFC模块的时钟信号通常由主控制模块提供。主控制模块上设计有预留的时钟信号输出管脚。通常情况下,为降低终端设备的功耗,NFC模块与主控制模块可能均处于睡眠状态。In the terminal device, the clock signal of the NFC module is usually provided by the main control module. The main control module is designed with reserved clock signal output pins. Usually, in order to reduce the power consumption of the terminal device, both the NFC module and the main control module may be in a sleep state.
在睡眠状态下,主控制模块无法向NFC模块提供时钟信号。因此,NFC模块在被任务触发时,需要先向主控制模块发送时钟信号请求,该时钟信号请求通过通用输入输出端口(GPIO)产生中断,进而通过中断唤醒主控制模块,由主控制模块输出相应的时钟信号。In the sleep state, the main control module cannot provide a clock signal to the NFC module. Therefore, when the NFC module is triggered by a task, it needs to send a clock signal request to the main control module first. The clock signal request generates an interrupt through the general-purpose input output port (GPIO), and then wakes up the main control module through the interrupt, and the main control module outputs the corresponding clock signal.
现有技术中,NFC模块的时钟信号依赖于主控制模块,时钟信号生成较慢,无法实现NFC模块的快速启动。In the prior art, the clock signal of the NFC module is dependent on the main control module, the clock signal is generated slowly, and the fast startup of the NFC module cannot be realized.
发明内容SUMMARY OF THE INVENTION
本发明实施例解决的是NFC模块无法快速启动的技术问题。The embodiments of the present invention solve the technical problem that the NFC module cannot be started quickly.
为解决上述技术问题,本发明实施例提供一种NFC时钟控制方法,包括:在被目标任务触发时,向时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至主控制模块;接收第一时钟信号,所述第一时钟信号是所述时钟信号产生模块在接收到所述第一时钟请求信号后生成;接收所述主控制模块返回的所述目标任务执行完成的指示,停止向所述时钟信号产生模块发送所述第一时钟请求信号。In order to solve the above technical problems, an embodiment of the present invention provides an NFC clock control method, which includes: when triggered by a target task, sending a first clock request signal to a clock signal generating module, and sending data corresponding to the target task to the main control module; receive a first clock signal, the first clock signal is generated by the clock signal generation module after receiving the first clock request signal; receive the target task execution returned by the main control module The completion instruction stops sending the first clock request signal to the clock signal generating module.
可选的,所述NFC时钟控制方法还包括:在被目标任务触发后,向主控制模块发送唤醒信号,使得所述主控制模块在接收到所述唤醒信号后对所述目标任务对应的数据进行处理。Optionally, the NFC clock control method further includes: after being triggered by the target task, sending a wake-up signal to the main control module, so that the main control module can update the data corresponding to the target task after receiving the wake-up signal. to be processed.
可选的,所述在被目标任务触发后,向主控制模块发送唤醒信号,包括:在向所述时钟信号产生模块发送所述第一时钟请求信号的同时,向所述主控制模块发送所述唤醒信号。Optionally, the sending a wake-up signal to the main control module after being triggered by the target task includes: sending the first clock request signal to the main control module while sending the first clock request signal to the main control module. the wake-up signal.
可选的,所述向所述时钟信号产生模块发送第一时钟请求信号,包括:向所述时钟信号产生模块输出高电平信号,以使得所述时钟产生模块接收到所述高电平信号后产生第一时钟信号并输出。Optionally, the sending the first clock request signal to the clock signal generation module includes: outputting a high-level signal to the clock signal generation module, so that the clock generation module receives the high-level signal The first clock signal is then generated and output.
可选的,所述停止向所述时钟信号产生模块发送所述第一时钟请求信号,包括:向所述时钟信号产生模块输出低电平信号,以使得所述时钟产生模块接收到所述低电平信号后停止产生第一时钟信号。Optionally, the stopping of sending the first clock request signal to the clock signal generation module includes: outputting a low level signal to the clock signal generation module, so that the clock generation module receives the low level signal. Stop generating the first clock signal after the level signal.
为解决上述技术问题,本发明实施例还提供了一种终端设备,包括:NFC模块、主控制模块以及时钟信号产生模块,其中:所述NFC模块,适于在被目标任务触发时,向所述时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至所述主控制模块;以及,在接收到所述主控制模块发送的目标任务执行完成的指示时,停止向所述时钟信号产生模块发送所述第一时钟请求信号;所述主控制模块,适于在接收到所述目标任务对应的数据后,对所述目标任务对应的数据进行相应处理,在处理完成后,向所述NFC模块发送所述目标任务执行完成的指示;所述时钟信号产生模块,适于在接 收到所述第一时钟请求信号时,产生第一时钟信号并输出至所述NFC模块;在未接收到所述第一时钟请求信号时,停止产生所述第一时钟信号。In order to solve the above technical problem, an embodiment of the present invention also provides a terminal device, including: an NFC module, a main control module, and a clock signal generation module, wherein: the NFC module is adapted to be triggered by a target task, to all The clock signal generation module sends the first clock request signal, and sends the data corresponding to the target task to the main control module; and, when receiving the instruction that the target task execution completed sent by the main control module is received, Stop sending the first clock request signal to the clock signal generating module; the main control module is adapted to, after receiving the data corresponding to the target task, perform corresponding processing on the data corresponding to the target task, and After the processing is completed, send an indication that the execution of the target task is completed to the NFC module; the clock signal generating module is adapted to generate a first clock signal and output it to the The NFC module; when the first clock request signal is not received, stop generating the first clock signal.
可选的,所述NFC模块,还适于在被所述目标任务触发后,向所述主控制模块发送唤醒信号。Optionally, the NFC module is further adapted to send a wake-up signal to the main control module after being triggered by the target task.
可选的,所述NFC模块,适于在向所述时钟信号产生模块发送第一时钟请求信号的同时,向所述主控制模块发送唤醒信号;所述主控制模块,适于在接收到所述唤醒信号后唤醒。Optionally, the NFC module is adapted to send a wake-up signal to the main control module while sending the first clock request signal to the clock signal generation module; the main control module is adapted to receive the Wake up after the above wake-up signal.
可选的,所述主控制模块,还适于在接收到所述唤醒信号后,向所述时钟信号产生模块发送第二时钟请求信号;所述时钟信号产生模块,还适于在接收到所述第二时钟请求信号时,产生第二时钟信号并输出至所述主控制模块。Optionally, the main control module is further adapted to send a second clock request signal to the clock signal generation module after receiving the wake-up signal; the clock signal generation module is further adapted to receive the wake-up signal. When the second clock request signal is received, a second clock signal is generated and output to the main control module.
可选的,所述NFC模块,向所述时钟信号产生模块发送的第一时钟请求信号为高电平信号;在接收到所述主控制模块发送的所述目标任务执行完成的指示时,将所述第一时钟请求信号由高电平信号转换为低电平信号。Optionally, the NFC module, the first clock request signal sent to the clock signal generation module is a high-level signal; when receiving the instruction sent by the main control module that the execution of the target task is completed, the The first clock request signal is converted from a high-level signal to a low-level signal.
本发明实施例还提供了一种NFC模块,包括:发送单元,适于在被目标任务触发时,向时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至主控制模块;接收单元,用于接收第一时钟信号,所述第一时钟信号是所述时钟信号产生模块在接收到所述第一时钟请求信号后生成;控制单元,用于在接收到所述主控制模块返回的所述目标任务执行完成的指示时,停止向所述时钟信号产生模块发送所述第一时钟请求信号。An embodiment of the present invention further provides an NFC module, including: a sending unit, adapted to send a first clock request signal to a clock signal generating module when triggered by a target task, and send data corresponding to the target task to a a main control module; a receiving unit for receiving a first clock signal, the first clock signal is generated by the clock signal generating module after receiving the first clock request signal; a control unit for receiving all When the indication of completion of execution of the target task returned by the main control module is received, the sending of the first clock request signal to the clock signal generation module is stopped.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质为非易失性存储介质或非瞬态存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时执行上述任一种所述的NFC时钟控制方法的步骤。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, and the computer program is executed by a processor The steps of any one of the NFC clock control methods described above are executed at runtime.
与现有技术相比,本发明实施例的技术方案具有以下有益效果:Compared with the prior art, the technical solutions of the embodiments of the present invention have the following beneficial effects:
NFC模块在被目标任务触发时,向时钟信号产生模块发送第一时钟请求信号,并将与目标任务对应的数据发送至主控制模块。在接收到主控制模块返回的目标任务执行完成的指示后,停止向时钟信号产生模块发送第一时钟请求。可见,NFC模块在请求第一时钟信号的过程中,无需主控制模块的流程参与,因此可以快速地为NFC模块提供时钟信号,实现NFC模块的快速启动。When triggered by the target task, the NFC module sends a first clock request signal to the clock signal generating module, and sends data corresponding to the target task to the main control module. After receiving the indication of completion of execution of the target task returned by the main control module, stop sending the first clock request to the clock signal generating module. It can be seen that in the process of requesting the first clock signal, the NFC module does not need to participate in the process of the main control module, so the clock signal can be quickly provided to the NFC module to realize the rapid startup of the NFC module.
附图说明Description of drawings
图1是本发明实施例中的一种终端设备的结构示意图;1 is a schematic structural diagram of a terminal device in an embodiment of the present invention;
图2是本发明实施例中的一种NFC时钟控制方法的流程图;2 is a flowchart of an NFC clock control method in an embodiment of the present invention;
图3是本发明实施例中的一种NFC模块的结构示意图。FIG. 3 is a schematic structural diagram of an NFC module in an embodiment of the present invention.
具体实施方式Detailed ways
由上所述,现有技术中,NFC模块的时钟信号依赖于主控制模块产生。主控制模块需要增加软件上的中断处理,时钟信号生成较慢,无法实现NFC模块的快速启动。From the above, in the prior art, the clock signal of the NFC module is generated by the main control module. The main control module needs to increase the interrupt processing on the software, the clock signal generation is slow, and the fast startup of the NFC module cannot be realized.
在本发明实施例中,NFC模块在请求第一时钟信号的过程中,直接向时钟信号产生模块发送第一时钟请求信号,并直接接收时钟信号产生模块输出的第一时钟信号,因此无需主控制模块的流程参与,故而能够快速地为NFC模块提供时钟信号,实现NFC模块的快速启动。In the embodiment of the present invention, in the process of requesting the first clock signal, the NFC module directly sends the first clock request signal to the clock signal generation module, and directly receives the first clock signal output by the clock signal generation module, so no main control is required. The process of the module is involved, so it can quickly provide a clock signal for the NFC module and realize the rapid startup of the NFC module.
为使本发明的上述目的、特征和有益效果能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and beneficial effects of the present invention more clearly understood, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
参照图1,给出了本发明实施例中的一种终端设备。下面对该终端设备的具体结构及工作流程进行详细说明。Referring to FIG. 1, a terminal device in an embodiment of the present invention is shown. The specific structure and work flow of the terminal device will be described in detail below.
在具体实施中,终端设备可以包括NFC模块101、主控制模块102以及时钟信号产生模块103。In a specific implementation, the terminal device may include an NFC module 101 , a main control module 102 and a clock signal generation module 103 .
在本发明实施例中,NFC模块101可以与主控制模块102以及时钟信号产生模块103通信连接。NFC模块101在被目标任务触发时,可以向时钟信号产生模块103发送第一时钟请求信号,并将与目标任务对应的数据发送至主控制模块102。并且,NFC模块101还可以在接收到主控制模块102发送的目标任务执行完成的指示时,停止向时钟信号产生模块103发送第一时钟请求信号。In this embodiment of the present invention, the NFC module 101 may be connected in communication with the main control module 102 and the clock signal generation module 103 . When the NFC module 101 is triggered by the target task, it can send a first clock request signal to the clock signal generating module 103 , and send the data corresponding to the target task to the main control module 102 . In addition, the NFC module 101 may also stop sending the first clock request signal to the clock signal generating module 103 when receiving the instruction sent by the main control module 102 that the execution of the target task is completed.
主控制模块102可以在接收到目标任务对应的数据后,对目标任务对应的数据进行相应处理。在对目标任务对应的数据完成处理后,主控制模块102可以向NFC模块101发送目标任务执行完成的指示。After receiving the data corresponding to the target task, the main control module 102 may perform corresponding processing on the data corresponding to the target task. After the data corresponding to the target task is processed, the main control module 102 may send an indication that the execution of the target task is completed to the NFC module 101 .
时钟信号产生模块103在接收到第一时钟请求信号时,可以产生对应的第一时钟信号并输出至NFC模块101;相应地,在未接收到第一时钟请求信号时,时钟信号产生模块103可以停止产生第一时钟信号。When the clock signal generating module 103 receives the first clock request signal, it can generate the corresponding first clock signal and output it to the NFC module 101; correspondingly, when the first clock request signal is not received, the clock signal generating module 103 can Stop generating the first clock signal.
下面对本发明上述实施例中提供的终端设备的具体工作流程进行详细说明。The specific work flow of the terminal device provided in the above embodiments of the present invention will be described in detail below.
在具体实施中,NFC模块101可以为NFC芯片,或者其他具备NFC功能的器件。NFC模块101被目标任务触发,目标任务可以为NFC芯片所能实现功能所对应的任务。例如,NFC芯片能够实现电子公交卡的功能,则目标任务为:检测到刷公交卡的任务。又如,NFC芯片能够实现电子门禁卡的功能,则目标任务为:检测到刷门禁卡的任务。In a specific implementation, the NFC module 101 may be an NFC chip, or other devices with NFC functions. The NFC module 101 is triggered by a target task, and the target task may be a task corresponding to a function that the NFC chip can implement. For example, if the NFC chip can realize the function of an electronic bus card, the target task is to detect the task of swiping the bus card. For another example, if the NFC chip can realize the function of an electronic access control card, the target task is to detect the task of swiping the access control card.
可以理解的是,NFC模块101对应的目标任务还可以为其他类型的任务,并不仅限于上述示例。It can be understood that the target task corresponding to the NFC module 101 may also be other types of tasks, and is not limited to the above example.
在本发明实施例中,NFC模块101在接收到目标任务之前,出于终端设备功耗等因素的考虑,NFC模块101可以处于睡眠状态。 在被目标任务触发后,NFC模块101的状态从睡眠状态切换至工作状态。In this embodiment of the present invention, before the NFC module 101 receives the target task, the NFC module 101 may be in a sleep state considering factors such as the power consumption of the terminal device. After being triggered by the target task, the state of the NFC module 101 is switched from the sleep state to the working state.
在具体实施中,NFC模块101在被目标任务触发后,可以向时钟信号产生模块103发送第一时钟请求信号。In a specific implementation, after being triggered by the target task, the NFC module 101 may send the first clock request signal to the clock signal generating module 103 .
在本发明实施例中,NFC模块101向时钟信号产生模块103发送的第一时钟请求信号可以为高电平信号。时钟信号产生模块103在接收到NFC模块101输出的高电平信号之后,可以产生第一时钟信号并输出至NFC模块101。NFC模块101接收第一时钟信号。In this embodiment of the present invention, the first clock request signal sent by the NFC module 101 to the clock signal generating module 103 may be a high-level signal. After receiving the high-level signal output by the NFC module 101 , the clock signal generating module 103 may generate a first clock signal and output it to the NFC module 101 . The NFC module 101 receives the first clock signal.
在具体实施中,终端设备在睡眠状态下,主控制模块102也可以处于睡眠状态。因此,主控制模块102需要被唤醒后,才能够对NFC模块101发送的目标任务对应的数据进行相应的处理。In a specific implementation, when the terminal device is in a sleep state, the main control module 102 may also be in a sleep state. Therefore, the main control module 102 needs to be woken up before it can perform corresponding processing on the data corresponding to the target task sent by the NFC module 101 .
为唤醒主控制模块102,在本发明实施例中,NFC模块101在被目标任务触发后,还可以向主控制模块102发送唤醒信号。主控制模块102在接收到唤醒信号后,可以从睡眠状态切换至工作状态,并对目标任务对应的数据进行相应的处理。主控制模块102在完成对目标任务对应的数据进行相应的处理后,可以向NFC模块101发送目标任务执行完成的指示。To wake up the main control module 102, in this embodiment of the present invention, after being triggered by the target task, the NFC module 101 may also send a wake-up signal to the main control module 102. After receiving the wake-up signal, the main control module 102 can switch from the sleep state to the working state, and perform corresponding processing on the data corresponding to the target task. After completing the corresponding processing of the data corresponding to the target task, the main control module 102 may send an indication that the execution of the target task is completed to the NFC module 101 .
在本发明实施例中,NFC模块101可以在向主控制模块102发送第一时钟请求信号的同时,向主控制模块102发送唤醒信号。NFC模块101也可以在向主控制模块102发送第一时钟请求信号之前或之后,向主控制模块102发送唤醒信号。In this embodiment of the present invention, the NFC module 101 may send a wake-up signal to the main control module 102 while sending the first clock request signal to the main control module 102 . The NFC module 101 may also send a wake-up signal to the main control module 102 before or after sending the first clock request signal to the main control module 102 .
在具体实施中,NFC模块101在接收到主控制模块102发送的目标任务执行完成的指示时,可以停止向时钟信号产生模块103发送第一时钟请求信号。时钟信号产生模块103在未接收到第一时钟请求信号时,停止产生第一时钟信号。In a specific implementation, the NFC module 101 may stop sending the first clock request signal to the clock signal generating module 103 when receiving the instruction sent by the main control module 102 that the execution of the target task is completed. When the clock signal generating module 103 does not receive the first clock request signal, it stops generating the first clock signal.
在本发明实施例中,NFC模块101在接收到主控制模块102发送的目标任务执行完成的指示时,可以输出低电平信号。时钟信号产 生模块103在接收到NFC模块101发送的低电平信号之后,即可停止产生第一时钟信号,从而可以节省终端设备的功耗。In this embodiment of the present invention, the NFC module 101 may output a low-level signal when receiving an indication sent by the main control module 102 that the execution of the target task is completed. After receiving the low-level signal sent by the NFC module 101, the clock signal generating module 103 can stop generating the first clock signal, thereby saving the power consumption of the terminal device.
也就是说,在本发明实施例中,当NFC模块101需要第一时钟信号时,可以向时钟信号产生模块103输出高电平信号,使得时钟信号产生模块103产生第一时钟信号并输出至NFC模块101;反之,当NFC模块101进入睡眠状态时,可以向时钟信号产生模块103输出低电平信号,使得时钟信号产生模块103停止产生第一时钟信号。That is, in this embodiment of the present invention, when the NFC module 101 needs the first clock signal, it can output a high-level signal to the clock signal generation module 103, so that the clock signal generation module 103 generates the first clock signal and outputs it to the NFC module 101; otherwise, when the NFC module 101 enters the sleep state, it can output a low-level signal to the clock signal generating module 103, so that the clock signal generating module 103 stops generating the first clock signal.
在具体实施中,主控制模块102的时钟信号也可以有由时钟信号产生模块103产生。In a specific implementation, the clock signal of the main control module 102 may also be generated by the clock signal generating module 103 .
在本发明实施例中,主控制模块102在接收到唤醒信号后,可以向时钟信号产生模块103发送第二时钟请求信号。时钟信号产生模块103在接收到第二时钟请求信号后,即可对应产生第二时钟信号,并将第二时钟信号输出至主控制模块102。In this embodiment of the present invention, after receiving the wake-up signal, the main control module 102 may send the second clock request signal to the clock signal generation module 103 . After receiving the second clock request signal, the clock signal generating module 103 can correspondingly generate the second clock signal, and output the second clock signal to the main control module 102 .
主控制模块102向时钟信号产生模块103发送的第二时钟请求信号可以为高电平信号。The second clock request signal sent by the main control module 102 to the clock signal generation module 103 may be a high-level signal.
主控制模块102在完成对目标任务对应的数据进行相应的处理后,向NFC模块101发送目标任务执行完成的指示。若无其他需要执行的操作,主控制模块102也可以进入睡眠状态,以降低终端设备的功耗。After completing the corresponding processing of the data corresponding to the target task, the main control module 102 sends an indication that the execution of the target task is completed to the NFC module 101 . If there are no other operations to be performed, the main control module 102 can also enter a sleep state to reduce the power consumption of the terminal device.
在本发明实施例中,主控制模块102在向NFC模块101发送目标任务执行完成的指示时,或者在向NFC模块101发送目标任务执行完成的指示后,可以向时钟信号产生模块103低电平信号。时钟信号产生模块103在接收到主控制模块102发送的低电平信号之后,即可停止产生第二时钟信号。In this embodiment of the present invention, the main control module 102 may send a low level to the clock signal generating module 103 when sending an indication that the execution of the target task is completed to the NFC module 101 , or after sending an indication that the execution of the target task is complete to the NFC module 101 . Signal. The clock signal generating module 103 can stop generating the second clock signal after receiving the low-level signal sent by the main control module 102 .
在具体实施中,时钟信号产生模块103可以包括晶振,时钟信号产生模块103在接收到第一时钟请求信号和/或第二时钟请求信号之后,可以控制晶振进行振荡,以输出相应频率的第一时钟信号和/或 第二时钟信号。In a specific implementation, the clock signal generating module 103 may include a crystal oscillator, and after receiving the first clock request signal and/or the second clock request signal, the clock signal generating module 103 may control the crystal oscillator to oscillate to output the first clock of the corresponding frequency. a clock signal and/or a second clock signal.
在本发明实施例中,时钟信号产生模块103在接收到NFC模块101发送的第一时钟请求信号后,也可以同时生成第一时钟信号以及第二时钟信号,第一时钟信号输出至NFC模块101,第二时钟信号输出至主控制模块102,从而无需主控制模块102再向时钟信号产生模块103发送第二时钟请求信号。In this embodiment of the present invention, after receiving the first clock request signal sent by the NFC module 101 , the clock signal generation module 103 can also generate the first clock signal and the second clock signal at the same time, and the first clock signal is output to the NFC module 101 , the second clock signal is output to the main control module 102 , so that the main control module 102 does not need to send the second clock request signal to the clock signal generation module 103 again.
在具体实施中,主控制模块102可以为主控制器,或者其他能够实现控制功能的元器件。时钟信号产生模块103的具体电路及结构可以参照现有的时钟信号产生电路,本发明实施例不做赘述。In a specific implementation, the main control module 102 may be a main controller, or other components capable of realizing a control function. For the specific circuit and structure of the clock signal generating module 103, reference may be made to the existing clock signal generating circuit, which is not repeated in the embodiment of the present invention.
本发明实施例还提供了一种NFC时钟控制方法,参照图2,以下通过具体步骤进行详细说明。An embodiment of the present invention further provides an NFC clock control method. Referring to FIG. 2 , the following detailed description is given through specific steps.
在本发明实施例中,可以由NFC模块执行下述步骤S201~S203。In this embodiment of the present invention, the following steps S201 to S203 may be performed by the NFC module.
步骤S201,在被目标任务触发时,向时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至主控制模块。Step S201, when triggered by the target task, send a first clock request signal to the clock signal generating module, and send the data corresponding to the target task to the main control module.
步骤S202,接收第一时钟信号。Step S202, receiving a first clock signal.
步骤S203,接收所述主控制模块返回的所述目标任务执行完成的指示,停止向所述时钟信号产生模块发送所述第一时钟请求信号。Step S203, receiving the indication that the execution of the target task is completed returned by the main control module, and stopping sending the first clock request signal to the clock signal generating module.
NFC模块可以为NFC芯片,或者其他具备NFC功能的器件。NFC模块被目标任务触发,目标任务可以为NFC芯片所能实现功能所对应的任务。例如,NFC芯片能够实现电子公交卡的功能,则目标任务为:检测到刷公交卡的任务。又如,NFC芯片能够实现电子门禁卡的功能,则目标任务为:检测到刷门禁卡的任务。The NFC module can be an NFC chip, or other NFC-capable devices. The NFC module is triggered by a target task, and the target task can be a task corresponding to a function that the NFC chip can implement. For example, if the NFC chip can realize the function of an electronic bus card, the target task is to detect the task of swiping the bus card. For another example, if the NFC chip can realize the function of an electronic access control card, the target task is to detect the task of swiping the access control card.
可以理解的是,NFC模块对应的目标任务还可以为其他类型的任务,并不仅限于上述示例。It can be understood that, the target task corresponding to the NFC module may also be other types of tasks, and is not limited to the above example.
在本发明实施例中,NFC模块在接收到目标任务之前,出于终 端设备功耗等因素的考虑,NFC模块可以处于睡眠状态。在被目标任务触发后,NFC模块的状态从睡眠状态切换至工作状态。In this embodiment of the present invention, before the NFC module receives the target task, the NFC module may be in a sleep state for consideration of factors such as the power consumption of the terminal device. After being triggered by the target task, the state of the NFC module is switched from the sleep state to the working state.
在具体实施中,NFC模块在被目标任务触发后,可以向时钟信号产生模块发送第一时钟请求信号。In a specific implementation, after being triggered by the target task, the NFC module may send the first clock request signal to the clock signal generating module.
在本发明实施例中,NFC模块向时钟信号产生模块发送的第一时钟请求信号可以为高电平信号。时钟信号产生模块在接收到NFC模块输出的高电平信号之后,可以产生第一时钟信号并输出至NFC模块。NFC模块接收第一时钟信号。In this embodiment of the present invention, the first clock request signal sent by the NFC module to the clock signal generating module may be a high-level signal. After receiving the high level signal output by the NFC module, the clock signal generating module can generate the first clock signal and output it to the NFC module. The NFC module receives the first clock signal.
在具体实施中,终端设备在睡眠状态下,主控制模块也可以处于睡眠状态。因此,主控制模块需要被唤醒后,才能够对NFC模块发送的目标任务对应的数据进行相应的处理。In a specific implementation, when the terminal device is in a sleep state, the main control module may also be in a sleep state. Therefore, the main control module needs to be woken up before it can perform corresponding processing on the data corresponding to the target task sent by the NFC module.
为唤醒主控制模块,在本发明实施例中,NFC模块在被目标任务触发后,还可以向主控制模块发送唤醒信号。主控制模块在接收到唤醒信号后,可以从睡眠状态切换至工作状态,并对目标任务对应的数据进行相应的处理。主控制模块在完成对目标任务对应的数据进行相应的处理后,可以向NFC模块发送目标任务执行完成的指示。In order to wake up the main control module, in this embodiment of the present invention, after being triggered by the target task, the NFC module may also send a wake-up signal to the main control module. After receiving the wake-up signal, the main control module can switch from the sleep state to the working state, and perform corresponding processing on the data corresponding to the target task. After completing the corresponding processing of the data corresponding to the target task, the main control module can send an indication that the execution of the target task is completed to the NFC module.
在本发明实施例中,NFC模块可以在向主控制模块发送第一时钟请求信号的同时,向主控制模块发送唤醒信号。NFC模块也可以在向主控制模块发送第一时钟请求信号之前或之后,向主控制模块发送唤醒信号。In this embodiment of the present invention, the NFC module may send a wake-up signal to the main control module while sending the first clock request signal to the main control module. The NFC module may also send a wake-up signal to the main control module before or after sending the first clock request signal to the main control module.
在具体实施中,NFC模块在接收到主控制模块发送的目标任务执行完成的指示时,可以停止向时钟信号产生模块发送第一时钟请求信号。时钟信号产生模块在未接收到第一时钟请求信号时,停止产生第一时钟信号。In a specific implementation, the NFC module may stop sending the first clock request signal to the clock signal generating module when receiving the instruction sent by the main control module that the execution of the target task is completed. The clock signal generating module stops generating the first clock signal when the first clock request signal is not received.
在本发明实施例中,NFC模块在接收到主控制模块发送的目标任务执行完成的指示时,可以输出低电平信号。时钟信号产生模块在接收到NFC模块发送的低电平信号之后,即可停止产生第一时钟信 号,从而可以节省终端设备的功耗。In the embodiment of the present invention, the NFC module may output a low-level signal when receiving the indication that the target task is completed and sent by the main control module. After receiving the low-level signal sent by the NFC module, the clock signal generating module can stop generating the first clock signal, thereby saving the power consumption of the terminal device.
也就是说,在本发明实施例中,当NFC模块需要第一时钟信号时,可以向时钟信号产生模块输出高电平信号,使得时钟信号产生模块产生第一时钟信号并输出至NFC模块;反之,当NFC模块进入睡眠状态时,可以向时钟信号产生模块输出低电平信号,使得时钟信号产生模块停止产生第一时钟信号。That is, in this embodiment of the present invention, when the NFC module needs the first clock signal, it can output a high-level signal to the clock signal generation module, so that the clock signal generation module generates the first clock signal and outputs it to the NFC module; otherwise , when the NFC module enters the sleep state, it can output a low level signal to the clock signal generating module, so that the clock signal generating module stops generating the first clock signal.
由上可见,本发明实施例中,NFC模块在请求第一时钟信号的过程中,无需主控制模块的流程参与,因此可以快速地为NFC模块提供时钟信号,实现NFC模块的快速启动。As can be seen from the above, in the embodiment of the present invention, the NFC module does not need to participate in the process of the main control module in the process of requesting the first clock signal, so the clock signal can be quickly provided for the NFC module to realize the rapid startup of the NFC module.
参照图3,给出了本发明实施例中的一种NFC模块101,包括:发送单元301、接收单元302以及控制单元303,其中:Referring to FIG. 3, an NFC module 101 in an embodiment of the present invention is given, including: a sending unit 301, a receiving unit 302, and a control unit 303, wherein:
发送单元301,适于在被目标任务触发时,向时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至主控制模块;The sending unit 301 is adapted to send a first clock request signal to the clock signal generation module when triggered by the target task, and send the data corresponding to the target task to the main control module;
接收单元302,用于接收第一时钟信号,所述第一时钟信号是所述时钟信号产生模块在接收到所述第一时钟请求信号后生成;a receiving unit 302, configured to receive a first clock signal, where the first clock signal is generated by the clock signal generating module after receiving the first clock request signal;
控制单元303,用于在接收到所述主控制模块返回的所述目标任务执行完成的指示时,停止向所述时钟信号产生模块发送所述第一时钟请求信号。The control unit 303 is configured to stop sending the first clock request signal to the clock signal generating module when receiving the indication that the execution of the target task is completed returned by the main control module.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质为非易失性存储介质或非瞬态存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时执行上述步骤S201~步骤S203提供的NFC时钟控制方法的步骤。Embodiments of the present invention further provide a computer-readable storage medium, where the computer-readable storage medium is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, and the computer program is executed by a processor During operation, the steps of the NFC clock control method provided by the above steps S201 to S203 are executed.
在具体实施中,关于上述实施例中描述的各个装置、产品包含的各个模块/单元,其可以是软件模块/单元,也可以是硬件模块/单元,或者也可以部分是软件模块/单元,部分是硬件模块/单元。In specific implementation, regarding each module/unit included in each device and product described in the above embodiments, it may be a software module/unit, a hardware module/unit, or a part of a software module/unit, a part of which is a software module/unit. is a hardware module/unit.
例如,对于应用于或集成于芯片的各个装置、产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于芯片模组的各个装置、产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于芯片模组的同一组件(例如芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片模组内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于终端的各个装置、产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于终端内同一组件(例如,芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于终端内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现。For example, for each device or product applied to or integrated in a chip, each module/unit included therein may be implemented by hardware such as circuits, or at least some of the modules/units may be implemented by a software program. Running on the processor integrated inside the chip, the remaining (if any) part of the modules/units can be implemented by hardware such as circuits; for each device and product applied to or integrated in the chip module, the modules/units contained therein can be They are all implemented by hardware such as circuits, and different modules/units can be located in the same component of the chip module (such as chips, circuit modules, etc.) or in different components, or at least some of the modules/units can be implemented by software programs. The software program runs on the processor integrated inside the chip module, and the remaining (if any) part of the modules/units can be implemented by hardware such as circuits; for each device and product applied to or integrated in the terminal, each module contained in it The units/units may all be implemented in hardware such as circuits, and different modules/units may be located in the same component (eg, chip, circuit module, etc.) or in different components in the terminal, or at least some of the modules/units may be implemented by software programs Realization, the software program runs on the processor integrated inside the terminal, and the remaining (if any) part of the modules/units can be implemented in hardware such as circuits.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指示相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM, RAM, magnetic disk or optical disk, etc.
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be based on the scope defined by the claims.

Claims (12)

  1. 一种NFC时钟控制方法,其特征在于,包括:An NFC clock control method, comprising:
    在被目标任务触发时,向时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至主控制模块;When triggered by the target task, send a first clock request signal to the clock signal generation module, and send the data corresponding to the target task to the main control module;
    接收第一时钟信号,所述第一时钟信号是所述时钟信号产生模块在接收到所述第一时钟请求信号后生成;receiving a first clock signal, where the first clock signal is generated by the clock signal generating module after receiving the first clock request signal;
    接收所述主控制模块返回的所述目标任务执行完成的指示,停止向所述时钟信号产生模块发送所述第一时钟请求信号。Receive the indication of completion of execution of the target task returned by the main control module, and stop sending the first clock request signal to the clock signal generation module.
  2. 如权利要求1所述的NFC时钟控制方法,其特征在于,还包括:在被目标任务触发后,向主控制模块发送唤醒信号,使得所述主控制模块在接收到所述唤醒信号后对所述目标任务对应的数据进行处理。The NFC clock control method according to claim 1, further comprising: after being triggered by the target task, sending a wake-up signal to the main control module, so that the main control module responds to all the signals after receiving the wake-up signal. The data corresponding to the target task is processed.
  3. 如权利要求2所述的NFC时钟控制方法,其特征在于,所述在被目标任务触发后,向主控制模块发送唤醒信号,包括:The NFC clock control method according to claim 2, wherein the sending a wake-up signal to the main control module after being triggered by the target task comprises:
    在向所述时钟信号产生模块发送所述第一时钟请求信号的同时,向所述主控制模块发送所述唤醒信号。The wake-up signal is sent to the main control module while the first clock request signal is sent to the clock signal generation module.
  4. 如权利要求1所述的NFC时钟控制方法,其特征在于,所述向所述时钟信号产生模块发送第一时钟请求信号,包括:The NFC clock control method according to claim 1, wherein the sending the first clock request signal to the clock signal generating module comprises:
    向所述时钟信号产生模块输出高电平信号,以使得所述时钟产生模块接收到所述高电平信号后产生第一时钟信号并输出。A high-level signal is output to the clock signal generating module, so that the clock generating module generates and outputs a first clock signal after receiving the high-level signal.
  5. 如权利要求1所述的NFC时钟控制方法,其特征在于,所述停止向所述时钟信号产生模块发送所述第一时钟请求信号,包括:The NFC clock control method according to claim 1, wherein the stopping sending the first clock request signal to the clock signal generating module comprises:
    向所述时钟信号产生模块输出低电平信号,以使得所述时钟产生模块接收到所述低电平信号后停止产生第一时钟信号。A low-level signal is output to the clock signal generating module, so that the clock generating module stops generating the first clock signal after receiving the low-level signal.
  6. 一种终端设备,其特征在于,包括:NFC模块、主控制模块以及时钟信号产生模块,其中:A terminal device, comprising: an NFC module, a main control module and a clock signal generation module, wherein:
    所述NFC模块,适于在被目标任务触发时,向所述时钟信号产生模块发送第一时钟请求信号,并将与所述目标任务对应的数据发送至所述主控制模块;以及,在接收到所述主控制模块发送的目标任务执行完成的指示时,停止向所述时钟信号产生模块发送所述第一时钟请求信号;The NFC module is adapted to send a first clock request signal to the clock signal generation module when triggered by a target task, and send data corresponding to the target task to the main control module; and, when receiving Stop sending the first clock request signal to the clock signal generating module when the target task execution completion indication sent by the main control module is reached;
    所述主控制模块,适于在接收到所述目标任务对应的数据后,对所述目标任务对应的数据进行相应处理,在处理完成后,向所述NFC模块发送所述目标任务执行完成的指示;The main control module is adapted to, after receiving the data corresponding to the target task, perform corresponding processing on the data corresponding to the target task, and after the processing is completed, send to the NFC module the completion of the execution of the target task. instruct;
    所述时钟信号产生模块,适于在接收到所述第一时钟请求信号时,产生第一时钟信号并输出至所述NFC模块;在未接收到所述第一时钟请求信号时,停止产生所述第一时钟信号。The clock signal generating module is adapted to generate a first clock signal and output it to the NFC module when the first clock request signal is received; stop generating all the clock signals when the first clock request signal is not received. the first clock signal.
  7. 如权利要求6所述的终端设备,其特征在于,所述NFC模块,还适于在被所述目标任务触发后,向所述主控制模块发送唤醒信号。The terminal device according to claim 6, wherein the NFC module is further adapted to send a wake-up signal to the main control module after being triggered by the target task.
  8. 如权利要求7所述的终端设备,其特征在于,所述NFC模块,适于在向所述时钟信号产生模块发送第一时钟请求信号的同时,向所述主控制模块发送唤醒信号;所述主控制模块,适于在接收到所述唤醒信号后唤醒。The terminal device according to claim 7, wherein the NFC module is adapted to send a wake-up signal to the main control module while sending the first clock request signal to the clock signal generating module; the The main control module is adapted to wake up after receiving the wake-up signal.
  9. 如权利要求7所述的终端设备,其特征在于,所述主控制模块,还适于在接收到所述唤醒信号后,向所述时钟信号产生模块发送第二时钟请求信号;所述时钟信号产生模块,还适于在接收到所述第二时钟请求信号时,产生第二时钟信号并输出至所述主控制模块。The terminal device according to claim 7, wherein the main control module is further adapted to send a second clock request signal to the clock signal generation module after receiving the wake-up signal; the clock signal The generating module is further adapted to generate a second clock signal and output it to the main control module when receiving the second clock request signal.
  10. 如权利要求6所述的终端设备,其特征在于,所述NFC模块,向所述时钟信号产生模块发送的第一时钟请求信号为高电平信号;在接收到所述主控制模块发送的所述目标任务执行完成的指示时,将所述第一时钟请求信号由高电平信号转换为低电平信号。The terminal device according to claim 6, wherein, the first clock request signal sent by the NFC module to the clock signal generating module is a high-level signal; When the indication of completion of execution of the target task is given, the first clock request signal is converted from a high-level signal to a low-level signal.
  11. 一种NFC模块,其特征在于,包括:An NFC module, characterized in that it includes:
    发送单元,适于在被目标任务触发时,向时钟信号产生模块发送第一 时钟请求信号,并将与所述目标任务对应的数据发送至主控制模块;The sending unit is adapted to, when triggered by the target task, send the first clock request signal to the clock signal generation module, and send the data corresponding to the target task to the main control module;
    接收单元,用于接收第一时钟信号,所述第一时钟信号是所述时钟信号产生模块在接收到所述第一时钟请求信号后生成;a receiving unit, configured to receive a first clock signal, where the first clock signal is generated by the clock signal generating module after receiving the first clock request signal;
    控制单元,用于在接收到所述主控制模块返回的所述目标任务执行完成的指示时,停止向所述时钟信号产生模块发送所述第一时钟请求信号。The control unit is configured to stop sending the first clock request signal to the clock signal generating module when receiving the indication that the execution of the target task is completed returned by the main control module.
  12. 一种计算机可读存储介质,所述计算机可读存储介质为非易失性存储介质或非瞬态存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器运行时执行权利要求1~5任一项所述的NFC时钟控制方法的步骤。A computer-readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, on which a computer program is stored, characterized in that the computer program is executed when a processor runs The steps of the NFC clock control method according to any one of claims 1 to 5.
PCT/CN2021/133839 2020-12-23 2021-11-29 Terminal device, nfc clock control method, nfc module, and medium WO2022135060A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011544444.3A CN112559082B (en) 2020-12-23 2020-12-23 Terminal device, NFC clock control method, NFC module and medium
CN202011544444.3 2020-12-23

Publications (1)

Publication Number Publication Date
WO2022135060A1 true WO2022135060A1 (en) 2022-06-30

Family

ID=75031951

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133839 WO2022135060A1 (en) 2020-12-23 2021-11-29 Terminal device, nfc clock control method, nfc module, and medium

Country Status (2)

Country Link
CN (1) CN112559082B (en)
WO (1) WO2022135060A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559082B (en) * 2020-12-23 2022-05-31 厦门紫光展锐科技有限公司 Terminal device, NFC clock control method, NFC module and medium
CN115603780B (en) * 2022-12-09 2023-04-18 北京紫光青藤微系统有限公司 Method and device for determining communication scheme, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645794A (en) * 2013-11-15 2014-03-19 北京兆易创新科技股份有限公司 Chip and method for achieving sleep mode wake-up through edge detection circuit
CN104182027A (en) * 2014-08-14 2014-12-03 Tcl通讯(宁波)有限公司 NFC clock control device for mobile terminal, and method thereof
CN109756249A (en) * 2017-11-02 2019-05-14 三星电子株式会社 Near-field communication equipment
CN112559082A (en) * 2020-12-23 2021-03-26 厦门紫光展锐科技有限公司 Terminal device, NFC clock control method, NFC module and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369643B (en) * 2012-04-10 2018-01-23 中兴通讯股份有限公司 The method and apparatus that mobile terminal reduces system power dissipation
CN103412634B (en) * 2013-07-30 2016-08-10 深圳市汇顶科技股份有限公司 The MCU Rouser of a kind of SOC and method
CN207489012U (en) * 2017-11-14 2018-06-12 上海坤锐电子科技有限公司 A kind of SOC chip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645794A (en) * 2013-11-15 2014-03-19 北京兆易创新科技股份有限公司 Chip and method for achieving sleep mode wake-up through edge detection circuit
CN104182027A (en) * 2014-08-14 2014-12-03 Tcl通讯(宁波)有限公司 NFC clock control device for mobile terminal, and method thereof
CN109756249A (en) * 2017-11-02 2019-05-14 三星电子株式会社 Near-field communication equipment
CN112559082A (en) * 2020-12-23 2021-03-26 厦门紫光展锐科技有限公司 Terminal device, NFC clock control method, NFC module and medium

Also Published As

Publication number Publication date
CN112559082A (en) 2021-03-26
CN112559082B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
WO2022135060A1 (en) Terminal device, nfc clock control method, nfc module, and medium
US11463955B2 (en) Method for implementing low power consumption on standby for bluetooth security device and bluetooth security device
US20130173951A1 (en) Controlling communication of a clock signal to a peripheral
US8015428B2 (en) Processing device and clock control method
KR20160091065A (en) SoC, METHOD FOR MANAGING POWER OF THEREOF AND ELECTRONIC DEVICE
US6674821B1 (en) Method and apparatus for reducing power consumption
JP3552213B2 (en) SD memory card host controller and clock control method
JP3070527B2 (en) Wireless mobile terminal
CN110399328B (en) Control method and device for board-mounted graphics processor
US7953992B2 (en) System in package semiconductor device suitable for efficient power management and method of managing power of the same
US7219248B2 (en) Semiconductor integrated circuit operable to control power supply voltage
US20070156934A1 (en) High-speed PCI Interface System and A Reset Method Thereof
CN101281416A (en) Method for ensuring system closedown completion
US20170212550A1 (en) Semiconductor device, semiconductor system, and method of operating the semiconductor device
US10545562B2 (en) Electronic device and method for operating the same
US10331592B2 (en) Communication apparatus with direct control and associated methods
US10866676B2 (en) Touch sensitive electronic device, touch sensitive processing apparatus and method thereof
TWI461916B (en) Method for switching dual operating systems and electronic device using the same
JP3962924B2 (en) Semiconductor device, semiconductor circuit, electronic device, and clock supply control method
JP3962923B2 (en) Semiconductor device, semiconductor circuit, electronic device, and clock supply control method
CN108268085B (en) Semiconductor device with a semiconductor device having a plurality of semiconductor chips
CN108268087B (en) Semiconductor device, semiconductor system, and method of operating semiconductor device
US10761581B2 (en) Method and module for programmable power management, and system on chip
KR20230104625A (en) System and Method for Modem Stabilization When Waiting for AP Powered Link Recovery
CN108227893B (en) Serial port controller, micro control system and awakening method in micro control system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21909059

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21909059

Country of ref document: EP

Kind code of ref document: A1