CN113411452A - Key control method and device based on mobile terminal and terminal equipment - Google Patents

Key control method and device based on mobile terminal and terminal equipment Download PDF

Info

Publication number
CN113411452A
CN113411452A CN202110710300.9A CN202110710300A CN113411452A CN 113411452 A CN113411452 A CN 113411452A CN 202110710300 A CN202110710300 A CN 202110710300A CN 113411452 A CN113411452 A CN 113411452A
Authority
CN
China
Prior art keywords
key
mobile terminal
mechanical
resistor
mechanical key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110710300.9A
Other languages
Chinese (zh)
Other versions
CN113411452B (en
Inventor
范建功
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202110710300.9A priority Critical patent/CN113411452B/en
Publication of CN113411452A publication Critical patent/CN113411452A/en
Application granted granted Critical
Publication of CN113411452B publication Critical patent/CN113411452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/23Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The text discloses a key control method, a key control device and terminal equipment based on a mobile terminal, which belong to the technical field of mobile terminals, and the method comprises the following steps: arranging a mechanical key in a capacitive touch key area of the mobile terminal; the capacitive touch key and the mechanical key are switched by the switch control circuit; through fusing electric capacity touch key and mechanical button together, the user can switch as required, has effectively solved the tired problem of finger promptly, has also given the very audio-visual sense of touch of user, has improved user experience.

Description

Key control method and device based on mobile terminal and terminal equipment
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a key control method and apparatus based on a mobile terminal, and a terminal device.
Background
In recent years, with the blowout development of the game industry and the 5G technology, mobile phone games are more and more favored by young players, particularly the emergence of 5G mobile phones, so that the problem of network delay is greatly solved, the trend of computer game handset organization is developed, various large mobile phone manufacturers also expand more products in the game direction, and game series mobile phones are also disputed by various large mobile phone manufacturers, such as a red magic, a black shark, an IQOO and the like. In order to solve the problem, each mobile phone manufacturer designs a physical mechanical key on the mobile phone, and maps the mechanical key operation to a corresponding area of a mobile phone interface through software, so that the problem of more operation keys is solved, the mechanical key can enable a user to obviously perceive the key, the hand feeling is very good, but if the mechanical key is pressed for a long time, fingers are tired very, the action is not consistent, and the game experience is influenced.
Disclosure of Invention
The invention provides a key control method, a key control device and terminal equipment based on a mobile terminal, and a user can switch according to needs by fusing a capacitive touch key and a mechanical key, so that the problem of finger fatigue is effectively solved, the user is provided with very visual touch, and the user experience is improved.
The technical scheme adopted for solving the technical problems is as follows:
according to one aspect of the present disclosure, there is provided a key control method based on a mobile terminal, including:
arranging a mechanical key in a capacitive touch key area of the mobile terminal;
the switch control circuit switches the capacitive touch key and the mechanical key.
Optionally, the switch control circuit comprises: electric capacity touch chip, motor drive circuit, MOS pipe N1, MOS pipe N2, resistance R3 and resistance R4, electric capacity touch chip with copper foil in the electric capacity touch key region is connected, motor drive circuit with the mechanical axis of rotation that machinery button corresponds is connected, electric capacity touch chip with motor drive circuit still is connected with central control system, electric capacity touch chip's VTINThe terminal is connected with the source electrode of the MOS transistor N1, and the drain electrode of the MOS transistor N1 is connected with a power supply VTThe grid electrode of the MOS transistor N1 is connected with the node GPIO-T and one end of the resistor R3, and the other end of the resistor R3 is grounded; v of the motor drive circuitMINThe terminal is connected with the source electrode of the MOS transistor N2, and the drain electrode of the MOS transistor N2 is connected with a power supply VMThe gate of the MOS transistor N2 is connected to the node GPIO-M and one end of the resistor R4, and the other end of the resistor R4 is grounded.
Optionally, the switching the capacitive touch key and the mechanical key by the switch control circuit includes:
when the mobile terminal is controlled by the capacitor touch key, the capacitor touch chip is powered on, so that the capacitor touch key starts to work; the motor driving circuit is powered off, and the mechanical key is hidden inside the middle frame of the mobile terminal;
when the mechanical key is selected to control the mobile terminal, the capacitive touch chip is powered off, so that the capacitive touch key stops working; and the motor driving circuit is electrified, and the mechanical key is ejected out of the middle frame of the mobile terminal through the mechanical transmission shaft.
Optionally, the mechanical key is further connected to an anti-shake circuit, and the anti-shake circuit includes: the contact C of the mechanical key is grounded, the contact A of the mechanical key is connected with one end of a resistor R1 and one output end of a NAND gate NAND1, the contact B of the mechanical key is connected with one end of a resistor R2 and one output end of a NAND gate NAND2, and the other end of the resistor R1 and the other end of the resistor R2 are connected with a power supply VddThe input end of the NAND gate 1 is connected with the central control system and the other output end of the NAND gate 2, and the other output end of the NAND gate 1 is connected with the input end of the NAND gate 2.
Optionally, the switch control circuit may also perform timing switching on the capacitive touch key and the mechanical key through a Central Processing Unit (CPU) timing system.
According to another aspect of the present disclosure, there is provided a mobile terminal-based key control apparatus including:
the setting module is used for setting a mechanical key in a capacitive touch key area of the mobile terminal;
and the switching module is used for switching the capacitive touch key and the mechanical key through the switch control circuit.
Optionally, the switch control circuit comprises: capacitor touch chip, motor drive circuit, MOS pipe N1, MOS pipe N2, resistance R3 and resistance R4, capacitor touch chip with copper foil in the capacitor touch key region is connected, motor driveThe circuit is connected with the mechanical rotating shaft corresponding to the mechanical key, the capacitive touch chip and the motor driving circuit are also connected with a central control system, and the V of the capacitive touch chipTINThe terminal is connected with the source electrode of the MOS transistor N1, and the drain electrode of the MOS transistor N1 is connected with a power supply VTThe grid electrode of the MOS transistor N1 is connected with the node GPIO-T and one end of the resistor R3, and the other end of the resistor R3 is grounded; v of the motor drive circuitMINThe terminal is connected with the source electrode of the MOS transistor N2, and the drain electrode of the MOS transistor N2 is connected with a power supply VMThe gate of the MOS transistor N2 is connected to the node GPIO-M and one end of the resistor R4, and the other end of the resistor R4 is grounded.
Optionally, the switching module includes:
the first switching unit is used for enabling the capacitive touch control chip to be electrified when the capacitive touch control key is selected to control the mobile terminal, so that the capacitive touch control key starts to work; the motor driving circuit is powered off, and the mechanical key is hidden inside the middle frame of the mobile terminal;
the second switching unit is used for enabling the capacitive touch control chip to lose power and enabling the capacitive touch control key to stop working when the mechanical key is selected to control the mobile terminal; and the motor driving circuit is electrified, and the mechanical key is ejected out of the middle frame of the mobile terminal through the mechanical transmission shaft.
Optionally, the mechanical key is further connected to an anti-shake circuit, and the anti-shake circuit includes: the contact C of the mechanical key is grounded, the contact A of the mechanical key is connected with one end of a resistor R1 and one output end of a NAND gate NAND1, the contact B of the mechanical key is connected with one end of a resistor R2 and one output end of a NAND gate NAND2, and the other end of the resistor R1 and the other end of the resistor R2 are connected with a power supply VddThe input end of the NAND gate 1 is connected with the central control system and the other output end of the NAND gate 2, and the other output end of the NAND gate 1 is connected with the input end of the NAND gate 2.
According to a further aspect of the present disclosure, a terminal device is provided, which includes the above-mentioned key control device based on a mobile terminal.
The embodiment of the invention provides a key control method, a key control device and terminal equipment based on a mobile terminal, wherein the method comprises the following steps: arranging a mechanical key in a capacitive touch key area of the mobile terminal; the capacitive touch key and the mechanical key are switched by the switch control circuit; through fusing electric capacity touch key and mechanical button together, the user can switch as required, has effectively solved the tired problem of finger promptly, has also given the very audio-visual sense of touch of user, has improved user experience.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of a key control method based on a mobile terminal according to an embodiment of the present invention;
fig. 4 is a functional module schematic diagram of a mobile terminal-based key control system according to an embodiment of the present invention;
fig. 5 is a circuit diagram of a switch control circuit according to an embodiment of the present invention;
fig. 6 is a circuit diagram of an anti-jitter circuit according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating an exemplary structure of a mobile terminal-based key control device according to a second embodiment of the present invention;
fig. 8 is a block diagram illustrating an exemplary structure of the switching module in fig. 7.
The objects, features, and advantages described herein will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer and more obvious, the present invention is further described in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not restrictive.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
As shown in fig. 3, in this embodiment, a key control method based on a mobile terminal includes:
s10, arranging a mechanical key in a capacitive touch key area of the mobile terminal;
and S20, switching the capacitive touch key and the mechanical key through the switch control circuit.
In this embodiment, through being in the same place electric capacity touch key and mechanical button integration, the user can switch as required, has effectively solved the tired problem of finger promptly, has also given the very audio-visual sense of touch of user, has improved user experience.
In the embodiment, the mechanical key has the advantages that the mechanical hand feeling of the key can be obviously sensed by a user, the hand feeling is very good, and the mechanical key has the disadvantage that fingers can be tired very much when the user presses the mechanical key for a long time; the capacitive touch key has the advantages that only a finger needs to touch the corresponding area, the finger does not need to be pressed, and the problem that the finger is tired due to long-time pressing is effectively solved.
As shown in fig. 4, the functional modules of this embodiment mainly include: the switch comprises a central controller, a switch control circuit, a capacitance touch circuit, a motor drive circuit, a mechanical key response circuit and a mechanical key and capacitance touch key two-in-one area, namely the mechanical key is arranged in the capacitance touch key area, so that the mechanical key and the capacitance touch key are fused together to facilitate switching.
In the present embodiment, the switch control is performed as shown in fig. 5The circuit manufacturing method comprises the following steps: electric capacity touch chip, motor drive circuit, MOS pipe N1, MOS pipe N2, resistance R3 and resistance R4, electric capacity touch chip with copper foil in the electric capacity touch key region is connected, motor drive circuit with the mechanical axis of rotation that machinery button corresponds is connected, electric capacity touch chip with motor drive circuit still is connected with central control system, electric capacity touch chip's VTINThe terminal is connected with the source electrode of the MOS transistor N1, and the drain electrode of the MOS transistor N1 is connected with a power supply VTThe grid electrode of the MOS transistor N1 is connected with the node GPIO-T and one end of the resistor R3, and the other end of the resistor R3 is grounded; v of the motor drive circuitMINThe terminal is connected with the source electrode of the MOS transistor N2, and the drain electrode of the MOS transistor N2 is connected with a power supply VMThe gate of the MOS transistor N2 is connected to the node GPIO-M and one end of the resistor R4, and the other end of the resistor R4 is grounded.
In this embodiment, the switching the capacitive touch key and the mechanical key by the switch control circuit includes:
when the mobile terminal is controlled by the capacitor touch key, the capacitor touch chip is powered on, so that the capacitor touch key starts to work; the motor driving circuit is powered off, and the mechanical key is hidden inside the middle frame of the mobile terminal;
when the mechanical key is selected to control the mobile terminal, the capacitive touch chip is powered off, so that the capacitive touch key stops working; and the motor driving circuit is electrified, and the mechanical key is ejected out of the middle frame of the mobile terminal through the mechanical transmission shaft.
In this embodiment, when the user selects the capacitive touch key as the physical key, the GPIO-T is 1, that is, the output is high, the GPIO-M is 0, the output is low, the N-type MOS transistor N1 is turned on, the N2 is turned off, the capacitive touch chip starts to supply power to enable the capacitive touch key, and the GPIO-M output is low, that is, the mechanical key circuit is turned off.
In this embodiment, the capacitive touch chip mainly functions to acquire a change of the capacitive touch key to trigger an interrupt signal to be processed by the central processing unit, when the capacitive touch chip acquires the change of the capacitive value of the capacitive touch key, the interrupt signal is output to the central processing unit, after the central processing unit acquires the interrupt signal, a capacitive parameter value is acquired through an I2C signal (namely, an SDA/SCL signal line), so as to determine whether the capacitive value can be used as the trigger signal, when the CPU acquires the interrupt signal, the CPU informs an upper layer of software of a capacitive key triggering action, and the upper layer software configures the interrupt signal into a corresponding action, such as a shooting action, which shows that a function triggered at this time on an interface is a shooting effect, thereby realizing shooting experience from hardware, which is not touch screen software control under normal conditions.
In this embodiment, when the user selects the mechanical key to operate, at this time, the GPIO-T is 0, that is, the output is low level, the GPIO-M is 1, the output is high level, the N-type MOS transistor N1 is turned off, the N2 is turned on, the motor driving module starts to supply power to enable the operation, and the GPIO-T output is low, that is, the capacitive touch module is turned off.
When the mechanical keys work, the solid mechanical keys are firstly required to be ejected out of the middle frame of the mobile phone, so that the downward pressing effect can be realized, and after the motor driving circuit supplies power, the motor driving motor ejects out the keys.
The contact of the mechanical key changes from open to close or from close to open only once, and actually, the contact of the switch shakes in the process, and countless small pulses exist before and after the contact of the mechanical key when the level changes, and the change is difficult to detect by naked eyes or a simple instrument. To address this problem, the principle of RS flip-flops is utilized herein to eliminate jitter.
As shown in fig. 6, in this embodiment, the mechanical key is further connected to an anti-jitter circuit, where the anti-jitter circuit includes: the contact C of the mechanical key is grounded, the contact A of the mechanical key is connected with one end of a resistor R1 and one output end of a NAND gate NAND1, the contact B of the mechanical key is connected with one end of a resistor R2 and one output end of a NAND gate NAND2, and the other end of the resistor R1 and the other end of the resistor R2 are connected with a power supply VddThe input end of the NAND gate 1 is connected with the central control system and the other output end of the NAND gate 2, soThe other output end of the NAND gate 1 is connected with the input end of the NAND gate 2.
When a is 0 and B is 1, M0 is 1 and M1 is 0, when a key is pressed, a is 1 and B is 0, M0 is 0 and M1 is 1, the state of the output signal M0 is changed, and if M0 is 0 due to contact jitter of a mechanical switch, the state of B changes between 0 and1 many times, and the output of the M0 signal is not affected; similarly, the output is not affected when the switch is released, so that the change of the point M0 changes once every time the switch is pressed. When the key is not pressed, the output is 1, when the key is pressed, the output is 0, and after the bistable circuit, the output is a regular rectangular wave. The jitter effect is eliminated, and only one interrupt signal is transmitted to the central processing system when a user presses a key once.
In this embodiment, the capacitive touch key and the mechanical key belong to mutually exclusive switches, and only one key is allowed to operate under any condition, and the switch control circuit is designed for manually controlling the keys to be used and switching the keys at regular time.
As shown in fig. 5, in this embodiment, the switch control circuit may further perform timing switching on the capacitive touch key and the mechanical key through a Central Processing Unit (CPU) timing system.
In this embodiment, the timer is set to solve the user fatigue problem, and fatigue occurs when the mechanical key is used too much at high frequency, so that the user can select the switching time of the two switches to realize automatic switching.
Example two
As shown in fig. 7, in this embodiment, a key control device based on a mobile terminal includes:
the setting module 10 is used for setting a mechanical key in a capacitive touch key area of the mobile terminal;
and the switching module 20 is configured to switch the capacitive touch key and the mechanical key through the switch control circuit.
In this embodiment, through being in the same place electric capacity touch key and mechanical button integration, the user can switch as required, has effectively solved the tired problem of finger promptly, has also given the very audio-visual sense of touch of user, has improved user experience.
In the embodiment, the mechanical key has the advantages that the mechanical hand feeling of the key can be obviously sensed by a user, the hand feeling is very good, and the mechanical key has the disadvantage that fingers can be tired very much when the user presses the mechanical key for a long time; the capacitive touch key has the advantages that only a finger needs to touch the corresponding area, the finger does not need to be pressed, and the problem that the finger is tired due to long-time pressing is effectively solved.
As shown in fig. 4, the functional modules of this embodiment mainly include: the switch comprises a central controller, a switch control circuit, a capacitance touch circuit, a motor drive circuit, a mechanical key response circuit and a mechanical key and capacitance touch key two-in-one area, namely the mechanical key is arranged in the capacitance touch key area, so that the mechanical key and the capacitance touch key are fused together to facilitate switching.
As shown in fig. 5, in the present embodiment, the switch control circuit includes: electric capacity touch chip, motor drive circuit, MOS pipe N1, MOS pipe N2, resistance R3 and resistance R4, electric capacity touch chip with copper foil in the electric capacity touch key region is connected, motor drive circuit with the mechanical axis of rotation that machinery button corresponds is connected, electric capacity touch chip with motor drive circuit still is connected with central control system, electric capacity touch chip's VTINThe terminal is connected with the source electrode of the MOS transistor N1, and the drain electrode of the MOS transistor N1 is connected with a power supply VTThe grid electrode of the MOS transistor N1 is connected with the node GPIO-T and one end of the resistor R3, and the other end of the resistor R3 is grounded; v of the motor drive circuitMINThe terminal is connected with the source electrode of the MOS transistor N2, and the drain electrode of the MOS transistor N2 is connected with a power supply VMThe gate of the MOS transistor N2 is connected to the node GPIO-M and one end of the resistor R4, and the other end of the resistor R4 is grounded.
As shown in fig. 8, in this embodiment, the switching module includes:
the first switching unit 21 is configured to, when the capacitive touch key is selected to control the mobile terminal, power the capacitive touch chip to enable the capacitive touch key to start working; the motor driving circuit is powered off, and the mechanical key is hidden inside the middle frame of the mobile terminal;
the second switching unit 22 is configured to, when the mechanical key is selected to control the mobile terminal, power down of the capacitive touch chip is performed, so that the capacitive touch key stops working; and the motor driving circuit is electrified, and the mechanical key is ejected out of the middle frame of the mobile terminal through the mechanical transmission shaft.
In this embodiment, when the user selects the capacitive touch key as the physical key, the GPIO-T is 1, that is, the output is high, the GPIO-M is 0, the output is low, the N-type MOS transistor N1 is turned on, the N2 is turned off, the capacitive touch chip starts to supply power to enable the capacitive touch key, and the GPIO-M output is low, that is, the mechanical key circuit is turned off.
In this embodiment, the capacitive touch chip mainly functions to acquire a change of the capacitive touch key to trigger an interrupt signal to be processed by the central processing unit, when the capacitive touch chip acquires the change of the capacitive value of the capacitive touch key, the interrupt signal is output to the central processing unit, after the central processing unit acquires the interrupt signal, a capacitive parameter value is acquired through an I2C signal (namely, an SDA/SCL signal line), so as to determine whether the capacitive value can be used as the trigger signal, when the CPU acquires the interrupt signal, the CPU informs an upper layer of software of a capacitive key triggering action, and the upper layer software configures the interrupt signal into a corresponding action, such as a shooting action, which shows that a function triggered at this time on an interface is a shooting effect, thereby realizing shooting experience from hardware, which is not touch screen software control under normal conditions.
In this embodiment, when the user selects the mechanical key to operate, at this time, the GPIO-T is 0, that is, the output is low level, the GPIO-M is 1, the output is high level, the N-type MOS transistor N1 is turned off, the N2 is turned on, the motor driving module starts to supply power to enable the operation, and the GPIO-T output is low, that is, the capacitive touch module is turned off.
When the mechanical keys work, the solid mechanical keys are firstly required to be ejected out of the middle frame of the mobile phone, so that the downward pressing effect can be realized, and after the motor driving circuit supplies power, the motor driving motor ejects out the keys.
The contact of the mechanical key changes from open to close or from close to open only once, and actually, the contact of the switch shakes in the process, and countless small pulses exist before and after the contact of the mechanical key when the level changes, and the change is difficult to detect by naked eyes or a simple instrument. To address this problem, the principle of RS flip-flops is utilized herein to eliminate jitter.
As shown in fig. 6, in this embodiment, the mechanical key is further connected to an anti-jitter circuit, where the anti-jitter circuit includes: the contact C of the mechanical key is grounded, the contact A of the mechanical key is connected with one end of a resistor R1 and one output end of a NAND gate NAND1, the contact B of the mechanical key is connected with one end of a resistor R2 and one output end of a NAND gate NAND2, and the other end of the resistor R1 and the other end of the resistor R2 are connected with a power supply VddThe input end of the NAND gate 1 is connected with the central control system and the other output end of the NAND gate 2, and the other output end of the NAND gate 1 is connected with the input end of the NAND gate 2.
When a is 0 and B is 1, M0 is 1 and M1 is 0, when a key is pressed, a is 1 and B is 0, M0 is 0 and M1 is 1, the state of the output signal M0 is changed, and if M0 is 0 due to contact jitter of a mechanical switch, the state of B changes between 0 and1 many times, and the output of the M0 signal is not affected; similarly, the output is not affected when the switch is released, so that the change of the point M0 changes once every time the switch is pressed. When the key is not pressed, the output is 1, when the key is pressed, the output is 0, and after the bistable circuit, the output is a regular rectangular wave. The jitter effect is eliminated, and only one interrupt signal is transmitted to the central processing system when a user presses a key once.
In this embodiment, the capacitive touch key and the mechanical key belong to mutually exclusive switches, and only one key is allowed to operate under any condition, and the switch control circuit is designed for manually controlling the keys to be used and switching the keys at regular time.
As shown in fig. 5, in this embodiment, the switch control circuit may further perform timing switching on the capacitive touch key and the mechanical key through a Central Processing Unit (CPU) timing system.
In this embodiment, the timer is set to solve the user fatigue problem, and fatigue occurs when the mechanical key is used too much at high frequency, so that the user can select the switching time of the two switches to realize automatic switching.
EXAMPLE III
In this embodiment, a terminal device includes, in addition to the components shown in fig. 1, a key control device based on a mobile terminal according to the second embodiment.
In this implementation, the terminal device may be implemented in various forms. For example, the terminal device described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like. As shown in fig. 3, which is a schematic diagram of a hardware structure of a terminal device, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In this embodiment, through being in the same place electric capacity touch key and mechanical button integration, the user can switch as required, has effectively solved the tired problem of finger promptly, has also given the very audio-visual sense of touch of user, has improved user experience.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (10)

1. A key control method based on a mobile terminal is characterized by comprising the following steps:
arranging a mechanical key in a capacitive touch key area of the mobile terminal;
the switch control circuit switches the capacitive touch key and the mechanical key.
2. The key control method based on mobile terminal of claim 1, wherein the switch control circuit comprises: electric capacity touch chip, motor drive circuit, MOS pipe N1, MOS pipe N2, resistance R3 and resistance R4, electric capacity touch chip with copper foil in the electric capacity touch key region is connected, motor drive circuit with the mechanical axis of rotation that machinery button corresponds is connected, electric capacity touch chip with motor drive circuit still is connected with central control system, electric capacity touch chip's VTINThe terminal is connected with the source electrode of the MOS transistor N1, and the drain electrode of the MOS transistor N1 is connected with a power supply VTConnected, gate of MOS transistor N1The other end of the resistor R3 is grounded; v of the motor drive circuitMINThe terminal is connected with the source electrode of the MOS transistor N2, and the drain electrode of the MOS transistor N2 is connected with a power supply VMThe gate of the MOS transistor N2 is connected to the node GPIO-M and one end of the resistor R4, and the other end of the resistor R4 is grounded.
3. The key control method based on the mobile terminal as claimed in claim 2, wherein the switching the capacitive touch key and the mechanical key by the switch control circuit comprises:
when the mobile terminal is controlled by the capacitor touch key, the capacitor touch chip is powered on, so that the capacitor touch key starts to work; the motor driving circuit is powered off, and the mechanical key is hidden inside the middle frame of the mobile terminal;
when the mechanical key is selected to control the mobile terminal, the capacitive touch chip is powered off, so that the capacitive touch key stops working; and the motor driving circuit is electrified, and the mechanical key is ejected out of the middle frame of the mobile terminal through the mechanical transmission shaft.
4. The key control method based on the mobile terminal of claim 2, wherein the mechanical key is further connected to an anti-jitter circuit, and the anti-jitter circuit comprises: the contact C of the mechanical key is grounded, the contact A of the mechanical key is connected with one end of a resistor R1 and one output end of a NAND gate NAND1, the contact B of the mechanical key is connected with one end of a resistor R2 and one output end of a NAND gate NAND2, and the other end of the resistor R1 and the other end of the resistor R2 are connected with a power supply VddThe input end of the NAND gate 1 is connected with the central control system and the other output end of the NAND gate 2, and the other output end of the NAND gate 1 is connected with the input end of the NAND gate 2.
5. The key control method based on the mobile terminal as claimed in claim 2, wherein the switch control circuit further performs timing switching between the capacitive touch key and the mechanical key through a Central Processing Unit (CPU) timing system.
6. A key control device based on a mobile terminal is characterized by comprising:
the setting module is used for setting a mechanical key in a capacitive touch key area of the mobile terminal;
and the switching module is used for switching the capacitive touch key and the mechanical key through the switch control circuit.
7. The mobile terminal-based key control device according to claim 6, wherein the switch control circuit comprises: electric capacity touch chip, motor drive circuit, MOS pipe N1, MOS pipe N2, resistance R3 and resistance R4, electric capacity touch chip with copper foil in the electric capacity touch key region is connected, motor drive circuit with the mechanical axis of rotation that machinery button corresponds is connected, electric capacity touch chip with motor drive circuit still is connected with central control system, electric capacity touch chip's VTINThe terminal is connected with the source electrode of the MOS transistor N1, and the drain electrode of the MOS transistor N1 is connected with a power supply VTThe grid electrode of the MOS transistor N1 is connected with the node GPIO-T and one end of the resistor R3, and the other end of the resistor R3 is grounded; v of the motor drive circuitMINThe terminal is connected with the source electrode of the MOS transistor N2, and the drain electrode of the MOS transistor N2 is connected with a power supply VMThe gate of the MOS transistor N2 is connected to the node GPIO-M and one end of the resistor R4, and the other end of the resistor R4 is grounded.
8. The device of claim 7, wherein the switching module comprises:
the first switching unit is used for enabling the capacitive touch control chip to be electrified when the capacitive touch control key is selected to control the mobile terminal, so that the capacitive touch control key starts to work; the motor driving circuit is powered off, and the mechanical key is hidden inside the middle frame of the mobile terminal;
the second switching unit is used for enabling the capacitive touch control chip to lose power and enabling the capacitive touch control key to stop working when the mechanical key is selected to control the mobile terminal; and the motor driving circuit is electrified, and the mechanical key is ejected out of the middle frame of the mobile terminal through the mechanical transmission shaft.
9. The mobile terminal-based key control device according to claim 7, wherein the mechanical key is further connected to an anti-jitter circuit, the anti-jitter circuit comprising: the contact C of the mechanical key is grounded, the contact A of the mechanical key is connected with one end of a resistor R1 and one output end of a NAND gate NAND1, the contact B of the mechanical key is connected with one end of a resistor R2 and one output end of a NAND gate NAND2, and the other end of the resistor R1 and the other end of the resistor R2 are connected with a power supply VddThe input end of the NAND gate 1 is connected with the central control system and the other output end of the NAND gate 2, and the other output end of the NAND gate 1 is connected with the input end of the NAND gate 2.
10. A terminal device, characterized in that it comprises a mobile terminal based key control device according to claims 6-9.
CN202110710300.9A 2021-06-25 2021-06-25 Key control method and device based on mobile terminal and terminal equipment Active CN113411452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110710300.9A CN113411452B (en) 2021-06-25 2021-06-25 Key control method and device based on mobile terminal and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110710300.9A CN113411452B (en) 2021-06-25 2021-06-25 Key control method and device based on mobile terminal and terminal equipment

Publications (2)

Publication Number Publication Date
CN113411452A true CN113411452A (en) 2021-09-17
CN113411452B CN113411452B (en) 2024-03-19

Family

ID=77679383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110710300.9A Active CN113411452B (en) 2021-06-25 2021-06-25 Key control method and device based on mobile terminal and terminal equipment

Country Status (1)

Country Link
CN (1) CN113411452B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095282A (en) * 2016-05-31 2016-11-09 珠海市魅族科技有限公司 The touch operation method of key device, key device and terminal
CN106559535A (en) * 2016-12-09 2017-04-05 天津市优创科技企业孵化器有限公司 Mobile terminal keyboard
CN110755840A (en) * 2019-10-31 2020-02-07 努比亚技术有限公司 Game control method, key structure, mobile terminal and readable storage medium
CN112817491A (en) * 2021-01-20 2021-05-18 努比亚技术有限公司 Touch key control method and device based on mobile terminal and terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095282A (en) * 2016-05-31 2016-11-09 珠海市魅族科技有限公司 The touch operation method of key device, key device and terminal
CN106559535A (en) * 2016-12-09 2017-04-05 天津市优创科技企业孵化器有限公司 Mobile terminal keyboard
CN110755840A (en) * 2019-10-31 2020-02-07 努比亚技术有限公司 Game control method, key structure, mobile terminal and readable storage medium
CN112817491A (en) * 2021-01-20 2021-05-18 努比亚技术有限公司 Touch key control method and device based on mobile terminal and terminal equipment

Also Published As

Publication number Publication date
CN113411452B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN107943400B (en) Double-sided screen switching method, mobile terminal and readable storage medium
CN108063864B (en) Double-sided screen incoming call prompting method, double-sided screen terminal and computer readable storage medium
CN112799577B (en) Method, terminal and storage medium for projecting small window
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN107635070B (en) Message reminding method, terminal and storage medium
CN107979667B (en) Dual-screen display method, mobile terminal and computer-readable storage medium
CN108121681B (en) Hot plug implementation method, terminal and storage medium
CN109692474B (en) Game control method based on mobile terminal, mobile terminal and readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN107729104B (en) Display method, mobile terminal and computer storage medium
CN109725967B (en) Method and device for adjusting horizontal and vertical screen display errors, mobile terminal and storage medium
CN109117069B (en) Interface operation method, terminal and computer readable storage medium
CN111324407A (en) Animation display method, terminal and computer readable storage medium
CN114374314A (en) Soft start circuit and equipment
CN107566631B (en) Volume control method, mobile terminal and computer readable storage medium
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
CN112888084A (en) Full-band communication method and device and mobile terminal
CN112817491A (en) Touch key control method and device based on mobile terminal and terminal equipment
CN112712815A (en) Software-based pop sound suppression method, terminal and computer readable medium
CN110187934B (en) Application control method, terminal and computer readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN109308147B (en) Application icon display method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant