WO2021083334A1 - 电子设备及其控制方法 - Google Patents

电子设备及其控制方法 Download PDF

Info

Publication number
WO2021083334A1
WO2021083334A1 PCT/CN2020/125300 CN2020125300W WO2021083334A1 WO 2021083334 A1 WO2021083334 A1 WO 2021083334A1 CN 2020125300 W CN2020125300 W CN 2020125300W WO 2021083334 A1 WO2021083334 A1 WO 2021083334A1
Authority
WO
WIPO (PCT)
Prior art keywords
sliding
electronic device
sensor
sensor module
touch
Prior art date
Application number
PCT/CN2020/125300
Other languages
English (en)
French (fr)
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 WO2021083334A1 publication Critical patent/WO2021083334A1/zh

Links

Images

Classifications

    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Definitions

  • the embodiment of the present invention relates to the field of communication technology, and in particular to an electronic device and a control method thereof.
  • buttons are usually set on the electronic devices.
  • mobile phones usually use volume up and volume down mechanical buttons to achieve volume adjustment, and power mechanical buttons to implement power switch functions.
  • the embodiment of the present invention provides an electronic device and a control method thereof, so as to solve the problem of low reliability of the existing electronic device due to the provision of mechanical keys.
  • the present invention is implemented as follows:
  • an electronic device which includes:
  • a housing the housing having a receiving cavity
  • the detection component is arranged in the receiving cavity and is used to detect touch operations
  • the control chip is connected to the detection component and is used to execute the first target function when the touch operation detected by the detection component is the first touch operation, and when the touch operation detected by the detection component is the first touch operation, Execute the second target function in the case of a two-touch operation;
  • the first touch operation is a pressing operation
  • the second touch operation is a sliding operation
  • one of the first target function and the second target function is a volume adjustment function
  • the other is a power switch Features.
  • the embodiment of the present invention also provides a control method, which is applied to the electronic device of the embodiment of the present invention, and the method includes:
  • a detection component for detecting a touch operation is provided in the housing cavity of the housing, and the control chip is used to execute the first target function when the touch operation detected by the detection component is a pressing operation Execute the second target function when the touch operation detected by the detection component is a sliding operation; wherein one of the first target function and the second target function is a volume adjustment function, and the other is a power supply Switch function. It can be seen that the embodiment of the present invention can realize the volume adjustment function and the power switch function without opening, thereby improving the reliability of the electronic device.
  • Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • Figure 2 is a schematic structural diagram of a detection component provided by an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a control chip provided by an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a working flow of a capacitance detection chip provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a working flow of a pressure detection chip provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a work flow of a general-purpose processor provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a work flow of an electronic device provided by an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a control method provided by an embodiment of the present invention.
  • the embodiment of the present invention provides an electronic device.
  • electronic devices can be mobile phones, tablets (Personal Computer), laptop computers (Laptop Computer), personal digital assistants (PDA), mobile Internet devices (Mobile Internet Device, MID), Wearable devices (Wearable Device) or in-vehicle devices, etc.
  • the electronic device may include, but is not limited to, a housing 10, a detection component 20 and a control chip 30.
  • the detection component 20 is used to detect touch operations.
  • the control chip 30 is connected to the detection component 20, and can be specifically used to execute the first function when the touch operation detected by the detection component 20 is the first touch operation, and the touch operation detected by the detection component 20 is the second touch operation. Execute the second function in the case of control operation.
  • the first touch operation may be a pressing operation
  • the second touch operation may be a sliding operation, but is not limited to this
  • one of the first function and the second function is a volume adjustment function
  • the other is the power switch function.
  • the volume adjustment function can be used to adjust the audio output volume of the electronic device
  • the power switch function can be used to control the working state of the screen of the electronic device, and the working state of the screen includes the on-screen state and the off-screen state.
  • the volume adjustment function and the power switch function correspond to different operation types of touch operations.
  • the user can perform different operation types of touch operations on the detection component 20 to trigger the electronic device to perform volume control. Adjustment function and power switch function.
  • the first implementation manner the user can trigger the electronic device to perform the power switch function by performing a pressing operation on the detection component 20; the user can trigger the electronic device to perform the volume adjustment function by performing a sliding operation on the detection component 20.
  • the user can trigger the electronic device to perform the power switch function by performing a sliding operation on the detection component 20; the user can trigger the electronic device to perform the volume adjustment function by performing a pressing operation on the detection component 20.
  • the housing 10 includes a receiving cavity 11, and the detection component 20 is disposed in the receiving cavity 11.
  • the housing 10 is provided with a touch area at a position relative to the detection component 20, and the user performs a pressing operation and a sliding operation in the touch area.
  • the detection component of the electronic device of the embodiment of the present invention is provided in the housing cavity of the housing, so that the The volume adjustment function and the power switch function are realized without opening, and the reliability of the electronic device is improved.
  • the structure of the detection assembly 20 will be described below.
  • the detection component 20 includes a first sensor module.
  • control chip 30 is connected to the first sensor module, and the housing 10 is provided with a first touch area corresponding to the position where the first sensor module is installed.
  • control chip 30 is configured to perform a volume adjustment function when the touch operation detected by the first sensor module is the sliding operation.
  • the user can perform a sliding operation on the first touch area, so that the first sensor module detects the sliding operation, and then triggers the control chip 30 to perform the volume adjustment function.
  • control chip 30 may be specifically configured to perform a volume adjustment function according to the target operation information of the sliding operation, where the target operation information includes at least one of sliding direction and sliding position information.
  • the sliding position information may include at least one of the following: the sliding operation is at the end position of the first touch area; the sliding distance of the sliding operation in the first touch area.
  • control chip 30 performs the volume adjustment function is related to the specific manifestation of the target operation information. In other words, for the target operation information in different manifestations, the manner in which the control chip 30 performs the volume adjustment function may be different.
  • the specific instructions are as follows:
  • Case 1 The target operation information of the sliding operation includes the sliding direction of the sliding operation.
  • control chip 30 may be specifically used to: execute the volume increase function when the sliding direction of the sliding operation is the first sliding direction; execute when the sliding direction of the sliding operation is the second sliding direction Volume down function.
  • the volume adjustment direction is the volume plus direction, that is, the volume is increased; when the volume reduction function is performed, the volume adjustment direction is the volume decrease direction, that is, the volume is decreased.
  • the electronic device will increase the audio output volume; if the user performs a sliding operation in the first touch area , And the sliding direction of the sliding operation is the first sliding direction, the electronic device will reduce the volume of the audio output.
  • the first sliding direction and the second sliding direction can be preset according to requirements, which is not limited in the embodiment of the present invention.
  • the sliding operation can be used to determine the direction of volume adjustment.
  • Case 2 The target operation information of the sliding operation includes the end position of the sliding operation in the first touch area.
  • the control chip 30 is configured to perform a volume adjustment function according to the termination position.
  • the position in the first touch area and the volume value have a corresponding relationship.
  • the electronic device may determine the volume value corresponding to the end position as the target volume value, and output audio according to the target volume value.
  • the sliding operation can be used to determine the target volume value of the audio output, and the target volume value is the volume value of the audio output after the sliding operation ends.
  • the target operation information of the sliding operation includes the sliding distance of the sliding operation in the first touch area and the sliding direction of the sliding operation.
  • the control chip 30 is configured to perform a volume adjustment function according to the sliding distance and the sliding direction of the sliding operation.
  • the sliding distance can be used to determine the volume variable value of the audio output.
  • the electronic device may pre-acquire a corresponding relationship between the sliding distance and the volume variable value, so that after acquiring the sliding distance, the volume variable value may be determined based on the corresponding relationship. It should be noted that the embodiment of the present invention does not limit the manner of obtaining the sliding distance.
  • the sliding direction of the sliding operation is used to determine the volume adjustment direction.
  • the volume adjustment direction is volume plus direction; when the sliding direction of the sliding operation is the first sliding direction, it may be determined The volume adjustment direction is the volume minus direction.
  • the initial volume value is P1
  • the target volume value is P2
  • the volume variable value is ⁇ P, where the initial volume value is: the volume value of the audio output of the electronic device before receiving the sliding operation; the target volume value is: after the sliding operation is completed, The volume value of the audio output of the electronic device.
  • volume adjustment direction is volume plus direction
  • P2 P1+ ⁇ P
  • P2 P1- ⁇ P
  • the structure of the first sensor module will be described below.
  • the first sensor module includes at least one of a first pressure sensor and a first target sensor, and the first target sensor is a capacitive sensor or an ultrasonic sensor.
  • the pressure sensor can be used to detect the touch force of the touch operation and the deformation caused by the touch operation; the target sensor can be used to detect the touch position of the touch operation.
  • the first sensor module includes the first pressure sensor and the first target sensor; further, the first sensor module further includes a first conductive member, and the first pressure sensor And the first target sensor are located on two opposite sides of the first conductive member; wherein the distance between the first target sensor and the first touch area is smaller than that of the first pressure sensor relative to the first touch area. The distance of a touch area.
  • the first target sensor and the first touch area are fixedly connected, for example, the first target sensor and the first touch area are connected by a double-sided adhesive paste.
  • the first conductive member is used to transmit the touch force and deformation of the touch operation detected by the first sensor module.
  • the conductive member can be a steel sheet, but it is not limited to this.
  • the detection component 20 includes a second sensor module.
  • control chip 30 is connected to the second sensor module, and the housing 10 is provided with a second touch area corresponding to the position where the second sensor module is installed.
  • control chip 30 is used to perform the power switch function in the implementation manner of the pressing operation detected by the second sensor module.
  • the user can perform a pressing operation on the second touch area, so that the second sensor module detects the pressing operation, and then triggers the control chip 30 to perform the power switch function.
  • control chip can be used for:
  • the electronic device In the case that the electronic device is in the screen-on state, if the second sensor module detects a pressing operation, controlling the electronic device to enter the screen-off state;
  • the electronic device When the electronic device is in the off-screen state, if the second sensor module detects a pressing operation, the electronic device is controlled to enter the on-screen state.
  • the structure of the second sensor module is described below.
  • the second sensor module includes at least one of a second pressure sensor and a second target sensor, and the second target sensor is a capacitive sensor or an ultrasonic sensor.
  • the second sensor module includes the second pressure sensor and the second target sensor
  • the second sensor module further includes a second conductive member, the second pressure sensor and The second target sensor is located on two opposite sides of the second conductive member; wherein the distance of the second target sensor relative to the second touch area is smaller than that of the second pressure sensor relative to the second touch area. The distance of the touch area.
  • the second target sensor and the second touch area are fixedly connected, for example, the second target sensor and the second touch area are connected by a double-sided adhesive paste.
  • the second conductive member is used to transmit the touch force and the deformation amount of the touch operation detected by the second sensor module.
  • first sensor module and the second sensor module may be the same sensor module or different sensor modules.
  • the specific description is as follows:
  • Scenario 1 The sensor module and the target function have a one-to-many relationship.
  • the user can perform different types of touch operations on the same sensor module to trigger the electronic device to perform different target functions.
  • the user performs a pressing operation on the sensor module to trigger the electronic device to perform a power switch function; the user performs a sliding operation on the sensor module to trigger the electronic device to perform a volume adjustment function.
  • Scenario 2 The sensor module and the target function have a one-to-one correspondence.
  • the electronic device if the electronic device is to be triggered to perform a certain target function, the user needs to perform a touch operation on the sensor module corresponding to the target function.
  • the above-mentioned first sensor module and the second sensor module may be different sensor modules.
  • the above-mentioned first sensor module corresponds to a volume adjustment function
  • the above-mentioned second sensor module corresponds to a power switch function.
  • the touch operation is performed on the first sensor module; if the user wants to trigger the electronic device to perform the power switch function, the touch operation is performed on the second sensor module.
  • the electronic device determines the target function to be performed based on the sensor module that detects the touch operation, regardless of the type of touch operation detected . Therefore, the types of touch operations performed by the user on different sensor modules can be the same or different.
  • the user can perform a pressing operation on the first sensor module to trigger the electronic device to perform the volume adjustment function; the user can perform a pressing operation on the second sensor module to trigger the electronic device to perform the power switch function. It can be seen that in the second mode, the types of touch operations performed by the user on different sensor modules are different.
  • the user can perform a sliding operation on the first sensor module to trigger the electronic device to perform the volume adjustment function; the user can perform a pressing operation on the second sensor module to trigger the electronic device to perform the power switch function. It can be seen that in the first mode, the types of touch operations performed by the user on different sensor modules are different.
  • the electronic device can set multiple touch modes, and the user can select the touch mode according to their own needs, so that the flexibility of operation can be improved.
  • scenario 1 can reduce the number of sensor modules, thereby reducing the cost of detection components; on the other hand, in scenario 1, users can perform different types of touch in the same touch area. Control operations to trigger electronic devices to perform different functions, which can reduce the misoperation rate.
  • scenario 2 the user can perform the same or different types of touch operations on different sensor modules to trigger the electronic device to perform different target functions, thereby improving the flexibility of operating the sensor modules.
  • the detection component 20 of the electronic device may be as shown in FIG. 2, and the control chip 30 may be as shown in FIG. 3.
  • the detection component 20 may include a first sensor module 21 and a second sensor module 22. Further, the first sensor module 21 includes capacitance sensors C1 to C4, and pressure sensors F1 and F2. The second sensor module 22 includes a capacitance sensor C5 and a pressure sensor F3.
  • the conductive members of the first sensor module 21 and the second sensor module 22 are integrally formed, and the integrally formed conductive member is marked as 23 in FIG. 2.
  • the capacitance sensors C1 to C5 are arranged at the upper end of the conductive member; the pressure sensors F1 to F3 are arranged at the lower end of the conductive member.
  • the pressure sensor F1 is arranged below the capacitance sensor C1
  • the pressure sensor F2 is arranged below the capacitance sensor C3
  • the pressure sensor F3 is arranged below the capacitance sensor C5.
  • the end of each capacitance sensor away from the conductive member is fixedly connected to the housing 10.
  • the electronic device may be provided with the first touch mode and the second touch mode as described above.
  • the user can perform a pressing operation on the first sensor module to trigger the electronic device to perform the volume adjustment function; the user can perform a pressing operation on the second sensor module to trigger the electronic device to perform the power switch function.
  • the user can perform a sliding operation on the first sensor module to trigger the electronic device to perform the volume adjustment function; the user can perform a pressing operation on the second sensor module to trigger the electronic device to perform the power switch function.
  • the capacitive sensor C1 corresponds to the volume up function
  • the capacitive sensor C3 corresponds to the volume down function
  • the capacitive sensor C5 corresponds to the power switch function.
  • the capacitive sensors C1 to C4 correspond to the volume adjustment function
  • the capacitive sensor C5 corresponds to the power switch function
  • control chip 30 may include a pressure detection chip, a capacitance detection chip, a power management chip, and a general-purpose processor.
  • the connection relationship between the various components can be seen in FIG. 3, which will not be repeated here.
  • the capacitance detection chip is connected to the capacitors C1 to C5 for processing the signals output by the capacitance sensors.
  • the pressure detection chip is connected to the pressure sensors F1 to F3 for processing and receiving the signals output by the pressure sensors.
  • General purpose processors are used to perform target functions.
  • the working states of the capacitance detection chip, the pressure detection chip, and the general-purpose processor are related to the current touch mode of the electronic device, which is described in detail as follows.
  • the first scenario and the current mode of the electronic device is the above-mentioned first touch mode.
  • the capacitance detection chip can only process the C1_in signal, the C3_in signal, and the C5_in signal.
  • the capacitance detection chip may compare the received signal with the set threshold A, and if the signal is greater than the set threshold A, it may output a signal corresponding to the signal to the pressure detection chip.
  • the C1_out signal is output to the pressure detection chip, otherwise the C1_out signal is not output.
  • the C3_out signal is output to the pressure detection chip, otherwise the C3_out signal is not output.
  • the C5_out signal is output to the pressure detection chip, otherwise the C5_out signal is not output.
  • the pressure detection chip When the pressure detection chip receives the signal output by the capacitance detection chip, it can activate the corresponding pressure sensor to perform pressure detection based on the signal received from the capacitance detection chip, and then output a signal corresponding to the pressure detection result.
  • the pressure detection chip can start the pressure sensor F1 for pressure detection and receive the F1_P/N signal output by the pressure sensor F1. If it is determined that the F1_P/N signal is greater than the threshold B, you can output a volume plus signal to the power management chip, thereby increasing the audio output volume of the electronic device through the general-purpose processor.
  • the pressure detection chip can start the pressure sensor F2 for pressure detection and receive the F2_P/N signal output by the pressure sensor F2. If it is determined that the F2_P/N signal is greater than the threshold B, then The volume reduction signal can be output to the power management chip, thereby reducing the volume of the audio output of the electronic device through the general-purpose processor.
  • the pressure detection chip can start the pressure sensor F3 for pressure detection and receive the F3_P/N signal output by the pressure sensor F3. If it is determined that the F3_P/N signal is greater than the threshold B, then The power switch signal can be output to the power management chip, so that the working state of the screen of the electronic device can be switched through the general-purpose processor.
  • the C3_out signal may not be judged when the C1_out signal is valid; accordingly, the C1_out signal may not be judged when the C3_out signal is valid, thereby avoiding task execution conflicts.
  • the second scene, the current mode of the electronic device is the above-mentioned second touch mode.
  • the capacitance detection chip can process the C1_in signal, the C2_in signal, the C3_in signal, the C4_in signal, and the C5_in signal.
  • the capacitance detection chip may compare the received signal with the set threshold C respectively.
  • the capacitive sensors C1 to C4 correspond to the volume adjustment function
  • the capacitive sensor C5 corresponds to the power switch function. Therefore, the capacitance detection chip processes the C1_in signal, C2_in signal, C3_in signal, and C4_in signal differently from the C5_in signal.
  • the specific description is as follows.
  • the capacitance detection chip can output a sliding interrupt signal to the general-purpose processor.
  • the capacitance detection chip can also output the current touch position of the finger, so that the general-purpose processor can obtain at least one of the following: the sliding direction of the sliding operation; the ending position of the sliding operation; the sliding distance of the sliding operation, thereby adjusting the volume.
  • the capacitance detection chip can calculate the current touch position L of the finger by the following formula:
  • n is the number of capacitive sensors
  • R is the total number of touch positions
  • x is the label of the capacitive sensor with the largest output signal among n capacitive sensors, that is, the label of the capacitive sensor touched by the finger
  • S x is the capacitive sensor
  • the signal output by x is the above-mentioned Cx_in signal.
  • the value in the brackets is between 1 and 2, and the calculated value is between 0 and 10.
  • the value in the brackets is between 2 and 3, and the calculated value is between 10 and 20.
  • the value in the brackets is between 3 and 4, and the calculated value is between 20 and 30.
  • the capacitance detection chip can output C5_out to the pressure detection chip.
  • the pressure detection chip receives the C5_out signal, that is, after the C5_out signal is valid, it can start the pressure sensor F3 for pressure detection and receive the F3_P/N signal output by the pressure sensor F3. If it is determined that the F3_P/N signal is greater than the threshold B, it can be sent to the power management The chip outputs a power switch signal, thereby switching the working state of the electronic device screen through a general-purpose processor.
  • the working process of the capacitance detection chip may include the following steps:
  • Step 401 Determine whether the electronic device is in the second touch mode.
  • step 402 If yes, go to step 402; otherwise, go to step 406.
  • Step 402 Collect the signals C1_in to C5_in output by the capacitance sensors C1 to C5.
  • Step 403 Determine whether there is a value greater than the threshold C among C1_in to C5_in.
  • step 404 If yes, go to step 404.
  • Step 404 Calculate the touch position L.
  • Step 405 Output a sliding interrupt signal.
  • the sliding terminal signal may include a touch position L.
  • Step 406 Determine whether C1_in is greater than the threshold A.
  • step 407 If yes, go to step 407; otherwise, go to step 408.
  • Step 407 Output C1_out.
  • Step 408 Determine whether C3_in is greater than the threshold A.
  • step 409 If yes, go to step 409; otherwise, go to step 410.
  • Step 409 Output C3_out.
  • Step 410 Determine whether C5_in is greater than the threshold A.
  • step 411 If yes, go to step 411; otherwise, go to step 401.
  • Step 411 Output C5_out.
  • the working process of the pressure detection chip may include the following steps:
  • Step 501 Determine whether C1_out is valid.
  • step 502 If yes, go to step 502, otherwise go to step 507.
  • Step 502 Determine whether the pressure value detected by the pressure sensor F1 exceeds the threshold B.
  • step 503 If yes, go to step 503; otherwise, go to step 504.
  • Step 503 Output the volume plus signal.
  • Step 504 Determine whether C5_out is valid.
  • step 505 If yes, go to step 505; otherwise, go to step 501.
  • Step 505 Determine whether the pressure value detected by the pressure sensor F3 exceeds the threshold B.
  • step 506 If yes, go to step 506; otherwise, go to step 501.
  • Step 506 Output a power switch signal.
  • Step 507 Determine whether C3_out is valid.
  • step 508 If yes, go to step 508; otherwise, go to step 504.
  • Step 508 Determine whether the pressure value detected by the pressure sensor F2 exceeds the threshold B.
  • step 509 If yes, go to step 509; otherwise, go to step 504.
  • Step 509 Output a volume reduction signal.
  • the workflow of the general-purpose processor may include the following steps:
  • Step 601 Determine whether the electronic device is in the second touch mode.
  • step 602 If yes, go to step 602; otherwise, go to step.
  • Step 602 Determine whether a sliding interrupt signal is received.
  • step 603 If yes, go to step 603; otherwise, go to step 609.
  • Step 603 Read the touch position and clear the sliding interruption signal.
  • Step 604 Adjust the volume according to the change of the read touch position.
  • Step 605 Determine whether a volume up signal is received.
  • step 606 If yes, go to step 606; otherwise, go to step 607.
  • Step 606 Increase the volume.
  • Step 607 Determine whether a volume reduction signal is received.
  • step 608 If yes, go to step 608; otherwise, go to step 609.
  • Step 608 Decrease the volume.
  • Step 609 Determine whether a power switch signal is received.
  • step 610 If yes, go to step 610; otherwise, go to step 601.
  • Step 610 Switch the screen state.
  • the volume adjustment function and the power switch function can be realized without opening, so that the reliability of the electronic device can be improved.
  • the corresponding function is executed only when the capacitance sensor and the pressure sensor are valid at the same time, so that the false trigger rate of the function can be achieved.
  • Capacitive sensors detect changes in position and position, add sliding volume adjustment function, and enhance the richness of touch operations.
  • the electronic device can be equipped with a sensor module at the frame, which can realize pressing and sliding detection in the area.
  • the module can contain one or more pressure detection channels to realize the area pressing function; the module also contains the sliding detection function, which can be realized through capacitance, ultrasound or pressure detection.
  • the sensor detection area replaces the traditional mechanical button area (volume plus mechanical button, volume down mechanical button, power mechanical button), and the sensor detection area can be larger than the traditional button area. The user presses the power button anywhere in the sensor detection area, slides up to increase the volume, and slides down to decrease the volume.
  • the traditional mechanical buttons have protrusions, and the power button and the volume button are distinguished by the position of the buttons. Therefore, it needs to be pressed precisely above the buttons to trigger the corresponding button functions.
  • This embodiment is different from traditional mechanical buttons. Pressing any position in the sensor detection area can realize the function of the power button, and sliding (sliding up or down) at any position can realize volume increase or decrease.
  • the power switch function and the volume adjustment function can be distinguished by two different operation modes: pressing and sliding. In this way, the user only needs to find an area instead of a precise point, which improves the flexibility of operation.
  • the electronic device may indicate the sensor detection area on a screen close to the sensor detection area.
  • Step 701 Determine whether a pressure is detected in the detection area of the pressure sensor.
  • step 702 If yes, go to step 702; otherwise, go to step 701 again.
  • step 701 can be performed periodically to reduce power consumption.
  • T the period is T. If the result of a certain detection is: no pressing is detected in the detection area of the pressure sensor, the electronic device needs to wait for T time before performing the next detection. In practical applications, T can be set according to actual needs.
  • Step 702 Determine whether the pressing pressure is not less than the threshold Ft.
  • step 703 If yes, go to step 703; otherwise, go to step 701.
  • Step 703 Determine whether the pressing position is the vertex position A.
  • step 704 If not, go to step 704; otherwise, go to step 707.
  • Step 704 Determine whether the pressing position is the vertex position B.
  • step 705 If not, go to step 705; otherwise, go to step 708.
  • Step 705 Determine whether a pressing and sliding toward the vertex position A is detected, and the sliding distance exceeds the threshold L1.
  • step 706 If not, go to step 706; otherwise, go to step 709.
  • Step 706 Determine whether a pressing and sliding toward the vertex position B is detected, and the sliding distance exceeds the threshold L2.
  • step 710 If yes, go to step 710; otherwise, go to step 711.
  • Step 707 prompt the user that the current pressing has reached the vertex position A.
  • Step 708 prompt the user that the current pressing has reached the vertex position B.
  • Step 709 Execute operation instruction 1.
  • Step 710 Execute operation instruction 2.
  • one of the operation instruction 1 and the operation instruction 2 is used to trigger the electronic device to perform the volume up function, and the other is used to trigger the electronic device to perform the volume down function.
  • Step 711 Execute operation instruction 3.
  • Operation instruction 3 is used to trigger the electronic device to perform the power switch function.
  • the user presses or slides at any position of the button area to realize the power button input and volume adjustment without looking for a specific location, so that there is no need to damage the appearance to mark the button position, and at the same time achieve more convenient Operation improves the user experience.
  • the embodiment of the present invention also provides a control method, which can be applied to the electronic device provided in the embodiment of the present invention.
  • control method of the embodiment of the present invention includes the following steps:
  • Step 801 Detect a touch operation through the detection component.
  • Step 802 Execute a target function according to the touch operation; wherein, the target function includes at least one of a volume adjustment function and a power switch function.
  • the detection component includes a first sensor module
  • the executing the target function according to the touch operation includes:
  • the performing a volume adjustment function according to the sliding operation detected by the first sensor module includes:
  • the volume adjustment function is performed according to the target operation information of the sliding operation, where the target operation information includes at least one of the sliding direction and the sliding position information.
  • the performing a volume adjustment function according to at least one of the sliding direction and the sliding position information of the sliding operation includes:
  • the volume reduction function is performed.
  • the housing is provided with a first touch area corresponding to the position where the first sensor module is installed;
  • the sliding position information includes the end position of the sliding operation in the first touch area;
  • the performing a volume adjustment function according to at least one of the sliding direction and the sliding position information of the sliding operation includes:
  • the volume adjustment function is performed according to the end position.
  • the housing is provided with a first touch area corresponding to the position where the first sensor module is installed; the sliding position information includes the sliding distance of the sliding operation in the first touch area;
  • the performing a volume adjustment function according to at least one of the sliding direction and the sliding position information of the sliding operation includes:
  • the volume adjustment function is performed according to the sliding distance and the sliding direction of the sliding operation.
  • the detection component includes a second sensor module
  • the executing the target function according to the touch operation includes:
  • the power switch function is executed according to the pressing control operation detected by the second sensor module.
  • the executing the power switch function according to the pressing operation detected by the second sensor module includes:
  • the electronic device In the case that the electronic device is in the screen-on state, if the second sensor module detects a pressing operation, controlling the electronic device to enter the screen-off state;
  • the electronic device When the electronic device is in the off-screen state, if the second sensor module detects a pressing operation, the electronic device is controlled to enter the on-screen state.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)

Abstract

一种电子设备及其控制方法。电子设备包括:壳体(10),所述壳体具有收容腔(11);检测组件(20),设于所述收容腔内,用于检测触控操作;控制芯片(30),与所述检测组件连接,用于在所述检测组件检测的触控操作为第一触控操作的情况下执行第一目标功能,在所述检测组件检测的触控操作为第二触控操作的情况下执行第二目标功能;其中所述第一触控操作为按压操作,所述第二触控操作为滑动操作;所述第一目标功能和所述第二目标功能中的一个为音量调节功能,另一个为电源开关功能。

Description

电子设备及其控制方法
相关申请的交叉引用
本申请主张在2019年11月1日在中国提交的中国专利申请号No.201911060540.8的优先权,其全部内容通过引用包含于此。
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种电子设备及其控制方法。
背景技术
目前,电子设备为了实现功能控制,通常在电子设备上设置机械按键。例如手机通常采用音量加和音量减机械按键实现音量调节功能,采用电源机械按键实现电源开关功能。
然而,电子设备上设机械按键需要在电子设备的壳体上开口,破坏了电子设备的一体化,导致电子设备的可靠性较低。
发明内容
本发明实施例提供一种电子设备及其控制方法,以解决现有电子设备因设置机械按键导致可靠性较低的问题。
为解决上述问题,本发明是这样实现的:
第一方面,本发明实施例提供一种电子设备,该电子设备包括:
壳体,所述壳体具有收容腔;
检测组件,设于所述收容腔内,用于检测触控操作;
控制芯片,与所述检测组件连接,用于:在所述检测组件检测的触控操作为第一触控操作的情况下执行第一目标功能,在所述检测组件检测的触控操作为第二触控操作的情况下执行第二目标功能;
其中,所述第一触控操作为按压操作,所述第二触控操作为滑动操作;所述第一目标功能和所述第二目标功能中的一个为音量调节功能,另一个为电源开关功能。
第二方面,本发明实施例还提供了一种控制方法,应用于本发明实施例的电子设备,该方法包括:
通过所述检测组件检测触控操作;
根据所述触控操作执行目标功能;
其中,所述目标功能包括音量调节功能和电源开关功能中的至少一项。
在本发明实施例中,用于检测触控操作的检测组件设于壳体的收容腔内,控制芯片用于在所述检测组件检测的触控操作为按压操作的情况下执行第一目标功能,在所述检测组件检测的触控操作为滑动操作的情况下执行第二目标功能;其中,所述第一目标功能和所述第二目标功能中的一个为音量调节功能,另一个为电源开关功能。可见,本发明实施例可以在不开口的情况下实现音量调节功能和电源开关功能,从而可以提高电子设备的可靠性。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的电子设备的结构示意图;
图2是本发明实施例提供的检测组件的结构示意图;
图3是本发明实施例提供的控制芯片的结构示意图;
图4是本发明实施例提供的电容检测芯片的工作流程示意图;
图5是本发明实施例提供的压力检测芯片的工作流程示意图;
图6是本发明实施例提供的通用处理器的工作流程示意图;
图7是本发明实施例提供的电子设备的工作流程示意图;
图8是本发明实施例提供的控制方法的流程示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本申请中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。此外,本申请中使用“和/或”表示所连接对象的至少其中之一,例如A和/或B和/或C,表示包含单独A,单独B,单独C,以及A和B都存在,B和C都存在,A和C都存在,以及A、B和C都存在的7种情况。
本发明实施例提供一种电子设备。在实际应用中,电子设备可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(Personal Digital Assistant,PDA)、移动上网装置(Mobile Internet Device,MID)、可穿戴式设备(Wearable Device)或车载设备等。
以下对本发明实施例的电子设备进行说明。
如图1所示,电子设备可以但不仅限于包括:壳体10、检测组件20和控制芯片30。
其中,检测组件20用于检测触控操作。
控制芯片30与检测组件20连接,具体可以用于:在检测组件20检测的触控操作为第一触控操作的情况下执行第一功能,在检测组件20检测的触控操作为第二触控操作的情况下执行第二功能。
进一步地,所述第一触控操作可以为按压操作,所述第二触控操作可以为滑动操作,但不仅限于此;所述第一功能和所述第二功能中的一个为音量调节功能,另一个为电源开关功能。其中,音量调节功能可以用于调节电子设备音频输出的音量;电源开关功能可以用于控制电子设备的屏幕的工作状态,屏幕的工作状态包括亮屏状态和熄屏状态。
可见,在本发明实施例中,音量调节功能和电源开关功能对应不同操作类型的触控操作,在实际应用中,用户可以对检测组件20执行不同操作类型的触控操作,触发电子设备执行音量调节功能和电源开关功能。
具体实现时,可以包括以下实现方式:
第一实现方式:用户可以通过对检测组件20执行按压操作,触发电子设备执行电源开关功能;用户可以通过对检测组件20执行滑动操作,触发电子设备执行音量调节功能。
第二实现方式:用户可以通过对检测组件20执行滑动操作,触发电子设备执行电源开关功能;用户可以通过对检测组件20执行按压操作,触发电子设备执行音量调节功能。
另外,如图1所示,在本发明实施例中,壳体10包括收容腔11,检测组件20设于收容腔11内。壳体10相对于检测组件20的位置设有触控区域,用户在该触控区域执行按压操作和滑动操作。
这样,相比于现有技术中需要在壳体上开口以设置机械按键实现音量调节功能和电源开关功能,本发明实施例的电子设备的检测组件设于壳体的收容腔内,从而可以在不开口的情况下实现音量调节功能和电源开关功能,提高电子设备的可靠性。
以下对检测组件20的结构进行说明。
实施方式一、检测组件20包括第一传感器模组。
在该实施方式中,控制芯片30与第一传感器模组连接,壳体10对应安装第一传感器模组的位置设有第一触控区域。
可选的,控制芯片30用于:在所述第一传感器模组检测到的触控操作为所述滑动操作的情况下,执行音量调节功能。
在实际应用中,用户可以在第一触控区域执行滑动操作,以使第一传感器模组检测到滑动操作,进而触发控制芯片30执行音量调节功能。
可选的,控制芯片30具体可用于:根据所述滑动操作的目标操作信息执行音量调节功能,所述目标操作信息包括滑动方向和滑动位置信息中至少一项。
进一步地,滑动位置信息可以包括以下至少一项:所述滑动操作在所述第一触控区域的终止位置;所述滑动操作在所述第一触控区域的滑动距离。
不难理解的是,控制芯片30执行音量调节功能的方式与目标操作信息的具体表现形式相关。换句话说,对于不同表现形式的目标操作信息,控制芯 片30执行音量调节功能的方式可以不同。具体说明如下:
情况一、所述滑动操作的目标操作信息包括所述滑动操作的滑动方向。
可选的,控制芯片30具体可以用于:在所述滑动操作的滑动方向为第一滑动方向的情况下执行音量增加功能;在所述滑动操作的滑动方向为第二滑动方向的情况下执行音量减小功能。
应理解的是,执行音量增加功能时,音量调节方向为音量加方向,即增大音量;执行音量减功能时,音量调节方向为音量减方向,即减小音量。
在实际应用中,若用户在第一触控区域执行滑动操作,且滑动操作的滑动方向为第一滑动方向,则电子设备将增加音频输出的音量;若用户在第一触控区域执行滑动操作,且滑动操作的滑动方向为第一滑动方向,则电子设备将减小音频输出的音量。其中,第一滑动方向和第二滑动方向可以根据需求预先设定,本发明实施例对此不作限定。
可见,在情况一中,滑动操作可以用于确定音量调节方向。
情况二、所述滑动操作的目标操作信息包括所述滑动操作在所述第一触控区域的终止位置。
控制芯片30用于:根据所述终止位置执行音量调节功能。
具体实现时,第一触控区域中的位置与音量值具有对应关系。电子设备可以将所述终止位置对应的音量值确定为目标音量值,并按照所述目标音量值输出音频。
需要说明的是,本发明实施例并不限定电子设备获取所述终止位置的方式。
可见,在情况二中,滑动操作可以用于确定音频输出的目标音量值,所述目标音量值为所述滑动操作结束后音频输出的音量值。
情况三、所述滑动操作的目标操作信息包括所述滑动操作在所述第一触控区域的滑动距离和所述滑动操作的滑动方向。
控制芯片30用于:根据所述滑动距离和所述滑动操作的滑动方向执行音量调节功能。
其中,所述滑动距离可以用于确定音频输出的音量变量值。具体实现时,电子设备可以预先获取有滑动距离与音量变量值具有对应关系,从而在获取 所述滑动距离后,可以基于该对应关系确定音量变量值。需要说明的是,本发明实施例并不限定所述滑动距离的获取方式。
所述滑动操作的滑动方向用于确定音量调节方向。可选的,在所述滑动操作的滑动方向为第一滑动方向的情况下,可以确定音量调节方向为音量加方向;在所述滑动操作的滑动方向为第一滑动方向的情况下,可以确定音量调节方向为音量减方向。
记初始音量值为P1,目标音量值为P2,音量变量值为△P,其中,初始音量值为:接收滑动操作之前,电子设备音频输出的音量值;目标音量值为:滑动操作完成之后,电子设备音频输出的音量值。
若音量调节方向为音量加方向,则P2=P1+△P;若音量调节方向为音量减方向,则P2=P1-△P。
以下对第一传感器模组的结构进行说明。
可选的,所述第一传感器模组包括第一压力传感器和第一目标传感器中至少一项,所述第一目标传感器为电容传感器或超声波传感器。
压力传感器可以用于检测触控操作的触控力度和触控操作造成的形变量;目标传感器可以用于检测触控操作的触控位置。
在所述第一传感器模组包括所述第一压力传感器和所述第一目标传感器;的情况下,进一步地,所述第一传感器模组还包括第一传导件,所述第一压力传感器和所述第一目标传感器位于所述第一传导件的两相对侧;其中,所述第一目标传感器相对于所述第一触控区域的距离小于所述第一压力传感器相对于所述第一触控区域的距离。
具体实现时,所述第一目标传感器与所述第一触控区域固定连接,如:所述第一目标传感器与所述第一触控区域通过双面胶粘贴连接。
第一传导件用于传递所述第一传感器模组检测到的触控操作的触控力度和形变量。在实际应用中,传导件可以是钢片,但不仅限于此。
实施方式二、检测组件20包括第二传感器模组。
在该实施方式中,控制芯片30与第二传感器模组连接,壳体10对应安装第二传感器模组的位置设有第二触控区域。
可选的,控制芯片30用于:在所述第二传感器模组检测到的按压操作的 实施方式下执行电源开关功能。
在实际应用中,用户可以在第二触控区域执行按压操作,以使第二传感器模组检测到按压操作,进而触发控制芯片30执行电源开关功能。
具体实现时,所述控制芯片可以用于:
在所述电子设备处于亮屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入熄屏状态;
在所述电子设备处于熄屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入亮屏状态。
以下对第二传感器模组的结构进行说明。
可选的,所述第二传感器模组包括第二压力传感器和第二目标传感器中至少一项,所述第二目标传感器为电容传感器或超声波传感器。
进一步地,在所述第二传感器模组包括所述第二压力传感器和所述第二目标传感器的情况下,所述第二传感器模组还包括第二传导件,所述第二压力传感器和所述第二目标传感器位于所述第二传导件的两相对侧;其中,所述第二目标传感器相对于所述第二触控区域的距离小于所述第二压力传感器相对于所述第二触控区域的距离。
具体实现时,所述第二目标传感器与所述第二触控区域固定连接,如:所述第二目标传感器与所述第二触控区域通过双面胶粘贴连接。
第二传导件用于传递所述第二传感器模组检测到的触控操作的触控力度和形变量。
需要说明的是,在实际应用中,上述第一传感器模组和第二传感器模组可以是相同的传感器模组,也可以是不同的传感器模组,具体说明如下:
场景一、传感器模组与目标功能具有一对多的关系。
在场景一中,用户可以对同一传感器模组执行不同类型的触控操作,触发电子设备执行不同的目标功能。可选的,用户在该传感器模组执行按压操作,触发电子设备执行电源开关功能;用户在该传感器模组执行滑动操作,触发电子设备执行音量调节功能。
因此,对于场景一,上述第一传感器模组和第二传感器模组可以是相同的传感器模组。
场景二、传感器模组与目标功能具有一对一的对应关系。
在场景二中,若要触发电子设备执行某目标功能,则用户需要在该目标功能对应的传感器模组执行触控操作。
因此,对于场景二,上述第一传感器模组和第二传感器模组可以是不同的传感器模组。
可选的,上述第一传感器模组与音量调节功能对应,上述第二传感器模组与电源开关功能对应。具体实现时,若用户想触发电子设备执行音量调节功能,则对第一传感器模组执行触控操作;若用户想触发电子设备执行电源开关功能,则对第二传感器模组执行触控操作。
对于场景二,由于传感器模组与目标功能具有一对一的对应关系,电子设备是根据检测到触控操作的传感器模组,确定需要执行的目标功能,与检测到的触控操作的类型无关。因此,用户在不同传感器模组执行的触控操作的操作类型可以相同,也可以不同。
如:第一触控模式下,用户可以在第一传感器模组执行按压操作,触发电子设备执行音量调节功能;用户可以在第二传感器模组执行按压操作,触发电子设备执行电源开关功能。可见,在第二模式下,用户在不同传感器模组执行的触控操作的操作类型不同。
第二触控模式下,用户可以在第一传感器模组执行滑动操作,触发电子设备执行音量调节功能;用户可以在第二传感器模组执行按压操作,触发电子设备执行电源开关功能。可见,在第一模式下,用户在不同传感器模组执行的触控操作的操作类型不同。
在实际应用中,电子设备可以设置多个触控模式,用户可以根据自身需求选择触控模式,从而可以提高操作的灵活度。
可见,相比于场景二,一方面,场景一可以减少传感器模组的设置数量,从而降低检测组件的成本;另一方面,在场景一中,用户可以在同一触控区域执行不同类型的触控操作以触发电子设备执行不同功能,从而可以降低误操作率。
相比于场景一,在场景二中,用户可以在不同传感器模组执行相同或不同操作类型的触控操作,触发电子设备执行不同的目标功能,从而可以提高 对传感器模组操作的灵活度。
需要说明的是,本发明实施例中介绍的多种可选的实施方式,在彼此不冲突的情况下可以相互结合实现,也可以单独实现,对此本发明实施例不作限定。
为方便理解,示例说明如下:
第一实施例
在第一实施例中,电子设备的检测组件20可以如图2所示,控制芯片30可以如图3所示。
如图2所示,检测组件20可以包括第一传感器模组21和第二传感器模组22。进一步地,第一传感器模组21包括电容传感器C1~C4、压力传感器F1和F2。第二传感器模组22包括电容传感器C5和压力传感器F3。
第一传感器模组21和第二传感器模组22的传导件一体成型,一体成型的传导件在图2中标记为23。电容传感器C1~C5设于传导件的上端;压力传感器F1~F3设于传导件的下端。另外,压力传感器F1设置在电容传感器C1的下方,压力传感器F2设置在电容传感器C3的下方,压力传感器F3设置在电容传感器C5的下方。在实际应用中,各电容传感器远离传导件的一端与壳体10固定连接。
对于图2的检测组件20,传感器模组与目标功能具有一对一的对应关系。具体地,第一传感器模组21可以与音量调节功能对应;第二传感器模组22可以与电源开关功能对应。
这样,由前述内容可知,该电子设备可以设有如上所述的第一触控模式和第二触控模式。
在第一触控模式下,用户可以在第一传感器模组执行按压操作,触发电子设备执行音量调节功能;用户可以在第二传感器模组执行按压操作,触发电子设备执行电源开关功能。
在第二触控模式下,用户可以在第一传感器模组执行滑动操作,触发电子设备执行音量调节功能;用户可以在第二传感器模组执行按压操作,触发电子设备执行电源开关功能。
对于第一触控模式,电容传感器C1对应音量加功能,电容传感器C3对 应音量减功能,电容传感器C5对应电源开关功能。
对于第二触控模式,电容传感器C1~C4对应音量调节功能,电容传感器C5对应电源开关功能。
如图3所示,控制芯片30可以包括压力检测芯片、电容检测芯片、电源管理芯片和通用处理器,其各元件之间的连接关系可参见图3,此处不再赘述。
另外,电容检测芯片与电容器C1~C5连接,用于处理各电容传感器输出的信号。压力检测芯片连接压力传感器F1~F3,用于处理接收各压力传感器输出的信号。通用处理器用于执行目标功能。
在实际应用中,电容检测芯片、压力检测芯片和通用处理器的工作状态与电子设备当前所处的触控模式相关,具体说明如下。
第一场景、电子设备当前所处的模式为上述第一触控模式。
在第一场景中,电容检测芯片可以仅处理C1_in信号、C3_in信号和C5_in信号。
具体地,电容检测芯片可以将接收到的上述信号分别与设定阈值A进行比较,若上述信号大于设定阈值A,则可以向压力检测芯片输出与上述信号对应的信号。
示例性的,若C1_in信号大于阈值A,则向压力检测芯片输出C1_out信号,否则不输出C1_out信号。
若C3_in信号大于阈值A,则向压力检测芯片输出C3_out信号,否则不输出C3_out信号。
若C5_in信号大于阈值A,则向压力检测芯片输出C5_out信号,否则不输出C5_out信号。
压力检测芯片在接收到电容检测芯片输出的信号时,可以根据从电容检测芯片接收到的信号,启动对应的压力传感器进行压力检测,之后,输出与压力检测结果对应的信号。
具体地,若压力检测芯片接收到C1_out信号,即C1_out信号有效,则压力检测芯片可以启动压力传感器F1进行压力检测,并接收压力传感器F1输出的F1_P/N信号,如果判定F1_P/N信号大于阈值B,则可以向电源管理 芯片输出音量加信号,从而通过通用处理器增大电子设备音频输出的音量。
若压力检测芯片接收到C3_out信号,即C3_out信号有效,则压力检测芯片可以启动压力传感器F2进行压力检测,并接收压力传感器F2输出的F2_P/N信号,如果判定F2_P/N信号大于阈值B,则可以向电源管理芯片输出音量减信号,从而通过通用处理器减小电子设备的音频输出的音量。
若压力检测芯片接收到C5_out信号,即C5_out信号有效,则压力检测芯片可以启动压力传感器F3进行压力检测,并接收压力传感器F3输出的F3_P/N信号,如果判定F3_P/N信号大于阈值B,则可以向电源管理芯片输出电源开关信号,从而通过通用处理器切换电子设备屏幕的工作状态。
在实际应用中,C1_out信号有效时可以不对C3_out信号进行判断;相应地,C3_out信号有效时可以不对C1_out信号进行判断,从而可以避免任务执行冲突。
第二场景、电子设备当前所处的模式为上述第二触控模式。
在第二场景中,电容检测芯片可以处理C1_in信号、C2_in信号、C3_in信号、C4_in信号以及C5_in信号。
具体地,电容检测芯片可以将接收到的上述信号分别与设定阈值C进行比较。在第二触控模式下,电容传感器C1~C4对应音量调节功能,电容传感器C5对应电源开关功能。因此,电容检测芯片对C1_in信号、C2_in信号、C3_in信号、C4_in信号的处理方式,与对C5_in信号的处理方式不同,具体说明如下。
对于C1_in信号、C2_in信号、C3_in信号、C4_in信号,若其中有一个信号大于阈值C,说明存在滑动操作,则电容检测芯片可以向通用处理器输出滑动中断信号。
另外,电容检测芯片还可以输出手指当前的触控位置,以使通用处理器获取以下至少一项:滑动操作的滑动方向;滑动操作的终止位置;滑动操作的滑动距离,进而进行音量调节。
电容检测芯片可以通过以下公式计算手指的当前触控位置L:
Figure PCTCN2020125300-appb-000001
其中,n为电容传感器的数量;R为触控位置的总数量;x为n个电容传 感器中输出信号最大的电容传感器的标号,即手指所触控的电容传感器的标号;S x为电容传感器x输出的信号,即上述Cx_in信号。
以图2所示的检测组件为例,n=4,记电容传感器C1的标号为1,电容传感器C2的标号为2,电容传感器C3的标号为3,电容传感器C4的标号为4。另外,假设R=30。
若手指在最左端,即电容传感器C1位置,则x=1,S x-1=0(S x-1不存在),S x+1=2,则L=0。
若手指向右滑动到电容传感器C2位置,则x=2,S 2最大,假设S 1=S 3,则位置=30/3=10。
若手指向右滑动到电容传感器C3位置,则x=3,S 3最大,假设S 2=S 4,则位置=30×2/3=20。
若手指在最右端,即电容传感器C4位置,则x=4,S x+1=0(S x+1不存在),S x-1=3,则位置=30×3/3=30。
当手指位于电容传感器C1和电容传感器C2之间,括号内的值介于1~2,计算出来的值介于0~10之间。
当手指位于电容传感器C2和电容传感器C3之间,括号内的值介于2~3,计算出来的值介于10~20之间。
当手指位于电容传感器C3和电容传感器C4之间,括号内的值介于3~4,计算出来的值介于20~30之间。
对于C5_in信号,若其大于阈值C,则电容检测芯片可以向压力检测芯片输出C5_out。
压力检测芯片接收到C5_out信号,即C5_out信号有效后,可以启动压力传感器F3进行压力检测,并接收压力传感器F3输出的F3_P/N信号,如果判定F3_P/N信号大于阈值B,则可以向电源管理芯片输出电源开关信号,从而通过通用处理器切换电子设备屏幕的工作状态。
为方便理解,以下通过图4对电容检测芯片的工作流程进行说明,通过图5对压力检测芯片的工作流程进行说明,通过图6对通用处理器的工作流程进行说明。
如图4所示,电容检测芯片的工作流程可以包括以下步骤:
步骤401、判断电子设备是否处于第二触控模式。
若是,则执行步骤402;否则执行步骤406。
步骤402、采集电容传感器C1~C5输出的信号C1_in~C5_in。
步骤403、判断C1_in~C5_in中是否存在大于阈值C的值。
若有,则执行步骤404。
步骤404、计算触控位置L。
计算公式可以参考上述描述,此处不再赘述。
步骤405、输出滑动中断信号。
可选的,所述滑动终端信号可以包括触控位置L。
步骤406、判断C1_in是否大于阈值A。
若是,则执行步骤407;否则,执行步骤408。
步骤407、输出C1_out。
步骤408、判断C3_in是否大于阈值A。
若是,则执行步骤409;否则执行步骤410。
步骤409、输出C3_out。
步骤410、判断C5_in是否大于阈值A。
若是,则执行步骤411;否则,执行步骤401。
步骤411、输出C5_out。
如图5所示,压力检测芯片的工作流程可以包括以下步骤:
步骤501、判断C1_out是否有效。
若是,则执行步骤502,否则执行步骤507。
步骤502、判断压力传感器F1检测到的压力值是否超过阈值B。
若是,则执行步骤503;否则执行步骤504。
步骤503、输出音量加信号。
步骤504、判断C5_out是否有效。
若是,则执行步骤505;否则执行步骤501。
步骤505、判断压力传感器F3检测到的压力值是否超过阈值B。
若是,执行步骤506;否则执行步骤501。
步骤506、输出电源开关信号。
步骤507、判断C3_out是否有效。
若是,则执行步骤508;否则执行步骤504。
步骤508、判断压力传感器F2检测到的压力值是否超过阈值B。
若是,则执行步骤509;否则执行步骤504。
步骤509、输出音量减信号。
如图6所示,通用处理器的工作流程可以包括以下步骤:
步骤601、判断电子设备是否处于第二触控模式。
若是,则执行步骤602;否则执行步骤。
步骤602、判断是否接收到滑动中断信号。
若是,则执行步骤603;否则执行步骤609。
步骤603、读取触控位置并清除滑动中断信号。
步骤604、根据读取的触控位置的变化量,调节音量大小。
步骤605、判断是否接收到音量加信号。
若是,则执行步骤606;否则执行步骤607。
步骤606、增大音量。
步骤607、判断是否接收到音量减信号。
若是,则执行步骤608;否则执行步骤609。
步骤608、减小音量。
步骤609、判断是否接收到电源开关信号。
若是执行步骤610;否则执行步骤601。
步骤610、切换屏幕状态。
本实施例通过设置压力传感器和电容传感器,可以在不开口的情况下实现音量调节功能和电源开关功能,从而可以提高电子设备的可靠性。另外,只有当电容传感器和压力传感器同时有效时才执行相应功能,从而可以功能的误触发率。电容传感器检测位置和位置的变化,增加滑动音量调节功能,提升触控操作的丰富度。
第二实施例
在第二实施例中,电子设备可以在边框处装有传感器模组,可实现区域内的按压和滑动检测。模组可以包含一个或多个压力检测通道,实现区域按 压功能;模组还包含滑动检测功能,可通过电容、超声或者压力检测实现。传感器检测区域替代传统机械按键区(音量加机械按键、音量减机械按键、电源机械按键),传感器检测区域可以大于传统按键区域。用户在传感器检测区域内任意位置按压实现电源键,上滑实现音量加,下滑实现音量减。
传统机械按键有突起,且通过按键位置来区分电源键和音量键,因此需要精确按压到按键上方,才能触发相应按键功能。本实施例有别于传统机械按键,在传感器检测区域任意位置按压即可实现电源键的功能,任意位置滑动(上滑或者下滑)即可实现音量加或者音量减。电源开关功能和音量调节功能可以通过按压和滑动两种不同的操作方式来区分。这种,用户只需要寻找一个区域,而不是精确的点,提高了操作的灵活度。
可选的,为方便用户熟悉传感器检测区域,当手指触摸到传感器检测区域时,电子设备可以在靠近传感器检测区域的屏幕上指示传感器检测区域。
本实施例基于压力传感器的操作流程可以参见图7。
如图7所示,可以包括以下步骤:
步骤701、判断压力传感器检测区域是否检测到按压。
若是,则执行步骤702;否则可以重新执行步骤701。
具体实现时,步骤701可以周期性执行,以降低耗电。
示例性的,假设周期为T。若某次检测的结果为:压力传感器检测区域未检测到按压,则电子设备需等待T时间后,才执行下一次检测。在实际应用中,T可根据实际需求设置。
步骤702、判断按压压力是否不小于阈值Ft。
若是,则执行步骤703;否则执行步骤701。
步骤703、判断按压位置是否是顶点位置A。
若否,则执行步骤704;否则执行步骤707。
步骤704、判断按压位置是否是顶点位置B。
若否,则执行步骤705;否则执行步骤708。
步骤705、判断是否检测有朝向顶点位置A的按压滑动,且滑动距离超过阈值L1。
若否,则执行步骤706;否则执行步骤709。
步骤706、判断是否检测有朝向顶点位置B的按压滑动,且滑动距离超过阈值L2。
若是,则执行步骤710;否则执行步骤711。
步骤707、提示用户当前按压已到顶点位置A。
步骤708、提示用户当前按压已到顶点位置B。
步骤709、执行操作指令1。
步骤710、执行操作指令2。
具体实现时,操作指令1和操作指令2中的一个用于触发电子设备执行音量加功能,另一个用于触发电子设备执行音量减功能。
步骤711、执行操作指令3。
操作指令3用于触发电子设备执行电源开关功能。
在本实施例中,用户在按键区域任何位置进行按压或者滑动操作,即可实现电源键输入和音量调节,无需寻找某一个具体的位置,从而无需破坏外观做按键位置标识,同时实现更便捷的操作,提高了用户体验。
本发明实施例还提供一种控制方法,可以应用于本发明实施例提供的电子设备。
如图8所示,本发明实施例的控制方法包括如下步骤:
步骤801、通过所述检测组件检测触控操作。
步骤802、根据所述触控操作执行目标功能;其中,所述目标功能包括音量调节功能和电源开关功能中的至少一项。
可选的,所述检测组件包括第一传感器模组;
所述根据所述触控操作执行目标功能,包括:
根据所述第一传感器模组检测到的滑动操作执行音量调节功能。
可选的,所述根据所述第一传感器模组检测到的滑动操作执行音量调节功能,包括:
根据所述滑动操作的目标操作信息执行音量调节功能,所述目标操作信息包括滑动方向和滑动位置信息中的至少一项。
可选的,所述根据所述滑动操作的滑动方向和滑动位置信息中的至少一项执行音量调节功能,包括:
在所述滑动操作的滑动方向为第一滑动方向的情况下执行音量增加功能;
在所述滑动操作的滑动方向为第二滑动方向的情况下执行音量减小功能。
可选的,所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;所述滑动位置信息包括所述滑动操作在所述第一触控区域的终止位置;
所述根据所述滑动操作的滑动方向和滑动位置信息中的至少一项执行音量调节功能,包括:
根据所述终止位置执行音量调节功能。
可选的,所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;所述滑动位置信息包括所述滑动操作在所述第一触控区域的滑动距离;
所述根据所述滑动操作的滑动方向和滑动位置信息中的至少一项执行音量调节功能,包括:
根据所述滑动距离和滑动操作的滑动方向执行音量调节功能。
可选的,所述检测组件包括第二传感器模组;
所述根据所述触控操作执行目标功能,包括:
根据所述第二传感器模组检测到的按压控操作执行电源开关功能。
可选的,所述根据所述第二传感器模组检测到的按压操作执行电源开关功能,包括:
在所述电子设备处于亮屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入熄屏状态;
在所述电子设备处于熄屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入亮屏状态。
需要说明的是,本发明实施例提供的控制方法的实现原理可参考前述关于电子设备的描述,此处不再赘述。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (20)

  1. 一种电子设备,包括:
    壳体,所述壳体具有收容腔;
    检测组件,设于所述收容腔内,用于检测触控操作;
    控制芯片,与所述检测组件连接,用于:在所述检测组件检测的触控操作为第一触控操作的情况下执行第一目标功能,在所述检测组件检测的触控操作为第二触控操作的情况下执行第二目标功能;
    其中,所述第一触控操作为按压操作,所述第二触控操作为滑动操作;所述第一目标功能和所述第二目标功能中的一个为音量调节功能,另一个为电源开关功能。
  2. 根据权利要求1所述的电子设备,其中,所述检测组件包括第一传感器模组,所述控制芯片用于:在所述第一传感器模组检测到的触控操作为所述滑动操作的情况下,执行音量调节功能。
  3. 根据权利要求2所述的电子设备,其中,所述控制芯片用于:根据所述滑动操作的目标操作信息执行音量调节功能,所述目标操作信息包括滑动方向和滑动位置信息中至少一项。
  4. 根据权利要求3所述的电子设备,其中,所述控制芯片用于:
    在所述滑动操作的滑动方向为第一滑动方向的情况下执行音量增加功能;
    在所述滑动操作的滑动方向为第二滑动方向的情况下执行音量减小功能。
  5. 根据权利要求3所述的电子设备,其中,所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;所述滑动位置信息包括所述滑动操作在所述第一触控区域的终止位置;
    所述控制芯片用于:根据所述终止位置执行音量调节功能。
  6. 根据权利要求3所述的电子设备,其中,所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;所述滑动位置信息包括所述滑动操作在所述第一触控区域的滑动距离;
    所述控制芯片用于:根据所述滑动距离和所述滑动操作的滑动方向执行音量调节功能。
  7. 根据权利要求2所述的电子设备,其中,所述第一传感器模组包括第一压力传感器和第一目标传感器中至少一项,所述第一目标传感器为电容传感器或超声波传感器。
  8. 根据权利要求7所述的电子设备,其中,所述第一传感器模组包括所述第一压力传感器和所述第一目标传感器;所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;
    所述第一传感器模组还包括第一传导件,所述第一压力传感器和所述第一目标传感器位于所述第一传导件的两相对侧;
    其中,所述第一目标传感器相对于所述第一触控区域的距离小于所述第一压力传感器相对于所述第一触控区域的距离。
  9. 根据权利要求1所述的电子设备,其中,所述检测组件包括第二传感器模组,所述控制芯片用于:在所述第二传感器模组检测到的按压操作的情况下执行电源开关功能。
  10. 根据权利要求9所述的电子设备,其中,所述控制芯片用于:
    在所述电子设备处于亮屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入熄屏状态;
    在所述电子设备处于熄屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入亮屏状态。
  11. 根据权利要求9所述的电子设备,其中,所述第二传感器模组包括第二压力传感器和第二目标传感器中至少一项,所述第二目标传感器为电容传感器或超声波传感器。
  12. 根据权利要求11所述的电子设备,其中,所述第二传感器模组包括所述第二压力传感器和所述第二目标传感器;所述壳体对应安装所述第二传感器模组的位置设有第二触控区域;
    所述第二传感器模组还包括第二传导件,所述第二压力传感器和所述第二目标传感器位于所述第二传导件的两相对侧;
    其中,所述第二目标传感器相对于所述第二触控区域的距离小于所述第二压力传感器相对于所述第二触控区域的距离。
  13. 一种控制方法,应用于如权利要求1至12中任一项所述的电子设备, 所述方法包括:
    通过所述检测组件检测触控操作;
    根据所述触控操作执行目标功能;
    其中,所述目标功能包括音量调节功能和电源开关功能中的至少一项。
  14. 根据权利要求13所述的方法,其中,所述检测组件包括第一传感器模组;
    所述根据所述触控操作执行目标功能,包括:
    根据所述第一传感器模组检测到的滑动操作执行音量调节功能。
  15. 根据权利要求14所述的方法,其中,所述根据所述第一传感器模组检测到的滑动操作执行音量调节功能,包括:
    根据所述滑动操作的目标操作信息执行音量调节功能,所述目标操作信息包括滑动方向和滑动位置信息中的至少一项。
  16. 根据权利要求15所述的方法,其中,所述根据所述滑动操作的滑动方向和滑动位置信息中的至少一项执行音量调节功能,包括:
    在所述滑动操作的滑动方向为第一滑动方向的情况下执行音量增加功能;
    在所述滑动操作的滑动方向为第二滑动方向的情况下执行音量减小功能。
  17. 根据权利要求15所述的方法,其中,所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;所述滑动位置信息包括所述滑动操作在所述第一触控区域的终止位置;
    所述根据所述滑动操作的滑动方向和滑动位置信息中的至少一项执行音量调节功能,包括:
    根据所述终止位置执行音量调节功能。
  18. 根据权利要求15所述的方法,其中,所述壳体对应安装所述第一传感器模组的位置设有第一触控区域;所述滑动位置信息包括所述滑动操作在所述第一触控区域的滑动距离;
    所述根据所述滑动操作的滑动方向和滑动位置信息中的至少一项执行音量调节功能,包括:
    根据所述滑动距离和滑动操作的滑动方向执行音量调节功能。
  19. 根据权利要求13所述的方法,其中,所述检测组件包括第二传感器 模组;
    所述根据所述触控操作执行目标功能,包括:
    根据所述第二传感器模组检测到的按压控操作执行电源开关功能。
  20. 根据权利要求19所述的方法,其中,所述根据所述第二传感器模组检测到的按压操作执行电源开关功能,包括:
    在所述电子设备处于亮屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入熄屏状态;
    在所述电子设备处于熄屏状态的情况下,若所述第二传感器模组检测到按压操作,则控制所述电子设备进入亮屏状态。
PCT/CN2020/125300 2019-11-01 2020-10-30 电子设备及其控制方法 WO2021083334A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911060540.8 2019-11-01
CN201911060540.8A CN110837320B (zh) 2019-11-01 2019-11-01 电子设备及其控制方法

Publications (1)

Publication Number Publication Date
WO2021083334A1 true WO2021083334A1 (zh) 2021-05-06

Family

ID=69575883

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/125300 WO2021083334A1 (zh) 2019-11-01 2020-10-30 电子设备及其控制方法

Country Status (2)

Country Link
CN (1) CN110837320B (zh)
WO (1) WO2021083334A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691655A (zh) * 2021-08-02 2021-11-23 维沃移动通信有限公司 一种电子设备
CN113917847A (zh) * 2021-09-27 2022-01-11 广东美的厨房电器制造有限公司 家用电器及其控制方法、控制装置和可读存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837320B (zh) * 2019-11-01 2022-04-26 维沃移动通信有限公司 电子设备及其控制方法
CN111447761B (zh) * 2020-03-27 2021-09-14 维沃移动通信有限公司 电子设备
CN113973148A (zh) * 2020-07-24 2022-01-25 深圳市万普拉斯科技有限公司 一种压力三段式按键的实现方法及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202975909U (zh) * 2012-12-04 2013-06-05 广东欧珀移动通信有限公司 移动终端
CN105100386A (zh) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 一种终端全触控按键的实现方法及装置
CN110837320A (zh) * 2019-11-01 2020-02-25 维沃移动通信有限公司 电子设备及其控制方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277588A (ja) * 2005-03-30 2006-10-12 Clarion Co Ltd タッチパネル及びタッチパネルを備えた電子機器
CN104915073B (zh) * 2014-03-14 2018-06-01 敦泰科技有限公司 一种手持式触控装置
CN110062092A (zh) * 2019-04-22 2019-07-26 贵阳高新网用软件有限公司 一种全面屏虚拟侧边按键装置
CN110286805B (zh) * 2019-06-28 2023-04-25 Oppo广东移动通信有限公司 电子设备及其控制方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202975909U (zh) * 2012-12-04 2013-06-05 广东欧珀移动通信有限公司 移动终端
CN105100386A (zh) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 一种终端全触控按键的实现方法及装置
CN110837320A (zh) * 2019-11-01 2020-02-25 维沃移动通信有限公司 电子设备及其控制方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691655A (zh) * 2021-08-02 2021-11-23 维沃移动通信有限公司 一种电子设备
CN113691655B (zh) * 2021-08-02 2024-02-06 维沃移动通信有限公司 一种电子设备
CN113917847A (zh) * 2021-09-27 2022-01-11 广东美的厨房电器制造有限公司 家用电器及其控制方法、控制装置和可读存储介质

Also Published As

Publication number Publication date
CN110837320A (zh) 2020-02-25
CN110837320B (zh) 2022-04-26

Similar Documents

Publication Publication Date Title
WO2021083334A1 (zh) 电子设备及其控制方法
US8395584B2 (en) Mobile terminals including multiple user interfaces on different faces thereof configured to be used in tandem and related methods of operation
US9696767B2 (en) Command recognition method including determining a hold gesture and electronic device using the method
US9575654B2 (en) Touch device and control method thereof
CN109428969B (zh) 双屏终端的边缘触控方法、装置及计算机可读存储介质
US20140300559A1 (en) Information processing device having touch screen
JP2021508881A (ja) アイコン管理方法及び装置
US20120131490A1 (en) Touch-controlled device and method for displaying a virtual keyboard on the touch-controlled device thereof
US7742038B2 (en) Method for detecting overlapped function area on a touchpad
EP3584712A1 (en) Type-c interface control circuit, control method, and mobile terminal
EP2624107A2 (en) Method of operating multi-touch panel and terminal supporting the same
US20110310024A1 (en) Portable terminal device and display control method
US20130201118A1 (en) Method for touch processing and mobile terminal
TW201531895A (zh) 觸控介面多工切換方法、系統及電子裝置
JP5846129B2 (ja) 情報処理端末およびその制御方法
US20120120004A1 (en) Touch control device and touch control method with multi-touch function
CN105159556A (zh) 一种界面操作方法及电子终端
CN107450820B (zh) 界面控制方法及移动终端
US10838596B2 (en) Task switching method and terminal
CN102023735A (zh) 一种触摸输入设备、电子设备及手机
EP2955619A1 (en) Mobile terminal and application control method therefor
CN110837318A (zh) 移动终端折叠屏的防误触方法、装置及存储介质
JP5854928B2 (ja) タッチ検出機能を有する電子機器、プログラムおよびタッチ検出機能を有する電子機器の制御方法
TWI460623B (zh) 觸控式電子裝置及其相關控制方法
EP2518609A1 (en) Portable electronic device and method for controlling the same

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: 20882059

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: 20882059

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20882059

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 28.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20882059

Country of ref document: EP

Kind code of ref document: A1