Magnetic field simulation method and device for magnetic steel in signaling pointer and electronic equipment

By constructing a geometric model and three-dimensional coordinate system of magnetic steel in an intelligent water meter, simulating its magnetic field distribution, and determining the operating trajectory of the induction device, the problem of low magnetic field simulation efficiency in the existing technology is solved, and efficient acquisition of magnetic field information is achieved.

CN119167617APending Publication Date: 2024-12-20NINGBO WATER METER (GRP) CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411199905.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The magnetic field simulation method of magnetic steel in the transmitting pointer in the existing smart water meter requires calculations at each sampling moment, resulting in low efficiency.

Method used

By obtaining the size parameters of the magnet and the position data of the induction device, building a geometric model, establishing a three-dimensional coordinate system, simulating the magnetic field distribution of the magnet, and determining the trajectory of the induction device rotating around the magnet, it can be obtained in just one calculation. Magnetic field change curve.

Benefits of technology

The magnetic field simulation efficiency of magnetic steel is improved, the calculation time is reduced, and the efficiency of the simulation process is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119167617A_ABST
    Figure CN119167617A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a magnetic field simulation method and device for magnetic steel in a signaling pointer and electronic equipment. The magnetic field simulation method comprises the steps that size parameters of the magnetic steel in the signaling pointer and position data of a magnetic resistance internal induction device corresponding to the signaling pointer relative to the magnetic steel are obtained; according to the size parameters, constructing a geometric model of the magnetic steel, and according to the position data, determining a running track of the induction device running around the magnetic steel by one circle; based on magnetic field simulation software, importing the geometric model and material attributes of the magnetic steel, establishing a three-dimensional coordinate system according to a preset rule, and determining magnetic field data of the magnetic steel based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the circle center of the moving track of the magnetic steel as a coordinate origin, the horizontal direction penetrating through the origin as an X axis, a straight line penetrating through the origin and perpendicular to the X axis as a Y axis, and a straight line penetrating through the origin and perpendicular to the X axis and the Y axis as a Z axis; and determining a magnetic field change curve corresponding to the moving trajectory according to the magnetic field distribution. According to the method, the simulation efficiency of the signaling pointer magnetic steel is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent water meters, and in particular to a method, a device and an electronic device for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer. Background Art

[0002] The impeller of the smart water meter rotates under the impact of the water flow, and the signal pointer is driven to rotate through mechanical transmission. A magnet is installed on the signal pointer. The magnet and the signal pointer rotate around the same axis, generating a periodically changing magnetic field. The magnetoresistive devices are installed in pairs above the signal pointer. The magnetoresistive device collects the changing magnetic field signal and outputs the corresponding electrical signal to achieve the measurement of the water meter. The installation position of the magnetoresistive device will affect the output electrical signal. To determine the appropriate installation position, it is necessary to first understand the change in the magnetic field when the magnet rotates one circle. Because the magnetoresistive device is only sensitive to the magnetic field at the location of the internal sensing device, it is only necessary to study the magnetic field at the sensing point.

[0003] Since there are no objects that significantly affect the magnetic field in the smart water meter, the magnetic field generated by the signal-transmitting magnet is symmetric about the rotation axis in time, so the magnetic field can be simulated by steady-state calculation. A common simulation method is: considering 0 to 359 degrees, the magnetic field distribution is collected once every 1 degree of rotation of the magnet, for a total of 360 sampling moments. Every time the magnet rotates one degree, the grid is divided once, and a steady-state calculation is performed, which is repeated 360 times. Another simulation method can avoid repeated grid division: given a global coordinate system, one coordinate axis coincides with the rotation axis; given a local coordinate system, one coordinate axis coincides with the magnet axis. First divide the grid at time 0 (0 degrees) and solve to obtain the initial magnetic field. The magnet does not move, the local coordinate system rotates, and there is no need to re-divide the grid. According to symmetry, the magnetic field described by the local coordinate system remains unchanged. Using the mapping relationship between the rotated local coordinate system and the global coordinate system, the magnetic field in the local coordinate system is mapped to the global coordinate system, which is the desired rotated magnetic field.

[0004] Therefore, the advantage of the above-mentioned traditional magnetic field simulation method of the magnetic steel in the signal-transmitting pointer is that the coupling between the magnetic field and other physical fields can be considered. However, the disadvantage is that it needs to be calculated once at each sampling moment, which is relatively time-consuming and thus inefficient. Summary of the invention

[0005] The purpose of the present invention is to provide a method for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer to alleviate the technical problem in the prior art that it is necessary to calculate once at each sampling moment, which is relatively time-consuming and thus inefficient, and to improve the efficiency of simulating the magnetic field of the magnetic steel in the signal-transmitting pointer.

[0006] In a first aspect, an embodiment of the present invention provides a method for simulating the magnetic field of a magnet in a signal-transmitting pointer, comprising: obtaining the size parameters of the magnet in the signal-transmitting pointer and the position data of the inductive device in the magnetic resistance corresponding to the signal-transmitting pointer relative to the magnet; constructing a geometric model of the magnet according to the size parameters, and determining the running trajectory of the inductive device around the magnet according to the position data; importing the geometric model and the material properties of the magnet based on magnetic field simulation software, establishing a three-dimensional coordinate system according to preset rules, and determining the magnetic field distribution of the magnet based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the center of the running trajectory of the magnet as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running trajectory of the magnet is in the plane formed by the X-axis and the Y-axis; and determining the magnetic field change curve corresponding to the running trajectory according to the magnetic field distribution.

[0007] In a preferred embodiment of the present invention, the number of the above-mentioned magnetic resistors is 2; the above-mentioned induction device includes: a first induction device and a second induction device; the step of determining the running trajectory of the above-mentioned induction device around the above-mentioned magnetic steel for one circle according to the above-mentioned position data includes: determining the first coordinate of the above-mentioned first induction device and the second coordinate of the above-mentioned second induction device according to the above-mentioned three-dimensional coordinate system; determining the running trajectory of the above-mentioned induction device around the above-mentioned magnetic steel for one circle according to the above-mentioned first coordinate or the above-mentioned second coordinate.

[0008] In a preferred embodiment of the present invention, the step of determining the running trajectory of the above-mentioned induction device around the above-mentioned magnetic steel for one cycle according to the above-mentioned first coordinate or the above-mentioned second coordinate comprises: determining the direction vector of the above-mentioned first induction device and the projection vector of the above-mentioned direction vector projected onto the above-mentioned plane according to the above-mentioned first coordinate; determining the angle between the above-mentioned projection vector and the above-mentioned X-axis and the distance between the above-mentioned first induction device and the above-mentioned Z-axis according to the above-mentioned projection vector; determining the running trajectory of the above-mentioned first induction device around the above-mentioned magnetic steel for one cycle according to the above-mentioned angle and the above-mentioned distance.

[0009] In a preferred embodiment of the present invention, the step of determining the magnetic field distribution of the above-mentioned magnetic steel according to the above-mentioned three-dimensional coordinate system includes: based on preset parameters, according to the above-mentioned three-dimensional coordinate system, dividing the grid area of ​​the preset range with the above-mentioned magnetic steel as the center; according to the above-mentioned grid area, determining the magnetic field distribution of the above-mentioned magnetic steel.

[0010] In a preferred embodiment of the present invention, after the step of determining the magnetic field change curve corresponding to the above-mentioned running trajectory according to the above-mentioned magnetic field distribution, the above-mentioned method includes: determining the level change curve corresponding to the above-mentioned magnetic field change curve according to the above-mentioned magnetic field change curve and the preset working parameters of the above-mentioned magnetic resistance; and determining whether the position data of the above-mentioned magnetic resistance relative to the above-mentioned magnetic steel meets the preset position requirement according to the above-mentioned level change curve and the preset level change requirement.

[0011] In a preferred embodiment of the present invention, the above-mentioned working parameters include: a first magnetic field strength corresponding to the working point of the above-mentioned magnetic resistance and a second magnetic field strength corresponding to the release point of the above-mentioned magnetic resistance; according to the above-mentioned magnetic field change curve and the preset working parameters of the above-mentioned magnetic resistance, the step of determining the level change curve corresponding to the above-mentioned magnetic field change curve includes: according to the preset accuracy requirement parameters, screening multiple sampling points on the above-mentioned magnetic field change curve; according to the magnetic field strength corresponding to the above-mentioned sampling points, the above-mentioned first magnetic field strength and the above-mentioned second magnetic field strength, determining the level change curve corresponding to the above-mentioned magnetic field change curve.

[0012] In a preferred embodiment of the present invention, the step of determining the level change curve corresponding to the magnetic field change curve according to the magnetic field strength corresponding to the sampling point, the first magnetic field strength and the second magnetic field strength includes: respectively calculating the magnitude relationship between the magnetic field strength of each sampling point and the first magnetic field strength and the second magnetic field strength; marking the first target magnetic field strength of the first target sampling point corresponding to the first magnetic field strength among the magnetic field strengths of the sampling points as a low level signal; marking the second target magnetic field strength of the second target sampling point corresponding to the second magnetic field strength among the magnetic field strengths of the sampling points as a high level signal; marking the third target magnetic field strength of the points in the magnetic field change curve except the high level signal and the low level signal as a temporary parameter; converting the temporary parameter into a high and low level signal according to the method of keeping the magnetic field change level state unchanged. According to the low level signal, the high level signal and the temporary parameter, the level change curve corresponding to the magnetic field change curve is obtained.

[0013] In a preferred embodiment of the present invention, the two magnetic resistors include four level state combinations, the level curve is divided into four cycles, and the above-mentioned level change requirements include the proportion requirements of the four cycles; according to the above-mentioned level change curve and the preset level change requirements, the step of determining whether the position data of the above-mentioned magnetic resistor relative to the above-mentioned magnetic steel meets the preset position requirements includes: calculating the proportion value of the above-mentioned high-level signal in the above-mentioned level change curve and the above-mentioned four cycles; according to the above-mentioned proportion value and the proportion requirements of the above-mentioned four cycles, determining whether the position data of the above-mentioned magnetic resistor relative to the above-mentioned magnetic steel meets the preset position requirements.

[0014] The second invention, the embodiment of the present invention also provides a magnetic field simulation device for a magnetic steel in a signal-transmitting pointer, comprising: a data acquisition module, used to obtain the size parameters of the magnetic steel in the signal-transmitting pointer and the position data of the inductive device in the magnetic resistance corresponding to the above-mentioned signal-transmitting pointer relative to the above-mentioned magnetic steel; a running trajectory calculation module, used to construct a geometric model of the above-mentioned magnetic steel according to the above-mentioned size parameters, and determine the running trajectory of the above-mentioned inductive device around the above-mentioned magnetic steel according to the above-mentioned position data; a magnetic field simulation module, used to import the above-mentioned geometric model and the material properties of the above-mentioned magnetic steel based on the magnetic field simulation software, and establish a three-dimensional coordinate system according to preset rules, and determine the magnetic field distribution of the above-mentioned magnetic steel based on the above-mentioned three-dimensional coordinate system; wherein the above-mentioned three-dimensional coordinate system takes the center of the running trajectory of the above-mentioned magnetic steel as the coordinate origin, the horizontal direction passing through the above-mentioned origin as the X-axis, the straight line passing through the above-mentioned origin and perpendicular to the above-mentioned X-axis as the Y-axis, and the straight line passing through the above-mentioned origin and perpendicular to the above-mentioned X-axis and the above-mentioned Y-axis as the Z-axis; the running trajectory of the above-mentioned magnetic steel is in the plane formed by the above-mentioned X-axis and the above-mentioned Y-axis; a magnetic field change curve output module, used to determine the magnetic field change curve corresponding to the above-mentioned running trajectory according to the above-mentioned magnetic field distribution.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement a method for simulating a magnetic field of a magnet in the signal-transmitting pointer.

[0016] The embodiments of the present invention have the following beneficial technical effects:

[0017] The embodiment of the present invention provides a method, device and electronic device for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer, comprising: obtaining the size parameters of the magnetic steel in the signal-transmitting pointer and the position data of the inductive device in the magnetic resistance corresponding to the signal-transmitting pointer relative to the magnetic steel; constructing a geometric model of the magnetic steel according to the size parameters, and determining the running trajectory of the inductive device around the magnetic steel according to the position data; importing the geometric model and the material properties of the magnetic steel based on magnetic field simulation software, and establishing a three-dimensional coordinate system according to preset rules, and determining the magnetic field distribution of the magnetic steel based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the center of the running trajectory of the magnetic steel as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running trajectory of the magnetic steel is in the plane formed by the X-axis and the Y-axis; and determining the magnetic field change curve corresponding to the running trajectory according to the magnetic field distribution. This method first simulates the magnetic field distribution of the magnet, and on this basis determines the running trajectory of the magnetic resistance relative to the magnet for one rotation. Then, based on the running trajectory, the magnetic field information corresponding to the running trajectory can be determined, so that only one calculation is required to complete the task, thereby improving the simulation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A schematic diagram of a flow chart of a method for simulating a magnetic field of a magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention;

[0020] Figure 2 A schematic flow chart of another method for simulating the magnetic field of a magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention;

[0021] Figure 3 A schematic diagram of a magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention;

[0022] Figure 4 A schematic diagram of a magnetic steel and magnetic resistance corresponding to the magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention;

[0023] Figure 5 A schematic diagram of the structure of a magnetic field simulation device for a magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention;

[0024] Figure 6A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0025] Icons: 11-magnet; 12-signal pointer; 13-rotation axis; 14-magnetic resistance; 21-first running trajectory; 22-second running trajectory; 31-data acquisition module; 32-running trajectory calculation module; 33-magnetic field simulation module; 34-magnetic field change curve output module; 41-processor; 42-memory; 43-bus; 44-communication interface. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0027] The advantage of the traditional magnetic field simulation method of the magnetic steel in the signal pointer is that it can take into account the coupling of the magnetic field with other physical fields. Its disadvantage is that it needs to be calculated once at each sampling moment, which is relatively time-consuming and thus inefficient.

[0028] Based on this, an embodiment of the present invention provides a method, device and electronic device for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer. The method first simulates the magnetic field information of the magnetic steel, and on this basis determines the running trajectory of the magnetic resistance relative to the magnetic steel for one rotation, and then determines the magnetic field information corresponding to the running trajectory according to the running trajectory, so that only one calculation is needed to complete it, which improves the calculation efficiency. For ease of understanding, an embodiment of the present invention provides a method for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer.

[0029] Example 1

[0030] In this embodiment, Figure 1 A schematic flow chart of a method for simulating a magnetic field of a magnetic steel in a signal transmitting pointer provided in an embodiment of the present invention.

[0031] Depend on Figure 1 As can be seen, the method includes:

[0032] Step S101: obtaining the size parameters of the magnetic steel in the signal transmitting pointer and the position data of the magnetic resistance internal induction device corresponding to the signal transmitting pointer relative to the magnetic steel.

[0033] Step S102: constructing a geometric model of the magnetic steel according to the size parameters, and determining a running track of the induction device around the magnetic steel according to the position data.

[0034] Step S103: Based on the magnetic field simulation software, the geometric model and the material properties of the magnetic steel are imported, and a three-dimensional coordinate system is established according to preset rules, and the magnetic field distribution of the magnetic steel is determined based on the three-dimensional coordinate system; wherein, the three-dimensional coordinate system takes the center of the running trajectory of the magnetic steel as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running trajectory of the magnetic steel is in the plane formed by the X-axis and the Y-axis.

[0035] Furthermore, the rotation axis of the running track of the above-mentioned magnetic steel is the above-mentioned Z axis.

[0036] Step S104: determining a magnetic field variation curve corresponding to the running trajectory according to the magnetic field distribution.

[0037] The embodiment of the present invention provides a method for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer, comprising: obtaining the size parameters of the magnetic steel in the signal-transmitting pointer and the position data of the inductive device in the magnetic resistance corresponding to the signal-transmitting pointer relative to the magnetic steel; constructing a geometric model of the magnetic steel according to the size parameters, and determining the running trajectory of the inductive device around the magnetic steel according to the position data; importing the geometric model and the material properties of the magnetic steel based on magnetic field simulation software, and establishing a three-dimensional coordinate system according to preset rules, and determining the magnetic field distribution of the magnetic steel based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the center of the running trajectory of the magnetic steel as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running trajectory of the magnetic steel is in the plane formed by the X-axis and the Y-axis; and determining the magnetic field change curve corresponding to the running trajectory according to the magnetic field distribution. This method first simulates the magnetic field distribution of the magnet, and on this basis determines the running trajectory of the magnetic resistance relative to the magnet for one rotation. Then, based on the running trajectory, the magnetic field information corresponding to the running trajectory can be determined, so that only one calculation is required to complete the task, thereby improving the simulation efficiency.

[0038] Example 2

[0039] Based on the above embodiments, Figure 2 A schematic flow chart of another method for simulating the magnetic field of a magnetic steel in a signal transmitting pointer provided in an embodiment of the present invention.

[0040] Depend on Figure 2 As can be seen, the method includes:

[0041] Step S201: Acquire the size parameters of the magnetic steel in the signal transmitting pointer and the position data of the magnetic resistance internal induction device corresponding to the signal transmitting pointer relative to the magnetic steel.

[0042] For ease of understanding, Figure 3 A schematic diagram of a magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention. Figure 3 As can be seen, the magnetic steel 11 is disposed in the signal transmitting pointer 12 , and the signal transmitting pointer 12 rotates via the rotating shaft 13 to change the positional relationship between the magnetic steel 11 and the correspondingly disposed magnetic resistance 14 .

[0043] Furthermore, Figure 4 A schematic diagram of a magnetic steel and magnetic resistance corresponding to the magnetic steel in a signal transmitting pointer provided by an embodiment of the present invention.

[0044] Here, the first running track 21 of the magnetic resistor 14 and the second running track 22 of the magnetic steel 11 in this embodiment, that is, the idea of ​​this embodiment is to assume that the magnetic steel 11 is stationary and then use the equivalent running track of the magnetic steel 11 to rotate.

[0045] Step S202: constructing a geometric model of the magnetic steel according to the size parameters, and determining a running track of the induction device around the magnetic steel according to the position data.

[0046] In this embodiment, the number of the above-mentioned magnetic resistances is 2; the above-mentioned induction device includes: a first induction device and a second induction device; the step of determining the running trajectory of the above-mentioned induction device around the above-mentioned magnetic steel for one circle according to the above-mentioned position data includes: determining the first coordinate of the above-mentioned first induction device and the second coordinate of the above-mentioned second induction device according to the above-mentioned three-dimensional coordinate system; determining the running trajectory of the above-mentioned induction device around the above-mentioned magnetic steel for one circle according to the above-mentioned first coordinate or the above-mentioned second coordinate.

[0047] Furthermore, the step of determining the running trajectory of the above-mentioned induction device around the above-mentioned magnetic steel for one circle according to the above-mentioned first coordinate or the above-mentioned second coordinate includes: determining the direction vector of the above-mentioned first induction device and the projection vector of the above-mentioned direction vector projected onto the above-mentioned plane according to the above-mentioned first coordinate; determining the angle between the above-mentioned projection vector and the above-mentioned X-axis and the distance between the above-mentioned first induction device and the above-mentioned Z-axis according to the above-mentioned projection vector; determining the running trajectory of the above-mentioned first induction device around the above-mentioned magnetic steel for one circle according to the above-mentioned angle and the above-mentioned distance.

[0048] Step S203: Based on the magnetic field simulation software, the geometric model and the material properties of the magnetic steel are imported, and a three-dimensional coordinate system is established according to preset rules, and the magnetic field distribution of the magnetic steel is determined based on the three-dimensional coordinate system; wherein, the three-dimensional coordinate system takes the center of the running trajectory of the magnetic steel as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running trajectory of the magnetic steel is in the plane formed by the X-axis and the Y-axis.

[0049] Step S204: determining a magnetic field variation curve corresponding to the running trajectory according to the magnetic field distribution.

[0050] In actual operation, it is assumed that the coordinates of the first sensing device in the above three-dimensional coordinate system are (x 1 ,y 1 ,z 1 ), similarly, the coordinates of the second induction device show that the distance from the first induction device to the rotation center of the magnetic steel is Similarly, the distance from the second induction device to the rotation center of the magnetic steel can be known. Further, the first induction device and the second induction device are projected onto the planes of the X-axis and Y-axis of the above three-dimensional coordinate system, corresponding to projection point 1 and projection point 2 respectively. Expressed in radians, the angle between the direction vector of projection point 1 and the X-axis is α, and that of projection point 2 is 2π-α. Further, parametric equations are used to describe the motion trajectory of the sensing point. Define the parameter s, the value of sensing point 1 is , the value of sensing point 2 is , and the equation is as follows:

[0051] x=d·cos(s)

[0052] y=d·sin(s)

[0053] z=z 1

[0054] Furthermore, the magnetic steel is defined to rotate (s-α) radians, and the parameter s is substituted into the above parameter equation to obtain the coordinates. The magnetic field distribution corresponding to the coordinates is the magnetic field change curve corresponding to the first induction device at this time.

[0055] Furthermore, for the induction point 2, it is defined that the magnetic steel rotates through s-(2π-α) radians, and the magnetic field change curve corresponding to the second induction device is obtained in the same way.

[0056] Step S205: determining a level change curve corresponding to the magnetic field change curve according to the magnetic field change curve and the preset working parameters of the magnetic resistor.

[0057] Among them, the above-mentioned step S205 includes: respectively calculating the magnitude relationship between the magnetic field strength of each sampling point and the above-mentioned first magnetic field strength and the above-mentioned second magnetic field strength; marking the first target magnetic field strength of the first target sampling point corresponding to the above-mentioned first magnetic field strength among the above-mentioned sampling points as a low-level signal; marking the second target magnetic field strength of the second target sampling point corresponding to the above-mentioned second magnetic field strength among the above-mentioned sampling points as a high-level signal; marking the third target magnetic field strength of the point in the above-mentioned magnetic field change curve except the above-mentioned high-level signal and the above-mentioned low-level signal as a temporary parameter; and obtaining the level change curve corresponding to the above-mentioned magnetic field change curve according to the above-mentioned low-level signal, the above-mentioned high-level signal and the above-mentioned temporary parameter.

[0058] Specifically, according to the above-mentioned low-level signal, the above-mentioned high-level signal and the above-mentioned temporary parameter, the step of obtaining the level change curve corresponding to the above-mentioned magnetic field change curve includes: setting the value of the above-mentioned level change curve corresponding to the above-mentioned low-level signal to 0, setting the value of the above-mentioned level change curve corresponding to the above-mentioned high-level signal to 1, and setting the value of the above-mentioned level change curve corresponding to the above-mentioned temporary parameter to -1, starting from the end point of the above-mentioned level change curve, checking whether the level of the end point is -1, otherwise no processing is required. If the level is -1, then check whether the level of the previous point is -1, if it is, find the previous point again, until a point with a level other than -1 is found, and record the level of this point. Assign the level value of the recorded point to the -1 point corresponding to all temporary parameters checked during the period. Then check the second to last point, repeat the above steps until all points are checked, that is, the above-mentioned temporary parameter point is also converted into a high-low level signal according to the method of keeping the magnetic field change level state unchanged, and then according to the above-mentioned low-level signal, the above-mentioned high-level signal and the above-mentioned high-low level signal, obtain the level change curve corresponding to the above-mentioned magnetic field change curve.

[0059] Step S206: determining whether the position data of the magnetic resistance relative to the magnetic steel meets the preset position requirement according to the level change curve and the preset level change requirement.

[0060] In this embodiment, the two magnetic resistors include four level state combinations, and the level curve is divided into four cycles, that is, the levels corresponding to the two magnetic resistors are the following four combinations: high-low, low-high, high-high, and low-low. In actual operation, the level change requirement includes the proportion requirement of the four cycles; the step S206 includes: calculating the proportion value of the four cycles in the level change curve; according to the proportion value and the proportion requirement of the four cycles, determining whether the position data of the magnetic resistor relative to the magnetic steel meets the preset position requirement.

[0061] The embodiment of the present invention provides a method for simulating the magnetic field of a magnetic steel in a signal-transmitting pointer, comprising: obtaining the size parameters of the magnetic steel in the signal-transmitting pointer and the position data of the induction device in the magnetic resistance corresponding to the signal-transmitting pointer relative to the magnetic steel; constructing a geometric model of the magnetic steel according to the size parameters, and determining the running trajectory of the induction device around the magnetic steel according to the position data; importing the geometric model and the material properties of the magnetic steel based on magnetic field simulation software, establishing a three-dimensional coordinate system according to preset rules, and determining the magnetic field distribution of the magnetic steel based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the center of the running trajectory of the magnetic steel as the coordinate. The origin is marked, the horizontal direction passing through the origin is the X-axis, the straight line passing through the origin and perpendicular to the X-axis is the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis is the Z-axis; the running trajectory of the magnetic steel is in the plane formed by the X-axis and the Y-axis; according to the magnetic field distribution, the magnetic field change curve corresponding to the running trajectory is determined; according to the magnetic field change curve and the preset working parameters of the magnetic resistance, the level change curve corresponding to the magnetic field change curve is determined; according to the level change curve and the preset level change requirements, it is determined whether the position data of the magnetic resistance relative to the magnetic steel meets the preset position requirements. The method first simulates the magnetic field distribution of the magnetic steel, and on this basis determines the running trajectory of the magnetic resistance relative to the magnetic steel for one rotation, and then according to the running trajectory, the magnetic field information corresponding to the running trajectory can be determined, and further determines whether the position data of the magnetic steel meets the preset position requirements.

[0062] Example 3

[0063] Based on the above embodiments, Figure 5 A schematic structural diagram of a magnetic field simulation device for a magnetic steel in a signal transmitting pointer provided in an embodiment of the present invention.

[0064] Depend on Figure 5 As can be seen, the device includes:

[0065] The data acquisition module 31 is used to acquire the size parameters of the magnetic steel in the signal transmitting pointer and the position data of the magnetic resistance internal induction device corresponding to the signal transmitting pointer relative to the magnetic steel.

[0066] The running trajectory calculation module 32 is used to construct a geometric model of the magnetic steel according to the size parameters, and determine the running trajectory of the induction device around the magnetic steel according to the position data.

[0067] The magnetic field simulation module 33 is used to import the above-mentioned geometric model and the material properties of the above-mentioned magnetic steel based on the magnetic field simulation software, and establish a three-dimensional coordinate system according to preset rules, and determine the magnetic field distribution of the above-mentioned magnetic steel based on the above-mentioned three-dimensional coordinate system; wherein the above-mentioned three-dimensional coordinate system takes the center of the circle of the running trajectory of the above-mentioned magnetic steel as the coordinate origin, the horizontal direction passing through the above-mentioned origin as the X-axis, the straight line passing through the above-mentioned origin and perpendicular to the above-mentioned X-axis as the Y-axis, and the straight line passing through the above-mentioned origin and perpendicular to the above-mentioned X-axis and the above-mentioned Y-axis as the Z-axis; the running trajectory of the above-mentioned magnetic steel is in the plane formed by the above-mentioned X-axis and the above-mentioned Y-axis.

[0068] The magnetic field variation curve output module 34 is used to determine the magnetic field variation curve corresponding to the above-mentioned running trajectory according to the above-mentioned magnetic field distribution.

[0069] The data acquisition module 31 , the running trajectory calculation module 32 , the magnetic field simulation module 33 and the magnetic field change curve output module 34 are connected in sequence.

[0070] The magnetic field simulation device for the magnet in the signal-emitting pointer provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the magnetic field simulation method embodiment of the magnetic steel in the signal-emitting pointer mentioned above. For the sake of brief description, for parts not mentioned in the embodiment of the magnetic field simulation device for the magnet in the signal-emitting pointer mentioned above, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0071] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it is a structural diagram of the electronic device, wherein the electronic device includes a processor 41 and a memory 42, the memory 42 stores machine executable instructions that can be executed by the processor 41, and the processor 41 executes the machine executable instructions to implement the magnetic field simulation method of the magnet in the above-mentioned signal-transmitting pointer.

[0072] exist Figure 6 In the illustrated embodiment, the electronic device further includes a bus 43 and a communication interface 44 , wherein the processor 41 , the communication interface 44 and the memory 42 are connected via the bus.

[0073] The memory 42 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 44 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus may be an ISA bus, a PCI bus, or an EISA bus, etc. The above-mentioned bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0074] The processor 41 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 41. The above processor 41 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 41 reads the information in the memory 42 and completes the steps of the magnetic field simulation method of the magnetic steel in the signal transmitting pointer in the above-mentioned embodiment in combination with its hardware.

[0075] An embodiment of the present invention also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the magnetic field simulation method of the magnet in the above-mentioned signal-transmitting pointer. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.

[0076] The magnetic field simulation method of the magnet in the signaling pointer, the magnetic field simulation device of the magnet in the signaling pointer and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the above program code can be used to execute the magnetic field simulation method of the magnet in the signaling pointer in the above method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here.

[0077] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present invention.

[0078] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0079] Finally, it should be noted that the above-mentioned embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention rather than to limit it. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above-mentioned embodiments, ordinary technicians in this field should understand that any technician familiar with this technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the protection scope of the present invention.

Claims

1. A method for simulating the magnetic field of a magnetic steel in a signal pointer. It is characterized in that include: Obtaining the size parameters of the magnetic steel in the signal-transmitting pointer and the position data of the magnetic resistance internal induction device corresponding to the signal-transmitting pointer relative to the magnetic steel; According to the size parameters, a geometric model of the magnetic steel is constructed, and according to the position data, a running track of the induction device running around the magnetic steel is determined; Based on the magnetic field simulation software, the geometric model and the material properties of the magnetic steel are imported, and a three-dimensional coordinate system is established according to a preset rule, and the magnetic field distribution of the magnetic steel is determined based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the center of the running track of the magnetic steel as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running track of the magnetic steel is in the plane formed by the X-axis and the Y-axis; A magnetic field variation curve corresponding to the running trajectory is determined according to the magnetic field distribution.

2. The magnetic field simulation method of the magnetic steel in the signal transmitting pointer according to claim 1, It is characterized in that The number of the magnetic resistors is 2; the induction device includes: a first induction device and a second induction device; and the step of determining the running track of the induction device around the magnetic steel for one cycle according to the position data includes: Determining a first coordinate of the first sensing device and a second coordinate of the second sensing device according to the three-dimensional coordinate system; The running track of the induction device running around the magnetic steel is determined according to the first coordinate or the second coordinate.

3. The magnetic field simulation method of the magnetic steel in the signal transmitting pointer according to claim 2, It is characterized in that The step of determining the running track of the induction device running around the magnetic steel for one cycle according to the first coordinate or the second coordinate includes: Determine, according to the first coordinate, a direction vector of the first sensing device and a projection vector of the direction vector projected onto the plane; Determine, according to the projection vector, an angle between the projection vector and the X-axis and a distance between the first sensing device and the Z-axis; The running track of the first induction device running around the magnetic steel is determined according to the angle and the distance.

4. The magnetic field simulation method of the magnetic steel in the signal transmitting pointer according to claim 3, It is characterized in that The step of determining the magnetic field distribution of the magnetic steel according to the three-dimensional coordinate system comprises: Based on preset parameters, according to the three-dimensional coordinate system, a grid area of ​​a preset range is divided with the magnetic steel as the center; The magnetic field distribution of the magnetic steel is determined according to the grid area.

5. The magnetic field simulation method of the magnetic steel in the signal transmitting pointer according to claim 1, It is characterized in that After the step of determining the magnetic field change curve corresponding to the running trajectory according to the magnetic field distribution, the method includes: Determining a level change curve corresponding to the magnetic field change curve according to the magnetic field change curve and preset working parameters of the magnetic resistance; According to the level change curve and the preset level change requirement, it is determined whether the position data of the magnetic resistance relative to the magnetic steel meets the preset position requirement.

6. The method for simulating the magnetic field of a magnetic steel in a signal transmitting pointer according to claim 5, It is characterized in that The working parameters include: a first magnetic field strength corresponding to the working point of the magnetic resistor and a second magnetic field strength corresponding to the release point of the magnetic resistor; and the step of determining a level change curve corresponding to the magnetic field change curve according to the magnetic field change curve and the preset working parameters of the magnetic resistor includes: According to preset accuracy requirement parameters, selecting a plurality of sampling points on the magnetic field change curve; A level change curve corresponding to the magnetic field change curve is determined according to the magnetic field strength corresponding to the sampling point, the first magnetic field strength, and the second magnetic field strength.

7. The method for simulating the magnetic field of a magnetic steel in a signal transmitting pointer according to claim 6, It is characterized in that The step of determining a level change curve corresponding to the magnetic field change curve according to the magnetic field strength corresponding to the sampling point, the first magnetic field strength, and the second magnetic field strength comprises: Calculating the magnitude relationship between the magnetic field strength at each sampling point and the first magnetic field strength and the second magnetic field strength respectively; Marking the first target magnetic field strength of the first target sampling point corresponding to the first magnetic field strength among the magnetic field strengths of the sampling points as a low level signal; Marking the second target magnetic field strength of the second target sampling point corresponding to the second magnetic field strength among the magnetic field strengths of the sampling points as a high level signal; Marking a third target magnetic field strength of a point other than the high level signal and the low level signal in the magnetic field variation curve as a temporary parameter; A level change curve corresponding to the magnetic field change curve is obtained according to the low level signal, the high level signal and the temporary parameter.

8. The method for simulating the magnetic field of a magnetic steel in a signal transmitting pointer according to claim 7, It is characterized in that The level change requirement includes a high and low level ratio requirement; and the step of determining whether the position data of the magnetic resistance relative to the magnetic steel meets the preset position requirement according to the level change curve and the preset level change requirement includes: Calculating a ratio of the high-level signal to the low-level signal in the level change curve; According to the proportion value and the high and low level proportion requirements, it is determined whether the position data of the magnetic resistance relative to the magnetic steel meets the preset position requirement.

9. A magnetic field simulation device for a magnetic steel in a signal pointer, It is characterized in that include: A data acquisition module, used to acquire the size parameters of the magnetic steel in the signal transmitting pointer and the position data of the magnetic resistance internal induction device corresponding to the signal transmitting pointer relative to the magnetic steel; An operation trajectory calculation module, used to construct a geometric model of the magnetic steel according to the size parameters, and determine the operation trajectory of the induction device running around the magnetic steel for one cycle according to the position data; A magnetic field simulation module, for importing the geometric model and the material properties of the magnetic steel based on magnetic field simulation software, and establishing a three-dimensional coordinate system according to preset rules, and determining the magnetic field distribution of the magnetic steel based on the three-dimensional coordinate system; wherein the three-dimensional coordinate system takes the center of the running track of the magnetic steel as the coordinate origin, the horizontal direction passing through the origin as the X-axis, the straight line passing through the origin and perpendicular to the X-axis as the Y-axis, and the straight line passing through the origin and perpendicular to the X-axis and the Y-axis as the Z-axis; the running track of the magnetic steel is in the plane formed by the X-axis and the Y-axis; The magnetic field change curve output module is used to determine the magnetic field change curve corresponding to the running trajectory according to the magnetic field distribution.

10. An electronic device, It is characterized in that The electronic device includes a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the magnetic field simulation method of the magnetic steel in the signal transmitting pointer as described in any one of claims 1 to 8.

Citation Information

Cited By

  • Instrument metering device based on magnetic field polarity perception

    CN120063409A

  • An instrument metering device based on magnetic field polarity sensing

    CN120063409B

  • Reed switch duty ratio calibration method and device

    CN120628249A

  • Meter measurement device based on magnetic field polarity sensing

    WO2026166024A1