Current Testing Method, Current Testing Device, Terminal and Storage Medium

By setting the first magnetometer and the second magnetometer in the terminal, and superimposing the magnetic induction intensity value by using the law of electromagnetic induction, the problem of difficulty in measuring the current of the external circuit in the prior art is solved, and high-precision current measurement is achieved.

CN114428184BActive Publication Date: 2025-06-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011186892.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-29
Publication Date
2025-06-10
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

The prior art is difficult to effectively measure the current value of external circuits, and is highly professional and difficult to obtain.

Method used

By setting the first magnetometer and the second magnetometer in the terminal, and using the electromagnetic induction law, the magnetic induction intensity values ​​of the two are obtained, and the current value of the current carrying conductor is determined after superimposing.

Benefits of technology

It realizes accurate measurement of external current by terminals, reduces interference from the hardware circuits within terminals, and improves the accuracy of current measurement results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114428184B_ABST
    Figure CN114428184B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a current testing method, a current testing device, a terminal, and a storage medium. The current testing method is applied to a terminal, where a first magnetometer and a second magnetometer are installed on the terminal, and the first magnetometer and the second magnetometer are oppositely arranged at two ends of the terminal. The current testing method includes: in response to the terminal being used to measure the current of a current-carrying wire, obtaining a first magnetic induction intensity value of the first magnetometer and a second magnetic induction intensity value of the second magnetometer; adding the first magnetic induction intensity value and the second magnetic induction intensity value to obtain a third magnetic induction intensity value; and determining the current value of the current-carrying wire based on the third magnetic induction intensity value. Through the embodiments of the present disclosure, by using the first magnetometer and the second magnetometer oppositely arranged at two ends of the terminal, the terminal realizes the measurement of external current, reduces the interference generated by the internal hardware circuit of the terminal, and thus improves the accuracy of the current measurement result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of terminals, and in particular, to a current testing method, a current testing device, a terminal, and a storage medium. Background Art

[0002] With the development of technology, terminal technology has made great progress. A variety of terminals, such as tablet computers, mobile phones, personal digital assistants, etc., have been widely popularized and are widely used in people's lives. To meet the usage needs of users, the functions of terminals are becoming more and more perfect.

[0003] A magnetometer (compass), also known as a compass, an electronic compass, etc., is widely installed in terminals such as mobile phones, tablets, and smart wearables. During the process of users using various applications installed on the terminal, many applications, such as navigation functions, global positioning system functions, orientation functions, games, etc., require the support of the magnetometer function.

[0004] For maintenance personnel, testers, or electronic enthusiasts, etc., when they need to test the current value of an external circuit, they can only rely on professional electrical testing tools to measure the current value, which is highly professional and not easily accessible. Summary of the Invention

[0005] To overcome the problems existing in the related art, the present disclosure provides a current testing method, a current testing device, a terminal, and a storage medium.

[0006] According to an aspect of an embodiment of the present disclosure, a terminal is provided. The terminal includes: a first magnetometer and a second magnetometer, which are oppositely arranged at both ends of the terminal; a hardware circuit, including components that generate a magnetic field, and the components are located between the first magnetometer and the second magnetometer.

[0007] In an embodiment, the first magnetometer and the second magnetometer are respectively arranged on two opposite short sides of the terminal.

[0008] According to an aspect of an embodiment of the present disclosure, a current testing method is provided, which is applied to a terminal. The terminal is installed with a first magnetometer and a second magnetometer, and the first magnetometer and the second magnetometer are oppositely arranged at both ends of the terminal. The current testing method includes: in response to the terminal being used to measure the current of a current-carrying wire, obtaining a first magnetic induction intensity value of the first magnetometer and a second magnetic induction intensity value of the second magnetometer; superimposing the first magnetic induction intensity value and the second magnetic induction intensity value to obtain a third magnetic induction intensity value; and determining the current value of the current-carrying wire based on the third magnetic induction intensity value.

[0009] In one embodiment, obtaining the first magnetic induction intensity value of the first magnetometer includes: based on a preset geomagnetic influence value and a first magnetic induction intensity test value of the first magnetometer in an open environment, correcting a first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire to obtain a first magnetic induction intensity correction value; obtaining a second magnetic induction intensity influence value generated by the first magnetometer under the influence of the internal hardware circuit of the terminal; superimposing the first magnetic induction intensity correction value and the second magnetic induction intensity influence value, and eliminating the preset geomagnetic influence value to obtain the first magnetic induction intensity value of the first magnetometer.

[0010] In one embodiment, the correcting the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire based on a preset geomagnetic influence value and a first magnetic induction intensity test value of the first magnetometer in an open environment to obtain a first magnetic induction intensity correction value includes: obtaining the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire and the first magnetic induction intensity test value of the first magnetometer in an open environment; superimposing the first magnetic induction intensity influence value, the first magnetic induction intensity test value, and the preset geomagnetic influence value to obtain a magnetic induction intensity correction value of the first magnetometer.

[0011] In one embodiment, obtaining the second magnetic induction intensity value of the second magnetometer includes: based on a preset geomagnetic influence value and a second magnetic induction intensity test value of the second magnetometer in an open environment, correcting a second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire to obtain a second magnetic induction intensity correction value; obtaining a third magnetic induction intensity influence value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal; superimposing the second magnetic induction intensity correction value and the third magnetic induction intensity influence value, and eliminating the preset geomagnetic influence value to obtain the second magnetic induction intensity value of the second magnetometer.

[0012] In one embodiment, the correcting the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire based on a preset geomagnetic influence value and a second magnetic induction intensity test value of the second magnetometer in an open environment to obtain a second magnetic induction intensity correction value includes: obtaining the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire and the second magnetic induction intensity test value of the second magnetometer in an open environment; superimposing the second magnetic induction intensity influence value, the second magnetic induction intensity test value, and the preset geomagnetic influence value to obtain a magnetic induction intensity correction value of the second magnetometer.

[0013] In one embodiment, determining the current value of the current-carrying wire based on the third magnetic induction intensity value includes: determining the distance between the terminal and the current-carrying wire; and determining the current value of the current-carrying wire based on the third magnetic induction intensity value and the distance.

[0014] In one embodiment, determining the distance between the terminal and the current-carrying wire includes: obtaining the distance between the terminal and the current-carrying wire input by the user; or using the thickness of the insulating housing of the terminal as the distance between the terminal and the current-carrying wire.

[0015] According to another aspect of the embodiments of the present disclosure, there is provided a current testing device applied to a terminal. The terminal is equipped with a first magnetometer and a second magnetometer, and the first magnetometer and the second magnetometer are oppositely arranged at both ends of the terminal. The current testing device includes: an acquisition module configured to, in response to the terminal being used to measure the current of a current-carrying wire, acquire a first magnetic induction intensity value of the first magnetometer and a second magnetic induction intensity value of the second magnetometer; a superimposing module configured to superimpose the first magnetic induction intensity value and the second magnetic induction intensity value to obtain a third magnetic induction intensity value; and a determining module configured to determine the current value of the current-carrying wire based on the third magnetic induction intensity value.

[0016] In one embodiment, the acquisition module acquires the first magnetic induction intensity value of the first magnetometer in the following manner: based on a preset geomagnetic influence value and a first magnetic induction intensity test value of the first magnetometer in an open environment, correcting a first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire to obtain a first magnetic induction intensity correction value; acquiring a second magnetic induction intensity influence value generated by the first magnetometer under the influence of the internal hardware circuit of the terminal; superimposing the first magnetic induction intensity correction value and the second magnetic induction intensity influence value, and eliminating the preset geomagnetic influence value to obtain the first magnetic induction intensity value of the first magnetometer.

[0017] In one embodiment, the acquisition module corrects the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire based on a preset geomagnetic influence value and a first magnetic induction intensity test value of the first magnetometer in an open environment to obtain a first magnetic induction intensity correction value in the following manner: acquiring the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire and the first magnetic induction intensity test value of the first magnetometer in an open environment; superimposing the first magnetic induction intensity influence value, the first magnetic induction intensity test value, and the preset geomagnetic influence value to obtain a magnetic induction intensity correction value of the first magnetometer.

[0018] In one embodiment, the obtaining module obtains the second magnetic induction intensity value of the second magnetometer in the following manner: Based on a preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment, correct the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire to obtain a second magnetic induction intensity correction value; obtain the third magnetic induction intensity influence value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal; superimpose the second magnetic induction intensity correction value and the third magnetic induction intensity influence value, and eliminate the preset geomagnetic influence value to obtain the second magnetic induction intensity value of the second magnetometer.

[0019] In one embodiment, the obtaining module corrects the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire based on a preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment in the following manner to obtain a second magnetic induction intensity correction value: Obtain the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire and the second magnetic induction intensity test value of the second magnetometer in an open environment; superimpose the second magnetic induction intensity influence value, the second magnetic induction intensity test value, and the preset geomagnetic influence value to obtain the magnetic induction intensity correction value of the second magnetometer.

[0020] In one embodiment, the determining module determines the current value of the current-carrying wire based on the third magnetic induction intensity value in the following manner: Determine the distance between the terminal and the current-carrying wire; based on the third magnetic induction intensity value and the distance, determine the current value of the current-carrying wire.

[0021] In one embodiment, the determining module determines the distance between the terminal and the current-carrying wire in the following manner: Obtain the distance between the terminal and the current-carrying wire input by the user; or use the thickness of the insulating housing of the terminal as the distance between the terminal and the current-carrying wire.

[0022] According to another aspect of the embodiments of the present disclosure, there is provided a current testing device, including: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to: execute the current testing method described in any one of the foregoing items.

[0023] According to another aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, enabling the mobile terminal to execute the current testing method described in any one of the foregoing items.

[0024] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: When the terminal is used to measure the current of a current-carrying wire, the first magnetic induction intensity value of the first magnetometer and the second magnetic induction intensity value of the second magnetometer are obtained. The first magnetometer and the second magnetometer are oppositely arranged at both ends of the terminal. The first magnetic induction intensity value and the second magnetic induction intensity value are superimposed to obtain a third magnetic induction intensity value, and based on the third magnetic induction intensity value, the current value of the current-carrying wire is determined, realizing the measurement of the external current by the terminal, reducing the interference generated by the internal hardware circuit of the terminal, and thus improving the accuracy of the current measurement result.

[0025] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.

[0027] Figure 1 A schematic diagram showing the principle of testing the external current value using a magnetometer.

[0028] Figure 2 A schematic diagram of a terminal shown according to an exemplary embodiment of the present disclosure.

[0029] Figure 3 A flowchart of a current testing method shown according to an exemplary embodiment of the present disclosure.

[0030] Figure 4a 、 Figure 4b A schematic diagram of the principle of the current testing method shown according to an exemplary embodiment of the present disclosure.

[0031] Figure 5 A flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown according to another exemplary embodiment of the present disclosure.

[0032] Figure 6 A flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown according to another exemplary embodiment of the present disclosure.

[0033] Figure 7 A flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown according to another exemplary embodiment of the present disclosure.

[0034] Figure 8 A flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown according to another exemplary embodiment of the present disclosure.

[0035] Figure 9It is a flowchart of a method for determining the current value of a current-carrying wire according to an exemplary embodiment of the present disclosure.

[0036] Figure 10 It is a flowchart of a method for obtaining the first magnetic induction intensity value of a first magnetometer according to another exemplary embodiment of the present disclosure.

[0037] Figure 11a 、 Figure 11b It is a schematic diagram of a current test method according to an exemplary embodiment of the present disclosure.

[0038] Figure 12 It is a simulation model diagram of a current test method according to an embodiment of the present disclosure.

[0039] Figure 13 It is an effect diagram of a current test method according to an embodiment of the present disclosure.

[0040] Figure 14 It is a block diagram of a current test device according to an exemplary embodiment.

[0041] Figure 15 It is a block diagram of a device according to an exemplary embodiment of the present disclosure. Detailed implementation manners

[0042] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure.

[0043] A variety of terminals, such as tablet computers, mobile phones, personal digital assistants, etc., have been widely popularized and are widely used in people's lives. In order to meet the usage needs of users, the functions of terminals are becoming more and more perfect.

[0044] Magnetometers (compasses), also known as compasses, electronic compasses, etc., are widely installed in terminals such as mobile phones, tablets, and smart wearables. During the process of users using various applications installed on the terminal, many applications, such as navigation functions, global positioning system functions, orientation functions, games, etc., require the support of magnetometer functions.

[0045] For maintenance personnel, testers, or electronics enthusiasts, etc., when they need to test the current value of an external circuit, they can only rely on professional electrical testing tools to measure the current value, which is highly professional and not easy to obtain.

[0046] Figure 1 It shows a schematic diagram of the principle of using a magnetometer to test the external current value. By using the electromagnetic induction law, the magnetic signal sensed by the magnetometer is converted into an electrical signal.

[0047] As Figure 1 shown, the distance between the magnetometer and the wire is denoted as , the current in the wire is I, and the magnetic field strength detected by the magnetometer is B. According to the law of electromagnetic induction, the magnetic field strength B can be expressed by the following formula:

[0048] In the formula, is the magnetic permeability of air, . Therefore, according to the magnetic field strength B detected by the magnetometer and the distance between the magnetometer and the wire, the current I in the wire can be expressed as:

[0049] Measuring the external current value using a single magnetometer as described above is susceptible to interference from the internal current signal of the terminal, affecting the measurement result of the external current.

[0050] Accordingly, the present disclosure provides a current measurement method for measuring an external current by using two magnetometer devices installed in a terminal, improving the accuracy of the current measurement result.

[0051] Figure 2 is a schematic diagram of a terminal shown according to an exemplary embodiment of the present disclosure. As Figure 1 shown, the terminal 100 includes a first magnetometer 110, a second magnetometer 120, and a hardware circuit 130.

[0052] The terminal 100 can be a smart phone, a tablet computer, a wearable device, a PC, etc. The hardware circuit 130 includes a component 140 that generates a magnetic field, and the component 140 is located between the first magnetometer 110 and the second magnetometer 120.

[0053] In an embodiment of the present disclosure, the first magnetometer 110 and the second magnetometer 120 are disposed on two opposite short borders of the terminal 100. Referring to Figure 2 , the first magnetometer 110 is located at the top of the terminal 100, and the second magnetometer 120 is located at the bottom of the terminal 100, reducing the interference generated by the internal hardware circuit of the terminal, thereby improving the accuracy of the current measurement result.

[0054] Figure 3 is a flowchart of a current measurement method shown according to an exemplary embodiment of the present disclosure. The current measurement method is applied to the Figure 2 terminal shown in. Referring to Figure 3 shown, the current measurement method includes the following steps.

[0055] In step S101, in response to the terminal being used to measure the current of a current-carrying wire, obtain a first magnetic induction intensity value of the first magnetometer and a second magnetic induction intensity value of the second magnetometer.

[0056] In step S102, the first magnetic induction intensity value and the second magnetic induction intensity value are superimposed to obtain a third magnetic induction intensity value.

[0057] In step S103, based on the third magnetic induction intensity value, the current value of the current-carrying wire is determined.

[0058] In the embodiment of the present disclosure, a terminal is used to measure the current of a current-carrying wire. The current-carrying wire is located outside the terminal. In response to the terminal being used to measure the current of the current-carrying wire, the first magnetic induction intensity value of the first magnetometer and the second magnetic induction intensity value of the second magnetometer are obtained.

[0059] Figure 4a , Figure 4b FIG. is a schematic diagram of the principle of a current test method shown according to an exemplary embodiment of the present disclosure. The current direction in the external current-carrying wire and the current direction generated by the internal hardware circuit of the terminal are uncertain. It can be simplified into two cases: the current direction in the external current-carrying wire is consistent with the current direction generated by the internal hardware circuit of the terminal, and the current direction in the external current-carrying wire is inconsistent with the current direction generated by the internal hardware circuit of the terminal.

[0060] Figure 4a shows the magnetic induction direction inside the terminal when the current direction in the external current-carrying wire is consistent with the current direction generated by the internal hardware circuit of the terminal. Figure 4b shows the magnetic induction direction inside the terminal when the current direction in the external current-carrying wire is inconsistent with the current direction generated by the internal hardware circuit of the terminal.

[0061] In Figure 4a , Figure 4b In, the first magnetometer is arranged at the top of the terminal, and the first magnetometer is arranged at the bottom of the terminal. It is stipulated that facing the front of the terminal, the direction from left to right is the positive direction. When the current direction in the external current-carrying wire is consistent with the current direction generated by the internal hardware circuit of the terminal, the magnetic induction direction on the left side of the first magnetometer is perpendicular to the plane where the terminal is located and inward, and the magnetic induction direction on the right side of the first magnetometer is perpendicular to the plane where the terminal is located and outward. The magnetic induction directions on the left and right sides of the second magnetometer are both perpendicular to the plane where the terminal is located and inward.

[0062] When the current direction in the external current-carrying wire is inconsistent with the current direction generated by the internal hardware circuit of the terminal, the magnetic induction directions on both the left and right sides of the first magnetometer are inward perpendicular to the plane where the terminal is located, the magnetic induction direction on the left side of the second magnetometer is inward perpendicular to the plane where the terminal is located, and the magnetic induction direction on the right side of the second magnetometer is outward perpendicular to the plane where the terminal is located. When the magnetic induction directions are the same, the positive and negative values of the magnetic induction intensity are the same; when the magnetic induction directions are different, the positive and negative values of the magnetic induction intensity are different. Therefore, the first magnetic induction intensity value and the second magnetic induction intensity value can be superimposed to obtain a third magnetic induction intensity value, and based on the third magnetic induction intensity value, the current value of the current-carrying wire is determined.

[0063] According to an embodiment of the present disclosure, when the terminal is used to measure the current of the current-carrying wire, the first magnetic induction intensity value of the first magnetometer and the second magnetic induction intensity value of the second magnetometer are obtained. The first magnetometer and the second magnetometer are relatively arranged at both ends of the terminal. The first magnetic induction intensity value and the second magnetic induction intensity value are superimposed to obtain a third magnetic induction intensity value, and based on the third magnetic induction intensity value, the current value of the current-carrying wire is determined, realizing the measurement of the external current by the terminal, reducing the interference generated by the internal hardware circuit of the terminal, and thus improving the accuracy of the current measurement result.

[0064] Figure 5 It is a flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown in another exemplary embodiment of the present disclosure, as Figure 5 shown, the method for obtaining the first magnetic induction intensity value of the first magnetometer includes the following steps.

[0065] In step S201, based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment, the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire is corrected to obtain the first magnetic induction intensity correction value.

[0066] In step S202, the second magnetic induction intensity influence value generated by the first magnetometer under the influence of the internal hardware circuit of the terminal is obtained.

[0067] In step S203, the first magnetic induction intensity correction value and the second magnetic induction intensity influence value are superimposed, and the preset geomagnetic influence value is eliminated to obtain the first magnetic induction intensity value of the first magnetometer.

[0068] In the embodiment of the present disclosure, the earth itself has a geomagnetic field. At different positions on the earth or in different environments where the terminal is located, there are corresponding environmental magnetic fields with different environmental magnetic induction intensity values. When the terminal is in an open environment, it is considered that the first magnetometer and the second magnetometer of the terminal are only affected by the geomagnetic field and the magnetic field of the internal components of the terminal.

[0069] The first magnetic induction intensity influence value is the magnetic induction intensity value generated by the external current-carrying wire affecting the first magnetometer. Based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment, the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire is corrected to obtain the first magnetic induction intensity correction value.

[0070] When the terminal is working, the first magnetometer is also interfered by the current signal generated by the internal hardware circuit of the terminal. The second magnetic induction intensity influence value is the magnetic induction intensity value generated by the first magnetometer under the influence of the internal hardware circuit of the terminal.

[0071] Therefore, when determining the first magnetic induction intensity value of the first magnetometer, the influences of the external current-carrying wire and the current generated by the internal hardware circuit of the terminal should be considered simultaneously. The first magnetic induction intensity correction value and the second magnetic induction intensity influence value are superimposed, and the preset geomagnetic influence value is eliminated to obtain the first magnetic induction intensity value of the first magnetometer.

[0072] According to the embodiments of the present disclosure, when determining the first magnetic induction intensity value of the first magnetometer, the influences of the external current-carrying wire and the current generated by the internal hardware circuit of the terminal are considered simultaneously, and the influence of the geomagnetic influence value is eliminated, so that the obtained first magnetic induction intensity value of the first magnetometer is more accurate, providing a guarantee for the test result of the current of the external current-carrying wire.

[0073] Figure 6 It is a flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown in another exemplary embodiment of the present disclosure. As Figure 6 shown, the method for obtaining the first magnetic induction intensity value of the first magnetometer includes the following steps.

[0074] In step S301, the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire and the first magnetic induction intensity test value of the first magnetometer in an open environment are obtained.

[0075] In step S302, the first magnetic induction intensity influence value, the first magnetic induction intensity test value, and the preset geomagnetic influence value are superimposed to obtain the magnetic induction intensity correction value of the first magnetometer.

[0076] In the embodiments of the present disclosure, the first magnetic induction intensity influence value is the magnetic induction intensity value generated by the external current-carrying wire affecting the first magnetometer. Based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment, the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire is corrected to obtain the first magnetic induction intensity correction value.

[0077] The user uses the terminal to measure the current of the current-carrying wire, which is located outside the terminal. In response to the terminal being used to measure the current of the current-carrying wire, the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire is obtained, as well as the first magnetic induction intensity test value of the first magnetometer in an open environment. In an open environment, it can be considered that the first magnetometer and the second magnetometer of the terminal are only affected by the geomagnetic field and the magnetic field of the internal components of the terminal.

[0078] The first magnetic induction intensity influence value, the first magnetic induction intensity test value, and the preset geomagnetic influence value are superimposed to obtain the magnetic induction intensity correction value of the first magnetometer. The preset geomagnetic influence value can be set to 50uT, or other values specified by the user.

[0079] According to an embodiment of the present disclosure, the first magnetic induction intensity influence value, the first magnetic induction intensity test value, and the preset geomagnetic influence value are superimposed to obtain the magnetic induction intensity correction value of the first magnetometer. The corrected magnetic induction intensity correction value of the first magnetometer takes into account the earth's magnetic field and is calibrated for an open environment, making the corrected magnetic induction intensity correction value of the first magnetometer more accurate.

[0080] Figure 7 It is a flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown in another exemplary embodiment of the present disclosure, as Figure 7 shown, the method for obtaining the first magnetic induction intensity value of the first magnetometer includes the following steps.

[0081] In step S401, based on the preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment, the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire is corrected to obtain the second magnetic induction intensity correction value.

[0082] In step S402, the third magnetic induction intensity influence value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal is obtained.

[0083] In step S403, the second magnetic induction intensity correction value and the third magnetic induction intensity influence value are superimposed, and the preset geomagnetic influence value is eliminated to obtain the second magnetic induction intensity value of the second magnetometer.

[0084] In the embodiment of the present disclosure, the earth itself has a geomagnetic field. At different positions on the earth, or due to the different environments where the terminal is located, there are corresponding environmental magnetic fields with different environmental magnetic induction intensity values. When the terminal is in an open environment, it is considered that the first magnetometer and the second magnetometer of the terminal are only affected by the geomagnetic field and the magnetic field of the internal components of the terminal. It can be understood that the preset geomagnetic influence value can be set to 50uT, or other values specified by the user.

[0085] The second magnetic induction intensity influence value is the magnetic induction intensity value generated by the external current-carrying wire affecting the second magnetometer. Based on the preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment, the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire is corrected to obtain the second magnetic induction intensity correction value.

[0086] When the terminal is working, the second magnetometer is also interfered by the current signal generated by the internal hardware circuit of the terminal. The third magnetic induction intensity influence value is the magnetic induction intensity value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal.

[0087] Therefore, when determining the second magnetic induction intensity value of the second magnetometer, the influences of the external current-carrying wire and the current generated by the internal hardware circuit of the terminal should be considered simultaneously. The second magnetic induction intensity correction value and the third magnetic induction intensity influence value are superimposed, and the preset geomagnetic influence value is eliminated to obtain the second magnetic induction intensity value of the second magnetometer.

[0088] According to the embodiments of the present disclosure, when determining the second magnetic induction intensity value of the second magnetometer, the influences of the external current-carrying wire and the current generated by the internal hardware circuit of the terminal are considered simultaneously, and the influence of the geomagnetic influence value is eliminated, so that the obtained second magnetic induction intensity value of the second magnetometer is more accurate, providing a guarantee for the test result of the current of the external current-carrying wire.

[0089] Figure 8 It is a flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown in another exemplary embodiment of the present disclosure. As Figure 8 shown, the method for obtaining the first magnetic induction intensity value of the first magnetometer includes the following steps.

[0090] In step S501, the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire and the second magnetic induction intensity test value of the second magnetometer in an open environment are obtained.

[0091] In step S502, the second magnetic induction intensity influence value, the second magnetic induction intensity test value, and the preset geomagnetic influence value are superimposed to obtain the magnetic induction intensity correction value of the second magnetometer.

[0092] In the embodiments of the present disclosure, the second magnetic induction intensity influence value is the magnetic induction intensity value generated by the external current-carrying wire affecting the second magnetometer. Based on the preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment, the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire is corrected to obtain the second magnetic induction intensity correction value.

[0093] The user uses the terminal to measure the current of the current-carrying wire, which is located outside the terminal. In response to the terminal being used to measure the current of the current-carrying wire, the second magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire, and the second magnetic induction intensity test value of the second magnetometer in an open environment are obtained. In an open environment, it can be considered that the second magnetometer of the terminal and the second magnetometer are only affected by the geomagnetic field and the magnetic field of the internal components of the terminal.

[0094] Superimpose the second magnetic induction intensity influence value, the second magnetic induction intensity test value, and the preset geomagnetic influence value to obtain the magnetic induction intensity correction value of the second magnetometer. The preset geomagnetic influence value can be set to 50 uT, or other values specified by the user.

[0095] According to an embodiment of the present disclosure, by superimposing the second magnetic induction intensity influence value, the second magnetic induction intensity test value, and the preset geomagnetic influence value, the magnetic induction intensity correction value of the second magnetometer is obtained. The corrected magnetic induction intensity correction value of the second magnetometer takes into account the earth's magnetic field and calibration for an open environment, making the corrected magnetic induction intensity correction value of the second magnetometer more accurate.

[0096] Figure 9 It is a flowchart of a method for determining the current value of a current-carrying wire shown according to an exemplary embodiment of the present disclosure. As Figure 9 shown, the method for determining the current value of the current-carrying wire includes the following steps.

[0097] In step S601, the distance between the terminal and the current-carrying wire is determined.

[0098] In step S602, based on the third magnetic induction intensity value and the distance, the current value of the current-carrying wire is determined.

[0099] In an embodiment of the present disclosure, when using the electromagnetic induction law to determine the current value of the current-carrying wire according to the magnetic field intensity B, the formula . Therefore, in order to determine the current value of the measured current-carrying wire, the distance between the terminal and the current-carrying wire also needs to be determined.

[0100] Figure 10 It is a flowchart of a method for obtaining the first magnetic induction intensity value of the first magnetometer shown according to another exemplary embodiment of the present disclosure. As Figure 10 shown, the method for obtaining the first magnetic induction intensity value of the first magnetometer includes the following steps.

[0101] In step S701, the distance between the terminal and the current-carrying wire input by the user is obtained.

[0102] In step S702, the thickness of the insulating housing of the terminal is used as the distance between the terminal and the current-carrying wire.

[0103] In step S703, based on the third magnetic induction intensity value and the distance, determine the current value of the current-carrying wire.

[0104] In the embodiments of the present disclosure, when using the electromagnetic induction law to determine the current value of a current-carrying wire according to the magnetic field intensity B, in order to determine the current value of the measured current-carrying wire, it is also necessary to determine the distance between the terminal and the current-carrying wire.

[0105] Figure 11a 、 Figure 11b is a schematic diagram of a current test method shown according to an exemplary embodiment of the present disclosure. Refer to Figure 11a , the terminal 100 includes a first magnetometer 110, a second magnetometer 120, and a hardware circuit 130.

[0106] When a user uses the terminal 100 to measure the current of a current-carrying wire, when not using the terminal insulation case, there is a distance between the terminal and the current-carrying wire to be measured, and the user needs to subjectively estimate the distance between the terminal 100 and the current-carrying wire. Figure 11b As shown, when using the terminal insulation case, the terminal insulation case is in contact with the current-carrying wire to be measured, and the thickness of the terminal insulation outer case is used as the distance between the terminal 100 and the current-carrying wire.

[0107] According to the embodiments of the present disclosure, using the electromagnetic induction law, based on the magnetic field intensity B and the distance between the terminal and the current-carrying wire, determine the current value of the current-carrying wire.

[0108] Figure 12 is a simulation model diagram of the current test method shown according to an embodiment of the present disclosure. As Figure 12 shown, in the simulation model, external wire variables are assumed, that is, a sine wave change signal in the range of 0 - 3A, which is respectively converted into the magnetic field influence on the first magnetometer and the second magnetometer, and a geomagnetic influence of 50uT is introduced. It is assumed that the current in the hardware circuit inside the terminal is a 1A pulse current, which has an impact on the magnetic fields of the first magnetometer and the second magnetometer.

[0109] Then, eliminate the geomagnetic influence and filter out the influence of the internal hardware circuit on the first magnetometer and the second magnetometer to obtain the finally fused magnetic induction intensity value, that is, the third magnetic induction intensity value. It is also possible to compare the measured current value with the assumed value through the simulation model.

[0110] In order to further improve the interference filtering performance of the internal hardware circuit of the terminal, introduce open environment calibration, and compensate the calibration result into the calculation results of the magnetic induction intensity values of the first magnetometer and the second magnetometer to offset the influence of the internal hardware circuit on the first magnetometer and the second magnetometer, so as to achieve higher compatibility.

[0111] Figure 13 is an effect diagram of the current test method shown according to an embodiment of the present disclosure. AsFigure 13 As shown in the figure, the two curves in the figure are respectively the waveform diagram of the actual current value of the current-carrying wire of the external circuit and the waveform diagram of the measured current value obtained by applying the current test method in the embodiments of the present disclosure. That is, by applying the current test method in the embodiments of the present disclosure, the current waveform of the measured current-carrying wire can be completely restored, without being interfered by the internal hardware circuit of the terminal, and the current value of the external current-carrying wire can be truly restored, and the measurement result of the current value of the current-carrying wire is accurate.

[0112] Based on the same concept, the embodiments of the present disclosure also provide a current test device.

[0113] It can be understood that in order to implement the above functions, the current test device provided by the embodiments of the present disclosure includes the corresponding hardware structure and / or software module for executing each function. Combining the units and algorithm steps of the examples disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present disclosure.

[0114] Figure 14 It is a block diagram of a current test device shown according to an exemplary embodiment. The current test device is applied to a terminal, and the terminal is equipped with a first magnetometer and a second magnetometer, and the first magnetometer and the second magnetometer are oppositely arranged at both ends of the terminal, as Figure 14 shown, the current test device 200 includes: an acquisition module 201, a superposition module 202, and a determination module 203.

[0115] The acquisition module 201 is configured to, in response to the terminal being used to measure the current of the current-carrying wire, acquire a first magnetic induction intensity value of the first magnetometer and a second magnetic induction intensity value of the second magnetometer.

[0116] The superposition module 202 is configured to superpose the first magnetic induction intensity value and the second magnetic induction intensity value to obtain a third magnetic induction intensity.

[0117] The determination module 203 is configured to determine the current value of the current-carrying wire based on the third magnetic induction intensity value.

[0118] In one embodiment, the obtaining module 201 obtains the first magnetic induction intensity value of the first magnetometer in the following manner: Based on a preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment, correct the first magnetic induction intensity influence value generated by the first magnetometer under the influence of a current-carrying wire to obtain a first magnetic induction intensity correction value; obtain the second magnetic induction intensity influence value generated by the first magnetometer under the influence of the internal hardware circuit of the terminal; superimpose the first magnetic induction intensity correction value and the second magnetic induction intensity influence value, and eliminate the preset geomagnetic influence value to obtain the first magnetic induction intensity value of the first magnetometer.

[0119] In one embodiment, the obtaining module 201 corrects the first magnetic induction intensity influence value generated by the first magnetometer under the influence of a current-carrying wire based on a preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment in the following manner to obtain a first magnetic induction intensity correction value: Obtain the first magnetic induction intensity influence value generated by the first magnetometer under the influence of a current-carrying wire and the first magnetic induction intensity test value of the first magnetometer in an open environment; superimpose the first magnetic induction intensity influence value, the first magnetic induction intensity test value, and the preset geomagnetic influence value to obtain the magnetic induction intensity correction value of the first magnetometer.

[0120] In one embodiment, the obtaining module 201 obtains the second magnetic induction intensity value of the second magnetometer in the following manner: Based on a preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment, correct the second magnetic induction intensity influence value generated by the second magnetometer under the influence of a current-carrying wire to obtain a second magnetic induction intensity correction value; obtain the third magnetic induction intensity influence value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal; superimpose the second magnetic induction intensity correction value and the third magnetic induction intensity influence value, and eliminate the preset geomagnetic influence value to obtain the second magnetic induction intensity value of the second magnetometer.

[0121] In one embodiment, the obtaining module 201 corrects the second magnetic induction intensity influence value generated by the second magnetometer under the influence of a current-carrying wire based on a preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment in the following manner to obtain a second magnetic induction intensity correction value: Obtain the second magnetic induction intensity influence value generated by the second magnetometer under the influence of a current-carrying wire and the second magnetic induction intensity test value of the second magnetometer in an open environment; superimpose the second magnetic induction intensity influence value, the second magnetic induction intensity test value, and the preset geomagnetic influence value to obtain the magnetic induction intensity correction value of the second magnetometer.

[0122] In one embodiment, the determining module 203 determines the current value of the current-carrying wire based on the third magnetic induction intensity value in the following manner: Determine the distance between the terminal and the current-carrying wire; based on the third magnetic induction intensity value and the distance, determine the current value of the current-carrying wire.

[0123] In one embodiment, the determining module 203 determines the distance between the terminal and the current-carrying wire in the following manner: obtaining the distance between the terminal and the current-carrying wire input by the user; or using the thickness of the insulating housing of the terminal as the distance between the terminal and the current-carrying wire.

[0124] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.

[0125] Figure 15 It is a block diagram of a current testing device 800 shown according to an exemplary embodiment. For example, the device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0126] Referring to Figure 15 , the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0127] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0128] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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, a magnetic disk, or an optical disk.

[0129] The power component 806 provides power for the various components of the device 800. The power component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.

[0130] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0131] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0132] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0133] The sensor assembly 814 includes one or more sensors for providing an assessment of the status of various aspects of the device 800. For example, the sensor assembly 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor assembly 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 can include proximity sensors configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include light sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0134] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0135] In an exemplary embodiment, the device 800 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, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0136] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided. The above instructions can be executed by the processor 820 of the device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0137] It can be understood that in the present disclosure, "a plurality of" means two or more, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The singular forms of "a", "the", and "said" are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0138] It can be further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not represent a specific order or degree of importance. In fact, the expressions such as "first" and "second" can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0139] It can be further understood that unless otherwise specified, "connection" includes direct connection without other components between the two, and also includes indirect connection with other elements between the two.

[0140] It can be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be construed as requiring the operations to be performed in the specific order shown or in a serial order, or requiring all the operations shown to obtain the desired result. In a specific environment, multitasking and parallel processing may be advantageous.

[0141] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include well-known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0142] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A terminal, characterized in that, the terminal includes: a first magnetometer and a second magnetometer, which are oppositely arranged at both ends of the terminal; a hardware circuit, including components that generate a magnetic field, and the components are located between the first magnetometer and the second magnetometer. Wherein, the first magnetometer is used to obtain a first magnetic induction intensity value, the second magnetometer is used to obtain a second magnetic induction intensity value. The first magnetic induction intensity value of the first magnetometer is a magnetic induction intensity value obtained by superimposing a first magnetic induction intensity correction value and a second magnetic induction intensity influence value, and eliminating a preset geomagnetic influence value. The first magnetic induction intensity correction value is obtained by correcting the first magnetic induction intensity influence value generated by the first magnetometer under the influence of a current-carrying wire based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment. The second magnetic induction intensity influence value is obtained by the first magnetometer under the influence of the internal hardware circuit of the terminal.

2. The terminal according to claim 1, characterized in that, the first magnetometer and the second magnetometer are respectively arranged on two opposite short borders of the terminal.

3. A current testing method, characterized in that, applied to a terminal, the terminal is equipped with a first magnetometer and a second magnetometer, and the first magnetometer and the second magnetometer are oppositely arranged at both ends of the terminal. The current testing method includes: in response to the terminal being used to measure the current of a current-carrying wire, obtaining the first magnetic induction intensity value of the first magnetometer and the second magnetic induction intensity value of the second magnetometer. Wherein, the first magnetic induction intensity value of the first magnetometer is a magnetic induction intensity value obtained by superimposing a first magnetic induction intensity correction value and a second magnetic induction intensity influence value, and eliminating a preset geomagnetic influence value. The first magnetic induction intensity correction value is obtained by correcting the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment. The second magnetic induction intensity influence value is obtained by the first magnetometer under the influence of the internal hardware circuit of the terminal; superimposing the first magnetic induction intensity value and the second magnetic induction intensity value to obtain a third magnetic induction intensity value; determining the current value of the current-carrying wire based on the third magnetic induction intensity value.

4. The current testing method according to claim 3, characterized in that, correcting the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment to obtain a first magnetic induction intensity correction value, including: obtaining the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire and the first magnetic induction intensity test value of the first magnetometer in an open environment; superimposing the first magnetic induction intensity influence value, the first magnetic induction intensity test value and the preset geomagnetic influence value to obtain the magnetic induction intensity correction value of the first magnetometer.

5. The current testing method according to claim 3, It is characterized in that obtaining the second magnetic induction intensity value of the second magnetometer includes: correcting the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire based on a preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment to obtain a second magnetic induction intensity correction value; obtaining a third magnetic induction intensity influence value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal; superposing the second magnetic induction intensity correction value and the third magnetic induction intensity influence value and eliminating the preset geomagnetic influence value to obtain the second magnetic induction intensity value of the second magnetometer.

6. The current testing method according to claim 4, It is characterized in that correcting the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire based on a preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment to obtain a second magnetic induction intensity correction value, including: obtaining the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire and the second magnetic induction intensity test value of the second magnetometer in an open environment; superposing the second magnetic induction intensity influence value, the second magnetic induction intensity test value and the preset geomagnetic influence value to obtain a magnetic induction intensity correction value of the second magnetometer.

7. The current testing method according to any one of claims 3 to 6, It is characterized in that determining the current value of the current-carrying wire based on the third magnetic induction intensity value includes: determining the distance between the terminal and the current-carrying wire; determining the current value of the current-carrying wire based on the third magnetic induction intensity value and the distance.

8. The current testing method according to claim 7, It is characterized in that determining the distance between the terminal and the current-carrying wire includes: obtaining the distance between the terminal and the current-carrying wire input by the user; or using the thickness of the insulating housing of the terminal as the distance between the terminal and the current-carrying wire.

9. A current testing device, It is characterized in that applied to a terminal, the terminal is equipped with a first magnetometer and a second magnetometer, and the first magnetometer and the second magnetometer are oppositely arranged at both ends of the terminal, and the current testing device includes: an acquisition module, configured to acquire the first magnetic induction intensity value of the first magnetometer and the second magnetic induction intensity value of the second magnetometer in response to the terminal being used to measure the current of the current-carrying wire; A superimposing module, configured to superimpose the first magnetic induction intensity value and the second magnetic induction intensity value to obtain a third magnetic induction intensity value, wherein the first magnetic induction intensity value of the first magnetometer is a magnetic induction intensity value obtained by superimposing a first magnetic induction intensity correction value and a second magnetic induction intensity influence value and eliminating a preset geomagnetic influence value, the first magnetic induction intensity correction value is obtained by correcting a first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire based on the preset geomagnetic influence value and a first magnetic induction intensity test value of the first magnetometer in an open environment, and the second magnetic induction intensity influence value is obtained by the first magnetometer under the influence of the internal hardware circuit of the terminal; A determining module, configured to determine the current value of the current-carrying wire based on the third magnetic induction intensity value.

10. The current testing device according to claim 9, wherein, the obtaining module corrects the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire based on the preset geomagnetic influence value and the first magnetic induction intensity test value of the first magnetometer in an open environment in the following manner to obtain a first magnetic induction intensity correction value: obtain the first magnetic induction intensity influence value generated by the first magnetometer under the influence of the current-carrying wire and the first magnetic induction intensity test value of the first magnetometer in an open environment; superimpose the first magnetic induction intensity influence value, the first magnetic induction intensity test value and the preset geomagnetic influence value to obtain a magnetic induction intensity correction value of the first magnetometer.

11. The current testing device according to claim 9, wherein, the obtaining module obtains the second magnetic induction intensity value of the second magnetometer in the following manner: correct the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire based on the preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment to obtain a second magnetic induction intensity correction value; obtain a third magnetic induction intensity influence value generated by the second magnetometer under the influence of the internal hardware circuit of the terminal; superimpose the second magnetic induction intensity correction value and the third magnetic induction intensity influence value and eliminate the preset geomagnetic influence value to obtain the second magnetic induction intensity value of the second magnetometer.

12. The current testing device according to claim 11, wherein, the obtaining module corrects the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire based on the preset geomagnetic influence value and the second magnetic induction intensity test value of the second magnetometer in an open environment in the following manner to obtain a second magnetic induction intensity correction value: obtain the second magnetic induction intensity influence value generated by the second magnetometer under the influence of the current-carrying wire and the second magnetic induction intensity test value of the second magnetometer in an open environment; superimpose the second magnetic induction intensity influence value, the second magnetic induction intensity test value and the preset geomagnetic influence value to obtain a magnetic induction intensity correction value of the second magnetometer.

13. The current testing device according to any one of claims 9 to 12, characterized in that, the determining module determines the current value of the current-carrying wire based on the third magnetic induction intensity value in the following manner: determine the distance between the terminal and the current-carrying wire; determine the current value of the current-carrying wire based on the third magnetic induction intensity value and the distance.

14. The current testing device according to claim 11, characterized in that, the determining module determines the distance between the terminal and the current-carrying wire in the following manner: obtain the distance between the terminal and the current-carrying wire input by the user; or take the thickness of the insulating housing of the terminal as the distance between the terminal and the current-carrying wire.

15. A current testing device, characterized in that, comprising: a processor; a memory for storing instructions executable by the processor; wherein, the processor is configured to: execute the current testing method according to any one of claims 3 to 8.

16. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to execute the current testing method according to any one of claims 3 to 8.

Citation Information

Patent Citations

  • Method for measuring wire current and electronic device

    CN104459279A

  • Detection method and detection device of data

    CN107389091A