CN118169773A - Geomagnetic sensor testing device, geomagnetic sensor testing method, electronic equipment and readable storage medium - Google Patents
Geomagnetic sensor testing device, geomagnetic sensor testing method, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN118169773A CN118169773A CN202410301957.3A CN202410301957A CN118169773A CN 118169773 A CN118169773 A CN 118169773A CN 202410301957 A CN202410301957 A CN 202410301957A CN 118169773 A CN118169773 A CN 118169773A
- Authority
- CN
- China
- Prior art keywords
- magnetic field
- coil
- geomagnetic sensor
- target
- unit
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 135
- 238000001514 detection method Methods 0.000 claims description 103
- 238000012545 processing Methods 0.000 claims description 72
- 238000004088 simulation Methods 0.000 claims description 56
- 238000004590 computer program Methods 0.000 claims description 12
- 238000000034 method Methods 0.000 description 23
- 230000006698 induction Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000001133 acceleration Effects 0.000 description 5
- 230000005484 gravity Effects 0.000 description 5
- 238000009434 installation Methods 0.000 description 5
- 239000000463 material Substances 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000035699 permeability Effects 0.000 description 2
- 229910000976 Electrical steel Inorganic materials 0.000 description 1
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000009916 joint effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229910000889 permalloy Inorganic materials 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V13/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices covered by groups G01V1/00 – G01V11/00
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C25/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices referred to in the other groups of this subclass
Landscapes
- Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Geophysics (AREA)
- Measuring Magnetic Variables (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及设备测试领域,尤其涉及一种地磁传感器测试装置、方法、电子设备及可读存储介质。The present invention relates to the field of equipment testing, and in particular to a geomagnetic sensor testing device, method, electronic equipment and readable storage medium.
背景技术Background technique
随着可穿戴式电子技术的发展,部分智能运动手表中设置三轴地磁传感器来辅助实现全球定位系统GPS功能以及指南针功能;具体地,地磁传感器应用于计算智能运动手表的移动方向;而由于材料、工艺、组装、环境等多种因素的影响,生产的智能运动手表的三轴地磁传感器的检测能力存在偏差,因此,需要在出厂前对智能运动手表的三轴地磁传感器进行测试、校正;而现有技术中对于三轴地磁传感器的测试精度较低,无法满足应用要求。With the development of wearable electronic technology, some smart sports watches are equipped with three-axis geomagnetic sensors to assist in realizing the global positioning system GPS function and the compass function; specifically, the geomagnetic sensor is used to calculate the moving direction of the smart sports watch; however, due to the influence of various factors such as materials, processes, assembly, and environment, there are deviations in the detection ability of the three-axis geomagnetic sensors of the produced smart sports watches. Therefore, it is necessary to test and calibrate the three-axis geomagnetic sensors of the smart sports watches before leaving the factory; however, the test accuracy of the three-axis geomagnetic sensor in the prior art is low and cannot meet the application requirements.
发明内容Summary of the invention
本发明的主要目的在于提出一种地磁传感器测试装置、方法、电子设备及可读存储介质,旨在解决现有技术中对于三轴地磁传感器的测试精度较低的问题。The main purpose of the present invention is to provide a geomagnetic sensor testing device, method, electronic device and readable storage medium, aiming to solve the problem of low testing accuracy of three-axis geomagnetic sensors in the prior art.
为实现上述目的,本发明提供一种地磁传感器测试装置,所述地磁传感器测试装置包括磁场模拟模块以及处理模块;所述磁场模拟模块包括磁场方向相互垂直的第一线圈单元、第二线圈单元以及第三线圈单元;其中,所述第一线圈单元包括第一线圈组、第二线圈组以及第三线圈;其中:To achieve the above-mentioned object, the present invention provides a geomagnetic sensor testing device, which includes a magnetic field simulation module and a processing module; the magnetic field simulation module includes a first coil unit, a second coil unit and a third coil unit whose magnetic field directions are perpendicular to each other; wherein the first coil unit includes a first coil group, a second coil group and a third coil; wherein:
所述第一线圈组设置在所述第二线圈组之间,所述第三线圈设置在所述第一线圈组之间;The first coil group is arranged between the second coil groups, and the third coil is arranged between the first coil groups;
所述处理模块的输出端与所述磁场模拟模块中的线圈连接,所述处理模块的采集端与目标设备连接,所述第三线圈的线圈中心为目标设备的测试位置;其中:The output end of the processing module is connected to the coil in the magnetic field simulation module, the acquisition end of the processing module is connected to the target device, and the coil center of the third coil is the test position of the target device; wherein:
所述处理模块,用于输出与目标磁场对应的驱动电流至所述磁场模拟模块中的线圈,以使所述磁场模拟模块构建所述目标磁场;The processing module is used to output a driving current corresponding to the target magnetic field to the coil in the magnetic field simulation module, so that the magnetic field simulation module constructs the target magnetic field;
所述处理模块,还用于获取所述目标设备基于所述目标磁场的检测信号,并根据所述检测信号对所述目标设备的地磁传感器进行测试。The processing module is further used to obtain a detection signal of the target device based on the target magnetic field, and test the geomagnetic sensor of the target device according to the detection signal.
为实现上述目的,本发明还提供一种地磁传感器测试方法,所述地磁传感器测试方法应用于如上所述的地磁传感器测试装置,所述地磁传感器测试方法包括:To achieve the above object, the present invention further provides a geomagnetic sensor testing method, which is applied to the geomagnetic sensor testing device as described above, and comprises:
确定目标磁场,并发送与所述目标磁场对应的驱动电流至磁场模拟模块;Determine a target magnetic field, and send a driving current corresponding to the target magnetic field to a magnetic field simulation module;
获取目标设备基于所述目标磁场的检测信号;Acquire a detection signal of a target device based on the target magnetic field;
根据所述检测信号对所述目标设备的地磁传感器进行测试。The geomagnetic sensor of the target device is tested according to the detection signal.
为实现上述目的,本发明还提供一种电子设备,所述电子设备包括存储器、处理器和存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的地磁传感器测试方法的步骤。To achieve the above objectives, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the geomagnetic sensor testing method as described above when executed by the processor.
为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的地磁传感器测试方法的步骤。To achieve the above objectives, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the geomagnetic sensor testing method as described above are implemented.
本发明提出的一种地磁传感器测试装置、方法、电子设备及可读存储介质,通过设置相互垂直的第一线圈单元、第二线圈单元以及第三线圈单元使得能够模拟三维磁场,同时,在第一线圈单元中,设置第一线圈组、第二线圈组以及第三线圈,使得能够在第一线圈单元的磁场方向上保证磁场均匀度更佳,从而提高基于模拟的三维磁场的地磁传感器的测试精度。The present invention proposes a geomagnetic sensor testing device, method, electronic device and readable storage medium, which can simulate a three-dimensional magnetic field by setting a first coil unit, a second coil unit and a third coil unit that are perpendicular to each other. At the same time, in the first coil unit, a first coil group, a second coil group and a third coil are set, so that the magnetic field uniformity can be better ensured in the magnetic field direction of the first coil unit, thereby improving the test accuracy of the geomagnetic sensor based on the simulated three-dimensional magnetic field.
附图说明BRIEF DESCRIPTION OF THE 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.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本发明地磁传感器测试装置中第一线圈单元的结构示意图;FIG1 is a schematic structural diagram of a first coil unit in a geomagnetic sensor testing device of the present invention;
图2为本发明地磁传感器测试装置中磁场模拟模块的结构示意图;FIG2 is a schematic diagram of the structure of a magnetic field simulation module in a geomagnetic sensor testing device of the present invention;
图3为本发明地磁传感器测试装置中磁场模拟模块的X轴视角图;FIG3 is an X-axis viewing angle diagram of a magnetic field simulation module in a geomagnetic sensor testing device of the present invention;
图4为本发明地磁传感器测试装置的整体结构示意图;FIG4 is a schematic diagram of the overall structure of the geomagnetic sensor testing device of the present invention;
图5为本发明地磁传感器测试装置的流程示意图;FIG5 is a schematic diagram of a flow chart of a geomagnetic sensor testing device according to the present invention;
图6为本发明电子设备的模块结构示意图。FIG. 6 is a schematic diagram of the module structure of the electronic device of the present invention.
附图标号说明:Description of Figure Numbers:
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
本发明提供一种地磁传感器测试装置,所述地磁传感器测试装置包括磁场模拟模块4以及处理模块;所述磁场模拟模块4包括磁场方向相互垂直的第一线圈单元、第二线圈单元以及第三线圈Y3;其中,所述第一线圈单元包括第一线圈组、第二线圈组以及第三线圈Y3;其中:The present invention provides a geomagnetic sensor testing device, which includes a magnetic field simulation module 4 and a processing module; the magnetic field simulation module 4 includes a first coil unit, a second coil unit and a third coil Y3 with magnetic field directions perpendicular to each other; wherein the first coil unit includes a first coil group, a second coil group and a third coil Y3; wherein:
所述第一线圈组设置在所述第二线圈组之间,所述第三线圈Y3设置在所述第一线圈组之间;The first coil group is arranged between the second coil groups, and the third coil Y3 is arranged between the first coil groups;
所述处理模块的输出端与所述磁场模拟模块4中的线圈连接,所述处理模块的采集端与目标设备8连接,所述第三线圈Y3的线圈中心为目标设备8的测试位置;其中:The output end of the processing module is connected to the coil in the magnetic field simulation module 4, the acquisition end of the processing module is connected to the target device 8, and the coil center of the third coil Y3 is the test position of the target device 8; wherein:
所述处理模块,用于输出与目标磁场对应的驱动电流至所述磁场模拟模块4中的线圈,以使所述磁场模拟模块4构建所述目标磁场;The processing module is used to output a driving current corresponding to the target magnetic field to the coil in the magnetic field simulation module 4, so that the magnetic field simulation module 4 constructs the target magnetic field;
所述处理模块,还用于获取所述目标设备8基于所述目标磁场的检测信号,并根据所述检测信号对所述目标设备8的地磁传感器进行测试。The processing module is further used to obtain a detection signal of the target device 8 based on the target magnetic field, and test the geomagnetic sensor of the target device 8 according to the detection signal.
第一线圈单元、第二线圈单元以及第三线圈Y3分别用于模拟一个方向的磁场;同时三个线圈单元模拟的磁场方向相互垂直,如第一线圈单元的磁场方向对应三维坐标系中的Y轴方向,第二线圈单元的磁场方向对应三维坐标系中的X轴方向,第三线圈Y3的磁场方向对应三维坐标系中的Z轴方向;三个线圈单元同时模拟三个方向的磁场时,三个方向的磁场叠加即可实现对于三位磁场的模拟。The first coil unit, the second coil unit and the third coil Y3 are respectively used to simulate a magnetic field in one direction; at the same time, the directions of the magnetic fields simulated by the three coil units are perpendicular to each other, such as the magnetic field direction of the first coil unit corresponds to the Y-axis direction in the three-dimensional coordinate system, the magnetic field direction of the second coil unit corresponds to the X-axis direction in the three-dimensional coordinate system, and the magnetic field direction of the third coil Y3 corresponds to the Z-axis direction in the three-dimensional coordinate system; when the three coil units simulate magnetic fields in three directions at the same time, the superposition of the magnetic fields in the three directions can realize the simulation of the three-dimensional magnetic field.
可以理解的是,每个线圈单元由多个线圈组成,对于单个线圈单元而言,其包含的线圈在通电时对应的磁场方向均相同,即为该线圈单元的磁场方向,参见图1,本实施例以及后续实施例中以第一线圈单元的磁场方向对应Y轴方向为例,则第一线圈单元中包含的所有线圈的磁场方向均为Y轴方向。It can be understood that each coil unit is composed of multiple coils. For a single coil unit, the magnetic field directions corresponding to the coils contained therein are all the same when energized, that is, the magnetic field direction of the coil unit. Referring to Figure 1, in this embodiment and subsequent embodiments, taking the magnetic field direction of the first coil unit corresponding to the Y-axis direction as an example, the magnetic field directions of all coils contained in the first coil unit are all in the Y-axis direction.
线圈组包含两个参数相同、磁场方向相同的线圈;如第一线圈组包括第一子线圈Y11与第二子线圈Y12,第二线圈组包括第三子线圈Y13与第四子线圈Y14;其中,第一子线圈Y11与第二子线圈Y12的形状大小一致,第三子线圈Y13与第四子线圈Y14的形状大小一致;为了使得模拟的磁场具有均匀性,需要将线圈组中的线圈相对磁场对称设置,具体地,第一线圈组、第二线圈组以及第三线圈Y3的具体设置位置依次为第一子线圈Y11、第三子线圈Y13、第三线圈Y3、第四子线圈Y14、第二子线圈Y12,且上述五个线圈同轴设置;第三线圈Y3设置于空间坐标系的坐标原点,第三子线圈Y13与第四子线圈Y14相对第三线圈Y3的距离相同,第一子线圈Y11与第二子线圈Y12相对第三线圈Y3的距离相同。The coil group includes two coils with the same parameters and the same magnetic field direction; for example, the first coil group includes the first sub-coil Y11 and the second sub-coil Y12, and the second coil group includes the third sub-coil Y13 and the fourth sub-coil Y14; wherein the first sub-coil Y11 and the second sub-coil Y12 are consistent in shape and size, and the third sub-coil Y13 and the fourth sub-coil Y14 are consistent in shape and size; in order to make the simulated magnetic field uniform, the coils in the coil group need to be symmetrically arranged relative to the magnetic field. Specifically, the specific arrangement positions of the first coil group, the second coil group and the third coil Y3 are the first sub-coil Y11, the third sub-coil Y13, the third coil Y3, the fourth sub-coil Y14 and the second sub-coil Y12, respectively, and the above five coils are coaxially arranged; the third coil Y3 is arranged at the coordinate origin of the spatial coordinate system, the third sub-coil Y13 and the fourth sub-coil Y14 are at the same distance from the third coil Y3, and the first sub-coil Y11 and the second sub-coil Y12 are at the same distance from the third coil Y3.
由毕奥-萨伐尔定律及磁场叠加原理可知,第一线圈组在其磁场方向上的磁感应强度By1为:According to the Biot-Savart law and the principle of magnetic field superposition, the magnetic induction intensity By1 of the first coil group in the direction of its magnetic field is:
其中,μ为空气磁导率,Iy为第一子线圈Y11与第二子线圈Y12的驱动电流,R3为第一线圈组中线圈的半径,L1为第二线圈组中的线圈与第三线圈Y3之间的距离,L2为第三子线圈Y13与第一子线圈Y11或第四子线圈Y14与第二子线圈Y12之间的距离,y为距离坐标原点的距离;Wherein, μ is the air magnetic permeability, Iy is the driving current of the first sub-coil Y11 and the second sub-coil Y12, R3 is the radius of the coil in the first coil group, L1 is the distance between the coil in the second coil group and the third coil Y3, L2 is the distance between the third sub-coil Y13 and the first sub-coil Y11 or the fourth sub-coil Y14 and the second sub-coil Y12, and y is the distance from the coordinate origin;
第二线圈组在其磁场方向上的磁感应强度By2为:The magnetic induction intensity By2 of the second coil group in the direction of its magnetic field is:
第三线圈Y3在其磁场方向上的磁感应强度By3为:The magnetic induction intensity By3 of the third coil Y3 in the direction of its magnetic field is:
其中,k为第三线圈Y3的驱动电流的比例系数;Wherein, k is the proportional coefficient of the driving current of the third coil Y3;
第一线圈单元构成的Y轴方向上的磁感应强度By则为多个磁感应强度的叠加,即:The magnetic induction intensity By in the Y-axis direction formed by the first coil unit is the superposition of multiple magnetic induction intensities, that is:
By=By1+By2+By3By=By1+By2+By3
由上述公式可知,在各线圈的半径、设置距离均固定的情况下,Y轴上只设置第一线圈组时,磁场强度为By1,增加第二线圈组时,磁场强度叠加By2,即By1+By2,增加第三线圈Y3时,再次叠加By3,即By1+By2+By3;在需要模拟的磁场强度不变的情况下,相较于仅设置第一线圈组等较少线圈的方案,本实施例的方案所需要的驱动电流较小,能够有效减少线圈耦合时的地磁干扰,同时,所需要的线圈半径也较小,能够降低地磁传感器测试装置的体积。It can be seen from the above formula that, when the radius and setting distance of each coil are fixed, when only the first coil group is set on the Y-axis, the magnetic field strength is By1, when the second coil group is added, the magnetic field strength is superimposed by By2, that is, By1+By2, and when the third coil Y3 is added, By3 is superimposed again, that is, By1+By2+By3; when the magnetic field strength to be simulated remains unchanged, compared with the solution of only setting the first coil group and other fewer coils, the solution of this embodiment requires a smaller driving current, which can effectively reduce the geomagnetic interference during coil coupling. At the same time, the required coil radius is also smaller, which can reduce the volume of the geomagnetic sensor test device.
由上述公式可得在坐标原点处的磁场强度By0为y=0时的By;From the above formula, we can get the magnetic field intensity By0 at the origin of the coordinate system as By when y=0;
令Y轴上的点与坐标原点处的磁场强度之间的偏差ε为:Let the deviation ε between the magnetic field intensity at the point on the Y axis and the origin of the coordinate system be:
则在仅设置第一线圈组的情况下,对应的偏差ε1为:Then, when only the first coil group is set, the corresponding deviation ε1 is:
在同时设置第一线圈组与第二线圈组的情况下,对应的偏差ε1为:When the first coil group and the second coil group are set at the same time, the corresponding deviation ε1 is:
在同时设置第一线圈组、第二线圈组与第三线圈Y3的情况下,对应的偏差ε3为:When the first coil group, the second coil group and the third coil Y3 are provided at the same time, the corresponding deviation ε3 is:
由上述公式可知,在各线圈半径以及设置位置确定的情况下,ε1<ε2<ε3≤1,在设置第一线圈组与第二线圈组时,能够消除中心磁场均匀区磁场表达式的低阶余项,在进一步增加第三线圈Y3之后,按泰勒公式展开使得低阶余项次数更高,磁场均匀度更好所以线圈安装带来的偏离中心点所带来的误差能够急速衰减。It can be seen from the above formula that, when the radius and setting position of each coil are determined, ε1<ε2<ε3≤1. When the first coil group and the second coil group are set, the low-order remainder of the magnetic field expression in the central magnetic field uniform area can be eliminated. After further adding the third coil Y3, the Taylor formula is used to expand the low-order remainder to a higher degree, and the magnetic field uniformity is better, so the error caused by the deviation from the center point caused by the coil installation can be rapidly attenuated.
同时,可知,磁场强度、磁场均匀度与线圈半径与设置位置有关,因此,在实际应用中,可以基于实际需要测试的地磁传感器的大小或目标设备8的大小来设置圈半径与设置位置;如目标设备8为智能手表,而智能手表的厚度一般小于20mm,因此,可以设置线圈半径与设置位置实现在X轴50mm、Y轴50mm,Z轴25mm区域内磁场均匀,具体线圈半径与设置位置可以基于具体调试确定。At the same time, it can be seen that the magnetic field strength, magnetic field uniformity, coil radius and setting position are related. Therefore, in practical applications, the coil radius and setting position can be set based on the size of the geomagnetic sensor that actually needs to be tested or the size of the target device 8; for example, if the target device 8 is a smart watch, and the thickness of a smart watch is generally less than 20 mm, therefore, the coil radius and setting position can be set to achieve a uniform magnetic field in the X-axis 50 mm, Y-axis 50 mm, and Z-axis 25 mm area. The specific coil radius and setting position can be determined based on specific debugging.
本实施例通过上述设置使得能够基于磁场模拟模块4来实现准确、均匀度好的磁场模拟;基于磁场模拟模块4模拟的磁场能够对目标设备8的地磁传感器进行测试。Through the above configuration, this embodiment enables accurate and uniform magnetic field simulation based on the magnetic field simulation module 4 ; the magnetic field simulated by the magnetic field simulation module 4 can test the geomagnetic sensor of the target device 8 .
可以理解的是,对于地磁传感器的测试主要是对地磁传感器对于磁场的检测准确度进行测试,在具体进行测试中,首先通过磁场模拟模块4来构建需要的目标磁场,地磁传感器在目标磁场中进行检测,得到检测信号,处理模块判断检测信号与目标磁场的相符程度来对地磁传感器的精度进行检测,同时还可以基于检测信号与目标磁场生成校准值,并将校准值写入到目标设备8中,以对目标设备8中的地磁传感器进行校准。It can be understood that the test of the geomagnetic sensor is mainly to test the detection accuracy of the geomagnetic sensor for the magnetic field. In the specific test, the required target magnetic field is first constructed through the magnetic field simulation module 4. The geomagnetic sensor detects in the target magnetic field to obtain a detection signal. The processing module determines the degree of consistency between the detection signal and the target magnetic field to detect the accuracy of the geomagnetic sensor. At the same time, a calibration value can be generated based on the detection signal and the target magnetic field, and the calibration value is written into the target device 8 to calibrate the geomagnetic sensor in the target device 8.
本实施例通过设置相互垂直的第一线圈单元、第二线圈单元以及第三线圈Y3使得能够模拟三维磁场,同时,在第一线圈单元中,设置第一线圈组、第二线圈组以及第三线圈Y3,使得能够在第一线圈单元的磁场方向上保证磁场均匀度更佳,从而提高基于模拟的三维磁场的地磁传感器的测试精度。This embodiment can simulate a three-dimensional magnetic field by setting a first coil unit, a second coil unit and a third coil Y3 that are perpendicular to each other. At the same time, in the first coil unit, a first coil group, a second coil group and a third coil Y3 are set, so that the magnetic field uniformity can be better ensured in the magnetic field direction of the first coil unit, thereby improving the test accuracy of the geomagnetic sensor based on the simulated three-dimensional magnetic field.
进一步地,参见图2与图3,所述第一线圈单元中的线圈垂直于Y轴且线圈中心点位于Y轴,所述第二线圈单元中的线圈垂直于X轴且线圈中心点位于X轴,所述第三线圈Y3中的线圈垂直于Z轴且线圈中心点位于Z轴。Further, referring to Figures 2 and 3, the coil in the first coil unit is perpendicular to the Y axis and the center point of the coil is located on the Y axis, the coil in the second coil unit is perpendicular to the X axis and the center point of the coil is located on the X axis, and the coil in the third coil Y3 is perpendicular to the Z axis and the center point of the coil is located on the Z axis.
第一线圈单元用于产生Y轴方向的磁场,第二线圈单元用于产生X轴方向的磁场,第三线圈Y3用于产生Z轴方向的磁场;通过第一线圈单元、第二线圈单元以及第三线圈Y3的共同作用,则能够构建三维磁场。The first coil unit is used to generate a magnetic field in the Y-axis direction, the second coil unit is used to generate a magnetic field in the X-axis direction, and the third coil Y3 is used to generate a magnetic field in the Z-axis direction; through the joint action of the first coil unit, the second coil unit and the third coil Y3, a three-dimensional magnetic field can be constructed.
进一步地,所述第一线圈单元中的线圈为圆形,所述第二线圈单元中的线圈为正方形,所述第三线圈Y3中的线圈为正方形。Further, the coil in the first coil unit is circular, the coil in the second coil unit is square, and the coil in the third coil Y3 is square.
可以理解的是,矩形线圈,本实施例中具体为正方形线圈的加工精度更高,安装更为方便、精确;而圆形线圈的加工精度相较矩形线圈低,安装较为困难,但是具有更高的磁场均匀性;因此,本实施例中将主要的磁场方向,即Y轴对应的第一线圈单元中的线圈设置为圆形线圈,提高磁场均匀性,同时,由于第一线圈单元中五个线圈的设置,使得第一线圈单元能够容忍更高的安装误差,从而兼顾了安装精度与磁场均匀性;而对于第二线圈单元和第三线圈Y3则可以采用矩形线圈来保证安装精度,以此降低制造与安装成本。It can be understood that the rectangular coil, specifically the square coil in this embodiment, has higher processing accuracy and is more convenient and precise to install; while the circular coil has lower processing accuracy than the rectangular coil and is more difficult to install, but has higher magnetic field uniformity; therefore, in this embodiment, the main magnetic field direction, that is, the coil in the first coil unit corresponding to the Y-axis is set to a circular coil to improve the magnetic field uniformity. At the same time, due to the setting of five coils in the first coil unit, the first coil unit can tolerate higher installation errors, thereby taking into account both installation accuracy and magnetic field uniformity; for the second coil unit and the third coil Y3, rectangular coils can be used to ensure installation accuracy, thereby reducing manufacturing and installation costs.
需要说明的是,各线圈单元中的线圈形状还可以基于实际需要进行设置,如将所有线圈设置为圆形、将所有线圈设置为正方形等。It should be noted that the shape of the coils in each coil unit can also be set based on actual needs, such as setting all coils to be circular, setting all coils to be square, etc.
进一步地,所述第二线圈单元包括第三线圈Y3对,其中,所述第三线圈Y3对基于所述第三线圈Y3的线圈中心对称设置。Further, the second coil unit includes a pair of third coils Y3, wherein the pair of third coils Y3 are symmetrically arranged based on the coil center of the third coil Y3.
由前述说明可知,第三线圈Y3的线圈中心为空间坐标系的坐标原点;而第三线圈Y3对基于第三线圈Y3的线圈中心对称设置,即第三线圈Y3基于空间坐标系的坐标原点对称设置;具体地,第三线圈Y3对包括第五子线圈X15与第六子线圈X16,第五子线圈X15与第六子线圈X16同轴设置且线圈中心设置在X轴。From the above description, it can be seen that the coil center of the third coil Y3 is the coordinate origin of the space coordinate system; and the third coil Y3 pair is symmetrically arranged based on the coil center of the third coil Y3, that is, the third coil Y3 is symmetrically arranged based on the coordinate origin of the space coordinate system; specifically, the third coil Y3 pair includes the fifth sub-coil X15 and the sixth sub-coil X16, the fifth sub-coil X15 and the sixth sub-coil X16 are coaxially arranged and the coil center is arranged on the X-axis.
由毕奥-萨伐尔定律及磁场叠加原理可知,第三线圈Y3对在其磁场方向上的磁感应强度Bx为:According to the Biot-Savart law and the principle of magnetic field superposition, the magnetic induction intensity Bx of the third coil Y3 in the direction of its magnetic field is:
其中,L3为第五子线圈X15或第六子线圈X16与坐标原点的距离,L4为第五子线圈X15或第六子线圈X16的边长,x为距离坐标原点的距离,Ix为第五子线圈X15与第六子线圈X16的驱动电流。Among them, L3 is the distance between the fifth sub-coil X15 or the sixth sub-coil X16 and the coordinate origin, L4 is the side length of the fifth sub-coil X15 or the sixth sub-coil X16, x is the distance from the coordinate origin, and I x is the driving current of the fifth sub-coil X15 and the sixth sub-coil X16.
需要说明的是,第二线圈单元的具体结构还可以基于实际需要进行设置,如设置多个线圈组。It should be noted that the specific structure of the second coil unit can also be set based on actual needs, such as setting a plurality of coil groups.
进一步地,所述第三线圈Y3包括第四线圈组,其中,所述第四线圈组基于所述第三线圈Y3的线圈中心对称设置。Further, the third coil Y3 includes a fourth coil group, wherein the fourth coil group is symmetrically arranged based on the coil center of the third coil Y3.
由前述说明可知,第四线圈的线圈中心为空间坐标系的坐标原点;而第四线圈组基于第四线圈的线圈中心对称设置,即第四线圈基于空间坐标系的坐标原点对称设置;具体地,第四线圈组包括第七子线圈Z17与第八子线圈Z18,第七子线圈Z17与第八子线圈Z18同轴设置且线圈中心设置在Z轴。需要说明的是,第二线圈单元的具体结构还可以基于实际需要进行设置,如设置多个线圈组。It can be seen from the above description that the coil center of the fourth coil is the origin of the coordinate system of the space coordinate system; and the fourth coil group is symmetrically arranged based on the coil center of the fourth coil, that is, the fourth coil is symmetrically arranged based on the origin of the coordinate system of the space coordinate system; specifically, the fourth coil group includes the seventh sub-coil Z17 and the eighth sub-coil Z18, and the seventh sub-coil Z17 and the eighth sub-coil Z18 are coaxially arranged and the coil center is arranged on the Z axis. It should be noted that the specific structure of the second coil unit can also be arranged based on actual needs, such as setting multiple coil groups.
由毕奥-萨伐尔定律及磁场叠加原理可知,第三线圈Y3对在其磁场方向上的磁感应强度Bz为:According to the Biot-Savart law and the principle of magnetic field superposition, the magnetic induction intensity Bz of the third coil Y3 in the direction of its magnetic field is:
其中,L5为第七子线圈Z17或第八子线圈Z18与坐标原点的距离,L6为第七子线圈Z17或第八子线圈Z18的边长,z为距离坐标原点的距离,Iz为第七子线圈Z17与第八子线圈Z18的驱动电流。Among them, L5 is the distance between the seventh sub-coil Z17 or the eighth sub-coil Z18 and the coordinate origin, L6 is the side length of the seventh sub-coil Z17 or the eighth sub-coil Z18, z is the distance from the coordinate origin, and Iz is the driving current of the seventh sub-coil Z17 and the eighth sub-coil Z18.
由磁场叠加原理可知,由第一子线圈Y11~第八子线圈Z18、第三线圈Y3构成的三维矢量磁场为:According to the principle of magnetic field superposition, the three-dimensional vector magnetic field formed by the first sub-coil Y11 to the eighth sub-coil Z18 and the third coil Y3 is:
进一步地,参见图4,所述处理模块包括处理单元2、驱动单元3以及磁场标准单元;所述处理单元2的采集端与所述目标设备8连接,所述处理单元2的输出端与所述驱动单元3的控制端连接,所述驱动单元3的输出端与所述磁场模拟模块4中的线圈连接,所述处理单元2的输入端与所述磁场标准单元连接,所述磁场标准单元设置于所述目标磁场内;其中:Further, referring to FIG4 , the processing module includes a processing unit 2, a driving unit 3 and a magnetic field standard unit; the acquisition end of the processing unit 2 is connected to the target device 8, the output end of the processing unit 2 is connected to the control end of the driving unit 3, the output end of the driving unit 3 is connected to the coil in the magnetic field simulation module 4, the input end of the processing unit 2 is connected to the magnetic field standard unit, and the magnetic field standard unit is arranged in the target magnetic field; wherein:
所述处理单元2,用于确定与目标磁场对应的电流信号,并将所述电流信号发送至所述驱动单元3;The processing unit 2 is used to determine a current signal corresponding to a target magnetic field, and send the current signal to the driving unit 3;
所述驱动单元3,用于根据所述电流信号输出所述驱动电流至所述磁场模拟模块4中的线圈,以使所述磁场模拟模块4构建所述目标磁场;The driving unit 3 is used to output the driving current to the coil in the magnetic field simulation module 4 according to the current signal, so that the magnetic field simulation module 4 constructs the target magnetic field;
所述磁场标准单元,用于对所述目标磁场的磁场信号进行检测,并将所述磁场信号发送至所述处理单元2;The magnetic field standard unit is used to detect the magnetic field signal of the target magnetic field and send the magnetic field signal to the processing unit 2;
所述处理单元2,用于获取所述目标设备8基于所述目标磁场的检测信号,并根据所述检测信号以及所述磁场信号对所述目标设备8的地磁传感器进行测试。The processing unit 2 is used to obtain a detection signal of the target device 8 based on the target magnetic field, and test the geomagnetic sensor of the target device 8 according to the detection signal and the magnetic field signal.
由前述对于磁场模拟模块4的说明可知,磁场模拟模块4模拟的磁场是通过输出驱动电流至对应线圈而构建的;不同的驱动电流对应的磁场不同,因此,需要确定目标磁场,并进一步确定与目标磁场对应的电流信号;可以理解的是,在各线圈设置完成后,磁场与驱动电流之间的对应关系是相对确定的,因此,可以提前获取磁场与驱动电流之间的对应关系,从而基于对应关系来确定与目标磁场对应的电流信号。From the above description of the magnetic field simulation module 4, it can be seen that the magnetic field simulated by the magnetic field simulation module 4 is constructed by outputting a driving current to the corresponding coil; different driving currents correspond to different magnetic fields, therefore, it is necessary to determine the target magnetic field, and further determine the current signal corresponding to the target magnetic field; it can be understood that after each coil is set up, the correspondence between the magnetic field and the driving current is relatively certain, therefore, the correspondence between the magnetic field and the driving current can be obtained in advance, thereby determining the current signal corresponding to the target magnetic field based on the correspondence.
驱动单元3基于电流信号输出对应的驱动电流至磁场模拟模块4中对应的线圈,从而使得磁场模拟模块4构建与电流信号对应的目标磁场。The driving unit 3 outputs a corresponding driving current to a corresponding coil in the magnetic field simulation module 4 based on the current signal, so that the magnetic field simulation module 4 constructs a target magnetic field corresponding to the current signal.
在目标磁场构建完成之后,目标设备8中的地磁传感器对目标磁场进行检测得到检测信号,并将检测信号发送至处理单元2;同时,磁场标准单元对目标磁场进行检测得到磁场信号,并将磁场信号发送至处理单元2;可以理解的是,磁场标准单元为校准过的磁场检测器件,具体可以为三轴高斯计9,即磁场标准单元能够准确检测出目标磁场的相关数据。After the target magnetic field is constructed, the geomagnetic sensor in the target device 8 detects the target magnetic field to obtain a detection signal, and sends the detection signal to the processing unit 2; at the same time, the magnetic field standard unit detects the target magnetic field to obtain a magnetic field signal, and sends the magnetic field signal to the processing unit 2; it can be understood that the magnetic field standard unit is a calibrated magnetic field detection device, specifically a three-axis Gaussmeter 9, that is, the magnetic field standard unit can accurately detect the relevant data of the target magnetic field.
处理单元2在接收到磁场信号与检测信号之后,由于磁场信号能够准确指示目标磁场,即磁场信号可以被认为是标准信号,因此,通过比较磁场信号与检测信号能够确定检测信号的检测情况,如当检测信号与磁场信号一致时,认为目标设备8的地磁传感器检测准确,而当检测信号与磁场信号相差较大时,则认为目标设备8的地磁传感器检测偏差较大。After receiving the magnetic field signal and the detection signal, the processing unit 2 can determine the detection condition of the detection signal by comparing the magnetic field signal with the detection signal because the magnetic field signal can accurately indicate the target magnetic field, that is, the magnetic field signal can be considered as a standard signal. For example, when the detection signal is consistent with the magnetic field signal, it is considered that the geomagnetic sensor of the target device 8 has accurate detection, and when the detection signal is significantly different from the magnetic field signal, it is considered that the detection deviation of the geomagnetic sensor of the target device 8 is relatively large.
可以理解的是,为了保证测试准确性,应当尽可能将目标设备8的地磁传感器以及磁场标准单元设置在目标磁场的中心,从而降低由于位置对于检测情况的影响。It is understandable that in order to ensure the accuracy of the test, the geomagnetic sensor and the magnetic field standard unit of the target device 8 should be set at the center of the target magnetic field as much as possible, so as to reduce the influence of the position on the detection situation.
进一步地,所述处理模块还包括运动检测模块11,所述运动检测模块11的输出端与所述处理单元2的运动采集端连接;Furthermore, the processing module further comprises a motion detection module 11, and an output end of the motion detection module 11 is connected to a motion acquisition end of the processing unit 2;
所述运动检测模块11,用于对所述地磁传感器测试装置的运动状态进行检测,得到运动信号,并将所述运动信号发送至所述处理单元2。The motion detection module 11 is used to detect the motion state of the geomagnetic sensor testing device, obtain a motion signal, and send the motion signal to the processing unit 2.
可以理解的是,在实际应用中,存在部分场景会造成地磁传感器测试装置震动,如目标设备8未放水平、目标设备8的中心未达到地磁传感器测试装置中心坐标原点、用户触碰测试装置等,地磁传感器测试装置的震动会造成装置内器件、目标设备8的位置偏移,从而使得测试结果不准确;因此,本实施例中,设置运动检测模块11来对地磁传感器测试装置的运动状态进行检测,从而保证在地磁传感器测试装置为静止状态时进行测试,保证测试结果。It is understandable that in actual applications, there are some scenarios that will cause the geomagnetic sensor testing device to vibrate, such as when the target device 8 is not placed horizontally, the center of the target device 8 does not reach the center coordinate origin of the geomagnetic sensor testing device, the user touches the testing device, etc. The vibration of the geomagnetic sensor testing device will cause the position of the components and the target device 8 in the device to shift, thereby making the test results inaccurate; therefore, in this embodiment, a motion detection module 11 is set to detect the motion state of the geomagnetic sensor testing device, thereby ensuring that the test is performed when the geomagnetic sensor testing device is in a stationary state to ensure the test results.
运动检测模块11的具体类型可以基于实际需要进行设置,如三轴加速度计、三轴陀螺仪。The specific type of the motion detection module 11 can be set based on actual needs, such as a three-axis accelerometer or a three-axis gyroscope.
进一步地,所述地磁传感器测试装置还包括磁屏蔽箱7,所述磁场模拟模块4设置于所述磁屏蔽箱7内。Furthermore, the geomagnetic sensor testing device further comprises a magnetic shielding box 7 , and the magnetic field simulation module 4 is arranged in the magnetic shielding box 7 .
可以理解的是,环境中本身就存在磁场,包括但不限于地磁、电子设备磁场,因此,若直接在环境中对地磁传感器进行测试,则受到环境磁场影响较大,无法准确实现测试;本实施例中设置磁屏蔽箱7来对环境磁场进行屏蔽;磁屏蔽箱7的具体材料以及结构可以基于实际需要进行选择,如坡莫合金或硅钢片等高磁导率。It is understandable that there are magnetic fields in the environment itself, including but not limited to geomagnetism and magnetic fields of electronic equipment. Therefore, if the geomagnetic sensor is tested directly in the environment, it will be greatly affected by the environmental magnetic field and the test cannot be accurately carried out. In this embodiment, a magnetic shielding box 7 is provided to shield the environmental magnetic field. The specific material and structure of the magnetic shielding box 7 can be selected based on actual needs, such as high magnetic permeability such as Permalloy or silicon steel sheet.
将磁场模拟模块4设置在磁屏蔽箱7内,从而使得在进行测试时,磁屏蔽箱7内只有磁场模拟模块4构建的目标磁场,从而避免了环境磁场的影响。可以理解的是,处理模块中的磁场标准单元设置于磁屏蔽箱7内,而处理单元2、驱动单元3由电子器件构成,因此,为了避免电磁影响,将处理单元2设置在磁屏蔽箱7外。The magnetic field simulation module 4 is arranged in the magnetic shielding box 7, so that when the test is performed, there is only the target magnetic field constructed by the magnetic field simulation module 4 in the magnetic shielding box 7, thereby avoiding the influence of the environmental magnetic field. It can be understood that the magnetic field standard unit in the processing module is arranged in the magnetic shielding box 7, and the processing unit 2 and the driving unit 3 are composed of electronic devices. Therefore, in order to avoid electromagnetic influence, the processing unit 2 is arranged outside the magnetic shielding box 7.
为了实现完整的地磁传感器的测试,磁屏蔽箱7还可以包括外壳1、伸缩孔6、手拉杆5、抽屉式固定卡槽等,所有器件均设置于外壳1内,抽屉式固定卡槽用于放置目标设备8,同时放置板与手拉杆5连接,通过拉动手拉杆5来带动抽屉式固定卡槽移动,从而对目标设备8进行取放;伸缩孔6与手拉杆5匹配,当伸缩孔6与手拉杆5相合,外壳1内部构成一个密闭空间。In order to realize the complete test of the geomagnetic sensor, the magnetic shielding box 7 can also include an outer shell 1, a telescopic hole 6, a hand rod 5, a drawer-type fixed slot, etc. All devices are arranged in the outer shell 1, and the drawer-type fixed slot is used to place the target device 8. At the same time, the placement plate is connected to the hand rod 5. The drawer-type fixed slot is moved by pulling the hand rod 5, so that the target device 8 can be taken and placed; the telescopic hole 6 is matched with the hand rod 5. When the telescopic hole 6 is combined with the hand rod 5, a closed space is formed inside the outer shell 1.
本发明还提供一种地磁传感器测试方法,本发明地磁传感器测试方法应用于如上所述的地磁传感器测试装置,参照图1,图1为本发明地磁传感器测试方法第一实施例的流程示意图,所述方法包括步骤:The present invention further provides a geomagnetic sensor testing method, which is applied to the geomagnetic sensor testing device as described above. Referring to FIG. 1 , FIG. 1 is a flow chart of a first embodiment of the geomagnetic sensor testing method of the present invention, and the method comprises the following steps:
步骤S10,确定目标磁场,并发送与所述目标磁场对应的驱动电流至磁场模拟模块;Step S10, determining a target magnetic field, and sending a driving current corresponding to the target magnetic field to a magnetic field simulation module;
步骤S20,获取目标设备基于所述目标磁场的检测信号;Step S20, obtaining a detection signal of the target device based on the target magnetic field;
步骤S30,根据所述检测信号对所述目标设备的地磁传感器进行测试。Step S30: testing the geomagnetic sensor of the target device according to the detection signal.
驱动单元基于电流信号输出对应的驱动电流至磁场模拟模块中对应的线圈,从而使得磁场模拟模块构建与电流信号对应的目标磁场。The driving unit outputs a corresponding driving current to a corresponding coil in the magnetic field simulation module based on the current signal, so that the magnetic field simulation module constructs a target magnetic field corresponding to the current signal.
在目标磁场构建完成之后,目标设备中的地磁传感器对目标磁场进行检测得到检测信号,并将检测信号发送至处理单元;同时,磁场标准单元对目标磁场进行检测得到磁场信号,并将磁场信号发送至处理单元;可以理解的是,磁场标准单元为校准过的磁场检测器件,具体可以为三轴高斯计,即磁场标准单元能够准确检测出目标磁场的相关数据。After the target magnetic field is constructed, the geomagnetic sensor in the target device detects the target magnetic field to obtain a detection signal, and sends the detection signal to the processing unit; at the same time, the magnetic field standard unit detects the target magnetic field to obtain a magnetic field signal, and sends the magnetic field signal to the processing unit; it can be understood that the magnetic field standard unit is a calibrated magnetic field detection device, specifically a three-axis Gaussmeter, that is, the magnetic field standard unit can accurately detect the relevant data of the target magnetic field.
处理单元在接收到磁场信号与检测信号之后,由于磁场信号能够准确指示目标磁场,即磁场信号可以被认为是标准信号,因此,通过比较磁场信号与检测信号能够确定检测信号的检测情况,如当检测信号与磁场信号一致时,认为目标设备的地磁传感器检测准确,而当检测信号与磁场信号相差较大时,则认为目标设备的地磁传感器检测偏差较大。After receiving the magnetic field signal and the detection signal, the processing unit can determine the detection condition of the detection signal by comparing the magnetic field signal with the detection signal because the magnetic field signal can accurately indicate the target magnetic field, that is, the magnetic field signal can be considered as a standard signal. For example, when the detection signal is consistent with the magnetic field signal, it is considered that the geomagnetic sensor of the target device has detected accurately, and when the detection signal is significantly different from the magnetic field signal, it is considered that the detection deviation of the geomagnetic sensor of the target device is relatively large.
本实施例通过设置相互垂直的第一线圈单元、第二线圈单元以及第三线圈单元使得能够模拟三维磁场,同时,在第一线圈单元中,设置第一线圈组、第二线圈组以及第三线圈,使得能够在第一线圈单元的磁场方向上保证磁场均匀度更佳,从而提高基于模拟的三维磁场的地磁传感器的测试精度。This embodiment can simulate a three-dimensional magnetic field by setting a first coil unit, a second coil unit and a third coil unit that are perpendicular to each other. At the same time, in the first coil unit, a first coil group, a second coil group and a third coil are set, so that the magnetic field uniformity can be better ensured in the magnetic field direction of the first coil unit, thereby improving the test accuracy of the geomagnetic sensor based on the simulated three-dimensional magnetic field.
进一步地,所述步骤S10包括:Furthermore, the step S10 includes:
步骤S11,获取预设检测磁场,其中,所述预设检测磁场包括多个磁场强度不同的X轴方向磁场,多个磁场强度不同的Y轴方向磁场,多个磁场强度不同的Z轴方向磁场,以及多个磁场强度不同的三维磁场;Step S11, obtaining a preset detection magnetic field, wherein the preset detection magnetic field includes a plurality of X-axis direction magnetic fields with different magnetic field strengths, a plurality of Y-axis direction magnetic fields with different magnetic field strengths, a plurality of Z-axis direction magnetic fields with different magnetic field strengths, and a plurality of three-dimensional magnetic fields with different magnetic field strengths;
步骤S12,每间隔预设时间,基于各所述预设检测磁场的测试顺序,在所述预设检测磁场中确定所述目标磁场;Step S12, determining the target magnetic field in the preset detection magnetic field based on the test sequence of each preset detection magnetic field at every preset time interval;
步骤S13,发送与所述目标磁场对应的驱动电流至磁场模拟模块。Step S13, sending a driving current corresponding to the target magnetic field to a magnetic field simulation module.
在对地磁传感器进行测试时,往往需要针对不同的磁场类型均进行测试;预设检测磁场则为需要进行测试的磁场;具体地,本实施例中设置的预设检测磁场包括单一方向磁场以及三维磁场;在其他的实施例中还可以设置双方向磁场等。When testing the geomagnetic sensor, it is often necessary to test different magnetic field types; the preset detection magnetic field is the magnetic field that needs to be tested; specifically, the preset detection magnetic field set in this embodiment includes a single-direction magnetic field and a three-dimensional magnetic field; in other embodiments, a bidirectional magnetic field can also be set.
在构建X轴方向磁场时,仅输出Ix电流,即只对第二线圈单元中的线圈输出驱动电流,而不对第一线圈单元以及第三线圈单元中的线圈输出驱动电流;When constructing the magnetic field in the X-axis direction, only the Ix current is output, that is, the driving current is output only to the coil in the second coil unit, and the driving current is not output to the coils in the first coil unit and the third coil unit;
在构建Y轴方向磁场时,仅输出Iy电流,即只对第一线圈单元中的线圈输出驱动电流,而不对第二线圈单元以及第三线圈单元中的线圈输出驱动电流;When constructing the magnetic field in the Y-axis direction, only the Iy current is output, that is, the driving current is output only to the coil in the first coil unit, and the driving current is not output to the coils in the second coil unit and the third coil unit;
在构建Z轴方向磁场时,仅输出Iz电流,即只对第三线圈单元中的线圈输出驱动电流,而不对第一线圈单元以及第二线圈单元中的线圈输出驱动电流;When constructing the magnetic field in the Z-axis direction, only the Iz current is output, that is, the driving current is output only to the coil in the third coil unit, and the driving current is not output to the coils in the first coil unit and the second coil unit;
在构建三维磁场时,则同时输出Ix、Iy、Iz电流,即同时对第一线圈单元、第二线圈单元以及第三线圈单元中的线圈输出驱动电流。When constructing a three-dimensional magnetic field, the Ix, Iy, and Iz currents are output simultaneously, that is, the driving currents are output to the coils in the first coil unit, the second coil unit, and the third coil unit simultaneously.
在不同类型的磁场中,还可以具体设置多个不同大小的磁场,如在X轴方向磁场中,将磁感应强度最小的磁场与最大的磁场之间平均划分为十个磁场,磁感应强度均作为一个预设检测磁场;在应用中,可以确定磁感应强度最大的磁场对应的驱动电流,从0开始,每次增加1/10的最大驱动电流,直到达到最大驱动电流,得到除0之外的对应的10个驱动电流,该十个驱动电流即对应了X轴方向的十个磁感应强度不同的磁场。Y轴与Z轴同理,不再赘述;三维磁场同样可以基于上述方式执行,区别在于基于上述方式同时输出驱动电流至三个线圈单元。In different types of magnetic fields, multiple magnetic fields of different sizes can also be specifically set. For example, in the magnetic field in the X-axis direction, the magnetic field between the smallest magnetic induction intensity and the largest magnetic field is evenly divided into ten magnetic fields, and the magnetic induction intensity is used as a preset detection magnetic field; in the application, the driving current corresponding to the magnetic field with the largest magnetic induction intensity can be determined, starting from 0, and increasing the maximum driving current by 1/10 each time until the maximum driving current is reached, and 10 corresponding driving currents other than 0 are obtained. These ten driving currents correspond to ten magnetic fields with different magnetic induction intensities in the X-axis direction. The Y-axis and the Z-axis are the same, and will not be repeated; the three-dimensional magnetic field can also be executed based on the above method, the difference is that the driving current is output to the three coil units at the same time based on the above method.
进一步地,在所述步骤S11之前包括:Furthermore, before step S11, the following steps are included:
步骤S14,依次输出多个驱动电流至所述磁场模拟模块,并获取三轴高斯计输出的磁场信号;Step S14, outputting a plurality of driving currents to the magnetic field simulation module in sequence, and acquiring a magnetic field signal output by a three-axis Gaussmeter;
步骤S15,确定各所述磁场信号对应的预设检测磁场;Step S15, determining a preset detection magnetic field corresponding to each of the magnetic field signals;
步骤S16,确定各所述驱动电流与各所述预设检测磁场之间的对应关系。Step S16, determining the corresponding relationship between each of the driving currents and each of the preset detection magnetic fields.
在实际应用中,由于过程中的震动导致的器件位移、器件老化、其它干扰等,可能造成驱动电流与预设检测磁场之间的对应关系发生变化;因此,在进行测试之前,需要对驱动电流与预设检测磁场之间的对应关系进行确定,从而在后续输出准确的驱动电流,得到准确的目标磁场。In actual applications, the correspondence between the driving current and the preset detection magnetic field may change due to device displacement caused by vibration during the process, device aging, other interference, etc.; therefore, before testing, it is necessary to determine the correspondence between the driving current and the preset detection magnetic field, so as to output accurate driving current and obtain accurate target magnetic field in the subsequent test.
具体地,在预设检测磁场确定的基础上,输出不同的驱动电流至磁场模拟模块,同时三轴高斯计对磁场模拟模块构建的磁场进行检测得到磁场信号,当磁场信号与对应的预设检测磁场匹配时,确定该预设检测磁场与驱动电流之间的对应关系,当磁场信号与对应的预设检测磁场不匹配时,则对驱动电流进行调整,直到检测到的磁场信号与对应的预设检测磁场匹配,此时,得到驱动电流与预设检测磁场之间的对应关系;遍历所有预设检测磁场,得到完整的对应关系。Specifically, based on the preset detection magnetic field, different driving currents are output to the magnetic field simulation module. At the same time, the three-axis Gaussmeter detects the magnetic field constructed by the magnetic field simulation module to obtain a magnetic field signal. When the magnetic field signal matches the corresponding preset detection magnetic field, the correspondence between the preset detection magnetic field and the driving current is determined. When the magnetic field signal does not match the corresponding preset detection magnetic field, the driving current is adjusted until the detected magnetic field signal matches the corresponding preset detection magnetic field. At this time, the correspondence between the driving current and the preset detection magnetic field is obtained; all preset detection magnetic fields are traversed to obtain a complete correspondence.
具体地,磁感应强度主要由位置和控制电流有关,在位置固定的情况下,两个位置之间磁感应强度的差值主要取决于驱动电流,即X、Y、Z轴上两个位置之间的差值Bx、By、Bz可以表示为:Specifically, the magnetic induction intensity is mainly related to the position and the control current. When the position is fixed, the difference in magnetic induction intensity between two positions mainly depends on the driving current, that is, the difference Bx, By, Bz between two positions on the X, Y, and Z axes can be expressed as:
Bx=a11Ix+a12Iy+a13Iz+B0xBx=a11Ix+a12Iy+a13Iz+B0x
By=a21Ix+a22Iy+a23Iz+B0yBy=a21Ix+a22Iy+a23Iz+B0y
Bz=a31Ix+a32Iy+a33Iz+B0zBz=a31Ix+a32Iy+a33Iz+B0z
X、Y、Z轴上的磁场强度误差ΔBx,ΔBy,ΔBz可以表示为:The magnetic field intensity errors ΔBx, ΔBy, ΔBz on the X, Y, and Z axes can be expressed as:
ΔBx=k11Ix+k12Iy+k13Iz+ΔB0xΔBx=k11Ix+k12Iy+k13Iz+ΔB0x
ΔBy=k21Ix+k22Iy+k23Iz+ΔB0yΔBy=k21Ix+k22Iy+k23Iz+ΔB0y
ΔBz=k31Ix+k32Iy+k33Iz+ΔB0zΔBz=k31Ix+k32Iy+k33Iz+ΔB0z
其中,a与k为系数;Among them, a and k are coefficients;
上式中的Ix、Iy、Iz可以检测得到,即可以看作是已知值;基于最小二乘法对上述Bx、By、Bz、ΔBx,ΔBy,ΔBz中的系数进行求取,具体为每次仅输出驱动电流Ix、Iy、Iz中的一个,每次可以得到一组系数,经过三次不同驱动电流的输出,可以得到全部系数,根据系数求解出逆矩阵,即可负反馈精确控制Ix,Iy,Iz驱动电流,进而实现对驱动电流与预设检测磁场之间的对应关系的确定。Ix, Iy, and Iz in the above formula can be detected, that is, they can be regarded as known values; based on the least squares method, the coefficients in the above Bx, By, Bz, ΔBx, ΔBy, and ΔBz are obtained. Specifically, only one of the drive currents Ix, Iy, and Iz is output each time, and a set of coefficients can be obtained each time. After three outputs of different drive currents, all coefficients can be obtained. The inverse matrix is solved according to the coefficients, and the negative feedback can be used to accurately control the drive currents Ix, Iy, and Iz, thereby realizing the determination of the corresponding relationship between the drive current and the preset detection magnetic field.
进一步地,所述步骤S14包括:Furthermore, the step S14 includes:
步骤S141,在所述目标设备到达测试位置之后,判断所述地磁传感器测试装置的停止测试时长是否大于预设时长;Step S141, after the target device arrives at the test position, determining whether the stop test time of the geomagnetic sensor test device is greater than a preset time;
步骤S142,若所述地磁传感器测试装置的停止测试时长大于预设时长,则依次输出多个驱动电流至所述磁场模拟模块。Step S142: if the stop test time of the geomagnetic sensor testing device is longer than a preset time, a plurality of driving currents are output to the magnetic field simulation module in sequence.
可以理解的是,一般情况下,短时间内驱动电流与预设检测磁场之间的对应关系是相对固定的,因此,为了提高测试效率,在连续测试过程中无需重复确定驱动电流与预设检测磁场的对应关系;而在停止测试达到一定时间时,如预设时长时,则需要重新确定驱动电流与预设检测磁场的对应关系,以保证对应关系的准确性;预设时长的具体数值可以基于实际需要进行设置,如2小时。It can be understood that, under normal circumstances, the correspondence between the driving current and the preset detection magnetic field is relatively fixed in a short period of time. Therefore, in order to improve the test efficiency, there is no need to repeatedly determine the correspondence between the driving current and the preset detection magnetic field during continuous testing; when the test is stopped for a certain time, such as the preset duration, it is necessary to re-determine the correspondence between the driving current and the preset detection magnetic field to ensure the accuracy of the correspondence; the specific value of the preset duration can be set based on actual needs, such as 2 hours.
在其他实施例中,还可以设置其他的对应关系的确定条件,如距离上次对应关系确定的时刻达到预设更新时长时,则再次确定驱动电流与预设检测磁场的对应关系。In other embodiments, other conditions for determining the corresponding relationship may be set, such as determining the corresponding relationship between the driving current and the preset detection magnetic field again when the time from the last time the corresponding relationship was determined reaches a preset update time.
进一步地,所述步骤S30包括:Furthermore, the step S30 includes:
步骤S31,获取三轴高斯计输出的磁场信号;Step S31, obtaining a magnetic field signal output by a three-axis Gaussmeter;
步骤S32,基于所述磁场信号对所述检测信号进行线性拟合校准,得到校准值;Step S32, performing linear fitting calibration on the detection signal based on the magnetic field signal to obtain a calibration value;
步骤S33,将所述校准值写入到所述目标设备中。Step S33: writing the calibration value into the target device.
基于前述说明可知,三轴高斯计输出的磁场信号为标准信号,因此,基于磁场信号对检测信号进行线性拟合校准可以得到检测信号对应的校准值;目标设备基于校准值能够在后续应用中,通过校准值对地磁传感器的检测信号进行校准,从而得到准确的地磁信号。Based on the above description, it can be known that the magnetic field signal output by the three-axis Gaussmeter is a standard signal. Therefore, a linear fitting calibration of the detection signal based on the magnetic field signal can obtain the calibration value corresponding to the detection signal; based on the calibration value, the target device can calibrate the detection signal of the geomagnetic sensor through the calibration value in subsequent applications to obtain an accurate geomagnetic signal.
线性拟合校准的具体方法可以基于实际需要进行设置,在此不进行限定。The specific method of linear fitting calibration can be set based on actual needs and is not limited here.
进一步地,在所述步骤S20之前包括:Furthermore, before step S20, the method includes:
步骤S40,获取运动检测模块发送的运动信号;Step S40, acquiring a motion signal sent by a motion detection module;
步骤S50,根据所述运动信号判断所述地磁传感器测试装置是否处于静止状态;Step S50, judging whether the geomagnetic sensor testing device is in a stationary state according to the motion signal;
步骤S60,若所述地磁传感器测试装置处于静止状态,则获取目标设备基于所述目标磁场的检测信号。Step S60: If the geomagnetic sensor testing device is in a stationary state, a detection signal of a target device based on the target magnetic field is obtained.
可以理解的是,在实际应用中,存在部分场景会造成地磁传感器测试装置震动,如目标设备未放水平、目标设备的中心未达到地磁传感器测试装置中心坐标原点、用户触碰测试装置等,地磁传感器测试装置的震动会造成装置内器件、目标设备的位置偏移,从而使得测试结果不准确;因此,本实施例中,设置运动检测模块来对地磁传感器测试装置的运动状态进行检测,从而保证在地磁传感器测试装置为静止状态时进行测试,保证测试结果。It is understandable that in actual applications, there are some scenarios that will cause the geomagnetic sensor testing device to vibrate, such as when the target device is not placed horizontally, the center of the target device does not reach the center coordinate origin of the geomagnetic sensor testing device, the user touches the testing device, etc. The vibration of the geomagnetic sensor testing device will cause the position of the components and the target device in the device to shift, thereby making the test results inaccurate; therefore, in this embodiment, a motion detection module is set to detect the motion state of the geomagnetic sensor testing device, so as to ensure that the test is performed when the geomagnetic sensor testing device is in a stationary state, thereby ensuring the test results.
下面对本发明地磁传感器测试方法的整体流程进行说明:The overall process of the geomagnetic sensor testing method of the present invention is described below:
1、抽出手拉杆,将9-目标设备放置在抽屉式固定卡槽上,推入手拉杆让目标设备到待测试位,如图4所示,使手表内部地磁传感器的中心位置与目标磁场的磁场中心点O重合;1. Pull out the hand lever, place the 9-target device on the drawer-type fixed card slot, push the hand lever to move the target device to the test position, as shown in Figure 4, so that the center position of the geomagnetic sensor inside the watch coincides with the magnetic field center point O of the target magnetic field;
2、处理单元判断测试装置上次校验时间距今是否超过2小时,若校验时间距今超过2小时,测试装置进入步骤3-6的自检校验模式,若校验时间距今未超过2小时,则进入步骤7;2. The processing unit determines whether the last calibration time of the test device is more than 2 hours ago. If the calibration time is more than 2 hours ago, the test device enters the self-checking mode of steps 3-6. If the calibration time is less than 2 hours ago, it enters step 7.
3、处理单元控制驱动单元的Ix从0mA开始,每次增加0.1mA,间隔100ms,Y轴和Z轴对应线圈无电流,三轴高斯计同步测量磁场强度,三轴加速度计和三轴陀螺仪同步测量测试装置的重力加速度和角速度,判断测试装置是否处于静止状态,避免外界震动干扰。处理单元记录第五子线圈与第六子线圈的驱动电流大小与三轴高斯计对应的磁场信号,直至线圈直流电流Ix达到设定目标最大值。3. The processing unit controls the Ix of the driving unit to start from 0mA, and increase by 0.1mA each time, with an interval of 100ms. The Y-axis and Z-axis corresponding coils have no current, and the three-axis Gauss meter synchronously measures the magnetic field strength. The three-axis accelerometer and the three-axis gyroscope synchronously measure the gravity acceleration and angular velocity of the test device to determine whether the test device is in a static state to avoid external vibration interference. The processing unit records the driving current size of the fifth sub-coil and the sixth sub-coil and the magnetic field signal corresponding to the three-axis Gauss meter until the coil DC current Ix reaches the set target maximum value.
4、处理单元控制驱动单元的Iz从0mA开始,每次增加0.1mA,间隔100ms,Y轴和X轴对应线圈无电流,三轴高斯计同步测量磁场强度,三轴加速度计和三轴陀螺仪同步测量测试装置的重力加速度和角速度,判断测试装置是否处于静止状态,避免外界震动干扰。处理单元记录第七子线圈与第八子线圈的驱动电流大小与三轴高斯计对应的磁场信号,直至线圈直流电流Ix达到设定目标最大值。4. The processing unit controls the Iz of the driving unit to start from 0mA and increase by 0.1mA each time with an interval of 100ms. The Y-axis and X-axis corresponding coils have no current. The three-axis Gauss meter synchronously measures the magnetic field strength. The three-axis accelerometer and the three-axis gyroscope synchronously measure the gravity acceleration and angular velocity of the test device to determine whether the test device is in a static state to avoid external vibration interference. The processing unit records the driving current size of the seventh sub-coil and the eighth sub-coil and the magnetic field signal corresponding to the three-axis Gauss meter until the coil DC current Ix reaches the set target maximum value.
5、处理单元控制驱动单元的Iy从0mA开始,每次增加0.1mA,间隔100ms,Y3线圈按k倍Iy线圈电流大小同步输出,X轴和Z轴对应线圈无电流,三轴高斯计同步测量磁场强度,三轴加速度计和三轴陀螺仪同步测量测试装置的重力加速度和角速度,判断测试装置是否处于静止状态,避免外界震动干扰。处理单元记录第一子线圈~第四子线圈以及第三线圈的驱动电流大小与三轴高斯计对应的磁场信号,直至线圈直流电流Iy达到设定目标最大值。5. The processing unit controls the Iy of the driving unit to start from 0mA, and increase by 0.1mA each time, with an interval of 100ms. The Y3 coil outputs synchronously at k times the Iy coil current. The X-axis and Z-axis corresponding coils have no current. The three-axis Gauss meter synchronously measures the magnetic field strength. The three-axis accelerometer and the three-axis gyroscope synchronously measure the gravity acceleration and angular velocity of the test device to determine whether the test device is in a static state to avoid external vibration interference. The processing unit records the driving current size of the first sub-coil to the fourth sub-coil and the third coil and the magnetic field signal corresponding to the three-axis Gauss meter until the coil DC current Iy reaches the set target maximum value.
6、处理单元控制驱动单元的Ix、Iy、Iz,使磁场强度在目标设备的地磁传感器的测量范围内,驱动单元控制的驱动电流Ix,Iy,Iz大小按0,1/10~10/10输出,使三维矢量磁场大小按手表1/10段,间隔100ms输出,三轴高斯计同步测量磁场强度,三轴加速度计和三轴陀螺仪同步测量测试装置的重力加速度和角速度,判断测试装置是否处于静止状态,避免外界震动干扰。处理单元记录10段三维矢量磁场强度大小和方向值。6. The processing unit controls the Ix, Iy, and Iz of the driving unit so that the magnetic field strength is within the measurement range of the geomagnetic sensor of the target device. The driving current Ix, Iy, and Iz controlled by the driving unit are output at 0, 1/10 to 10/10, so that the three-dimensional vector magnetic field is output at 1/10 of the watch at intervals of 100ms. The three-axis Gauss meter synchronously measures the magnetic field strength, and the three-axis accelerometer and three-axis gyroscope synchronously measure the gravity acceleration and angular velocity of the test device to determine whether the test device is in a stationary state to avoid external vibration interference. The processing unit records 10 segments of the three-dimensional vector magnetic field strength and direction values.
7、处理单元测试目标设备的地磁传感器X轴,每次增加1/10的驱动电流Ix输出,目标设备的内置地磁传感器同步检测测试装置的X轴方向磁场,并将检测信号发送给处理单元,处理单元基于检测信号与三轴高斯计的磁场信号进行线性段拟化校准;7. The processing unit tests the X-axis of the geomagnetic sensor of the target device, and increases the driving current Ix output by 1/10 each time. The built-in geomagnetic sensor of the target device synchronously detects the magnetic field in the X-axis direction of the test device, and sends the detection signal to the processing unit. The processing unit performs linear segment simulation calibration based on the detection signal and the magnetic field signal of the three-axis Gaussmeter;
8、处理单元测试目标设备的地磁传感器Y轴,每次增加1/10的驱动电流Iy输出,目标设备的内置地磁传感器同步检测测试装置的Y轴方向磁场,并将检测信号发送给处理单元,处理单元基于检测信号与三轴高斯计的磁场信号进行线性段拟化校准;8. The processing unit tests the Y-axis of the geomagnetic sensor of the target device, and increases the output of the driving current Iy by 1/10 each time. The built-in geomagnetic sensor of the target device synchronously detects the magnetic field in the Y-axis direction of the test device, and sends the detection signal to the processing unit. The processing unit performs linear segment simulation calibration based on the detection signal and the magnetic field signal of the three-axis Gaussmeter;
9、处理单元测试目标设备的地磁传感器Z轴,每次增加1/10的驱动电流Iz输出,目标设备的内置地磁传感器同步检测测试装置的Z轴方向磁场,并将检测信号发送给处理单元,处理单元基于检测信号与三轴高斯计的磁场信号进行线性段拟化校准;9. The processing unit tests the Z-axis of the geomagnetic sensor of the target device, and increases the output of the driving current Iz by 1/10 each time. The built-in geomagnetic sensor of the target device synchronously detects the magnetic field in the Z-axis direction of the test device, and sends the detection signal to the processing unit. The processing unit performs linear segment simulation calibration based on the detection signal and the magnetic field signal of the three-axis Gaussmeter;
10、处理单元测试目标设备的地磁传感器的三维磁场的情况,每次增加1/10的驱动电流Ix、Iy、Iz输出,构建三维矢量稳定均匀磁场。目标设备的内置地磁传感器同步检测测试装置的三维矢量磁场大小和方向,并将检测信号发送给处理单元,处理单元基于检测信号与三轴高斯计的磁场信号进行线性段拟化校准;三轴加速度计和三轴陀螺仪同步测量测试装置的重力加速度和角速度,判断测试装置是否处于静止状态,避免外界震动干扰。10. The processing unit tests the three-dimensional magnetic field of the geomagnetic sensor of the target device, and increases the output of the driving current Ix, Iy, and Iz by 1/10 each time to build a three-dimensional vector stable uniform magnetic field. The built-in geomagnetic sensor of the target device synchronously detects the size and direction of the three-dimensional vector magnetic field of the test device, and sends the detection signal to the processing unit. The processing unit performs linear segment simulation calibration based on the detection signal and the magnetic field signal of the three-axis Gauss meter; the three-axis accelerometer and the three-axis gyroscope synchronously measure the gravity acceleration and angular velocity of the test device to determine whether the test device is in a stationary state to avoid external vibration interference.
11、目标设备的地磁传感器检测完成后,拉出手拉杆,取出已测的目标设备。11. After the geomagnetic sensor detection of the target device is completed, pull out the hand lever and take out the measured target device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
参照图6,在硬件结构上所述电子设备可以包括通信模块10、存储器20以及处理器30等部件。在所述电子设备中,所述处理器30分别与所述存储器20以及所述通信模块10连接,所述存储器20上存储有计算机程序,所述计算机程序同时被处理器30执行,所述计算机程序执行时实现上述方法实施例的步骤。6 , in terms of hardware structure, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30. In the electronic device, the processor 30 is connected to the memory 20 and the communication module 10 respectively, and a computer program is stored in the memory 20, and the computer program is executed by the processor 30 at the same time. When the computer program is executed, the steps of the above method embodiment are implemented.
通信模块10,可通过网络与外部通讯设备连接。通信模块10可以接收外部通讯设备发出的请求,还可以发送请求、指令及信息至所述外部通讯设备,所述外部通讯设备可以是其它电子设备、服务器或者物联网设备,例如电视等等。The communication module 10 can be connected to an external communication device through a network. The communication module 10 can receive requests from an external communication device, and can also send requests, instructions and information to the external communication device, which can be other electronic devices, servers or Internet of Things devices, such as televisions, etc.
存储器20,可用于存储软件程序以及各种数据。存储器20可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如确定目标磁场)等;存储数据区可包括数据库,存储数据区可存储根据系统的使用所创建的数据或信息等。此外,存储器20可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 20 can be used to store software programs and various data. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as determining a target magnetic field), etc.; the data storage area can include a database, and the data storage area can store data or information created according to the use of the system, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器30,是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器20内的软件程序和/或模块,以及调用存储在存储器20内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器30可包括一个或多个处理单元;可选地,处理器30可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器30中。The processor 30 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 20, and calling data stored in the memory 20, so as to monitor the electronic device as a whole. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 30.
尽管图6未示出,但上述电子设备还可以包括电路控制模块,所述电路控制模块用于与电源连接,保证其他部件的正常工作。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Although not shown in FIG6 , the electronic device may further include a circuit control module, which is used to connect to a power source to ensure the normal operation of other components. Those skilled in the art will appreciate that the electronic device structure shown in FIG6 does not limit the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
本发明还提出一种计算机可读存储介质,其上存储有计算机程序。所述计算机可读存储介质可以是图6的电子设备中的存储器20,也可以是如ROM(Read-Only Memory,只读存储器)/RAM(Random Access Memory,随机存取存储器)、磁碟、光盘中的至少一种,所述计算机可读存储介质包括若干指令用以使得一台具有处理器的终端设备(可以是电视,汽车,手机,计算机,服务器,终端,或者网络设备等)执行本发明各个实施例所述的方法。The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be the memory 20 in the electronic device of FIG6 , or may be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes a number of instructions for enabling a terminal device having a processor (which may be a television, a car, a mobile phone, a computer, a server, a terminal, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
在本发明中,术语“第一”“第二”“第三”“第四”“第五”仅用于描述的目的,而不能理解为指示或暗示相对重要性,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
尽管上面已经示出和描述了本发明的实施例,本发明保护的范围并不局限于此,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改和替换,这些变化、修改和替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410301957.3A CN118169773B (en) | 2024-03-15 | 2024-03-15 | Geomagnetic sensor testing device, method, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410301957.3A CN118169773B (en) | 2024-03-15 | 2024-03-15 | Geomagnetic sensor testing device, method, electronic device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118169773A true CN118169773A (en) | 2024-06-11 |
CN118169773B CN118169773B (en) | 2025-01-21 |
Family
ID=91348152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410301957.3A Active CN118169773B (en) | 2024-03-15 | 2024-03-15 | Geomagnetic sensor testing device, method, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118169773B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090015242A1 (en) * | 2006-12-04 | 2009-01-15 | Micronas Gmbh | Method to Test the Measurement Accuracy of At Least One Magnetic Field Sensor |
CN103901361A (en) * | 2014-04-09 | 2014-07-02 | 南京理工大学 | Magnetic field simulation system and magnetic field simulation method |
CN104834021A (en) * | 2015-05-11 | 2015-08-12 | 上海集成电路研发中心有限公司 | Method for calculating sensitivity of geomagnetic sensor |
US20160154135A1 (en) * | 2013-07-30 | 2016-06-02 | China Metallurgical Geology Bureau Geological Exploration Institute Of Shandong Zhengyuan | A High Precision Field Measurement Method for Geomagnetic Vectors and a Device Thereof |
CN108267157A (en) * | 2018-03-21 | 2018-07-10 | 歌尔股份有限公司 | The calibration method and calibrating installation of geomagnetic sensor |
CN112363248A (en) * | 2020-11-24 | 2021-02-12 | 吉林大学 | Three-dimensional coil-based field ground-air electromagnetic environment simulation device and method |
CN116165591A (en) * | 2022-12-16 | 2023-05-26 | 上海矽睿科技股份有限公司 | Triaxial magnetic sensor's inspection and calibration device and inspection and calibration system |
-
2024
- 2024-03-15 CN CN202410301957.3A patent/CN118169773B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090015242A1 (en) * | 2006-12-04 | 2009-01-15 | Micronas Gmbh | Method to Test the Measurement Accuracy of At Least One Magnetic Field Sensor |
US20160154135A1 (en) * | 2013-07-30 | 2016-06-02 | China Metallurgical Geology Bureau Geological Exploration Institute Of Shandong Zhengyuan | A High Precision Field Measurement Method for Geomagnetic Vectors and a Device Thereof |
CN103901361A (en) * | 2014-04-09 | 2014-07-02 | 南京理工大学 | Magnetic field simulation system and magnetic field simulation method |
CN104834021A (en) * | 2015-05-11 | 2015-08-12 | 上海集成电路研发中心有限公司 | Method for calculating sensitivity of geomagnetic sensor |
CN108267157A (en) * | 2018-03-21 | 2018-07-10 | 歌尔股份有限公司 | The calibration method and calibrating installation of geomagnetic sensor |
CN112363248A (en) * | 2020-11-24 | 2021-02-12 | 吉林大学 | Three-dimensional coil-based field ground-air electromagnetic environment simulation device and method |
CN116165591A (en) * | 2022-12-16 | 2023-05-26 | 上海矽睿科技股份有限公司 | Triaxial magnetic sensor's inspection and calibration device and inspection and calibration system |
Also Published As
Publication number | Publication date |
---|---|
CN118169773B (en) | 2025-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103941309B (en) | Geomagnetic sensor calibrator (-ter) unit and its method | |
US10948278B2 (en) | Calibrating a magnetic sensor | |
CN103808349B (en) | The error calibration method of vector sensor and device | |
CN108267157A (en) | The calibration method and calibrating installation of geomagnetic sensor | |
CN107340545B (en) | A system and method for measuring all elements of geomagnetism | |
CN110567491B (en) | Initial alignment method and device of inertial navigation system and electronic equipment | |
KR20120107439A (en) | Method and system for a self-calibrated multi-magnetometer platform | |
CN111458573A (en) | Method, device and system for measuring electric parameters of conducting wire and computer equipment | |
CN114674301B (en) | Electronic compass active compensation method and system under strong magnetic interference environment | |
CN111007445A (en) | Positioning method of gradient coil measuring center and gradient coil linearity measuring method | |
CN111650539A (en) | Method, system and device for detecting operating parameters of lead and computer equipment | |
CN112525144B (en) | Nonlinear attitude detection compensation method and terminal | |
JP5070428B2 (en) | Electronic compass and direction measurement method | |
CN114200360B (en) | Three-dimensional coil magnetic field uniformity test method and system | |
CN118169773A (en) | Geomagnetic sensor testing device, geomagnetic sensor testing method, electronic equipment and readable storage medium | |
CN105628010B (en) | The calibration method and system of terminal compass | |
JP6346466B2 (en) | Magnetic data correction device | |
Zhang et al. | A novel auto-calibration method of the vector magnetometer | |
KR20100018249A (en) | Axis distortion test apparatus of geomagnetism sensor | |
CN114814675B (en) | Method and system for calibrating magnetic moment of magnetic torquer, storage medium and electronic equipment | |
CN217484494U (en) | Device for testing and calibrating performance of magnetic torquer | |
CN108896945B (en) | A Sensitivity Index Calibration Method of High Sensitivity Atomic Magnetometer | |
CN207473105U (en) | A kind of earth magnetism total factor measuring system | |
CN113253180A (en) | Single-axis measurement precision testing method for field three-axis magnetic sensor | |
CN110568387A (en) | A Spacecraft Magnetic Moment Measurement Method Based on Magnetic Gradient Tensor |
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 |