CN104067119B - A kind of air quality numerical value changing method, device and air quality detector - Google Patents
A kind of air quality numerical value changing method, device and air quality detector Download PDFInfo
- Publication number
- CN104067119B CN104067119B CN201480000487.1A CN201480000487A CN104067119B CN 104067119 B CN104067119 B CN 104067119B CN 201480000487 A CN201480000487 A CN 201480000487A CN 104067119 B CN104067119 B CN 104067119B
- Authority
- CN
- China
- Prior art keywords
- interrupt signal
- air quality
- distance sensor
- quality value
- switching operation
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Analytical Chemistry (AREA)
- Human Computer Interaction (AREA)
- Food Science & Technology (AREA)
- Medicinal Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Telephone Function (AREA)
- Air Conditioning Control Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明适用于空气质量检测技术领域,提供了一种空气质量数值切换方法、装置及空气质量检测仪,所述方法包括:确定空气质量数值切换操作识别模式;实时接收位于所述空气质量检测仪面板上的两颗距离传感器输出的中断信号;根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作;根据识别出的空气质量数值切换操作,切换屏幕上显示的空气质量参数。本发明简化了空气质量数值切换操作的过程,减少了切换操作的时间,提高了用户的操作效率。
The present invention is applicable to the technical field of air quality detection, and provides an air quality numerical value switching method, device and air quality detector. The method includes: determining the air quality numerical value switching operation identification mode; The interrupt signal output by the two distance sensors on the panel; according to the interrupt signal received in real time and the air quality value switching operation identification mode, the air quality value switching operation is recognized; according to the recognized air quality value switching operation, the screen is switched The air quality parameters displayed on the display. The invention simplifies the process of switching operation of the air quality numerical value, reduces the time of switching operation, and improves the operation efficiency of the user.
Description
技术领域technical field
本发明属于空气质量检测技术领域,尤其涉及一种空气质量参数切换方法、装置及空气质量检测仪。The invention belongs to the technical field of air quality detection, and in particular relates to an air quality parameter switching method, device and air quality detector.
背景技术Background technique
随着空气质量检测仪智能化时代的到来,空气质量检测仪的配置越来越强大,功能越来越齐全,越来越多的用户通过空气质量检测仪进行空气质量检测,在不同的地点对空气质量进行检测,并显示检测到的不同类型的空气质量数值,以了解室内环境的健康级别。With the advent of the era of intelligent air quality detectors, the configuration of air quality detectors is becoming more and more powerful, and the functions are becoming more and more complete. The air quality is detected, and different types of air quality values detected are displayed to understand the health level of the indoor environment.
然而,由于现有的空气质量检测仪对空气质量数值进行切换,需要通过按下按键,才能对不同类型的空气质量数值进行切换,而空气质量检测仪有可能放置在墙壁上,当空气质量检测仪放置在墙壁上时,用户按下空气质量检测仪中的按键的过程繁琐,耗费了用户时间,影响了用户操作效率。However, since the existing air quality detector switches the air quality value, it is necessary to press a button to switch between different types of air quality values, and the air quality detector may be placed on the wall. When the instrument is placed on the wall, the process for the user to press the buttons in the air quality detector is cumbersome, which consumes the user's time and affects the user's operation efficiency.
发明内容Contents of the invention
本发明实施例的目的在于提供一种空气质量数值切换方法,旨在解决现有的空气质量检测仪需要通过按下按键,才能对不同类型的空气质量数值进行切换,操作过程繁琐,耗费了用户时间,影响了用户操作效率的问题。The purpose of the embodiments of the present invention is to provide a method for switching air quality values, which aims to solve the problem that the existing air quality detectors need to press a button to switch between different types of air quality values, and the operation process is cumbersome and costly. time, affecting the efficiency of user operations.
本发明实施例是这样实现的,一种空气质量数值切换方法,包括:The embodiment of the present invention is achieved in this way, a method for switching air quality values, comprising:
确定空气质量数值切换操作识别模式;Determine the air quality value to switch the operation recognition mode;
实时接收位于所述空气质量检测仪面板上的两颗距离传感器输出的中断信号;receiving in real time the interrupt signals output by the two distance sensors located on the panel of the air quality detector;
根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作;According to the interruption signal received in real time and the air quality numerical value switching operation identification mode, the air quality numerical value switching operation is identified;
根据识别出的空气质量数值切换操作,切换屏幕上显示的空气质量参数。Switch the operation according to the recognized air quality value, and switch the air quality parameters displayed on the screen.
本发明实施例的另一目的在于提供一种空气质量数值切换装置,包括:Another object of the embodiments of the present invention is to provide an air quality value switching device, comprising:
确定识别模式模块,用于确定空气质量数值切换操作识别模式;Determine the identification mode module, which is used to determine the air quality numerical switching operation identification mode;
接收模块,用于实时接收位于所述空气质量检测仪面板上的两颗距离传感器输出的中断信号;The receiving module is used to receive in real time the interrupt signals output by the two distance sensors located on the panel of the air quality detector;
识别模块,用于根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作;The identification module is used to identify the air quality numerical switching operation according to the interrupt signal received in real time and the air quality numerical switching operation identification mode;
切换模块,用根据识别出的空气质量数值切换操作,切换屏幕上的空气质量数值。The switching module uses the switching operation according to the recognized air quality value to switch the air quality value on the screen.
本发明实施例的另一目的在于提供空气质量检测仪,包括上述空气质量数值切换装置。Another object of the embodiments of the present invention is to provide an air quality detector, including the above-mentioned air quality value switching device.
在本实施例中,空气质量检测仪可以识别出空气质量数值切换操作,快速切换屏幕上的空气质量数值,避免了出现用户通过按下按键,才能切换屏幕上的空气质量数值的情况,简化了空气质量数值切换操作的过程,减少了切换操作的时间,提高了用户的操作效率。In this embodiment, the air quality detector can recognize the switching operation of the air quality value, and quickly switch the air quality value on the screen, avoiding the situation that the user can only switch the air quality value on the screen by pressing a button, simplifying the The process of switching operation of the air quality numerical value reduces the time of switching operation and improves the operation efficiency of the user.
附图说明Description of drawings
图1是本发明实施例提供的空气质量数值切换方法的实现流程图;Fig. 1 is the implementation flowchart of the air quality value switching method provided by the embodiment of the present invention;
图2是本发明实施例提供的空气质量数值切换装置的结构框图。Fig. 2 is a structural block diagram of an air quality value switching device provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
实施例一Embodiment one
图1是本发明实施例提供的空气质量数值切换方法的实现流程图,详述如下:Fig. 1 is the implementation flowchart of the air quality value switching method provided by the embodiment of the present invention, which is described in detail as follows:
在步骤S101中,空气质量检测仪确定空气质量数值切换操作识别模式;In step S101, the air quality detector determines the air quality numerical value and switches the operation identification mode;
其中,所述屏幕包括但不限于LED点阵显示器的屏幕。Wherein, the screen includes but is not limited to a screen of an LED dot matrix display.
其中,所述空气质量数值切换操作识别模式包括以下模式中的至少一种:Wherein, the air quality value switching operation identification mode includes at least one of the following modes:
第一模式:两颗距离传感器中左距离传感器输出第一个中断信号以及第二个中断信号,两颗距离传感器中右距离传感器输出第三个中断信号以及第四个中断信号,且所述第二个中断信号以及所述第三个中断信号输出时间的时间间隔处于预设时间阈值时,识别所述空气质量数值切换操作为向左切换;The first mode: the left distance sensor in the two distance sensors outputs the first interrupt signal and the second interrupt signal, the right distance sensor in the two distance sensors outputs the third interrupt signal and the fourth interrupt signal, and the first interrupt signal When the time interval between the two interrupt signals and the output time of the third interrupt signal is at a preset time threshold, it is recognized that the switching operation of the air quality value is switching to the left;
第二模式:两颗距离传感器中右距离传感器输出第一个中断信号以及第二个中断信号,两颗距离传感器中左距离传感器输出第三个中断信号以及第四个中断信号,且所述第二个中断信号以及所述第三个中断信号输出时间的时间间隔处于预设时间阈值时,识别所述空气质量数值切换操作为向左切换。The second mode: the right distance sensor in the two distance sensors outputs the first interrupt signal and the second interrupt signal, the left distance sensor in the two distance sensors outputs the third interrupt signal and the fourth interrupt signal, and the first interrupt signal When the time interval between the output times of the two interruption signals and the third interruption signal is within a preset time threshold, it is identified that the switching operation of the air quality value is switching to the left.
其中,空气质量检测仪确定空气质量数值切换操作识别模式具体为:Among them, the air quality detector determines the air quality value switching operation recognition mode specifically as follows:
空气质量检测仪确定空气质量数值切换操作识别模式中第一模式、第二模式中的任意一种模式;或者,The air quality detector determines any one of the first mode and the second mode in the air quality value switching operation recognition mode; or,
空气质量检测仪确定空气质量数值切换操作识别模式中第一模式、第二模式的组合。The air quality detector determines the combination of the first mode and the second mode in the air quality value switching operation recognition mode.
在步骤S102中,实时接收位于所述空气质量检测仪面板上的两颗距离传感器输出的中断信号;In step S102, receiving in real time the interruption signals output by the two distance sensors located on the panel of the air quality detector;
其中,根据中断信号输出的时间,对中断信号进行时间排序,时间排序第一位的中断信号为第一个中断信号,时间排序第二位的中断信号为第二个中断信号,时间排序第三位的中断信号为第三个中断信号,时间排序第四位的中断信号为第四个中断信号。Among them, according to the output time of the interrupt signal, the interrupt signal is time sorted, the interrupt signal with the first time sort is the first interrupt signal, the interrupt signal with the second time sort is the second interrupt signal, and the time sort is the third The interrupt signal of the first bit is the third interrupt signal, and the interrupt signal of the fourth bit in time ordering is the fourth interrupt signal.
其中,两颗距离传感器分别位于屏幕的左右两侧。Among them, two distance sensors are located on the left and right sides of the screen.
其中,两颗距离传感器分别检测实时得到的采样值与底噪值的差值是否大于预设阈值,若是输出第一个中断信号,在输出第一个中断信号后,检测实时得到的采样值与底噪值的差值是否小于预设阈值,若是输出第二个中断信号。Among them, the two distance sensors respectively detect whether the difference between the sampled value obtained in real time and the noise floor value is greater than the preset threshold. If the first interrupt signal is output, after the first interrupt signal is output, the difference between the sampled value obtained in real time and Whether the difference of the noise floor value is less than the preset threshold value, if so, output the second interrupt signal.
其中,当底噪值处于初始状态时为初始值,当检测到底噪值不为初始值时,且不为初始值的时间大于预设的时间时,表示距离传感器前方具有障碍物,底噪值校准为当前值。Among them, when the noise floor value is in the initial state, it is the initial value. When the detected noise floor value is not the initial value, and the time for not being the initial value is greater than the preset time, it means that there is an obstacle in front of the distance sensor. The noise floor value Calibrate to current value.
需要进行说明的是,本发明实施例不限定步骤S101和步骤S102的执行顺序。具体地,可以是先执行步骤S101,再执行步骤S102;也可以先执行步骤S102,再执行步骤S101;还可以是同时执行步骤S101和步骤S102。It should be noted that, the embodiment of the present invention does not limit the execution sequence of step S101 and step S102. Specifically, step S101 may be executed first, and then step S102 is executed; or step S102 may be executed first, and then step S101 is executed; or step S101 and step S102 may be executed simultaneously.
在步骤S103中,根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作;In step S103, according to the interrupt signal received in real time and the air quality numerical value switching operation identification mode, the air quality numerical value switching operation is identified;
其中,根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作的实施过程,在实施例二和实施例三进行描述,在此不做描述。Wherein, according to the interrupt signal received in real time and the air quality numerical value switching operation identification mode, the implementation process of identifying the air quality numerical value switching operation is described in Embodiment 2 and Embodiment 3, and will not be described here.
在步骤S103中,根据识别出的空气质量数值切换操作,切换屏幕上的空气质量数值。In step S103, the air quality value on the screen is switched according to the recognized switching operation of the air quality value.
其中,所述空气质量数值包括但不限于空气的温度值、空气的湿度值、空气的二氧化碳值、空气的PM2.5浓度值。Wherein, the air quality value includes but not limited to the temperature value of the air, the humidity value of the air, the carbon dioxide value of the air, and the PM2.5 concentration value of the air.
其中,根据识别出的空气质量数值切换操作,切换LED点阵显示器的屏幕上的空气质量数值。Wherein, according to the recognized air quality value switching operation, the air quality value on the screen of the LED dot matrix display is switched.
在本实施例中,空气质量检测仪可以识别出空气质量数值切换操作,快速切换屏幕上的空气质量数值,避免了出现用户通过按下按键,才能切换屏幕上的空气质量数值的情况,简化了空气质量数值切换操作的过程,减少了切换操作的时间,提高了用户的操作效率。In this embodiment, the air quality detector can recognize the switching operation of the air quality value, and quickly switch the air quality value on the screen, avoiding the situation that the user can only switch the air quality value on the screen by pressing a button, simplifying the The process of switching operation of the air quality numerical value reduces the time of switching operation and improves the operation efficiency of the user.
实施例二Embodiment two
本实施例主要描述了当触摸屏终端确定空气质量数值切换操作识别模式为第一模式时,所述根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作的实施过程,详述如下:This embodiment mainly describes that when the touch screen terminal determines that the air quality value switching operation identification mode is the first mode, the air quality value switching operation is identified according to the interrupt signal received in real time and the air quality value switching operation identification mode The implementation process is detailed as follows:
检测两颗距离传感器中左距离传感器是否输出第一个中断信号;Detect whether the left distance sensor outputs the first interrupt signal among the two distance sensors;
若检测到左距离传感器是输出第一个中断信号时,检测所述左距离传感器是否输出第二个中断信号;If it is detected that the left distance sensor outputs the first interruption signal, detect whether the left distance sensor outputs the second interruption signal;
若检测到左距离传感器是输出第二个中断信号时,检测在预设时间阈值内,所述两颗距离传感器中右距离传感器是否输出第三个中断信号;If it is detected that the left distance sensor outputs the second interruption signal, it is detected whether the right distance sensor in the two distance sensors outputs the third interruption signal within the preset time threshold;
若检测到右距离传感器是输出第三个中断信号时,检测所述右距离传感器是否输出第四个中断信号;If it is detected that the right distance sensor outputs the third interruption signal, detect whether the right distance sensor outputs the fourth interruption signal;
识别所述空气质量数值切换操作为向左切换。It is identified that the switching operation of the air quality numerical value is switching to the left.
其中,向右切换表示将当前屏幕上显示的空气质量数值切换为上一个空气质量数值。Among them, switching to the right means switching the air quality value displayed on the current screen to the previous air quality value.
其中,左距离传感器检测实时得到的采样值与底噪值的差值是否大于预设阈值,当用手在屏幕前向右隔空滑动,接近左距离传感器时,左距离传感器检测实时得到的采样值与底噪值的差值大于预设阈值,此时,输出第一个中断信号,手离开左距离传感器时,左距离传感器检测实时得到的采样值与底噪值的差值小于预设阈值,输出第二个中断信号,Among them, the left distance sensor detects whether the difference between the sampled value obtained in real time and the noise floor value is greater than the preset threshold. The difference between the value and the noise floor value is greater than the preset threshold. At this time, the first interrupt signal is output. When the hand leaves the left distance sensor, the difference between the sampled value obtained in real time by the left distance sensor and the noise floor value is less than the preset threshold. , outputs the second interrupt signal,
检测在预设时间阈值内,右距离传感器检测实时得到的采样值与底噪值的差值是否大于预设阈值,当用手在屏幕前向右隔空滑动,接近右距离传感器时,右距离传感器检测实时得到的采样值与底噪值的差值大于预设阈值,此时,输出第一个中断信号,手离开右距离传感器时,右距离传感器检测实时得到的采样值与底噪值的差值小于预设阈值,输出第二个中断信号,此时,识别所述空气质量数值切换操作为向左切换。Detect whether the difference between the real-time sampling value and the noise floor value obtained by the right distance sensor is greater than the preset threshold within the preset time threshold. When the hand slides to the right in front of the screen and approaches the right distance sensor, the right distance The difference between the real-time sampled value and the noise floor value detected by the sensor is greater than the preset threshold. At this time, the first interrupt signal is output. If the difference is smaller than the preset threshold, a second interrupt signal is output, and at this time, the air quality value switching operation is identified as switching to the left.
在本实施例中,用手在屏幕前向右隔空滑动时,即可将当前屏幕上显示的空气质量数值切换为上一个空气质量数值,操作十分便捷。In this embodiment, when the hand slides to the right in front of the screen, the current air quality value displayed on the screen can be switched to the previous air quality value, and the operation is very convenient.
实施例三Embodiment Three
本实施例主要描述了当触摸屏终端确定空气质量数值切换操作识别模式为第二模式时,所述根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作,详述如下:This embodiment mainly describes that when the touch screen terminal determines that the air quality value switching operation identification mode is the second mode, the air quality value switching operation is identified according to the interrupt signal received in real time and the air quality value switching operation identification mode , as detailed below:
检测两颗距离传感器中右距离传感器是否输出第一个中断信号;Detect whether the right distance sensor of the two distance sensors outputs the first interrupt signal;
若检测到右距离传感器是输出第一个中断信号时,检测所述右距离传感器是否输出第二个中断信号;If it is detected that the right distance sensor outputs the first interruption signal, it is detected whether the right distance sensor outputs the second interruption signal;
若检测到右距离传感器是输出第二个中断信号时,检测在预设时间阈值内,所述两颗距离传感器中左距离传感器是否输出第三个中断信号;If it is detected that the right distance sensor outputs the second interruption signal, it is detected whether the left distance sensor in the two distance sensors outputs the third interruption signal within the preset time threshold;
若检测到左距离传感器是输出第三个中断信号时,检测所述左距离传感器是否输出第四个中断信号;If it is detected that the left distance sensor outputs the third interrupt signal, detect whether the left distance sensor outputs the fourth interrupt signal;
识别所述空气质量数值切换操作为向右切换。It is identified that the switching operation of the air quality numerical value is switching to the right.
其中,向右切换表示将当前屏幕上显示的空气质量数值切换为下一个空气质量数值。Wherein, switching to the right means switching the air quality value currently displayed on the screen to the next air quality value.
其中,右距离传感器检测实时得到的采样值与底噪值的差值是否大于预设阈值,当用手在屏幕前向右隔空滑动,接近右距离传感器时,右距离传感器检测实时得到的采样值与底噪值的差值大于预设阈值,此时,输出第一个中断信号,手离开右距离传感器时,右距离传感器检测实时得到的采样值与底噪值的差值小于预设阈值,输出第二个中断信号,检测在预设时间阈值内,左距离传感器检测实时得到的采样值与底噪值的差值是否大于预设阈值,当用手在屏幕前向右隔空滑动,接近左距离传感器时,左距离传感器检测实时得到的采样值与底噪值的差值大于预设阈值,此时,输出第一个中断信号,手离开左距离传感器时,左距离传感器检测实时得到的采样值与底噪值的差值小于预设阈值,输出第二个中断信号,此时,识别所述空气质量数值切换操作为向左切换。Among them, the right distance sensor detects whether the difference between the sampled value obtained in real time and the noise floor value is greater than the preset threshold. The difference between the value and the noise floor value is greater than the preset threshold. At this time, the first interrupt signal is output. When the hand leaves the right distance sensor, the difference between the sampling value obtained in real time by the right distance sensor and the noise floor value is less than the preset threshold. , output the second interrupt signal to detect whether the difference between the real-time sampling value obtained by the left distance sensor and the noise floor value is greater than the preset threshold within the preset time threshold, and when the hand slides to the right in front of the screen, When approaching the left distance sensor, the difference between the sampling value obtained by the left distance sensor in real time and the noise floor value is greater than the preset threshold. At this time, the first interrupt signal is output. When the hand leaves the left distance sensor, the left distance sensor detects in real time If the difference between the sampled value and the noise floor value is less than the preset threshold, a second interrupt signal is output, and at this time, the switching operation of the air quality value is identified as switching to the left.
在本实施例中,用手在屏幕前向左隔空滑动时,即可将当前屏幕上显示的空气质量数值切换为下一个空气质量数值,操作十分便捷。In this embodiment, when the hand slides to the left in front of the screen, the current air quality value displayed on the screen can be switched to the next air quality value, and the operation is very convenient.
实施例四Embodiment Four
本实施例主要描述了当触摸屏终端确定空气质量数值切换操作识别模式为第一模式以及第二模式的组合,所述根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作,详述如下:This embodiment mainly describes that when the touch screen terminal determines that the air quality value switching operation identification mode is a combination of the first mode and the second mode, the switching operation identification mode is identified according to the interrupt signal received in real time and the air quality value switching operation identification mode. The air quality value switching operation is detailed as follows:
检测两颗距离传感器中左距离传感器或者右距离传感器是否输出第一个中断信号;Detect whether the left distance sensor or the right distance sensor outputs the first interrupt signal among the two distance sensors;
若检测到左距离传感器是输出第一个中断信号时,检测所述左距离传感器是否输出第二个中断信号,若检测到左距离传感器是输出第二个中断信号时,检测在预设时间阈值内,所述两颗距离传感器中右距离传感器是否输出第三个中断信号,若检测到右距离传感器是输出第三个中断信号时,检测所述右距离传感器是否输出第四个中断信号,识别所述空气质量数值切换操作为向左切换。If it is detected that the left distance sensor is outputting the first interrupt signal, detect whether the left distance sensor outputs the second interrupt signal, and if it is detected that the left distance sensor outputs the second interrupt signal, detect the preset time threshold In the two distance sensors, whether the right distance sensor outputs the third interrupt signal, if it is detected that the right distance sensor outputs the third interrupt signal, detect whether the right distance sensor outputs the fourth interrupt signal, and identify The air quality value switching operation is switching to the left.
若检测到右距离传感器是输出第一个中断信号时,检测所述右距离传感器是否输出第二个中断信号,若检测到右距离传感器是输出第二个中断信号时,检测在预设时间阈值内,所述两颗距离传感器中左距离传感器是否输出第三个中断信号,若检测到左距离传感器是输出第三个中断信号时,检测所述左距离传感器是否输出第四个中断信号,识别所述空气质量数值切换操作为向右切换。If it is detected that the right distance sensor outputs the first interrupt signal, detect whether the right distance sensor outputs the second interrupt signal, and if it detects that the right distance sensor outputs the second interrupt signal, detect the preset time threshold In the two distance sensors, whether the left distance sensor outputs the third interrupt signal, if it is detected that the left distance sensor outputs the third interrupt signal, detect whether the left distance sensor outputs the fourth interrupt signal, and identify The switching operation of the air quality value is switching to the right.
在本实施例中,用手在屏幕前隔空滑动,即可将当前屏幕上显示的空气质量数值切换为下一个空气质量数值或者上一个空气质量数值,操作十分便捷。In this embodiment, the air quality value currently displayed on the screen can be switched to the next air quality value or the previous air quality value by sliding the hand in front of the screen, and the operation is very convenient.
实施例五Embodiment five
本实施例主要描述了在实际应用中执行本发明的较佳的实施过程,详述如下:This embodiment mainly describes the preferred implementation process of implementing the present invention in practical applications, and the details are as follows:
当空气质量检测仪开机时,执行所述空气质量检测仪确定空气质量数值切换操作识别模式的步骤。When the air quality detector is turned on, the step of determining the air quality value by the air quality detector and switching the operation identification mode is executed.
其中,将空气质量检测仪开机作为触发条件。通过硬件或者软件,检测到空气质量检测仪是否开机,当检测到空气质量检测仪开机时,执行所述空气质量检测仪确定空气质量数值切换操作识别模式的步骤,从而保证了空气质量检测仪开机后,根据识别出的空气质量数值切换操作,切换屏幕上的空气质量数值。Wherein, the air quality detector is turned on as a trigger condition. Through hardware or software, it is detected whether the air quality detector is turned on, and when it is detected that the air quality detector is turned on, the step of determining the air quality value of the air quality detector to switch the operation recognition mode is executed, thereby ensuring that the air quality detector is turned on After that, switch the operation according to the recognized air quality value to switch the air quality value on the screen.
实施例六Embodiment six
参照图2,图2是本发明实施例提供的空气质量数值切换装置的结构框图。为了便于说明,仅示出了与本实施例相关的部分。Referring to Fig. 2, Fig. 2 is a structural block diagram of an air quality value switching device provided by an embodiment of the present invention. For ease of description, only the parts related to this embodiment are shown.
参照图2,该空气质量数值切换装置,包括:Referring to Fig. 2, the air quality numerical switching device includes:
确定识别模式模块21,用于确定空气质量数值切换操作识别模式;Determine the identification mode module 21, used to determine the air quality value switching operation identification mode;
接收模块22,用于实时接收位于所述空气质量检测仪面板上的两颗距离传感器输出的中断信号;The receiving module 22 is used to receive in real time the interrupt signals output by the two distance sensors located on the panel of the air quality detector;
识别模块23,用于根据实时接收到的中断信号以及所述空气质量数值切换操作识别模式,识别出空气质量数值切换操作;The identification module 23 is used to identify the air quality value switching operation according to the interrupt signal received in real time and the air quality value switching operation recognition mode;
切换模块24,用根据识别出的空气质量数值切换操作,切换屏幕上的空气质量数值。The switching module 24 is used to switch the air quality value on the screen by switching operation according to the recognized air quality value.
在本实施例的一种实现方式中,所述空气质量数值切换操作识别模式包括以下模式中的至少一种:In an implementation manner of this embodiment, the air quality value switching operation identification mode includes at least one of the following modes:
第一模式:两颗距离传感器中左距离传感器输出第一个中断信号以及第二个中断信号,两颗距离传感器中右距离传感器输出第三个中断信号以及第四个中断信号,且所述第二个中断信号以及所述第三个中断信号输出时间的时间间隔处于预设时间阈值时,识别所述空气质量数值切换操作为向左切换;The first mode: the left distance sensor in the two distance sensors outputs the first interrupt signal and the second interrupt signal, the right distance sensor in the two distance sensors outputs the third interrupt signal and the fourth interrupt signal, and the first interrupt signal When the time interval between the two interrupt signals and the output time of the third interrupt signal is at a preset time threshold, it is recognized that the switching operation of the air quality value is switching to the left;
第二模式:两颗距离传感器中右距离传感器输出第一个中断信号以及第二个中断信号,两颗距离传感器中左距离传感器输出第三个中断信号以及第四个中断信号,且所述第二个中断信号以及所述第三个中断信号输出时间的时间间隔处于预设时间阈值时,识别所述空气质量数值切换操作为向左切换。The second mode: the right distance sensor in the two distance sensors outputs the first interrupt signal and the second interrupt signal, the left distance sensor in the two distance sensors outputs the third interrupt signal and the fourth interrupt signal, and the first interrupt signal When the time interval between the output times of the two interruption signals and the third interruption signal is within a preset time threshold, it is identified that the switching operation of the air quality value is switching to the left.
在本实施例的一种实现方式中,所述识别模块,包括:In an implementation manner of this embodiment, the identification module includes:
第一检测单元,用于检测两颗距离传感器中左距离传感器是否输出第一个中断信号;The first detection unit is used to detect whether the left distance sensor in the two distance sensors outputs the first interrupt signal;
第二检测单元,用于若检测到左距离传感器是输出第一个中断信号时,检测所述左距离传感器是否输出第二个中断信号;The second detection unit is used to detect whether the left distance sensor outputs a second interruption signal if it is detected that the left distance sensor outputs the first interruption signal;
第三检测单元,用于若检测到左距离传感器是输出第二个中断信号时,检测在预设时间阈值内,所述两颗距离传感器中右距离传感器是否输出第三个中断信号;第四检测单元,用于若检测到右距离传感器是输出第三个中断信号时,检测所述右距离传感器是否输出第四个中断信号;The third detection unit is used to detect whether the right distance sensor in the two distance sensors outputs the third interruption signal within the preset time threshold if it is detected that the left distance sensor outputs the second interruption signal; the fourth The detection unit is used to detect whether the right distance sensor outputs the fourth interruption signal if it is detected that the right distance sensor outputs the third interruption signal;
识别单元,用于识别所述空气质量数值切换操作为向左切换。The identifying unit is configured to identify that the switching operation of the air quality numerical value is switching to the left.
在本实施例的一种实现方式中,所述识别模块,包括:In an implementation manner of this embodiment, the identification module includes:
第五检测单元,用于检测两颗距离传感器中右距离传感器是否输出第一个中断信号;The fifth detection unit is used to detect whether the right distance sensor in the two distance sensors outputs the first interrupt signal;
第六检测单元,用于若检测到右距离传感器是输出第一个中断信号时,检测所述右距离传感器是否输出第二个中断信号;The sixth detection unit is used to detect whether the right distance sensor outputs a second interruption signal if it is detected that the right distance sensor outputs the first interruption signal;
第七检测单元,用于若检测到右距离传感器是输出第二个中断信号时,检测在预设时间阈值内,所述两颗距离传感器中左距离传感器是否输出第三个中断信号;The seventh detection unit is used to detect whether the left distance sensor of the two distance sensors outputs the third interruption signal within the preset time threshold if it is detected that the right distance sensor outputs the second interruption signal;
第八检测单元,用于若检测到左距离传感器是输出第三个中断信号时,检测所述左距离传感器是否输出第四个中断信号;The eighth detection unit is used to detect whether the left distance sensor outputs the fourth interruption signal if it is detected that the left distance sensor outputs the third interruption signal;
第九检测单元,用于识别所述空气质量数值切换操作为向右切换。The ninth detection unit is configured to identify that the switching operation of the air quality value is switching to the right.
本发明实施例提供的装置可以应用在前述对应的方法实施例中,详情参见上述实施例的描述,在此不再赘述。The apparatus provided by the embodiment of the present invention may be applied in the foregoing corresponding method embodiments. For details, refer to the description of the foregoing embodiments, and details are not repeated here.
作为本发明的一个实施例,提供了一种空气质量检测仪,包括上述空气质量数值切换装置。As an embodiment of the present invention, an air quality detector is provided, including the above air quality value switching device.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the implementation manners, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general-purpose hardware. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions for enabling a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (8)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2014/081000 WO2015196471A1 (en) | 2014-06-27 | 2014-06-27 | Method and device for air quality value switching and air quality detector |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104067119A CN104067119A (en) | 2014-09-24 |
| CN104067119B true CN104067119B (en) | 2016-06-15 |
Family
ID=51553774
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201480000487.1A Ceased CN104067119B (en) | 2014-06-27 | 2014-06-27 | A kind of air quality numerical value changing method, device and air quality detector |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104067119B (en) |
| WO (1) | WO2015196471A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015196471A1 (en) * | 2014-06-27 | 2015-12-30 | 深圳华盛昌机械实业有限公司 | Method and device for air quality value switching and air quality detector |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102221939A (en) * | 2010-04-15 | 2011-10-19 | 罗姆股份有限公司 | Calculation device, movement detection device, and electronic instrument |
| CN102299990A (en) * | 2010-06-22 | 2011-12-28 | 希姆通信息技术(上海)有限公司 | Gesture control cellphone |
| CN102572073A (en) * | 2010-12-17 | 2012-07-11 | 沈阳新邮通信设备有限公司 | Mobile communication terminal capable of detecting object moving direction |
| CN102883040A (en) * | 2012-07-30 | 2013-01-16 | 成都西可科技有限公司 | Method for waking up mobile phone by using proximity sensing mode |
| CN103324431A (en) * | 2012-03-22 | 2013-09-25 | 义明科技股份有限公司 | Electronic device and control method thereof |
| CN103576861A (en) * | 2013-11-18 | 2014-02-12 | 谢元澄 | Non-touch gesture control system |
| CN103713735A (en) * | 2012-09-29 | 2014-04-09 | 华为技术有限公司 | Method and device of controlling terminal equipment by non-contact gestures |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101853561A (en) * | 2009-04-03 | 2010-10-06 | 玴荣科技股份有限公司 | Gesture-controlled remote controller system |
| CN201662447U (en) * | 2009-05-08 | 2010-12-01 | 中国船舶重工集团公司第七一八研究所 | Indoor air quality tester |
| US9377865B2 (en) * | 2011-07-05 | 2016-06-28 | Apple Inc. | Zoom-based gesture user interface |
| US8830302B2 (en) * | 2011-08-24 | 2014-09-09 | Lg Electronics Inc. | Gesture-based user interface method and apparatus |
| CN103593549A (en) * | 2012-12-28 | 2014-02-19 | 广东泰特科技有限公司 | Multifunctional interactive all-in-one machine |
| CN103479140A (en) * | 2013-09-10 | 2014-01-01 | 北京恒华伟业科技股份有限公司 | Intelligent mirror |
| CN203643947U (en) * | 2013-11-25 | 2014-06-11 | 深圳桑菲消费通信有限公司 | Sensing identification circuit and device as well as mobile terminal |
| WO2015196471A1 (en) * | 2014-06-27 | 2015-12-30 | 深圳华盛昌机械实业有限公司 | Method and device for air quality value switching and air quality detector |
-
2014
- 2014-06-27 WO PCT/CN2014/081000 patent/WO2015196471A1/en not_active Ceased
- 2014-06-27 CN CN201480000487.1A patent/CN104067119B/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102221939A (en) * | 2010-04-15 | 2011-10-19 | 罗姆股份有限公司 | Calculation device, movement detection device, and electronic instrument |
| CN102299990A (en) * | 2010-06-22 | 2011-12-28 | 希姆通信息技术(上海)有限公司 | Gesture control cellphone |
| CN102572073A (en) * | 2010-12-17 | 2012-07-11 | 沈阳新邮通信设备有限公司 | Mobile communication terminal capable of detecting object moving direction |
| CN103324431A (en) * | 2012-03-22 | 2013-09-25 | 义明科技股份有限公司 | Electronic device and control method thereof |
| CN102883040A (en) * | 2012-07-30 | 2013-01-16 | 成都西可科技有限公司 | Method for waking up mobile phone by using proximity sensing mode |
| CN103713735A (en) * | 2012-09-29 | 2014-04-09 | 华为技术有限公司 | Method and device of controlling terminal equipment by non-contact gestures |
| CN103576861A (en) * | 2013-11-18 | 2014-02-12 | 谢元澄 | Non-touch gesture control system |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015196471A1 (en) | 2015-12-30 |
| CN104067119A (en) | 2014-09-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101875350B1 (en) | Method, device, and system for processing touch interaction | |
| US20130222338A1 (en) | Apparatus and method for processing a plurality of types of touch inputs | |
| CN105045411A (en) | Object control method and terminal | |
| CN107003783B (en) | A kind of key detecting method and device | |
| CN104765524A (en) | Method and device for switching applications | |
| EP2752754A3 (en) | Remote mouse function method and terminals | |
| CN105204052B (en) | The station-keeping mode switching method and user terminal of a kind of user terminal | |
| CN103513788B (en) | Based on the gesture identification method of gyro sensor, system and mobile terminal | |
| WO2019041515A1 (en) | Content switching display method and device, and robot | |
| US9846529B2 (en) | Method for processing information and electronic device | |
| JP2015172887A (en) | Gesture recognition device and method for controlling gesture recognition device | |
| CN105975550A (en) | Question searching method and device of intelligent equipment | |
| WO2021081738A1 (en) | Slide signal recognition method, mcu, touch-control device, and storage medium | |
| KR101553484B1 (en) | Apparatus for detecting hand motion and method thereof | |
| CN104978163B (en) | The sound-volume control system and its method for controlling volume of electronic device | |
| CN104067119B (en) | A kind of air quality numerical value changing method, device and air quality detector | |
| KR101134245B1 (en) | Electronic device including 3-dimension virtualized remote controller and driving methed thereof | |
| CN104750292B (en) | Touch device and touch mode switching method thereof | |
| JPWO2009130959A1 (en) | Infrared detector and electronic device | |
| US20130067278A1 (en) | Testing device, switching system and switching method | |
| CN105588790A (en) | Air detection system and air detection method | |
| TW201314557A (en) | Electronic apparatus and method for adding an operation interface | |
| CN105022484A (en) | Terminal operation method and user terminal | |
| CN110069208A (en) | Touch operation method and related equipment | |
| US11720198B2 (en) | Electronic device and touch control method therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 518000 Guangdong city of Shenzhen province Nanshan District Xili white Wangsong White Road industrial area 19 Building five Piovan letter Patentee after: Shenzhen City Huasheng Technology Industry Limited by Share Ltd Address before: 518000 Guangdong city of Shenzhen province Nanshan District Xili white Wangsong White Road industrial area 19 Building five Piovan letter Patentee before: Shenzhen Everbest Machinery Industry Co., Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| IW01 | Full invalidation of patent right |
Decision date of declaring invalidation: 20211015 Decision number of declaring invalidation: 52196 Granted publication date: 20160615 |
|
| IW01 | Full invalidation of patent right |