CN113760092A - Detection method applied to man-machine interaction in low power consumption mode - Google Patents

Detection method applied to man-machine interaction in low power consumption mode Download PDF

Info

Publication number
CN113760092A
CN113760092A CN202111038768.4A CN202111038768A CN113760092A CN 113760092 A CN113760092 A CN 113760092A CN 202111038768 A CN202111038768 A CN 202111038768A CN 113760092 A CN113760092 A CN 113760092A
Authority
CN
China
Prior art keywords
gpio
power consumption
clock
low power
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111038768.4A
Other languages
Chinese (zh)
Inventor
杜洪洋
黄俊钦
李华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Songhao Electronic Technology Co ltd
Original Assignee
Hefei Songhao Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Songhao Electronic Technology Co ltd filed Critical Hefei Songhao Electronic Technology Co ltd
Priority to CN202111038768.4A priority Critical patent/CN113760092A/en
Publication of CN113760092A publication Critical patent/CN113760092A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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/14Time supervision arrangements, e.g. real time clock
    • 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/3237Power saving characterised by the action undertaken by disabling clock generation or distribution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a detection method applied to man-machine interaction in a low power consumption mode, wherein in the low power consumption mode, a CPU is always in a low power consumption state, an internal timer is used for opening a clock of a TP IC at regular time, the TP IC is used for detecting whether a man-machine interaction event is generated or not, if the man-machine interaction event is generated, information of a detected channel is reported to an upper computer through a GPIO (general purpose input/output), and the low power consumption mode ensures that the man-machine interaction event can still be responded in real time on the premise of keeping low power consumption.

Description

Detection method applied to man-machine interaction in low power consumption mode
Technical Field
The invention relates to the technical field of human-computer interaction, in particular to a detection method applied to human-computer interaction in a low power consumption mode.
Background
At the moment of rapid development of the semiconductor industry, the relationship between people's life and various terminal electronic products has become closely inseparable: smart phones and mobile payments have facilitated our lives; the watch bracelet constantly monitors the health index of people; the smart phone and the watch bracelet are connected and share data through the wireless network, and the service quality is further improved. Therefore, the standby time of the terminal product greatly affects the user experience. Trying to see that if your cell phone or watch bracelet should be charged every half day, it is a much worse experience.
Nowadays, in the development process of an intelligent terminal product system, the design of a low power consumption mode is more and more emphasized. Generally, when the system is in a standby state, the CPU is in a low power consumption mode and does not perform any detection. When the system receives an external event needing to respond, the CPU is awakened from the low power consumption mode, relevant function detection is carried out, and finally dot-dash reporting is achieved.
Under a common working scene, the clocks of the CPU and other hardware modules in the system are in a normally open state, and the power consumption of the whole system reaches the highest value. However, in some mobile terminal products, especially wearing products, the most common working mode is that the point coordinates do not need to be calculated, and only whether the channel has a man-machine interaction event or not is detected. Therefore, related low power consumption design can be carried out in the working mode, and the system is in a low power consumption state to save power consumption. If the CPU is still in a working state at this time, power consumption loss may be increased, the service time of the product may be reduced, and the use experience of the customer may be affected.
Current low power designs are mainly Software Monitor Mode and Hardware Monitor Mode.
For Software _ Monitor _ Mode, after entering the low power consumption Mode, the CPU is configured to enter the low power consumption Mode, and simultaneously, clocks of each hardware module are also all turned off, only one 32K clock is reserved, a timer is used for counting in the clock domain, and when the timer counts to a preset threshold, the CPU is awakened from the low power consumption state. The awakened CPU can detect whether an interactive event is generated or not, if no interactive event is generated, the operation is repeated, and Software _ Monitor _ Mode is entered again; and if the interaction event is generated, entering a normal working mode. The overall timing diagram is shown in fig. 1.
For Hardware _ Monitor _ Mode, after entering the low power consumption Mode, configuring a CPU to enter the low power consumption Mode, simultaneously closing all clocks of each Hardware module, only reserving one 32K clock, using a timer to count in the clock domain, and when the timer counts to a preset threshold, only opening the clock of a TP IC and controlling the TP to perform human-computer interaction event monitoring. If no interactive event is generated, repeating the operation, and entering Hardware _ Monitor _ Mode again; if an interactive event is generated, the CPU is awakened from the low power consumption mode and enters a common working mode. The overall timing diagram is shown in fig. 2.
The Software _ Monitor _ Mode essentially wakes up the CPU at fixed time through a timer, the CPU detects and judges whether a human-computer interaction event exists at present, and if the human-computer interaction event is generated, the CPU can respond in real time. However, if no human-computer interaction event occurs at this time, the CPU is still in a working state, so the power consumption of Software _ Monitor _ Mode is relatively large.
The Hardware _ Monitor _ Mode essentially starts a clock of the TP IC at regular time through a timer, detects whether a human-computer interaction event exists at present through the TP IC, and wakes up the CPU to detect and respond to the interaction event if the human-computer interaction event is generated. The power consumption of Software _ Monitor _ Mode is significantly reduced compared with that of Software _ Monitor _ Mode, but when the CPU is in a low power consumption state, it can only detect whether a human-computer interaction event is generated, but cannot respond to the human-computer interaction event, and when it responds to the event, the CPU must be woken up from the low power consumption state, which cannot achieve the expectation of being in the reduced power consumption state all the time.
Disclosure of Invention
The invention aims to make up for the defects of the prior art and provides a detection method applied to man-machine interaction in a low power consumption mode. The invention designs a brand-new low-power-consumption Mode, namely GPIO-Detect-Mode, based on a human-computer interaction scene which does not need point coordinate calculation and only detects touch. After entering the low power consumption mode, the clock of the CPU is turned off and is always kept in a low power consumption state; mapping the channel to be detected and GPIO ports of the TP IC one by one; counting by a timer, opening a clock of the TP IC at regular time and controlling the TP IC to carry out human-computer interaction detection, if a human-computer interaction event is generated on a channel to be detected, turning over a signal on the mapped GPIO interface, informing an upper computer through the turning over of the signal, and generating the human-computer interaction event.
The invention is realized by the following technical scheme:
a detection method applied to man-machine interaction in a low power consumption mode specifically comprises the following steps:
(1) mapping a human-computer interaction channel to be detected and a GPIO (general purpose input/output) in a TP IC (transport platform IC) to ensure that the human-computer interaction channel corresponds to the GPIO one by one;
(2) entering a GPIO detection mode, closing a CPU clock, configuring the CPU to enter a low power consumption state, only reserving a 32K clock and enabling a timer in the clock domain to start counting;
(3) when the timer counts a preset threshold value, the timer starts a working clock of the TP IC at regular time, the TP IC starts to detect a channel to be detected, after one frame of detection is finished, if no man-machine interaction event is detected, the working clock of the TP IC is closed, a counter under a 32K clock domain starts to count again, and the actions are repeated; and if the human-computer interaction event is detected to be generated, turning over the GPIO signal mapped by the channel to be detected generating the human-computer interaction event and outputting the GPIO signal to the upper computer, then closing the working clock of the TP IC, restarting counting by the counter under the 32K clock domain again, opening the clock of the TP IC again after the counting reaches the threshold value, firstly setting the inverted GPIO output signal back to the default value, then enabling the TP IC to start detection, and repeating the operation.
The upper computer wakes up the CPU and exits the GPIO detection mode by sending an instruction; or when the timer counts to a threshold value, the CPU is awakened and the GPIO detection mode is exited.
When the man-machine interaction channel to be detected is mapped with the GPIO in the TP IC in the step (1), the initial value of the GPIO can be configured at will.
And updating the buffer data in real time in the detection of each frame of TP IC in the GPIO detection mode.
The invention has the advantages that: the invention designs a brand-new low-power-consumption mode design, under the low-power-consumption mode, a CPU is always in a low-power-consumption state, an internal timer is used for opening a clock of a TP IC at regular time, the TP IC detects whether a human-computer interaction event is generated or not, if the human-computer interaction event is generated, information of a detected channel is reported to an upper computer through a GPIO (general purpose input/output) interface, and the low-power-consumption mode ensures that the human-computer interaction event can still be responded in real time on the premise of keeping low power consumption.
Drawings
FIG. 1 is a timing diagram of Software Monitor Mode.
FIG. 2 is a timing diagram of Hardware _ Monitor _ Mode.
Fig. 3 is a timing diagram of GPIO _ Detect _ Mode according to the present invention.
Fig. 4 is a flow chart of GPIO _ Detect _ Mode of the present invention.
Detailed Description
The present invention mainly provides a new low power consumption design: under the application scene without key coordinate calculation, the CPU can be always in a low power consumption mode without any detection, the TP IC detects the channel to be detected in real time, and if a human-computer interaction event occurs on the channel to be detected, the GPIO mapped by the channel is turned over to inform an upper computer of generating the human-computer interaction event. In the whole process, the CPU is in a low power consumption state, so that the power consumption can be effectively reduced.
The core of the technical scheme of the invention is GPIO _ Detect _ Mode (GPIO detection Mode). The mode is widely applied to scenes which do not need to carry out point coordinate calculation and only respond to interaction events. Before entering the mode, the channel to be detected and the internal GPIO are mapped to ensure that the relationship is one-to-one. After the GPIO _ Detect _ Mode is entered, the clock of the CPU is closed, the CPU is configured to enter a low power consumption state, meanwhile, the clock of each hardware module is closed, only one 32K clock is reserved, and a timer in the clock domain is enabled to start counting. When the timer counts a preset threshold value, a working clock of the TP IC is opened, the TP IC starts to detect a channel to be detected, after one frame of detection is finished, if no man-machine interaction event is detected, the working clock of the TP IC is closed, a counter under a 32K clock domain starts to count again, and the actions are repeated; and if the human-computer interaction event is detected to be generated, turning over the GPIO signal mapped by the channel to be detected generating the human-computer interaction event and outputting the GPIO signal to the upper computer, then closing the working clock of the TP IC, restarting counting by the counter under the 32K clock domain again, opening the clock of the TP IC again after the counting reaches the threshold value, firstly setting the inverted GPIO output signal back to the default value, then enabling the TP IC to start detection, and repeating the operation.
Under the whole GPIO _ Detect _ Mode, the CPU is in a low power consumption state. And the information of man-machine interaction is transmitted to the upper computer through the scanning of the TP IC and the mapping of the channel to be tested and the GPIO, and finally, the real-time response of the man-machine interaction event can be realized when the CPU is in a low power consumption state. The function of responding to the man-machine interaction event can be realized while the maximum power consumption is kept saved. The overall flow timing diagram and the flow chart are shown in fig. 3 and 4.
Under the GPIO _ Detect _ Mode, the scanning frequency can be configured according to the actual use scene, so that compromise selection can be made in power consumption and detection accuracy, and the performance is improved. The upper computer can control the system to wake up the CPU and exit the GPIO _ Detect _ Mode by issuing an instruction; or when a timer inside the system counts to a threshold value, the CPU is awakened and the GPIO _ Detect _ Mode is exited. Both methods are collectively referred to as interrupt events to wake up the CPU.
Before entering the GPIO _ Detect _ Mode, an important loop is to make a mapping relation between a channel to be tested and the GPIO, and meanwhile, the initial value of the GPIO can be configured at will.
In order to ensure the accuracy of responding to the man-machine interaction event under the GPIO _ Detect _ Mode, the cache data is updated in real time in the detection of each frame of TP IC under the GPIO _ Detect _ Mode, so that the detection accuracy is improved.
Interpretation of terms:
IC-integrated circuit;
TP-touch chip;
CPU-Central processing Unit;
software _ Monitor _ Mode-Software wake-up Mode;
hardware _ Monitor _ Mode — Hardware wakeup Mode;
GPIO-general purpose input/output interface;
GPIO Detect Mode-GPIO Detect Mode.

Claims (4)

1. A detection method applied to man-machine interaction in a low power consumption mode is characterized in that: the method specifically comprises the following steps:
(1) mapping a human-computer interaction channel to be detected and a GPIO (general purpose input/output) in a TP IC (transport platform IC) to ensure that the human-computer interaction channel corresponds to the GPIO one by one;
(2) entering a GPIO detection mode, closing a CPU clock, configuring the CPU to enter a low power consumption state, only reserving a 32K clock and enabling a timer in the clock domain to start counting;
(3) when the timer counts a preset threshold value, the timer starts a working clock of the TP IC at regular time, the TP IC starts to detect a channel to be detected, after one frame of detection is finished, if no man-machine interaction event is detected, the working clock of the TP IC is closed, a counter under a 32K clock domain starts to count again, and the actions are repeated; and if the human-computer interaction event is detected to be generated, turning over the GPIO signal mapped by the channel to be detected generating the human-computer interaction event and outputting the GPIO signal to the upper computer, then closing the working clock of the TP IC, restarting counting by the counter under the 32K clock domain again, opening the clock of the TP IC again after the counting reaches the threshold value, firstly setting the inverted GPIO output signal back to the default value, then enabling the TP IC to start detection, and repeating the operation.
2. The method according to claim 1, wherein the method comprises the following steps: the upper computer wakes up the CPU and exits the GPIO detection mode by sending an instruction; or when the timer counts to a threshold value, the CPU is awakened and the GPIO detection mode is exited.
3. The method according to claim 1, wherein the method comprises the following steps: when the man-machine interaction channel to be detected is mapped with the GPIO in the TP IC in the step (1), the initial value of the GPIO can be configured at will.
4. The method according to claim 1, wherein the method comprises the following steps: and updating the buffer data in real time in the detection of each frame of TP IC in the GPIO detection mode.
CN202111038768.4A 2021-09-06 2021-09-06 Detection method applied to man-machine interaction in low power consumption mode Pending CN113760092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111038768.4A CN113760092A (en) 2021-09-06 2021-09-06 Detection method applied to man-machine interaction in low power consumption mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111038768.4A CN113760092A (en) 2021-09-06 2021-09-06 Detection method applied to man-machine interaction in low power consumption mode

Publications (1)

Publication Number Publication Date
CN113760092A true CN113760092A (en) 2021-12-07

Family

ID=78793166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111038768.4A Pending CN113760092A (en) 2021-09-06 2021-09-06 Detection method applied to man-machine interaction in low power consumption mode

Country Status (1)

Country Link
CN (1) CN113760092A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999291A (en) * 2012-09-25 2013-03-27 广东欧珀移动通信有限公司 Method for waking up mobile terminal in standby state
CN102999216A (en) * 2012-11-21 2013-03-27 汕头超声显示器(二厂)有限公司 Low-power consumption touch display module, touch electronic device with same and software system thereof
CN204926063U (en) * 2015-09-09 2015-12-30 广州兴图计算机有限公司 Low -power consumption telemetering measurement incident trigger
CN105303090A (en) * 2015-10-19 2016-02-03 广东欧珀移动通信有限公司 Fingerprint unlocking method and apparatus and terminal
CN106469013A (en) * 2015-08-17 2017-03-01 小米科技有限责任公司 Terminal, fingerprint Identification sensor awakening method and device
CN107092568A (en) * 2016-02-17 2017-08-25 亚德诺半导体集团 The data communication interface of processing data in low-power dissipation system
CN110390904A (en) * 2018-04-13 2019-10-29 比亚迪股份有限公司 The driving device and method of electronic equipment and LED array
CN110806816A (en) * 2019-10-30 2020-02-18 深圳市汇顶科技股份有限公司 Touch detection method, MCU, touch control equipment and storage medium
CN112434773A (en) * 2020-10-29 2021-03-02 北京中电华大电子设计有限责任公司 Design method of multi-interface chip low power consumption mode
CN113325941A (en) * 2020-02-29 2021-08-31 荣耀终端有限公司 Method for displaying finger print under screen and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999291A (en) * 2012-09-25 2013-03-27 广东欧珀移动通信有限公司 Method for waking up mobile terminal in standby state
CN102999216A (en) * 2012-11-21 2013-03-27 汕头超声显示器(二厂)有限公司 Low-power consumption touch display module, touch electronic device with same and software system thereof
CN106469013A (en) * 2015-08-17 2017-03-01 小米科技有限责任公司 Terminal, fingerprint Identification sensor awakening method and device
CN204926063U (en) * 2015-09-09 2015-12-30 广州兴图计算机有限公司 Low -power consumption telemetering measurement incident trigger
CN105303090A (en) * 2015-10-19 2016-02-03 广东欧珀移动通信有限公司 Fingerprint unlocking method and apparatus and terminal
CN107092568A (en) * 2016-02-17 2017-08-25 亚德诺半导体集团 The data communication interface of processing data in low-power dissipation system
CN110390904A (en) * 2018-04-13 2019-10-29 比亚迪股份有限公司 The driving device and method of electronic equipment and LED array
CN110806816A (en) * 2019-10-30 2020-02-18 深圳市汇顶科技股份有限公司 Touch detection method, MCU, touch control equipment and storage medium
CN113325941A (en) * 2020-02-29 2021-08-31 荣耀终端有限公司 Method for displaying finger print under screen and electronic equipment
CN112434773A (en) * 2020-10-29 2021-03-02 北京中电华大电子设计有限责任公司 Design method of multi-interface chip low power consumption mode

Similar Documents

Publication Publication Date Title
CN102594999A (en) Method and system for performing adaptive mobile phone energy conservation through face identification
CN203366017U (en) Building talk-back intelligent terminal and crash restart system for same
CN110572868B (en) Method and device for reducing power consumption of electronic device
CN103631360A (en) Chip allowing sleep mode and method
CN101539797A (en) Method, system and device for controlling dynamic clock and power supply
CN112530056A (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN108777862B (en) Bluetooth transmission method, Bluetooth controller and Bluetooth device
CN105225316A (en) A kind of dormancy of electron key low-power consumption power supply plan and awakening method
CN110209428A (en) A kind of terminal screen awakening method, device, terminal and storage medium
CN104597790A (en) Serial port controller and awakening method for micro-controller system based on the same
CN203968202U (en) A kind of terminal
CN106455024A (en) Method for automatically adjusting communication frequency, and terminal equipment
CN106991770B (en) The synchronous low power consumption method of intelligent POS Android based on dual-CPU architecture
CN105739986B (en) A kind of awakening method and terminal of terminal
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
WO2018076698A1 (en) Terminal delay display method and apparatus, and terminal and computer storage medium
US7958383B2 (en) Computer system with adjustable data transmission rate
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN113760092A (en) Detection method applied to man-machine interaction in low power consumption mode
WO2013159464A1 (en) Multiple core processor clock control device and control method
CN116825013A (en) Control device, control method and related equipment of display screen
CN113132535B (en) Screen state control method and device, storage medium and mobile terminal
CN109856800A (en) Display control method, device and the split type AR glasses of split type AR glasses
CN106020416B (en) Screen display method, device and smart machine
CN113568495B (en) Low-power consumption design method for responding man-machine interaction event in real time

Legal Events

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