Switch structure, information processing method, device and electronic equipment
By using capacitive sensors and metal plate designs in electronic devices, the structure of toggle switches is simplified, the cost is reduced, and the waterproof and dustproof performance is improved, solving the problem of high complexity of toggle switches in the prior art.
Patent Information
- Application Number
- CN202210792487.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-07-05
AI Technical Summary
The toggle switch structure of existing electronic devices is complex and has high cost, especially in terms of waterproofing, dustproofing, and anti-static electricity.
The design of capacitance sensor and metal plate is adopted, and the capacitance is formed with the metal plate at different positions by toggling the switch, and the switching position is identified by changing the capacitance value, simplifying the structure and reducing costs.
It realizes structural simplification, reduces the complexity and cost of the switch, and has good waterproof and dustproof functions and anti-interference performance.
Smart Images

Figure CN115172083B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic devices, and particularly relates to a switch structure, an information processing method, an apparatus, and an electronic device. Background Art
[0002] Electronic terminal devices such as mobile phones generally design toggle switches to achieve functions such as one-key muting. However, the current design structure of toggle switches is relatively complex, especially in terms of waterproofing, dustproofing, and anti-static design, which poses great difficulties, complexity, and high costs.
[0003] Therefore, the electronic devices in the prior art have problems such as complex toggle switch structures and high implementation costs. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a switch structure, an information processing method, an apparatus, and an electronic device, which can solve the problems of complex toggle switch structures and high implementation costs of electronic devices in the prior art.
[0005] In a first aspect, the embodiments of this application provide a switch structure, which includes:
[0006] A carrier substrate;
[0007] A capacitance sensor fixed on the carrier substrate;
[0008] At least two detection lines connected to the capacitance sensor, and a metal electrode plate is provided at one end of each detection line away from the capacitance sensor;
[0009] A toggle switch including a capacitance sheet; wherein, the toggle switch is installed on the carrier substrate and can move relative to the carrier substrate between at least two positions; in each position, the capacitance sheet respectively cooperates with the metal electrode plate corresponding to the position to form a capacitance; different positions correspond to different metal electrode plates.
[0010] In a second aspect, the embodiments of this application provide an electronic device, including: the switch structure as described in the first aspect.
[0011] In a third aspect, the embodiments of this application provide an information processing method, which is applied to the electronic device as described in the second aspect, and the information processing method includes:
[0012] Obtain the capacitance value on each detection line detected by the capacitance sensor;
[0013] Determine the current position of the toggle switch according to the capacitance value.
[0014] Fourth aspect, an embodiment of the present application provides an information processing device, which is applied to the electronic device as described in the second aspect. The information processing device includes:
[0015] A first acquisition module, configured to acquire capacitance values on each detection line detected by a capacitance sensor;
[0016] A first determination module, configured to determine the current position of the toggle switch according to the capacitance values.
[0017] Fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the method as described in the third aspect are implemented.
[0018] Sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method as described in the third aspect are implemented.
[0019] Seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method as described in the third aspect.
[0020] In the embodiment of the present application, the switch structure is provided with: a carrier substrate; a capacitance sensor fixed on the carrier substrate; at least two detection lines connected to the capacitance sensor, and a metal plate is arranged at one end of each detection line far away from the capacitance sensor; a toggle switch including a capacitance plate; wherein, the toggle switch is installed on the carrier substrate and can move relative to the carrier substrate between at least two positions; in each position, the capacitance plate respectively cooperates with the metal plate corresponding to the position to form a capacitance; different positions correspond to different metal plates; it can simplify the structure, reduce the complexity of the switch structure and the implementation cost. Description of the Drawings
[0021] Figure 1 is a schematic diagram of the switch structure of the embodiment of the present application Figure 1 ;
[0022] Figure 2 is a schematic diagram of the switch structure of the embodiment of the present application Figure 2 ;
[0023] Figure 3 is a schematic diagram of the switch structure of the embodiment of the present application Figure 3 ;
[0024] Figure 4Schematic diagram of the switch structure according to an embodiment of the present application Figure 4 ;
[0025] Figure 5 Schematic diagram of the switch structure according to an embodiment of the present application Figure 5 ;
[0026] Figure 6 Schematic diagram of the switch structure according to an embodiment of the present application Figure 6 ;
[0027] Figure 7 Schematic flow chart of the information processing method according to an embodiment of the present application;
[0028] Figure 8 Schematic flow chart of the specific application of the information processing method according to an embodiment of the present application;
[0029] Figure 9 Schematic diagram of the structure of the information processing device according to an embodiment of the present application;
[0030] Figure 10 Schematic diagram of the structure of the electronic device according to an embodiment of the present application Figure 1 ;
[0031] Figure 11 Schematic diagram of the structure of the electronic device according to an embodiment of the present application Figure 2 。 Detailed implementation manners
[0032] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0033] The terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order different from those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.
[0034] Next, the switch structure provided by the embodiments of the present application will be described in detail in conjunction with the accompanying drawings through specific embodiments and their application scenarios.
[0035] The switch structure provided by the embodiments of the present application, such asFigures 1 to 6 As shown in the figure, it includes:
[0036] A bearing substrate 1;
[0037] A capacitive sensor 2, fixed on the bearing substrate 1;
[0038] At least two detection lines 3 connected to the capacitive sensor 2, and a metal plate 4 is provided at one end of each detection line 3 away from the capacitive sensor 2;
[0039] A toggle switch 5, including a capacitive plate 6; wherein, the toggle switch 5 is installed on the bearing substrate 1 and can move relative to the bearing substrate 1 between at least two positions; at each position, the capacitive plate 6 respectively cooperates with the metal plate 4 corresponding to the position to form a capacitor; different positions correspond to different metal plates 4.
[0040] The detection line therein can be a metal trace, and the capacitive plate can be a metal sheet, but it is not limited thereto.
[0041] The switch structure provided by the embodiment of the present application is configured by: a bearing substrate; a capacitive sensor fixed on the bearing substrate; at least two detection lines connected to the capacitive sensor, and a metal plate is provided at one end of each detection line away from the capacitive sensor; a toggle switch, including a capacitive plate; wherein, the toggle switch is installed on the bearing substrate and can move relative to the bearing substrate between at least two positions; at each position, the capacitive plate respectively cooperates with the metal plate corresponding to the position to form a capacitor; different positions correspond to different metal plates; it can simplify the structure, reduce the complexity of the switch structure and the implementation cost.
[0042] Such as Figures 1 to 3 and Figure 5 and Figure 6 As shown in the figure, the bearing substrate 1 includes: an outer frame 7 and a printed circuit board 8 provided inside the outer frame 7; wherein, the capacitive sensor 2 and the lines connected to the capacitive sensor 2 are provided on the printed circuit board 8; the toggle switch 5 is provided on the outer frame 7; the lines include: detection lines 3.
[0043] Wherein, the line may further include: the following reference line 10, but it is not limited thereto.
[0044] Such as Figures 1 to 3 and Figure 5 and Figure 6 As shown in the figure, the metal plate 4 is provided on the printed circuit board 8.
[0045] In the embodiments of the present application, the metal electrode plate may be a metal layer on the printed circuit board, for example: a copper layer formed on the printed circuit board, but not limited thereto.
[0046] As Figure 1 and Figure 2 shown, the switch structure further includes: a sealed housing 9 with one end open, the sealed housing 9 is fixed on the carrier substrate 1 and forms a sealed space in connection with the carrier substrate 1; wherein, the capacitor plates 6 are all located in the sealed space. The sealed housing 9 may include a sealing frame 14 and a sealing plate 15, but not limited thereto.
[0047] Among them, the sealed housing can be made of non-metallic materials, but not limited thereto. The metal electrode plate 4 is located outside the sealed space.
[0048] As Figure 1 and Figures 3 to 6 shown, the switch structure further includes: at least two reference lines 10 connected to the capacitance sensor 2, one reference line 10 corresponding to one detection line 3; wherein, the length of the reference line 10 is the same as that of the corresponding detection line 3 and they are parallel to each other.
[0049] Specifically, as Figure 4 shown, the capacitance sensor 2 includes: an analog-to-digital converter 11, a compensation circuit 12 and a capacitance voltage converter 13 connected in sequence; wherein, the first ends of the detection line 3 and the reference line 10 are respectively connected to the capacitance voltage converter 13.
[0050] The embodiments of the present application further provide an electronic device, including: the above-mentioned switch structure. The electronic device provided by the embodiments of the present application can implement Figures 1 to 6 each process implemented by the
[0051] embodiments. To avoid repetition, it will not be elaborated here. Figure 7 The embodiments of the present application further provide an information processing method, which is applied to the above-mentioned electronic device. As
[0052] shown, the information processing method includes:
[0053] Step 71: Obtain the capacitance value on each detection line detected by the capacitance sensor;
[0054] Step 72: Determine the current position of the toggle switch according to the capacitance value.
[0055] The information processing method provided by the embodiment of the present application obtains the capacitance value on each detection line detected by the capacitance sensor; determines the current position of the toggle switch according to the capacitance value; and can accurately determine the position of the toggle switch according to the capacitance value, so as to support the realization of the above-mentioned simple switch structure and reduce the implementation cost.
[0056] Among them, the determining the current position of the toggle switch according to the capacitance value includes: obtaining the larger value among the capacitance values; and determining the current position of the toggle switch according to the larger value.
[0057] In this way, the current position of the toggle switch can be accurately determined; specifically, the metal plate corresponding to the larger value currently forms a capacitance with the capacitor plate, so the capacitance value is larger than that of other metal plates. Therefore, the current position of the toggle switch can be determined by means of the metal plate corresponding to the larger value.
[0058] Further, before obtaining the capacitance value on each detection line detected by the capacitance sensor, it further includes: controlling the capacitance sensor to be initialized; wherein, the initialization includes: clearing the capacitance values of the respective lines connected to the capacitance sensor.
[0059] In this way, the accuracy of the obtained capacitance value can be ensured; among them, the respective lines may include: detection lines and / or reference lines, but are not limited thereto.
[0060] In the embodiment of the present application, the obtaining the capacitance value on each detection line detected by the capacitance sensor includes: obtaining the initial capacitance value on each detection line detected by the capacitance sensor; obtaining the capacitance reference value on the reference line corresponding to each of the detection lines detected by the capacitance sensor; and obtaining the capacitance value on each detection line detected by the capacitance sensor according to the initial capacitance value and the capacitance reference value.
[0061] In this way, the capacitance value of the trace of the detection line can be eliminated by means of the capacitance value of the reference line, so as to further ensure the accuracy of the obtained capacitance value.
[0062] Further, after determining the current position of the toggle switch according to the capacitance value, it further includes: triggering an operation instruction corresponding to the current position of the toggle switch.
[0063] In this way, the related functions based on the position of the toggle switch can be ensured to be realized.
[0064] Next, the switch structure and the information processing method provided by the embodiment of the present application are illustrated by way of example. Among them, the positions of the toggle switch are taken as an example including: a first position of being toggled up and a second position of being toggled down.
[0065] In view of the above technical problems, an embodiment of the present application provides a switch structure, which can be specifically implemented as a toggle switch based on a capacitive sensor, capable of enhancing the waterproof and dustproof functions of the switch, simplifying the design complexity, and reducing costs; among which, it mainly involves:
[0066] 1. The toggle switch is within a separate sealed cavity (corresponding to the above-mentioned enclosed space);
[0067] 2. Based on the capacitive sensor to detect the up and down toggling of the switch (corresponding to the above-mentioned toggle switch);
[0068] 3. Use the copper foil on the PCB (printed circuit board) as one of the capacitive plates (corresponding to the above-mentioned metal plate, which is a specific implementation example of the above-mentioned metal plate), and the capacitive sheet on the switch as the other capacitive plate;
[0069] 4. Different from the toggle switch detection implemented by the Hall sensor according to the magnetic field change, the capacitive sensor has a high anti-interference degree;
[0070] The function of the capacitive sensor is to detect the capacitance change of the input channel (corresponding to the above-mentioned detection line). Plates are designed on the PCB board and the toggle switch respectively. When the toggle switch makes the plates coincide, the capacitive sensor can detect the capacitance change of its input channel, and then identify the switch toggling.
[0071] Next, a specific example of the solution provided by the embodiment of the present application is given. Among them, the capacitive sensor takes the capacitive sensor chip as an example, and both the detection line and the reference line are taken as 2.
[0072] As Figures 1 to 3 and Figure 5 and Figure 6 shown, the switch structure includes:
[0073] The device housing (corresponding to the above-mentioned outer frame 7); the capacitive sensor chip (corresponding to the above-mentioned capacitive sensor 2); the PCB board 8, and the capacitive sensor chip can be welded on the PCB board 8;
[0074] The sealing frame 14 of the toggle switch (included in the above-mentioned sealing housing 9, which can further prevent dust and water), the device housing and the sealing frame 14 can be integrally designed and processed by CNC (Computerized Numerical Control), but it is not limited thereto;
[0075] The toggle switch 5 (which can be made of metal);
[0076] The sealing plate 15 (included in the above-mentioned sealing housing 9, which can further prevent dust and water), which can be specifically a PET film (polyester film), is pasted on the upper and lower sides of the sealing frame 14 for sealing the sealing frame 14.
[0077] like Figure 1 and Figures 3 to 6 As shown, the switch structure also includes:
[0078] A reference channel 1 of the capacitance sensor chip (labeled A1 in the figure, corresponding to one of the reference circuits 10 above);
[0079] Detection channel 1 of the capacitance sensor chip (labeled B1 in the figure, corresponding to one of the above-mentioned detection circuits 3);
[0080] A detection channel 2 of the capacitance sensor chip (labeled A2 in the figure, corresponding to one of the above detection circuits 3);
[0081] A reference channel 2 of the capacitance sensor chip (labeled B2 in the figure, corresponding to one of the reference circuits 10 above);
[0082] Specifically, reference channel 1 and detection channel 1 realize the detection of switch up, and reference channel 2 and detection channel 2 realize the detection of switch down. The distribution positions of the reference channel and the detection channel are not limited to those shown in the figure. In addition, the reference channel can be realized as a trace, which has the same length as the detection channel and is distributed in parallel, which can be used to subsequently eliminate the capacitance value of the detection channel trace.
[0083] Based on the above, the implementation principle of this solution is described as follows:
[0084] In the four channels of the capacitor sensor chip, the ends of the traces of detection channel 1 and detection channel 2 are each designed with a circular copper sheet (a specific implementation example of the above-mentioned metal electrode plate 4), and the end of the toggle switch 5 also has a circular metal head (a specific implementation example of the above-mentioned capacitor plate 6). When dialing up, the copper sheet of detection channel 1 overlaps with the circular metal head, and when dialing down, the copper sheet of detection channel 2 overlaps with the circular metal head. When the copper sheet overlaps with the circular metal head, the capacitance detected by the corresponding channel of the capacitor sensor chip increases, and when they are moved away, the capacitance detected by the corresponding channel decreases. This solution can utilize the change in the capacitance of the detection channel to realize the identification of the switch dialing up and down. Among them, reference channel 1 and reference channel 2 can provide temperature compensation and capacitance compensation for detection channel 1 and detection channel 2, respectively.
[0085] Among them, the working principle of the capacitor sensor chip can be as follows Figure 4As shown, the chip has: Cap→Voltage (capacitance to voltage) module (corresponding to the above-mentioned analog-to-digital converter 11) to realize the conversion of tiny capacitance to analog voltage, compensation circuit 12 can compensate the channel detection voltage for temperature, etc., ADC (analog-to-digital conversion) module (corresponding to the above-mentioned capacitance voltage converter 13) can realize the conversion of analog voltage to digital, based on which, the capacitance sensor chip can realize multi-channel capacitance detection and report through the interface. Specifically:
[0086] (1) When the toggle switch is in the up position, such as Figure 5 As shown:
[0087] The copper sheet of detection channel 1 (which is a specific implementation example of the above-mentioned metal electrode plate 4) and the circular metal head (which is a specific implementation example of the above-mentioned capacitor sheet 6) overlap, and the two capacitor plates form a capacitor, and the capacitance detection value C detection channel 1 of detection channel 1 becomes larger; at this time, because the copper sheet of detection channel 2 and the circular metal head are completely staggered, the capacitance detection value C detection channel 2 of detection channel 2 is very small;
[0088] (2) When the toggle switch is in the down position, such as Figure 6 As shown:
[0089] The copper sheet of detection channel 1 (which is a specific implementation example of the above-mentioned metal electrode plate 4) and the circular metal head (which is a specific implementation example of the above-mentioned capacitor sheet 6) are staggered, and the capacitance detection value C detection channel 1 of detection channel 1 becomes smaller; at this time, because the copper sheet of detection channel 2 and the circular metal head completely overlap, the capacitance detection value C detection channel 2 of detection channel 2 becomes larger;
[0090] The control component (such as CPU) of the electronic device controls: the capacitance sensor chip performs initialization calibration (corresponding to the above initialization) on reference channels 1 and 2 and detection channels 1 and 2 before starting to detect the capacitance value, so that the capacitance values of reference channels 1 and 2 and detection channels 1 and 2 are cleared; after the calibration is completed, the capacitance detection is started and reported to the control component of the electronic device, and the control component of the electronic device performs the following calculations accordingly:
[0091] C1=C 检测通道1 -C 参考通道1 ; C1 represents the capacitance value corresponding to the copper foil of detection channel 1 (corresponding to the capacitance value on the above detection circuit); C 检测通道1 represents the capacitance detection value of detection channel 1 (corresponding to the above initial capacitance value), C 参考通道1 Represents the capacitance detection value of reference channel 1 (corresponding to the above capacitance reference value);
[0092] C2=C 检测通道2 -C 参考通道2; C2 represents the capacitance value corresponding to the copper foil of detection channel 2 (corresponding to the capacitance value on the above detection line); C 检测通道2 represents the capacitance detection value of detection channel 2 (corresponding to the above capacitance initial value), C 参考通道2 represents the capacitance detection value of reference channel 2 (corresponding to the above capacitance reference value).
[0093] Specifically, if C1 > C2, it can be recognized that the switch is toggled up; if C1 < C2, it can be recognized that the switch is toggled down.
[0094] Based on the above, the process of this solution can be specifically as Figure 8 shown, including the following steps:
[0095] Step 81: The electronic device is powered on;
[0096] Step 82: Initialize the capacitance Sensor chip to clear the detected capacitance value of each channel (corresponding to clearing the capacitance values of the respective lines connected to the capacitance sensor as described above);
[0097] Step 83: The capacitance Sensor chip performs capacitance value detection and reports it to the control component of the electronic device; this control component performs calculations: C1 = C 检测通道1 -C 参考通道1 ; C2 = C 检测通道2 -C 参考通道2 ;
[0098] Step 84: The control component of the electronic device determines whether C1 > C2. If so, it proceeds to Step 85; if not, it proceeds to Step 86;
[0099] Step 85: It is recognized that the switch is toggled up, and proceeds to Step 87;
[0100] Step 86: It is recognized that the switch is toggled down, and proceeds to Step 87;
[0101] Step 87: The control component of the electronic device controls the capacitance Sensor chip to stop detection for a first duration, and then returns to Step 83;
[0102] That is, control the capacitance Sensor chip to interrupt operation for a certain duration, and then continue to operate. For example, control the capacitance Sensor chip to wait for 0.5 s, but not limited to this; it can also directly return to Step 83 after Step 85 or 86, which is not limited here.
[0103] Thus, the toggle switch based on capacitance sensor described in this solution mainly involves:
[0104] 1. Using the copper foil of the PCB and the metal round head of the toggle switch as capacitance plates;
[0105] 2. Detect the up and down toggling of the toggle switch position by comparing the changes in capacitance values;
[0106] 3. The metal round head of the toggle switch is sealed inside the device housing to achieve a good waterproof and dustproof effect; among them, regarding the specific setting form of the toggle switch on the electronic device, it can be implemented using existing structures and will not be elaborated here.
[0107] It should be noted here that the switch form provided by this solution can be used in the design of any electronic product with relatively high requirements for waterproofing, dustproofing, and anti-interference; no limitations are imposed here.
[0108] In summary, the toggle switch implemented based on the capacitive Sensor in this solution has a simple and reliable detection principle and feasibility, and at the same time has a good waterproof and dustproof function; different from the existing magnetic field change detection method based on Hall devices, it has stronger anti-interference performance.
[0109] It should be noted that for the information processing method provided in the embodiments of this application, the execution subject can be an information processing device, or a control module in the information processing device for executing the information processing method. In the embodiments of this application, the information processing method executed by the information processing device is used as an example to illustrate the information processing device provided in the embodiments of this application.
[0110] The information processing device provided in the embodiments of this application is applied to the above-mentioned electronic device, such as Figure 9 As shown, the information processing device includes:
[0111] A first acquisition module 91, configured to acquire the capacitance value on each detection line detected by the capacitance sensor;
[0112] A first determination module 92, configured to determine the current position of the toggle switch according to the capacitance value.
[0113] Among them, the determining the current position of the toggle switch according to the capacitance value includes: acquiring the larger value among the capacitance values; and determining the current position of the toggle switch according to the larger value.
[0114] Further, the information processing device further includes: a first control module, configured to control the capacitance sensor to be initialized before acquiring the capacitance value on each detection line detected by the capacitance sensor; where the initialization includes: clearing the capacitance values of the lines connected to the capacitance sensor.
[0115] Among them, obtaining the capacitance value of each detection line detected by the capacitance sensor includes: obtaining the initial capacitance value of each detection line detected by the capacitance sensor; obtaining the capacitance reference value of the reference line corresponding to each of the detection lines detected by the capacitance sensor; and obtaining the capacitance value of each detection line detected by the capacitance sensor according to the initial capacitance value and the capacitance reference value.
[0116] Further, the information processing device further includes: a first trigger module, configured to trigger an operation instruction corresponding to the current position of the toggle switch after determining the current position of the toggle switch according to the capacitance value.
[0117] The information processing device provided by the embodiment of the present application obtains the capacitance value of each detection line detected by the capacitance sensor; determines the current position of the toggle switch according to the capacitance value; and can accurately determine the position of the toggle switch according to the capacitance value, so as to support the realization of the above-mentioned simple switch structure and reduce the implementation cost.
[0118] The information processing device in the embodiment of the present application can be a device, or a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application does not make a specific limitation.
[0119] The information processing device in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application does not make a specific limitation.
[0120] The information processing device provided by the embodiment of the present application can implement Figures 7 to 8 each process implemented by the method embodiment. To avoid repetition, it will not be described here again.
[0121] Optionally, as Figure 10As shown in the figure, an embodiment of the present application further provides an electronic device 100, including a processor 101, a memory 102, a program or instruction stored on the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each process of the information processing method embodiment described above is implemented, and the same technical effects can be achieved. To avoid repetition, details are not described herein again.
[0122] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0123] Figure 11 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0124] The electronic device 110 includes but is not limited to: a radio frequency unit 111, a network module 112, an audio output unit 113, an input unit 114, a sensor 115, a display unit 116, a user input unit 117, an interface unit 118, a memory 119, and a processor 1110 and other components.
[0125] Those skilled in the art can understand that the electronic device 110 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 1110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 11 The structure of the electronic device shown in the figure does not limit the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements, which will not be elaborated herein.
[0126] Among them, the processor 1110 is configured to obtain the capacitance value of each detection line detected by the capacitance sensor; and determine the current position of the toggle switch according to the capacitance value.
[0127] The electronic device provided by the embodiment of the present application obtains the capacitance value of each detection line detected by the capacitance sensor; and determines the current position of the toggle switch according to the capacitance value; and can accurately determine the position of the toggle switch according to the capacitance value, so as to support the implementation of the above-mentioned simple switch structure and reduce the implementation cost.
[0128] Optionally, the determining the current position of the toggle switch according to the capacitance value includes: obtaining the larger value of the capacitance values; and determining the current position of the toggle switch according to the larger value.
[0129] Optionally, the processor 1110 is further configured to control the initialization of the capacitance sensor before obtaining the capacitance value of each detection line detected by the capacitance sensor; wherein, the initialization includes: clearing the capacitance values of the lines connected to the capacitance sensor.
[0130] Optionally, the obtaining the capacitance value of each detection line detected by the capacitance sensor includes: obtaining the initial capacitance value of each detection line detected by the capacitance sensor; obtaining the capacitance reference value of the reference line corresponding to each of the detection lines detected by the capacitance sensor; and obtaining the capacitance value of each detection line detected by the capacitance sensor according to the initial capacitance value and the capacitance reference value.
[0131] Optionally, the processor 1110 is further configured to trigger an operation instruction corresponding to the current position of the toggle switch after determining the current position of the toggle switch according to the capacitance value.
[0132] In summary, the toggle switch implemented based on the capacitance Sensor in this solution has a simple and reliable detection principle and feasibility, and at the same time has a good waterproof and dustproof function; different from the existing magnetic field change detection method based on Hall devices, it has stronger anti-interference performance.
[0133] It should be understood that, in the embodiment of the present application, the input unit 114 may include a Graphics Processing Unit (GPU) 1141 and a microphone 1142. The graphics processor 1141 processes the image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The display unit 116 may include a display panel 1161, and the display panel 1161 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 117 includes a touch panel 1171 and other input devices 1172. The touch panel 1171 is also referred to as a touch screen. The touch panel 1171 may include two parts, a touch detection device and a touch controller. The other input devices 1172 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here. The memory 119 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 1110 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 1110.
[0134] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned information processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0135] Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0136] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the above-mentioned information processing method embodiment, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0137] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.
[0138] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0139] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0140] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. An electronic device, characterized in that, Comprising: A bearing substrate; A capacitance sensor fixed to the bearing substrate; At least two detection lines connected to the capacitance sensor, with a metal plate provided at one end of each detection line away from the capacitance sensor; A toggle switch including a capacitance plate; wherein, the toggle switch is mounted on the bearing substrate and can move relative to the bearing substrate between at least two positions; at each position, the capacitance plate respectively cooperates with the metal plate corresponding to the position to form a capacitance; different positions correspond to different metal plates; A sealed housing with one end open, the sealed housing is fixed to the bearing substrate and forms a sealed space when connected to the bearing substrate; Wherein, the capacitance plates are all located within the sealed space.
2. The electronic device according to claim 1, wherein The bearing substrate includes: an outer frame and a printed circuit board disposed within the outer frame; Wherein, the capacitance sensor and the lines connected to the capacitance sensor are disposed on the printed circuit board; the toggle switch is disposed on the outer frame; The lines include: detection lines.
3. The electronic device according to claim 2, wherein The metal plates are disposed on the printed circuit board.
4. The electronic device according to claim 3, characterized in that, The metal plates are metal layers on the printed circuit board.
5. The electronic device according to claim 1, wherein Further comprising: At least two reference lines connected to the capacitance sensor, one reference line corresponding to one detection line; Wherein, the length of the reference line is the same as that of the corresponding detection line and they are parallel to each other.
6. An information processing method, characterized in that, Applied to the electronic device according to claim 1, the information processing method comprises: Obtaining the capacitance value of each detection line detected by the capacitance sensor; Determining the current position of the toggle switch according to the capacitance value.
7. The information processing method according to claim 6, wherein The obtaining the capacitance value of each detection line detected by the capacitance sensor includes: Obtaining the initial capacitance value of each detection line detected by the capacitance sensor; Obtaining the capacitance reference value of the reference line corresponding to each of the detection lines detected by the capacitance sensor; Obtaining the capacitance value of each detection line detected by the capacitance sensor according to the initial capacitance value and the capacitance reference value.
8. An information processing apparatus, characterized in that, Applied to the electronic device according to claim 1, the information processing device comprises: A first obtaining module for obtaining the capacitance value of each detection line detected by the capacitance sensor; A first determining module for determining the current position of the toggle switch according to the capacitance value.
9. An electronic device, characterized in that, Including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implements the steps of the information processing method according to any one of claims 6 - 7.
Citation Information
Patent Citations
Capacitive position switch
EP2775625A1
Switching device
US20200412365A1