[go: up one dir, main page]

CN115348351A - Magnetic field detection method, device, terminal and storage medium - Google Patents

Magnetic field detection method, device, terminal and storage medium Download PDF

Info

Publication number
CN115348351A
CN115348351A CN202110527013.4A CN202110527013A CN115348351A CN 115348351 A CN115348351 A CN 115348351A CN 202110527013 A CN202110527013 A CN 202110527013A CN 115348351 A CN115348351 A CN 115348351A
Authority
CN
China
Prior art keywords
magnetic field
assembly
vibration
terminal
field data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110527013.4A
Other languages
Chinese (zh)
Other versions
CN115348351B (en
Inventor
蔡亮
彭聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110527013.4A priority Critical patent/CN115348351B/en
Publication of CN115348351A publication Critical patent/CN115348351A/en
Application granted granted Critical
Publication of CN115348351B publication Critical patent/CN115348351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Measuring Magnetic Variables (AREA)

Abstract

The disclosure relates to a magnetic field detection method, a magnetic field detection device, a terminal and a storage medium. The terminal provided by the embodiment of the disclosure comprises: the vibration component is used for vibrating under the action of the electric signal; the magnetic induction assembly is used for detecting a magnetic field to obtain external magnetic field data of the environment where the terminal is located; and the compensation assembly is positioned on the side surface of the vibration assembly and used for compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field generated by the vibration assembly to obtain the external magnetic field data. And the compensation assembly is used for detecting an internal magnetic field generated by the vibration assembly and compensating magnetic field data detected by the magnetic induction assembly based on the internal magnetic field, so that external magnetic field data are obtained. Therefore, the accuracy of magnetic field detection of the magnetic induction assembly can be effectively improved.

Description

Magnetic field detection method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a magnetic field detection method, apparatus, terminal, and storage medium.
Background
In an intelligent terminal, such as an electronic device like a mobile phone, a tablet computer, and a smart watch, a vibration motor for a vibration effect is widely used. Meanwhile, the functions of detecting the earth magnetic field or the magnetic field in the environment by using magnetic induction, such as compass, positioning navigation and the like, are also indispensable for the smart phone. Some vibration motors operate on the principle of generating a magnetic field change by energizing a coil with a voltage, so that a magnetic mass object inside the motor moves rapidly following the magnetic field change, thereby generating a vibration. Therefore, in the terminal with the vibration assemblies such as the vibration motor, the magnetic induction assembly is easily interfered by the magnetic field of the vibration assembly when the magnetic field of the external environment is detected, so that the detection is inaccurate, and further, the functions such as compass, positioning and navigation in the terminal are wrong in the using process.
Disclosure of Invention
The disclosure provides a magnetic field detection method, a magnetic field detection device, a terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a terminal, including:
the vibration component is used for vibrating under the action of the electric signal;
the magnetic induction assembly is used for detecting a magnetic field to obtain external magnetic field data of the environment where the terminal is located;
and the compensation assembly is positioned on the side surface of the vibration assembly and used for compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field generated by the vibration assembly to obtain the external magnetic field data.
In some embodiments, the shock assembly comprises:
the spring sliding block is used for reciprocating under the action of an electromagnetic field;
and the electromagnetic coil is used for generating the variable electromagnetic field under the action of the electric signal.
In some embodiments, the compensation assembly comprises:
the acceleration detection unit is positioned on the spring slide block of the vibration assembly and used for detecting the motion acceleration of the spring slide block;
and the operation unit is connected with the acceleration detection unit and used for acquiring the motion acceleration and determining the internal magnetic field according to the motion acceleration.
In some embodiments, the compensation assembly comprises:
and the detection unit is connected with the electromagnetic coil and used for acquiring the strength of the electric signal in the electromagnetic coil and determining the internal magnetic field according to the strength of the electric signal.
In some embodiments, the compensation assembly comprises:
the compensation unit is used for determining a corresponding compensation coefficient according to the internal magnetic field; the compensation coefficient is used for compensating the magnetic field data detected by the magnetic induction component to obtain the external magnetic field data.
According to a second aspect of the embodiments of the present disclosure, there is provided a magnetic field detection method, which is applied to a terminal, and includes:
acquiring magnetic field data detected by a magnetic induction assembly;
if the vibration component of the terminal vibrates, acquiring an internal magnetic field generated by the vibration component;
and according to the internal magnetic field, compensating the magnetic field data detected by the magnetic induction assembly to obtain external magnetic field data.
In some embodiments, said acquiring the internal magnetic field generated by the vibrating assembly comprises:
acquiring the motion acceleration of the vibration assembly in the vibration process;
determining the internal magnetic field from the motion acceleration.
In some embodiments, said acquiring the internal magnetic field generated by the vibrating assembly comprises:
acquiring the intensity of an electric signal for controlling the vibration component to vibrate;
determining the internal magnetic field from the strength of the electrical signal.
In some embodiments, the compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field to obtain external magnetic field data includes:
determining a corresponding compensation coefficient according to the internal magnetic field;
and according to the compensation coefficient, compensating the magnetic field data detected by the magnetic induction assembly to obtain the external magnetic field data.
According to a third aspect of the embodiments of the present disclosure, there is provided a magnetic field detection apparatus, which is applied to a terminal, including:
the first acquisition module is used for acquiring magnetic field data detected by the magnetic induction assembly;
the second acquisition module is used for acquiring an internal magnetic field generated by a vibration component if the vibration component of the terminal vibrates;
and the compensation module is used for compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field to obtain external magnetic field data.
In some embodiments, the second obtaining module includes:
the first acquisition submodule is used for acquiring the motion acceleration of the vibration assembly in the vibration process;
a first determination submodule for determining the internal magnetic field from the motion acceleration.
In some embodiments, the second obtaining module includes:
the second acquisition submodule is used for acquiring the strength of an electric signal for controlling the vibration assembly to vibrate;
a second determining submodule for determining the internal magnetic field according to the strength of the electrical signal.
In some embodiments, the compensation module comprises:
the third determining submodule is used for determining a corresponding compensation coefficient according to the internal magnetic field;
and the compensation submodule is used for compensating the magnetic field data detected by the magnetic induction component according to the compensation coefficient to obtain the external magnetic field data.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a magnetic field detection apparatus, the apparatus including at least: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps of any of the above-mentioned magnetic field detection methods.
According to a fifth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the steps of any one of the above-described magnetic field detection methods.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through the above scheme of the embodiment of the present disclosure, the internal magnetic field generated by the vibration component is detected by using the compensation component, and the magnetic field data detected by the magnetic induction component is compensated based on the internal magnetic field, so as to obtain the external magnetic field data. Therefore, the accuracy of magnetic field detection of the magnetic induction assembly can be effectively improved, the condition that functions such as a compass and positioning navigation are invalid in the terminal caused by the internal magnetic field interference of the terminal is reduced, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a block diagram illustrating the structure of a terminal according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating movement of a spring slider and a voltage variation law in a solenoid according to an exemplary embodiment;
FIG. 3 is a flow chart one of a magnetic field sensing method according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a terminal according to an exemplary embodiment;
FIG. 5 is a flow chart diagram two illustrating a magnetic field detection method in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating the structure of a magnetic field sensing device according to an exemplary embodiment;
fig. 7 is a block diagram illustrating an entity structure of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment, where, as shown in fig. 1, the terminal 100 includes:
a vibration assembly 110 for vibrating under the action of an electrical signal;
the magnetic induction component 120 is configured to detect a magnetic field, and obtain external magnetic field data of an environment where the terminal is located;
and the compensation assembly 130 is located on the side surface of the vibration assembly 110 and is used for compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field generated by the vibration assembly to obtain the external magnetic field data.
In the embodiment of the present disclosure, the terminal may be an electronic device having a communication function, a human-computer interaction function, a display function, an audio/video playing function, or other various functions, for example, a mobile phone, a tablet computer, a smart watch, smart glasses, and various smart electronic devices.
Here, the vibration assembly is an assembly for enabling the terminal to sense a vibration effect when touched by a human body through self vibration, and the vibration assembly controls the vibration assembly to perform short-distance reciprocating motion through an electric signal. The magnetic induction component is used for detecting an external magnetic field of an environment where the terminal is located, for example, detecting an earth magnetic field, and providing detected magnetic field data to the terminal for functions such as compass or positioning navigation.
However, since the vibration component needs to perform a fast reciprocating motion, an electric signal driving the vibration component to move may generate an induced magnetic field, so that magnetic field interference exists inside the terminal, which affects detection data of the magnetic induction component, and causes inaccurate detection or failure of magnetic induction. That is, the magnetic field data detected by the magnetic induction component is not only affected by the magnetic field in the external environment of the terminal, but also interfered by the internal magnetic field. Therefore, in the embodiment of the present disclosure, the magnetic field data detected by the magnetic induction assembly is compensated by the compensation assembly according to the internal magnetic field generated by the vibration assembly, so as to obtain the external magnetic field data.
In this way, the compensated external magnetic field data reduces the interference of the internal magnetic field as much as possible, so that the external magnetic field is closer to the actual magnetic field of the external environment, and therefore, an accurate detection result can be obtained.
The magnetic field data includes the direction of the magnetic field and the magnetic field strength, that is, vector data of the magnetic field. For a magnetic induction component, it is necessary to detect the direction of the magnetic field, and therefore, for example, magnetic field data may be determined by the magnetic field intensity in different coordinate axis directions in a predetermined coordinate system. In some embodiments, the vibration component reciprocates in one direction, and the corresponding electrical signals of the vibration component alternate in a fixed direction, so that the compensation component can decompose the internal magnetic field generated by the vibration component according to the coordinate axis direction and compensate the internal magnetic field to each coordinate axis direction of the magnetic field data detected by the magnetic induction component, thereby obtaining accurate external magnetic field data.
In some embodiments, the shock assembly comprises:
the spring sliding block is used for reciprocating under the action of an electromagnetic field;
and the electromagnetic coil is used for generating the variable electromagnetic field under the action of the electric signal.
In the disclosed embodiment, the shock assembly may be an assembly of a spring slider and a solenoid. The electromagnetic coil can generate an alternating magnetic field under the action of an electric signal, and the spring slider can be a magnetic slider which can move back and forth under the action of the changing magnetic field generated by the electromagnetic coil, so that a vibration effect is generated.
In some embodiments, the compensation assembly comprises:
the acceleration detection unit is positioned on the spring slide block of the vibration assembly and used for detecting the motion acceleration of the spring slide block;
and the operation unit is connected with the acceleration detection unit and used for acquiring the motion acceleration and determining the internal magnetic field according to the motion acceleration.
The shock assembly is generated by the reciprocating movement of the spring slider, which is controlled by a varying voltage. The movement of the spring slider and the voltage change rule in the electromagnetic coil are shown in fig. 2, and the voltage in the electromagnetic coil changes periodically along with time, so that the movement acceleration of the spring slider changes periodically along with the voltage change rule, and the spring slider can vibrate at a fixed frequency.
Therefore, in the embodiment of the present disclosure, the compensation assembly may include an acceleration detection unit on the spring slider for detecting a motion acceleration of the spring slider. That is, the acceleration detecting unit may move in synchronization with the spring slider and detect the motion acceleration based on its own movement. From the motion acceleration, the electromagnetic field generated in the electromagnetic coil, i.e. the internal magnetic field generated by the seismic assembly itself, can be calculated. Therefore, the corresponding internal magnetic field can be determined by the arithmetic unit according to the detection data of the acceleration detection unit, and the detection data of the magnetic induction component can be compensated according to the internal magnetic field.
In some embodiments, the compensation assembly comprises:
and the detection unit is connected with the electromagnetic coil and used for acquiring the strength of the electric signal in the electromagnetic coil and determining the internal magnetic field according to the strength of the electric signal.
Because the structure of the vibration assembly is fixed and the vibration rule is fixed, the internal magnetic field can be determined according to the corresponding relation between the strength of the electric signal for controlling the spring slider to vibrate and the internal magnetic field generated in the electromagnetic coil.
The detection unit may be connected to the electromagnetic coil, for example, connected in parallel to two ends of the electromagnetic coil, and detect the voltage between the electromagnetic coils, that is, obtain the strength of the electrical signal, and then determine the corresponding internal magnetic field according to the voltage value.
In some embodiments, the compensation assembly comprises:
the compensation unit is used for determining a corresponding compensation coefficient according to the internal magnetic field; the compensation coefficient is used for compensating the magnetic field data detected by the magnetic induction component to obtain the external magnetic field data.
In the embodiment of the disclosure, the compensation component may determine a corresponding compensation coefficient according to the magnitude of the internal magnetic field, in addition to detecting and determining the internal magnetic field generated by the vibration component. The compensation coefficient can be a magnetic field intensity value and is used for obtaining the external magnetic field data by being superposed with the magnetic field data detected by the magnetic induction component; the compensation coefficient can also be a scaling coefficient value used for multiplying the magnetic field data detected by the magnetic induction component to obtain the external magnetic field data.
Fig. 3 is a flowchart illustrating a magnetic field detection method according to an exemplary embodiment, where the method is applied to a terminal, as shown in fig. 3, and includes the following steps:
s101, acquiring magnetic field data detected by a magnetic induction assembly;
step S102, if the vibration component of the terminal vibrates, acquiring an internal magnetic field generated by the vibration component;
and S103, compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field to obtain external magnetic field data.
In the embodiment of the present disclosure, the magnetic field data detected by the magnetic induction component is used by an application program related to the terminal detecting the external environmental magnetic field, for example, applications such as compass, positioning navigation, and the like may determine the azimuth and the like by using the magnetic field data detected by the magnetic induction component.
However, an internal magnetic field may be generated during vibration due to the vibration component in the terminal, resulting in interference with the magnetic induction component. Therefore, the magnetic field data detected by the magnetic induction assembly may be data affected by the internal magnetic field, and not accurate external magnetic field data.
Therefore, in the embodiment of the present disclosure, if there is vibration in the vibration assembly, the magnetic field data detected by the magnetic induction assembly can be compensated according to the internal magnetic field by acquiring the internal magnetic field generated by the vibration assembly, so as to obtain more accurate external magnetic field data for the application program.
In some embodiments, said acquiring the internal magnetic field generated by the vibrating assembly comprises:
acquiring the motion acceleration of the vibration assembly in the vibration process;
determining the internal magnetic field from the motion acceleration.
In the embodiment of the present disclosure, the manner of acquiring the internal magnetic field generated by the vibration component may be to calculate the corresponding internal magnetic field by detecting the motion characteristics of the vibration component. In the process of vibration, the vibration component moves back and forth through a spring slider and other moving units to generate a vibration effect. Therefore, the motion acceleration of the motion unit in the vibration assembly in the vibration process can be regularly and periodically changed. The motion acceleration and the internal magnetic field generated by the vibration component have a periodic drinking relationship, so that the internal magnetic field can be determined in real time by detecting the motion acceleration of the vibration component in the vibration process.
And further compensating the detection data of the magnetic induction component in real time according to the internal magnetic field, thereby obtaining accurate external magnetic field data.
In some embodiments, said acquiring the internal magnetic field generated by the vibrating assembly comprises:
acquiring the intensity of an electric signal for controlling the vibration component to vibrate;
determining the internal magnetic field from the strength of the electrical signal.
In the embodiment of the present disclosure, the internal magnetic field generated by the vibration component can be acquired by detecting the strength of the electric signal. The vibrating element may reciprocate based on the action of an electrical signal, and the alternating electrical signal generates an electromagnetic field, i.e., the internal magnetic field. The internal magnetic field generated by the vibration component and the strength of the electric signal for controlling the vibration of the vibration component have a corresponding relation, so that the corresponding internal magnetic field can be determined based on the strength of the electric signal, and the detection data of the magnetic induction component can be compensated in real time according to the internal magnetic field.
In some embodiments, the compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field to obtain external magnetic field data includes:
determining a corresponding compensation coefficient according to the internal magnetic field;
and according to the compensation coefficient, compensating the magnetic field data detected by the magnetic induction assembly to obtain the external magnetic field data.
In the embodiment of the present disclosure, the magnetic field data detected by the magnetic induction assembly is compensated by determining the internal magnetic field, so as to obtain the external magnetic field data. The compensation mode can determine a corresponding compensation coefficient through the internal magnetic field, and the compensation coefficient can be a magnetic field intensity value and is used for obtaining the external magnetic field data by overlapping with the magnetic field data detected by the magnetic induction component; the compensation coefficient can also be a scaling coefficient value used for multiplying the magnetic field data detected by the magnetic induction component to obtain the external magnetic field data.
The disclosed embodiments also provide the following examples:
the vibration component in the electronic device, for example, the vibration motor in the smart phone, may cause regular change in the surrounding magnetic field when working, and such change may affect the detection accuracy of the magnetic induction component, for example, the magnetic sensor and other elements, thereby causing the abnormality of functions such as compass, positioning and navigation. For example, when a user types while navigating in a split screen mode, the user types a character with a vibration effect to enable a vibration motor to operate, and at the moment, the vibration motor affects a magnetic field inside a mobile phone, interferes with detection accuracy of a magnetic induction assembly, causes problems of navigation abnormality or direction deviation and the like, and further affects use effects of the user.
Based on this, the embodiment of the present disclosure uses the acceleration sensor to detect the internal magnetic field generated by the vibration motor, and compensates the data detected by the magnetic induction assembly according to the internal magnetic field, thereby reducing the deviation of the magnetic field detection.
As shown in the terminal 200 of fig. 4, the acceleration sensor 11 is located near the vibration motor 12, and detects the motion acceleration of the vibration motor 12 in real time, and when it is detected that the vibration motor 12 is in a vibration state, the data collected by the acceleration sensor 11 is used to compensate the detection data of the magnetic induction assembly 13, so as to reduce the deviation of the magnetic induction assembly 13 caused by the influence of the vibration motor 12.
Magnetic induction components, such as magnetic sensors like electronic magnetometers, work on the principle that the resistance of a material in a chip changes with the change of an applied magnetic field. The resistance value of the magnetic induction component can be influenced by a magnetic field in the environment where the magnetic induction component is located, so that the magnetic field intensity can be determined according to the resistance value, and the magnetic field direction can be determined according to detection in different directions.
The vibration motor can be a linear motor, and the principle is as follows: the vibration motor comprises a spring slider which can move in a linear mode inside, and after being electrified, the spring slider can move linearly along the central axis under the action of an electromagnetic field.
Therefore, after the voltage is applied to the vibrating motor, the magnetic field change drives the spring slide block to move back and forth rapidly. The magnetic field at one side of the vibration motor is periodically changed along with the movement rule of the spring sliding block, and corresponds to the mechanical energy generated by the reciprocating movement of the spring sliding block.
The voltage and acceleration change law shown in fig. 2 reflects the change between the motion acceleration and the applied voltage of the vibration motor during the vibration process, and further reflects the change law between the motion acceleration and the magnetic field.
The magnetic induction component is subjected to magnetic field interference which is regularly changed in the process of generating vibration by the vibration motor, so that the point with the maximum magnetic field interference, the point with the minimum magnetic field interference and the time length in the change process can be obtained through simple calculation according to the acceleration data and the regular change of the magnetic field interference corresponding to the positions of the point with the maximum data change, the point with the recovered data change and the like, and the corresponding compensation of the detection data of the magnetic induction component in the corresponding time is determined. For assembly differences of different terminals, for example, differences between the position relationship of the vibration motor and the magnetic induction component, and errors of chips for data processing and the like, the driving voltage of the vibration motor of the mobile phone, the magnitude of vibration acceleration, data deviation of the magnetic induction component and/or the like can be generated in real time in the operation process of the terminal, corresponding compensation coefficients are generated, and the detection data of the magnetic induction component is compensated according to the compensation coefficients.
The above process may be implemented by the steps in the method as shown in fig. 5:
step S201, an application program (such as a compass) applying the magnetic field data is opened, at this time, the detection of the magnetic induction component is started, and the detection data is obtained in real time.
Step S202, an acceleration sensor is turned on to detect the vibration effect of the vibration motor.
Step S203, the acceleration sensor determines whether the vibration motor is in a vibration state, if not, the step S204 is executed; if yes, the process proceeds to step S205.
In step S204, the acceleration sensor continues to monitor the motor vibration and returns to step S203.
And step S205, collecting the motion acceleration of the vibrating motor in real time by the acceleration sensor.
And S206, compensating the detection data of the magnetic induction assembly by using the data detected by the acceleration sensor.
By the method, the interference of the vibration motor on the detection data of the magnetic induction component can be monitored in real time, and the detection data of the magnetic induction component is compensated to obtain accurate external magnetic field data.
Fig. 6 is a block diagram illustrating a configuration of a magnetic field detection apparatus according to an exemplary embodiment, which is applied to a terminal, as shown in fig. 6, the apparatus 600 including:
a first obtaining module 601, configured to obtain magnetic field data detected by a magnetic induction component;
a second obtaining module 602, configured to obtain an internal magnetic field generated by a vibration component of the terminal if the vibration component vibrates;
the compensation module 603 is configured to compensate the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field, so as to obtain external magnetic field data.
In some embodiments, the second obtaining module includes:
the first acquisition submodule is used for acquiring the motion acceleration of the vibration assembly in the vibration process;
a first determination submodule for determining the internal magnetic field from the motion acceleration.
In some embodiments, the second obtaining module includes:
the second acquisition submodule is used for acquiring the strength of an electric signal for controlling the vibration assembly to vibrate;
a second determining submodule, configured to determine the internal magnetic field according to a strength of the electrical signal.
In some embodiments, the compensation module comprises:
the third determining submodule is used for determining a corresponding compensation coefficient according to the internal magnetic field;
and the compensation submodule is used for compensating the magnetic field data obtained by the detection of the magnetic induction component according to the compensation coefficient to obtain the external magnetic field data.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 7 is a block diagram illustrating a terminal 700 according to an example embodiment. For example, the terminal 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and so forth.
Referring to fig. 7, terminal 700 may include one or more of the following components: processing components 701, memory 702, power components 703, multimedia components 704, audio components 705, input/output (I/O) interfaces 706, sensor components 707, and communication components 708.
The processing component 701 generally controls overall operation of the terminal 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing components 701 may include one or more processors 710 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 701 may also include one or more modules that facilitate interaction between processing component 701 and other components. For example, the processing component 701 may include a multimedia module to facilitate interaction between the multimedia component 704 and the processing component 701.
The memory 710 is configured to store various types of data to support operations at the terminal 700. Examples of such data include instructions for any application or method operating on terminal 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 702 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 703 provide power to the various components of terminal 700. The power supply components 703 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 700.
The multimedia component 704 comprises a screen providing an output interface between the terminal 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 704 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 705 is configured to output and/or input audio signals. For example, the audio component 705 includes a Microphone (MIC) configured to receive external audio signals when the terminal 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 710 or transmitted via the communication component 708. In some embodiments, audio component 705 also includes a speaker for outputting audio signals.
The I/O interface 706 provides an interface between the processing component 701 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 707 includes one or more sensors for providing various aspects of state assessment for the terminal 700. For example, sensor assembly 707 may detect an open/closed state of terminal 700, relative positioning of components such as a display and keypad of terminal 700, change in position of terminal 700 or a component of terminal 700, presence or absence of user contact with terminal 700, orientation or acceleration/deceleration of terminal 700, and temperature change of terminal 700. The sensor component 707 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 707 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 707 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 708 is configured to facilitate communications between the terminal 700 and other devices in a wired or wireless manner. The terminal 700 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 708 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 708 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the terminal 700 can be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 702 comprising instructions, executable by the processor 710 of the terminal 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the method provided in any of the embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (15)

1. A terminal, characterized in that the terminal comprises:
the vibration component is used for vibrating under the action of the electric signal;
the magnetic induction assembly is used for detecting a magnetic field to obtain external magnetic field data of the environment where the terminal is located;
and the compensation assembly is positioned on the side surface of the vibration assembly and used for compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field generated by the vibration assembly to obtain the external magnetic field data.
2. The terminal of claim 1, wherein the vibration assembly comprises:
the spring sliding block is used for reciprocating under the action of an electromagnetic field;
and the electromagnetic coil is used for generating the variable electromagnetic field under the action of the electric signal.
3. The terminal of claim 2, wherein the compensation component comprises:
the acceleration detection unit is positioned on the spring slide block of the vibration assembly and used for detecting the motion acceleration of the spring slide block;
and the operation unit is connected with the acceleration detection unit and used for acquiring the motion acceleration and determining the internal magnetic field according to the motion acceleration.
4. The terminal of claim 2, wherein the compensation component comprises:
and the detection unit is connected with the electromagnetic coil and used for acquiring the strength of the electric signal in the electromagnetic coil and determining the internal magnetic field according to the strength of the electric signal.
5. A terminal according to any of claims 1 to 4, wherein the compensation component comprises:
the compensation unit is used for determining a corresponding compensation coefficient according to the internal magnetic field; the compensation coefficient is used for compensating the magnetic field data detected by the magnetic induction component to obtain the external magnetic field data.
6. A magnetic field detection method is applied to a terminal and comprises the following steps:
acquiring magnetic field data detected by a magnetic induction assembly;
if the vibration component of the terminal vibrates, acquiring an internal magnetic field generated by the vibration component;
and according to the internal magnetic field, compensating the magnetic field data detected by the magnetic induction assembly to obtain external magnetic field data.
7. The method of claim 6, wherein said acquiring the internal magnetic field generated by the vibrating assembly comprises:
acquiring the motion acceleration of the vibration assembly in the vibration process;
determining the internal magnetic field according to the motion acceleration.
8. The method of claim 6, wherein said acquiring the internal magnetic field generated by the vibrating assembly comprises:
acquiring the intensity of an electric signal for controlling the vibration component to vibrate;
determining the internal magnetic field from the strength of the electrical signal.
9. The method of any of claims 6 to 8, wherein said compensating the magnetic field data detected by the magnetic induction assembly based on the internal magnetic field to obtain external magnetic field data comprises:
determining a corresponding compensation coefficient according to the internal magnetic field;
and according to the compensation coefficient, compensating the magnetic field data detected by the magnetic induction assembly to obtain the external magnetic field data.
10. A magnetic field detection device, applied to a terminal, includes:
the first acquisition module is used for acquiring magnetic field data detected by the magnetic induction assembly;
the second acquisition module is used for acquiring an internal magnetic field generated by a vibration component if the vibration component of the terminal vibrates;
and the compensation module is used for compensating the magnetic field data detected by the magnetic induction assembly according to the internal magnetic field to obtain external magnetic field data.
11. The apparatus of claim 10, wherein the second obtaining module comprises:
the first acquisition submodule is used for acquiring the motion acceleration of the vibration assembly in the vibration process;
a first determination submodule for determining the internal magnetic field from the motion acceleration.
12. The apparatus of claim 10, wherein the second obtaining module comprises:
the second acquisition submodule is used for acquiring the strength of an electric signal for controlling the vibration assembly to vibrate;
a second determining submodule for determining the internal magnetic field according to the strength of the electrical signal.
13. The apparatus of any one of claims 10 to 12, wherein the compensation module comprises:
the third determining submodule is used for determining a corresponding compensation coefficient according to the internal magnetic field;
and the compensation submodule is used for compensating the magnetic field data detected by the magnetic induction component according to the compensation coefficient to obtain the external magnetic field data.
14. A magnetic field sensing device, characterized in that it comprises at least: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps of the magnetic field detection method as claimed in any one of the preceding claims 6 to 9.
15. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform the steps of the magnetic field detection method as set forth in any one of claims 6 to 9.
CN202110527013.4A 2021-05-14 2021-05-14 Magnetic field detection method, device, terminal and storage medium Active CN115348351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110527013.4A CN115348351B (en) 2021-05-14 2021-05-14 Magnetic field detection method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110527013.4A CN115348351B (en) 2021-05-14 2021-05-14 Magnetic field detection method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN115348351A true CN115348351A (en) 2022-11-15
CN115348351B CN115348351B (en) 2023-11-21

Family

ID=83977905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110527013.4A Active CN115348351B (en) 2021-05-14 2021-05-14 Magnetic field detection method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115348351B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533701A (en) * 2008-12-09 2009-09-16 中国航天科技集团公司第五研究院第五一四研究所 Compensation method for non-uniform magnetic field
CN103697976A (en) * 2013-12-26 2014-04-02 合肥京东方光电科技有限公司 Microbalance weight measuring system
CN104237822A (en) * 2013-06-20 2014-12-24 意法半导体(中国)投资有限公司 Magnetic disturbance compensation device and method used for electronic magnetometer sensor
CN105091872A (en) * 2014-05-12 2015-11-25 中兴通讯股份有限公司 Method and device for eliminating interference on electronic compass
EP3034996A1 (en) * 2014-12-17 2016-06-22 Honeywell International Inc. Magnetic sensor calibration for aircraft
CN106482745A (en) * 2016-10-14 2017-03-08 中国人民解放军国防科学技术大学 Lasergyro zero bias field sensitivity test and mangneto zero bias temperature compensation method
CN107576321A (en) * 2017-08-30 2018-01-12 北京小米移动软件有限公司 Determine the method, device and mobile terminal of magnetic azimuth
CN107635046A (en) * 2016-07-19 2018-01-26 中兴通讯股份有限公司 A kind of earth's magnetic field method of adjustment and device
US20180084681A1 (en) * 2016-09-22 2018-03-22 Apple Inc. Compensation of magnetic interference
CN109084850A (en) * 2017-06-13 2018-12-25 克洛纳测量技术有限公司 Magnetic inductive flowrate measuring tool and method for running it
CN109557484A (en) * 2018-11-14 2019-04-02 深圳增强现实技术有限公司 Magnetic field detection method and system, terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533701A (en) * 2008-12-09 2009-09-16 中国航天科技集团公司第五研究院第五一四研究所 Compensation method for non-uniform magnetic field
CN104237822A (en) * 2013-06-20 2014-12-24 意法半导体(中国)投资有限公司 Magnetic disturbance compensation device and method used for electronic magnetometer sensor
CN103697976A (en) * 2013-12-26 2014-04-02 合肥京东方光电科技有限公司 Microbalance weight measuring system
CN105091872A (en) * 2014-05-12 2015-11-25 中兴通讯股份有限公司 Method and device for eliminating interference on electronic compass
EP3034996A1 (en) * 2014-12-17 2016-06-22 Honeywell International Inc. Magnetic sensor calibration for aircraft
CN107635046A (en) * 2016-07-19 2018-01-26 中兴通讯股份有限公司 A kind of earth's magnetic field method of adjustment and device
US20180084681A1 (en) * 2016-09-22 2018-03-22 Apple Inc. Compensation of magnetic interference
CN106482745A (en) * 2016-10-14 2017-03-08 中国人民解放军国防科学技术大学 Lasergyro zero bias field sensitivity test and mangneto zero bias temperature compensation method
CN109084850A (en) * 2017-06-13 2018-12-25 克洛纳测量技术有限公司 Magnetic inductive flowrate measuring tool and method for running it
CN107576321A (en) * 2017-08-30 2018-01-12 北京小米移动软件有限公司 Determine the method, device and mobile terminal of magnetic azimuth
CN109557484A (en) * 2018-11-14 2019-04-02 深圳增强现实技术有限公司 Magnetic field detection method and system, terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
D. SHEINWALD; J. SATRAN;IBM; P. THALER;V. CAVANNA; AGILENT;: "Internet Protocol Small Computer System Interface (iSCSI) Cyclic Redundancy Check (CRC)/Checksum Considerations", IETF RFC3385 *
G. HELLSTROM; GUNNAR HELLSTROM ACCESSIBLE COMMUNICATION;: "Real-time text solutions for multi-party sessions draft-hellstrom-avtcore-multi-party-rtt-solutions-03", IETF *
谢凤玲;童向杰;凌小兵;周勇;刘玉鹏;张绍磊: "一种提高地磁传感器抗干扰能力的补偿算法", 电子器件 *

Also Published As

Publication number Publication date
CN115348351B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
CN105208215A (en) Locating control method, device and terminal
CN112713322B (en) Battery temperature determination method, battery temperature determination device, and storage medium
EP3276301B1 (en) Mobile terminal and method for calculating a bending angle
CN104519282A (en) Image shooting method and device
CN105487863A (en) Interface setting method and device based on scene
CN105187627A (en) Method and device for adjusting temperature of mobile phone
CN107402711B (en) Volume adjusting method and device and computer readable storage medium
RU2701456C9 (en) Front assembly sliding structure, control method and device, terminal and data medium
CN108829475B (en) UI drawing method, device and storage medium
CN104156993A (en) Method and device for switching face image in picture
CN106886019B (en) Distance measurement method and device
CN111752370B (en) Method, device, terminal and storage medium for controlling vibration of motor
CN110059547B (en) Target detection method and device
CN113708590A (en) Linear vibration motor, tactile feedback vibration module, control method and device
KR102125525B1 (en) Method for processing image and electronic device thereof
CN113918258A (en) Page rolling processing method, device, terminal and storage medium
CN115348351B (en) Magnetic field detection method, device, terminal and storage medium
KR20120083159A (en) Mobile terminal and method for controlling electronic devices of the same
CN112527139B (en) Method, device, equipment and storage medium for determining the position of a touch point
CN109813295B (en) Orientation determination method and device and electronic equipment
CN114076642B (en) Temperature detection module, temperature detection method, temperature detection device and storage medium
CN115950415A (en) Method and device for determining navigation direction and storage medium
CN113708704B (en) Motor shock sensation control method and device, electronic equipment and storage medium
CN117558041A (en) Display method, display device, electronic equipment and storage medium
CN106896921A (en) Mobile device control method and device

Legal Events

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