CN114777755A - Electronic compass calibration method and device, electronic equipment and storage medium - Google Patents

Electronic compass calibration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114777755A
CN114777755A CN202210220956.7A CN202210220956A CN114777755A CN 114777755 A CN114777755 A CN 114777755A CN 202210220956 A CN202210220956 A CN 202210220956A CN 114777755 A CN114777755 A CN 114777755A
Authority
CN
China
Prior art keywords
target
electronic compass
key
calibration
position information
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
CN202210220956.7A
Other languages
Chinese (zh)
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
Priority to CN202210220956.7A priority Critical patent/CN114777755A/en
Publication of CN114777755A publication Critical patent/CN114777755A/en
Priority to PCT/CN2023/080101 priority patent/WO2023169422A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • G01C17/38Testing, calibrating, or compensating of compasses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Abstract

The application discloses an electronic compass calibration method and device, electronic equipment and a storage medium, and belongs to the technical field of communication. The electronic device includes: target button, at least one hall sensor and electronic compass, this method includes: acquiring target position information of a target key through at least one Hall sensor, wherein the target position information is used for indicating the key position of the target key on the electronic equipment; determining a target calibration parameter through an electronic compass according to the target position information; and calibrating the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.

Description

Electronic compass calibration method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to an electronic compass calibration method, an electronic compass calibration device, electronic equipment and a storage medium.
Background
Generally, an electronic compass is provided in an electronic device, so that when a user wants to know a geomagnetic field direction, the user may trigger the electronic device to detect a geomagnetic field through the electronic compass and display the detected geomagnetic field direction, so that the user may view the geomagnetic field direction.
However, since an interfering magnetic field, for example, a magnetic field formed by a mute key and a hall sensor in the electronic device, may exist in the electronic device, the interfering magnetic field may interfere with the geomagnetic field detected by the electronic compass, and thus, a deviation of the direction of the geomagnetic field detected by the electronic compass may be caused.
As such, the accuracy of the electronic compass is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for calibrating an electronic compass, an electronic device, and a storage medium, which can solve the problem of poor accuracy of an electronic compass.
In a first aspect, an embodiment of the present application provides an electronic compass calibration method, where the electronic compass calibration method includes: acquiring target position information of a target key of the electronic equipment through at least one Hall sensor, wherein the target position information is used for indicating the key position of the target key on the electronic equipment; determining a target calibration parameter through an electronic compass according to the target position information; and calibrating the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.
In a second aspect, an embodiment of the present application provides an electronic compass calibration apparatus, including: target button, at least one hall sensor and electronic compass, this electronic compass calibrating device still includes: the device comprises an acquisition module, a determination module and a calibration module. The acquisition module is used for acquiring target position information of a target key of the electronic compass calibration device through at least one Hall sensor, wherein the target position information is used for indicating the key position of the target key on the electronic compass calibration device. And the determining module is used for determining the target calibration parameters through the electronic compass according to the target position information acquired by the acquiring module. And the calibration module is used for calibrating the magnetic field parameters output by the electronic compass by adopting the target calibration parameters determined by the determination module.
In a third aspect, an embodiment of the present application provides an electronic device, including: the printed circuit board PCB of the electronic equipment is provided with: a target key; the Hall sensor is arranged opposite to the target key and used for acquiring target position information of the target key, and the target position information is used for indicating the key position of the target key on the electronic equipment; the electronic compass is arranged at one end of the PCB, which is far away from the target key; the electronic compass is used for determining target calibration parameters according to the target position information, so that the electronic equipment can calibrate the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.
In a fourth aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fifth aspect, the present embodiments provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a sixth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a seventh aspect, the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In this embodiment, the electronic device may obtain, by using at least one hall sensor, target position information of a target key (the target position information is used to indicate a key position of the target key on the electronic compass calibration device), and determine, according to the target position information, a target calibration parameter by using the electronic compass, so that the electronic device may calibrate a magnetic field parameter output by the electronic compass according to the target calibration parameter. In the scheme, because the electronic equipment can acquire the target position information of the target key which possibly interferes with the detection of the geomagnetic field by the electronic compass, and calibrate the magnetic field parameters output by the electronic compass according to the target calibration parameters determined by the target position information, namely the target calibration parameters are related to the target position information, the condition that the magnetic field of the target key interferes with the detection of the geomagnetic field by the electronic compass can be avoided, so that the deviation of the direction of the geomagnetic field obtained by the detection of the electronic compass can be avoided, and the accuracy of the electronic compass can be improved.
Drawings
Fig. 1 is a flowchart of an electronic compass calibration method according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of an electronic compass calibration method according to an embodiment of the present disclosure;
fig. 3 is a third flowchart of an electronic compass calibration method according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of an electronic compass calibrating apparatus according to an embodiment of the present application;
FIG. 5 is a fourth flowchart of a method for calibrating an electronic compass according to an embodiment of the present disclosure;
fig. 6 is a second schematic structural diagram of an electronic compass calibration apparatus according to the embodiment of the present application;
fig. 7 is a third schematic structural diagram of an electronic compass calibrating apparatus provided in the embodiment of the present application;
FIG. 8 is a fourth schematic view illustrating a structure of an electronic compass calibrating apparatus according to an embodiment of the present application;
FIG. 9 is a fifth embodiment of the present application showing the structure of an electronic compass calibration device;
fig. 10 is a sixth schematic structural view of an electronic compass calibrating apparatus provided in the embodiments of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the objects identified as "first", "second", etc. are generally one, and do not limit the number of objects, e.g., the first hall sensor may be one, or multiple. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The electronic compass calibration method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
With the development of communication technology, the functions attached to the electronic device are also more and more abundant, so that the number of components integrated in the electronic device is gradually increased, for example, an electronic compass may be added to the electronic device, and in the current stacking of the electronic device, the electronic compass is usually arranged together with the hall of the mute key, so that when a user needs to know the geomagnetic direction (i.e. current location), the electronic device may detect the current geomagnetic field environment through the electronic compass, and display the detected geomagnetic field direction, so that the user can view the current location and direction.
However, both the electronic compass and the mute key hall belong to magnetic sensors, and since the mute key hall function needs an external magnet to provide a certain magnetic field, the position of the mute key can be determined by detecting the size of the magnetic field, when the external magnetic field set by the mute key changes, the magnetic field detected by the electronic compass may be misjudged, and in the related art, the layout of the electronic compass and the mute key magnet may be greater than a preset distance (for example, 15MM), so that the interference of the mute key magnet on the electronic compass can be reduced, but if the distance between the electronic compass and the mute key is too large, the difficulty in the overall stacking layout of the electronic device may be increased.
In an embodiment of the present application, an electronic device provided by the present application includes: the electronic equipment comprises a target key, at least one Hall sensor and an electronic compass, so that the electronic equipment can acquire current position information of a mute key (namely the target key) through the at least one Hall sensor (the current position information is used for indicating the key position of the mute key on the electronic equipment at present), and determine a calibration parameter through the electronic compass according to the current position information, so that the electronic equipment can calibrate a magnetic field parameter output by the electronic compass according to the determined calibration parameter. In the scheme, because the electronic equipment can acquire the current position information of the mute key which possibly interferes the electronic compass to detect the geomagnetic field, and calibrate the magnetic field parameters output by the electronic compass according to the calibration parameters determined by the current position information, namely the determined calibration parameters are related to the current position information, the condition that the magnetic field of the mute key interferes the electronic compass to detect the geomagnetic field can be avoided, so that the deviation of the geomagnetic field direction obtained by the electronic compass can be avoided, and the accuracy of the electronic compass can be improved.
An embodiment of the present application provides a method for calibrating an electronic compass, and fig. 1 shows a flowchart of the method for calibrating an electronic compass provided in the embodiment of the present application. As shown in fig. 1, the electronic compass calibration method provided in the embodiment of the present application may include the following steps 201 to 203.
Step 201, the electronic device obtains target position information of a target key through at least one hall sensor.
In the embodiment of the application, the target position information is used for indicating the key position of the target key on the electronic device.
Optionally, in this embodiment of the application, a magnetic member may be disposed in the target key.
Wherein, the target key can be any one of the following keys: a mute key, a volume key, a key corresponding to a preset location in the electronic device, or any key that is less than a preset distance (e.g., 2CM) from the electronic compass. The magnetic member may include at least one of: magnets, electromagnets, and the like.
Optionally, in this embodiment of the application, the target position information may specifically be coordinate information of the target key in a preset coordinate system in the electronic device.
Optionally, in this embodiment of the application, the electronic device may obtain the target position information of the target key when the electronic device is in the power-on state. Wherein the boot state may include any one of: a power-on starting state, a standby state (such as a screen-off standby state), an operating state (such as a screen-on state), and the like.
In one example, in a case where the electronic device runs a navigation application, the electronic device may acquire target position information of the target key in real time.
In another example, in a case where the electronic device receives a first input of the target key by the user, the electronic device may acquire target position information of the target key in real time. The first input is used for moving the target key so as to change the key position of the target key on the electronic equipment.
It can be understood that if the key position of the target key on the electronic device changes, it may be considered that the magnetic field near the target key may change, and therefore, the electronic device may obtain the target position information in real time.
Further optionally, in this embodiment of the application, the first input may be any one of: a press input (e.g., a click input), a toggle input, a slide input, or a preset trajectory input, etc. The specific method can be determined according to actual use requirements, and the embodiment of the application is not limited.
Optionally, in this embodiment of the application, the electronic device may further include at least one hall sensor, and the at least one hall sensor is disposed in a position within a preset range of the target key, so that the at least one hall sensor may output corresponding hall parameters, respectively, to output the at least one hall parameter, and the electronic device may determine target position information of the target key according to the at least one hall parameter.
Step 202, the electronic device determines target calibration parameters through an electronic compass according to the target position information.
In this embodiment, the target calibration parameter is used to calibrate a magnetic field parameter output by an electronic compass of an electronic device.
Optionally, in this embodiment of the present application, the target calibration parameter may include at least one of the following: angle relation parameters, magnetic field distribution parameters, magnetic field direction parameters or acceleration parameters.
Optionally, in this embodiment of the application, a plurality of preset calibration parameters (for example, at least two preset calibration parameters in the following embodiments) are stored in advance in the electronic device, and the plurality of preset calibration parameters correspond to the plurality of position information one to one, so that the electronic device may determine a target calibration parameter corresponding to the target position information.
Further optionally, in this embodiment of the application, the electronic device may determine, from the plurality of pieces of location information, one piece of location information that matches the target location information, and determine, as the target calibration parameter, a preset calibration parameter corresponding to the one piece of location information.
The above "matching with the target position information" may be understood as: the same as the target position information; or the difference value between the target position information and the target position information is less than or equal to a preset threshold value.
And 203, the electronic equipment calibrates the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.
Optionally, in this embodiment of the application, the magnetic field parameter may include a magnetic field direction parameter.
Optionally, in this embodiment of the application, the electronic device may use a preset calibration algorithm to calculate according to the target calibration parameter and the magnetic field parameter output by the electronic compass, so as to obtain the calibrated magnetic field parameter. It will be appreciated that the calibrated magnetic field parameters are accurate magnetic field parameters.
In one example, in a case that the electronic device does not calibrate the magnetic field parameters output by the electronic compass of the electronic device, the electronic device may directly calibrate the magnetic field parameters output by the electronic compass of the electronic device by using the target calibration parameters.
In another example, in a case that the electronic device calibrates the magnetic field parameter output by the electronic compass of the electronic device with another calibration parameter (e.g., an initial calibration parameter in the following embodiments), the electronic device may update the other calibration parameter to a target calibration parameter, and then calibrate the magnetic field parameter output by the electronic compass of the electronic device with the target calibration parameter.
It is understood that after the electronic device determines the target calibration parameter, it may happen that the electronic device is calibrating the magnetic field parameter output by the electronic compass with another calibration parameter, which is not related to the target location information, and thus it may happen that the magnetic field of the target key interferes with the detection of the geomagnetic field by the electronic compass, and therefore, the electronic device may update the other calibration parameter to the target calibration parameter.
Optionally, in this embodiment, with reference to fig. 1, as shown in fig. 2, before step 203, the method for calibrating an electronic compass provided in this embodiment further includes step 301 described below.
Step 301, under the condition that the magnetic field parameters are calibrated by using the initial calibration parameters, the electronic device updates the initial calibration parameters to the target calibration parameters.
Further optionally, in this embodiment of the application, the electronic compass performs magnetic field calibration processing in real time, and when the position of the target key changes, the electronic device may update the initial calibration parameter to the target calibration parameter, so that the magnetic field parameter output by the electronic compass is recalibrated by the updated target calibration parameter, so as to obtain the magnetic field parameter output based on the target calibration parameter. For a specific process of obtaining the target calibration parameter, reference may be made to the above embodiments, which are not described herein again.
Further optionally, in this embodiment of the application, the electronic device may receive a second input to the target key by the user, so as to trigger the position information of the target key to change (for example, a second position described below), so that the electronic device may obtain a target calibration parameter corresponding to the second position information, and calibrate the magnetic field parameter output by the electronic compass through the target calibration parameter corresponding to the second position information.
Further optionally, in this embodiment of the application, the second input may be any one of: click input, toggle input, slide input, or preset trajectory input. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the application, the electronic device can update the stored initial calibration parameters to the target calibration parameters related to the target position information, so that the magnetic field parameters output by the electronic compass are calibrated through the target calibration parameters, and thus, the accuracy of the electronic compass is improved.
Optionally, in this embodiment of the application, after calibrating the magnetic field parameters output by the electronic compass, the electronic device may perform step 201 to step 203 described above again to calibrate the magnetic field parameters output by the electronic compass again.
In an example, the electronic device may perform the above steps 201 to 203 again after a preset time period after calibrating the magnetic field parameter output by the electronic compass. It will be appreciated that the electronic device may recalibrate the magnetic field parameters output by the electronic compass at intervals.
In another example, the electronic device may perform steps 201 to 203 again according to the input of the user to the electronic device. It can be understood that the electronic device may also calibrate the magnetic field parameters output by the electronic compass again according to the user's requirements.
In the embodiment of the application, the magnet is arranged in the target key, so that when the position of the key where the target key is located on the electronic device is changed, a magnetic field near the target key may be changed, so that the magnetic field parameters output by the electronic compass are inaccurate, therefore, the electronic device may obtain the target position information of the target key, and determine the target calibration parameters according to the target position information, so as to calibrate the magnetic field parameters output by the electronic compass of the electronic device by using the target calibration parameters, so as to obtain the accurate magnetic field parameters.
The embodiment of the application provides an electronic compass calibration method, where an electronic device may obtain target position information of a target key (the target position information is used to indicate a key position of the target key on the electronic device), and determine a target calibration parameter according to the target position information, so that the electronic device may calibrate a magnetic field parameter output by the electronic compass according to the target calibration parameter. In the scheme, because the electronic equipment can acquire the target position information of the target key which possibly interferes with the detection of the geomagnetic field by the electronic compass, and calibrate the magnetic field parameters output by the electronic compass according to the target calibration parameters determined by the target position information, namely the target calibration parameters are related to the target position information, the condition that the magnetic field of the target key interferes with the detection of the geomagnetic field by the electronic compass can be avoided, so that the deviation of the direction of the geomagnetic field obtained by the detection of the electronic compass can be avoided, and the accuracy of the electronic compass can be improved.
In addition, the electronic equipment can calibrate the magnetic field parameters output by the electronic compass according to the target calibration parameters determined by the target position information, so that the electronic compass and the target keys can be arranged in adjacent areas, and the stacking difficulty of the whole electronic equipment can be reduced.
In the following, it will be exemplified how the electronic device acquires the target position information by taking an example in which two hall sensors are provided in the electronic device.
Optionally, in this embodiment of the application, with reference to fig. 1, as shown in fig. 3, the electronic device further includes a first hall sensor and a second hall sensor. The step 201 can be specifically realized by the steps 201a and 201b described below.
Step 201a, the electronic device obtains a first hall parameter detected by the first hall sensor and a second hall parameter detected by the second hall sensor.
Optionally, in this embodiment of the present application, the first hall sensor and the second hall sensor may be linear hall sensors (for example, open-loop hall sensors or closed-loop hall sensors), or switch-type hall sensors.
It should be noted that the first hall sensor and the second hall sensor have opposite polarities, and both the first hall sensor and the second hall sensor are perpendicular to the button magnet.
Optionally, in this embodiment of the application, the first hall parameter and the second hall parameter may specifically be both hall voltage values.
The first Hall sensor and the second Hall sensor are both provided with Hall voltage, the stronger the magnetic field is, the higher the voltage is, and on the contrary, the weaker the magnetic field is, the lower the voltage is, so that the first Hall sensor can obtain one Hall voltage value (namely, a first Hall parameter) according to the detected magnetic field size of the magnet of the target key, and the second Hall sensor can obtain another Hall voltage value (namely, a second Hall parameter) according to the detected magnetic field size of the magnet of the target key, so that the electronic equipment can determine the obtained target position information of the target key according to the first Hall parameter and the second Hall parameter.
It can be understood that when the magnet in the target key moves (for example, moves up and down, or moves left and right), the moving position of the magnet is limited and fixed by the structure of the target key, and when the key magnet moves up and down, the magnetic field generated by the magnet also changes up and down, so that after the size, shape and brand of the magnet are determined, the surface magnetism and the magnetic field range of the magnet can also be determined accordingly, and therefore, the electronic device can determine the target position information of the target key through the first hall parameter and the second hall parameter. The same reason for moving left and right is not described herein.
Step 201b, the electronic device determines the target position information according to the first hall parameter and the second hall parameter.
Optionally, in this embodiment of the application, the electronic device may determine the target position information according to whether the first hall parameter is greater than (or smaller than) a first preset voltage value, and whether the second hall parameter is less than (or larger than) a second preset voltage value.
For example, assuming that the magnet of the target key is close to the first hall sensor (i.e., the target key is at a first position, which is an upper half area of the target key), at this time, the magnetic field of the magnet detected by the first hall sensor is larger, and the magnetic field of the magnet detected by the second hall sensor is smaller, so that the hall voltage value (i.e., the first hall parameter) obtained by the first hall sensor is larger, and the hall voltage value (i.e., the second hall parameter) obtained by the second hall sensor is smaller, so that the electronic device may determine the first position information as the target position information in a case where the first hall parameter is larger than the first preset voltage value, and the second hall parameter is smaller than the second preset voltage value. The first position information is used for indicating that the key position of the target key on the electronic equipment is a first position.
For example, as shown in fig. 4, the magnet in the target key is close to the first hall sensor 13, the magnetic field of the magnet detected by the first hall sensor 14 is larger, and the magnetic field of the magnet detected by the second hall sensor 13 is smaller, and at this time, under the condition that the first hall parameter is larger than the first preset voltage value, and the second hall parameter is smaller than the second preset voltage value, the electronic device may determine the first position information as the target position information.
Further exemplarily, assuming that the magnet in the target key is close to the second hall sensor (i.e., the target key is located at the second position, which is the lower half area of the target key), at this time, the magnetic field of the magnet detected by the first hall sensor is smaller, and the magnetic field of the magnet detected by the second hall sensor is larger, so that the hall voltage value (i.e., the first hall parameter) obtained by the first hall sensor is smaller, and the hall voltage value (i.e., the second hall parameter) obtained by the second hall sensor is larger, and therefore, the electronic device may determine the second position information as the target position information under the condition that the first hall parameter is smaller than the first preset voltage value, and the second hall parameter is larger than the second preset voltage value. The second position information is used for indicating that the key position of the target key on the electronic equipment is a second position.
In the embodiment of the application, because the electronic equipment can be provided with the two Hall sensors, the electronic equipment can directly determine the target position information according to the two Hall parameters detected by the two Hall sensors, and therefore, the accuracy of determining the target position information by the electronic equipment can be improved.
Of course, in order to further reduce the interference of the magnetic field of the magnet in the target key to the earth magnetic field detected by the electronic compass, a magnetic isolation component can be arranged on the target key.
It will be exemplified below how the electronic device determines the target calibration parameters.
Optionally, in this embodiment of the present application, with reference to fig. 1 and as shown in fig. 5, the step 202 may be specifically implemented by the following step 202 a.
Step 202a, the electronic device determines a target calibration parameter corresponding to the target position information from at least two preset calibration parameters pre-stored in the electronic compass.
In an embodiment of the present application, the at least two preset calibration parameters correspond to at least two pieces of location information one to one, where the at least two pieces of location information include target location information.
Further optionally, in this embodiment of the application, for each preset calibration parameter of the at least two preset calibration parameters, the target key may be moved to a key position, a deviation value between the magnetic field parameter output by the electronic compass and the accurate magnetic field parameter is obtained, and then a preset calibration parameter is determined according to the deviation value to obtain a preset calibration parameter, so as to obtain the at least two preset calibration parameters. The accurate magnetic field parameters may be magnetic field parameters detected by other devices (e.g., a compass).
It can be understood that, in the whole machine, the magnetic field environment where the electronic compass is located is complex, and in order to measure the geomagnetic field more accurately, at least two preset calibration parameters can be predetermined according to different key positions of the target key, so that the electronic device can determine the corresponding preset calibration parameters according to the key positions of the target key.
Further optionally, in this embodiment of the application, at least two hard magnetic databases are preset in the electronic compass, and each hard magnetic database stores a preset calibration parameter, so that the electronic device can determine, according to at least two corresponding relationships, one hard magnetic database corresponding to the target location information, and determine the preset calibration parameter in the one hard magnetic database as the target calibration parameter. Wherein, each corresponding relation in the at least two corresponding relations is the corresponding relation between one position information and one hard magnetic database.
Specifically, the electronic device may determine, from at least two pieces of location information in the at least two corresponding relationships, one piece of location information that matches the target location information, and then determine, as the target calibration parameter, one preset calibration parameter in the hard magnetic library that corresponds to the one piece of location information.
In the embodiment of the application, the electronic equipment can adjust the magnetic field parameters output by the electronic compass through the target calibration parameters corresponding to the positions of the target keys, so that the situation that the target keys possibly interfere the electronic compass to detect the geomagnetic field when the target keys are close to the electronic compass is avoided, and the geomagnetic field direction obtained by the electronic compass is deviated is caused, so that the accuracy of the electronic compass is improved.
An embodiment of the present application provides an electronic device, fig. 6 shows a schematic structural diagram of the electronic device provided in the embodiment of the present application, and as shown in fig. 6, the electronic device 10 may include: PCB11, target key 12, at least one hall sensor including a first hall sensor 13 and a second hall sensor 14, and an electronic compass 15.
Wherein, be provided with on this PCB: a first hall sensor 13 and a second hall sensor 14, the first hall sensor 13 and the second hall sensor 14 being arranged opposite to the target key 12; and the electronic compass 15 is arranged at one end of the PCB11 far away from the target key 12.
In the embodiment of the application, the at least one hall sensor is used for acquiring target position information of a target key, and the target position information is used for indicating the key position of the target key on the electronic device; the electronic compass is used for determining target calibration parameters according to the target position information, so that the electronic equipment can calibrate the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.
The embodiment of the application provides an electronic device, where the electronic device may obtain target position information of a target key through at least one hall sensor (the target position information is used to indicate a key position of the target key on the electronic device), and determine a target calibration parameter through an electronic compass according to the target position information, so that the electronic device may calibrate a magnetic field parameter output by the electronic compass according to the target calibration parameter. In the scheme, the electronic equipment can acquire the target position information of a target key which possibly interferes with the detection of the geomagnetic field by the electronic compass, and calibrate the magnetic field parameters output by the electronic compass according to the target calibration parameters determined by the target position information, namely, the target calibration parameters are related to the target position information, so that the condition that the magnetic field of the target key interferes with the detection of the geomagnetic field by the electronic compass can be avoided, the deviation of the direction of the geomagnetic field obtained by the detection of the electronic compass can be avoided, and the accuracy of the electronic compass can be improved.
Optionally, in this embodiment, with reference to fig. 6 and as shown in fig. 7, the key positions of the target keys 12 include: a first key position 121 and a second key position 122; the at least one hall sensor 13 includes: a first hall sensor 13 and a second hall sensor 14.
The first key position 121 faces the first hall sensor 13, and the second key position 122 faces the second hall sensor 14.
Specifically, the first hall sensor 13 and the second hall sensor 14 are both located on the same plane and are both perpendicular to the target key 12, and the electronic compass 15 is located above the first hall sensor 131, and the distance between the electronic compass and the first hall sensor 13 is less than 15 MM.
In the embodiment of the application, the electronic equipment can be provided with the two Hall sensors, so that the electronic equipment can directly determine the key position of the target key according to the two Hall sensors, and therefore, the accuracy of determining the key position of the target key by the electronic equipment can be improved.
Optionally, in this embodiment of the application, as shown in fig. 8 in combination with fig. 6, the electronic device further includes a magnetic isolation component 15.
Optionally, in this embodiment of the present application, the magnetic shielding component 16 may be disposed on the PCB11, and the magnetic shielding component 16 may be any one of the following: magnetic shielding sheets, silicon steel sheets, or any member having magnetic shielding capability.
It is understood that the magnetic shield sheet is a soft magnetic material obtained by sintering at a constant high temperature, and has a high magnetic permeability and a low magnetic loss factor. The electromagnetic wave energy is absorbed and converted into heat energy by utilizing the electron scattering caused by the thermal motion of the functional component lattice electric field and the interaction between electrons, thereby achieving the purpose of attenuating the electromagnetic wave.
In the embodiment of the present application, the target button, the first hall sensor, and the second hall sensor are all disposed in the space formed by the magnetism isolating component 16.
Fig. 8 is a plan view of the electronic apparatus.
Further optionally, in this embodiment of the application, the space formed by the magnetic isolation component 16 may specifically be: the space enclosed by the magnetic shielding component 16 and the PCB11, or the space enclosed by the magnetic shielding component 16.
Specifically, a groove may be disposed on the magnetism isolating member 16, and a notch of the groove is connected (e.g., fixedly connected) with the PCB, so that the target button, the first hall sensor, and the second hall sensor are disposed at positions of the PCB located in the groove so as to be disposed in a space formed by the magnetism isolating member 16.
For example, as shown in fig. 9, the magnetic shielding member 16 may be provided with a groove, and a notch of the groove is fixedly connected to the PCB11, so that the target button 12, the first hall sensor 13, and the second hall sensor 14 are all disposed at a position where the PCB11 is located in the groove.
It can be understood that when the whole electronic equipment is stacked, a magnetism isolating piece space is reserved above the target key, the first Hall sensor and the second Hall sensor, so that a magnetic field generated by a magnet in the target key is determined in the magnetism isolating piece space and cannot radiate to the outside. Therefore, the electronic compass will not be influenced by the magnetic field of the target key when detecting the geomagnetism.
In the embodiment of the application, through setting up magnetism isolating component for on target button, first hall sensor and the second hall sensor to make magnetism isolating component guide the magnetic field that the magnet of target button produced, outwards radiation not, consequently can avoid the magnetic field interference electron compass that this target button detected the condition of geomagnetic field, thereby can avoid the geomagnetic field direction that electron compass detected and obtain to take place the deviation, so, can improve the degree of accuracy of electron compass.
It should be noted that, in the electronic compass calibration method provided in the embodiment of the present application, the execution subject may be an electronic device. In the embodiment of the present application, an electronic device is taken as an example to execute an electronic compass calibration method, and the electronic device provided in the embodiment of the present application is described.
Fig. 10 shows a schematic diagram of a possible structure of the electronic compass calibration apparatus according to the embodiment of the present application. As shown in fig. 9, the electronic compass calibration apparatus includes: a target key, at least one hall sensor and an electronic compass, the electronic compass calibration device 70 may include: an acquisition module 71, a determination module 72 and a calibration module 73.
The obtaining module 71 is configured to obtain, through at least one hall sensor, target location information of a target key of the electronic compass calibration apparatus, where the target location information is used to indicate a key location of the target key on the electronic compass calibration apparatus 70. And the determining module 72 is configured to determine the target calibration parameter through the electronic compass according to the target position information acquired by the acquiring module 71. And a calibration module 73, configured to calibrate the magnetic field parameter output by the electronic compass by using the target calibration parameter determined by the determination module 72.
In a possible implementation manner, the determining module 72 is specifically configured to determine a target calibration parameter corresponding to the target location information from at least two preset calibration parameters pre-stored in the electronic compass; the at least two preset calibration parameters correspond to the at least two pieces of position information one to one, and the at least two pieces of position information include target position information.
In a possible implementation manner, the electronic compass calibration apparatus provided in the embodiment of the present application further includes an update module. And an updating module, configured to update the initial calibration parameter to the target calibration parameter when the calibration module 73 calibrates the magnetic field parameter with the initial calibration parameter before the calibration module 73 calibrates the magnetic field parameter output by the electronic compass with the target calibration parameter.
In a possible implementation manner, the electronic compass calibration apparatus further comprises a first hall sensor and a second hall sensor. The acquiring module 71 is specifically configured to acquire a first hall parameter detected by a first hall sensor and a second hall parameter detected by a second hall sensor; and determining the target position information according to the first Hall parameter and the second Hall parameter.
The embodiment of the application provides an electronic compass calibrating device, because electronic compass calibrating device can acquire the target position information that probably disturbs the target button that electronic compass detected the geomagnetic field, and according to the target calibration parameter that this target position information confirms, calibrate the magnetic field parameter of electronic compass output, target calibration parameter is relevant with target position information promptly, consequently can avoid the magnetic field of this target button to disturb the condition that electronic compass detected the geomagnetic field, thereby can avoid the geomagnetic field direction that electronic compass detected and obtains to take place the deviation, so, can improve the degree of accuracy of electronic compass.
The electronic compass calibration device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in an electronic device. The device can be mobile electronic equipment or non-mobile electronic equipment. The Mobile electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, an in-vehicle electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a Television (TV), an assistant, or a self-service machine, and the embodiments of the present application are not limited in particular.
The electronic compass calibration 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 is not specifically limited in the embodiment of the present application.
The electronic compass calibration device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 8, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 90 is further provided in the embodiment of the present application, and includes a processor 91 and a memory 92, where the memory 92 stores a program or an instruction that can be executed on the processor 91, and when the program or the instruction is executed by the processor 91, the steps of the embodiment of the electronic compass calibration method are implemented, and the same technical effects can be achieved, and are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 110 is configured to acquire, through at least one hall sensor, target position information of a target key of the electronic device, where the target position information is used to indicate a key position of the target key on the electronic device; determining target calibration parameters through an electronic compass according to the target position information; and calibrating the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.
The embodiment of the application provides an electronic device, because the electronic device can acquire target position information of a target key which may interfere with an electronic compass to detect a geomagnetic field, and calibrate a magnetic field parameter output by the electronic compass according to a target calibration parameter determined by the target position information, that is, the target calibration parameter is related to the target position information, the situation that the magnetic field of the target key interferes with the electronic compass to detect the geomagnetic field can be avoided, so that deviation of the direction of the geomagnetic field obtained by the electronic compass can be avoided, and thus, the accuracy of the electronic compass can be improved.
Optionally, in this embodiment of the application, the processor 110 is specifically configured to determine a target calibration parameter corresponding to the target position information from at least two preset calibration parameters pre-stored in the electronic compass; the at least two preset calibration parameters correspond to the at least two pieces of position information one to one, and the at least two pieces of position information include target position information.
In the embodiment of the application, the electronic equipment can adjust the magnetic field parameters output by the electronic compass through the target calibration parameters corresponding to the target key positions, and avoids the problem that the target key possibly interferes with the electronic compass to detect the geomagnetic field when the target key is close to the electronic compass, so that the geomagnetic field direction obtained by the electronic compass is deviated, and the accuracy of the electronic compass is improved.
Optionally, in this embodiment of the application, the processor 110 is further configured to update the initial calibration parameter to the target calibration parameter when the magnetic field parameter output by the electronic compass is calibrated by using the initial calibration parameter before the magnetic field parameter is calibrated by using the target calibration parameter.
In the embodiment of the application, the electronic device may update the stored initial calibration parameter to the target calibration parameter related to the target position information, so as to calibrate the magnetic field parameter output by the electronic compass through the target calibration parameter, thereby improving the accuracy of the electronic compass.
Optionally, in this embodiment of the application, the electronic device further includes a first hall sensor and a second hall sensor. The processor 110 is specifically configured to obtain a first hall parameter detected by the first hall sensor and a second hall parameter detected by the second hall sensor; and determining the target position information according to the first Hall parameter and the second Hall parameter.
In the embodiment of the application, because the electronic equipment can be provided with the two Hall sensors, the electronic equipment can directly determine the target position information according to the two Hall parameters detected by the two Hall sensors, and therefore, the accuracy of determining the target position information by the electronic equipment can be improved.
The electronic device provided by the embodiment of the application can realize each process realized by the method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, memory 109 may include volatile memory or non-volatile memory, or memory 109 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). Memory 109 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor, which mainly handles operations related to the operating system, user interface, application programs, etc., and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not 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 or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
The embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the above-mentioned electronic compass calibration method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than 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.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (10)

1. An electronic compass calibration method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a target key, at least one Hall sensor and an electronic compass, and the method comprises the following steps:
acquiring target position information of the target key through the at least one Hall sensor, wherein the target position information is used for indicating the key position of the target key on the electronic equipment;
determining target calibration parameters through the electronic compass according to the target position information;
and calibrating the magnetic field parameters output by the electronic compass by adopting the target calibration parameters.
2. The method of claim 1, wherein determining target calibration parameters from the target location information via the electronic compass comprises:
determining the target calibration parameter corresponding to the target position information from at least two preset calibration parameters prestored in the electronic compass;
the at least two preset calibration parameters correspond to at least two pieces of position information one to one, and the at least two pieces of position information include the target position information.
3. The method of claim 1, wherein prior to said calibrating the magnetic field parameters output by the electronic compass using the target calibration parameters, the method further comprises:
updating the initial calibration parameters to the target calibration parameters when the magnetic field parameters are calibrated using the initial calibration parameters.
4. The method of claim 1, wherein the at least one hall sensor comprises a first hall sensor and a second hall sensor;
the obtaining of the target position information of the target key through the at least one hall sensor includes:
acquiring a first Hall parameter detected by the first Hall sensor and a second Hall parameter detected by the second Hall sensor;
and determining the target position information according to the first Hall parameter and the second Hall parameter.
5. An electronic compass calibration apparatus, characterized in that the electronic compass calibration apparatus comprises: target button, at least one hall sensor and electronic compass, electronic compass calibrating device still includes: the device comprises an acquisition module, a determination module and a calibration module;
the acquisition module is used for acquiring target position information of the target key through the at least one Hall sensor, wherein the target position information is used for indicating the key position of the target key on the electronic compass calibration device;
the determining module is configured to determine a target calibration parameter through the electronic compass according to the target location information acquired by the acquiring module;
and the calibration module is used for calibrating the magnetic field parameters output by the electronic compass by adopting the target calibration parameters determined by the determination module.
6. An electronic device, characterized in that a printed circuit board, PCB, of the electronic device is provided with:
a target key;
the Hall sensor is arranged opposite to the target key and used for acquiring target position information of the target key, and the target position information is used for indicating the key position of the target key on the electronic equipment;
the electronic compass is arranged at one end of the PCB, which is far away from the target key;
the electronic compass is used for determining a target calibration parameter according to the target position information, so that the electronic device can calibrate the magnetic field parameter output by the electronic compass by using the target calibration parameter.
7. The electronic device of claim 6, wherein the key position of the target key comprises: a first key position and a second key position; the at least one hall sensor comprises: a first Hall sensor and a second Hall sensor;
the first button position is over against the first Hall sensor, and the second button position is over against the second Hall sensor.
8. The electronic device of claim 6, wherein the PCB of the electronic device further comprises:
the magnetic isolation component and the PCB form a magnetic isolation space;
the target key and the at least one Hall sensor are arranged in the magnetic isolation space.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the electronic compass calibration method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that a program or instructions are stored thereon, which program or instructions, when executed by a processor, carry out the steps of the electronic compass calibration method as claimed in any one of claims 1 to 4.
CN202210220956.7A 2022-03-08 2022-03-08 Electronic compass calibration method and device, electronic equipment and storage medium Pending CN114777755A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210220956.7A CN114777755A (en) 2022-03-08 2022-03-08 Electronic compass calibration method and device, electronic equipment and storage medium
PCT/CN2023/080101 WO2023169422A1 (en) 2022-03-08 2023-03-07 Electronic compass calibration method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210220956.7A CN114777755A (en) 2022-03-08 2022-03-08 Electronic compass calibration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114777755A true CN114777755A (en) 2022-07-22

Family

ID=82424301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210220956.7A Pending CN114777755A (en) 2022-03-08 2022-03-08 Electronic compass calibration method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114777755A (en)
WO (1) WO2023169422A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023169422A1 (en) * 2022-03-08 2023-09-14 维沃移动通信有限公司 Electronic compass calibration method and apparatus, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101331385A (en) * 2005-12-16 2008-12-24 旭化成电子材料元件株式会社 Position detector
CN108989492A (en) * 2018-06-08 2018-12-11 Oppo广东移动通信有限公司 Electronic device and driving detection method
CN112762915A (en) * 2020-12-21 2021-05-07 深圳酷派技术有限公司 Compass precision optimization method and device, storage medium and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1605232A3 (en) * 2004-06-11 2010-12-29 Yamaha Corporation Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus
JP4111211B2 (en) * 2004-08-10 2008-07-02 ヤマハ株式会社 Direction data generation method, direction sensor unit, storage medium, and portable electronic device
JP4590511B2 (en) * 2007-03-23 2010-12-01 アイチ・マイクロ・インテリジェント株式会社 Electronic compass
US8880373B2 (en) * 2009-11-04 2014-11-04 Qualcomm Incorporated Accurate magnetic compass in mobile electronic device
CN103884325B (en) * 2012-12-21 2016-08-03 西安合众思壮导航技术有限公司 Electronic compass and the equipment with this electronic compass
CN107631722B (en) * 2017-09-08 2021-01-08 维沃移动通信有限公司 Calibration method of electronic compass and mobile terminal
CN108426571B (en) * 2018-03-08 2020-11-17 北京诺亦腾科技有限公司 Local real-time calibration method and device for electronic compass
CN112421712A (en) * 2020-11-02 2021-02-26 深圳市闻耀电子科技有限公司 Method and device for eliminating compass charging interference, storage medium and terminal
CN114777755A (en) * 2022-03-08 2022-07-22 维沃移动通信有限公司 Electronic compass calibration method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101331385A (en) * 2005-12-16 2008-12-24 旭化成电子材料元件株式会社 Position detector
CN108989492A (en) * 2018-06-08 2018-12-11 Oppo广东移动通信有限公司 Electronic device and driving detection method
CN112762915A (en) * 2020-12-21 2021-05-07 深圳酷派技术有限公司 Compass precision optimization method and device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023169422A1 (en) * 2022-03-08 2023-09-14 维沃移动通信有限公司 Electronic compass calibration method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2023169422A1 (en) 2023-09-14

Similar Documents

Publication Publication Date Title
US11170708B2 (en) Gamma correction method and device, display device, and computer storage medium
CN104009279B (en) Electronic installation and the method for forming electronic installation
US20090146972A1 (en) Apparatus and method for detecting a pointer relative to a touch surface
CN112132881A (en) Method and equipment for acquiring dynamic three-dimensional image
US20200159367A1 (en) Interactive object control method and apparatus, terminal, and computer-readable storage medium
KR20180035606A (en) electronic device including input module
CN107390152B (en) Calibration method and device for magnetometer and electronic equipment
CN112738886B (en) Positioning method, positioning device, storage medium and electronic equipment
EP3260964B1 (en) Mobile terminal and method for controlling the same
CN108024073B (en) Video editing method and device and intelligent mobile terminal
CN114777755A (en) Electronic compass calibration method and device, electronic equipment and storage medium
CN112150560B (en) Method, device and computer storage medium for determining vanishing point
US20220319118A1 (en) Electronic device for providing indoor positioning and method therefor
KR20010033846A (en) Information Communication Electronic Device and Information Display Method
CN111579561A (en) Position point compensation method, device, equipment and storage medium
TW201502553A (en) Dynamically calibrating magnetic sensors
CN111475611B (en) Dictionary management method, dictionary management device, computer equipment and storage medium
CN108494946B (en) Method and device for correcting electronic compass in mobile terminal
CN116053549A (en) Battery cell positioning method, device and system
CN115655249A (en) Compass calibration method and device, electronic equipment and readable storage medium
CN108769529A (en) A kind of method for correcting image, electronic equipment and computer readable storage medium
CN111866785B (en) Terminal, parameter measurement method, device and storage medium
CN105335118A (en) Control display method and apparatus for electronic device
CN111107271B (en) Shooting method and electronic equipment
CN112541940B (en) Article detection method and system

Legal Events

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