CN114415568A - Circuit control method, circuit control device and computer-readable storage medium - Google Patents

Circuit control method, circuit control device and computer-readable storage medium Download PDF

Info

Publication number
CN114415568A
CN114415568A CN202210059997.2A CN202210059997A CN114415568A CN 114415568 A CN114415568 A CN 114415568A CN 202210059997 A CN202210059997 A CN 202210059997A CN 114415568 A CN114415568 A CN 114415568A
Authority
CN
China
Prior art keywords
signal
circuit
touch signal
controlled
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210059997.2A
Other languages
Chinese (zh)
Inventor
陈传均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202210059997.2A priority Critical patent/CN114415568A/en
Publication of CN114415568A publication Critical patent/CN114415568A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Electronic Switches (AREA)

Abstract

The application discloses a circuit control method, a device and a computer readable storage medium, comprising: if a first touch signal generated by the first sensing assembly is detected, switching an initial mode of a circuit to be controlled to a control mode, wherein the control mode is a controllable state of the circuit to be controlled; detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of a circuit to be controlled; if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence; and controlling the circuit to be controlled according to the target control signal. Therefore, the influence of the false touch on the circuit is effectively avoided, and the accuracy of power supply control is improved.

Description

Circuit control method, circuit control device and computer-readable storage medium
Technical Field
The present application relates to the field of circuit control technologies, and in particular, to a circuit control method, an apparatus, and a computer-readable storage medium.
Background
With the development of the electric control technology, the electric control technology has been widely applied to various fields. However, the safety problem of the electrical control technology in the application scenario is of great concern, for example, for some electrical control application scenarios in a high humidity environment, the probability of an electrical accident is high, such as frequent plugging and unplugging of a plug by a user, which is easy to cause an electric shock accident. In order to solve the problem of easy electric shock, the related art controls the on and off of the power supply through a non-contact inductive switch so as to ensure the safety of a user when using an electric control scene.
However, in the related art, the non-contact inductive switch is used to control the power supply to be turned on or off, and the inductive switch circuit is easily affected by the mistouch behavior, so that the power supply is controlled incorrectly, and the accuracy of power supply control is reduced.
Disclosure of Invention
The embodiment of the application provides a circuit control method, a circuit control device and a computer readable storage medium.
A first aspect of the present application provides a circuit control method, including:
if a first touch signal generated by the first sensing assembly is detected, switching an initial mode of the circuit to be controlled to a control mode, wherein the control mode is a controllable state of the circuit to be controlled;
detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of the circuit to be controlled;
if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence;
and controlling the circuit to be controlled according to the target control signal.
Accordingly, a second aspect of the present application provides a circuit control apparatus comprising:
the switching unit is used for switching the initial mode of the circuit to be controlled to a control mode if a first touch signal generated by the first sensing assembly is detected, wherein the control mode is a controllable state of the circuit to be controlled;
the detection unit is used for detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on the control mode of the circuit to be controlled;
the determining unit is used for determining a signal time sequence between a second touch signal and a third touch signal if the second touch signal generated by the first sensing assembly and the third touch signal generated by the second sensing assembly are detected, and determining a target control signal according to the signal time sequence;
and the control unit is used for controlling the circuit to be controlled according to the target control signal.
In some embodiments, the circuit control device further comprises a first obtaining unit configured to:
acquiring sensing duration of the first sensing assembly when the first touch signal is generated, wherein the sensing duration is duration of the first sensing assembly being touched;
if the sensing duration is detected to accord with a preset effective duration range, determining the first touch signal as an effective signal;
the switching unit is further configured to:
and if the first touch signal is detected to be an effective signal, switching the initial mode of the circuit to be controlled to a control mode.
In some embodiments, the circuit control device further comprises a second acquisition unit configured to:
if the second touch signal and the third touch signal are both identified as effective signals, acquiring a generation time difference between the second touch signal and the third touch signal;
comparing the generated time difference with a preset double-touch time threshold;
the determining unit is further configured to:
and if the generation time difference is detected to be smaller than or equal to a preset double-touch time threshold, determining a signal timing sequence between the second touch signal and the third touch signal.
In some embodiments, the determining unit is further configured to:
acquiring first generation time of the second touch signal and second generation time of the third touch signal;
and determining the signal timing sequence between the second touch signal and the third touch signal according to the first generation time and the second generation time.
In some embodiments, the determining unit is further configured to:
and if the signal timing is recognized to be that the first generation time of the second touch signal is earlier than the second generation time of the third touch signal, jointly generating a closing signal of the circuit to be controlled according to the second touch signal and the third touch signal, and determining the closing signal as a target control signal.
In some embodiments, the determining unit is further configured to:
and if the signal timing sequence is identified to be that the first generation time of the second touch signal is later than the second generation time of the third touch signal, jointly generating a starting signal of the circuit to be controlled according to the second touch signal and the third touch signal, and determining the starting signal as a target control signal.
In some embodiments, the circuit control device further comprises an identification unit for:
identifying a control attribute of the target control signal;
detecting the working state of the circuit to be controlled, and acquiring the preset attribute to be controlled corresponding to the working state;
and the control unit is further used for controlling the circuit to be controlled according to the target control signal if the control attribute is identified to be matched with the preset attribute to be controlled.
In some embodiments, the circuit control device further comprises a second detection unit for:
detecting whether the working state of the circuit to be controlled is switched;
if the switching of the working state of the circuit to be controlled is detected to be completed, detecting whether the circuit to be controlled generates a second target control signal, wherein the second target control signal is a control signal behind the target control signal;
the switching unit is further configured to:
and if the second target control signal is not detected, switching the current control mode of the circuit to be controlled to the initial mode.
The third aspect of the present application further provides a computer-readable storage medium, which stores a plurality of instructions, where the instructions are suitable for being loaded by a processor to execute the steps in the circuit control method provided in the first aspect of the present application.
A fourth aspect of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the circuit control method provided in the first aspect of the present application when executing the computer program.
A fifth aspect of the present application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps in the circuit control method provided by the first aspect.
According to the embodiment of the application, if a first touch signal generated by a first sensing assembly is detected, an initial mode of a circuit to be controlled is switched to a control mode, and the control mode is a controllable state of the circuit to be controlled; detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of a circuit to be controlled; if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence; and controlling the circuit to be controlled according to the target control signal. Therefore, the scheme can enable the circuit to be controlled to be switched to the control mode based on the first touch signal so as to unlock the second sensing assembly, enable the second sensing assembly to be touched, and further determine a target control signal according to the signal time sequence to control the circuit to be controlled when the second touch signal generated by the first sensing assembly and the third touch signal generated by the second sensing assembly are detected; therefore, the influence of the false touch on the circuit is effectively avoided, and the accuracy of power supply control is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a circuit control system according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating steps of a circuit control method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a circuit control device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device provided in the present application.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
The embodiment of the invention provides a circuit control method, a circuit control device and a computer readable storage medium. The circuit control method can be used in a circuit control device. The circuit control means may be integrated in a computer device, which may be a terminal or a server. The terminal can be a mobile phone, a tablet computer, a notebook computer, a mobile smart television, a smart watch, a wearable smart device, an electric control integrated device and the like. It should be noted that, the above computer device includes a circuit to be controlled, and the following embodiments of the present application implement a circuit control method to control the circuit to be controlled.
Please refer to fig. 1, which is a schematic view illustrating a circuit control system according to an embodiment of the present disclosure. As shown, the scenario includes a terminal.
The terminal can detect whether the first sensing assembly generates a first touch signal or not; if a first touch signal generated by the first sensing assembly is detected, switching an initial mode of a circuit to be controlled to a control mode, wherein the control mode is a controllable state of the circuit to be controlled; detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of a circuit to be controlled; if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence; and controlling the circuit to be controlled according to the target control signal.
The circuit control may include processing modes such as detecting a first touch signal, switching states, detecting a second touch signal and a third touch signal, determining a signal timing sequence and a target control signal, and controlling a circuit to be controlled.
It should be noted that the schematic diagram of the circuit control system scenario shown in fig. 1 is only an example, and the circuit control scenario described in the embodiment of the present application is for more clearly illustrating the technical solution of the present application, and does not constitute a limitation on the technical solution provided in the present application. As will be appreciated by those skilled in the art, with the evolution of circuit control scenarios and the emergence of new service scenarios, the technical solution provided in the present application is also applicable to similar technical problems.
Based on the above-described implementation scenarios, detailed descriptions will be given below.
In order to make the circuit easily affected by the mistouch action, the control power supply has errors, and the accuracy of the power supply control is reduced. Therefore, the circuit control method can effectively avoid the influence of the false touch on the circuit and improve the accuracy of power supply control.
In the embodiments of the present application, description will be made from the viewpoint of a circuit control apparatus, with which the circuit control apparatus can be specifically integrated in a computer device such as a terminal. Referring to fig. 2, fig. 2 is a schematic step flow diagram of a circuit control method provided in the embodiment of the present application, where the circuit control device is specifically integrated on a terminal that needs to be controlled by a circuit, and the terminal includes a circuit to be controlled to control the circuit to be controlled; alternatively, the terminal may be used to control other devices having circuitry to be controlled, such as an integrated component having circuitry to be controlled. When the processor on the terminal executes the program corresponding to the circuit control method, the specific flow is as follows:
step 101, if a first touch signal generated by a first sensing element is detected, an initial mode of a circuit to be controlled is switched to a control mode.
It should be noted that the circuit to be controlled in the embodiment of the present application may include a first sensing component and a second sensing component, and the first sensing component and the second sensing component are electrically connected to corresponding lines of the circuit to be controlled. The first sensing assembly and the second sensing assembly are respectively used for detecting touch operation of a user/target object so as to generate a touch signal, and the touch signal is used for controlling a circuit to be controlled.
It should be noted that, when the circuit to be controlled is controlled, the target control signal for controlling the circuit to be controlled is determined according to the signal combination result by combining the touch signals generated by the one or more sensing elements, so that the circuit to be controlled is controlled according to the target control signal.
The first touch signal may be an analog signal, a digital signal, or an electrical signal in other forms. In addition, the embodiment of the present application further includes a second touch signal, a third touch signal or other touch signals, and similarly, the above touch signals may also be analog signals, digital signals or other forms of electrical signals, which are not described in detail in the following.
It should be noted that the circuit to be controlled according to the embodiment of the present application includes two modes, which are an initial mode and a control mode. The initial mode is a mode in which the circuit to be controlled cannot be controlled, and in the initial mode, the working state of the circuit to be controlled cannot be controlled and switched, and if the current working state of the circuit to be controlled is an on state, the on state cannot be switched to an off state in the initial mode. The control mode is a controllable state of the circuit to be controlled, and under the control mode, the working state of the circuit to be controlled can be controlled and switched, and if the current working state of the circuit to be controlled is an electrified state, the electrified state can be switched to a power-off state under the control mode. The above switching between the initial mode and the control mode mainly depends on the touch signal.
It should be noted that, in the embodiment of the present application, the operation mode is different between the initial mode and the control mode, which is mainly due to the different operation states of the sensing assembly in different modes. Specifically, in the initial mode of the circuit to be controlled, only the first sensing element is in an operating state, that is, only the first sensing element can detect the touch operation of the user/target object and generate the corresponding first touch signal, while the second sensing element in the initial mode is in a locked state or a power-off state, that is, the second sensing element is in an inoperative state, that is, the touch signal cannot be generated.
In addition, when the circuit to be controlled is in the control mode, the first sensing element and the second sensing element may be in an operating state at the same time, and when the first sensing element detects a touch operation of the user/target object, a second touch signal subsequent to the first touch signal is generated, and when the second sensing element detects a touch operation of the user/target object, a third touch signal is generated.
The first sensing component can be an infrared sensor or other touch sensors, and the sensing component is a non-touch sensor. Similarly, the second sensing component or other sensing components in the embodiment of the present application may also be an infrared sensor or other touch sensors, and the like, which are not repeated in the following.
In order to avoid the influence of misoperation touch on the power supply of the circuit to be controlled, the circuit to be controlled in the embodiment of the application sets an initial mode and a control mode, wherein the circuit to be controlled is in the initial mode under a general condition, so that the power supply of the circuit to be controlled cannot be controlled or switched; in addition, in an initial mode of the circuit to be controlled, only the first sensing element is in a regular state, and in order to realize understanding of the control requirement of the user/target object on the circuit to be controlled, the embodiment of the application can detect whether the first sensing element in the circuit to be controlled in the initial mode generates a first touch signal in real time, and if the first touch signal generated by the first sensing element is detected, the initial mode of the circuit to be controlled is switched to a control mode to unlock the sensing element capable of being operated by the user/target object in a touch manner, such that the second sensing element is in a working state. Therefore, when the user/target object performs touch operation on the first sensing assembly, the first touch signal of the first sensing assembly is detected, the circuit to be controlled is determined to be switched to the control mode according to the first touch signal, so that the touch operation of the user/target object is detected in the control mode subsequently, the power supply of the circuit to be controlled is controlled according to other touch signals, the influence of mistaken touch on the circuit to be controlled is effectively avoided, and the robustness of the circuit to be controlled is improved.
In some embodiments, in order to further reduce the influence of the false touch on the circuit to be controlled, in the embodiments of the present application, after the first touch signal is detected, whether the first touch signal is valid may be further verified. Specifically, before the step "switching the initial mode of the circuit to be controlled to the control mode", the method may include: acquiring sensing duration of the first sensing assembly when generating a first touch signal, wherein the sensing duration is duration of touch of the first sensing assembly; and if the sensing duration is detected to be in accordance with the preset effective duration range, determining the first touch signal as an effective signal. And further, if the first touch signal is detected to be an effective signal, switching the initial mode of the circuit to be controlled to the control mode.
In addition, the sensing duration is obtained as follows: in an initial mode, detecting the number of first touch signals generated by a first sensing assembly in a circuit to be controlled, if detecting that the first sensing assembly generates a plurality of first touch signals, acquiring first sub-time of the first touch signal and second sub-time of the last first touch signal, and determining the sensing duration of the first sensing assembly according to a time difference between the first sub-time and the second sub-time.
Through the above manner, the circuit to be controlled can be determined to be switched to the control mode according to the detected first touch signal, so that the touch operation of the user/target object can be detected in the control mode subsequently, and the power supply of the circuit to be controlled is controlled according to the combination of other touch signals.
Step 102, detecting whether the first sensing element generates a second touch signal and detecting whether the second sensing element generates a third touch signal based on a control mode of the circuit to be controlled.
Specifically, in the control mode, the second sensing element in the circuit to be controlled is unlocked, so that the second sensing element and the first sensing element are simultaneously in a working state, and the touch operation of the user/the target object can be detected respectively. And then, in the control mode of the circuit to be controlled, whether the first sensing assembly generates a second touch signal or not is detected, and whether the second sensing assembly generates a third touch signal or not is detected, so that when the second touch signal and the third touch signal are detected, the circuit to be controlled is controlled according to the second touch signal and the third touch signal. For example, the current working state of the circuit to be controlled is a power-on state, and the power-on state can be switched to a power-off state in the control mode. The above switching between the initial mode and the control mode mainly depends on the touch signal.
It should be noted that, if the second touch signal generated by the first sensing element and the third touch signal generated by the second sensing element are not detected within the preset time period, it is determined that the first touch signal is the false touch of the user/target object on the first sensing element in the initial mode. If only the second touch signal generated by the first sensing assembly is detected or only the third touch signal generated by the second sensing assembly is detected within the preset time length, the second touch signal or the third touch signal is judged to be mistaken touch, the second touch signal or the third touch signal is determined to be an invalid signal, and the invalid signal is deleted. Therefore, the influence of misoperation of the user/target object on the circuit to be controlled is effectively avoided, and the fault tolerance rate of the circuit to be controlled is improved.
Step 103, if a second touch signal generated by the first sensing element and a third touch signal generated by the second sensing element are detected, determining a signal timing sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal timing sequence.
The signal timing sequence is the time sequence of the second touch signal and the third touch signal when being generated.
The target control signal is a target signal for controlling a circuit to be controlled. The target control signal may be a signal for controlling the operating state of the circuit to be controlled to be switched to the power-on state, or may be a signal for controlling the operating state of the circuit to be controlled to be switched to the power-off state.
Specifically, in order to determine the control intention of the user/target object on the circuit to be controlled, a target control signal for controlling the circuit to be controlled needs to be determined first. According to the embodiment of the application, after the second touch signal generated by the first sensing assembly and the third touch signal generated by the second sensing assembly are detected, the signal time sequence between the second touch signal and the third touch signal is determined, and the target control signal is determined through the signal time sequence, so that the circuit to be controlled is controlled according to the target control signal subsequently.
In the embodiment of the present application, in order to further reduce the influence of the user/target object caused by the false touch on the circuit to be controlled, after the second touch signal generated by the first sensing element and the third touch signal generated by the second sensing element are detected, that is, before the step "determining the signal timing between the second touch signal and the third touch signal", the second touch signal and the third touch signal may be detected to determine whether the signals are the effective control intention of the target object, so as to prevent the influence of the false touch on the circuit to be controlled.
Specifically, before the step of determining the signal timing sequence between the second touch signal and the third touch signal, the method may include:
if the second touch signal and the third touch signal are both identified as effective signals, acquiring a generation time difference between the second touch signal and the third touch signal; comparing the generated time difference with a preset double-touch time threshold; the step of determining the signal timing between the second touch signal and the third touch signal may include: and if the generation time difference is detected to be smaller than or equal to the preset double-touch time threshold, determining the signal time sequence between the second touch signal and the third touch signal.
It should be noted that the manner of detecting whether the second touch signal and the third touch signal are valid signals is consistent with the determination manner of the first touch signal, and details are not repeated here.
Specifically, determining a signal timing sequence between the second touch signal and the third touch signal may include: acquiring first generation time of a second touch signal and acquiring second generation time of a third touch signal; and determining the signal timing sequence between the second touch signal and the third touch signal according to the first generation time and the second generation time.
Further, a target control signal is determined according to the signal timing sequence, and the target control signal can be a closing signal for closing the power supply of the circuit to be controlled and can also be an opening signal for opening the power supply of the circuit to be controlled. In some embodiments, after obtaining the signal timing between the second touch signal and the third touch signal, the generation sequence between the second touch signal and the third touch signal is identified according to the signal timing, so as to determine the target control signal according to the generation sequence of the second touch signal and the third touch signal.
Specifically, the determining process of the target control signal may include:
(1) and if the signal timing is recognized to be that the first generation time of the second touch signal is earlier than the second generation time of the third touch signal, jointly generating a closing signal of the circuit to be controlled according to the second touch signal and the third touch signal, and determining the closing signal as a target control signal.
(2) And if the signal timing sequence is identified to be that the first generation time of the second touch signal is later than the second generation time of the third touch signal, generating a starting signal of the circuit to be controlled according to the second touch signal and the third touch signal in a combined mode, and determining the starting signal as a target control signal.
Through the above manner, the control intention of the user is known according to the signal time sequence between the second touch signal and the third touch signal, so that the target control signal is determined, and the control on the circuit to be controlled is conveniently carried out according to the target control signal.
And 104, controlling the circuit to be controlled according to the target control signal.
Specifically, after the target control signal is obtained, the working state of the circuit to be controlled can be controlled according to the target control signal. For example, the current working state of the circuit to be controlled is a power-on state, and the power-on state can be switched to a power-off state in the control mode. For another example, the current working state of the circuit to be controlled is a power-off state, and the power-off state can be switched to a power-on state in the control mode.
In some embodiments, after the target control signal is obtained, in order to avoid a user's misoperation to generate a target control signal that does not conform to the controllable rule of the current working state of the circuit to be controlled, compliance of the target control signal may be detected before the circuit to be controlled is controlled. Specifically, before the step "controlling the circuit to be controlled according to the target control signal", the method may include:
identifying a control attribute of the target control signal; detecting the working state of a circuit to be controlled, and acquiring the preset attribute to be controlled corresponding to the working state; the step of "controlling the circuit to be controlled according to the target control signal" may include: and if the control attribute is identified to be matched with the preset attribute to be controlled, controlling the circuit to be controlled according to the target control signal.
The preset control attribute can be obtained from a preset control attribute table, and the preset control attribute table contains the mapping relation between the working state of the circuit to be controlled and the controllable attribute. For example, if the control attribute is to turn off the power supply, the working state of the circuit to be controlled corresponding to the power supply is a power-on state; and if the control attribute is to turn on the power supply, the working state of the circuit to be controlled corresponding to the power supply is turned off.
For example, if the control attribute of the target control signal is identified as power off and the working state of the circuit to be controlled is detected as a power on state, the controllable attribute (power off) corresponding to the power on state is searched from the preset control attribute table, and the circuit to be controlled is controlled according to the target control signal because the control attribute of the target control signal is matched with the controllable attribute (power off). On the contrary, if the control attribute of the target control signal is identified as power off and the working state of the circuit to be controlled is detected as power off, and the controllable attribute corresponding to the power off state is power on, the control attribute (power off) of the target control signal is not matched with the controllable attribute (power on), and the step of controlling the circuit to be controlled according to the target control signal is not executed. Therefore, control disorder caused by repeated opening or closing of the circuit to be controlled is effectively avoided.
In some embodiments, after the control of the circuit to be controlled is completed, the control mode of the circuit to be controlled can be switched to the initial mode within a preset time period, so that the circuit to be controlled is in the conventional mode, the influence on the circuit to be controlled due to mistaken touch is avoided, and the controllability of the power supply of the circuit to be controlled is improved. Specifically, after the step "controlling the circuit to be controlled according to the target control signal", the method may include:
detecting whether the working state of the circuit to be controlled is switched; if the switching of the working state of the circuit to be controlled is detected to be completed, detecting whether the circuit to be controlled generates a second target control signal, wherein the second target control signal is a control signal behind the target control signal; and if the second target control signal is not detected, switching the current control mode of the circuit to be controlled to the initial mode.
Wherein, whether the working state of the circuit to be controlled is switched over and finished is detected, and the specific process can be as follows: acquiring control time of the current working state of a circuit to be controlled, and determining the current time interval according to the control time; comparing the time interval with a preset response time threshold, wherein the preset response time threshold is the time interval threshold of the circuit to be controlled for finishing the control of the working state according to the target control signal and can be set according to the general response time of the signal; and if the comparison result is that the time interval is greater than or equal to the preset response time length threshold, determining that the switching of the working state of the circuit to be controlled is completed.
Therefore, the embodiment of the application can switch the initial mode of the circuit to be controlled to the control mode when the first touch signal generated by the first sensing element is detected, wherein the control mode is the controllable state of the circuit to be controlled; detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of a circuit to be controlled; if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence; and controlling the circuit to be controlled according to the target control signal. Therefore, the scheme can enable the circuit to be controlled to be switched to the control mode based on the first touch signal so as to unlock the second sensing assembly, enable the second sensing assembly to be touched, and further determine a target control signal according to the signal time sequence to control the circuit to be controlled when the second touch signal generated by the first sensing assembly and the third touch signal generated by the second sensing assembly are detected; therefore, the influence of the false touch on the circuit is effectively avoided, and the accuracy of power supply control is improved.
In order to better implement the above method, the embodiments of the present application further provide a circuit control apparatus, which may be integrated in a computer device such as a terminal.
For example, as shown in fig. 3, for a schematic structural diagram of a circuit control device provided in the embodiment of the present application, the circuit control device may include a switching unit 301, a detecting unit 302, a determining unit 303, and a control unit 304, which are specifically as follows:
the switching unit 301 is configured to switch an initial mode of the circuit to be controlled to a control mode if a first touch signal generated by the first sensing element is detected, where the control mode is a controllable state of the circuit to be controlled;
a detecting unit 302, configured to detect whether the first sensing element generates a second touch signal and detect whether the second sensing element generates a third touch signal based on a control mode of the circuit to be controlled;
a determining unit 303, configured to determine a signal timing sequence between a second touch signal and a third touch signal if a second touch signal generated by the first sensing element and a third touch signal generated by the second sensing element are detected, and determine a target control signal according to the signal timing sequence;
and a control unit 304 for controlling the circuit to be controlled according to the target control signal.
In some embodiments, the circuit control device further comprises a first obtaining unit configured to:
acquiring sensing duration of the first sensing assembly when generating a first touch signal, wherein the sensing duration is duration of touch of the first sensing assembly; if the sensing duration is detected to be in accordance with the preset effective duration range, determining the first touch signal as an effective signal;
the switching unit 302 is further configured to: and if the first touch signal is detected to be an effective signal, switching the initial mode of the circuit to be controlled to the control mode.
In some embodiments, the circuit control device further comprises a second acquisition unit for:
if the second touch signal and the third touch signal are both identified as effective signals, acquiring a generation time difference between the second touch signal and the third touch signal; comparing the generated time difference with a preset double-touch time threshold;
the determining unit 303 is further configured to: and if the generation time difference is detected to be smaller than or equal to the preset double-touch time threshold, determining the signal time sequence between the second touch signal and the third touch signal.
In some embodiments, the determining unit 303 is further configured to:
acquiring first generation time of a second touch signal and acquiring second generation time of a third touch signal; and determining the signal timing sequence between the second touch signal and the third touch signal according to the first generation time and the second generation time.
In some embodiments, the determining unit 303 is further configured to:
and if the signal timing is recognized to be that the first generation time of the second touch signal is earlier than the second generation time of the third touch signal, jointly generating a closing signal of the circuit to be controlled according to the second touch signal and the third touch signal, and determining the closing signal as a target control signal.
In some embodiments, the determining unit 303 is further configured to:
and if the signal timing sequence is identified to be that the first generation time of the second touch signal is later than the second generation time of the third touch signal, generating a starting signal of the circuit to be controlled according to the second touch signal and the third touch signal in a combined mode, and determining the starting signal as a target control signal.
In some embodiments, the circuit control device further comprises an identification unit for:
identifying a control attribute of the target control signal; detecting the working state of a circuit to be controlled, and acquiring the preset attribute to be controlled corresponding to the working state;
the control unit 304 is further configured to control the circuit to be controlled according to the target control signal if it is identified that the control attribute matches the preset attribute to be controlled.
In some embodiments, the circuit control device further comprises a second detection unit for:
detecting whether the working state of the circuit to be controlled is switched; if the switching of the working state of the circuit to be controlled is detected to be completed, detecting whether the circuit to be controlled generates a second target control signal, wherein the second target control signal is a control signal behind the target control signal;
the switching unit 301 is further configured to: and if the second target control signal is not detected, switching the current control mode of the circuit to be controlled to the initial mode.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the embodiment of the present application, when the switching unit 301 detects the first touch signal generated by the first sensing element, the initial mode of the circuit to be controlled is switched to the control mode, where the control mode is a controllable state of the circuit to be controlled; detecting whether the first sensing element generates a second touch signal and detecting whether the second sensing element generates a third touch signal based on a control mode of a circuit to be controlled by the detection unit 302; when detecting a second touch signal generated by the first sensing element and a third touch signal generated by the second sensing element, the determining unit 303 determines a signal timing sequence between the second touch signal and the third touch signal, and determines a target control signal according to the signal timing sequence; the circuit to be controlled is controlled by the control unit 304 according to the target control signal. Therefore, the scheme can enable the circuit to be controlled to be switched to the control mode based on the first touch signal so as to unlock the second sensing assembly, enable the second sensing assembly to be touched, and further determine a target control signal according to the signal time sequence to control the circuit to be controlled when the second touch signal generated by the first sensing assembly and the third touch signal generated by the second sensing assembly are detected; therefore, the influence of the false touch on the circuit is effectively avoided, and the accuracy of power supply control is improved.
An embodiment of the present application further provides a computer device, where the computer device may be a terminal or an intelligent circuit control device, and as shown in fig. 4, is a schematic structural diagram of the computer device provided in the present application. Specifically, the method comprises the following steps:
the computer device may include components such as a processing unit 401 of one or more processing cores, a storage unit 402 of one or more storage media, a power module 403, and an input module 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 4 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processing unit 401 is a control center of the computer device, connects various parts of the entire computer device by using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the storage unit 402 and calling data stored in the storage unit 402, thereby performing overall monitoring of the computer device. Optionally, the processing unit 401 may include one or more processing cores; preferably, the processing unit 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It is to be understood that the above-described modem processor may not be integrated into the processing unit 401.
The storage unit 402 may be used to store software programs and modules, and the processing unit 401 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 402. The storage unit 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, web page access, and the like), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the storage unit 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory unit 402 may also include a memory controller to provide the processing unit 401 access to the memory unit 402.
The computer device further comprises a power module 403 for supplying power to each component, and preferably, the power module 403 is logically connected to the processing unit 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power module 403 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any other components.
The computer device may also include an input module 404, the input module 404 operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processing unit 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the storage unit 402 according to the following instructions, and the processing unit 401 runs the application programs stored in the storage unit 402, so as to implement various functions as follows:
if a first touch signal generated by the first sensing assembly is detected, switching an initial mode of a circuit to be controlled to a control mode, wherein the control mode is a controllable state of the circuit to be controlled; detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of a circuit to be controlled; if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence; and controlling the circuit to be controlled according to the target control signal.
It should be noted that the computer device provided in the embodiment of the present application and the method in the foregoing embodiment belong to the same concept, and specific implementation of the above operations may refer to the foregoing embodiment, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention provide a computer-readable storage medium having stored therein a plurality of instructions, which can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
if a first touch signal generated by the first sensing assembly is detected, switching an initial mode of a circuit to be controlled to a control mode, wherein the control mode is a controllable state of the circuit to be controlled; detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of a circuit to be controlled; if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence; and controlling the circuit to be controlled according to the target control signal.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
According to an aspect of the application, there is provided, among other things, a computer program product or computer program comprising computer instructions stored in a storage medium. The processor of the computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various optional implementation modes of the circuit control method.
The circuit control method, the circuit control device and the computer-readable storage medium according to the embodiments of the present invention are described in detail, and the principles and embodiments of the present invention are described herein by using specific embodiments, and the description of the embodiments is only used to help understanding the method and the core concept of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A circuit control method is applied to equipment with a circuit to be controlled, wherein the circuit to be controlled comprises a first sensing component and a second sensing component, and the method comprises the following steps:
if a first touch signal generated by the first sensing assembly is detected, switching an initial mode of the circuit to be controlled to a control mode, wherein the control mode is a controllable state of the circuit to be controlled;
detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on a control mode of the circuit to be controlled;
if a second touch signal generated by the first sensing assembly and a third touch signal generated by the second sensing assembly are detected, determining a signal time sequence between the second touch signal and the third touch signal, and determining a target control signal according to the signal time sequence;
and controlling the circuit to be controlled according to the target control signal.
2. The method of claim 1, wherein before switching the initial mode of the circuit to be controlled to the control mode, further comprising:
acquiring sensing duration of the first sensing assembly when the first touch signal is generated, wherein the sensing duration is duration of the first sensing assembly being touched;
if the sensing duration is detected to accord with a preset effective duration range, determining the first touch signal as an effective signal;
then, the switching the initial mode of the circuit to be controlled to the control mode includes:
and if the first touch signal is detected to be an effective signal, switching the initial mode of the circuit to be controlled to a control mode.
3. The method of claim 1, wherein prior to determining the signal timing between the second touch signal and the third touch signal, further comprising:
if the second touch signal and the third touch signal are both identified as effective signals, acquiring a generation time difference between the second touch signal and the third touch signal;
comparing the generated time difference with a preset double-touch time threshold;
the determining the signal timing between the second touch signal and the third touch signal comprises:
and if the generation time difference is detected to be smaller than or equal to a preset double-touch time threshold, determining a signal timing sequence between the second touch signal and the third touch signal.
4. The method of claim 1 or 3, wherein the determining the signal timing between the second touch signal and the third touch signal comprises:
acquiring first generation time of the second touch signal and second generation time of the third touch signal;
and determining the signal timing sequence between the second touch signal and the third touch signal according to the first generation time and the second generation time.
5. The method of claim 1, wherein determining a target control signal based on the signal timing comprises:
and if the signal timing is recognized to be that the first generation time of the second touch signal is earlier than the second generation time of the third touch signal, jointly generating a closing signal of the circuit to be controlled according to the second touch signal and the third touch signal, and determining the closing signal as a target control signal.
6. The method of claim 1, wherein determining a target control signal based on the signal timing comprises:
and if the signal timing sequence is identified to be that the first generation time of the second touch signal is later than the second generation time of the third touch signal, jointly generating a starting signal of the circuit to be controlled according to the second touch signal and the third touch signal, and determining the starting signal as a target control signal.
7. The method of claim 1, wherein before controlling the circuit to be controlled according to the target control signal, the method further comprises:
identifying a control attribute of the target control signal;
detecting the working state of the circuit to be controlled, and acquiring the preset attribute to be controlled corresponding to the working state;
controlling the circuit to be controlled according to the target control signal comprises:
and if the control attribute is identified to be matched with the preset attribute to be controlled, controlling the circuit to be controlled according to the target control signal.
8. The method of claim 1, wherein after the controlling the circuit to be controlled according to the target control signal, the method further comprises:
detecting whether the working state of the circuit to be controlled is switched;
if the switching of the working state of the circuit to be controlled is detected to be completed, detecting whether the circuit to be controlled generates a second target control signal, wherein the second target control signal is a control signal behind the target control signal;
and if the second target control signal is not detected, switching the current control mode of the circuit to be controlled to the initial mode.
9. A circuit control device, comprising:
the switching unit is used for switching the initial mode of the circuit to be controlled to a control mode if a first touch signal generated by the first sensing assembly is detected, wherein the control mode is a controllable state of the circuit to be controlled;
the detection unit is used for detecting whether the first sensing assembly generates a second touch signal and detecting whether the second sensing assembly generates a third touch signal based on the control mode of the circuit to be controlled;
the determining unit is used for determining a signal time sequence between a second touch signal and a third touch signal if the second touch signal generated by the first sensing assembly and the third touch signal generated by the second sensing assembly are detected, and determining a target control signal according to the signal time sequence;
and the control unit is used for controlling the circuit to be controlled according to the target control signal.
10. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the circuit control method according to any one of claims 1 to 8.
CN202210059997.2A 2022-01-19 2022-01-19 Circuit control method, circuit control device and computer-readable storage medium Pending CN114415568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210059997.2A CN114415568A (en) 2022-01-19 2022-01-19 Circuit control method, circuit control device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210059997.2A CN114415568A (en) 2022-01-19 2022-01-19 Circuit control method, circuit control device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN114415568A true CN114415568A (en) 2022-04-29

Family

ID=81275184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210059997.2A Pending CN114415568A (en) 2022-01-19 2022-01-19 Circuit control method, circuit control device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114415568A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
US20170322245A1 (en) * 2015-12-31 2017-11-09 Shenzhen GOODIX Technology Co., Ltd. Capacitance sensing circuit
CN109669616A (en) * 2018-12-26 2019-04-23 努比亚技术有限公司 A kind of side screen interaction control method, equipment and computer readable storage medium
CN111091829A (en) * 2020-02-21 2020-05-01 珠海荣邦电子科技有限公司 Voice control method and device and electronic equipment
CN111166050A (en) * 2019-11-12 2020-05-19 广东工业大学 Electric lifting table control module based on touch interaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
US20170322245A1 (en) * 2015-12-31 2017-11-09 Shenzhen GOODIX Technology Co., Ltd. Capacitance sensing circuit
CN109669616A (en) * 2018-12-26 2019-04-23 努比亚技术有限公司 A kind of side screen interaction control method, equipment and computer readable storage medium
CN111166050A (en) * 2019-11-12 2020-05-19 广东工业大学 Electric lifting table control module based on touch interaction
CN111091829A (en) * 2020-02-21 2020-05-01 珠海荣邦电子科技有限公司 Voice control method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11036840B2 (en) Fingerprint recognition method and apparatus, and touchscreen terminal
US10275586B2 (en) Method for power management using fingerprint identification in mobile terminal and mobile terminal
CN102508591B (en) Prevention of accidental device activation
CN109976500B (en) Fingerprint identification device, mobile terminal and awakening method of fingerprint identification device
CN106886766B (en) A kind of fingerprint identification method, fingerprint recognition circuit and mobile terminal
US9965086B2 (en) Method for enabling function module of terminal, and terminal device
CN107395889A (en) Reduce method, apparatus, storage medium and the mobile terminal of mobile terminal power consumption
US20140189604A1 (en) Method and system for unlocking a touchscreen of an electronic device
CN105388992A (en) Fingerprint recognition method and apparatus and terminal
TWI711974B (en) Method and fingerprint sensing device with finger lost detection
CN108920397B (en) Device identification method and device, storage medium and electronic device
US11126442B2 (en) False-touch-wakeup prevention apparatus and method, intelligent terminal and computer storage medium
CN108664285A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN108399042B (en) Touch identification method, device and system
US10146370B2 (en) Touch panel device having state restoration function
US20190087381A1 (en) Method and apparatus for controlling serial peripheral interface of fingerprint sensor, and mobile terminal
CN107291302A (en) A kind of control method of touch-screen, device, storage medium and terminal
US10592023B2 (en) Touch display assembly, touch input unit and touch input method
CN111625174B (en) Touch screen control method and device, electronic equipment and storage medium
CN104184449A (en) Capacitive touch control apparatus, method, and system
CN114415568A (en) Circuit control method, circuit control device and computer-readable storage medium
US20160364066A1 (en) Information Processing Method and Electronic Device
CN106020673B (en) Control method and electronic equipment
CN107407996B (en) Suspension touch device and method
US10620727B2 (en) Information processing method and electronic device

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