CN115388962A - Anti-static magnetic interference method and system for electromagnetic water meter - Google Patents

Anti-static magnetic interference method and system for electromagnetic water meter Download PDF

Info

Publication number
CN115388962A
CN115388962A CN202210989719.7A CN202210989719A CN115388962A CN 115388962 A CN115388962 A CN 115388962A CN 202210989719 A CN202210989719 A CN 202210989719A CN 115388962 A CN115388962 A CN 115388962A
Authority
CN
China
Prior art keywords
magnetic field
water meter
simulated
interference
simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210989719.7A
Other languages
Chinese (zh)
Other versions
CN115388962B (en
Inventor
祝旭
崔红军
师凯
卢自涛
高超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kent Instrument Co ltd
Original Assignee
Shanghai Kent Instrument Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Kent Instrument Co ltd filed Critical Shanghai Kent Instrument Co ltd
Priority to CN202210989719.7A priority Critical patent/CN115388962B/en
Publication of CN115388962A publication Critical patent/CN115388962A/en
Application granted granted Critical
Publication of CN115388962B publication Critical patent/CN115388962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/56Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using electric or magnetic effects
    • G01F1/58Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using electric or magnetic effects by electromagnetic flowmeters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Fluid Mechanics (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Geometry (AREA)
  • Evolutionary Computation (AREA)
  • Operations Research (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Hardware Design (AREA)
  • Algebra (AREA)
  • Electromagnetism (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Measuring Magnetic Variables (AREA)

Abstract

The application discloses an anti-static magnetic interference method and system for an electromagnetic water meter, which relate to the technical field of anti-interference of the electromagnetic water meter, and the method comprises the following steps: acquiring a static magnetic field generated by an electromagnetic water meter and a flow value detected by the electromagnetic water meter; judging whether an interference magnetic field exists in the environment where the electromagnetic water meter is located based on the magnetic field change of the static magnetic field; if the interference magnetic field exists, acquiring a magnetic field superposition state of the static magnetic field and the interference magnetic field; acquiring a magnetic field intensity change value based on the magnetic field superposition state; calculating a water meter flow loss value based on the magnetic field intensity change value; and correcting the flow value according to the flow loss value of the water meter to obtain a corrected flow value. This application has can intelligent correction flow value's effect when electromagnetic water meter receives magnetic field interference.

Description

Anti-static magnetic interference method and system for electromagnetic water meter
Technical Field
The application relates to the technical field of anti-interference of electromagnetic water meters, in particular to an anti-static magnetic interference method and system for an electromagnetic water meter.
Background
The water meter is an instrument for measuring water flow, and is widely applied to water consumption measurement of water users by water supply companies, when the water users use the traditional water meter, the staff of the water supply company needs to read the meter of each water user and count the water consumption, and a large amount of manpower and time are consumed in the meter reading process, so the traditional water meter is gradually replaced by the electromagnetic water meter.
The metering principle of the electromagnetic water meter is based on Faraday's law of electromagnetic induction, and the electromagnetic water meter can accurately acquire water use data of water users, and then cooperates with the wireless transmission module to transmit the water use data to the management platform of a water supply company, so that the water supply company can quickly acquire the water consumption of all the water use users, and calculate the water charge according to the water consumption. However, since the electromagnetic water meter is susceptible to interference of an external magnetic field to affect acquisition of water data, it is usually necessary to add a magnetic shielding layer to the electromagnetic water meter to reduce interference of the external magnetic field.
With respect to the related art among the above, the inventors consider that the following drawbacks exist: if the magnetic field source of the external interference magnetic field is a strong magnet and other magnetic substances exceeding the industrial standard, the effect of the magnetic field shielding layer is greatly reduced, and therefore the water consumption measured by the electromagnetic water meter has larger deviation.
Disclosure of Invention
In order to improve electromagnetic water meter when receiving strong magnetic interference, the defect of great deviation can appear in the water consumption of measurement, this application provides an antistatic magnetic interference method and system for electromagnetic water meter.
In a first aspect, the present application provides an anti-static magnetic interference method system for an electromagnetic water meter, including the following steps:
acquiring a static magnetic field generated by an electromagnetic water meter and a flow value detected by the electromagnetic water meter;
judging whether an interference magnetic field exists in the environment where the electromagnetic water meter is located or not based on the magnetic field change of the static magnetic field;
if the interference magnetic field exists, acquiring a magnetic field superposition state of the static magnetic field and the interference magnetic field;
acquiring a magnetic field intensity change value based on the magnetic field superposition state;
calculating a water meter flow loss value based on the magnetic field intensity change value;
and correcting the flow value according to the flow loss value of the water meter to obtain a corrected flow value.
By adopting the technical scheme, whether an interference magnetic field exists in the surrounding environment is judged through the magnetic field change of the self-contained static magnetic field of the electromagnetic water meter, if the interference magnetic field exists, the magnetic field superposition state of the static magnetic field and the interference magnetic field can be firstly obtained, then the magnetic field intensity change value of the static magnetic field is obtained according to the magnetic field superposition state, the water meter flow loss value is calculated according to the magnetic field intensity change value based on the Faraday law of electromagnetic induction, and finally the flow value is corrected through the water meter flow loss value, so that the corrected flow value is obtained.
Optionally, the step of determining whether an interference magnetic field exists in an environment where the electromagnetic water meter is located based on the magnetic field change of the static magnetic field includes the following steps:
detecting whether the static magnetic field generates a magnetic field change;
if the static magnetic field does not change, judging that no interference magnetic field exists in the environment where the electromagnetic water meter is located;
if the static magnetic field generates the magnetic field change, counting the duration of the magnetic field change;
judging whether the duration time exceeds a preset time threshold value or not;
if the duration does not exceed the time threshold, determining that the interference magnetic field does not exist in the environment where the electromagnetic water meter is located;
and if the duration exceeds the time threshold, judging that the interference magnetic field exists in the environment where the electromagnetic water meter is located.
By adopting the technical scheme, when the static magnetic field changes, the phenomenon that the ferromagnetic substance is temporarily close to the electromagnetic water meter can be caused, and the influence on the metering of the electromagnetic water meter is small due to the short time of the change of the magnetic field of the static magnetic field, so that the flow value metered by the electromagnetic water meter can be limited by the preset time threshold, and the flow value metered by the electromagnetic water meter is corrected only when the time of the change of the magnetic field exceeds the time threshold.
Optionally, before obtaining the magnetic field strength change value based on the magnetic field superposition status, the method includes the following steps:
generating a simulated static magnetic field and storing the static magnetic field intensity of the simulated static magnetic field;
constructing a simulation parameter list;
traversing the simulated parameter list and generating a simulated disturbing magnetic field around the simulated static magnetic field a plurality of times;
acquiring a simulated magnetic field superposition state and a simulated intensity change value of the static magnetic field intensity each time the simulated interference magnetic field is generated;
corresponding and binding the simulation intensity change values and the simulation magnetic field superposition states corresponding to the simulation intensity change values one by one to obtain a plurality of simulation information groups;
and storing all the analog information groups in a preset magnetic field analog database.
By adopting the technical scheme, a plurality of times of simulated interference magnetic fields are generated around the simulated static magnetic field based on a large number of simulation parameters, the condition of the static magnetic field of the electromagnetic water meter when various external magnetic fields interfere is simulated, the simulated magnetic field superposition state of the two simulated magnetic fields in each simulation process and the simulated intensity change value of the static magnetic field intensity of the simulated static magnetic field caused by the simulated interference magnetic fields are obtained, the simulated magnetic field superposition state and the simulated intensity change value obtained in each simulation are bound into a simulation information group, and the simulation information group is stored in a preset magnetic field simulation database for storage.
Optionally, the building of the simulation parameter list includes the following steps:
arranging and combining a preset magnetic field direction list and a preset magnetic field center distance list to obtain a plurality of arrangement and combination results, wherein the magnetic field direction list comprises magnetic field direction combination modes of two different simulated magnetic fields, the magnetic field center distance list comprises a plurality of preset magnetic field center distances, and the magnetic field center distances are distances between magnetic field sources of the two different simulated magnetic fields;
sorting all the permutation and combination results based on the magnetic field center distances in the permutation and combination results;
and constructing a simulation parameter list according to all the sorted permutation and combination results.
By adopting the technical scheme, a large number of permutation and combination results are permutated and combined to serve as different interference simulation conditions according to the magnetic field directions of two different simulation magnetic fields and the multiple preset magnetic field center distances, in order to facilitate the subsequent simulation process and the storage of simulation results, the permutation and combination results can be sequenced according to the magnetic field center distances, and then a simulation parameter list is constructed according to all the permutation and combination results after sequencing.
Optionally, before obtaining the magnetic field strength change value based on the magnetic field superposition status, the method includes the following steps:
generating a simulated static magnetic field and storing the static magnetic field intensity of the simulated static magnetic field;
generating N times of simulated interference magnetic fields around the simulated static magnetic field based on preset N magnetic field center distances, wherein the magnetic field center distance is the distance between magnetic field sources of two different simulated magnetic fields, and the minimum value of the N magnetic field center distances is a reference magnetic field center distance;
acquiring a simulated magnetic field superposition state and a simulated intensity change value of the static magnetic field intensity when the simulated interference magnetic field is generated for N times;
performing linear fitting on the N magnetic field center distances and the N analog intensity change values to obtain a linear fitting result;
increasing the magnetic field center distance from the reference magnetic field center distance based on a preset increasing distance, and calculating to obtain M analog intensity change values according to the linear fitting result, wherein M is larger than N;
simulating M-N simulated magnetic field superposition states when the distance between the magnetic field centers increases progressively according to the N simulated magnetic field superposition states;
corresponding and binding the M analog intensity change values and the M analog magnetic field superposition states one by one based on the reference magnetic field center distance to obtain M analog information groups;
and storing all the analog information groups in a preset magnetic field analog database.
By adopting the technical scheme, firstly, N times of simulated interference magnetic fields are generated according to N preset magnetic field central distances to carry out magnetic field interference simulation, N times of simulation results are obtained, namely simulated magnetic field superposition states and simulated intensity change values of static magnetic fields, all the simulated intensity change values in the simulation results and all the magnetic field central distances are subjected to linear fitting, the linear relation between the simulated intensity change values and the magnetic field central distances is found, the simulated intensity change values of M different magnetic field central distances are calculated based on the linear relation, the residual M-N simulated magnetic field superposition states under different conditions are simulated according to the simulated magnetic field superposition states in the N simulation results, and finally, the simulated intensity change values under different simulation conditions and the simulated magnetic field superposition states are bound one by one, and M simulated information groups are obtained and are all stored in a preset magnetic field simulation database.
Optionally, the obtaining the magnetic field strength change value based on the magnetic field superposition state includes the following steps:
searching a target simulation magnetic field superposition state with the highest state matching degree in the magnetic field simulation database based on the magnetic field superposition state;
calling a target simulation information group corresponding to the target simulation magnetic field superposition state from the magnetic field simulation database;
and reading a target simulation intensity change value in the target simulation information group as a magnetic field intensity change value.
By adopting the technical scheme, a large amount of simulation data when the simulation static magnetic field is interfered are stored in the magnetic field simulation database, the simulation data comprise the simulation magnetic field superposition state, so that the matching degree can be searched in the magnetic field simulation database according to the obtained magnetic field superposition state, the most similar target simulation magnetic field superposition state with the highest matching degree can be searched, and the target simulation magnetic field superposition state and the corresponding target simulation intensity change value form a target simulation information group and are stored in the magnetic field simulation database, so that the target simulation information group can be retrieved, and then the target simulation intensity change value in the target simulation information group is read, and the magnetic field intensity change value can be obtained.
Optionally, the step of calculating the water meter flow loss value based on the magnetic field strength change value includes the following steps:
calculating by combining a preset voltage calculation formula and the magnetic field intensity change value to obtain a voltage change value;
and calculating to obtain a water meter flow loss value according to the voltage change value and based on a Faraday electromagnetic induction law.
By adopting the technical scheme, the voltage change value can be calculated by influencing the voltage of the electric field through the change of the magnetic field and acquiring the change value of the magnetic field intensity, and the flow loss value of the water meter can be further calculated after the voltage change value is calculated because the metering principle of the electromagnetic water meter is based on the Faraday's law of electromagnetic induction and the voltage and the water flow are in a linear relation.
In a second aspect, the present application further provides an anti-magnetic interference system for an electromagnetic water meter, including a memory, a processor and a program stored in the memory and executable on the processor, wherein the program can be loaded and executed by the processor to implement the anti-magnetic interference method for an electromagnetic water meter as described in the first aspect.
By adopting the technical scheme, through the calling of the program, whether an interference magnetic field exists in the surrounding environment can be judged through the magnetic field change of the electromagnetic water meter with the static magnetic field, if the interference magnetic field exists, the magnetic field superposition state of the static magnetic field and the interference magnetic field can be firstly obtained, then the magnetic field intensity change value of the static magnetic field is obtained according to the magnetic field superposition state, the water meter flow loss value is calculated according to the magnetic field intensity change value based on the Faraday law of electromagnetic induction, and finally the flow value is corrected through the water meter flow loss value, so that the corrected flow value is obtained.
To sum up, the application comprises the following beneficial technical effects:
whether an interference magnetic field exists in the surrounding environment is judged through the magnetic field change of the static magnetic field of the electromagnetic water meter, if the interference magnetic field exists, the magnetic field superposition state of the static magnetic field and the interference magnetic field can be firstly obtained, then the magnetic field intensity change value of the static magnetic field is obtained according to the magnetic field superposition state, the water meter flow loss value is calculated according to the magnetic field intensity change value based on the Faraday law of electromagnetic induction, and finally the flow value is corrected through the water meter flow loss value to obtain the corrected flow value.
Drawings
Fig. 1 is a schematic flowchart of one implementation manner of the anti-electromagnetic interference method for an electromagnetic water meter according to the embodiment of the present application.
Fig. 2 is a schematic flow chart of one implementation manner of the method for preventing static magnetic interference for an electromagnetic water meter according to the embodiment of the present application.
Fig. 3 is a schematic flowchart of one implementation manner of the method for preventing static magnetic interference for an electromagnetic water meter according to the embodiment of the present application.
Fig. 4 is a schematic flowchart of one implementation manner of the anti-electromagnetic interference method for an electromagnetic water meter according to the embodiment of the present application.
Fig. 5 is a schematic flowchart of one implementation manner of the method for preventing static magnetic interference for an electromagnetic water meter according to the embodiment of the present application.
Fig. 6 is a schematic flowchart of one implementation manner of the anti-electromagnetic interference method for an electromagnetic water meter according to the embodiment of the present application.
Fig. 7 is a schematic flowchart of one implementation manner of the method for preventing static magnetic interference for an electromagnetic water meter according to the embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to figures 1 to 7.
The embodiment of the application discloses an anti-static magnetic interference method for an electromagnetic water meter.
Referring to fig. 1, the method for preventing the static magnetic interference of the electromagnetic water meter comprises the following steps:
s101, a static magnetic field generated by the electromagnetic water meter and a flow value detected by the electromagnetic water meter are obtained.
The electromagnetic water meter is provided with a detection unit, the detection unit is used for detecting a static magnetic field generated by a detection probe of the electromagnetic water meter, and the detection unit can be a Hall element. The flow value in the water pipe detected by the electromagnetic water meter can be read through a central integrated processing module arranged in the electromagnetic water meter.
S102, judging whether an interference magnetic field exists in the environment where the electromagnetic water meter is located based on the magnetic field change of the static magnetic field, and if so, executing the step S103.
If no disturbing magnetic field exists, the flow value is not corrected.
S103, acquiring a magnetic field superposition state of the static magnetic field and the interference magnetic field.
A magnetic field superposition state when a static magnetic field and an interference magnetic field are superposed is detected by a detection unit arranged in the electromagnetic water meter.
And S104, acquiring a magnetic field intensity change value based on the magnetic field superposition state.
The corresponding magnetic field intensity change value can be searched in a preset magnetic field simulation database according to the magnetic field superposition state, a large number of simulation data samples are stored in the magnetic field simulation database in advance, and each simulation data sample comprises the simulation magnetic field superposition state and the magnetic field intensity change value of the simulation static magnetic field under the superposition state.
And S105, calculating a water meter flow loss value based on the magnetic field intensity change value.
Wherein, the flow loss value of the water meter can be calculated by combining the Hall effect and the Faraday's electromagnetic induction law.
And S106, correcting the flow value according to the flow loss value of the water meter to obtain a corrected flow value.
And adding the flow loss value of the water meter and the flow value to obtain a corrected flow value.
The implementation principle of the embodiment is as follows:
whether an interference magnetic field exists in the surrounding environment or not is judged through the magnetic field change of the self-contained static magnetic field of the electromagnetic water meter, if the interference magnetic field exists, the magnetic field superposition state of the static magnetic field and the interference magnetic field can be firstly obtained, then the magnetic field intensity change value of the static magnetic field is obtained according to the magnetic field superposition state, the water meter flow loss value is calculated according to the magnetic field intensity change value based on the Faraday electromagnetic induction law, and finally the flow value is corrected through the water meter flow loss value, so that the corrected flow value is obtained.
In step S102 of the embodiment shown in fig. 1, when the interfering magnetic field is detected, the time of influence of the interfering magnetic field may be obtained, and the interfering magnetic field with a short time of influence may be screened out according to a preset time threshold. This is illustrated in detail by the embodiment shown in fig. 2.
Referring to fig. 2, the step of determining whether an interference magnetic field exists in the environment where the electromagnetic water meter is located based on the magnetic field change of the static magnetic field includes the following steps:
s201, detecting whether the static magnetic field has magnetic field change, and if the static magnetic field has no magnetic field change, executing S202; when the static magnetic field changes, step S203 is executed.
Wherein, whether the static magnetic field changes by the detection unit in the electromagnetic water meter.
S202, judging that no interference magnetic field exists in the environment where the electromagnetic water meter is located.
S203, counting the duration of the magnetic field change.
The electromagnetic water meter is characterized in that a timing module is further arranged in the electromagnetic water meter, the timing module can be a timer, when the detection unit in the electromagnetic water meter detects that a static magnetic field changes, the detection unit sends a magnetic change signal to the processing module, the processing module receives the magnetic change signal and then sends a timing signal to the timing module, the timing module starts timing after receiving the timing signal, and the time timed by the timing module is the duration time of the magnetic field change.
S204, judging whether the duration time exceeds a preset time threshold, and if the duration time does not exceed the time threshold, executing the step S205; if the duration exceeds the time threshold, step S206 is executed.
S205, it is judged that no interference magnetic field exists in the environment where the electromagnetic water meter is located.
S206, judging that an interference magnetic field exists in the environment where the electromagnetic water meter is located.
The implementation principle of the embodiment is as follows:
when the static magnetic field changes, the strong magnetic substance is probably only caused by short approach of the strong magnetic substance to the electromagnetic water meter, and the metering of the electromagnetic water meter is less influenced due to short magnetic field change time of the static magnetic field, so that the flow value metered by the electromagnetic water meter can be limited by a preset time threshold, and the flow value metered by the electromagnetic water meter is only corrected when the magnetic field change time exceeds the time threshold.
In one embodiment before step S104 of the embodiment shown in fig. 1, a large amount of magnetic field interference may be simulated, and at the same time, the simulation data during simulation is recorded and then stored as sample data in a preset magnetic field simulation database. This is explained in detail with reference to the embodiment shown in fig. 3.
Referring to fig. 3, the following steps are included before obtaining the magnetic field strength variation value based on the magnetic field superposition status:
and S301, generating a simulation static magnetic field and storing the static magnetic field intensity of the simulation static magnetic field.
The method comprises the steps of simulating the distribution of a static magnetic field generated by an electromagnetic water meter detection probe through Matlab software to generate a simulated static magnetic field, calculating the static magnetic field intensity of the simulated static magnetic field in an ideal state according to a magnetic field intensity calculation formula, and storing the calculated static magnetic field intensity in a preset memory.
S302, building a simulation parameter list.
The simulation parameter list comprises a plurality of simulation parameters, and the simulation parameters comprise magnetic field directions of two simulation magnetic fields for magnetic field interference simulation and a magnetic field center distance between magnetic field sources of the two simulation magnetic fields.
S303, traversing the simulation parameter list and generating a simulation interference magnetic field around the simulation static magnetic field for multiple times.
And traversing and reading each group of simulation parameters in the simulation parameter list according to a preset traversing sequence, and generating a simulated interference magnetic field around the simulated static magnetic field based on the group of simulation parameters when each group of simulation parameters is read.
S304, acquiring the simulated magnetic field superposition state and the simulated intensity change value of the static magnetic field intensity each time the simulated interference magnetic field is generated.
Simulation is carried out through matlab software, and a simulation intensity change value of a simulation magnetic field superposition state and static magnetic field intensity is obtained.
S305, corresponding and binding the simulation intensity change values and the simulation magnetic field superposition states corresponding to the simulation intensity change values one by one to obtain a plurality of simulation information sets.
After simulation is carried out through matlab based on a group of simulation parameters, a simulation intensity change value and a magnetic field vector diagram of a simulation magnetic field superposition state are obtained, and then the magnetic field distribution diagram and the simulation intensity change value are bound to obtain a simulation information group.
S306, storing all the simulation information groups in a preset magnetic field simulation database.
The preset magnetic field simulation database is erected in the remote terminal, and the remote terminal and the electromagnetic water meter can be in communication connection.
The implementation principle of the embodiment is as follows:
generating a plurality of simulated interference magnetic fields around the simulated static magnetic field based on a large number of simulation parameters, simulating the condition of the static magnetic field of the electromagnetic water meter when the static magnetic field is interfered by various different external magnetic fields, acquiring the simulated magnetic field superposition state of the two simulated magnetic fields in each simulation process and the simulated intensity change value of the static magnetic field intensity of the simulated static magnetic field caused by the simulated interference magnetic field, binding the simulated magnetic field superposition state and the simulated intensity change value acquired in each simulation process into a simulation information group, and storing the simulation information group in a preset magnetic field simulation database for storage.
In step S302 of the embodiment shown in fig. 3, different magnetic field directions and magnetic field center distances are combined in a permutation and combination manner, so as to combine a large number of different magnetic field simulation situations, and then a simulation parameter list is constructed for subsequent magnetic field disturbance simulation. This is explained in detail with reference to the embodiment shown in fig. 4.
Referring to fig. 4, constructing the simulation parameter list includes the steps of:
s401, carrying out permutation and combination on a preset magnetic field direction list and a preset magnetic field center distance list to obtain a plurality of permutation and combination results.
The magnetic field direction list comprises magnetic field direction combination modes of two different simulated magnetic fields, the magnetic field center distance list comprises a plurality of preset magnetic field center distances, and the magnetic field center distances are distances between magnetic field sources of the two different simulated magnetic fields. The arrangement and combination are specifically described as follows:
all the magnetic field direction combinations of the two simulated magnetic fields in the magnetic field direction list are only four, namely [ forward, reverse ], [ reverse, forward ], [ forward, forward ], [ reverse, reverse ], and the magnetic field direction list and the magnetic field center distance list are arranged and combined to obtain 4x arrangement and combination results on the assumption that the magnetic field center distance list comprises x preset magnetic field center distances.
And S402, sequencing all permutation and combination results based on the magnetic field center distance in the permutation and combination results.
The magnetic field center distances may be sorted in the order of large and small, or may be sorted in the order of small and large according to the magnetic field center distances in the permutation and combination result.
And S403, constructing a simulation parameter list according to all the sorted permutation and combination results.
The implementation principle of the embodiment is as follows:
according to the magnetic field directions of two different simulation magnetic fields and a plurality of preset magnetic field center distances, a large number of permutation and combination results are permutated and combined to serve as different interference simulation conditions, in order to facilitate the implementation of a subsequent simulation process and the storage of simulation results, the permutation and combination results can be sequenced according to the magnetic field center distances, and then a simulation parameter list is constructed according to all the permutation and combination results after sequencing.
In another embodiment before step S104 in the embodiment shown in fig. 1, a situation of a small amount of magnetic field interference may be simulated, analog data during simulation may be recorded at the same time, a large amount of analog data may be obtained based on the small amount of analog data and by combining linear fitting and simulation, and finally, all analog data may be stored in a preset magnetic field analog database. This is explained in detail with reference to the embodiment shown in fig. 5.
Referring to fig. 5, the following steps are included before obtaining the magnetic field strength variation value based on the magnetic field superposition status:
and S501, generating a simulated static magnetic field and storing the static magnetic field intensity of the simulated static magnetic field.
The method comprises the steps of simulating the distribution of a static magnetic field generated by an electromagnetic water meter detection probe through Matlab software to generate a simulated static magnetic field, calculating the static magnetic field intensity of the simulated static magnetic field in an ideal state according to a magnetic field intensity calculation formula, and storing the calculated static magnetic field intensity in a preset memory.
S502, generating N times of simulated interference magnetic fields around the simulated static magnetic field based on preset N magnetic field center distances.
The magnetic field center distance is the distance between the magnetic field sources of two different simulated magnetic fields, the minimum value of the N magnetic field center distances is the reference magnetic field center distance, and the adjacent distance intervals between the preset N magnetic field center distances are the same.
S503, acquiring the simulated magnetic field superposition state and the simulated intensity change value of the static magnetic field intensity when the simulated interference magnetic field is generated for N times.
And performing N times of simulation by matlab software and acquiring the simulated magnetic field superposition state and the simulated intensity change value of the static magnetic field intensity.
S504, performing linear fitting on the N magnetic field center distances and the N analog intensity change values to obtain a linear fitting result.
Because the relationship between the magnetic field center distance and the analog intensity variation value is not completely linear, the magnetic field center distance and the analog intensity variation value need to be subjected to linear fitting in a fuzzy calculation mode to obtain a linear fitting formula as a linear fitting result.
And S505, increasing the magnetic field center distance from the reference magnetic field center distance based on the preset increasing distance, and calculating to obtain M analog intensity change values according to a linear fitting result.
The preset incremental distance is smaller than the adjacent distance between the preset N magnetic field center distances, M is larger than N, and the M magnetic field center distances obtained through incremental increase comprise the preset N magnetic field center distances.
S506, simulating M-N simulated magnetic field superposition states when the distance between the centers of the simulated magnetic fields increases progressively according to the N simulated magnetic field superposition states.
According to the N simulated magnetic field superposition states simulated at the N magnetic field center distances, the simulated magnetic field superposition states at the residual M-N magnetic field center distances are simulated through the matlab to simulate the distribution change of the superposed magnetic field.
And S507, corresponding and binding the M analog intensity change values and the M analog magnetic field superposition states one by one based on the reference magnetic field center distance to obtain M analog information groups.
After the interference magnetic field simulation is carried out according to the central distance of each magnetic field, a simulation intensity change value and a magnetic field vector diagram of a simulation magnetic field superposition state are obtained, then the magnetic field vector diagram and the simulation intensity change value are bound to obtain simulation information sets, and M simulation information sets can be obtained after M times of simulation.
And S508, storing all the simulation information groups in a preset magnetic field simulation database.
The preset magnetic field simulation database is erected in the remote terminal, and the remote terminal and the electromagnetic water meter can be in communication connection.
The implementation principle of the embodiment is as follows:
firstly, generating N times of simulated interference magnetic fields according to N preset magnetic field center distances to perform magnetic field interference simulation to obtain N times of simulation results, namely simulated magnetic field superposition states and simulated intensity change values of static magnetic fields, performing linear fitting on all the simulated intensity change values and all the magnetic field center distances in the simulation results to find linear relations between the simulated intensity change values and the magnetic field center distances, then calculating the simulated intensity change values when the magnetic field center distances are different from each other on the basis of the linear relations, simultaneously performing simulated simulation on the residual M-N simulated magnetic field superposition states under different conditions when the magnetic field center distances are different from each other according to the simulated magnetic field superposition states in the N simulation results, and finally binding the simulated intensity change values and the simulated magnetic field superposition states under different simulation conditions one by one to obtain M simulated information groups which are all stored in a preset magnetic field simulation database.
In step S104 of the embodiment shown in fig. 1, the most matched simulation information set is retrieved from the magnetic field simulation database according to the magnetic field superposition state to obtain the magnetic field strength variation value. This is explained in detail with reference to the embodiment shown in fig. 6.
Referring to fig. 6, acquiring the magnetic field strength variation value based on the magnetic field superposition status includes the steps of:
s601, searching a target simulation magnetic field superposition state with the highest state matching degree in a magnetic field simulation database based on the magnetic field superposition state.
The magnetic field superposition state is transmitted to the remote terminal, magnetic field simulation is carried out through a magnetic field simulation module in the remote terminal according to the magnetic field superposition state to obtain a target magnetic field vector diagram, then a magnetic field vector diagram with the highest matching degree with the target magnetic field vector diagram is searched in a magnetic field simulation database by an image recognition module in the remote terminal based on an image recognition technology, and the searched magnetic field vector diagram is the magnetic field vector diagram in the target simulated magnetic field superposition state.
S602, a target simulation information group corresponding to the superposition state of the target simulation magnetic field is called from the magnetic field simulation database.
And S603, reading the target simulation intensity change value in the target simulation information group as the magnetic field intensity change value.
The implementation principle of the embodiment is as follows:
the magnetic field simulation database stores a large amount of simulation data when the simulation static magnetic field is interfered, the simulation data comprises a simulation magnetic field superposition state, so that matching degree retrieval can be performed in the magnetic field simulation database according to the obtained magnetic field superposition state, a target simulation magnetic field superposition state with the highest matching degree and the most similar matching degree is retrieved, and the target simulation magnetic field superposition state and a corresponding target simulation intensity change value form a target simulation information set to be stored in the magnetic field simulation database, so that the target simulation information set can be retrieved, and then the target simulation intensity change value in the target simulation information set is read, so that the magnetic field intensity change value can be obtained.
In step S105 of the embodiment shown in fig. 1, the magnetic field affects the voltage, and the voltage affects the measurement reading, and after the magnetic field change is obtained, the flow loss value of the water meter can be calculated. This is explained in detail with reference to the embodiment shown in fig. 7.
Referring to fig. 7, calculating the water meter flow loss value based on the magnetic field strength variation value includes the following steps:
and S701, calculating to obtain a voltage change value by combining a preset voltage calculation formula and the magnetic field intensity change value.
The detection unit in the electromagnetic water meter is assumed to be a hall element, the preset voltage calculation formula can be U = KIB/d, in the formula, U is hall voltage, K is a hall coefficient, I is current intensity passing through the hall element, B is magnetic field intensity, and d is the width of the hall element, and under the condition that K, I, d is unchanged, the hall voltage U and the magnetic field intensity B are in a direct proportion relation, so that the voltage change value of the hall voltage can be calculated according to the magnetic field intensity change value.
And S702, calculating to obtain a water meter flow loss value according to the voltage change value and based on a Faraday electromagnetic induction law.
The calculation formula based on Faraday's law of electromagnetic induction is as follows: v = U/kbD, where k is a constant, D is the inner diameter of the measuring tube measured by the electromagnetic water meter, b is the magnetic flux density, V is the average flow velocity of the fluid in the measuring tube, and where k and D are constants, b is also a constant since the exciting current is constant, the flow rate V is linearly related to the voltage U as shown by V = U/kbD, and therefore the water meter flow loss value can be calculated from the voltage variation value.
The implementation principle of the embodiment is as follows:
the magnetic field change influences the electric field voltage, the voltage change value can be calculated by obtaining the magnetic field intensity change value, and the water meter flow loss value can be further calculated after the voltage change value is calculated because the electromagnetic water meter metering principle is based on the Faraday's law of electromagnetic induction and the voltage and the water flow are in a linear relation.
The embodiment of the application further discloses an anti-magnetic interference system for the electromagnetic water meter, which comprises a memory, a processor and a program which is stored on the memory and can run on the processor, wherein the program can be loaded and executed by the processor to realize the anti-magnetic interference method for the electromagnetic water meter as shown in fig. 1 to 7.
The implementation principle of the embodiment is as follows:
through the calling of the program, whether an interference magnetic field exists in the surrounding environment can be judged through the magnetic field change of the static magnetic field of the electromagnetic water meter, if the interference magnetic field exists, the magnetic field superposition state of the static magnetic field and the interference magnetic field can be firstly obtained, then the magnetic field intensity change value of the static magnetic field is obtained according to the magnetic field superposition state, the water meter flow loss value is calculated according to the magnetic field intensity change value based on the Faraday law of electromagnetic induction, and finally the flow value is corrected through the water meter flow loss value, so that the corrected flow value is obtained.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (8)

1. An anti-static magnetic interference method for an electromagnetic water meter is characterized by comprising the following steps:
acquiring a static magnetic field generated by an electromagnetic water meter and a flow value detected by the electromagnetic water meter;
judging whether an interference magnetic field exists in the environment where the electromagnetic water meter is located based on the magnetic field change of the static magnetic field;
if the interference magnetic field exists, acquiring a magnetic field superposition state of the static magnetic field and the interference magnetic field;
acquiring a magnetic field intensity change value based on the magnetic field superposition state;
calculating a water meter flow loss value based on the magnetic field intensity change value;
and correcting the flow value according to the flow loss value of the water meter to obtain a corrected flow value.
2. The method for preventing the electromagnetic interference on the electromagnetic water meter according to the claim 1, characterized in that the step of judging whether the electromagnetic water meter is in the environment with the interference magnetic field based on the magnetic field change of the static magnetic field comprises the following steps:
detecting whether the static magnetic field generates a magnetic field change;
if the static magnetic field does not change, determining that no interference magnetic field exists in the environment where the electromagnetic water meter is located;
if the static magnetic field generates the magnetic field change, counting the duration of the magnetic field change;
judging whether the duration time exceeds a preset time threshold value or not;
if the duration does not exceed the time threshold, judging that the interference magnetic field does not exist in the environment where the electromagnetic water meter is located;
and if the duration exceeds the time threshold, judging that the interference magnetic field exists in the environment where the electromagnetic water meter is located.
3. The method for preventing the static magnetic interference of the electromagnetic water meter according to the claim 1, wherein the step of obtaining the magnetic field strength variation value based on the magnetic field superposition state comprises the following steps:
generating a simulated static magnetic field and storing the static magnetic field intensity of the simulated static magnetic field;
constructing a simulation parameter list;
traversing the simulated parameter list and generating a simulated disturbing magnetic field around the simulated static magnetic field a plurality of times;
acquiring a simulated magnetic field superposition state and a simulated intensity change value of the static magnetic field intensity each time the simulated interference magnetic field is generated;
corresponding and binding each simulation intensity change value and the simulation magnetic field superposition state corresponding to the simulation intensity change value one by one to obtain a plurality of simulation information groups;
and storing all the analog information groups in a preset magnetic field analog database.
4. The method of claim 3, wherein said constructing a simulation parameter list includes the steps of:
arranging and combining a preset magnetic field direction list and a preset magnetic field center distance list to obtain a plurality of arrangement and combination results, wherein the magnetic field direction list comprises magnetic field direction combination modes of two different simulated magnetic fields, the magnetic field center distance list comprises a plurality of preset magnetic field center distances, and the magnetic field center distances are distances between magnetic field sources of the two different simulated magnetic fields;
sorting all the permutation and combination results based on the magnetic field center distances in the permutation and combination results;
and constructing a simulation parameter list according to all the sorted permutation and combination results.
5. The method for preventing the static magnetic interference of the electromagnetic water meter according to the claim 1, wherein the step of obtaining the magnetic field strength variation value based on the magnetic field superposition state comprises the following steps:
generating a simulated static magnetic field and storing the static magnetic field intensity of the simulated static magnetic field;
generating N times of simulated interference magnetic fields around the simulated static magnetic field based on preset N magnetic field center distances, wherein the magnetic field center distance is the distance between magnetic field sources of two different simulated magnetic fields, and the minimum value of the N magnetic field center distances is a reference magnetic field center distance;
acquiring a simulated magnetic field superposition state and a simulated intensity change value of the static magnetic field intensity when the simulated interference magnetic field is generated for N times;
performing linear fitting on the N magnetic field center distances and the N analog intensity change values to obtain a linear fitting result;
increasing the magnetic field center distance from the reference magnetic field center distance based on a preset increasing distance, and calculating to obtain M analog intensity change values according to the linear fitting result, wherein M is larger than N;
simulating M-N simulated magnetic field superposition states when the distance between the magnetic field centers increases progressively according to the N simulated magnetic field superposition states;
corresponding and binding the M analog intensity change values and the M analog magnetic field superposition states one by one based on the reference magnetic field center distance to obtain M analog information groups;
and storing all the analog information groups in a preset magnetic field analog database.
6. The method for preventing the magnetic interference on the electromagnetic water meter according to the claim 3 or 5, wherein the step of obtaining the magnetic field strength variation value based on the magnetic field superposition status comprises the following steps:
searching a target simulation magnetic field superposition state with the highest state matching degree in the magnetic field simulation database based on the magnetic field superposition state;
calling a target simulation information group corresponding to the target simulation magnetic field superposition state from the magnetic field simulation database;
and reading a target simulation intensity change value in the target simulation information group as a magnetic field intensity change value.
7. The method of claim 1, wherein the step of calculating the water meter flow loss value based on the magnetic field strength variation value comprises the steps of:
calculating by combining a preset voltage calculation formula and the magnetic field intensity change value to obtain a voltage change value;
and calculating to obtain a water meter flow loss value according to the voltage change value and based on a Faraday electromagnetic induction law.
8. An anti-magnetic interference system for an electromagnetic water meter, comprising a memory, a processor and a program stored in the memory and running on the processor, wherein the program can be loaded and executed by the processor to realize the anti-magnetic interference method for the electromagnetic water meter according to any one of claims 1 to 7.
CN202210989719.7A 2022-08-18 2022-08-18 Anti-static magnetic interference method and system for electromagnetic water meter Active CN115388962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210989719.7A CN115388962B (en) 2022-08-18 2022-08-18 Anti-static magnetic interference method and system for electromagnetic water meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210989719.7A CN115388962B (en) 2022-08-18 2022-08-18 Anti-static magnetic interference method and system for electromagnetic water meter

Publications (2)

Publication Number Publication Date
CN115388962A true CN115388962A (en) 2022-11-25
CN115388962B CN115388962B (en) 2023-06-16

Family

ID=84120616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210989719.7A Active CN115388962B (en) 2022-08-18 2022-08-18 Anti-static magnetic interference method and system for electromagnetic water meter

Country Status (1)

Country Link
CN (1) CN115388962B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06300606A (en) * 1993-04-15 1994-10-28 Matsushita Electric Ind Co Ltd Flow rate measuring equipment
JP2008224320A (en) * 2007-03-09 2008-09-25 Toshiba Corp Water meter
CN104123408A (en) * 2014-07-03 2014-10-29 国家电网公司 Method for preventing intelligent electric meter from external electromagnetic field interference based on finite element simulation analysis
CN106291092A (en) * 2016-07-29 2017-01-04 国家电网公司 The anti-outside Constant charge soil interference method of a kind of intelligent electric meter
US20180180682A1 (en) * 2016-12-22 2018-06-28 Microsoft Technology Licensing, Llc Magnetic interference detection and correction
CN113340383A (en) * 2020-03-03 2021-09-03 上海锐铼水务科技有限公司 Method and system for detecting magnetic field abnormality and compensating error of electromagnetic water meter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06300606A (en) * 1993-04-15 1994-10-28 Matsushita Electric Ind Co Ltd Flow rate measuring equipment
JP2008224320A (en) * 2007-03-09 2008-09-25 Toshiba Corp Water meter
CN104123408A (en) * 2014-07-03 2014-10-29 国家电网公司 Method for preventing intelligent electric meter from external electromagnetic field interference based on finite element simulation analysis
CN106291092A (en) * 2016-07-29 2017-01-04 国家电网公司 The anti-outside Constant charge soil interference method of a kind of intelligent electric meter
US20180180682A1 (en) * 2016-12-22 2018-06-28 Microsoft Technology Licensing, Llc Magnetic interference detection and correction
CN113340383A (en) * 2020-03-03 2021-09-03 上海锐铼水务科技有限公司 Method and system for detecting magnetic field abnormality and compensating error of electromagnetic water meter

Also Published As

Publication number Publication date
CN115388962B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
CN102062807B (en) Current measuring device and method
CN106569164A (en) Method and system for synchronization testing of electric quantity of double-core electric energy meter
JPH0394121A (en) Electromagnetic flow meter
CN105467460A (en) Method and device for electromagnetic prospecting
CN115388962B (en) Anti-static magnetic interference method and system for electromagnetic water meter
CN109669205A (en) A kind of Peak Search Method of seawater radionuclide K40 element
CN110068871A (en) A kind of miniature measuring system and method for vehicle-mounted time domain electromagnetic induction-polarity effect
CN110161117A (en) A kind of cable fatigue damage detection method based on guided wave group velocity
CN106291431B (en) A kind of tracking accuracy measurement method of current sensor
CN203055179U (en) Parking stall detecting device and parking stall detecting system
CN112050865B (en) Non-magnetic induction measuring device and calculating method of rotation information of rotating plate assembly
CN114441832A (en) Wire current determination method, device, computer equipment and storage medium
Bruzzone et al. Optimal magnetic probes location for current reconstruction in multistrands superconducting cables
Lim et al. The external magnetic field created by the superposition of identical parallel finite solenoids
CN110058318B (en) One-dimensional direction correction method of natural electric field based on measurement electrode coordinates
CN111665574B (en) Well logging interpretation method and system for rock thermal parameters
CN114318347A (en) Cathodic protection evaluation method, device, computer equipment and storage medium
CN110018274A (en) A kind of gas detection sensor scaling method not depending on calibrating gas
US20090045063A1 (en) Apparatus and method for detecting particles and microorganisms using magnetic field
Haroon Development of novel time-domain electromagnetic methods for offshore groundwater studies: a data application from Bat Yam, Israel
CN112882089B (en) Earthquake prediction system based on earth changing magnetic field
CN109858699A (en) Water quality quantitative simulation method, apparatus, electronic equipment and storage medium
CN110427691A (en) A kind of Three dimensional transient emulation mode for Pipeline Magnetic Flux Leakage Inspection
Wasif et al. Particle swarm optimization of excitation system design of magnetic eddy current sensor
CN214895491U (en) Device suitable for measure direct current distribution network direct current voltage

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