Intelligent device control method and device, intelligent device and storage medium

文档序号:1270520 发布日期:2020-08-25 浏览:10次 中文

阅读说明:本技术 一种智能设备控制方法、装置及智能设备和存储介质 (Intelligent device control method and device, intelligent device and storage medium ) 是由 孙洪超 郄勇 于 2020-05-06 设计创作,主要内容包括:本申请公开了一种智能设备控制方法、装置及一种智能设备和计算机可读存储介质,该方法包括:当检测到第一事件对应的第一请求信号时,屏蔽第二事件对应的第二请求信号,并响应所述第一事件;当检测到所述第二请求信号且未检测到所述第一请求信号时,响应所述第二事件。由此可见,本申请提供的智能设备控制方法,通过在响应第一事件的同时屏蔽第二请求信号的方式,避免了第二事件的误触发。(The application discloses an intelligent device control method, an intelligent device control device, an intelligent device and a computer readable storage medium, wherein the method comprises the following steps: when a first request signal corresponding to a first event is detected, shielding a second request signal corresponding to a second event, and responding to the first event; responding to the second event when the second request signal is detected and the first request signal is not detected. Therefore, the intelligent device control method avoids the false triggering of the second event in a mode of responding to the first event and shielding the second request signal.)

1. An intelligent device control method, comprising:

when a first request signal corresponding to a first event is detected, shielding a second request signal corresponding to a second event, and responding to the first event;

responding to the second event when the second request signal is detected and the first request signal is not detected.

2. The intelligent device control method according to claim 1, wherein the first event comprises an NFC event, and the masking, when detecting a first request signal corresponding to the first event, a second request signal corresponding to a second event, and responding to the first event, comprises:

when the first request signal is detected to be in a low level, shielding a second request signal corresponding to the key event, and responding to the NFC event; and if the NFC chip detects the NFC antenna, setting the first request signal to be at a low level.

3. The smart device control method according to claim 1 or 2, wherein the second event includes a key press event, and the responding to the second event when the second request signal is detected and the first request signal is not detected includes:

when the second request signal is detected to be at a low level, judging whether the first request signal is at the low level; if the touch chip detects the key event, setting the second request signal to be a low level;

and if not, responding to the key event.

4. The smart device control method according to claim 1 or 2, wherein the second event includes a key press event, and the responding to the second event when the second request signal is detected and the first request signal is not detected includes:

triggering the detection of the second request signal when the first request signal is detected to be high;

responding to the key event when the second request signal is detected to be in a low level; and if the touch chip detects the key event, setting the second request signal to be at a low level.

5. An intelligent device control apparatus, comprising:

the first response module is used for shielding a second request signal corresponding to a second event and responding to the first event when the first request signal corresponding to the first event is detected;

a second response module for responding to the second event when the second request signal is detected and the first request signal is not detected.

6. The smart device control apparatus of claim 1, wherein the first event comprises an NFC event, and wherein the first response module comprises:

the shielding unit is used for shielding a second request signal corresponding to the key event when the first request signal is detected to be in a low level; if the NFC chip detects the NFC antenna, the first request signal is set to be at a low level;

a first response unit, configured to respond to the NFC event when it is detected that the first request signal is at a low level.

7. The intelligent device control apparatus of claim 5 or 6, wherein the second event comprises a key press event, and the second response module comprises:

the judging unit is used for judging whether the first request signal is at a low level or not when the second request signal is detected to be at the low level; if the touch chip detects the key event, setting the second request signal to be a low level;

and the second response unit is used for responding to the key event when the first request signal is at a high level.

8. The intelligent device control apparatus of claim 5 or 6, wherein the second event comprises a key press event, and the second response module comprises:

the trigger unit is used for triggering the detection of the second request signal when detecting that the first request signal is in a high level;

the third response unit is used for responding to the key event when the second request signal is detected to be in a low level; and if the touch chip detects the key event, setting the second request signal to be at a low level.

9. A smart device, comprising:

a memory for storing a computer program;

processor for implementing the steps of the intelligent device control method according to any one of claims 1 to 4 when executing said computer program.

10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the smart device control method according to any one of claims 1 to 4.

Technical Field

The present application relates to the field of smart device technologies, and in particular, to a method and an apparatus for controlling a smart device, and a computer-readable storage medium.

Background

At present, common intelligent equipment (such as intelligent sound box) all possesses the button function, and most of them are capacitanc button, and the capacitanc button is with low costs, and the design is simple generous, and the outward appearance is beautiful. Most of the intelligent devices simultaneously support an NFC (Near Field Communication, English full name: Near Field Communication) function, a Bluetooth address is stored in the NFC, and when an NFC antenna of a mobile phone is close to the NFC antenna of the intelligent device, the Bluetooth address of the intelligent device can be rapidly read out, so that the mobile phone and the intelligent device can be rapidly paired.

For smart device's pleasing to the eye and convenient operation, capacitanc button and NFC antenna generally all set up in smart device's top. Due to the limitation of the area of the top end, the distance between the key and the NFC antenna is very short, and when the mobile phone with the metal shell is subjected to NFC card swiping pairing, the key is easily contacted with the capacitive key, so that the key event is triggered by mistake.

Therefore, how to avoid false triggering of events in the smart device is a technical problem to be solved by those skilled in the art.

Disclosure of Invention

The application aims to provide an intelligent device control method and device, an intelligent device and a computer readable storage medium, and avoid false triggering of events in the intelligent device.

In order to achieve the above object, the present application provides an intelligent device control method, including:

when a first request signal corresponding to a first event is detected, shielding a second request signal corresponding to a second event, and responding to the first event;

responding to the second event when the second request signal is detected and the first request signal is not detected.

Wherein, the first event includes an NFC event, and when a first request signal corresponding to the first event is detected, masking a second request signal corresponding to a second event and responding to the first event includes:

when the first request signal is detected to be in a low level, shielding a second request signal corresponding to the key event, and responding to the NFC event; and if the NFC chip detects the NFC antenna, setting the first request signal to be at a low level.

Wherein the second event comprises a key press event, and the responding to the second event when the second request signal is detected and the first request signal is not detected comprises:

when the second request signal is detected to be at a low level, judging whether the first request signal is at the low level; if the touch chip detects the key event, setting the second request signal to be a low level;

and if not, responding to the key event.

Wherein the second event comprises a key press event, and the responding to the second event when the second request signal is detected and the first request signal is not detected comprises:

triggering the detection of the second request signal when the first request signal is detected to be high;

responding to the key event when the second request signal is detected to be in a low level; and if the touch chip detects the key event, setting the second request signal to be at a low level.

In order to achieve the above object, the present application provides an intelligent device control apparatus, including:

the first response module is used for shielding a second request signal corresponding to a second event and responding to the first event when the first request signal corresponding to the first event is detected;

a second response module for responding to the second event when the second request signal is detected and the first request signal is not detected.

Wherein the first event comprises an NFC event, and the first response module comprises:

the shielding unit is used for shielding a second request signal corresponding to the key event when the first request signal is detected to be in a low level; if the NFC chip detects the NFC antenna, the first request signal is set to be at a low level;

a first response unit, configured to respond to the NFC event when it is detected that the first request signal is at a low level.

Wherein the second event comprises a key event, and the second response module comprises:

the judging unit is used for judging whether the first request signal is at a low level or not when the second request signal is detected to be at the low level; if the touch chip detects the key event, setting the second request signal to be a low level;

and the second response unit is used for responding to the key event when the first request signal is at a high level.

Wherein the second event comprises a key event, and the second response module comprises:

the trigger unit is used for triggering the detection of the second request signal when detecting that the first request signal is in a high level;

the third response unit is used for responding to the key event when the second request signal is detected to be in a low level; and if the touch chip detects the key event, setting the second request signal to be at a low level.

In order to achieve the above object, the present application provides an intelligent device, including:

a memory for storing a computer program;

and a processor for implementing the steps of the intelligent device control method when executing the computer program.

To achieve the above object, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when being executed by a processor, realizes the steps of the above intelligent device control method.

According to the scheme, the intelligent device control method comprises the following steps: when a first request signal corresponding to a first event is detected, shielding a second request signal corresponding to a second event, and responding to the first event; responding to the second event when the second request signal is detected and the first request signal is not detected.

According to the intelligent device control method, when the first request signal is processed, the corresponding first event is responded, and the second request signal is shielded, namely, the second event corresponding to the second request signal cannot be responded no matter whether the second request signal is detected or not. In addition, when the second request signal is detected, whether the first request signal is detected or not is judged, if yes, the intelligent device is indicated to respond to the first event, the second event is triggered by mistake, and no response is carried out; if not, the second event is triggered normally, and the second event is responded. Therefore, the intelligent device control method avoids the false triggering of the second event in a mode of responding to the first event and shielding the second request signal. The application also discloses an intelligent device control device, an intelligent device and a computer readable storage medium, and the technical effects can be realized.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:

FIG. 1 is a flow chart illustrating a smart device control method according to an exemplary embodiment;

FIG. 2 is a flow chart illustrating another method of smart device control according to an exemplary embodiment;

FIG. 3 is a flow chart illustrating yet another method of intelligent device control, according to an exemplary embodiment;

fig. 4 is a hardware structure diagram of an application scenario embodiment provided in the present application;

FIG. 5 is a software flow diagram of an embodiment of an application scenario provided herein;

FIG. 6 is a block diagram illustrating an intelligent device control apparatus according to an exemplary embodiment;

FIG. 7 is a block diagram illustrating a smart device in accordance with an exemplary embodiment.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The embodiment of the application discloses a control method of an intelligent device, and false triggering of events in the intelligent device is avoided.

Referring to fig. 1, a flowchart illustrating a smart device control method according to an exemplary embodiment is shown, as shown in fig. 1, including:

s101: when a first request signal corresponding to a first event is detected, shielding a second request signal corresponding to a second event, and responding to the first event;

the execution subject of the embodiment is a processor in the intelligent device, and aims to respond to the first event and the second event and avoid false triggering of the second event. The specific type of smart device is not limited herein and may include, for example, a bluetooth speaker, a smart watch, and the like. The intelligent device simultaneously supports a first event and a second event, wherein the first event corresponds to a first request signal, and the second event corresponds to a second request signal, namely, under the normal condition that false triggering does not exist, the intelligent device responds to the first event when detecting the first request signal, and responds to the second event when detecting the second request signal. The embodiment also does not limit the specific types of the first event and the second event, for example, the first event may include an NFC event, and the second event may include a key event, which may be used to avoid false triggering of the key event.

In a specific implementation, when a user triggers a first event, a chip monitoring the first event outputs a first request signal to a processor. When the processor detects the first request signal, the processor responds to the first event and simultaneously masks the second request signal, namely, the processor does not respond to the second event whether the second request signal is detected or not. Therefore, the step avoids the false triggering of the second event by shielding the second request signal while responding to the first event.

S102: when the second request signal is detected and the first request signal is not detected, a second event is responded.

In a specific implementation, when the user triggers the second event, the chip monitoring the second event outputs a second request signal to the processor. When the processor detects the second request signal, whether the first request signal is detected or not is judged, if yes, the intelligent device is indicated to respond to the first event, the user triggers the second event by mistake, and no response is carried out; if not, the second event is triggered normally by the user, and the second event is responded. Therefore, the step avoids the false triggering of the second event by judging whether the first request signal is detected before responding to the second event.

According to the intelligent device control method provided by the embodiment of the application, when the first request signal is processed, the corresponding first event is responded, and the second request signal is shielded, namely, whether the second request signal is detected or not, the second event corresponding to the second request signal cannot be responded. In addition, when the second request signal is detected, whether the first request signal is detected or not is judged, if yes, the intelligent device is indicated to respond to the first event, the second event is triggered by mistake, and no response is carried out; if not, the second event is triggered normally, and the second event is responded. Therefore, the intelligent device control method provided by the embodiment of the application avoids the false triggering of the second event by a mode of shielding the second request signal while responding to the first event.

The embodiment of the application discloses an intelligent device control method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:

referring to fig. 2, a flowchart of another intelligent device control method according to an exemplary embodiment is shown, as shown in fig. 2, including:

s201: when the first request signal is detected to be in a low level, shielding a second request signal corresponding to the key event, and responding to the NFC event; and if the NFC chip detects the NFC antenna, setting the first request signal to be at a low level.

In this embodiment, the NFC event corresponds to the first request signal, and the key event corresponds to the second request signal. In a specific implementation, the NFC chip (NFC IC) may generate the first request signal (NFC _ INT) and the key chip (key IC) may generate the second request signal (Touch _ INT).

In this step, when the NFC IC detects that an NFC antenna of a terminal such as a mobile phone is close to the terminal, the NFC _ INT is pulled down, that is, the first request signal is set to a low level, and when the processor of the intelligent device detects that the NFC _ INT is the low level, the Touch _ INT is firstly shielded, that is, no response is performed regardless of the change of the Touch _ INT, and then the processor responds to an NFC event corresponding to the NFC _ INT to complete pairing with the terminal. When NFC _ INT is restored to the high level, the function of Touch _ INT is restored.

S202: when the second request signal is detected to be at a low level, judging whether the first request signal is at the low level; if not, responding to the key event; and if the touch chip detects the key event, setting the second request signal to be at a low level.

In particular implementations, when a key event is detected by the key IC, Touch _ INT is pulled low. When detecting that Touch _ INT is at a low level, a processor of the intelligent device firstly judges whether NFC _ INT is at the low level, if so, the NFC is swiping the card at the moment, the key event is a false trigger event, and no response is carried out. And if the NFC _ INT is at a high level, the second event is normally triggered by the user, and the processor normally responds to the second event.

Therefore, the embodiment avoids the false triggering of the key event by judging whether the first request signal is detected before the key event is responded.

The embodiment of the application discloses an intelligent device control method, and compared with the first embodiment, the embodiment further describes and optimizes the technical scheme. Specifically, the method comprises the following steps:

referring to fig. 3, a flowchart of yet another intelligent device control method according to an exemplary embodiment is shown, as shown in fig. 3, including:

s301: judging whether the first request signal is at a low level; if yes, entering S302; if not, entering S303;

s302: shielding a second request signal corresponding to the key event, and responding to the NFC event; and if the NFC chip detects the NFC antenna, setting the first request signal to be at a low level.

In this embodiment, the NFC event corresponds to the first request signal, and the key event corresponds to the second request signal. In a specific implementation, the NFC chip (NFC IC) may generate the first request signal (NFC _ INT) and the key chip (key IC) may generate the second request signal (Touch _ INT).

S303: triggering the detection of a second request signal, and responding to a key event when the second request signal is detected to be in a low level; and if the touch chip detects the key event, setting the second request signal to be at a low level.

In a specific implementation, the detection of the second request signal is triggered only when the first request signal is detected to be high, i.e. the detection of the second request signal is triggered only when the NFC event is not triggered. When the second request signal is detected to be low, the first request signal is necessarily high, and the key event can be responded.

Therefore, in the embodiment, the detection of the second request signal is triggered only when the first request signal is detected to be at the high level, so that the false triggering of the key event is avoided.

An embodiment of an application scenario provided by the present application is introduced below, as shown in fig. 4, a plurality of keys are present on the top of the bluetooth speaker, the keys are closer to the NFC antenna area, the NFC antenna of the mobile phone is located on the back of the mobile phone, when the NFC antenna of the mobile phone is about 10mm away from the NFC antenna of the bluetooth speaker, the bluetooth speaker can sense the approach of the mobile phone, the NFC _ INT can output a low signal to the CPU of the bluetooth speaker, and the CPU shields the response of Touch _ INT by software while processing the NFC request. At the moment, the mobile phone is away from the product keys by a certain distance, when the mobile phone touches the Touch surface or reaches the distance for triggering Touch, the software finishes the Touch _ INT shielding task, so that the Bluetooth sound box cannot respond to the Touch event at the moment. The distance S between the mobile phone and the Bluetooth sound box is at least 10mm, the mobile phone moving speed V is calculated according to 200mm/S, the time T left for the CPU to respond is S/V10 mm/200 mm/S50 ms, and the CPU is enough to complete the shielding task of software.

As shown in fig. 5, in the main process, when it is detected that the NFC antenna of the mobile phone is close to the mobile phone, the NFC IC of the bluetooth speaker automatically pulls down the NFC _ INT, and after the CPU detects that the NFC _ INT becomes low, the Touch _ INT is first shielded, that is, the CPU does not respond regardless of changes in the Touch _ INT, and then the CPU responds to the NFC _ INT event.

In the sub-process, when a Touch event occurs, the Touch IC automatically pulls down Touch _ INT, the CPU firstly judges whether the NFC _ INT is low, if so, the NFC _ INT is indicated to be swiping the card at the moment, the button is probably triggered by mistake, and therefore the Touch _ INT is not processed and not responded; if the NFC _ INT is high, the key event is normal, and the CPU responds normally and processes the Touch event.

In summary, the NFC card swiping can be performed after the mobile phone and the bluetooth speaker are separated by a distance, and in this embodiment, the software processing for shielding the Touch event is completed by using the time difference that the NFC responds before the Touch, so as to prevent the Touch event from being touched by mistake.

In the following, a smart device control apparatus provided in an embodiment of the present application is introduced, and a smart device control apparatus described below and a smart device control method described above may be referred to each other.

Referring to fig. 6, a block diagram of an intelligent device control apparatus according to an exemplary embodiment is shown, as shown in fig. 6, including:

a first response module 601, configured to mask a second request signal corresponding to a second event and respond to a first event when the first request signal corresponding to the first event is detected;

a second response module 602, configured to respond to the second event when the second request signal is detected and the first request signal is not detected.

The intelligent device control apparatus provided in the embodiment of the application, when processing the first request signal, masks the second request signal while responding to the corresponding first event, that is, no matter whether the second request signal is detected, the second event corresponding to the second request signal cannot be responded. In addition, when the second request signal is detected, whether the first request signal is detected or not is judged, if yes, the intelligent device is indicated to respond to the first event, the second event is triggered by mistake, and no response is carried out; if not, the second event is triggered normally, and the second event is responded. Therefore, the intelligent device control apparatus provided in the embodiment of the application avoids the false triggering of the second event by shielding the second request signal while responding to the first event.

On the basis of the foregoing embodiment, as a preferred implementation, the first event includes an NFC event, and the first response module 601 includes:

the shielding unit is used for shielding a second request signal corresponding to the key event when the first request signal is detected to be in a low level; if the NFC chip detects the NFC antenna, the first request signal is set to be at a low level;

a first response unit, configured to respond to the NFC event when detecting that the first request signal is at a low level.

On the basis of the foregoing embodiment, as a preferred implementation manner, the second event includes a key event, and the second response module 602 includes:

the judging unit is used for judging whether the first request signal is at a low level or not when the second request signal is detected to be at the low level; if the touch chip detects the key event, setting the second request signal to be a low level;

and the second response unit is used for responding to the key event when the first request signal is at a high level.

On the basis of the foregoing embodiment, as a preferred implementation manner, the second event includes a key event, and the second response module 602 includes:

the trigger unit is used for triggering the detection of the second request signal when detecting that the first request signal is in a high level;

the third response unit is used for responding to the key event when the second request signal is detected to be in a low level; and if the touch chip detects the key event, setting the second request signal to be at a low level.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

The present application also provides an intelligent device, and referring to fig. 7, a structure diagram of an intelligent device 700 provided in the embodiment of the present application, as shown in fig. 7, may include a processor 11 and a memory 12. The smart device 700 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.

The processor 11 is configured to control the overall operation of the smart device 700, so as to complete all or part of the steps in the smart device control method. The memory 12 is used to store various types of data to support operation at the smart device 700, such as instructions for any application or method operating on the smart device 700 and application-related data such as contact data, messaging, pictures, audio, video, and the like. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 13 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is for outputting and/or receiving audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 12 or transmitted via the communication component 15. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 14 provides an interface between the processor 11 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 15 is used for wired or wireless communication between the smart device 700 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding communication component 15 may include: Wi-Fi module, bluetooth module, NFC module.

In an exemplary embodiment, the smart Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described smart Device control method.

In another exemplary embodiment, there is also provided a computer readable storage medium including program instructions which, when executed by a processor, implement the steps of the above-described smart device control method. For example, the computer readable storage medium may be the above-mentioned memory 12 including program instructions executable by the processor 11 of the smart device 700 to perform the above-mentioned smart device control method.

The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据写入方法、存储器控制电路单元与存储器存储装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类