CN111427293A - Multichannel input sampling awakening method and device and control equipment - Google Patents

Multichannel input sampling awakening method and device and control equipment Download PDF

Info

Publication number
CN111427293A
CN111427293A CN202010225090.XA CN202010225090A CN111427293A CN 111427293 A CN111427293 A CN 111427293A CN 202010225090 A CN202010225090 A CN 202010225090A CN 111427293 A CN111427293 A CN 111427293A
Authority
CN
China
Prior art keywords
channel
dma
threshold
value
input
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
CN202010225090.XA
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.)
Guangzhou Ligong Science And Technology Co ltd
Original Assignee
Guangzhou Ligong Science And 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 Guangzhou Ligong Science And Technology Co ltd filed Critical Guangzhou Ligong Science And Technology Co ltd
Priority to CN202010225090.XA priority Critical patent/CN111427293A/en
Publication of CN111427293A publication Critical patent/CN111427293A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/32Handling requests for interconnection or transfer for access to input/output bus using combination of interrupt and burst mode transfer
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21083At start up detect if connected devices are input or output devices
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a multichannel input sampling awakening method, a multichannel input sampling awakening device and control equipment. The method comprises the following steps: moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; moving the channel threshold of the next input channel from the memory to the threshold register through the second DMA channel according to the second DMA request; moving the channel ID of the next input channel from the content to the channel number register through a third DMA channel according to the third DMA request; and if the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel. By using the DMA to replace the microcontroller to operate the multi-channel input sampling operation in the low-power-consumption working mode, when the scanning value of the input channel exceeds the corresponding channel threshold value, the microcontroller is awakened, the multi-channel sampling awakening function integrated on the single chip is realized, the real-time sampling of the microcontroller is not needed, and the effects of ultra-low-power-consumption operation and awakening are achieved.

Description

Multichannel input sampling awakening method and device and control equipment
Technical Field
The invention relates to the technical field of controller awakening, in particular to a multichannel input sampling awakening method, a multichannel input sampling awakening device and control equipment.
Background
With the development of the controller wake-up technology, the input sampling wake-up function applied by each type of controller has also been researched and developed correspondingly to meet the performance requirements of people for each type of controller. The traditional multi-channel sampling wake-up mode can be divided into two types, wherein one type is real-time sampling of a microcontroller, and the other type is external special sampling wake-up chip, such as a special capacitive touch chip. The real-time sampling of the microcontroller generally means that the core of the microcontroller samples external input quantity in real time under a normal working state so as to update the input state quickly. However, in the process of implementing the present invention, the inventor finds that the conventional multi-channel sampling wake-up mode has the problem of high power consumption.
Disclosure of Invention
In view of the above, it is necessary to provide a multichannel input sampling wake-up method with low power consumption, a multichannel input sampling wake-up apparatus, a control device and a computer readable storage medium for solving the above problems of the conventional multichannel sampling wake-up method.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
in one aspect, an embodiment of the present invention provides a multichannel input sampling wake-up method, including:
moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered when a timer overflows;
moving the channel threshold of the next input channel from the memory to the threshold register through the second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the moving of the current scanning value;
moving the channel ID of the next input channel from the content to the channel number register through a third DMA channel according to the third DMA request; the third DMA request is a DMA request sent when the second DMA channel finishes the movement of the channel threshold value, and the channel ID is used for indicating the data register to obtain the scanning value of the next input channel;
and if the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel.
In one embodiment, the method further includes:
and if the scanning value of the next input channel is smaller than the channel threshold value, returning to execute the step of moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request.
In one embodiment, the memory includes a collection value ring buffer for storing the scan value, and the step of moving the scan value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request includes:
and if the collection value ring buffer is exhausted currently, storing the scanning value of the current input channel from the first byte of the collection value ring buffer through the first DMA channel.
In one embodiment, the memory includes a threshold ring buffer for storing a channel threshold, and after the step of waking up the microcontroller to sample each input channel if the scan value of the next input channel is greater than the channel threshold, the method further includes:
and updating the channel threshold of the next input channel according to the scanning value of the next input channel and the mean value allowance of the next input channel.
In one embodiment, the step of moving the channel threshold of the next input channel from the memory to the threshold register via the second DMA channel according to the second DMA request comprises:
if the threshold ring buffer is currently exhausted, the channel threshold for the next input channel is moved to the threshold register by the second DMA channel starting from the first byte of the threshold ring buffer.
In one embodiment, the memory includes a tag ring buffer for storing the channel ID, and the step of moving the channel ID of the next input channel from contents to the channel number register via the third DMA channel in response to the third DMA request includes:
if the tag ring buffer is currently depleted, the channel ID of the next input channel is moved to the channel number register via the third DMA channel, starting with the first byte of the tag ring buffer.
In one embodiment, the method further includes:
if the scanning value of the next input channel is smaller than the channel threshold value and the interrupt awakening signal is received, continuously sampling and filtering each input channel;
and if the interrupt awakening signal is determined to be the false trigger interrupt signal according to the sampling filtering result, returning to execute the step of moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request.
In one embodiment, the method further includes:
and if the interrupt awakening signal is determined to be the non-false trigger interrupt signal according to the sampling filtering result, awakening the microcontroller.
In another aspect, another multi-channel input sampling wake-up apparatus is provided, including:
the scanning and moving module is used for moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered when a timer overflows;
the threshold value shifting module is used for shifting the channel threshold value of the next input channel from the memory to the threshold value register through the second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the moving of the current scanning value;
the mark moving module is used for moving the channel ID of the next input channel from the content to the channel number register through the third DMA channel according to the third DMA request; the third DMA request is a DMA request sent when the second DMA channel finishes the movement of the channel threshold value, and the channel ID is used for indicating the data register to obtain the scanning value of the next input channel;
and the wake-up execution module is used for waking up the microcontroller to sample the next input channel when the scanning value of the next input channel is greater than the channel threshold value.
In another aspect, a control device is further provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the multi-channel input sampling wake-up method when executing the computer program.
In still another aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of the multi-channel input sampling wake-up method described above.
One of the above technical solutions has the following advantages and beneficial effects:
according to the multichannel input sampling awakening method, the multichannel input sampling awakening device and the control equipment, in a low-power-consumption working mode, the DMA is used for replacing a microcontroller to operate multichannel input sampling operation: for any input channel outside the microcontroller, a timer periodically triggers a DMA request, so that the first DMA channel moves the scanning value of the input channel currently stored in the data register to the memory. Then moving the channel threshold value of the next input channel waiting for scanning to a threshold value register from the memory through a second DMA channel; and after the threshold value is moved, moving the channel ID of the next input channel to a channel number register from the memory through a third DMA channel. Finally, when the next input channel is scanned, the scanning value of the next input channel is compared with the corresponding channel threshold value. And when the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel, namely entering a normal working mode from a low-power-consumption working mode. The multi-channel sampling awakening function is integrated on the single chip, real-time sampling of a microcontroller is not needed, and the effects of ultralow power consumption operation and awakening are achieved.
Drawings
FIG. 1 is a schematic design diagram of a multi-channel input sampling system;
FIG. 2 is a first flowchart of a multi-channel input sampling wake-up method according to an embodiment;
FIG. 3 is a second flowchart of a multi-channel input sampling wake-up method according to an embodiment;
FIG. 4 is a flow diagram illustrating the movement of data from memory by each DMA channel in one embodiment;
FIG. 5 is a schematic diagram illustrating an application flow of the multi-channel input sampling wake-up method in one embodiment;
FIG. 6 is a schematic diagram illustrating an implementation principle of a multi-channel input sampling wake-up method according to an embodiment;
fig. 7 is a block diagram of a modular structure of the multi-channel input sampling wake-up unit according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It is to be noted that, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a schematic design diagram of a multi-channel input sampling system, in which a microcontroller (e.g., MCU) with multiple input channels is used as a main control unit, and external quantities (e.g., analog quantities such as voltage, temperature, and capacitance) are directly or indirectly input to input sampling pins of the microcontroller through a filter circuit. DMA (direct memory Access). To the problem that there is the consumption height in traditional multichannel sampling awakening mode, this application provides following technical scheme:
referring to fig. 2, in an embodiment, a multi-channel input sampling wake-up method is provided, which is specifically described below by taking the application to a multi-channel input sampling system as an example. The multi-channel input sampling wake-up method comprises the following steps S12 to S18:
s12, moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered upon timer overflow.
It is to be understood that a timer refers to a periodic control device in a multi-channel input sampling system for periodically triggering a DMA MUX (i.e., DMA multiplexer) to generate a DMA request. The timer counts overflow at intervals, and triggers the DMA MUX to generate periodic DMA requests to trigger the first DMA channel to transmit data. The first DMA channel may be any DMA channel in the DMA module, and for convenience of understanding, the first DMA channel is DMA channel 0 as an example for description herein; the subsequent second DMA channel and the third DMA channel can be understood in the same way, that is, the second DMA channel is DMA channel 1, and the third DMA channel is DMA channel 2, respectively, for example, for explanation. Those skilled in the art will appreciate that any three DMA channels in the DMA module may be selected to implement the present solution, and the above examples are illustrative only and not intended to be the only limitations on the present solution.
The current input channel refers to an input channel scanned in a previous cycle of the current cycle, and may be any one of input channels of the microcontroller. The scan value is a channel input value obtained by the DMA module scanning the input amount of the current input channel, and may also be a channel scan value. The scan value may be a value obtained by scanning in the low power consumption operation mode, or may be a value obtained by scanning in the non-low power consumption operation mode, which is specifically determined by the operation mode in which the scan is performed. In this embodiment, if the value moved by the first DMA channel is the value moved for the first time after the microcontroller enters the low power consumption operation mode, the scanned value is the value scanned in the non-low power consumption operation mode, and is an invalid value; therefore, in order to ensure that all valid scan values (i.e., values obtained by scanning in the low power consumption operation mode) can be stored in the memory, the number of times of transmission of the first DMA channel may be set to N +1 times, and the number of times of transmission of the second DMA channel and the third DMA channel may be set to N times, where N is a positive integer.
Specifically, in the DMA module, when the timer count overflows, the DMA MUX is triggered to generate a DMA request to trigger the first DMA channel to move the scan value of the current input channel in the data register to the memory, so that the data register can obtain and store the scan value of the next input channel.
S14, moving the channel threshold of the next input channel from the memory to the threshold register through the second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the transfer of the current scanning value.
It can be understood that the channel threshold refers to an input amount threshold corresponding to the input channel, and is used to determine whether the current input amount of the input channel reaches an effective input level, that is, a level at which the microcontroller is awakened accordingly, so that the microcontroller samples and processes the input amount exceeding the channel threshold. The channel thresholds corresponding to different input channels may be the same or different, and may specifically be determined according to the input quantity type and sampling requirement of each input channel, as long as the input quantity in each input channel reaches the level of effective input, the DMA module may wake up the microcontroller in time to perform sampling and processing.
Specifically, the second DMA channel may store the channel threshold corresponding to each input channel in the memory for standby. When the second loop of the first DMA channel is completed, that is, the first DMA channel has completed the move processing of the scan value of the current input channel, the first DMA channel links (i.e., sends a second DMA request) the second DMA channel, so that the second DMA channel starts to transfer data. The first DMA channel may be automatically linked to the second DMA channel, or may be passively linked to the second DMA channel, for example, the second DMA channel is linked via the control of a DMA controller in the DMA module, which may be determined according to the configuration mode of the DMA module.
When the second DMA channel receives the second DMA request, the next timer scanning channel, that is, the channel threshold corresponding to the input channel to be scanned next to the current input channel, is fetched from the memory and stored in the threshold register, so as to compare with the scanning value of the next input channel, and determine whether the scanning value of the input channel exceeds the corresponding channel threshold. For example, the second DMA channel moves the channel threshold corresponding to the next input channel from the memory to the upper threshold register of the threshold register, for subsequent determination of whether the scan value of the next input channel is out of range. It is understood that, in some embodiments, the threshold register may be divided into an upper threshold register and a lower threshold register, where the lower threshold register may be used to store another threshold corresponding to the input channel, and is used to determine whether the scan value of the input channel is lower than the range of the sampling requirement (if so, the microcontroller may exit the low power consumption operation mode). That is, if the scan value of the input channel is within the closed interval between the lower threshold and the upper threshold, the microcontroller is in the low power consumption operation mode, otherwise, the low power consumption operation mode is exited.
S16, moving the channel ID of the next input channel from the content to the channel number register through the third DMA channel according to the third DMA request; the third DMA request is a DMA request sent when the second DMA channel completes the transfer of the channel threshold, and the channel ID is used to instruct the data register to obtain the scan value of the next input channel.
It can be understood that the data register, the threshold register, and the channel number register may be three registers separately arranged, or may be three sub-registers divided from one register (for example, a configured analog input channel register), and may be determined according to a configuration condition of a register in an actually applied device, as long as a data storage requirement corresponding to each DMA channel can be guaranteed. Each input channel is configured with a corresponding channel number, i.e. channel ID (channel number software trigger start bit). The third DMA channel may store the channel ID corresponding to each input channel in the memory to start sampling (or scanning).
Specifically, when the second DMA channel completes its sub-cycle, i.e., the second DMA channel has completed the channel threshold configuration of the next input channel, the second DMA channel links (i.e., sends a third DMA request) the third DMA channel, so that the third DMA channel starts to transfer data. And when the third DMA channel receives the third DMA request, the channel ID corresponding to the next input channel is taken out from the memory and stored in the channel number register so as to be used when scanning the next input channel.
S18, if the scan value of the next input channel is greater than the channel threshold, the microcontroller is awakened to sample the next input channel.
Specifically, when scanning of the next input channel is completed, the scan value of the next input channel is compared with the channel threshold, and whether the scan value of the next input channel exceeds the channel threshold is determined. If the scanning value of the next input channel exceeds the channel threshold, it can be determined that the next input channel currently has an input quantity input or currently has an input quantity input exceeding the channel threshold, and the DMA module wakes up the microcontroller from the low power consumption operation mode for normal sampling and processing, for example, an interrupt signal exceeding the threshold range is generated by an analog input channel register and sent to the microcontroller to wake up the microcontroller.
According to the multichannel input sampling awakening method, the DMA is used for replacing the microcontroller to operate multichannel input sampling operation in the low-power-consumption working mode: for any input channel outside the microcontroller, a timer periodically triggers a DMA request, so that the first DMA channel moves the scanning value of the input channel currently stored in the data register to the memory. Then moving the channel threshold value of the next input channel waiting for scanning to a threshold value register from the memory through a second DMA channel; and after the threshold value is moved, moving the channel ID of the next input channel to a channel number register from the memory through a third DMA channel. Finally, when the next input channel is scanned, the scanning value of the next input channel is compared with the corresponding channel threshold value. And when the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel, namely entering a normal working mode from a low-power-consumption working mode. The multi-channel sampling awakening function is integrated on the single chip, real-time sampling of a microcontroller is not needed, and the effects of ultralow power consumption operation and awakening are achieved.
In an embodiment, the multi-channel input sampling wake-up method may further include the following processing steps:
if the scan value of the next input channel is smaller than the channel threshold, the process returns to step S12.
Specifically, when scanning of the next input channel is completed, the scan value of the next input channel is compared with the channel threshold, thereby determining whether the scan value of the next input channel exceeds the channel threshold. If the scan value of the next input channel is smaller than the channel threshold, it may be determined that the next input channel currently has no input or no input exceeding the channel threshold, and therefore the microcontroller is not woken up, so that the microcontroller still maintains the low power consumption operation mode.
Thereafter, the process returns to step S12, i.e., when the timer counts overflow again, the above processing steps S12 to S16 are repeated to perform the input amount scanning and monitoring for the next input on/off. It can be understood that when the scan value of the next input channel is equal to the channel threshold, the microcontroller may be selected to wake up, or the current low power consumption operation mode may be selected to be maintained without performing the wake-up operation, which may be specifically determined according to the actual application requirement, and the DMA module may be configured to implement the control of waking up or maintaining the low power consumption operation mode, as long as it is beneficial to improve the system performance.
Through the processing steps, when the scanning value of the next input channel does not exceed the corresponding channel threshold value, the timer and the DMA module in the system still work, and the microcontroller still keeps in the low-power-consumption operation mode and automatically scans and monitors the input condition of the next input channel. When external input is available, the system can rapidly enter a normal working mode from a low-power-consumption running mode, multi-channel input sampling detection operation is achieved, meanwhile, the power consumption of the system is further reduced, and therefore the service life of a battery of the system is prolonged.
Referring to FIG. 3, in one embodiment, the memory includes a threshold ring buffer for storing channel thresholds. After the above step S18, the method further includes step S20:
and S20, updating the channel threshold of the next input channel according to the scanning value of the next input channel and the average margin of the next input channel.
It is understood that the memory may be divided into a plurality of regions, wherein at least one memory region is configured as a threshold ring buffer for storing each channel threshold corresponding to each input channel. The average margin is a preset threshold adjustment amount, and may be a fixed value or a dynamically adjusted dynamic value, which is used to update the modified channel threshold. The mean value margin can be determined according to the debugging effect of wake-up debugging in practical application, as long as the false trigger wake-up probability can be reduced to achieve the required wake-up accuracy. For example, the difference between the channel threshold corresponding to the highest wake-up accuracy and the average channel threshold currently used may be determined as the threshold adjustment amount. The average margin capable of being dynamically adjusted can be adjusted to be higher or lower according to the requirement of reducing the probability of false triggering awakening, and the specific implementation of the dynamic adjustment of the average margin can be automatically completed by following the real-time false triggering probability, the channel average value and the like in the whole operation process through a common PID algorithm.
Specifically, when the scanning value of the next input channel exceeds the channel threshold and wakes up the microcontroller, the channel threshold of the input channel may also be updated, for example, the scanning value of the next input channel plus the corresponding average margin is used as a new channel threshold of the input channel, so that the woken-up microcontroller directly stores the updated channel threshold into the threshold ring buffer for the second DMA channel to use. Optionally, if the scan value of the next input channel is continuously smaller than the corresponding channel threshold, and finally the second DMA channel is drained of the transmission queue, the channel threshold updating operation may also be triggered. Therefore, dynamic channel threshold updating is realized through the processing steps of threshold updating, so that the function of changing along with the environment in real time is achieved, and the environment following effect of periodically waking up and executing channel threshold updating under low power consumption is achieved.
Referring to FIG. 4, in one embodiment, the memory includes a gather value ring buffer for storing the scan values. The above step S12 may specifically include the following processing step S122:
and S122, if the collection value annular buffer area is exhausted currently, storing the scanning value of the current input channel from the first byte of the collection value annular buffer area through the first DMA channel.
It can be understood that the memory may be divided into a plurality of regions, wherein at least one memory region is configured as an acquisition value ring buffer for respectively and correspondingly storing the scan values of the input channels. Specifically, when the first DMA channel uses the collection value ring buffer to store the scan value corresponding to each input channel, the first DMA channel can be stored in the collection value ring buffer from top to bottom, and when the collection value ring buffer is exhausted, the first DMA channel automatically points to the first byte of the collection value ring buffer, that is, the first DMA channel automatically starts to store the scan value from the first byte of the collection value ring buffer. For example, in each cycle, the first DMA channel shifts the scan value from the first scanned input channel 0, so that the scan value of the input channel 0 is stored in the first byte of the collection value ring buffer, and the first DMA channel automatically points to the next byte; and then, the scanning value of the input channel 1 moved by the first DMA channel is stored in the second byte of the acquisition value annular buffer area, and the next byte is automatically pointed after the scanning value is completed. Therefore, when the scanning value of the last input channel N +1 moved by the first DMA channel is stored in the (N +1) th byte of the acquisition value annular buffer area and the storage is completed, the first DMA channel can automatically point to the first byte of the acquisition value annular buffer area. Thereafter, a new round of scan value shifting operation is started from the first input channel 0.
Through the processing step S122, the first DMA channel can be automatically and circularly moved, so that the multi-channel input sampling operation is supported, and the operation stability of the system is improved.
In an embodiment, as shown in fig. 4, the step S14 may specifically include the following processing step S142:
s142, if the threshold ring buffer is currently exhausted, starting from the first byte of the threshold ring buffer through the second DMA channel, moving the channel threshold of the next input channel to the threshold register.
Specifically, when the second DMA channel uses the threshold ring buffer to store the channel thresholds corresponding to the input channels, the second DMA channel may be stored in the threshold ring buffer from top to bottom, and when the threshold ring buffer is exhausted, the second DMA channel automatically points to the first byte of the threshold ring buffer (i.e., the channel threshold position of the first scanned input channel), that is, the channel threshold is automatically stored from the first byte of the threshold ring buffer. Thus, in each period, the second DMA channel starts to shift the channel threshold from the first scanned input channel 0 and stores the channel threshold into the threshold register, that is, starts to shift the channel threshold from the first byte of the threshold ring buffer, and after completion, the second DMA channel automatically points to the next byte.
Furthermore, before scanning the input channel 1, the second DMA channel moves the channel threshold corresponding to the input channel 1 from the second byte of the threshold ring buffer and stores the channel threshold in the threshold register, and then automatically points to the next byte of the threshold ring buffer after completion. When the second DMA channel moves the channel threshold of the last input channel N from the last byte of the threshold ring buffer and finishes storing the channel threshold into the threshold register, the second DMA channel will automatically point to the first byte of the threshold ring buffer. Thereafter, a new round of channel threshold shifting operations is started from the first input channel 0.
Through the processing step S142, the second DMA channel can be automatically and circularly moved, thereby supporting the dynamic updating and moving operation of the channel threshold, and further improving the operation stability of the system.
In one embodiment, the memory includes a tag ring buffer for storing the channel ID. As shown in fig. 4, the step S16 may specifically include the following processing step S162:
s162, if the mark ring buffer is exhausted, the channel ID of the next input channel is moved to the channel number register from the first byte of the mark ring buffer through the third DMA channel.
It is understood that the memory may be divided into a plurality of regions, wherein at least one memory region is configured as a ring buffer for storing a tag of each channel ID corresponding to each input channel. It should be noted that the ring buffer for flags also stores the start flag corresponding to the channel ID synchronously, that is, in practical application, the ring buffer for flags is used by the third DMA channel to store the channel ID and the start flag corresponding to each input channel. Specifically, when the third DMA channel uses the ring buffer for storing the channel ID corresponding to each input channel, the third DMA channel may be stored in the ring buffer from top to bottom, and when the ring buffer is exhausted, the third DMA channel automatically points to the first byte of the ring buffer (i.e., the channel ID position of the first scanned input channel), that is, the third DMA channel automatically performs the channel ID storing operation from the first byte of the ring buffer. Thus, in each cycle, the third DMA channel moves the channel ID from the first scanned input channel 0 into the channel number register, i.e., moves the channel ID from the first byte of the ring buffer, and then the third DMA channel automatically points to the next byte.
Furthermore, before scanning the input channel 1, the third DMA channel moves the channel ID corresponding to the input channel 1 from the second byte of the ring buffer flag and stores it in the channel number register, and then automatically points to the next byte of the ring buffer flag after completion. When the third DMA channel has completed transferring the channel ID of the last input channel N from the last byte of the ring buffer flag into the channel number register, the third DMA channel will automatically point to the first byte of the ring buffer flag. Thereafter, a new round of the channel ID transfer operation is started from the first input channel 0.
Through the processing step S162, the third DMA channel can be automatically and circularly moved, thereby supporting the channel ID dynamic update and move operations, and further improving the operation stability of the system.
Referring to fig. 5, in an embodiment, the multi-channel input sampling wake-up method may further include the following processing steps:
if the scanning value of the next input channel is smaller than the channel threshold value and the interrupt awakening signal is received, continuously sampling and filtering each input channel;
if the interrupt wakeup signal is determined to be the false trigger interrupt signal according to the sampling filtering result, the step S12 is executed again.
It can be understood that, when the DMA does not detect that the microcontroller currently has an input of the external input quantity or that the input of the external input quantity exceeds the channel threshold value, but receives the interrupt wakeup of other wakeup sources (i.e. receives the interrupt wakeup signals of other sources in the system), the DMA performs continuous sampling filtering on the input channel to determine whether there is an input quantity exceeding the channel threshold value according to the sampling filtering. The number of times of sampling filtering can be determined according to the reliability requirement of false triggering judgment in practical application, as long as the required reliability of the false triggering judgment can be met. The reliability of the channel scan value exceeding the channel threshold is determined by calculating the repetition probability of the event (i.e. the scan value exceeding the channel threshold),
specifically, when the system is powered on and initialized, various relevant parameters of the system entering a low power consumption operation mode can be configured first, then the system enters the low power consumption operation mode to wait for being awakened, at this time, the system only works through a timer and a DMA module, and the DMA module is responsible for judging an awakening source. When the scanning value of the next input channel is smaller than the channel threshold value and the interrupt wake-up signal is received, continuous sampling filtering is carried out on the input channel, and sudden change influence factors such as abnormal input quantity or abnormal interrupt triggering and the like generated due to external or internal environment jitter in the system are filtered out, so that the current interrupt wake-up signal is judged to be a real and effective interrupt signal or an interrupt signal which is triggered by the system in error due to the sudden change influence factors by utilizing the real and effective input quantity. If the false trigger is determined, the DMA module keeps the current low-power-consumption running mode of the system without performing the wake-up operation, and continues to perform periodic input channel sampling and wake-up detection in the low-power-consumption running mode.
Through the processing steps, the DMA module can effectively identify the condition of false triggering interruption in the low-power-consumption running mode, and unnecessary awakening operation generated on the microcontroller due to temporary sudden change influence factors is avoided, so that the running stability of the system is further improved, and the effect of further reducing the power consumption is achieved.
In an embodiment, as shown in fig. 5, the multi-channel input sampling wake-up method may further include the following processing steps:
and if the interrupt awakening signal is determined to be the non-false trigger interrupt signal according to the sampling filtering result, awakening the microcontroller.
Specifically, when the scan value of the next input channel is smaller than the channel threshold and the interrupt wakeup signal is received, if it is determined that the interrupt wakeup signal from the other source is not the interrupt triggered by the error, the DMA module wakes up the microcontroller, so that the system ends the current low power consumption operation mode and quickly enters the normal operation mode. Through the processing steps, the DMA module can effectively identify effective interrupt awakening of other sources in the system in the low-power-consumption running mode, so that the environmental adaptability of the system is further improved.
In one embodiment, in order to more intuitively and clearly show the implementation process of the multi-channel input sampling wake-up method, fig. 6 is a schematic diagram illustrating an implementation of ultra-low power operation, where CH denotes a channel, and a DMA MUX is also a DMA multiplexer. The basic working process is briefly described as follows:
(1) the timer counts overflow at intervals, triggering the DMA MUX to generate a periodic DMA request, thereby triggering the first DMA channel (i.e., DMA _ CH0) to transfer data. (2) The first DMA channel moves the scan value (or acquisition value) of the current input channel from the data register to the memory. After the microcontroller enters the low-power-consumption running mode from the normal working mode, the scanning value of the first DMA channel moved for the first time is a value obtained by scanning in a non-low-power-consumption state, namely an invalid value. Therefore, to ensure that all valid scan values (i.e., scanned in the low power operation mode) are saved in the memory, the number of times of transmission of the first DMA channel may be configured to be one more than the number of times of transmission of the second DMA channel (i.e., DMA _ CH1) and the third DMA channel (i.e., DMA _ CH2), and if the number of times of transmission of the first DMA channel is configured to be (N +1), the number of times of transmission of the second DMA channel and the third DMA channel is configured to be N times, where N is a positive integer.
(3) When the sub-cycle of the first DMA channel is completed, i.e., when the scan value acquisition of the current input channel is completed, the first DMA channel links (sends a request) the second DMA channel to transfer data. (4) The second DMA channel moves the channel threshold of the input channel scanned during the next timer timing from memory to the upper threshold register of the threshold registers. (5) When the second DMA channel's sub-cycle is complete, i.e., the channel threshold for the input channel for the next sample is configured, the second DMA channel links (sends a request) the third DMA channel to transfer data.
(6) The third DMA channel moves the channel ID (channel number software trigger start bit) of the next sampled input channel from memory to the channel number register. As such, (7) when the input channel scan for the next sample is complete, the real-time sample result for the input channel is compared to the channel threshold for the input channel to determine if the sample result is outside of the threshold range. (8) If the real-time sampling result of the input channel is larger than the corresponding channel threshold value, an interrupt exceeding the threshold value range is immediately generated to wake up the microcontroller from the low power consumption operation mode. Otherwise, the microcontroller is still in the low power consumption operation mode; and (3) when the timer counts to overflow in the step (1), repeating the steps (1) to (7).
The second DMA channel uses the allocated ring buffer to store the channel threshold corresponding to the input channel, and automatically points to the first byte of the ring buffer (i.e. the position of the channel threshold of the first scanned input channel) after the allocated ring buffer is exhausted. Similarly, the third DMA channel uses the allocated ring buffer to store the channel ID corresponding to the input channel, and automatically points to the first byte of the ring buffer (i.e. the position of the channel ID of the first scanned input channel) after the allocated ring buffer is exhausted. Similarly, the first DMA channel uses the allocated ring buffer to store the scan value of the corresponding input channel, and automatically points to the first byte of the ring buffer after the allocated ring buffer is exhausted.
According to the steps, when the input channel of the system has no input or the input does not exceed the channel trigger threshold, the timer and the DMA module are left to work in the whole system, and the microcontroller works in the low power consumption mode. The system can rapidly enter a normal working mode from a low-power-consumption running mode when effective external input is input while external input is detected in real time.
It should be understood that, although the steps in the flowcharts of fig. 2 to 5 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 7, in an embodiment, a multi-channel input sampling wake-up apparatus 100 is further provided, which includes a scan shifting module 11, a threshold shifting module 13, a flag shifting module 15, and a wake-up executing module 17. The scanning and moving module 11 is configured to move a scanning value of a current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered upon timer overflow. The threshold value moving module 13 is configured to move a channel threshold value of a next input channel from the memory to the threshold value register through the second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the transfer of the current scanning value. The mark moving module 15 is configured to move the channel ID of the next input channel from the content to the channel number register through the third DMA channel according to the third DMA request; the third DMA request is a DMA request sent when the second DMA channel completes the transfer of the channel threshold, and the channel ID is used to instruct the data register to obtain the scan value of the next input channel. The wake-up execution module 17 is configured to wake up the microcontroller to sample the next input channel when the scan value of the next input channel is greater than the channel threshold.
The multichannel input sampling wake-up device 100 operates the multichannel input sampling operation by replacing the microcontroller with DMA in the low power consumption operating mode through cooperation of the modules: for any input channel outside the microcontroller, a timer periodically triggers a DMA request, and a first DMA channel is utilized to move the scanning value of the input channel currently stored in the data register to the memory. Then moving the channel threshold value of the next input channel waiting for scanning to a threshold value register from the memory through a second DMA channel; and after the threshold value is moved, moving the channel ID of the next input channel to a channel number register from the memory through a third DMA channel. Finally, when the next input channel is scanned, the scanning value of the next input channel is compared with the corresponding channel threshold value. And when the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel, namely entering a normal working mode from a low-power-consumption working mode. The multi-channel sampling awakening function is integrated on the single chip, real-time sampling of a microcontroller is not needed, and the effects of ultralow power consumption operation and awakening are achieved.
In one embodiment, the multi-channel input sampling wake-up apparatus 100 further comprises a loop execution module. The circular execution module is configured to trigger the scan moving module 11 to start moving the scan value of the next input channel when the scan value of the next input channel is smaller than the channel threshold.
In one embodiment, the memory includes a gather values ring buffer for storing the scan values. The scan moving module 11 is further configured to store the scan value of the current input channel from the first byte of the collection value ring buffer through the first DMA channel when the collection value ring buffer is currently exhausted.
In one embodiment, the memory includes a threshold ring buffer for storing the channel threshold. The multi-channel input sampling wake-up apparatus 100 may further include a threshold updating module, configured to update a channel threshold of a next input channel according to a scan value of the next input channel and a mean margin of the next input channel.
In an embodiment, the threshold shifting module 13 is further configured to, when the threshold ring buffer is currently exhausted, start from the first byte of the threshold ring buffer through the second DMA channel, shift the channel threshold of the next input channel to the threshold register.
In one embodiment, the memory includes a tag ring buffer for storing the channel ID. The tag move module 15 is further configured to move the channel ID of the next input channel to the channel number register through the third DMA channel starting from the first byte of the tag ring buffer when the tag ring buffer is currently depleted.
In one embodiment, the multi-channel input sampling wake-up apparatus 100 may further include a false trigger monitoring module. And the false triggering monitoring module is used for continuously sampling and filtering each input channel when the scanning value of the next input channel is smaller than the channel threshold and the interrupt wake-up signal is received, and determining whether the interrupt wake-up signal is the false triggering interrupt signal according to the sampling and filtering result. The circular execution module is further configured to trigger the scan moving module 11 to start moving the scan value of the next input channel when the interrupt wakeup signal is determined to be the false trigger interrupt signal according to the sampling filtering result.
In an embodiment, the wake-up execution module is further configured to wake up the microcontroller when it is determined that the interrupt wake-up signal is the non-false trigger interrupt signal according to the sampling filtering result.
For specific limitations of the multi-channel input sampling wake-up apparatus 100, reference may be made to the corresponding limitations of the multi-channel input sampling wake-up method described above, and details thereof are not repeated herein. The various modules in the multi-channel input sampling wake-up apparatus 100 may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a processor or independent from the control device in a hardware form, and can also be stored in a memory in the control device in a software form, so that the processor can call and execute the corresponding operations of the modules.
In one embodiment, a control device is also provided, which may be a main control board of various types of intelligent devices, such as but not limited to an intelligent electronic lock, a data collector, or a main control board of other electronic products. The control device at least comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program: moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered when a timer overflows; moving the channel threshold of the next input channel from the memory to the threshold register through the second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the moving of the current scanning value; moving the channel ID of the next input channel from the content to the channel number register through a third DMA channel according to the third DMA request; the third DMA request is a DMA request sent when the second DMA channel finishes the movement of the channel threshold value, and the channel ID is used for indicating the data register to obtain the scanning value of the next input channel; and if the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel.
It can be understood by those skilled in the art that the control device in this embodiment may include other components besides the memory and the processor, which may be determined according to the structural components of the control device and the functions implemented by the control device in practical application, and the description of the components is not repeated in this specification.
In one embodiment, the processor, when executing the computer program, may further implement the additional steps or substeps of the embodiments of the multi-channel input sampling wake-up method described above.
In one embodiment, there is also provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of: moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered when a timer overflows; moving the channel threshold of the next input channel from the memory to the threshold register through the second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the moving of the current scanning value; moving the channel ID of the next input channel from the content to the channel number register through a third DMA channel according to the third DMA request; the third DMA request is a DMA request sent when the second DMA channel finishes the movement of the channel threshold value, and the channel ID is used for indicating the data register to obtain the scanning value of the next input channel; and if the scanning value of the next input channel is greater than the channel threshold value, waking up the microcontroller to sample the next input channel.
In one embodiment, the aforementioned computer program, when executed by a processor, may further implement the additional steps or sub-steps of the embodiments of the multi-channel input sampling wake-up method described above.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by hardware that is instructed to be associated with a computer program that may be stored on a non-volatile computer-readable storage medium that, when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features. The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A multi-channel input sampling wake-up method, comprising:
moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered when a timer overflows;
moving the channel threshold of the next input channel from the memory to a threshold register through a second DMA channel according to the second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the moving of the current scanning value;
moving the channel ID of the next input channel from the content to a channel number register through a third DMA channel according to a third DMA request; the third DMA request is a DMA request sent when the second DMA channel completes the movement of the channel threshold, and the channel ID is used to instruct the data register to acquire the scan value of the next input channel;
and if the scanning value of the next input channel is larger than the channel threshold value, waking up the microcontroller to sample the next input channel.
2. The multi-channel input sampling wake-up method according to claim 1, characterized in that the method further comprises:
and if the scanning value of the next input channel is smaller than the channel threshold value, returning to execute the step of moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request.
3. A multi-channel input sampling wakeup method according to claim 1 or 2, wherein the memory includes a collection value ring buffer for storing the scan value, and the step of moving the scan value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request includes:
and if the collection value ring buffer is exhausted currently, storing the scanning value of the current input channel from the first byte of the collection value ring buffer through the first DMA channel.
4. The multi-channel input sampling wake-up method according to claim 1, wherein the memory includes a threshold ring buffer for storing a channel threshold, and wherein the step of waking up the microcontroller to sample each of the input channels further comprises, after the step of waking up the microcontroller to sample each of the input channels if the scan value of the next input channel is greater than the channel threshold:
and updating the channel threshold of the next input channel according to the scanning value of the next input channel and the mean value allowance of the next input channel.
5. The multi-channel input sampling wakeup method according to claim 4, wherein the step of moving the channel threshold of the next input channel from the memory to the threshold register through the second DMA channel according to the second DMA request comprises:
if the threshold ring buffer is currently depleted, moving the channel threshold for the next input channel to the threshold register via the second DMA channel starting from the first byte of the threshold ring buffer.
6. The multi-channel input sample wakeup method according to claim 1, wherein the memory includes a tag ring buffer for storing a channel ID, and the step of moving the channel ID of the next input channel from the contents to the channel number register via a third DMA channel according to a third DMA request includes:
if the tag ring buffer is currently depleted, moving the channel ID of the next input channel to the channel number register via the third DMA channel starting from the first byte of the tag ring buffer.
7. The multi-channel input sampling wake-up method according to claim 2, characterized in that the method further comprises:
if the scanning value of the next input channel is smaller than the channel threshold value and an interrupt awakening signal is received, continuously sampling and filtering each input channel;
and if the interrupt wakening signal is determined to be the false trigger interrupt signal according to the sampling filtering result, returning to execute the step of moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request.
8. The multi-channel input sampling wake-up method according to claim 7, characterized in that the method further comprises:
and if the interrupt awakening signal is determined to be a non-false trigger interrupt signal according to the sampling filtering result, awakening the microcontroller.
9. A multi-channel input sampling wake-up apparatus, comprising:
the scanning and moving module is used for moving the scanning value of the current input channel in the data register to the memory through the first DMA channel according to the first DMA request; the first DMA request is a DMA request triggered when a timer overflows;
the threshold value shifting module is used for shifting the channel threshold value of the next input channel from the memory to the threshold value register through a second DMA channel according to a second DMA request; the second DMA request is a DMA request sent when the first DMA channel finishes the moving of the current scanning value;
the mark moving module is used for moving the channel ID of the next input channel from the content to a channel number register through a third DMA channel according to a third DMA request; the third DMA request is a DMA request sent when the second DMA channel completes the movement of the channel threshold, and the channel ID is used to instruct the data register to acquire the scan value of the next input channel;
and the wake-up execution module is used for waking up the microcontroller to sample the next input channel when the scanning value of the next input channel is greater than the channel threshold value.
10. A control device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the multi-channel input sampling wake-up method according to any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the multi-channel input sampling wake-up method according to any one of claims 1 to 8.
CN202010225090.XA 2020-03-26 2020-03-26 Multichannel input sampling awakening method and device and control equipment Pending CN111427293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010225090.XA CN111427293A (en) 2020-03-26 2020-03-26 Multichannel input sampling awakening method and device and control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010225090.XA CN111427293A (en) 2020-03-26 2020-03-26 Multichannel input sampling awakening method and device and control equipment

Publications (1)

Publication Number Publication Date
CN111427293A true CN111427293A (en) 2020-07-17

Family

ID=71555679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010225090.XA Pending CN111427293A (en) 2020-03-26 2020-03-26 Multichannel input sampling awakening method and device and control equipment

Country Status (1)

Country Link
CN (1) CN111427293A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543145A (en) * 2003-04-28 2004-11-03 华为技术有限公司 A method of inner data transmission for digital signal processor
CN202404581U (en) * 2011-10-24 2012-08-29 北京强度环境研究所 Priority adjustable multi-channel dma controller
CN104461970A (en) * 2013-09-18 2015-03-25 中兴通讯股份有限公司 DMA controller, mobile terminal and data transportation method
CN105636181A (en) * 2015-12-21 2016-06-01 斯凯瑞利(北京)科技有限公司 Wakeup method and device capable of dynamically adjusting threshold value
CN106706853A (en) * 2016-12-29 2017-05-24 国家电网公司 High-voltage switch gear and gas state monitoring device thereof
CN108156299A (en) * 2016-12-06 2018-06-12 上海箩箕技术有限公司 A kind of user equipment and its processing method of false wake-up operation, device
CN108564951A (en) * 2018-03-02 2018-09-21 北京云知声信息技术有限公司 The method that intelligence reduces voice control device false wake-up probability
CN108847219A (en) * 2018-05-25 2018-11-20 四川斐讯全智信息技术有限公司 A kind of wake-up word presets confidence threshold value adjusting method and system
CN110070857A (en) * 2019-04-25 2019-07-30 北京梧桐车联科技有限责任公司 The model parameter method of adjustment and device, speech ciphering equipment of voice wake-up model

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543145A (en) * 2003-04-28 2004-11-03 华为技术有限公司 A method of inner data transmission for digital signal processor
CN202404581U (en) * 2011-10-24 2012-08-29 北京强度环境研究所 Priority adjustable multi-channel dma controller
CN104461970A (en) * 2013-09-18 2015-03-25 中兴通讯股份有限公司 DMA controller, mobile terminal and data transportation method
CN105636181A (en) * 2015-12-21 2016-06-01 斯凯瑞利(北京)科技有限公司 Wakeup method and device capable of dynamically adjusting threshold value
CN108156299A (en) * 2016-12-06 2018-06-12 上海箩箕技术有限公司 A kind of user equipment and its processing method of false wake-up operation, device
CN106706853A (en) * 2016-12-29 2017-05-24 国家电网公司 High-voltage switch gear and gas state monitoring device thereof
CN108564951A (en) * 2018-03-02 2018-09-21 北京云知声信息技术有限公司 The method that intelligence reduces voice control device false wake-up probability
CN108847219A (en) * 2018-05-25 2018-11-20 四川斐讯全智信息技术有限公司 A kind of wake-up word presets confidence threshold value adjusting method and system
CN110070857A (en) * 2019-04-25 2019-07-30 北京梧桐车联科技有限责任公司 The model parameter method of adjustment and device, speech ciphering equipment of voice wake-up model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张涛: "基于stm32单片机DMA机制的多通道数据采集", 《黑龙江科技信息》 *

Similar Documents

Publication Publication Date Title
US20200159279A1 (en) Low power autonomous peripheral management
CN109918141B (en) Thread execution method, thread execution device, terminal and storage medium
EP3106997B1 (en) On-chip sensor hub, and mobile device and multi-sensor management method therefor
US8065544B2 (en) Interrupt/wake-up of an electronic device in a low power sleep mode when detecting a sensor or frequency source activated frequency change
US6775786B2 (en) Method and apparatus for power mode transition in a multi-thread processor
CN112530056B (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
US8725953B2 (en) Local cache power control within a multiprocessor system
EP2073119A1 (en) Multiprocessor control unit, its control method, and integrated circuit
CN104503565A (en) Power consumption management method and device for mobile device and mobile device
CN105283772A (en) Method and device for measuring state of charge of mobile terminal
CN113489497B (en) Implementation circuit and chip for TKC or ADC
CN110286739B (en) Power consumption control method and device of remote telemetry terminal
CN113129479A (en) Intelligent lock control method, device, equipment and storage medium
CN110543259B (en) Fingerprint unlocking method of display equipment and display equipment
CN100410911C (en) Interrupt controller, interrupt signal pretreating circuit and its interrupt control method
CN112235742A (en) Gas meter with NB-IoT communication module embedded with program and data processing method
CN106598193B (en) Power consumption control method and device
CN111427293A (en) Multichannel input sampling awakening method and device and control equipment
CN101932136A (en) Management method for dual-mode mobile terminal
CN109062624A (en) It is a kind of to interrupt the processing method waken up for vehicle electronic control unit
CN109462882A (en) Terminal control method and device and terminal
US9430015B2 (en) Method and system for setting power supply mode of a multiple-core processor system based on condition of a time bin during a number of time intervals within the time bin is equal to or larger than a second threshold
CN108304508B (en) Garbage cleaning method and system for operating system and storage device
CN112187245A (en) Pressure-sensitive detection device, pressure-sensitive detection method, and electronic apparatus
US20240168514A1 (en) Autonomous adaptively reconfigurable system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200717