[go: up one dir, main page]

WO2025113301A1 - 按键状态识别方法、装置和电子设备 - Google Patents

按键状态识别方法、装置和电子设备 Download PDF

Info

Publication number
WO2025113301A1
WO2025113301A1 PCT/CN2024/133432 CN2024133432W WO2025113301A1 WO 2025113301 A1 WO2025113301 A1 WO 2025113301A1 CN 2024133432 W CN2024133432 W CN 2024133432W WO 2025113301 A1 WO2025113301 A1 WO 2025113301A1
Authority
WO
WIPO (PCT)
Prior art keywords
magnetic field
vector
key
motion trajectory
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/133432
Other languages
English (en)
French (fr)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2025113301A1 publication Critical patent/WO2025113301A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/003Measuring arrangements characterised by the use of electric or magnetic techniques for measuring position, not involving coordinate determination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/02Measuring direction or magnitude of magnetic fields or magnetic flux
    • G01R33/06Measuring direction or magnitude of magnetic fields or magnetic flux using galvano-magnetic devices
    • G01R33/07Hall effect devices
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • the present application belongs to the field of terminal control technology, and specifically relates to a key state recognition method, device and electronic device.
  • the button toggling on the mobile phone is mainly realized in two ways: differential dual Hall sensing and mechanical button.
  • the differential dual Hall sensing solution uses two linear Hall sensors and a magnet, changes the position of the magnet by dialing up and down the button, and reads the data of the Hall sensor to determine the state of the button.
  • the mechanical button solution uses a physical toggle switch to control the state of the circuit, thereby realizing the switch of the mute button.
  • these two methods are not only costly, but also occupy a large space of the whole machine. In the current situation where the layout area is becoming increasingly tight, reducing the area occupied by each module is of great significance.
  • the purpose of the embodiments of the present application is to provide a key state recognition method, device and electronic device, which can solve the problems of high cost and large space occupied by existing key state recognition solutions.
  • an embodiment of the present application provides a key state recognition method, which is applied to an electronic device, wherein the electronic device includes a body and a key arranged outside the body; a Hall sensor is arranged in the body, and a magnetic member is arranged in the key;
  • the method comprises:
  • the magnetic field data includes the magnetic field generated by the magnetic component
  • a target key state of the key is determined according to the magnetic field data.
  • an embodiment of the present application provides a key state recognition device, which is applied to an electronic device, wherein the electronic device includes a body and a key arranged outside the body; a Hall sensor is arranged in the body, and a magnetic member is arranged in the key;
  • the device comprises:
  • An acquisition module used to acquire magnetic field data through the Hall sensor; the magnetic field data includes the magnetic field generated by the magnetic component;
  • a determination module is used to determine a target key state of the key according to the magnetic field data.
  • an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the key state recognition method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored.
  • the program or instruction is executed by a processor, the steps of the key state recognition method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
  • a Hall sensor is provided in the body, and a magnetic part is provided in the button outside the body, so that the magnetic field data generated by the magnetic part is obtained by the Hall sensor, and then the target key state of the button is determined according to the obtained magnetic field data. Since only one Hall sensor is provided in the body to obtain the magnetic field data, the hardware cost of the sensor is reduced, and the layout area of the electronic device is saved.
  • FIG1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG2 is a schematic exploded diagram of a magnetic field vector acquired by a three-axis Hall sensor according to an embodiment of the present application
  • FIG3 is a schematic flow chart of a key state recognition method according to an embodiment of the present application.
  • FIG4 is a schematic diagram of a magnetic field vector according to an embodiment of the present application.
  • FIG5 is a schematic diagram of a magnetic field vector according to another embodiment of the present application.
  • FIG6 is a schematic diagram of a predetermined motion trajectory according to an embodiment of the present application.
  • FIG7 is a schematic diagram of a magnetic field region according to an embodiment of the present application.
  • FIG8 is a schematic diagram of a predetermined motion trajectory according to another embodiment of the present application.
  • FIG9 is a schematic block diagram of a key state recognition device according to an embodiment of the present application.
  • FIG10 is a schematic block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • first, second, etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device includes a body 1 and a button 2 arranged outside the body 1; a Hall sensor 3 is arranged inside the body 1, and a magnetic member 4 is arranged inside the button 2.
  • the Hall sensor 3 can be a three-axis Hall sensor, which can obtain magnetic field data in three-dimensional space, that is, the three-axis Hall sensor can decompose the magnetic field data generated by the magnetic part 4 into three directions in three-dimensional space.
  • a three-dimensional coordinate axis is established with the sensing center of the three-axis Hall sensor as the coordinate origin, and the magnetic field data in the three-dimensional space can be decomposed into three directions of X, Y, and Z by the three-axis Hall sensor, so that the magnetic field data can be represented in three-dimensional space using a vector method, that is, a magnetic field vector.
  • the magnetic part can be any element or device that can generate a magnetic field, such as a magnet and a device composed of some magnetic particles and components distributed in a button.
  • This embodiment does not limit the position of the Hall sensor in the fuselage, as long as the Hall sensor can obtain the magnetic field data generated by the magnetic part. In practical applications, the Hall sensor can be set near the button.
  • FIG3 is a schematic flow chart of a key state recognition method according to an embodiment of the present application. As shown in FIG3, the method is applied to the electronic device shown in FIG1, and specifically includes the following steps:
  • the magnetic field data includes the magnetic field generated by the magnetic component.
  • the Hall sensor can obtain the magnetic field generated by the magnetic part when the key is in a static state or in a moving state.
  • a static state i.e., not moving
  • the position of the key is the static position.
  • the position of the key is the moving position, and the Hall sensor can obtain the magnetic field data at any moving position of the key during the movement process.
  • the Hall sensor can acquire magnetic field data when preset conditions are met, and the preset conditions include at least one of the following: reaching a preset time interval, detecting key movement (ie, a change in the position of the key).
  • S304 Determine a target key state of the key according to the magnetic field data.
  • the target button state of the button may include an up-push state or a down-push state.
  • the button is in an up-push state
  • the mobile phone is in a mute state
  • the button is in a down-push state
  • the mobile phone is in an unmute state.
  • Figures 4 and 5 are schematic diagrams of two magnetic field vectors. As shown in Figure 4, when the key is in the down state, the magnetic part is below the Hall sensor, and the Hall sensor can obtain the magnetic field vector As shown in Figure 5, when the button is in the up state, the magnetic part is above the Hall sensor, and the Hall sensor can obtain the magnetic field vector
  • the data content included in the magnetic field data is different, and the method of determining the target key state is also different.
  • the different determination methods will be described in detail in the following embodiments.
  • a Hall sensor is provided in the body, and a magnetic part is provided in the button outside the body, so that the magnetic field data generated by the magnetic part is obtained by the Hall sensor, and then the target key state of the button is determined according to the obtained magnetic field data. Since only one Hall sensor is provided in the body to obtain the magnetic field data, the hardware cost of the sensor is reduced, and the layout area of the electronic device is saved.
  • the magnetic field data includes first magnetic field vectors at multiple movement positions of the key during the movement process.
  • Step A1 determining the current motion trajectory of the key according to the first magnetic field vectors corresponding to the multiple motion positions.
  • the first magnetic field vector corresponding to the motion position that is, the magnetic field vector acquired by the Hall sensor when the key is located at the motion position.
  • the number of motion positions is related to the preset acquisition time interval for the magnetic field data. The longer the acquisition time interval, the fewer the number of motion positions. If the preset acquisition time interval is long, due to the short key movement time, during the entire key movement process, only the first magnetic field vectors of the starting position and the end position of the key may be acquired, and the first magnetic field vector of the middle position cannot be acquired. At this time, the first magnetic field vectors of the starting position and the end position can be used to determine the current motion trajectory of the key.
  • the vector difference of the first magnetic field vectors of the starting position and the end position can be calculated, and the current motion trajectory of the key can be represented by the vector difference.
  • the magnetic field vector change information of the key during the motion process can be determined based on the first magnetic field vectors corresponding to the multiple motion positions, and then the current motion trajectory of the key can be determined based on the magnetic field vector change information.
  • the magnetic field vector change information includes magnetic field modulus change information and/or magnetic field direction change information.
  • the vector difference between each two adjacent first magnetic field vectors is determined as the magnetic field vector change information of the key during the movement.
  • the current movement trajectory of the key can be represented by the magnetic field vector change information of the key during the movement, for example, the current movement trajectory of the key is represented by the vector difference between each two adjacent first magnetic field vectors.
  • the sampling position includes 5 motion positions, that is, 5 points on the motion trajectory of the key during the motion process are taken as sampling positions, and the first magnetic field vectors corresponding to these 5 motion positions are recorded as [L1, L2, L3, L4, L5] in sequence, then, according to these 5 first magnetic field vectors, by calculating the vector difference between each two adjacent first magnetic field vectors, the magnetic field vector change information of the key during the motion process can be obtained, that is: [(L2-L1), (L3-L2), (L4-L3), (L5-L4)].
  • the magnetic field vector change information of the key during the motion process represents the current motion trajectory of the key.
  • Step A2 determining whether the current motion trajectory is the same as the predetermined motion trajectory; if so, determining the target key state to be the predetermined key state corresponding to the predetermined motion trajectory.
  • any of the following processing methods can be executed: determining the target key state of the key, determining that the target key state of the key is an abnormal state, and determining that the electronic device is interfered by an external magnetic field.
  • the current motion trajectory and the predetermined motion trajectory may be respectively divided into a plurality of segmented vectors, and then the segmented vectors corresponding to the current motion trajectory and the predetermined motion trajectory may be compared, and whether the current motion trajectory is the same as the predetermined motion trajectory may be determined based on the comparison result.
  • the comparison can be performed in any of the following ways: comparing whether each segment vector in a plurality of segment vectors is the same as the corresponding segment vector in the predetermined motion trajectory, comparing whether the vector angle of each segment vector is the same as the vector angle of the corresponding segment vector in the predetermined motion trajectory. If each segment vector is the same as the corresponding segment vector in the predetermined motion trajectory, and/or, if the vector angle of each segment vector is the same as the vector angle of the corresponding segment vector in the predetermined motion trajectory, then it is determined that the current motion trajectory is the same as the predetermined motion trajectory.
  • the predetermined motion trajectory refers to the motion trajectory of the key when it switches from one predetermined key state to another predetermined key state.
  • the predetermined motion trajectory corresponding to the predetermined key state can be predetermined.
  • the key in the absence of external magnetic field interference, can be switched from the up-dial state to the down-dial state in advance, and the switching process is achieved through the key movement.
  • the motion trajectory during the key movement is determined, and the motion trajectory is the predetermined motion trajectory corresponding to the key switching from the up-dial state to the down-dial state.
  • the key is switched from the down-dial state to the up-dial state in advance, and the switching process is achieved through the key movement.
  • the motion trajectory during the key movement is determined, and the motion trajectory is the predetermined motion trajectory corresponding to the key switching from the down-dial state to the up-dial state.
  • FIG6 shows a predetermined motion trajectory of a key when the key switches from the down-dial state to the up-dial state in one embodiment.
  • the origin of the coordinates of the three-dimensional coordinate axis is the sensing center of the Hall sensor.
  • the Hall sensor can obtain the magnetic field vector
  • the Hall sensor can obtain the magnetic field vector
  • the predetermined motion trajectory of the key is the magnetic field vector Movement to magnetic field vector As shown in FIG6 , the trajectory T.
  • the current motion trajectory of the key After determining the current motion trajectory of the key, if the current motion trajectory is the same as the trajectory T, it can be determined that the key is switched from the up-dial state to the down-dial state, that is, the target key state of the key is the down-dial state. If the current motion trajectory is different from the trajectory T, such as the trajectory T′ shown in FIG6 , it can be determined that the magnetic field vector has changed due to external magnetic field interference.
  • the current motion trajectory of the key is further determined. Since the magnetic field vector change information of the key during the motion process can accurately reflect the change of the magnetic field vector of the key at different motion positions, the current motion trajectory of the key can be accurately determined by the magnetic field vector change information. Furthermore, the target key state is determined according to whether the current motion trajectory is the same as the predetermined motion trajectory. This method of determining the key state is not only simple and accurate, but also has low hardware requirements. Only a three-axis Hall sensor and a magnetic part are required, which greatly reduces the hardware cost.
  • the key state is identified by whether the motion trajectory matches. Only when the predetermined motion trajectory is met can it be identified as a valid key movement, thereby greatly reducing the probability of false triggering and avoiding the misjudgment of the magnetic field vector change caused by external magnetic field interference.
  • the plurality of motion positions include an initial position and an end position. If the button state includes an up-dialing state or a down-dialing state, when the button switches from the down-dialing state to the up-dialing state, the initial position of the button is the position in the down-dialing state, and the end position is the position in the up-dialing state. Similarly, when the button switches from the up-dialing state to the down-dialing state, the initial position of the button is the position in the up-dialing state, and the end position is the position in the down-dialing state.
  • the target key state of a key according to the magnetic field data When determining the target key state of a key according to the magnetic field data, first determine whether the vector end point of the first magnetic field vector corresponding to the initial position is located in the first magnetic field region corresponding to the initial position, and whether the vector end point of the first magnetic field vector corresponding to the end position is located in the second magnetic field region corresponding to the end position according to the magnetic field data. If so, further determine the target key state according to the magnetic field data.
  • the first magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the initial position as the center and the preset maximum magnetic field error as the radius;
  • the second magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the end position as the center and the maximum magnetic field error as the radius.
  • the magnetic field vector obtained by the Hall sensor may have errors, including errors in the magnetic field modulus and magnetic field direction. Therefore, a maximum magnetic field error is pre-set, that is, the judgment condition of each motion position is relaxed to a range, which is a spherical area with the vector end point of the standard magnetic field vector as the center and the preset maximum magnetic field error as the radius.
  • the standard magnetic field vector can be determined in advance.
  • the control button is located at any motion position, and the magnetic field vector is obtained at the motion position.
  • the obtained magnetic field vector is the standard magnetic field vector corresponding to the motion position.
  • Any motion position may include the initial position, the end position, or any position between the initial position and the end position during the motion process.
  • the maximum magnetic field error can be understood as the maximum error allowed in the modulus of the magnetic field vector.
  • the corresponding standard magnetic field vector is Standard magnetic field vector
  • the vector end point is point O in Figure 7
  • the maximum magnetic field error is x.
  • the spherical area S with point O as the center and x as the radius is the first magnetic field area corresponding to the initial position.
  • the Hall sensor obtains the first magnetic field vector when the key is in the initial position
  • the first magnetic field vector can be determined when the following expression is satisfied: The vector endpoint is located in the first magnetic field region corresponding to the initial position:
  • the calculation of the first magnetic field vector is constrained by the magnetic field area (the first magnetic field area or the second magnetic field area) corresponding to each moving position, which can greatly reduce the probability of false triggering and avoid misjudgment of magnetic field vector changes caused by external magnetic field interference.
  • the key state is an up-dial state or a down-dial state.
  • the magnetic field vector and the magnetic field vector The vector endpoints are no longer located in their respective magnetic field regions. is the first magnetic field vector obtained when the key is in the down state.
  • the magnetic field vector It is the first magnetic field vector obtained when the key is in the up-dial state.
  • the magnetic field vector and the magnetic field vector The corresponding magnetic field areas are shown as circular areas, and the magnetic field vector of external interference (referred to as interference magnetic field vector) is After being disturbed by an external magnetic field, the magnetic field vector Superimposed interference magnetic field vector Later becomes Magnetic field vector Superimposed interference magnetic field vector Later becomes Right now,
  • interference magnetic field vector the magnetic field vector of external interference
  • the magnetic field vector Superimposed interference magnetic field vector Later becomes Magnetic field vector Superimposed interference magnetic field vector Later becomes Right now.
  • the magnetic field data includes a second magnetic field vector at a static position where the key is located in a static state.
  • the second magnetic field vector matches the standard magnetic field vector corresponding to the static position; if so, according to the correspondence between the preset standard magnetic field vector and the key state, the key state corresponding to the standard magnetic field vector matching the second magnetic field vector is determined as the target key state.
  • the second magnetic field vector is the same as the standard magnetic field vector corresponding to the static position, or the vector end point of the second magnetic field vector is located in the third magnetic field region corresponding to the static position, then it is determined that the second magnetic field vector matches the standard magnetic field vector corresponding to the static position;
  • the third magnetic field region is a spherical area with the vector end point of the standard magnetic field vector corresponding to the static position as the center and a preset maximum magnetic field error as the radius.
  • the target key state of the key is the standard magnetic field vector The corresponding button status.
  • the key state is identified by judging whether the second magnetic field vector matches the standard magnetic field vector corresponding to the static position, making the key state identification method simpler and faster.
  • the target key state of the key can be determined to be the key state corresponding to the standard magnetic field vector, and if the vector end point of the second magnetic field vector is located outside the magnetic field area corresponding to the standard magnetic field vector, it can be determined that external magnetic field interference is received, so that while accurately identifying the key state, the accuracy of identifying external magnetic field interference can also be improved.
  • the magnetic field data generated by the magnetic parts in the key can be obtained through the Hall sensor, and the key state can be determined based on the magnetic field data, so that the acquisition and calculation of the magnetic field data are not affected by whether the key is moving, thereby improving the accuracy of determining the key state.
  • the key state recognition method provided in the embodiment of the present application can be executed by a key state recognition device.
  • the key state recognition device provided in the embodiment of the present application is described by taking the key state recognition method executed by the key state recognition device as an example.
  • FIG9 is a schematic block diagram of a key state recognition device according to an embodiment of the present application.
  • the device is applied to an electronic device, the electronic device comprising a body and a key arranged outside the body; a Hall sensor is arranged inside the body, and a magnetic member is arranged inside the key;
  • the device comprises:
  • An acquisition module 91 is used to acquire magnetic field data through the Hall sensor; the magnetic field data includes the magnetic field generated by the magnetic component;
  • the determination module 92 is used to determine the target key state of the key according to the magnetic field data.
  • the magnetic field data includes first magnetic field vectors at a plurality of movement positions of the key during the movement process
  • the determination module 92 includes:
  • a first determining unit configured to determine a current motion trajectory of the key according to first magnetic field vectors corresponding to the plurality of motion positions
  • a first judging unit configured to judge whether the current motion trajectory is the same as a predetermined motion trajectory
  • the second determining unit is configured to determine that, if yes, the target key state is a predetermined key state corresponding to the predetermined motion trajectory.
  • the first determining unit is further configured to:
  • the magnetic field vector change information includes magnetic field modulus change information and/or magnetic field direction change information
  • the current motion trajectory of the key is determined according to the magnetic field vector change information.
  • the first determination unit is further configured to:
  • each of the multiple segmented vectors is the same as the corresponding segmented vector in the predetermined motion trajectory, and/or if the vector angle of each segmented vector is the same as the vector angle of the corresponding segmented vector in the predetermined motion trajectory, it is determined that the current motion trajectory is the same as the predetermined motion trajectory.
  • the plurality of movement positions include an initial position and an end position
  • the determination module 92 includes:
  • a second judgment unit is used to judge, based on the magnetic field data, whether the vector end point of the first magnetic field vector corresponding to the initial position is located in the first magnetic field region corresponding to the initial position, and whether the vector end point of the first magnetic field vector corresponding to the end position is located in the second magnetic field region corresponding to the end position;
  • the first magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the initial position as the center and a preset maximum magnetic field error as the radius;
  • the second magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the end position as the center and the maximum magnetic field error as the radius;
  • a third determining unit is configured to determine the target key state according to the magnetic field data if yes.
  • the magnetic field data includes a second magnetic field vector at a static position of the key in a static state
  • the determination module 92 includes:
  • a third judging unit configured to judge whether the second magnetic field vector matches a standard magnetic field vector corresponding to the static position
  • the fourth determining unit is used to determine, based on a preset correspondence between a standard magnetic field vector and a key state, that the key state corresponding to the standard magnetic field vector matching the second magnetic field vector is the target key state.
  • the third judgment unit is further configured to:
  • the second magnetic field vector is the same as the standard magnetic field vector corresponding to the static position, or the vector end point of the second magnetic field vector is located within the third magnetic field region corresponding to the static position, then it is determined that the second magnetic field vector matches the standard magnetic field vector corresponding to the static position;
  • the third magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the static position as the center and a preset maximum magnetic field error as the radius.
  • the acquisition module 91 includes:
  • An acquisition unit configured to acquire the magnetic field data through the Hall sensor when a preset condition is met
  • the preset condition includes at least one of the following: detecting that the position of the key changes and reaching a preset time interval.
  • a Hall sensor is provided in the body, and a magnetic part is provided in the button outside the body, so that the magnetic field data generated by the magnetic part is obtained by the Hall sensor, and then the target key state of the button is determined according to the obtained magnetic field data. Since only one Hall sensor is provided in the body to obtain the magnetic field data, the hardware cost of the sensor is reduced, and the layout area of the electronic device is saved.
  • the key state recognition device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • NAS Network Attached Storage
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the key state recognition device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the key state recognition device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 3, and will not be described again here to avoid repetition.
  • an embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002, and the memory 1002 stores a program or instruction that can be executed on the processor 1001.
  • the program or instruction is executed by the processor 1001
  • the various steps of the above-mentioned key state recognition method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
  • FIG. 11 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to components such as 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 110.
  • components such as 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 110.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 110 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • a power source such as a battery
  • the electronic device structure shown in FIG11 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the processor 110 is used to obtain magnetic field data through the Hall sensor; the magnetic field data includes the magnetic field generated by the magnetic component;
  • a target key state of the key is determined according to the magnetic field data.
  • the magnetic field data includes first magnetic field vectors at multiple motion positions of the key during the motion process; the processor 110 is further used to determine the current motion trajectory of the key according to the first magnetic field vectors corresponding to the multiple motion positions; determine whether the current motion trajectory is the same as the predetermined motion trajectory; if so, determine that the target key state is a predetermined key state corresponding to the predetermined motion trajectory
  • the processor 110 is also used to determine the magnetic field vector change information during the movement process based on the first magnetic field vectors corresponding to the multiple movement positions; the magnetic field vector change information includes magnetic field modulus change information and/or magnetic field direction change information; and determine the current movement trajectory of the key based on the magnetic field vector change information.
  • the processor 110 is further used to divide the current motion trajectory and the predetermined motion trajectory into multiple segmented vectors respectively; if each segmented vector in the multiple segmented vectors is the same as the corresponding segmented vector in the predetermined motion trajectory, and/or if the vector angle of each segmented vector is the same as the vector angle of the corresponding segmented vector in the predetermined motion trajectory, then it is determined that the current motion trajectory is the same as the predetermined motion trajectory.
  • the multiple motion positions include an initial position and an end position; the processor 110 is also used to determine, based on the magnetic field data, whether the vector end point of the first magnetic field vector corresponding to the initial position is located in the first magnetic field region corresponding to the initial position, and whether the vector end point of the first magnetic field vector corresponding to the end position is located in the second magnetic field region corresponding to the end position;
  • the first magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the initial position as the center and a preset maximum magnetic field error as the radius;
  • the second magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the end position as the center and the maximum magnetic field error as the radius; if so, the target key state is determined based on the magnetic field data.
  • the magnetic field data includes a second magnetic field vector at a static position where the key is located in a static state; the processor 110 is further configured to determine whether the second magnetic field vector matches a standard magnetic field vector corresponding to the static position;
  • the key state corresponding to the standard magnetic field vector matching the second magnetic field vector is determined as the target key state.
  • the processor 110 is also used to determine that the second magnetic field vector matches the standard magnetic field vector corresponding to the static position if the second magnetic field vector is the same as the standard magnetic field vector corresponding to the static position, or the vector end point of the second magnetic field vector is located within a third magnetic field region corresponding to the static position; the third magnetic field region is a spherical region with the vector end point of the standard magnetic field vector corresponding to the static position as the center and a preset maximum magnetic field error as the radius.
  • the processor 110 is further configured to obtain the magnetic field data through the Hall sensor when a preset condition is met; the preset condition includes at least one of the following: detecting that the position of the button changes and reaching a preset time interval.
  • the input unit 114 may include a graphics processing unit (GPU) 1141 and a microphone 1142, and the graphics processor 1141 processes the image data of a static picture or video obtained by an image capture 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 at least one of other input devices 1172.
  • the touch panel 1171 is also called a touch screen.
  • the touch panel 1171 may include two parts: a touch detection device and a touch controller.
  • Other input devices 1172 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory 119 can be used to store software programs and various data.
  • the memory 119 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 119 may include a volatile memory or a non-volatile memory, or the memory 119 may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • the memory 119 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • each process of the above-mentioned key state recognition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • 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 disk.
  • An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned key state recognition method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • An embodiment of the present application provides a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned key state recognition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Hall/Mr Elements (AREA)

Abstract

本申请公开了一种按键状态识别方法、装置和电子设备,属于终端控制技术领域。按键状态识别方法应用于电子设备,所述电子设备包括机身以及设置在所述机身外部的按键;所述机身内设置有霍尔传感器,所述按键内设置有磁性件;所述方法包括:通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;根据所述磁场数据,确定所述按键的目标按键状态。

Description

按键状态识别方法、装置和电子设备
相关申请的交叉引用
本申请要求在2023年11月27日提交中国专利局、申请号为202311601999.0、发明名称为“按键状态识别方法、装置和电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用包含于此。
技术领域
本申请属于终端控制技术领域,具体涉及一种按键状态识别方法、装置和电子设备。
背景技术
目前市场上的大部分手机通过拨动实体按键实现一键静音功能,该功能受到用户的一致好评,促进越来越多的项目使用静音按键功能。手机上的按键拨动主要通过两种方式实现:差分双霍尔感应和机械按键。差分双霍尔感应方案使用两颗线性霍尔传感器和一个磁铁,通过上拨和下拨按键改变磁铁的位置,并读取霍尔传感器的数据来判断按键的状态。机械按键方案使用物理拨动开关来控制电路的状态,进而实现静音按键的开关。然而,这两种方式不仅成本较高,且占用整机空间较大,在当下布板面积越来越紧张的情况下,减小每个模块占用的面积具有重大意义。
发明内容
本申请实施例的目的是提供一种按键状态识别方法、装置和电子设备,能够解决现有的按键状态识别方案成本高、占用空间大的问题。
第一方面,本申请实施例提供了一种按键状态识别方法,该方法应用于电子设备,所述电子设备包括机身以及设置在所述机身外部的按键;所述机身内设置有霍尔传感器,所述按键内设置有磁性件;
所述方法包括:
通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;
根据所述磁场数据,确定所述按键的目标按键状态。
第二方面,本申请实施例提供了一种按键状态识别装置,应用于电子设备,所述电子设备包括机身以及设置在所述机身外部的按键;所述机身内设置有霍尔传感器,所述按键内设置有磁性件;
所述装置包括:
获取模块,用于通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;
确定模块,用于根据所述磁场数据,确定所述按键的目标按键状态。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的按键状态识别方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的按键状态识别方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,通过在机身内设置霍尔传感器,以及机身外部的按键内设置磁性件,从而通过霍尔传感器获取磁性件产生的磁场数据,进而根据获取到的磁场数据确定按键的目标按键状态。由于机身内仅需设置一个霍尔传感器即可获取到磁场数据,因此降低了传感器的硬件成本,节省了电子设备的布板面积。
附图说明
图1是根据本申请一实施例的一种电子设备的示意性结构图;
图2是根据本申请一实施例的一种三轴霍尔传感器获取的磁场向量的示意性分解图;
图3是根据本申请一实施例的一种按键状态识别方法的示意性流程图;
图4是根据本申请一实施例的一种磁场向量的示意图;
图5是根据本申请另一实施例的一种磁场向量的示意图;
图6是根据本申请一实施例的一种预定运动轨迹的示意图;
图7是根据本申请一实施例的一种磁场区域的示意图;
图8是根据本申请另一实施例的一种预定运动轨迹的示意图;
图9是根据本申请一实施例的一种按键状态识别装置的示意性框图;
图10是根据本申请一实施例的一种电子设备的示意性框图;
图11为实现本申请一实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的按键状态识别方法、装置和电子设备进行详细地说明。
图1是根据本申请一实施例的一种电子设备的示意性结构图。如图1所示,电子设备包括机身1以及设置在机身1外部的按键2;机身1内设置有霍尔传感器3,按键2内设置有磁性件4。
可选地,霍尔传感器3可以是三轴霍尔传感器,三轴霍尔传感器能够获取到三维空间内的磁场数据,即,三轴霍尔传感器可将磁性件4产生的磁场数据分解到三维空间内的三个方向。例如,如图2所示,以三轴霍尔传感器的感应中心为坐标原点建立三维坐标轴,则三维空间内的磁场数据可被三轴霍尔传感器分解到X、Y、Z三个方向,从而使磁场数据能够在三维空间内使用向量方式表示,即磁场向量。磁性件可以是任一能够产生磁场的元件或器件,例如磁铁以及按键内分布一些磁性颗粒、成分构成的器件等。本实施例对于霍尔传感器在机身内的位置不做限定,只需霍尔传感器能够获取到磁性件产生的磁场数据即可。在实际应用中,可将霍尔传感器设置于按键附近的位置。
图3是根据本申请一实施例的一种按键状态识别方法的示意性流程图。如图3所示,该方法应用于如图1所示的电子设备,具体包括以下步骤:
S302,通过霍尔传感器获取磁场数据;磁场数据包括磁性件产生的磁场。
其中,霍尔传感器能够获取按键处于静止状态或运动状态时、磁性件产生的磁场。在按键处于静止状态(即没有运动)时,按键所处的位置为静止位置。在按键处于运动状态时,按键所处的位置为运动位置,霍尔传感器可获取到按键在运动过程中的任意运动位置处的磁场数据。
可选地,霍尔传感器可以在满足预设条件的情况下获取磁场数据,预设条件包括以下至少一项:达到预设时间间隔、检测到按键运动(即按键的位置发生变化)。
S304,根据磁场数据,确定按键的目标按键状态。
在电子设备为手机、按键为手机机身外部设置的可拨动的按键时,按键的目标按键状态可包括上拨状态或下拨状态。例如,通过拨动手机上的按键来控制手机为静音状态或非静音状态,当按键为上拨状态时,则手机处于静音状态;当按键为下拨状态时,则手机处于非静音状态。
图4和图5分别示出了两种磁场向量的示意图。如图4所示,按键处于下拨状态时,磁性件相对于霍尔传感器在下方,霍尔传感器可获取到磁场向量如图5所示,按键处于上拨状态时,磁性件相对于霍尔传感器在上方,霍尔传感器可获取到磁场向量
磁场数据包括的数据内容不同,目标按键状态的确定方式也有所不同。不同的确定方式将在下述实施例中详细说明。
在本申请实施例中,通过在机身内设置霍尔传感器,以及机身外部的按键内设置磁性件,从而通过霍尔传感器获取磁性件产生的磁场数据,进而根据获取到的磁场数据确定按键的目标按键状态。由于机身内仅需设置一个霍尔传感器即可获取到磁场数据,因此降低了传感器的硬件成本,节省了电子设备的布板面积。
在一个实施例中,磁场数据包括按键在运动过程中的多个运动位置处的第一磁场向量。根据磁场数据确定按键的目标按键状态时,可执行为以下步骤A1-A2:
步骤A1,根据多个运动位置对应的第一磁场向量,确定按键的当前运动轨迹。
运动位置对应的第一磁场向量,即按键位于运动位置时霍尔传感器获取到的磁场向量。运动位置的数量与预设的针对磁场数据的获取时间间隔相关,获取时间间隔越长,运动位置的数量也就越少。若预设的获取时间间隔较长,由于按键运动时间较短,在按键运动的整个过程中,可能只获取到按键的起始位置和终点位置这两个点的第一磁场向量,而无法获取中间位置的第一磁场向量,此时,可利用起始位置和终点位置这两个点的第一磁场向量,来确定按键的当前运动轨迹。可选地,可将起始位置和终点位置这两个点的第一磁场向量进行向量差计算,并以该向量差表示按键的当前运动轨迹。
在确定按键的当前运动轨迹时,可先根据多个运动位置对应的第一磁场向量,确定按键在运动过程中的磁场向量变化信息,然后根据磁场向量变化信息,确定按键的当前运动轨迹。其中,磁场向量变化信息包括磁场模值变化信息和/或磁场方向变化信息。
可选地,将每相邻两个第一磁场向量之间的向量差确定为按键在运动过程中的磁场向量变化信息。按键的当前运动轨迹可通过按键在运动过程中的磁场向量变化信息来表示,例如,使用每相邻两个第一磁场向量之间的向量差来表示按键的当前运动轨迹。
假设采样位置包括5个运动位置,即将按键在运动过程中的运动轨迹上的5个点作为采样位置,这5个运动位置对应的第一磁场向量依次记为【L1、L2、L3、L4、L5】,那么,根据这5个第一磁场向量,通过计算每相邻两个第一磁场向量之间的向量差,可得到按键在运动过程中的磁场向量变化信息,即:【(L2-L1),(L3-L2),(L4-L3),(L5-L4)】。按键在运动过程中的磁场向量变化信息表征了按键的当前运动轨迹。
步骤A2,判断当前运动轨迹是否与预定运动轨迹相同;若是,则确定目标按键状态为与预定运动轨迹对应的预定按键状态。
可选地,若按键的当前运动轨迹与预定运动轨迹不同,则可执行以下任一项处理方式:不确定按键的目标按键状态、确定按键的目标按键状态为非正常状态、确定电子设备受到外界的磁场干扰。
在执行步骤A2,即判断当前运动轨迹是否与预定运动轨迹相同时,可先将当前运动轨迹和预定运动轨迹分别划分为多个分段向量,然后将当前运动轨迹和预定运动轨迹分别对应的分段向量进行比对,根据比对结果确定当前运动轨迹是否与预定运动轨迹相同。
其中,将当前运动轨迹和预定运动轨迹分别对应的分段向量进行比对时,可采用以下任一种方式进行比对:比对多个分段向量中的每个分段向量是否均和预定运动轨迹中对应的分段向量相同、比对每个分段向量的向量夹角是否均和预定运动轨迹中对应的分段向量的向量夹角相同。若每个分段向量均和预定运动轨迹中对应的分段向量相同,和/或,若每个分段向量的向量夹角均和预定运动轨迹中对应的分段向量的向量夹角相同,则确定当前运动轨迹与预定运动轨迹相同。
在步骤A2中,预定运动轨迹指的是按键从一种预定按键状态切换为另一种预定按键状态时的运动轨迹。预定按键状态对应的预定运动轨迹可预先确定,可选地,在无外界磁场干扰的情况下,可预先将按键由上拨状态切换为下拨状态,切换过程通过按键运动实现,确定按键运动过程中的运动轨迹,该运动轨迹即为按键由上拨状态切换为下拨状态时对应的预定运动轨迹。同理,预先将按键由下拨状态切换为上拨状态,切换过程通过按键运动实现,确定按键运动过程中的运动轨迹,该运动轨迹即为按键由下拨状态切换为上拨状态时对应的预定运动轨迹。
图6示出了一实施例中按键由下拨状态切换为上拨状态时按键的预定运动轨迹。如图6所示,三维坐标轴的坐标原点即为霍尔传感器的感应中心。按键位于下拨状态时,霍尔传感器能够获取到磁场向量按键位于上拨状态时,霍尔传感器能够获取到磁场向量那么,按键由上拨状态切换为下拨状态时,按键的预定运动轨迹即为由磁场向量运动到磁场向量如图6中所示的轨迹T。在确定出按键的当前运动轨迹之后,如果当前运动轨迹与轨迹T相同,那么可确定按键由上拨状态切换为下拨状态,即按键的目标按键状态为下拨状态。如果当前运动轨迹与轨迹T不同,例如为图6所示的轨迹T′,此时可确定为外部磁场干扰带来的磁场向量发生变化。
本实施例中,通过获取按键在运动过程中的多个运动位置处的第一磁场向量,并根据多个运动位置对应的第一磁场向量来确定按键在运动过程中的磁场向量变化信息,进一步确定按键的当前运动轨迹,由于按键在运动过程中的磁场向量变化信息能够准确反映出按键在不同的运动位置处的磁场向量的变化,因此通过磁场向量变化信息能够准确确定出按键的当前运动轨迹。进而,根据当前运动轨迹与预定运动轨迹之间是否相同来确定目标按键状态,这种按键状态的确定方式不仅简单、且准确度高,并且对于硬件要求也较低,只需一个三轴霍尔传感器和一个磁性件即可,大大降低了硬件成本。此外,通过运动轨迹是否相匹配来识别按键状态,只有在满足预定运动轨迹时才能识别为有效的按键运动,从而极大地降低由于误触发的概率,避免对外部磁场干扰所带来的磁场向量变化的误判情况。
在一个实施例中,多个运动位置包括初始位置和终点位置。若按键状态包括上拨状态或下拨状态,则在按键由下拨状态切换为上拨状态时,按键的初始位置即为下拨状态时的位置,终点位置即为上拨状态时的位置。同理,在按键由上拨状态切换为下拨状态时,按键的初始位置即为上拨状态时的位置,终点位置即为下拨状态时的位置。
在根据磁场数据确定按键的目标按键状态时,首先根据磁场数据,判断初始位置对应的第一磁场向量的向量终点是否位于初始位置对应的第一磁场区域内、且终点位置对应的第一磁场向量的向量终点是否位于终点位置对应的第二磁场区域内。若是,则进一步根据磁场数据确定目标按键状态。其中,第一磁场区域为以初始位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域;第二磁场区域为以终点位置对应的标准磁场向量的向量终点为圆心、以最大磁场误差为半径的球形区域。
考虑到电子设备可能受机身本身以及外部的磁场干扰,会使霍尔传感器获取到的磁场向量发生误差,包括磁场模值和磁场方向上的误差,因此,预先设定一个最大磁场误差,即将每个运动位置的判断条件放宽为一个范围,该范围即为以标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域。标准磁场向量可预先确定出来,可选地,在不受外界磁场干扰的情况下,控制按键位于任一运动位置,并在该运动位置处获取磁场向量,获取到的磁场向量即为该运动位置对应的标准磁场向量。任一运动位置可包括运动过程中的初始位置、终点位置、或者初始位置和终点位置之间的任一位置。
最大磁场误差可理解为允许磁场向量的模值所出现的最大误差。如图7所示,假设按键位于初始位置时,对应的标准磁场向量为标准磁场向量的向量终点为图7中的O点,最大磁场误差为x,那么以O点为圆心、以x为半径的球形区域S即为初始位置对应的第一磁场区域。在实际应用时,假设按键位于初始位置时霍尔传感器获取到第一磁场向量那么当第一磁场向量满足以下表达式时,即可确定第一磁场向量的向量终点位于初始位置对应的第一磁场区域内:
上述表达式的含义为:按键位于初始位置时,第一磁场向量和标准磁场向量之间的模值差小于或等于最大磁场误差x。
本实施例中,通过各运动位置对应的磁场区域(第一磁场区域或第二磁场区域)来约束第一磁场向量的计算,能够极大地降低由于误触发的概率,避免对外部磁场干扰所带来的磁场向量变化的误判情况。
在一个实施例中,按键状态为上拨状态或下拨状态。当有一个稳定的外部干扰存在时,磁场向量和磁场向量的向量终点不再位于各自对应的磁场区域内。其中,磁场向量为按键位于下拨状态时获取到的第一磁场向量,磁场向量为按键位于上拨状态时获取到的第一磁场向量。
如图8所示,磁场向量和磁场向量分别对应的磁场区域以圆形区域示出,外部干扰的磁场向量(简称为干扰磁场向量)为在受到外部磁场干扰之后,磁场向量叠加干扰磁场向量之后变为磁场向量叠加干扰磁场向量之后变为即,上拨状态和下拨状态之间进行切换时,对应的预定运动轨迹由轨迹变为可以理解,受到稳定的外部磁场干扰时,预定运动轨迹的轨迹形状相同,坐标不同。因此,仍可以通过判断按键的当前运动轨迹和预定运动轨迹是否相同来识别按键状态。
在一个实施例中,磁场数据包括按键在静止状态下所处的静止位置处的第二磁场向量。在根据磁场数据确定按键的目标按键状态时,可先判断第二磁场向量与静止位置对应的标准磁场向量是否匹配;若是,则根据预设的标准磁场向量和按键状态之间的对应关系,确定与第二磁场向量相匹配的标准磁场向量对应的按键状态为目标按键状态。
其中,若第二磁场向量与静止位置对应的标准磁场向量相同,或者,第二磁场向量的向量终点位于静止位置对应的第三磁场区域内,则确定第二磁场向量与静止位置对应的标准磁场向量相匹配;第三磁场区域为以静止位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域。
以图7所示的第一磁场区域S为例,在按键处于静止状态时,如果获取到按键在静止位置时的第二磁场向量的向量终点位于第一磁场区域S内,即可确定按键的目标按键状态为标准磁场向量对应的按键状态。
本实施例中,通过判断第二磁场向量与静止位置对应的标准磁场向量是否匹配来识别按键状态,使得按键状态的识别方法更加简便、快速。并且,只要第二磁场向量的向量终点位于标准磁场向量对应的磁场区域内,即可确定按键的目标按键状态为标准磁场向量对应的按键状态,而如果第二磁场向量的向量终点位于标准磁场向量对应的磁场区域之外,即可确定收到外部磁场干扰,从而在准确识别按键状态的同时,还能够提升对外部磁场干扰的识别准确度。
此外,由上述实施例可看出,无论按键是静止状态还是运动状态,都可通过霍尔传感器获取到按键内的磁性件产生的磁场数据,并根据该磁场数据确定按键状态,使得磁场数据的获取和计算不受按键是否运动的影响,提高了确定按键状态的准确性。
本申请实施例提供的按键状态识别方法,执行主体可以为按键状态识别装置。本申请实施例中以按键状态识别装置执行按键状态识别方法为例,说明本申请实施例提供的按键状态识别装置。
图9是根据本申请一实施例的一种按键状态识别装置的示意性框图。该装置应用于电子设备,所述电子设备包括机身以及设置在所述机身外部的按键;所述机身内设置有霍尔传感器,所述按键内设置有磁性件;
如图9所示,所述装置包括:
获取模块91,用于通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;
确定模块92,用于根据所述磁场数据,确定所述按键的目标按键状态。
在一个实施例中,所述磁场数据包括所述按键在运动过程中的多个运动位置处的第一磁场向量;
所述确定模块92包括:
第一确定单元,用于根据所述多个运动位置对应的第一磁场向量,确定所述按键的当前运动轨迹;
第一判断单元,用于判断所述当前运动轨迹是否与预定运动轨迹相同;
第二确定单元,用于若是,则确定所述目标按键状态为与所述预定运动轨迹对应的预定按键状态。
在一个实施例中,所述第一确定单元还用于:
根据所述多个运动位置对应的第一磁场向量,确定所述运动过程中的磁场向量变化信息;所述磁场向量变化信息包括磁场模值变化信息和/或磁场方向变化信息;
根据所述磁场向量变化信息,确定所述按键的当前运动轨迹。
在一个实施例中,所述第一判断单元还用于:
将所述当前运动轨迹和所述预定运动轨迹分别划分为多个分段向量;
若所述多个分段向量中的每个分段向量均和所述预定运动轨迹中对应的分段向量相同,和/或,若所述每个分段向量的向量夹角均和所述预定运动轨迹中对应的分段向量的向量夹角相同,则确定所述当前运动轨迹与所述预定运动轨迹相同。
在一个实施例中,所述多个运动位置包括初始位置和终点位置;
所述确定模块92包括:
第二判断单元,用于根据所述磁场数据,判断所述初始位置对应的所述第一磁场向量的向量终点是否位于所述初始位置对应的第一磁场区域内、且所述终点位置对应的所述第一磁场向量的向量终点是否位于所述终点位置对应的第二磁场区域内;所述第一磁场区域为以所述初始位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域;所述第二磁场区域为以所述终点位置对应的标准磁场向量的向量终点为圆心、以所述最大磁场误差为半径的球形区域;
第三确定单元,用于若是,则根据所述磁场数据确定所述目标按键状态。
在一个实施例中,所述磁场数据包括所述按键在静止状态下所处的静止位置处的第二磁场向量;
所述确定模块92包括:
第三判断单元,用于判断所述第二磁场向量与所述静止位置对应的标准磁场向量是否匹配;
第四确定单元,用于若是,根据预设的标准磁场向量和按键状态之间的对应关系,确定与所述第二磁场向量相匹配的标准磁场向量对应的按键状态为所述目标按键状态。
在一个实施例中,所述第三判断单元还用于:
若所述第二磁场向量与所述静止位置对应的标准磁场向量相同,或者,所述第二磁场向量的向量终点位于所述静止位置对应的第三磁场区域内,则确定所述第二磁场向量与所述静止位置对应的标准磁场向量相匹配;所述第三磁场区域为以所述静止位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域。
在一个实施例中,所述获取模块91包括:
获取单元,用于在满足预设条件的情况下,通过所述霍尔传感器获取所述磁场数据;
所述预设条件包括以下至少一项:检测到所述按键的位置发生变化、达到预设时间间隔。
在本申请实施例中,通过在机身内设置霍尔传感器,以及机身外部的按键内设置磁性件,从而通过霍尔传感器获取磁性件产生的磁场数据,进而根据获取到的磁场数据确定按键的目标按键状态。由于机身内仅需设置一个霍尔传感器即可获取到磁场数据,因此降低了传感器的硬件成本,节省了电子设备的布板面积。
本申请实施例中的按键状态识别装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的按键状态识别装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的按键状态识别装置能够实现图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图10所示,本申请实施例还提供一种电子设备1000,包括处理器1001和存储器1002,存储器1002上存储有可在所述处理器1001上运行的程序或指令,该程序或指令被处理器1001执行时实现上述按键状态识别方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图11为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元111、网络模块112、音频输出单元113、输入单元114、传感器115、显示单元116、用户输入单元117、接口单元118、存储器119、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器110,用于通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;
根据所述磁场数据,确定所述按键的目标按键状态。
可选地,所述磁场数据包括所述按键在运动过程中的多个运动位置处的第一磁场向量;处理器110,还用于根据所述多个运动位置对应的第一磁场向量,确定所述按键的当前运动轨迹;判断所述当前运动轨迹是否与预定运动轨迹相同;若是,则确定所述目标按键状态为与所述预定运动轨迹对应的预定按键状态
可选地,处理器110,还用于根据所述多个运动位置对应的第一磁场向量,确定所述运动过程中的磁场向量变化信息;所述磁场向量变化信息包括磁场模值变化信息和/或磁场方向变化信息;根据所述磁场向量变化信息,确定所述按键的当前运动轨迹。
可选地,处理器110,还用于将所述当前运动轨迹和所述预定运动轨迹分别划分为多个分段向量;若所述多个分段向量中的每个分段向量均和所述预定运动轨迹中对应的分段向量相同,和/或,若所述每个分段向量的向量夹角均和所述预定运动轨迹中对应的分段向量的向量夹角相同,则确定所述当前运动轨迹与所述预定运动轨迹相同。
可选地,所述多个运动位置包括初始位置和终点位置;处理器110,还用于根据所述磁场数据,判断所述初始位置对应的所述第一磁场向量的向量终点是否位于所述初始位置对应的第一磁场区域内、且所述终点位置对应的所述第一磁场向量的向量终点是否位于所述终点位置对应的第二磁场区域内;所述第一磁场区域为以所述初始位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域;所述第二磁场区域为以所述终点位置对应的标准磁场向量的向量终点为圆心、以所述最大磁场误差为半径的球形区域;若是,则根据所述磁场数据确定所述目标按键状态。
可选地,所述磁场数据包括所述按键在静止状态下所处的静止位置处的第二磁场向量;处理器110,还用于判断所述第二磁场向量与所述静止位置对应的标准磁场向量是否匹配;
若是,根据预设的标准磁场向量和按键状态之间的对应关系,确定与所述第二磁场向量相匹配的标准磁场向量对应的按键状态为所述目标按键状态。
可选地,处理器110,还用于若所述第二磁场向量与所述静止位置对应的标准磁场向量相同,或者,所述第二磁场向量的向量终点位于所述静止位置对应的第三磁场区域内,则确定所述第二磁场向量与所述静止位置对应的标准磁场向量相匹配;所述第三磁场区域为以所述静止位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域。
可选地,处理器110,还用于在满足预设条件的情况下,通过所述霍尔传感器获取所述磁场数据;所述预设条件包括以下至少一项:检测到所述按键的位置发生变化、达到预设时间间隔。
应理解的是,本申请实施例中,输入单元114可以包括图形处理器(Graphics Processing Unit,GPU)1141和麦克风1142,图形处理器1141对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元116可包括显示面板1161,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1161。用户输入单元117包括触控面板1171以及其他输入设备1172中的至少一种。触控面板1171,也称为触摸屏。触控面板1171可包括触摸检测装置和触摸控制器两个部分。其他输入设备1172可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器119可用于存储软件程序以及各种数据。存储器119可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器119可以包括易失性存储器或非易失性存储器,或者,存储器119可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器119包括但不限于这些和任意其它适合类型的存储器。
处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述按键状态识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述按键状态识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述按键状态识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (10)

  1. 一种按键状态识别方法,应用于电子设备,所述电子设备包括机身以及设置在所述机身外部的按键;所述机身内设置有霍尔传感器,所述按键内设置有磁性件;
    所述方法包括:
    通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;
    根据所述磁场数据,确定所述按键的目标按键状态。
  2. 根据权利要求1所述的方法,其中,所述磁场数据包括所述按键在运动过程中的多个运动位置处的第一磁场向量;
    所述根据所述磁场数据,确定所述按键的目标按键状态,包括:
    根据所述多个运动位置对应的第一磁场向量,确定所述按键的当前运动轨迹;
    判断所述当前运动轨迹是否与预定运动轨迹相同;
    若是,则确定所述目标按键状态为与所述预定运动轨迹对应的预定按键状态。
  3. 根据权利要求2所述的方法,其中,所述根据所述多个运动位置对应的第一磁场向量,确定所述按键的当前运动轨迹,包括:
    根据所述多个运动位置对应的第一磁场向量,确定所述运动过程中的磁场向量变化信息;所述磁场向量变化信息包括磁场模值变化信息和/或磁场方向变化信息;
    根据所述磁场向量变化信息,确定所述按键的当前运动轨迹。
  4. 根据权利要求2所述的方法,其中,所述判断所述当前运动轨迹是否与预定运动轨迹相同,包括:
    将所述当前运动轨迹和所述预定运动轨迹分别划分为多个分段向量;
    若所述多个分段向量中的每个分段向量均和所述预定运动轨迹中对应的分段向量相同,和/或,若所述每个分段向量的向量夹角均和所述预定运动轨迹中对应的分段向量的向量夹角相同,则确定所述当前运动轨迹与所述预定运动轨迹相同。
  5. 根据权利要求2所述的方法,其中,所述多个运动位置包括初始位置和终点位置;
    所述根据所述磁场数据,确定所述按键的目标按键状态,包括:
    根据所述磁场数据,判断所述初始位置对应的所述第一磁场向量的向量终点是否位于所述初始位置对应的第一磁场区域内、且所述终点位置对应的所述第一磁场向量的向量终点是否位于所述终点位置对应的第二磁场区域内;所述第一磁场区域为以所述初始位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域;所述第二磁场区域为以所述终点位置对应的标准磁场向量的向量终点为圆心、以所述最大磁场误差为半径的球形区域;
    若是,则根据所述磁场数据确定所述目标按键状态。
  6. 根据权利要求1所述的方法,其中,所述磁场数据包括所述按键在静止状态下所处的静止位置处的第二磁场向量;
    所述根据所述磁场数据,确定所述按键的目标按键状态,包括:
    判断所述第二磁场向量与所述静止位置对应的标准磁场向量是否匹配;
    若是,根据预设的标准磁场向量和按键状态之间的对应关系,确定与所述第二磁场向量相匹配的标准磁场向量对应的按键状态为所述目标按键状态。
  7. 根据权利要求6所述的方法,其中,所述判断所述第二磁场向量与所述静止位置对应的标准磁场向量是否匹配,包括:
    若所述第二磁场向量与所述静止位置对应的标准磁场向量相同,或者,所述第二磁场向量的向量终点位于所述静止位置对应的第三磁场区域内,则确定所述第二磁场向量与所述静止位置对应的标准磁场向量相匹配;所述第三磁场区域为以所述静止位置对应的标准磁场向量的向量终点为圆心、以预设的最大磁场误差为半径的球形区域。
  8. 根据权利要求1所述的方法,其中,所述通过所述霍尔传感器获取磁场数据,包括:
    在满足预设条件的情况下,通过所述霍尔传感器获取所述磁场数据;
    所述预设条件包括以下至少一项:检测到所述按键的位置发生变化、达到预设时间间隔。
  9. 一种按键状态识别装置,应用于电子设备,所述电子设备包括机身以及设置在所述机身外部的按键;所述机身内设置有霍尔传感器,所述按键内设置有磁性件;
    所述装置包括:
    获取模块,用于通过所述霍尔传感器获取磁场数据;所述磁场数据包括所述磁性件产生的磁场;
    确定模块,用于根据所述磁场数据,确定所述按键的目标按键状态。
  10. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的按键状态识别方法的步骤。
PCT/CN2024/133432 2023-11-27 2024-11-21 按键状态识别方法、装置和电子设备 Pending WO2025113301A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311601999.0A CN117640811A (zh) 2023-11-27 2023-11-27 按键状态识别方法、装置和电子设备
CN202311601999.0 2023-11-27

Publications (1)

Publication Number Publication Date
WO2025113301A1 true WO2025113301A1 (zh) 2025-06-05

Family

ID=90028155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/133432 Pending WO2025113301A1 (zh) 2023-11-27 2024-11-21 按键状态识别方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN117640811A (zh)
WO (1) WO2025113301A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640811A (zh) * 2023-11-27 2024-03-01 维沃移动通信有限公司 按键状态识别方法、装置和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140342671A1 (en) * 2013-05-14 2014-11-20 Samsung Electronics Co., Ltd. Method of controlling communication unit via magnetic sensor and electronic device using the method
CN114427823A (zh) * 2020-10-29 2022-05-03 华为技术有限公司 磁按键触发方法和电子设备
CN114582648A (zh) * 2022-02-28 2022-06-03 维沃移动通信有限公司 一种电子设备
CN114785334A (zh) * 2022-04-12 2022-07-22 Oppo广东移动通信有限公司 控制按键调节方法、电子设备及存储介质
CN114877793A (zh) * 2022-05-13 2022-08-09 维沃移动通信有限公司 电子设备、电子设备状态确定方法及相关设备
CN117640811A (zh) * 2023-11-27 2024-03-01 维沃移动通信有限公司 按键状态识别方法、装置和电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140342671A1 (en) * 2013-05-14 2014-11-20 Samsung Electronics Co., Ltd. Method of controlling communication unit via magnetic sensor and electronic device using the method
CN114427823A (zh) * 2020-10-29 2022-05-03 华为技术有限公司 磁按键触发方法和电子设备
CN114582648A (zh) * 2022-02-28 2022-06-03 维沃移动通信有限公司 一种电子设备
CN114785334A (zh) * 2022-04-12 2022-07-22 Oppo广东移动通信有限公司 控制按键调节方法、电子设备及存储介质
CN114877793A (zh) * 2022-05-13 2022-08-09 维沃移动通信有限公司 电子设备、电子设备状态确定方法及相关设备
CN117640811A (zh) * 2023-11-27 2024-03-01 维沃移动通信有限公司 按键状态识别方法、装置和电子设备

Also Published As

Publication number Publication date
CN117640811A (zh) 2024-03-01

Similar Documents

Publication Publication Date Title
US20170083741A1 (en) Method and device for generating instruction
US10101874B2 (en) Apparatus and method for controlling user interface to select object within image and image input device
US20120281129A1 (en) Camera control
US20140270413A1 (en) Auxiliary device functionality augmented with fingerprint sensor
US20140362003A1 (en) Apparatus and method for selecting object by using multi-touch, and computer readable recording medium
US11886894B2 (en) Display control method and terminal device for determining a display layout manner of an application
JP2021531589A (ja) 目標対象の動作認識方法、装置及び電子機器
CN113253908B (zh) 按键功能执行方法、装置、设备及存储介质
CN112749590B (zh) 目标检测方法、装置、计算机设备和计算机可读存储介质
US20140232748A1 (en) Device, method and computer readable recording medium for operating the same
KR20150130188A (ko) 지문 인식을 이용한 휴대 단말장치의 제어 방법 및 그 휴대 단말 장치
WO2021057654A1 (zh) 屏幕触控管理方法、智能终端、装置及可读存储介质
CN108307036A (zh) 一种截屏方法及终端设备
WO2025113301A1 (zh) 按键状态识别方法、装置和电子设备
US10635372B2 (en) Display device having a transparent display and a method for controlling the display device to render content on a surface of the transparent display that a user faces
CN112783406B (zh) 操作执行方法、装置和电子设备
CN106775160A (zh) 一种终端多应用切换控制装置和方法
CN110738185B (zh) 表单对象的识别方法、装置及存储介质
CN110213205B (zh) 验证方法、装置及设备
CN108984097A (zh) 触控操作方法、装置、存储介质及电子设备
CN111061918A (zh) 图数据的处理方法、装置及存储介质
WO2024188220A1 (zh) 手持控制器光源的控制方法、系统、装置、设备及介质
CN111831575A (zh) 逻辑地址范围的存储方法、装置及存储设备
CN118092749A (zh) 触控区域确定方法、装置、电子设备及存储介质
CN112445363A (zh) 电子设备、电子设备的控制方法及装置、存储介质

Legal Events

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

Ref document number: 24896392

Country of ref document: EP

Kind code of ref document: A1