WO2021109931A1 - Touch control method and wearable device - Google Patents

Touch control method and wearable device Download PDF

Info

Publication number
WO2021109931A1
WO2021109931A1 PCT/CN2020/132159 CN2020132159W WO2021109931A1 WO 2021109931 A1 WO2021109931 A1 WO 2021109931A1 CN 2020132159 W CN2020132159 W CN 2020132159W WO 2021109931 A1 WO2021109931 A1 WO 2021109931A1
Authority
WO
WIPO (PCT)
Prior art keywords
sensing electrode
touch
wearable device
touch input
pin
Prior art date
Application number
PCT/CN2020/132159
Other languages
French (fr)
Chinese (zh)
Inventor
余光钢
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021109931A1 publication Critical patent/WO2021109931A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/163Wearable computers, e.g. on a belt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K2217/00Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00
    • H03K2217/94Indexing scheme related to electronic switching or gating, i.e. not by contact-making or -breaking covered by H03K17/00 characterised by the way in which the control signal is generated
    • H03K2217/96Touch switches
    • H03K2217/9607Capacitive touch switches
    • H03K2217/960755Constructional details of capacitive touch and proximity switches

Definitions

  • This application relates to the field of communication technology, and in particular to a touch control method and wearable device.
  • wearable devices generally have a touch function.
  • the touch functions of the headphones generally include single click, double click, up and down, long press, etc., through these touch functions, some audio operations can be performed more conveniently.
  • the touch function is generally implemented by a capacitive touch technology solution.
  • the user often triggers the touch function unintentionally. Therefore, this capacitive touch technology solution has a high false touch rate.
  • the embodiments of the present application provide a touch control method and a wearable device, so as to solve the problem of high false touch rate of the touch function in the capacitive touch technology solution in the related art.
  • the embodiments of the present application provide a touch control method, which is applied to a wearable device.
  • the wearable device includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode ,
  • the method includes:
  • the first sensing electrode receives the first touch input and the at least one second sensing electrode receives a second touch input, responding to the second touch input;
  • the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input, rejecting a response operation to the second touch input.
  • an embodiment of the present application also provides a wearable device, the wearable device including:
  • the first sensing electrode and the first pin for serial communication, and at least one second sensing electrode, the wearable device further includes:
  • the disconnection module is used to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in a wearing state;
  • the response module is configured to perform the second touch input when the first sensing electrode receives the first touch input and the at least one second sensing electrode receives the second touch input Response operation
  • the first rejection module is configured to reject the first touch input when the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input. Two touch input for response operation.
  • an embodiment of the present application also provides a wearable device, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the computer program is processed by the processor. The steps of the touch control method are realized when the device is executed.
  • the embodiments of the present application also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the touch control method are implemented .
  • the touch detector By leading a pin of the touch detector in the wearable device to connect with the first sensing electrode for serial communication, the touch detector can be used to detect the change in the capacitance of the first sensing electrode to ground. Therefore, it is determined whether the first sensing electrode receives the first touch input, and the first sensing electrode can be used as a new capacitance sensor when the first sensing electrode is disconnected from the first pin of the serial port communication. It can be used to accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the false touch probability of the touch function of the wearable device. And improve the user's experience of using the touch function.
  • FIG. 1 is a flowchart of a touch control method according to an embodiment of the present application
  • Fig. 2 is a schematic side view of the shape of the earphone according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of the base of the earphone of the embodiment of FIG. 2;
  • Fig. 4 is a structural block diagram of a headset according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a touch control method according to another embodiment of the present application.
  • Fig. 6 is a block diagram of a wearable device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
  • the inventor found that the working principle of the capacitive touch technology solution is that when the distance between the external conductor and the sensing electrode changes, the capacitance of the sensing electrode to the ground will change, so the finger (I.e., the external conductor) the touch operation of the touch sensing electrode area will be detected. Even if the touch action is unintentional, the solution will still determine that the touch operation is a valid touch input, thereby triggering the operation corresponding to the touch input. Therefore, the inventor found that the use of the sensing electrode for the touch function may easily lead to the problem of false touches, resulting in a higher rate of false touches of the touch function.
  • the embodiment of the present application aims to determine whether the touch action received by the sensing electrode is intentional or unintentional, so that when it is determined that the touch action is unintentional, Refuse to respond to the touch action to reduce the false touch rate of the touch function.
  • FIG. 1 a flowchart of a touch control method according to an embodiment of the present application is shown, which is applied to a wearable device, and the wearable device includes a first sensing electrode and a first pin for serial port communication, And at least one second sensing electrode.
  • the wearable device may be a smart watch, or smart glasses (for example, AR (Augmented Reality) glasses), or a headset device.
  • smart glasses for example, AR (Augmented Reality) glasses
  • headset device for example, AR (Augmented Reality) glasses
  • the following description takes the wearable device as an earphone as an example for description.
  • the wearable device is a smart watch or smart glasses, the method is similar, and the following examples can be referred to, so it will not be repeated one by one.
  • FIG. 2 shows a schematic side view of the shape of the earphone
  • FIG. 3 shows a schematic diagram of the base 11 of the ear stem of FIG. 2.
  • Figure 2 shows five sensing electrodes (ie, a cap sensor). Among them, cap sensor 4# and cap sensor 5# are used to detect whether the earphone is in the wearing state; at least one second sensing electrode on the side wall of the ear stem includes cap sensor 1#, cap sensor 2#, and cap sensor 3# , The three second sensing electrodes can be used to implement touch operation functions such as single click, double click, long press, up and down, etc., to control audio.
  • touch operation functions such as single click, double click, long press, up and down, etc.
  • the headset base has 3 sensing electrodes (here, metal contact electrodes), which are the metal contact electrodes 21 of VBUS (USB voltage (5V)), and GND (power ground, 0 level).
  • UART Universal Asynchronous Receiver/Transmitter
  • the metal contact electrode 23 of UART_TX/RX can be reused as the cap sensor6# of the earphone.
  • FIG. 4 the circuit connection relationship between the various modules of the earphone in the above-mentioned embodiment of the present application is shown.
  • the headset may include a headset host terminal (ie, the Host in FIG. 4), a touch detector (ie, the TP sensor module in FIG. 4), and an analog switch module for serial communication (ie, the Analog Switch module in FIG. 4).
  • a headset host terminal ie, the Host in FIG. 4
  • a touch detector ie, the TP sensor module in FIG. 4
  • an analog switch module for serial communication ie, the Analog Switch module in FIG. 4
  • the five pins of the TP sensor module are respectively connected to cap sensor 1#, cap sensor 2# and cap sensor 3#, cap sensor 4#, and cap sensor 5# in Figure 2 above.
  • the two pins on the left side of the Analog Switch module are the UART_TX pin and the UART_RX pin, which are electrically connected to the host; there is a pin 24 on the right side of the Analog Switch module as shown in Figure 3.
  • the metal contact electrode 23 is electrically connected.
  • the Analog Switch module also has a Switch pin and an Enable pin, which are not shown.
  • the embodiment of the present application further leads to a pin 25 from the TP sensor module to be electrically connected to the metal contact electrode 23 in FIG. 3.
  • the host can set the Switch pin and Enable pin of the Analog Switch module to different states by controlling the power frequency input to the Analog Switch module.
  • the internal switch of the Analog Switch module for serial communication is in a closed or open state, so that the metal contact electrode 23 can communicate with the pin 25 of the TP sensor module, or the metal contact electrode 23 can communicate with the pin 25 of the Analog Switch module.
  • UART_TX pin and UART_RX pin are used for communication.
  • Step 101 When it is detected that the wearable device is in a wearing state, disconnect the connection between the first pin and the first sensing electrode;
  • the TP sensor module can detect whether the capacitance changes of cap sensor 4# and cap sensor 5# are both greater than the first preset threshold (for specific detection methods, refer to the judgment The following embodiments of whether the first sensing electrode receives the first touch input will not be repeated here.) If yes, it is determined that the headset is in the wearing state; the TP sensor module can report the information indicating that the headset is in the wearing state to the Host; then Host can change the power frequency sent to the Analog Switch module, so that the Switch pin of the Analog Switch module is set to high (for example, 1), and the Enable pin is set to high (for example, 1), that is, the two pins above The status is (1,1), so that the internal switch of the Analog Switch module is turned off, thereby disconnecting the UART_TX pin and UART_RX pin on the left side of Figure 4 (that is, the first step in this step).
  • the pin) is an electrical connection with the metal contact electrode 23 (that is, the
  • the headset does not include the TP sensor module
  • other methods can be used to detect whether the capacitance changes of cap sensor 4# and cap sensor 5# are both greater than the first preset threshold, so as to determine whether the headset is in the wearing state.
  • Analog Switch module an analog switch between the first pin of serial communication and the first sensing electrode of serial communication
  • the connection between the sensing electrodes is realized by the host controlling the electrical frequency of the Analog Switch module.
  • the disconnection between the first pin and the first sensing electrode can be realized by other methods. Open the connection.
  • the first pin that is, the UART_TX pin and the UART_RX pin are equivalent to being in a floating state.
  • step 102 it is determined whether the first sensing electrode receives the first touch input
  • the first sensing electrode here is a metal contact electrode 23.
  • the wearable device further includes a touch detector (that is, the TP sensor module of FIG. 4) connected to the first sensing electrode; as shown in FIG. 4, the tube of the TP sensor module The pin 25 is electrically connected to the metal contact electrode 23.
  • a touch detector that is, the TP sensor module of FIG. 4
  • the tube of the TP sensor module The pin 25 is electrically connected to the metal contact electrode 23.
  • the first driving signal may be sent to the first sensing electrode through the touch detector; the first driving signal corresponding to the first driving signal may be acquired through the touch detector.
  • the amount of change in the capacitance to ground of the first sensing electrode when the amount of change is greater than or equal to the preset threshold, it is determined that the first sensing electrode receives the first touch input; when the amount of change is less than According to the preset threshold, it is determined that the first sensing electrode has not received the first touch input.
  • the TP sensor module can charge the metal contact electrode 23 (that is, send the first driving signal to the metal contact electrode 23), and the user is connected to the earth, and the user acts as an external conductor when touching the earstalk base
  • the metal contact electrode 23 is used, part of the electricity can be absorbed; therefore, the TP sensor module can obtain the first capacitance of the metal contact electrode 23 when the metal contact electrode 23 is charged, and obtain the first capacitance of the metal contact electrode 23 after the user touches it.
  • the second capacitance of the metal contact electrode 23 is taken as the change in the capacitance to ground of the first sensing electrode corresponding to the first driving signal by obtaining the difference between the two capacitances the amount. Then, when the amount of change is greater than or equal to, for example, the second preset threshold, it can be determined that the metal contact electrode 23 has received the first touch input, on the contrary, the first touch input has not been received.
  • the touch detector in the wearable device is connected to the first sensing electrode for serial communication by leading out a pin, so that the touch detector can be used to detect the first sensing electrode.
  • the measuring electrode is used as a new capacitive sensor, so that it can accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the wearable device’s performance.
  • the false touch probability of the touch function and enhance the user's experience of using the touch function.
  • the TP sensor module can reuse the metal contact electrode 23 used for serial communication as the cap sensor 6# of the headset.
  • the touch detector is also electrically connected to the at least one second sensing electrode (that is, the cap sensor 1#, the cap sensor 2#, and the cap sensor 3# are connected).
  • Step 103 When the first sensing electrode receives the first touch input and the at least one second sensing electrode receives a second touch input, perform a response operation to the second touch input ;
  • the method for whether the first sensing electrode receives the first touch input is all based on It is determined by the amount of capacitance change to ground, so I won’t repeat them here.
  • the second sensing electrode here includes at least one of cap sensor 1#, cap sensor 2#, and cap sensor 3#.
  • cap sensor 1# receives the second touch input
  • the related technology alone determines whether the second touch input is received based on the capacitance change of cap sensor 1#. There is a problem of high false touch rate.
  • Step 104 In a case where the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input, refuse to perform the second touch input Respond to operation.
  • cap sensor 1#, cap sensor 2#, and cap sensor 3# receives the second touch input, but the metal contact electrode 23 does not receive the first touch input, that is, the user If only the touch area of the earstalk is touched, but the touch area where the metal contact electrode 23 of the earstalk base is not touched, the TP sensor module will not report the second touch input to the host for a response operation, and consider the second touch The touch event corresponding to the input is invalid.
  • the connection between the first sensing electrode and the first pin for serial communication is disconnected, so that the first sensing electrode It is not in the state of serial communication and the first pin is in the floating state, then by determining whether the first sensing electrode receives the first touch input, it is determined that the first sensing electrode has received the first touch input, and at least one first The second sensing electrode will respond to the second touch input only when it receives the second touch input; while the first sensing electrode does not receive the first touch input, and at least one second sensing electrode receives In the case of the second touch input, the response operation to the second touch input is rejected, which reduces the false touch rate of the touch function of the touch input to the second sensing electrode.
  • the embodiment of the application detects whether the wearable device is in the wearing state, and in the wearing state, sets the UART_TX pin and the UART_RX pin to a floating state; then, the TP sensor module corresponds to the UART_TX pin and the UART_RX pin.
  • the metal contact electrode is charged.
  • the TP sensor module detects the change of the capacitance to ground before and after the finger touches the metal contact electrode.
  • the amount of change is greater than or equal to the preset threshold, it is determined that the metal contact electrode used for serial communication is touched.
  • the embodiment of the present application reuses the metal contacts on the earphone base to detect whether there is a touch behavior.
  • the metal contacts on the base that is, the first sense
  • the second sensing electrode of the earstalk also detects a touch event
  • the touch event will be reported to the host.
  • the first sensing electrode on the base does not detect a valid touch event.
  • the detected touch event of the second sensing electrode is not reported, thereby reducing the false touch rate of the earphone touch function and improving the user's experience of using the earphone touch function.
  • FIG. 5 a flowchart of a touch control method according to another embodiment of the present application is also shown.
  • the method is applied to a wearable device.
  • the wearable device includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode; the wearable device also includes a communication with the first sensing electrode.
  • the method includes the following steps:
  • Step 201 In the case that it is detected that the wearable device is not in a wearing state, establish a connection between the first pin and the first sensing electrode, and connect the first pin to the first sensing electrode.
  • the second pin of the touch detector is set to a high impedance state;
  • the TP sensor module (ie touch detector) can detect whether the capacitance changes of cap sensor 4# and cap sensor 5# are both greater than the first preset threshold (specific detection).
  • the method can refer to the above-mentioned embodiment of determining whether the first sensing electrode receives the first touch input, which will not be repeated here.), if not, determine that the headset is not in a wearing state;
  • the TP sensor module can report the information that the headset is not in the wearing state to the Host; then the Host can change the electrical frequency sent to the Analog Switch module, so that the Switch pin of the Analog Switch module is set to low (for example, 0), and the Enable tube Set the pin to low (for example, 0), that is, the state of the above two pins is (0,0), so that the internal switch of the Analog Switch module is connected, so that the UART_TX pin on the left side of Figure 4 (that is, The first pin in this step) is electrically connected to the metal contact electrode 23 (that is, the first sensing electrode in this step), and the UART_RX pin (also the first pin in this step) and The metal contact electrodes 23 (that is, the first sensing electrode in this step) are electrically connected.
  • the UART_TX pin and the UART_RX pin and the metal contact electrode 23 are restored to the connection relationship before the disconnection operation of step 101.
  • the electrical connection relationship between the UART_TX pin, the UART_RX pin and the metal contact electrode 23 may include three states, for example, state 1: the UART_TX pin and the metal contact electrode 23 Electrical connection between the UART_RX pin and the metal contact electrode 23 is disconnected, that is, only the serial port is used to send data; for example, state 2: the UART_TX pin is disconnected from the metal contact electrode 23, and the UART_RX pin is disconnected from the metal contact electrode 23.
  • the point electrodes 23 are electrically connected, that is, only the serial port is used to receive data; state 3: the UART_TX pin is electrically connected to the metal contact electrode 23, and the UART_RX pin is electrically connected to the metal contact electrode 23, that is, only Use the serial port to send data and receive data.
  • the first pin in this step may be at least one of the UART_TX pin and the UART_RX pin. Therefore, the connection relationship between the UART_TX pin and the UART_RX pin established in step 201 and the metal contact electrode 23 can be any one of the three states listed above. For example, it is restored to one of the above three states that it was in before step 101 was executed.
  • the TP sensor module can also connect its second pin connected to the first sensing electrode (ie, the metal contact electrode 23) (ie, in Figure 4).
  • the pin 25 is set to a high-impedance state, so as not to affect the normal data communication of the UART serial port.
  • the second pin is a pin of the TP sensor module that establishes a connection with the first sensing electrode.
  • the step of establishing the connection between the first pin and the first sensing electrode is connected to the second tube of the touch detector connected to the first sensing electrode.
  • the execution sequence between the steps of setting the feet to the high impedance state is not limited, and they are all executed when it is detected that the wearable device is not in the wearing state.
  • the first pin and the first sensing electrode are established as described above.
  • the steps between the connections are performed before. In this way, it can be ensured in time that when the serial port communication function is used, the first sensing electrode is not interfered by the touch detector.
  • the connection between the first pin and the first sensing electrode is established, and the connection between the first pin and the first sensing electrode is established.
  • the second pin of the touch detector connected to the electrode is set to a high-impedance state, which can not only reduce the false touch rate of triggering the touch function of the second sensing electrode without using the first sensing electrode, but also
  • the first sensing electrode can be restored to the state of serial communication, realizing flexible switching of different functions of the first sensing electrode; moreover, by setting the second pin connected to the first sensing electrode to a high impedance state Therefore, it is possible to reduce the interference to the data transfer when the first sensing electrode is used for serial communication to transfer data.
  • the high-impedance state is a common term in digital circuits. It refers to an output state of the circuit, which is neither high nor low. If the high-impedance state is input to the next level circuit, there is nothing to the next level circuit. The impact is the same as if it is not connected. If it is measured with a multimeter, it may be high or low, depending on what is connected behind it.
  • the high impedance state (English: High impedance) means that a node in the circuit has a relatively higher impedance than other points in the circuit. This concept is involved in tri-state logic and pull-up resistors.
  • the method according to the embodiment of the present application may further include:
  • Step 202 When the at least one second sensing electrode receives the second touch input, refuse to respond to the second touch input.
  • At least one second sensing electrode for example, at least one capacitive sensor of cap sensor 1#, cap sensor 2#, and cap sensor 3# receives the second touch input, Then the TP sensor module may not report the second touch input to the host to achieve the purpose of refusing to respond to the second touch input.
  • the wearable device when the wearable device is not in the wearing state, by establishing a connection between the first pin and the first sensing electrode, and connecting with the first sensing electrode
  • the second pin of the touch detector is set to a high-impedance state, which can not only reduce the false touch rate triggered by the touch function of the second sensing electrode without using the first sensing electrode, but also
  • the first sensing electrode returns to the state of serial communication, realizing flexible switching of different functions of the first sensing electrode; moreover, by setting the second pin connected to the first sensing electrode to a high impedance state, It can reduce the interference of data transmission when the first sensing electrode is used for serial communication to transmit data.
  • the embodiment of the present application also rejects the response operation to the second touch input received by the at least one second sensing electrode, so that all touch events detected in this case are regarded as invalid operations.
  • the probability of false touches of the touch function of the wearable device is reduced, and the user experience of using the touch function is improved.
  • the Host when the Host interacts with the TP sensor module, the Host can control the work of the TP sensor module through INT (interrupt signal); in addition, the TP sensor module can also send I2C (heartbeat commands) to Host, to make the Host know that the TP sensor module is alive.
  • INT interrupt signal
  • I2C heartbeat commands
  • FIG. 6 a block diagram of a wearable device according to an embodiment of the present application is shown.
  • the wearable device of the embodiment of the present application can implement the details of the touch control method in the foregoing embodiment and achieve the same effect.
  • the wearable device shown in Figure 6 includes:
  • the first sensing electrode and the first pin for serial communication, and at least one second sensing electrode, the wearable device further includes:
  • the disconnection module 301 is configured to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in a wearing state;
  • the wearable device further includes: a determining module 302, configured to determine whether the first sensing electrode receives a first touch input;
  • the response module 303 is configured to input the second touch when the first sensing electrode receives the first touch input and the at least one second sensing electrode receives the second touch input Perform response operations;
  • the first rejection module 304 is configured to reject the response to the first touch input when the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives the second touch input.
  • the second touch input performs a response operation.
  • the wearable device further includes a touch detector connected to the first sensing electrode;
  • the judgment module 302 includes:
  • a sending sub-module configured to send a first driving signal to the first sensing electrode through the touch detector
  • An acquiring sub-module configured to acquire, through the touch detector, the amount of change in the capacitance to ground of the first sensing electrode corresponding to the first driving signal
  • the first determining sub-module is configured to determine that the first sensing electrode receives a first touch input when the amount of change is greater than or equal to a preset threshold;
  • the second determining sub-module is configured to determine that the first sensing electrode does not receive the first touch input when the amount of change is less than the preset threshold.
  • the wearable device further includes a touch detector connected to the first sensing electrode, and further, the wearable device further includes:
  • connection module is used to establish a connection between the first pin and the first sensing electrode when it is detected that the wearable device is not in the wearing state, and connect it to the first sensing electrode
  • the connected second pin of the touch detector is set to a high impedance state.
  • the wearable device further includes:
  • the second rejection module is configured to reject a response operation to the second touch input when the at least one second sensing electrode receives the second touch input.
  • the wearable device provided in the embodiment of the present application can implement the various processes implemented by the wearable device in the foregoing method embodiment, and in order to avoid repetition, details are not described herein again.
  • the wearable device is connected to the first sensing electrode for serial communication through the above-mentioned module by leading the touch detector in the wearable device to a pin, so that the pair of the first sensing electrode can be detected by the touch detector.
  • the first sensing electrode can be disconnected from the first pin of the serial port communication.
  • the electrode is used as a new capacitive sensor, which can accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the touch of the wearable device The false touch probability of the function, and enhance the user's experience of using the touch function.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements each embodiment of the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and Power supply 411 and other components.
  • the electronic device also includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode; the electronic device also includes a communication with the first sensing electrode and the at least one second sensing electrode.
  • the touch detector connected to the sensing electrode in addition, the touch detector is connected to the first sensing electrode through the second pin.
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 410 is configured to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in the wearing state; When the first touch input is received and the second touch input is received by the at least one second sensing electrode, a response operation to the second touch input is performed; when the first sensing electrode does not receive In the case of the first touch input and the second touch input is received by the at least one second sensing electrode, refusing to respond to the second touch input.
  • a pin of the touch detector in the electronic device is connected to the first sensing electrode for serial communication, so that the touch detector can be used to detect the first sensing electrode.
  • the measuring electrode is used as a new capacitive sensor, so that it can accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the wearable device’s performance.
  • the false touch probability of the touch function and enhance the user's experience of using the touch function.
  • the radio frequency unit 401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 410; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 403 may convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic device 400 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 404 is used to receive audio or video signals.
  • the input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042.
  • the graphics processor 4041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 406.
  • the image frame processed by the graphics processor 4041 may be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402.
  • the microphone 4042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode for output.
  • the electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 4061 and the display panel 4061 when the electronic device 400 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 406 is used to display information input by the user or information provided to the user.
  • the display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 407 can be used to receive input digital or character information, and generate key signal inputs related to user settings and function control of the electronic device.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072.
  • the touch panel 4071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 4071 or near the touch panel 4071. operating).
  • the touch panel 4071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 410, the command sent by the processor 410 is received and executed.
  • the touch panel 4071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 407 may also include other input devices 4072.
  • other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 4071 can cover the display panel 4061.
  • the touch panel 4071 detects a touch operation on or near it, it transmits it to the processor 410 to determine the type of the touch event, and then the processor 410 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 4061.
  • the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 408 is an interface for connecting an external device and the electronic device 400.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 400 or can be used to connect the electronic device 400 to an external device. Transfer data between devices.
  • the memory 409 can be used to store software programs and various data.
  • the memory 409 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 410 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 409, and calls the data stored in the memory 409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
  • the electronic device 400 may also include a power source 411 (such as a battery) for supplying power to various components.
  • a power source 411 such as a battery
  • the power source 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 400 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device, including a processor 410, a memory 409, and a computer program stored on the memory 409 and running on the processor 410.
  • an electronic device including a processor 410, a memory 409, and a computer program stored on the memory 409 and running on the processor 410.
  • the computer program is executed by the processor 410,
  • Each process of the above-mentioned touch control method embodiment is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not described herein again.
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the above-mentioned touch control method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Electronic Switches (AREA)

Abstract

Provided in the present application are a touch control method and a wearable device. The wearable device includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode, the method includes: when the wearable device is detected being in a wearing state, disconnecting the connection between the first pin and the first sensing electrode; when the first sensing electrode receives the first touch input and the at least one second sensing electrode receives the second touch input, operate to respond to the second touch input; when the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives the second touch input, refuse to operate in respond to the second touch input.

Description

触摸控制方法及穿戴设备Touch control method and wearable device
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年12月04日在中国提交的中国专利申请号201911230232.5的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911230232.5 filed in China on December 4, 2019, and the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种触摸控制方法及穿戴设备。This application relates to the field of communication technology, and in particular to a touch control method and wearable device.
背景技术Background technique
目前,穿戴设备普遍具有触控功能。例如智能耳机,耳机的触控功能一般包括单击、双击、上下滑、长按等,通过这些触控功能,可以更加便捷地进行一些音频操作。Currently, wearable devices generally have a touch function. For example, smart headphones, the touch functions of the headphones generally include single click, double click, up and down, long press, etc., through these touch functions, some audio operations can be performed more conveniently.
而触控功能普遍采用电容式触控技术方案来实现,那么在实际应用中,用户往往会无意地触发该触控功能,因此,这种电容式触控技术方案的误触率较高。The touch function is generally implemented by a capacitive touch technology solution. In practical applications, the user often triggers the touch function unintentionally. Therefore, this capacitive touch technology solution has a high false touch rate.
发明内容Summary of the invention
本申请实施例提供一种触摸控制方法及穿戴设备,以解决相关技术中电容式触控技术方案所存在的触控功能误触率较高的问题。The embodiments of the present application provide a touch control method and a wearable device, so as to solve the problem of high false touch rate of the touch function in the capacitive touch technology solution in the related art.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种触摸控制方法,应用于穿戴设备,所述穿戴设备包括用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极,所述方法包括:In the first aspect, the embodiments of the present application provide a touch control method, which is applied to a wearable device. The wearable device includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode , The method includes:
在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;When it is detected that the wearable device is in a wearing state, disconnect the connection between the first pin and the first sensing electrode;
在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;In a case where the first sensing electrode receives the first touch input and the at least one second sensing electrode receives a second touch input, responding to the second touch input;
在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收 到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。In a case where the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input, rejecting a response operation to the second touch input.
第二方面,本申请实施例还提供了一种穿戴设备,所述穿戴设备包括:In the second aspect, an embodiment of the present application also provides a wearable device, the wearable device including:
用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极,所述穿戴设备还包括:The first sensing electrode and the first pin for serial communication, and at least one second sensing electrode, the wearable device further includes:
断开模块,用于在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;The disconnection module is used to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in a wearing state;
响应模块,用于在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;The response module is configured to perform the second touch input when the first sensing electrode receives the first touch input and the at least one second sensing electrode receives the second touch input Response operation
第一拒绝模块,用于在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。The first rejection module is configured to reject the first touch input when the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input. Two touch input for response operation.
第三方面,本申请实施例还提供了一种穿戴设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的触摸控制方法的步骤。In a third aspect, an embodiment of the present application also provides a wearable device, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the computer program is processed by the processor. The steps of the touch control method are realized when the device is executed.
第四方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述的触摸控制方法的步骤。In a fourth aspect, the embodiments of the present application also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the touch control method are implemented .
通过将穿戴设备中的触摸检测器引出一个管脚来与用于串口通信的第一感测电极连接,从而可以通过该触摸检测器来检测该第一感测电极的对地电容的变化量,从而确定该第一感测电极是否接收到第一触摸输入,能够在第一感测电极与串口通信的第一管脚断开连接的情况下,将该第一感测电极作为新的电容传感器来使用,从而能够基于该第一感测电极是否接收到第一触摸输入来准确判断第二感测电极接收到的第二触摸输入是否有效,从而降低了穿戴设备的触摸功能的误触概率,并提升了用户使用触摸功能的体验。By leading a pin of the touch detector in the wearable device to connect with the first sensing electrode for serial communication, the touch detector can be used to detect the change in the capacitance of the first sensing electrode to ground. Therefore, it is determined whether the first sensing electrode receives the first touch input, and the first sensing electrode can be used as a new capacitance sensor when the first sensing electrode is disconnected from the first pin of the serial port communication. It can be used to accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the false touch probability of the touch function of the wearable device. And improve the user's experience of using the touch function.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请一个实施例的触摸控制方法的流程图;FIG. 1 is a flowchart of a touch control method according to an embodiment of the present application;
图2是本申请一个实施例的耳机外形的侧面示意图;Fig. 2 is a schematic side view of the shape of the earphone according to an embodiment of the present application;
图3是图2实施例的耳机的底座的示意图;3 is a schematic diagram of the base of the earphone of the embodiment of FIG. 2;
图4是本申请一个实施例的耳机的结构框图;Fig. 4 is a structural block diagram of a headset according to an embodiment of the present application;
图5是本申请另一个实施例的触摸控制方法的流程图;FIG. 5 is a flowchart of a touch control method according to another embodiment of the present application;
图6是本申请一个实施例的穿戴设备的框图;Fig. 6 is a block diagram of a wearable device according to an embodiment of the present application;
图7是本申请一个实施例的电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
发明人在实现本申请的过程中发现,电容式触控技术方案的工作原理为当外部导体与感测电极之间的距离发生变化时,会引起感测电极对地电容量的变化,所以手指(即外部导体)触摸感测电极区域的触控操作就会被检测到。即便该触摸动作是无意的,该方案依然会判断该触控操作为一次有效的触摸输入,从而触发与该触摸输入对应的操作。因此,发明人发现使用感测电极做触控功能容易带来误触的问题,从而导致触控功能误触率较高。In the process of realizing the present application, the inventor found that the working principle of the capacitive touch technology solution is that when the distance between the external conductor and the sensing electrode changes, the capacitance of the sensing electrode to the ground will change, so the finger (I.e., the external conductor) the touch operation of the touch sensing electrode area will be detected. Even if the touch action is unintentional, the solution will still determine that the touch operation is a valid touch input, thereby triggering the operation corresponding to the touch input. Therefore, the inventor found that the use of the sensing electrode for the touch function may easily lead to the problem of false touches, resulting in a higher rate of false touches of the touch function.
那么为了解决上述技术问题,更好地实现穿戴设备的触摸功能,本申请实施例旨在判断感测电极所接收到的触摸动作是有意的还是无意的,从而在确定是无意的触摸动作时,拒绝对该触摸动作进行响应,降低触控功能的误触率。In order to solve the above technical problems and better realize the touch function of the wearable device, the embodiment of the present application aims to determine whether the touch action received by the sensing electrode is intentional or unintentional, so that when it is determined that the touch action is unintentional, Refuse to respond to the touch action to reduce the false touch rate of the touch function.
具体而言,参照图1,示出了本申请一个实施例的触摸控制方法的流程图,应用于穿戴设备,所述穿戴设备包括用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极。Specifically, referring to FIG. 1, a flowchart of a touch control method according to an embodiment of the present application is shown, which is applied to a wearable device, and the wearable device includes a first sensing electrode and a first pin for serial port communication, And at least one second sensing electrode.
该穿戴设备可以是智能手表,或者,智能眼镜(例如AR(Augmented Reality,增强现实)眼镜),或者耳机设备。The wearable device may be a smart watch, or smart glasses (for example, AR (Augmented Reality) glasses), or a headset device.
后文以该穿戴设备为耳机为例进行说明,当该穿戴设备为智能手表或智能眼镜时,方法类似,参照下述实例即可,所以不再一一赘述。The following description takes the wearable device as an earphone as an example for description. When the wearable device is a smart watch or smart glasses, the method is similar, and the following examples can be referred to, so it will not be repeated one by one.
在一个示例中,图2示出了耳机外形的侧面示意图;图3示出了图2的耳柄的底座11的示意图。In an example, FIG. 2 shows a schematic side view of the shape of the earphone; FIG. 3 shows a schematic diagram of the base 11 of the ear stem of FIG. 2.
图2示出了5个感测电极(即电容传感器,cap sensor)。其中,cap sensor 4#和cap sensor 5#用于实现耳机是否处于佩戴状态的检测功能;耳柄侧壁的至少一个第二感测电极包括cap sensor 1#、cap sensor 2#和cap sensor 3#,这三个第二感测电极可以用于实现单击、双击、长按、上下滑等触摸操作功能,以用于控制音频。Figure 2 shows five sensing electrodes (ie, a cap sensor). Among them, cap sensor 4# and cap sensor 5# are used to detect whether the earphone is in the wearing state; at least one second sensing electrode on the side wall of the ear stem includes cap sensor 1#, cap sensor 2#, and cap sensor 3# , The three second sensing electrodes can be used to implement touch operation functions such as single click, double click, long press, up and down, etc., to control audio.
如图3所示,耳机底座有3个感测电极(这里为金属触点电极),分别为VBUS(USB电压(5V))的金属触点电极21、GND(电源地,0电平)的金属触点电极22,其中,金属触点电极21和金属触点电极22用于耳机充电;此外,该底座还包括用于串口通信的金属触点电极23(即上述用于串口通信的第一感测电极),这里金属触点电极23为UART(通用异步收发传输器,Universal Asynchronous Receiver/Transmitter))_TX(发送,transport)/RX(接收,receive)的金属触点电极。该金属触点电极23用于UART通信时,可以用于传递数据来升级耳机系统或者分析问题等。As shown in Figure 3, the headset base has 3 sensing electrodes (here, metal contact electrodes), which are the metal contact electrodes 21 of VBUS (USB voltage (5V)), and GND (power ground, 0 level). The metal contact electrode 22, wherein the metal contact electrode 21 and the metal contact electrode 22 are used for earphone charging; in addition, the base also includes the metal contact electrode 23 for serial communication (that is, the first Sensing electrode), where the metal contact electrode 23 is a metal contact electrode of UART (Universal Asynchronous Receiver/Transmitter)_TX (transport)/RX (receive). When the metal contact electrode 23 is used for UART communication, it can be used to transfer data to upgrade the earphone system or analyze problems.
在本申请实施例中,可以复用UART_TX/RX的金属触点电极23作为耳机的cap sensor6#。In the embodiment of the present application, the metal contact electrode 23 of UART_TX/RX can be reused as the cap sensor6# of the earphone.
继续参照图4示出了本申请上述实施例的耳机的各个模块之间的电路连接关系。Continuing to refer to FIG. 4, the circuit connection relationship between the various modules of the earphone in the above-mentioned embodiment of the present application is shown.
该耳机可以包括耳机主机端(即图4的Host)、触摸检测器(即图4的TP sensor模块)、串口通信的模拟开关模块(即图4的Analog Switch模块)。The headset may include a headset host terminal (ie, the Host in FIG. 4), a touch detector (ie, the TP sensor module in FIG. 4), and an analog switch module for serial communication (ie, the Analog Switch module in FIG. 4).
如图4所示,TP sensor模块的5个管脚分别与上述图2中的cap sensor 1#、cap sensor 2#和cap sensor 3#、cap sensor 4#、cap sensor 5#连接。As shown in Figure 4, the five pins of the TP sensor module are respectively connected to cap sensor 1#, cap sensor 2# and cap sensor 3#, cap sensor 4#, and cap sensor 5# in Figure 2 above.
在图4中,Analog Switch模块的左侧的两个管脚分别为UART_TX管脚、UART_RX管脚,这两个管脚与主机电连接;Analog Switch模块的右侧有一个管脚24与图3中的金属触点电极23电连接。此外,Analog Switch模块内部还具有未示出的Switch管脚和Enable管脚。In Figure 4, the two pins on the left side of the Analog Switch module are the UART_TX pin and the UART_RX pin, which are electrically connected to the host; there is a pin 24 on the right side of the Analog Switch module as shown in Figure 3. The metal contact electrode 23 is electrically connected. In addition, the Analog Switch module also has a Switch pin and an Enable pin, which are not shown.
另外,如图4所示,本申请实施例从TP sensor模块中还引出一个管脚25来与图3中的金属触点电极23电连接。In addition, as shown in FIG. 4, the embodiment of the present application further leads to a pin 25 from the TP sensor module to be electrically connected to the metal contact electrode 23 in FIG. 3.
主机通过控制输入Analog Switch模块的电频高低,可以使得Analog Switch模块的Switch管脚和Enable管脚置于不同的状态。从而使得Analog Switch模块的用于串口通信的内部开关处于闭合或断开状态,进而使得金属触点电极23能够与TP sensor模块的管脚25通信,或者,金属触点电极23与Analog Switch模块的UART_TX管脚、UART_RX管脚进行通信。The host can set the Switch pin and Enable pin of the Analog Switch module to different states by controlling the power frequency input to the Analog Switch module. As a result, the internal switch of the Analog Switch module for serial communication is in a closed or open state, so that the metal contact electrode 23 can communicate with the pin 25 of the TP sensor module, or the metal contact electrode 23 can communicate with the pin 25 of the Analog Switch module. UART_TX pin and UART_RX pin are used for communication.
基于上述图2~图4,来对本申请实施例所述的流程进行详细阐述,该流程包括如下步骤:Based on the foregoing Figures 2 to 4, the process described in the embodiment of the present application is described in detail, and the process includes the following steps:
步骤101,在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;Step 101: When it is detected that the wearable device is in a wearing state, disconnect the connection between the first pin and the first sensing electrode;
在一个示例中,如图2和图4所示,TP sensor模块可以通过检测cap sensor 4#、cap sensor 5#的电容变化量是否都大于第一预设阈值(具体检测方法可以参照判断所述第一感测电极是否接收到第一触摸输入的下述实施例,这里不再赘述。),若是,则确定耳机处于佩戴状态;TP sensor模块可以将表示耳机处于佩戴状态的信息上报Host;然后Host就可以改变发送至Analog Switch模块的电频,使得Analog Switch模块的Switch管脚置为高(例如为1),以及Enable管脚置为高(例如为1),即上述两个管脚的状态为(1,1),从而使得Analog Switch模块的内部切换开关被断开,从而断开图4左侧的UART_TX管脚、UART_RX管脚这两个管脚(即为本步骤中的第一管脚),与金属触点电极23(即本步骤中的第一感测电极)之间的电连接。In an example, as shown in Figures 2 and 4, the TP sensor module can detect whether the capacitance changes of cap sensor 4# and cap sensor 5# are both greater than the first preset threshold (for specific detection methods, refer to the judgment The following embodiments of whether the first sensing electrode receives the first touch input will not be repeated here.) If yes, it is determined that the headset is in the wearing state; the TP sensor module can report the information indicating that the headset is in the wearing state to the Host; then Host can change the power frequency sent to the Analog Switch module, so that the Switch pin of the Analog Switch module is set to high (for example, 1), and the Enable pin is set to high (for example, 1), that is, the two pins above The status is (1,1), so that the internal switch of the Analog Switch module is turned off, thereby disconnecting the UART_TX pin and UART_RX pin on the left side of Figure 4 (that is, the first step in this step). The pin) is an electrical connection with the metal contact electrode 23 (that is, the first sensing electrode in this step).
当然,当该耳机不包括TP sensor模块时,则可以通过其他方式来检测cap sensor 4#、cap sensor 5#的电容变化量是否都大于第一预设阈值,从而确定耳机是否处于佩戴状态。Of course, when the headset does not include the TP sensor module, other methods can be used to detect whether the capacitance changes of cap sensor 4# and cap sensor 5# are both greater than the first preset threshold, so as to determine whether the headset is in the wearing state.
此外,由于本示例中,串口通信的第一管脚与串口通信的第一感测电极之间存在模拟开关(即Analog Switch模块),因此,为了断开所述第一管脚与所述第一感测电极之间的连接,通过主机控制该Analog Switch模块的电频的方式来实现。在其他实施例中,当串口通信的第一管脚与串口通信的第一感测电极之间不存在模拟开关时,则可以通过其他方式 来实现第一管脚与第一感测电极之间断开连接。In addition, since in this example, there is an analog switch (ie Analog Switch module) between the first pin of serial communication and the first sensing electrode of serial communication, therefore, in order to disconnect the first pin from the first sensing electrode, The connection between the sensing electrodes is realized by the host controlling the electrical frequency of the Analog Switch module. In other embodiments, when there is no analog switch between the first pin of serial communication and the first sensing electrode of serial communication, the disconnection between the first pin and the first sensing electrode can be realized by other methods. Open the connection.
可以理解的是,经过步骤101,第一管脚(即UART_TX管脚和UART_RX管脚相当于处于悬空状态)。It can be understood that, after step 101, the first pin (that is, the UART_TX pin and the UART_RX pin are equivalent to being in a floating state).
可选地,步骤102,判断所述第一感测电极是否接收到第一触摸输入;Optionally, in step 102, it is determined whether the first sensing electrode receives the first touch input;
如图4所示,这里的第一感测电极为金属触点电极23。As shown in FIG. 4, the first sensing electrode here is a metal contact electrode 23.
可选地,在一个实施例中,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器(即图4的TP sensor模块);如图4所示,TP sensor模块的管脚25与金属触点电极23电连接。Optionally, in one embodiment, the wearable device further includes a touch detector (that is, the TP sensor module of FIG. 4) connected to the first sensing electrode; as shown in FIG. 4, the tube of the TP sensor module The pin 25 is electrically connected to the metal contact electrode 23.
那么在本实施例中,在执行步骤102时,可以通过所述触摸检测器将第一驱动信号发送至所述第一感测电极;通过所述触摸检测器获取与所述第一驱动信号对应的所述第一感测电极的对地电容的变化量;当所述变化量大于或等于预设阈值,则确定所述第一感测电极接收到第一触摸输入;当所述变化量小于所述预设阈值,则确定所述第一感测电极未接收到第一触摸输入。Then, in this embodiment, when step 102 is performed, the first driving signal may be sent to the first sensing electrode through the touch detector; the first driving signal corresponding to the first driving signal may be acquired through the touch detector. The amount of change in the capacitance to ground of the first sensing electrode; when the amount of change is greater than or equal to the preset threshold, it is determined that the first sensing electrode receives the first touch input; when the amount of change is less than According to the preset threshold, it is determined that the first sensing electrode has not received the first touch input.
如图4所示,TP sensor模块可以对金属触点电极23进行充电(即发送第一驱动信号至该金属触点电极23),而用户与大地连接,用户作为外部导体当触摸了耳柄底座的金属触点电极23时,则可以吸走部分电量;因此,TP sensor模块可以获取对对金属触点电极23进行充电时,金属触点电极23的第一电容量,以及获取经过用户触摸之后的该金属触点电极23的第二电容量,通过获取这两个电容量之间的差值,来作为与所述第一驱动信号对应的所述第一感测电极的对地电容的变化量。那么当该变化量大于或等于例如第二预设阈值,则可以确定该金属触点电极23接收到第一触摸输入,相反,则未收到第一触摸输入。As shown in Figure 4, the TP sensor module can charge the metal contact electrode 23 (that is, send the first driving signal to the metal contact electrode 23), and the user is connected to the earth, and the user acts as an external conductor when touching the earstalk base When the metal contact electrode 23 is used, part of the electricity can be absorbed; therefore, the TP sensor module can obtain the first capacitance of the metal contact electrode 23 when the metal contact electrode 23 is charged, and obtain the first capacitance of the metal contact electrode 23 after the user touches it. The second capacitance of the metal contact electrode 23 is taken as the change in the capacitance to ground of the first sensing electrode corresponding to the first driving signal by obtaining the difference between the two capacitances the amount. Then, when the amount of change is greater than or equal to, for example, the second preset threshold, it can be determined that the metal contact electrode 23 has received the first touch input, on the contrary, the first touch input has not been received.
在本申请实施例中,通过将穿戴设备中的触摸检测器引出一个管脚来与用于串口通信的第一感测电极连接,从而可以通过该触摸检测器来检测该第一感测电极的对地电容的变化量,从而确定该第一感测电极是否接收到第一触摸输入,能够在第一感测电极与串口通信的第一管脚断开连接的情况下,将该第一感测电极作为新的电容传感器来使用,从而能够基于该第一感测电极是否接收到第一触摸输入来准确判断第二感测电极接收到的第二 触摸输入是否有效,从而降低了穿戴设备的触摸功能的误触概率,并提升了用户使用触摸功能的体验。In the embodiment of the present application, the touch detector in the wearable device is connected to the first sensing electrode for serial communication by leading out a pin, so that the touch detector can be used to detect the first sensing electrode. The amount of change in the capacitance to ground to determine whether the first sensing electrode receives the first touch input, and the first sensing electrode can be disconnected from the first pin of the serial port communication when the first sensing electrode is disconnected. The measuring electrode is used as a new capacitive sensor, so that it can accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the wearable device’s performance. The false touch probability of the touch function, and enhance the user's experience of using the touch function.
在本实施例中,TP sensor模块可以复用用于串口通信的金属触点电极23来作为耳机的cap sensor 6#。In this embodiment, the TP sensor module can reuse the metal contact electrode 23 used for serial communication as the cap sensor 6# of the headset.
可选地,如图4所示,该触摸检测器还与所述至少一个第二感测电极(即cap sensor 1#、cap sensor 2#和cap sensor 3#连接)电连接。Optionally, as shown in FIG. 4, the touch detector is also electrically connected to the at least one second sensing electrode (that is, the cap sensor 1#, the cap sensor 2#, and the cap sensor 3# are connected).
步骤103,在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;Step 103: When the first sensing electrode receives the first touch input and the at least one second sensing electrode receives a second touch input, perform a response operation to the second touch input ;
其中,对于本步骤中判断该至少一个第二感测电极是否接收到各自的第二触摸输入的方法可以参照上述实施例对于第一感测电极是否接收到第一触摸输入的方法,都是借助于对地电容变化量来确定,这里则不再一一赘述。For the method of determining whether the at least one second sensing electrode receives the respective second touch input in this step, refer to the above-mentioned embodiment. The method for whether the first sensing electrode receives the first touch input is all based on It is determined by the amount of capacitance change to ground, so I won’t repeat them here.
这里的第二感测电极包括cap sensor 1#、cap sensor 2#和cap sensor 3#中的至少一个。例如cap sensor 1#接收到第二触摸输入,则相关技术中单独依据cap sensor 1#的电容变化量来判断是否接收到第二触摸输入,存在误触率高的问题,那么在本实施例中,在对该第二触摸输入进行响应之前,需要确定是否不仅仅接收到了对cap sensor 1#的第二触摸输入,还接收到了对金属触点电极23(即cap sensor 6#)的第一触摸输入,在都接收到的情况下,才会对该第二触摸输入进行响应操作。The second sensing electrode here includes at least one of cap sensor 1#, cap sensor 2#, and cap sensor 3#. For example, if cap sensor 1# receives the second touch input, the related technology alone determines whether the second touch input is received based on the capacitance change of cap sensor 1#. There is a problem of high false touch rate. Then in this embodiment Before responding to the second touch input, it is necessary to determine whether not only the second touch input to cap sensor 1# is received, but also the first touch to the metal contact electrode 23 (ie cap sensor 6#) is received Only when all inputs are received, a response operation to the second touch input is performed.
步骤104,在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。Step 104: In a case where the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input, refuse to perform the second touch input Respond to operation.
在本实施例中,如果cap sensor 1#、cap sensor 2#和cap sensor 3#中的至少一个电容传感器接收到了第二触摸输入,但是金属触点电极23没有接收到第一触摸输入,即用户只触摸了耳柄的触控区域,而没有触摸耳柄底座的金属触点电极23所在的触摸区域,则TP sensor模块不会将第二触摸输入上报给主机进行响应操作,认为该第二触摸输入对应的触摸事件是无效的。In this embodiment, if at least one of cap sensor 1#, cap sensor 2#, and cap sensor 3# receives the second touch input, but the metal contact electrode 23 does not receive the first touch input, that is, the user If only the touch area of the earstalk is touched, but the touch area where the metal contact electrode 23 of the earstalk base is not touched, the TP sensor module will not report the second touch input to the host for a response operation, and consider the second touch The touch event corresponding to the input is invalid.
在本申请实施例中,在检测到所述穿戴设备处于佩戴状态的情况下,通过断开用于串口通信的第一感测电极和第一管脚之间的连接,使得第一感测电极未处于串口通信的状态, 以及第一管脚处于悬空状态,那么通过判断第一感测电极是否接收到第一触摸输入,在确定第一感测电极接收到第一触摸输入,以及至少一个第二感测电极接收到第二触摸式输入的情况下,才会对第二触摸输入进行响应操作;而在第一感测电极未接收到第一触摸输入,以及至少一个第二感测电极接收到第二触摸式输入的情况下,则拒绝对第二触摸输入进行响应操作,降低了对第二感测电极的触摸输入的触控功能的误触率。In the embodiment of the present application, when it is detected that the wearable device is in a wearing state, the connection between the first sensing electrode and the first pin for serial communication is disconnected, so that the first sensing electrode It is not in the state of serial communication and the first pin is in the floating state, then by determining whether the first sensing electrode receives the first touch input, it is determined that the first sensing electrode has received the first touch input, and at least one first The second sensing electrode will respond to the second touch input only when it receives the second touch input; while the first sensing electrode does not receive the first touch input, and at least one second sensing electrode receives In the case of the second touch input, the response operation to the second touch input is rejected, which reduces the false touch rate of the touch function of the touch input to the second sensing electrode.
具体的,本申请实施例通过检测穿戴设备是否处于佩戴状态,在处于佩戴状态下,将UART_TX管脚和UART_RX管脚置为悬空状态;然后,TP sensor模块对UART_TX管脚和UART_RX管脚对应的金属触点电极进入充电,当用户触摸该金属触点电极则可以吸走部分电量,因此,TP sensor模块对该金属触点电极检测手指触摸该金属触点电极前后的对地电容的变化量,当该变化量大于或等于预设阈值,来确定该用于串口通信的金属触点电极被触摸,相反,则确定该金属触点电极未被触摸;那么在UART TX/RX的金属触点被触摸的情况下,耳柄上的电容传感器所接收到的触摸事件才有效,否则无效。Specifically, the embodiment of the application detects whether the wearable device is in the wearing state, and in the wearing state, sets the UART_TX pin and the UART_RX pin to a floating state; then, the TP sensor module corresponds to the UART_TX pin and the UART_RX pin. The metal contact electrode is charged. When the user touches the metal contact electrode, part of the electricity can be absorbed. Therefore, the TP sensor module detects the change of the capacitance to ground before and after the finger touches the metal contact electrode. When the amount of change is greater than or equal to the preset threshold, it is determined that the metal contact electrode used for serial communication is touched. On the contrary, it is determined that the metal contact electrode is not touched; then the metal contact of UART TX/RX is touched. In the case of touch, the touch event received by the capacitive sensor on the ear handle is valid, otherwise it is invalid.
结合耳机的上述实例可以看出,本申请实施例通过复用耳机底座上的金属触点,用于检测有无触摸行为,当底座(耳柄的底座)上的金属触点(即第一感测电极)检测到有效触摸行为且耳柄的第二感测电极也检测到触摸事件时,则上报这次的触摸事件给到主机,反之,当底座上的第一感测电极没有检测到有效触摸行为,则不上报第二感测电极的检测到触摸事件,从而可以降低耳机触摸功能的误触率,提升了用户使用耳机触摸功能的体验。Combining the above examples of earphones, it can be seen that the embodiment of the present application reuses the metal contacts on the earphone base to detect whether there is a touch behavior. When the metal contacts on the base (the base of the earstalk) (that is, the first sense) (Measurement electrode) When a valid touch behavior is detected and the second sensing electrode of the earstalk also detects a touch event, the touch event will be reported to the host. Conversely, when the first sensing electrode on the base does not detect a valid touch event. For touch behavior, the detected touch event of the second sensing electrode is not reported, thereby reducing the false touch rate of the earphone touch function and improving the user's experience of using the earphone touch function.
在上述任意一个实施例的基础上,参照图5,还示出了本申请另一个实施例的触摸控制方法的流程图。On the basis of any one of the foregoing embodiments, referring to FIG. 5, a flowchart of a touch control method according to another embodiment of the present application is also shown.
该方法应用于穿戴设备,所述穿戴设备包括用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极;所述穿戴设备还包括与所述第一感测电极连接的触摸检测器;The method is applied to a wearable device. The wearable device includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode; the wearable device also includes a communication with the first sensing electrode. Electrode connected touch detector;
该方法包括如下步骤:The method includes the following steps:
步骤201,在检测到所述穿戴设备未处于佩戴状态的情况下,建立所述第一管脚与所述第一感测电极之间的连接,并将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态;Step 201: In the case that it is detected that the wearable device is not in a wearing state, establish a connection between the first pin and the first sensing electrode, and connect the first pin to the first sensing electrode. The second pin of the touch detector is set to a high impedance state;
在一个示例中,如图2和图4所示,TP sensor模块(即触摸检测器)可以通过检测cap  sensor 4#、cap sensor 5#的电容变化量是否都大于第一预设阈值(具体检测方法可以参照判断所述第一感测电极是否接收到第一触摸输入的上述实施例,这里不再赘述。),若否,则确定耳机未处于佩戴状态;In an example, as shown in Figures 2 and 4, the TP sensor module (ie touch detector) can detect whether the capacitance changes of cap sensor 4# and cap sensor 5# are both greater than the first preset threshold (specific detection The method can refer to the above-mentioned embodiment of determining whether the first sensing electrode receives the first touch input, which will not be repeated here.), if not, determine that the headset is not in a wearing state;
TP sensor模块可以将表示耳机未处于佩戴状态的信息上报Host;然后Host就可以改变发送至Analog Switch模块的电频,使得Analog Switch模块的Switch管脚置为低(例如为0),以及Enable管脚置为低(例如为0),即上述两个管脚的状态为(0,0),从而使得Analog Switch模块的内部切换开关被连接,从而使得图4左侧的UART_TX管脚(即为本步骤中的第一管脚),与金属触点电极23(即本步骤中的第一感测电极)之间电连接,以及UART_RX管脚(也为本步骤中的第一管脚)与金属触点电极23(即本步骤中的第一感测电极)之间电连接。使得UART_TX管脚和UART_RX管脚与金属触点电极23恢复为步骤101的断开连接的操作之前的连接关系。The TP sensor module can report the information that the headset is not in the wearing state to the Host; then the Host can change the electrical frequency sent to the Analog Switch module, so that the Switch pin of the Analog Switch module is set to low (for example, 0), and the Enable tube Set the pin to low (for example, 0), that is, the state of the above two pins is (0,0), so that the internal switch of the Analog Switch module is connected, so that the UART_TX pin on the left side of Figure 4 (that is, The first pin in this step) is electrically connected to the metal contact electrode 23 (that is, the first sensing electrode in this step), and the UART_RX pin (also the first pin in this step) and The metal contact electrodes 23 (that is, the first sensing electrode in this step) are electrically connected. The UART_TX pin and the UART_RX pin and the metal contact electrode 23 are restored to the connection relationship before the disconnection operation of step 101.
需要说明的是,在执行步骤101之前,UART_TX管脚、UART_RX管脚与金属触点电极23之间的电连接关系可以包括3种状态,例如状态1:UART_TX管脚与金属触点电极23之间电连接,且UART_RX管脚与金属触点电极23之间断开,即只使用串口进行发送数据;例如状态2:UART_TX管脚与金属触点电极23之间断开,且UART_RX管脚与金属触点电极23之间电连接,即只使用串口进行接收数据;状态3:UART_TX管脚与金属触点电极23之间电连接,且UART_RX管脚与金属触点电极23之间电连接,即只使用串口进行发送数据以及接收数据。It should be noted that before performing step 101, the electrical connection relationship between the UART_TX pin, the UART_RX pin and the metal contact electrode 23 may include three states, for example, state 1: the UART_TX pin and the metal contact electrode 23 Electrical connection between the UART_RX pin and the metal contact electrode 23 is disconnected, that is, only the serial port is used to send data; for example, state 2: the UART_TX pin is disconnected from the metal contact electrode 23, and the UART_RX pin is disconnected from the metal contact electrode 23. The point electrodes 23 are electrically connected, that is, only the serial port is used to receive data; state 3: the UART_TX pin is electrically connected to the metal contact electrode 23, and the UART_RX pin is electrically connected to the metal contact electrode 23, that is, only Use the serial port to send data and receive data.
而本步骤中的第一管脚可以是UART_TX管脚和UART_RX管脚中的至少一个。因此,步骤201所建立的UART_TX管脚和UART_RX管脚,与金属触点电极23之间的连接关系,可以是上述列举的三种状态中的任意一种。例如恢复至执行步骤101之前所处的上述三种状态中的一种。The first pin in this step may be at least one of the UART_TX pin and the UART_RX pin. Therefore, the connection relationship between the UART_TX pin and the UART_RX pin established in step 201 and the metal contact electrode 23 can be any one of the three states listed above. For example, it is restored to one of the above three states that it was in before step 101 was executed.
此外,在检测到所述穿戴设备未处于佩戴状态的情况下,TP sensor模块还可以将自己的与第一感测电极(即金属触点电极23)连接的第二管脚(即图4中的管脚25)置为高阻态,以免影响到UART串口的正常数据通信。In addition, in the case of detecting that the wearable device is not in the wearing state, the TP sensor module can also connect its second pin connected to the first sensing electrode (ie, the metal contact electrode 23) (ie, in Figure 4). The pin 25) is set to a high-impedance state, so as not to affect the normal data communication of the UART serial port.
其中,该第二管脚是TP sensor模块的与该第一感测电极建立连接的管脚。Wherein, the second pin is a pin of the TP sensor module that establishes a connection with the first sensing electrode.
此外,本申请实施例对于建立所述第一管脚与所述第一感测电极之间的连接的步骤,与将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态的步骤之间的执行顺序不做限制,它们都在检测到所述穿戴设备未处于佩戴状态的情况下来执行。In addition, in the embodiment of the present application, the step of establishing the connection between the first pin and the first sensing electrode is connected to the second tube of the touch detector connected to the first sensing electrode. The execution sequence between the steps of setting the feet to the high impedance state is not limited, and they are all executed when it is detected that the wearable device is not in the wearing state.
可选地,将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态的步骤,在上述建立所述第一管脚与所述第一感测电极之间的连接的步骤之前执行。这样,可以及时的确保在使用串口通信功能时,第一感测电极不受触摸检测器的干扰。Optionally, in the step of setting the second pin of the touch detector connected to the first sensing electrode to a high impedance state, the first pin and the first sensing electrode are established as described above. The steps between the connections are performed before. In this way, it can be ensured in time that when the serial port communication function is used, the first sensing electrode is not interfered by the touch detector.
在本申请实施例中,在检测到穿戴设备未处于佩戴状态的情况下,通过建立所述第一管脚与所述第一感测电极之间的连接,并将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态,不仅可以在不需要使用第一感测电极来降低对第二感测电极的触摸功能触发的误触率,而且,还可以将第一感测电极恢复为串口通信的状态,实现了对第一感测电极的不同功能的灵活切换;而且,通过将与第一感测电极连接的第二管脚设置为高阻态,从而可以降低在使用第一感测电极进行串口通信传递数据时,对其传递数据的干扰。In the embodiment of the present application, when it is detected that the wearable device is not in the wearing state, the connection between the first pin and the first sensing electrode is established, and the connection between the first pin and the first sensing electrode is established. The second pin of the touch detector connected to the electrode is set to a high-impedance state, which can not only reduce the false touch rate of triggering the touch function of the second sensing electrode without using the first sensing electrode, but also The first sensing electrode can be restored to the state of serial communication, realizing flexible switching of different functions of the first sensing electrode; moreover, by setting the second pin connected to the first sensing electrode to a high impedance state Therefore, it is possible to reduce the interference to the data transfer when the first sensing electrode is used for serial communication to transfer data.
高阻态是一个数字电路里常见的术语,指的是电路的一种输出状态,既不是高电平也不是低电平,如果高阻态再输入下一级电路的话,对下级电路无任何影响,和没接一样,如果用万用表测的话有可能是高电平也有可能是低电平,随它后面接的东西定的。The high-impedance state is a common term in digital circuits. It refers to an output state of the circuit, which is neither high nor low. If the high-impedance state is input to the next level circuit, there is nothing to the next level circuit. The impact is the same as if it is not connected. If it is measured with a multimeter, it may be high or low, depending on what is connected behind it.
在电子学中,高阻态(英语:High impedance)表示电路中的某个节点具有相对电路中其他点相对更高的阻抗。这个概念在三态逻辑、上拉电阻中有所涉及。In electronics, the high impedance state (English: High impedance) means that a node in the circuit has a relatively higher impedance than other points in the circuit. This concept is involved in tri-state logic and pull-up resistors.
可选地,在步骤201之后,根据本申请实施例的方法还可以包括:Optionally, after step 201, the method according to the embodiment of the present application may further include:
步骤202,在所述至少一个第二感测电极接收到所述第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。Step 202: When the at least one second sensing electrode receives the second touch input, refuse to respond to the second touch input.
在一个示例中,如图2、图4所示,至少一个第二感测电极,例如cap sensor 1#、cap sensor 2#和cap sensor 3#中的至少一个电容传感器接收到第二触摸输入,则TP sensor模块可以不上报该第二触摸输入至主机来达到拒绝对所述第二触摸输入进行响应操作的目的。In an example, as shown in FIGS. 2 and 4, at least one second sensing electrode, for example, at least one capacitive sensor of cap sensor 1#, cap sensor 2#, and cap sensor 3# receives the second touch input, Then the TP sensor module may not report the second touch input to the host to achieve the purpose of refusing to respond to the second touch input.
在本申请实施例中,当穿戴设备未处于佩戴状态的情况下,通过建立所述第一管脚与所述第一感测电极之间的连接,并将与所述第一感测电极连接的所述触摸检测器的第二管 脚设置为高阻态,不仅可以在不需要使用第一感测电极来降低对第二感测电极的触摸功能触发的误触率,而且,还可以将第一感测电极恢复为串口通信的状态,实现了对第一感测电极的不同功能的灵活切换;而且,通过将与第一感测电极连接的第二管脚设置为高阻态,从而可以降低在使用第一感测电极进行串口通信传递数据时,对其传递数据的干扰。进一步地,本申请实施例还对所述至少一个第二感测电极接收到所述第二触摸输入拒绝响应操作,从而将在此情况下所检测到的触摸事件都视为无效操作。降低了穿戴设备的触摸功能的误触概率,并提升了用户使用触摸功能的体验。In the embodiment of the present application, when the wearable device is not in the wearing state, by establishing a connection between the first pin and the first sensing electrode, and connecting with the first sensing electrode The second pin of the touch detector is set to a high-impedance state, which can not only reduce the false touch rate triggered by the touch function of the second sensing electrode without using the first sensing electrode, but also The first sensing electrode returns to the state of serial communication, realizing flexible switching of different functions of the first sensing electrode; moreover, by setting the second pin connected to the first sensing electrode to a high impedance state, It can reduce the interference of data transmission when the first sensing electrode is used for serial communication to transmit data. Further, the embodiment of the present application also rejects the response operation to the second touch input received by the at least one second sensing electrode, so that all touch events detected in this case are regarded as invalid operations. The probability of false touches of the touch function of the wearable device is reduced, and the user experience of using the touch function is improved.
此外,如图4所示,Host与TP sensor模块之间进行交互时,Host可以通过INT(中断信号)来控制TP sensor模块的工作;此外,TP sensor模块还可以将I2C(心跳指令)发送给Host,来使得Host了解TP sensor模块处于存活状态。In addition, as shown in Figure 4, when the Host interacts with the TP sensor module, the Host can control the work of the TP sensor module through INT (interrupt signal); in addition, the TP sensor module can also send I2C (heartbeat commands) to Host, to make the Host know that the TP sensor module is alive.
参照图6,示出了本申请一个实施例的穿戴设备的框图。本申请实施例的穿戴设备能实现上述实施例中的触摸控制方法的细节,并达到相同的效果。图6所示穿戴设备包括:Referring to Fig. 6, a block diagram of a wearable device according to an embodiment of the present application is shown. The wearable device of the embodiment of the present application can implement the details of the touch control method in the foregoing embodiment and achieve the same effect. The wearable device shown in Figure 6 includes:
用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极,所述穿戴设备还包括:The first sensing electrode and the first pin for serial communication, and at least one second sensing electrode, the wearable device further includes:
断开模块301,用于在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;The disconnection module 301 is configured to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in a wearing state;
可选地,所述穿戴设备还包括:判断模块302,用于判断所述第一感测电极是否接收到第一触摸输入;Optionally, the wearable device further includes: a determining module 302, configured to determine whether the first sensing electrode receives a first touch input;
响应模块303,用于在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;The response module 303 is configured to input the second touch when the first sensing electrode receives the first touch input and the at least one second sensing electrode receives the second touch input Perform response operations;
第一拒绝模块304,用于在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。The first rejection module 304 is configured to reject the response to the first touch input when the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives the second touch input. The second touch input performs a response operation.
可选地,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器;Optionally, the wearable device further includes a touch detector connected to the first sensing electrode;
可选地,所述判断模块302包括:Optionally, the judgment module 302 includes:
发送子模块,用于通过所述触摸检测器将第一驱动信号发送至所述第一感测电极;A sending sub-module, configured to send a first driving signal to the first sensing electrode through the touch detector;
获取子模块,用于通过所述触摸检测器获取与所述第一驱动信号对应的所述第一感测电极的对地电容的变化量;An acquiring sub-module, configured to acquire, through the touch detector, the amount of change in the capacitance to ground of the first sensing electrode corresponding to the first driving signal;
第一确定子模块,用于当所述变化量大于或等于预设阈值,则确定所述第一感测电极接收到第一触摸输入;The first determining sub-module is configured to determine that the first sensing electrode receives a first touch input when the amount of change is greater than or equal to a preset threshold;
第二确定子模块,用于当所述变化量小于所述预设阈值,则确定所述第一感测电极未接收到第一触摸输入。The second determining sub-module is configured to determine that the first sensing electrode does not receive the first touch input when the amount of change is less than the preset threshold.
可选地,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器,进一步地,所述穿戴设备还包括:Optionally, the wearable device further includes a touch detector connected to the first sensing electrode, and further, the wearable device further includes:
连接模块,用于在检测到所述穿戴设备未处于佩戴状态的情况下,建立所述第一管脚与所述第一感测电极之间的连接,并将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态。The connection module is used to establish a connection between the first pin and the first sensing electrode when it is detected that the wearable device is not in the wearing state, and connect it to the first sensing electrode The connected second pin of the touch detector is set to a high impedance state.
可选地,所述穿戴设备还包括:Optionally, the wearable device further includes:
第二拒绝模块,用于在所述至少一个第二感测电极接收到所述第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。The second rejection module is configured to reject a response operation to the second touch input when the at least one second sensing electrode receives the second touch input.
本申请实施例提供的穿戴设备能够实现上述方法实施例中穿戴设备实现的各个过程,为避免重复,这里不再赘述。The wearable device provided in the embodiment of the present application can implement the various processes implemented by the wearable device in the foregoing method embodiment, and in order to avoid repetition, details are not described herein again.
穿戴设备通过上述模块,通过将穿戴设备中的触摸检测器引出一个管脚来与用于串口通信的第一感测电极连接,从而可以通过该触摸检测器来检测该第一感测电极的对地电容的变化量,从而确定该第一感测电极是否接收到第一触摸输入,能够在第一感测电极与串口通信的第一管脚断开连接的情况下,将该第一感测电极作为新的电容传感器来使用,从而能够基于该第一感测电极是否接收到第一触摸输入来准确判断第二感测电极接收到的第二触摸输入是否有效,从而降低了穿戴设备的触摸功能的误触概率,并提升了用户使用触摸功能的体验。The wearable device is connected to the first sensing electrode for serial communication through the above-mentioned module by leading the touch detector in the wearable device to a pin, so that the pair of the first sensing electrode can be detected by the touch detector. The amount of change in the ground capacitance to determine whether the first sensing electrode receives the first touch input. The first sensing electrode can be disconnected from the first pin of the serial port communication. The electrode is used as a new capacitive sensor, which can accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the touch of the wearable device The false touch probability of the function, and enhance the user's experience of using the touch function.
图7为实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of an electronic device that implements each embodiment of the present application.
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。该电子设备还包括用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极;该电子设备还包括与所述第一感测电极以及所述至少一个第二感测电极连接的触摸检测器,此外,触摸检测器通过第二管脚与第一感测电极连接。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and Power supply 411 and other components. The electronic device also includes a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode; the electronic device also includes a communication with the first sensing electrode and the at least one second sensing electrode. The touch detector connected to the sensing electrode, in addition, the touch detector is connected to the first sensing electrode through the second pin.
本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present application, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
处理器410,用于在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。The processor 410 is configured to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in the wearing state; When the first touch input is received and the second touch input is received by the at least one second sensing electrode, a response operation to the second touch input is performed; when the first sensing electrode does not receive In the case of the first touch input and the second touch input is received by the at least one second sensing electrode, refusing to respond to the second touch input.
在本申请实施例中,通过将电子设备中的触摸检测器引出一个管脚来与用于串口通信的第一感测电极连接,从而可以通过该触摸检测器来检测该第一感测电极的对地电容的变化量,从而确定该第一感测电极是否接收到第一触摸输入,能够在第一感测电极与串口通信的第一管脚断开连接的情况下,将该第一感测电极作为新的电容传感器来使用,从而能够基于该第一感测电极是否接收到第一触摸输入来准确判断第二感测电极接收到的第二触摸输入是否有效,从而降低了穿戴设备的触摸功能的误触概率,并提升了用户使用触摸功能的体验。In the embodiment of the present application, a pin of the touch detector in the electronic device is connected to the first sensing electrode for serial communication, so that the touch detector can be used to detect the first sensing electrode. The amount of change in the capacitance to ground to determine whether the first sensing electrode receives the first touch input, and the first sensing electrode can be disconnected from the first pin of the serial port communication when the first sensing electrode is disconnected. The measuring electrode is used as a new capacitive sensor, so that it can accurately determine whether the second touch input received by the second sensing electrode is valid based on whether the first sensing electrode receives the first touch input, thereby reducing the wearable device’s performance. The false touch probability of the touch function, and enhance the user's experience of using the touch function.
应理解的是,本申请实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络 和其他设备通信。It should be understood that, in the embodiment of the present application, the radio frequency unit 401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 410; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与电子设备400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 may convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic device 400 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The graphics processor 4041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 may be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode for output.
电子设备400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在电子设备400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light. The proximity sensor can close the display panel 4061 and the display panel 4061 when the electronic device 400 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元407可用于接收输入的数字或字符信息,以及产生与电子设备的用户设 置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 can be used to receive input digital or character information, and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 4071 or near the touch panel 4071. operating). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 410, the command sent by the processor 410 is received and executed. In addition, the touch panel 4071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图7中,触控面板4071与显示面板4061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 4071 can cover the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits it to the processor 410 to determine the type of the touch event, and then the processor 410 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 4061. Although in FIG. 7, the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元408为外部装置与电子设备400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备400内的一个或多个元件或者可以用于在电子设备400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device and the electronic device 400. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 400 or can be used to connect the electronic device 400 to an external device. Transfer data between devices.
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包 括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器410是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 409, and calls the data stored in the memory 409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410.
电子设备400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 400 may also include a power source 411 (such as a battery) for supplying power to various components. Preferably, the power source 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备400包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 400 includes some functional modules not shown, which will not be repeated here.
优选的,本申请实施例还提供一种电子设备,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述触摸控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present application further provides an electronic device, including a processor 410, a memory 409, and a computer program stored on the memory 409 and running on the processor 410. When the computer program is executed by the processor 410, Each process of the above-mentioned touch control method embodiment is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not described herein again.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述触摸控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned touch control method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可 借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) ) Includes a number of instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (12)

  1. 一种触摸控制方法,应用于穿戴设备,所述穿戴设备包括用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极,所述方法包括:A touch control method applied to a wearable device, the wearable device comprising a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode, the method includes:
    在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;When it is detected that the wearable device is in a wearing state, disconnect the connection between the first pin and the first sensing electrode;
    在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;In a case where the first sensing electrode receives the first touch input and the at least one second sensing electrode receives a second touch input, responding to the second touch input;
    在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。In a case where the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input, rejecting a response operation to the second touch input.
  2. 根据权利要求1所述的方法,其中,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器,所述方法还包括:The method according to claim 1, wherein the wearable device further comprises a touch detector connected to the first sensing electrode, and the method further comprises:
    通过所述触摸检测器将第一驱动信号发送至所述第一感测电极;Sending a first driving signal to the first sensing electrode through the touch detector;
    通过所述触摸检测器获取与所述第一驱动信号对应的所述第一感测电极的对地电容的变化量;Acquiring, by the touch detector, the amount of change in the capacitance to ground of the first sensing electrode corresponding to the first driving signal;
    当所述变化量大于或等于预设阈值,则确定所述第一感测电极接收到第一触摸输入;When the amount of change is greater than or equal to a preset threshold, it is determined that the first sensing electrode receives a first touch input;
    当所述变化量小于所述预设阈值,则确定所述第一感测电极未接收到第一触摸输入。When the amount of change is less than the preset threshold, it is determined that the first sensing electrode has not received the first touch input.
  3. 根据权利要求1所述的方法,其中,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器;所述方法还包括:The method according to claim 1, wherein the wearable device further comprises a touch detector connected to the first sensing electrode; the method further comprises:
    在检测到所述穿戴设备未处于佩戴状态的情况下,建立所述第一管脚与所述第一感测电极之间的连接,并将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态。When it is detected that the wearable device is not in the wearing state, a connection between the first pin and the first sensing electrode is established, and the touch that is connected to the first sensing electrode The second pin of the detector is set to a high impedance state.
  4. 根据权利要求3所述的方法,其中,所述将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态之后,所述方法还包括:The method according to claim 3, wherein after setting the second pin of the touch detector connected to the first sensing electrode to a high impedance state, the method further comprises:
    在所述至少一个第二感测电极接收到所述第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。In a case where the at least one second sensing electrode receives the second touch input, refuse to perform a response operation to the second touch input.
  5. 一种穿戴设备,所述穿戴设备包括:用于串口通信的第一感测电极和第一管脚,以及至少一个第二感测电极,所述穿戴设备还包括:A wearable device, the wearable device comprising: a first sensing electrode and a first pin for serial communication, and at least one second sensing electrode, the wearable device further comprising:
    断开模块,用于在检测到所述穿戴设备处于佩戴状态的情况下,断开所述第一管脚与所述第一感测电极之间的连接;The disconnection module is used to disconnect the connection between the first pin and the first sensing electrode when it is detected that the wearable device is in a wearing state;
    响应模块,用于在所述第一感测电极接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,对所述第二触摸输入进行响应操作;The response module is configured to perform the second touch input when the first sensing electrode receives the first touch input and the at least one second sensing electrode receives the second touch input Response operation
    第一拒绝模块,用于在所述第一感测电极未接收到所述第一触摸输入、且所述至少一个第二感测电极接收到第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。The first rejection module is configured to reject the first touch input when the first sensing electrode does not receive the first touch input and the at least one second sensing electrode receives a second touch input. Two touch input for response operation.
  6. 根据权利要求5所述的穿戴设备,其中,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器,所述穿戴设备还包括:The wearable device according to claim 5, wherein the wearable device further comprises a touch detector connected to the first sensing electrode, and the wearable device further comprises:
    发送子模块,用于通过所述触摸检测器将第一驱动信号发送至所述第一感测电极;A sending sub-module, configured to send a first driving signal to the first sensing electrode through the touch detector;
    获取子模块,用于通过所述触摸检测器获取与所述第一驱动信号对应的所述第一感测电极的对地电容的变化量;An acquiring sub-module, configured to acquire, through the touch detector, the amount of change in the capacitance to ground of the first sensing electrode corresponding to the first driving signal;
    第一确定子模块,用于当所述变化量大于或等于预设阈值,则确定所述第一感测电极接收到第一触摸输入;The first determining sub-module is configured to determine that the first sensing electrode receives a first touch input when the amount of change is greater than or equal to a preset threshold;
    第二确定子模块,用于当所述变化量小于所述预设阈值,则确定所述第一感测电极未接收到第一触摸输入。The second determining sub-module is configured to determine that the first sensing electrode does not receive the first touch input when the amount of change is less than the preset threshold.
  7. 根据权利要求5所述的穿戴设备,其中,所述穿戴设备还包括与所述第一感测电极连接的触摸检测器,进一步地,所述穿戴设备还包括:The wearable device according to claim 5, wherein the wearable device further comprises a touch detector connected to the first sensing electrode, and further, the wearable device further comprises:
    连接模块,用于在检测到所述穿戴设备未处于佩戴状态的情况下,建立所述第一管脚与所述第一感测电极之间的连接,并将与所述第一感测电极连接的所述触摸检测器的第二管脚设置为高阻态。The connection module is used to establish a connection between the first pin and the first sensing electrode when it is detected that the wearable device is not in the wearing state, and connect it to the first sensing electrode The connected second pin of the touch detector is set to a high impedance state.
  8. 根据权利要求7所述的穿戴设备,其中,所述穿戴设备还包括:The wearable device according to claim 7, wherein the wearable device further comprises:
    第二拒绝模块,用于在所述至少一个第二感测电极接收到所述第二触摸输入的情况下,拒绝对所述第二触摸输入进行响应操作。The second rejection module is configured to reject a response operation to the second touch input when the at least one second sensing electrode receives the second touch input.
  9. 一种穿戴设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理 器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的触摸控制方法的步骤。A wearable device, comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor as in claims 1 to 4 Steps of any one of the touch control methods.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的触摸控制方法中的步骤。A computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the touch control method according to any one of claims 1 to 4 are implemented .
  11. 一种计算机程序产品,其特征在于,所述程序产品被至少一个处理器执行以实现如权利要求1至4中任一项所述的触摸控制方法。A computer program product, wherein the program product is executed by at least one processor to implement the touch control method according to any one of claims 1 to 4.
  12. 一种穿戴设备,其特征在于,包括所述穿戴设备被配置成用于执行如权利要求1至4中任一项所述的触摸控制方法。A wearable device, comprising the wearable device configured to execute the touch control method according to any one of claims 1 to 4.
PCT/CN2020/132159 2019-12-04 2020-11-27 Touch control method and wearable device WO2021109931A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911230232.5A CN111106821B (en) 2019-12-04 2019-12-04 Touch control method and wearable device
CN201911230232.5 2019-12-04

Publications (1)

Publication Number Publication Date
WO2021109931A1 true WO2021109931A1 (en) 2021-06-10

Family

ID=70421631

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132159 WO2021109931A1 (en) 2019-12-04 2020-11-27 Touch control method and wearable device

Country Status (2)

Country Link
CN (1) CN111106821B (en)
WO (1) WO2021109931A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111106821B (en) * 2019-12-04 2023-12-26 维沃移动通信有限公司 Touch control method and wearable device
CN112468922A (en) * 2020-11-26 2021-03-09 芯海科技(深圳)股份有限公司 Earphone interaction method and earphone
CN112764576A (en) * 2021-01-08 2021-05-07 深圳市爱都科技有限公司 Multimedia playing control method and device, intelligent wearable device and storage medium
CN113794971A (en) * 2021-07-29 2021-12-14 RealMe重庆移动通信有限公司 Earphone, earphone control method, earphone control device and storage medium
CN113709617A (en) * 2021-08-27 2021-11-26 Oppo广东移动通信有限公司 Wireless earphone control method and device, wireless earphone and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108141657A (en) * 2015-09-28 2018-06-08 苹果公司 Wireless earbud with proximity sensor
CN108702567A (en) * 2017-11-27 2018-10-23 深圳市汇顶科技股份有限公司 Earphone, test earphone wearing state method and electronic equipment
TWM575942U (en) * 2018-08-02 2019-03-21 禾伸堂企業股份有限公司 Bluetooth earphone combined with antenna and touch sensor
CN109508114A (en) * 2018-12-03 2019-03-22 努比亚技术有限公司 A kind of touch-control circuit, touch panel and mobile terminal
CN209134600U (en) * 2018-09-25 2019-07-19 深圳市汇顶科技股份有限公司 A kind of earphone
CN111106821A (en) * 2019-12-04 2020-05-05 维沃移动通信有限公司 Touch control method and wearable device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9342195B2 (en) * 2012-03-12 2016-05-17 Microchip Technology Incorporated System and method to share electrodes between capacitive touch controller and gesture detection device
CN103902087B (en) * 2012-12-28 2017-03-01 联想(北京)有限公司 Electronic equipment data transmission method
US9295403B1 (en) * 2013-12-19 2016-03-29 Verily Life Sciences Llc Multipurpose wearable electrical contact
CN106201292A (en) * 2015-04-29 2016-12-07 小米科技有限责任公司 Terminal false-touch prevention method and apparatus
JP6593772B2 (en) * 2015-08-27 2019-10-23 カシオ計算機株式会社 Electronic device, control method therefor, and control program
US10671222B2 (en) * 2015-09-30 2020-06-02 Apple Inc. Touch sensor pattern for edge input detection
KR102601364B1 (en) * 2016-11-30 2023-11-14 엘지디스플레이 주식회사 Touch sensing circuit, touch display device, and touch sensing method
KR102620178B1 (en) * 2017-01-26 2024-01-03 삼성전자주식회사 Electronic device and operating method thereof
US10545614B2 (en) * 2018-01-22 2020-01-28 Cypress Semiconductor Corporation Two-electrode touch button with a multi-phase capacitance measurement process
CN110471559B (en) * 2019-07-25 2023-05-26 维沃移动通信有限公司 False touch prevention method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108141657A (en) * 2015-09-28 2018-06-08 苹果公司 Wireless earbud with proximity sensor
CN108702567A (en) * 2017-11-27 2018-10-23 深圳市汇顶科技股份有限公司 Earphone, test earphone wearing state method and electronic equipment
TWM575942U (en) * 2018-08-02 2019-03-21 禾伸堂企業股份有限公司 Bluetooth earphone combined with antenna and touch sensor
CN209134600U (en) * 2018-09-25 2019-07-19 深圳市汇顶科技股份有限公司 A kind of earphone
CN109508114A (en) * 2018-12-03 2019-03-22 努比亚技术有限公司 A kind of touch-control circuit, touch panel and mobile terminal
CN111106821A (en) * 2019-12-04 2020-05-05 维沃移动通信有限公司 Touch control method and wearable device

Also Published As

Publication number Publication date
CN111106821A (en) 2020-05-05
CN111106821B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
WO2021109931A1 (en) Touch control method and wearable device
WO2020168892A1 (en) Charging control circuit, terminal device and control method
WO2021129750A1 (en) Radio-frequency circuit, electronic device, and srs sending method
WO2021129745A1 (en) Touch key, control method and electronic device
WO2020134811A1 (en) Key control method, and terminal
WO2019218862A1 (en) Screen operation method and mobile terminal
WO2021197124A1 (en) Electronic device and method for operating pressure button
CN108008859B (en) Screen control method and mobile terminal
WO2021169729A1 (en) Circuit control apparatus and method
WO2021004281A1 (en) State display method and terminal device
WO2021238806A1 (en) Interface circuit and electronic device
WO2020200005A1 (en) Connector, electronic apparatus, and data transmission method and device
US20220413448A1 (en) Electronic device and control method
US20220360709A1 (en) Mobile terminal, shooting mode detection method, and storage medium
WO2021208890A1 (en) Screen capturing method and electronic device
CN108108113B (en) Webpage switching method and device
WO2021204101A1 (en) Display method and electronic device
US11996700B2 (en) Wireless charging control method, circuit and terminal device
WO2020221043A1 (en) Charge control circuit, terminal device and data line
WO2020192662A1 (en) Operation method and terminal device
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN109889942B (en) Type-C patch cord, control method and terminal equipment
CN107995372B (en) False touch grounding identification processing method and circuit and mobile terminal
CN108595352B (en) Protection method and device for mobile terminal
CN110764650A (en) Key trigger detection method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20897449

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20897449

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20897449

Country of ref document: EP

Kind code of ref document: A1