CN107332569A - The control method of new trend controller touch key-press - Google Patents
The control method of new trend controller touch key-press Download PDFInfo
- Publication number
- CN107332569A CN107332569A CN201710437837.6A CN201710437837A CN107332569A CN 107332569 A CN107332569 A CN 107332569A CN 201710437837 A CN201710437837 A CN 201710437837A CN 107332569 A CN107332569 A CN 107332569A
- Authority
- CN
- China
- Prior art keywords
- key value
- touch
- key
- mcu
- value
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M11/00—Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
- H03M11/20—Dynamic coding, i.e. by key scanning
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Air Conditioning Control Device (AREA)
- Electronic Switches (AREA)
Abstract
Present invention is disclosed a kind of control method of new trend controller touch key-press, this method comprises the following steps:S1:After MCU initialization is finished, MCU judges whether key value is equal to last key value, MCU if it is determined that key value is not equal to last key value, then interrupt timer, which is counted, resets, and preserves key value, returns to progress error correction processing;S2:MCU is if it is determined that key value is equal to last key value, then progress judges whether key value is effective, if it is determined that key value is invalid, then interrupt timer, which is counted, resets, and returns to progress error correction detection;If it is determined that key value effectively, then carries out next step.The problem of technical scheme solves false touch, specially treated has been made to the touch control procedure of new trend controller, including stabilization, count, error correction etc. is operated, so that its power supply will not be had influence on new trend controller by the fresh air purifier of line traffic control in use, touch-control IC is set to be interfered, while also greatly increasing the service life of new trend controller.
Description
Technical field
The present invention relates to a kind of control method of new trend controller touch key-press, belong to VMC technical field.
Background technology
New trend controller is the home furnishings intelligent air quality of a Mobyneb, environmental monitoring control product, can be had in real time
The monitoring IAQ and the real-time change situation of humiture of effect, and intelligent control VMC to IAQ and
Ambient temperature and humidity is adjusted, and remains the optimum state of IAQ and environment.
Touch key-press is more permanent due to service life, and high-grade attractive in appearance, so being widely used in home appliance.
But because it is higher to the stability requirement of power supply, if there is larger ripple in use, easily it is misused.If touching
Control source is fluctuated to the distance of panel in touch-control apart from critical point, and the phenomenon of false touch also occurs.
Because the environment that new trend controller is used is more special, its power supply often can be by the fresh air of line traffic control in use
Clarifier(High-pressure electrostatic)Have influence on, and then touch-control IC is inevitably interfered, although touch-control IC on early hardware circuit
Can much be filtered and voltage stabilizing processing, but the phenomenon of false touch also occurs once in a while.
How to study it is a kind of the touch control procedure of new trend controller can be handled, solve false touch the problem of, just turn into
Those skilled in that art institute urgent problem to be solved.
The content of the invention
The purpose of the present invention is exactly to be touched to solve the above-mentioned problems in the prior art there is provided a kind of new trend controller
Touch the control method of button.
The purpose of the present invention will be achieved by the following technical programs:The programme-control side of new trend controller touch key-press
Method, this method comprises the following steps:
S1:MCU initialization finish after, MCU judge key value whether be equal to last time key value, MCU if it is determined that key value not
Equal to last key value, then interrupt timer, which is counted, resets, and preserves key value, returns to progress error correction processing;
S2:MCU is if it is determined that key value is equal to last key value, then progress judges whether key value is effective, if it is determined that pressing
Key assignments is invalid, then timer interruption, returns to progress error correction detection;If it is determined that key value effectively, is then carried out next
Step.
Preferably, S2 is further comprising the steps of:S21:Stabilization operating procedure
After judging that key value is effective, stabilization operation is carried out, prevents that detecting signal jitter causes key value mistake, if in regulation
In time, detect key value and change, then judge that key value is invalid, will be detected again;If exceeding schedule time, count
Value, when counting exceedes from increment and counts lower threshold, still detects key value, then judges that key value is finally effective from increasing one.
Preferably, S21 is further comprising the steps of:
S22:Long-time touch control operation step
After judging key value finally effectively, it can determine whether it is long-time touch-control, if count value is constantly from increasing, more than counting
From after value-added count upper-limit threshold value, it is judged as long-time touch-control, now detects key value and preserve key value and called to MCU,
Counting simultaneously is set to single keys presses threshold value from increment and plus one.
Preferably, S22 is further comprising the steps of:
S23:Single touch control operation step
After judging key value finally effectively, it can determine whether it is single touch-control, if counting from increment equal to single touch controlled key
During threshold value, it is judged as single touch-control effectively, detects key value and preserve key value and called to MCU, carry out follow-up related single
Button operation processing routine.
The advantage of technical solution of the present invention is mainly reflected in:The problem of technical scheme solves false touch, to new
The touch control procedure of wind controller has made special processing, including stabilization, counts, the operation such as error correction so that new trend controller makes
Its power supply will not be had influence on by the fresh air purifier of line traffic control during, touch-control IC is interfered, while also greatly improving
The service life of new trend controller.
Brief description of the drawings
Fig. 1 is the program flow diagram of new trend controller touch key-press of the present invention.
Embodiment
The purpose of the present invention, advantage and feature, will be carried out by the non-limitative illustration of preferred embodiment below diagram and
Explain.These embodiments are only the prominent examples using technical solution of the present invention, it is all take equivalent substitution or equivalent transformation and
The technical scheme of formation, all falls within the scope of protection of present invention.
Present invention is disclosed a kind of control method of new trend controller touch key-press, as shown in figure 1, the programme-control
Method comprises the following steps:
S1:After MCU initialization is finished, MCU refers to micro-control unit, after system initialization is finished, and system timer is opened, due to fixed
When device can be run independently of MCU, so being not take up MCU resource.After MCU initialization terminates, key scan starts, and is first entangled
Wrong function treatment, error correction be in order to prevent false touch, ripple interference etc. abnormal signal to touch result impact, cause
Key value is invalid, and false touch refers to detect non-active touch in short-term.The touch key-press of new trend controller includes return key, confirmed
This six keys of key, left key, right key, homepage key and key.MCU judges whether key value is equal to last key value,
Judge whether return key, acknowledgement key, left key, right key, homepage key and key are equal to last key value, MCU is such as
Fruit judges that key value is not equal to last key value, then interrupt timer, and Abort Timer once, is counted per 10ms interrupt processings
Reset, preserve key value, return to judgement;
S2:MCU is if it is determined that key value is equal to last key value, then progress judges whether key value is effective, if it is determined that pressing
Key assignments is invalid, then timer interruption, and 100ms timing is reset, and is detected again;If it is determined that key value effectively, then carries out next step
Suddenly.
S2 is further comprising the steps of:S21:Stabilization operating procedure
Key value is being judged effectively and after touch effectively, and progress stabilization operation prevents that detecting signal jitter causes key value wrong
By mistake, if at the appointed time, detecting key value and changing, then judge that key value is invalid, will be detected again;If more than rule
Fix time, count value, when counting exceedes from increment and counts lower threshold, still detects key value, then judge button from increasing one
Value is final effective.
S21 is further comprising the steps of:
S22:Long-time touch control operation step
After judging key value finally effectively, it can determine whether it is long-time touch-control, if count value is constantly from increasing, more than counting
From after value-added count upper-limit threshold value, it is judged as long-time touch-control, now detects key value and preserve key value and called to MCU,
Count simultaneously and be set to single keys presses threshold value from increment and plus one, the setting can it is long when touch-control and single touch-control be distinguished.
S22 is further comprising the steps of:
S23:Single touch control operation step
After judging key value finally effectively, it can determine whether it is single touch-control, if counting from increment equal to single touch controlled key
During threshold value, it is judged as single touch-control effectively, 100ms timing is reset, detects key value and preserve key value and called to MCU, carried out
Follow-up related single keys presses operation processing program.
The problem of technical scheme solves false touch, special place has been made to the touch control procedure of new trend controller
Reason, including stabilization, are counted, the operation such as error correction so that its power supply will not be by the fresh air of line traffic control in use for new trend controller
Clarifier has influence on, and touch-control IC is interfered, while also greatly increasing the service life of new trend controller.
Claims (4)
1. the control method of new trend controller touch key-press, it is characterised in that:This method comprises the following steps:
S1:MCU initialization finish after, MCU judge key value whether be equal to last time key value, MCU if it is determined that key value not
Equal to last key value, then interrupt timer, which is counted, is reset, and MCU is preserved to key value, returns to progress error correction work(
Can processing;
S2:MCU is if it is determined that key value is equal to last key value, then then progress judges whether key value is effective, if sentenced
Disconnected key value is invalid, then timer count is reset, and returns to progress error correction detection;If MCU judges key value effectively,
Then carry out next step.
2. the control method of new trend controller touch key-press according to claim 1, it is characterised in that:S2 also includes
Following steps:
S21:Stabilization operating procedure
After judging that key value is effective, stabilization operation is carried out, prevents that detecting signal jitter causes key value mistake, if in regulation
In time, detect key value and change, then judge that key value is invalid, will be detected again;If exceeding schedule time, count
Value, when counting exceedes from increment and counts lower threshold, still detects key value, then judges that key value is finally effective from increasing one.
3. the control method of new trend controller touch key-press according to claim 2, it is characterised in that:S21 is also wrapped
Include following steps:
S22:Long-time touch control operation step
After judging key value finally effectively, it can determine whether it is long-time touch-control, if count value is constantly from increasing, more than counting
From after value-added count upper-limit threshold value, it is judged as long-time touch-control, now detects key value and preserve key value and called to MCU,
Counting simultaneously is set to single keys presses threshold value from increment and plus one.
4. the control method of new trend controller touch key-press according to claim 3, it is characterised in that:S22 is also wrapped
Include following steps:
S23:Single touch control operation step
After judging key value finally effectively, it can determine whether it is single touch-control, if counting from increment equal to single touch controlled key
During threshold value, it is judged as single touch-control effectively, detects key value and preserve key value and called to MCU, carry out follow-up related single
Button operation processing routine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710437837.6A CN107332569B (en) | 2017-06-12 | 2017-06-12 | Program control method for touch keys of fresh air controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710437837.6A CN107332569B (en) | 2017-06-12 | 2017-06-12 | Program control method for touch keys of fresh air controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107332569A true CN107332569A (en) | 2017-11-07 |
CN107332569B CN107332569B (en) | 2020-08-21 |
Family
ID=60195383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710437837.6A Active CN107332569B (en) | 2017-06-12 | 2017-06-12 | Program control method for touch keys of fresh air controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107332569B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110109389A (en) * | 2019-04-23 | 2019-08-09 | 江苏信息职业技术学院 | A kind of implementation method of button operation function |
CN110673753A (en) * | 2018-07-03 | 2020-01-10 | 北京搜狗科技发展有限公司 | Key mis-touch error correction method and device |
CN112432312A (en) * | 2020-11-27 | 2021-03-02 | 珠海格力电器股份有限公司 | Air conditioning system information synchronization method, device and system and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090043871A (en) * | 2007-10-30 | 2009-05-07 | 엘지전자 주식회사 | Error management system of air conditioner |
CN101930309A (en) * | 2009-06-25 | 2010-12-29 | 中兴通讯股份有限公司 | Method and device for preventing false triggering caused by touching key |
CN104534536A (en) * | 2015-01-09 | 2015-04-22 | 广东海信家电有限公司 | Infrared touch control method and system for extractor hood |
CN104793788A (en) * | 2015-03-31 | 2015-07-22 | 小米科技有限责任公司 | Key operating method and device |
-
2017
- 2017-06-12 CN CN201710437837.6A patent/CN107332569B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090043871A (en) * | 2007-10-30 | 2009-05-07 | 엘지전자 주식회사 | Error management system of air conditioner |
CN101930309A (en) * | 2009-06-25 | 2010-12-29 | 中兴通讯股份有限公司 | Method and device for preventing false triggering caused by touching key |
CN104534536A (en) * | 2015-01-09 | 2015-04-22 | 广东海信家电有限公司 | Infrared touch control method and system for extractor hood |
CN104793788A (en) * | 2015-03-31 | 2015-07-22 | 小米科技有限责任公司 | Key operating method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673753A (en) * | 2018-07-03 | 2020-01-10 | 北京搜狗科技发展有限公司 | Key mis-touch error correction method and device |
CN110673753B (en) * | 2018-07-03 | 2024-04-12 | 北京搜狗科技发展有限公司 | Key false touch error correction method and device |
CN110109389A (en) * | 2019-04-23 | 2019-08-09 | 江苏信息职业技术学院 | A kind of implementation method of button operation function |
CN112432312A (en) * | 2020-11-27 | 2021-03-02 | 珠海格力电器股份有限公司 | Air conditioning system information synchronization method, device and system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107332569B (en) | 2020-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107332569A (en) | The control method of new trend controller touch key-press | |
US8816851B2 (en) | Distributed lighting control of an area | |
EP3517849A1 (en) | Household appliance control method, device and system, and intelligent air conditioner | |
CN107991891B (en) | Method and system for adjusting environmental parameters and user equipment | |
RU2639353C2 (en) | Method and device for sending tips as a message | |
CN107461860B (en) | A kind of intelligent fresh air purification system and its control method | |
CN108521215B (en) | The control method and control device of pfc circuit | |
CN104539492A (en) | Intelligent home system and data processing method thereof | |
WO2014101488A1 (en) | Switch triggering error preventing method and device thereof | |
CN106885336A (en) | A kind of control method of the anti-cold wind of floor air conditioner, controller and floor air conditioner | |
CN109861624B (en) | Motor overheating protection method | |
CN110375417B (en) | Control method and device of voice module and air conditioner | |
WO2023138096A1 (en) | Control method and apparatus for air conditioner, and air conditioner and storage medium | |
CN104007690A (en) | Control method and device of cooking appliance and cooking appliance | |
WO2016155552A1 (en) | Information pushing method and apparatus based on smart home system | |
CN104898839A (en) | Terminal device and control method thereof | |
CN111059682A (en) | Cabinet air conditioner door plate control method and device, storage medium and cabinet air conditioner | |
CN105737506A (en) | Method and system for controlling refrigerator | |
WO2015103840A1 (en) | Automatic sleep method, mobile terminal and computer storage medium | |
KR100677951B1 (en) | ZigBee Structure Used Standby Power decreasing Method | |
WO2024109086A1 (en) | Air conditioner control method for specific place, air conditioner controller, and related device | |
WO2023071379A1 (en) | Method and apparatus for security protection, electrical appliance, and storage medium | |
KR101077974B1 (en) | Blower control device | |
CN115314035A (en) | Key trigger control method and device and electric equipment | |
US20100013423A1 (en) | Control circuitry of ceiling fan for controlling rotation direction and speed |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |