CN109855667B - Error calibration method suitable for different gauges - Google Patents

Error calibration method suitable for different gauges Download PDF

Info

Publication number
CN109855667B
CN109855667B CN201811571769.3A CN201811571769A CN109855667B CN 109855667 B CN109855667 B CN 109855667B CN 201811571769 A CN201811571769 A CN 201811571769A CN 109855667 B CN109855667 B CN 109855667B
Authority
CN
China
Prior art keywords
calibration
calibrated
meter
determining
mode
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.)
Active
Application number
CN201811571769.3A
Other languages
Chinese (zh)
Other versions
CN109855667A (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.)
Goldcard Smart Group Co Ltd
Original Assignee
Goldcard Smart Group 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 Goldcard Smart Group Co Ltd filed Critical Goldcard Smart Group Co Ltd
Priority to CN201811571769.3A priority Critical patent/CN109855667B/en
Publication of CN109855667A publication Critical patent/CN109855667A/en
Application granted granted Critical
Publication of CN109855667B publication Critical patent/CN109855667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to the technical field of instrument calibration, in particular to an error calibration method suitable for different instruments, which comprises the following steps: s1: connecting the meter to be calibrated with the calibration equipment in a communication way; s2: the calibration equipment sends a query command to the meter to be calibrated, acquires calibration information of the meter to be calibrated, and matches the calibration information with the types in the database to obtain a corresponding configuration file; s3: and calibrating the table to be calibrated according to the configuration file. According to the invention, the query command is sent to the meter to be calibrated by the calibration equipment, the calibration information of the meter to be calibrated is obtained, the calibration information is matched with the types in the database to obtain the corresponding configuration file, and finally, the meter to be calibrated is calibrated according to the configuration file, so that automatic calibration of different meters is realized, manual selection of a calibration scheme is not required, and the calibration accuracy and efficiency are improved.

Description

Error calibration method suitable for different gauges
Technical Field
The invention relates to the technical field of instrument calibration, in particular to an error calibration method suitable for different instruments.
Background
The verification of the instrument is an important link of instrument production. The current methods for calibrating meters generally include: 1. the metering error calibration is realized by replacing mechanical parts such as a calibration gear and the like; 2. and the metering error calibration is realized in a software correction mode.
Meters that require replacement of the calibration gear or other mechanical components to achieve calibration have been gradually replaced by smart meters. For the intelligent instrument for realizing error calibration by using software parameter configuration, due to different connection modes, different application layer communication protocols, different instrument specifications and different meter calibration strategies, manual intervention is required when different meters to be calibrated are calibrated, and a proper meter calibration scheme is selected manually, so that the mutual matching of the application layer communication protocols, the proper selected flow point and the reasonable error regulation setting are met, but the possibility of human errors is greatly improved by the operation, and one-click intelligent calibration is not realized.
Disclosure of Invention
In order to solve the above problems, the present invention provides an error calibration method suitable for different gauges to be compatible with different gauge calibration schemes, so as to improve compatibility.
An error calibration method suitable for different watches comprises the following steps:
s1: connecting the meter to be calibrated with the calibration equipment in a communication way;
s2: the calibration equipment sends a query command to the meter to be calibrated, acquires calibration information of the meter to be calibrated, and matches the calibration information with the types in the database to obtain a corresponding configuration file;
s3: and calibrating the table to be calibrated according to the configuration file.
Preferably, the step of communicatively connecting the meter to be calibrated with the calibration device comprises the following steps:
s101: the calibration equipment sends a connection request message to the meter to be calibrated, if the meter to be calibrated receives the request message and the content is correct, the request response is replied, and if the content is incorrect, the message reply is not carried out;
s102: after receiving the request response, the calibration equipment sends response information to the meter to be calibrated, when the meter to be calibrated receives the response information, a verification password instruction is replied, the calibration equipment is required to send a connection password, and if the calibration equipment cannot receive the verification password instruction, the handshake connection is ended;
s103: if the calibration equipment receives the password verification instruction, the password instruction is sent to the meter to be calibrated for verification, if the verification is passed, the connection is replied successfully, and if the verification is not passed, the communication is replied and ended;
s104: after receiving the connection success or ending the communication, the calibration device performs an analysis process, and if the connection is successful, the calibration device proceeds to step S2, and if the communication is ended, the calibration device ends the handshake connection.
Preferably, the calibration information includes: the method comprises the steps of calibrating a support mode, a communication protocol number, the specification of a meter to be calibrated, the type of the meter to be calibrated, a flow point to be detected and a detection standard number.
Preferably, the obtaining of the corresponding configuration file includes the following steps:
s201: determining a calibration support mode of a meter to be calibrated;
s202: determining a communication protocol number of a meter to be calibrated;
s203: determining the specification of a gauge to be calibrated;
s204: determining the type of a meter to be calibrated, and determining each flow point to be detected according to the type of the meter to be calibrated;
s205: determining the type detection standard number of the meter to be calibrated, and determining the calibration standard of the meter to be calibrated according to the detection standard number;
s206: generating a configuration file according to the steps S201-205.
Preferably, the calibrating the to-be-calibrated table according to the configuration file includes the following steps:
s301: calculating an error value under the flow point every time when one flow point is calibrated, and averaging all the error values after all the flow points are calibrated to be used as a default error value;
s302: sending all error values and default error values to a table to be calibrated, using the corresponding error values on the corresponding flow points containing the error values, and using the default error values on the flow points not containing the error values to perform recalibration;
s303: and repeating the steps S301 to S302 until the condition of finishing the calibration is met.
Preferably, the condition for the end of calibration includes:
if the calibration support mode of the meter to be calibrated is the LED calibration mode, when the collected LED flicker signal reaches the set threshold number N, the calibration is finished;
if the calibration support mode of the table to be calibrated is an cumulant query calibration mode, calculating the cumulant at the time t (Q) (t), and when the cumulant at the time t + [ delta ] t (Q (t + delta t) -t (Q) (t)) is larger than a cumulant threshold value Qm, finishing the calibration;
if the calibration support mode of the meter to be calibrated is a flow query calibration mode, calculating a flow value V (T) at the time T, and when the calibration time T' > the time threshold T, finishing the calibration.
Preferably, said calculating an error value at each calibrated flow point comprises:
determining a calibration mode according to the generated configuration file information;
if 1 calibration mode exists, calibrating the flow point in the calibration mode to obtain 1 group of calibration coefficients, and calculating an error value under the flow point according to the calibration coefficients;
if multiple calibration modes exist, the calibration of the flow point is carried out in each calibration mode to obtain multiple groups of calibration coefficients, the multiple groups of calibration coefficients are averaged to obtain a final calibration coefficient, and an error value at the flow point is calculated according to the final calibration coefficient.
By using the present invention, the following effects can be achieved: the method comprises the steps of sending a query command to a meter to be calibrated through calibration equipment, obtaining calibration information of the meter to be calibrated, matching the calibration information with types in a database to obtain a corresponding configuration file, and finally calibrating the meter to be calibrated according to the configuration file, so that automatic calibration of different meters is realized, manual selection of a calibration scheme is not needed, and the accuracy and efficiency of calibration are improved.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a schematic overall flow diagram of an embodiment of the present invention;
FIG. 2 is a flowchart illustrating step S1 according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating step S3 according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating step S3 according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
The basic idea of the invention is that the calibration equipment sends a query command to the meter to be calibrated, obtains the calibration information of the meter to be calibrated, matches the calibration information with the types in the database to obtain a corresponding configuration file, and finally calibrates the meter to be calibrated according to the configuration file.
As shown in fig. 1, the present embodiment provides an error calibration method suitable for different gauges, which includes the following steps:
s1: connecting the meter to be calibrated with the calibration equipment in a communication way;
the communication interface of the calibration device is electrically connected with the communication interface on the hardware circuit of the instrument to be calibrated, which is the premise of ensuring the interaction between the calibration device and the instrument to be calibrated. After the electrical connection is completed, the calibration device and the instrument to be calibrated are connected in a handshaking manner, so that the reliability of communication is ensured to be specific. As shown in fig. 2, the method comprises the following steps:
s101: the calibration device sends a connection request message to the meter to be calibrated, where in this embodiment, the connection request message is: 0x2F, 0x3F, 0x21, 0x0D, 0x 0A. If the table to be calibrated receives the request information and the content is correct, replying a request response: 0x2F, 0x47, 0x43, 0x44, 0x35, 0x5c, 0x57, 0x0D, 0x0A, if incorrect, no information reply is made. If the calibration device still does not receive a request reply after 5 attempts, the handshake connection is ended.
S102: after receiving the request response, the calibration device immediately sends response information to the meter to be calibrated, where the response information in this embodiment is: 0x06, 0x30, 0x35, 0x31, 0x0D, 0x 0A. When the meter to be calibrated receives the response message, replying a verification password instruction and requiring meter calibration software to send a connection password; the connection password is a group of numbers agreed by the meter calibration software and the software in the meter. According to the communication mechanism of fig. 1, if the calibration device still does not receive the verification password command after 5 times of attempts, the handshake connection is ended.
S103: and the calibration equipment receives the password verification instruction, sends the password instruction to the meter to be calibrated for verification, replies the connection success if the verification is passed, and replies the communication end if the verification is not passed. In this embodiment, the password verifying instruction is: 0x01, 0x50, 0x30, 0x02, 0x28, 0x29, 0x03, CS parity, cryptographic instructions are: : 0x01, 0x50, 0x31, 0x02, 0x28, password, 0x29, 0x03 and CS check bits. If the calibration device still does not receive a connection success or ends communication after 5 attempts, the handshake connection is ended.
S104: after receiving the connection success or ending the communication, the calibration device performs an analysis process, and if the connection is successful, the calibration device proceeds to step S2 to perform the next calibration operation, and if the connection is ended, the handshake connection is ended.
S2: the calibration equipment sends a query command to the meter to be calibrated, acquires calibration information of the meter to be calibrated, and matches the calibration information with the types in the database to obtain a corresponding configuration file; as shown in fig. 3, the method comprises the following steps:
s201: determining a calibration support mode of a meter to be calibrated;
through the information received by the calibration equipment, whether the meter to be calibrated supports the LED mode meter checking or the cumulant meter checking or the flow meter checking can be known.
S202: determining a communication protocol number of a meter to be calibrated;
it is known which communication protocol is used for the calibration communication, for example: and performing meter calibration communication by using the A protocol format or performing meter calibration communication by using the B protocol format.
S203: determining the specification of a gauge to be calibrated;
it is known which gauge the gauge to be calibrated is, for example: g4, G6, from which the minimum value Qmin and the maximum value Qmax of the flow of the meter to be calibrated are known.
S204: determining the type of a meter to be calibrated, and determining each flow point to be detected according to the type of the meter to be calibrated;
and (4) obtaining whether the type of the gauge to be calibrated is an ultrasonic gauge, a thermal gauge or a leather diaphragm gauge, and then obtaining the gauge specification and the type of the gauge to be calibrated according to the gauge to be calibrated. Knowing the various flow points to be detected, for example: the measurements were performed at several flow points Qmin, 3 × Qmin, 0.1 × Qmax, 0.2 × Qmax, 0.4 × Qmax, 0.7 × Qmax, Qmax.
S205: determining the type detection standard number of the meter to be calibrated, and determining the calibration standard of the meter to be calibrated according to the detection standard number;
the detection standard used for detection is known by a detection standard number, such as: the flow rate between Qmin and 0.1 × Qmax needs to satisfy the error ± a%, the flow rate between 0.1 × Qmax and Qmax needs to satisfy the error ± b%, all the flow rate point errors within the range of 0.1 × Qmax and Qmax, the difference between the maximum value and the minimum value does not exceed c%, and the like.
S206: generating a configuration file according to the steps S201-205.
And storing various calibration information of the table to be calibrated in the database, and matching the calibration information with the types in the database to obtain a corresponding configuration file.
S3: and calibrating the table to be calibrated according to the configuration file. As shown in fig. 4, the method specifically includes the following steps:
s301: calculating an error value under the flow point every time when one flow point is calibrated, and averaging all the error values after all the flow points are calibrated to be used as a default error value;
if only one calibration mode is involved, the calibration of the flow point is carried out in this calibration mode. For example: the LEDs are used to calibrate each flow point, resulting in a set of calibration coefficients { a1, a2, a3, a4, a5, … … }, from which error values at that flow point are calculated.
If two calibration modes are included, the calibration is performed using the two calibration modes. For example: the calibration method comprises LED calibration and cumulant query calibration, wherein in the calibration, the LED is firstly used for calibrating each flow point to obtain a group of calibration coefficients { a1, a2, a3, a4, a5 and … … }, then cumulant query is used for calibrating each flow point to obtain { b1, b2, b3, b4, b5 and … … }, then the two groups of calibration coefficients are averaged to obtain a final calibration coefficient { (a1+ b1)/2, (a2+ b2)/2 and … … }, and an error value at the flow point is calculated according to the final calibration coefficient.
If the calibration mode comprises three calibration modes, the calibration is carried out by using the three calibration modes to obtain three sets of calibration coefficients under each calibration mode: { a1, a2, a3, a4, a5, … … }, { b1, b2, b3, b4, b5, … … }, { c1, c2, c3, c4, c5, … … }, then averaging to obtain a final calibration coefficient { (a1+ b1+ c1)/3, (a2+ b2+ c2)/3, … … }, and calculating an error value at the flow point according to the final calibration coefficient.
S302: sending all error values and default error values to a table to be calibrated, using the corresponding error values on the corresponding flow points containing the error values, and using the default error values on the flow points not containing the error values to perform recalibration;
s303: and repeating the steps S301 to S302 until the condition of finishing the calibration is met.
The calibration equipment sends a command for inquiring whether the calibration is completed to the table to be calibrated: for the LED calibration mode, the command is null; and for the cumulant query calibration mode, the command is to query the numerical value of cumulant of the meter to be calibrated, and for the flow query calibration mode, the command is to query the flow value at the current moment. The inquiry checks whether the command is completed or not, the command is sent every 100ms, and the sending times n are recorded.
And returning the calibration state of the gauge to be calibrated to the calibration equipment:
if the calibration support mode of the meter to be calibrated is the LED calibration mode, when the collected LED flicker signal reaches the set threshold number N, the calibration is finished;
if the calibration support mode of the table to be calibrated is an cumulant query calibration mode, calculating the cumulant at the time t (Q) (t), and when the cumulant at the time t + [ delta ] t (Q (t + delta t) -t (Q) (t)) is larger than a cumulant threshold value Qm, finishing the calibration; for example: the flow rate between Qmin and 0.1 × Qmax should correspond to ± 3% of the specification, the flow rate between 0.1 × Qmax and Qmax should correspond to ± 1.5% of the specification, the difference between the maximum value and the minimum value of the calibration coefficient should not exceed 2% of the specification, the difference between the calibration coefficient and the sign should not exceed 1% of the specification, and so on.
If the calibration support mode of the meter to be calibrated is a flow query calibration mode, calculating a flow value V (T) at the time T, and when the calibration time T' > the time threshold T, finishing the calibration.
Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (5)

1. An error calibration method suitable for different gauges is characterized by comprising the following steps:
s1: connecting the meter to be calibrated with the calibration equipment in a communication way;
s2: the calibration equipment sends a query command to the meter to be calibrated, acquires calibration information of the meter to be calibrated, and matches the calibration information with the types in the database to obtain a corresponding configuration file;
s3: calibrating the table to be calibrated according to the configuration file:
s301: calculating an error value under the flow point every time when one flow point is calibrated, and averaging all the error values after all the flow points are calibrated to be used as a default error value;
s302: sending all error values and default error values to a table to be calibrated, using the corresponding error values on the corresponding flow points containing the error values, and using the default error values on the flow points not containing the error values to perform recalibration;
s303: repeating the steps S301 to S302 until a calibration end condition is met, wherein the calibration end condition comprises:
if the calibration support mode of the meter to be calibrated is the LED calibration mode, when the collected LED flicker signal reaches the set threshold number N, the calibration is finished;
if the calibration support mode of the table to be calibrated is an cumulant query calibration mode, calculating the cumulant at the time t (Q) (t), and when the cumulant at the time t + [ delta ] t (Q (t + delta t) -t (Q) (t)) is larger than a cumulant threshold value Qm, finishing the calibration;
if the calibration support mode of the meter to be calibrated is a flow query calibration mode, calculating a flow value V (T) at the time T, and when the calibration time T' > the time threshold T, finishing the calibration.
2. The method according to claim 1, wherein the step of communicatively connecting the gauge to be calibrated to the calibration device comprises the steps of:
s101: the calibration equipment sends a connection request message to the meter to be calibrated, if the meter to be calibrated receives the request message and the content is correct, the request response is replied, and if the content is incorrect, the message reply is not carried out;
s102: after receiving the request response, the calibration equipment sends response information to the meter to be calibrated, when the meter to be calibrated receives the response information, a verification password instruction is replied, the calibration equipment is required to send a connection password, and if the calibration equipment cannot receive the verification password instruction, the handshake connection is ended;
s103: if the calibration equipment receives the password verification instruction, the password instruction is sent to the meter to be calibrated for verification, if the verification is passed, the connection is replied successfully, and if the verification is not passed, the communication is replied and ended;
s104: after receiving the connection success or ending the communication, the calibration device performs an analysis process, and if the connection is successful, the calibration device proceeds to step S2, and if the communication is ended, the calibration device ends the handshake connection.
3. The method of claim 1, wherein the calibration information comprises: the method comprises the steps of calibrating a support mode, a communication protocol number, the specification of a meter to be calibrated, the type of the meter to be calibrated, a flow point to be detected and a detection standard number.
4. The method of claim 3, wherein the obtaining of the corresponding profile comprises:
s201: determining a calibration support mode of a meter to be calibrated;
s202: determining a communication protocol number of a meter to be calibrated;
s203: determining the specification of a gauge to be calibrated;
s204: determining the type of a meter to be calibrated, and determining each flow point to be detected according to the type of the meter to be calibrated;
s205: determining the type detection standard number of the meter to be calibrated, and determining the calibration standard of the meter to be calibrated according to the detection standard number;
s206: generating a configuration file according to the steps S201-205.
5. The method of claim 1, wherein calculating the error value for each calibrated flow point comprises:
determining a calibration mode according to the generated configuration file information;
if 1 calibration mode exists, calibrating the flow point in the calibration mode to obtain 1 group of calibration coefficients, and calculating an error value under the flow point according to the calibration coefficients;
if multiple calibration modes exist, the calibration of the flow point is carried out in each calibration mode to obtain multiple groups of calibration coefficients, the multiple groups of calibration coefficients are averaged to obtain a final calibration coefficient, and an error value at the flow point is calculated according to the final calibration coefficient.
CN201811571769.3A 2018-12-21 2018-12-21 Error calibration method suitable for different gauges Active CN109855667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811571769.3A CN109855667B (en) 2018-12-21 2018-12-21 Error calibration method suitable for different gauges

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811571769.3A CN109855667B (en) 2018-12-21 2018-12-21 Error calibration method suitable for different gauges

Publications (2)

Publication Number Publication Date
CN109855667A CN109855667A (en) 2019-06-07
CN109855667B true CN109855667B (en) 2022-02-22

Family

ID=66891806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811571769.3A Active CN109855667B (en) 2018-12-21 2018-12-21 Error calibration method suitable for different gauges

Country Status (1)

Country Link
CN (1) CN109855667B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110849449B (en) * 2019-11-15 2021-09-14 成都千嘉科技有限公司 Encryption correction method for ultrasonic gas meter
CN111157081B (en) * 2019-12-26 2021-09-14 金卡智能集团股份有限公司 Calibration method of electronic gas meter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102749604A (en) * 2012-06-27 2012-10-24 北京泛华恒兴科技有限公司 Automatic calibrator, calibration system and calibration method of testing equipment
CN103256954A (en) * 2012-02-10 2013-08-21 Nxp股份有限公司 Calibration method, calibration device and measurement device
CN103697928A (en) * 2013-12-25 2014-04-02 北京航天测控技术有限公司 Instrument calibration method and device
CN107003160A (en) * 2014-12-15 2017-08-01 通用电气公司 The system and method calibrated for spot measurement device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5178374B2 (en) * 2008-07-29 2013-04-10 キヤノン株式会社 Detection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103256954A (en) * 2012-02-10 2013-08-21 Nxp股份有限公司 Calibration method, calibration device and measurement device
CN102749604A (en) * 2012-06-27 2012-10-24 北京泛华恒兴科技有限公司 Automatic calibrator, calibration system and calibration method of testing equipment
CN103697928A (en) * 2013-12-25 2014-04-02 北京航天测控技术有限公司 Instrument calibration method and device
CN107003160A (en) * 2014-12-15 2017-08-01 通用电气公司 The system and method calibrated for spot measurement device

Also Published As

Publication number Publication date
CN109855667A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109855667B (en) Error calibration method suitable for different gauges
CN104297717A (en) Electric energy meter correction method and system and electric energy meter
CN108089141B (en) Error correction method and device of current measuring device based on current divider
CN108151786B (en) Automatic detection system for angle error of photoelectric encoder and system error correction method
EP2378834B1 (en) Method and circuit for automatic calibration of the power of electromagnetic oven
CN110988782B (en) Calibration circuit and system, electric energy metering chip and metering device
US9228905B2 (en) RTD measurement device
US11221232B2 (en) Installation of meters and determining consumption based on meter data management system and certified meter configuration data
CN103245703B (en) Electrochemical sensor, the facility comprising it and corresponding demarcation and/or method of adjustment
CN101629994B (en) Method for automatically calibrating terminal in batch
CN102088714A (en) Test system and power calibration method thereof
KR101103613B1 (en) Metering system using mobile communication network
US9632052B2 (en) Modular measuring device with distributed data and algorithms
CN104852743B (en) Absolute value encoder signal processing apparatus and method
US9094430B2 (en) Method for identifying smart meters in a smart grid
WO2016165091A1 (en) Apparatus and method for processing signal of absolute value encoder
CN104457641A (en) Position-measuring device and method for checking a work cycle signal
CN111156893B (en) Motor operation angle measuring method and system and joint angle measuring system
CN110530544A (en) A kind of temperature correction method and system
DK201100759A (en) Radio protocol for communication with meter devices
CN106483486A (en) A kind of continuous wave power probe power calibration system and method
CN107786264B (en) ONT power calibration method based on data analysis
CN115144809A (en) Remote calibration method and system for intelligent electric meter
CN112285635B (en) Terminal correction method and system of external current transformer
CN109407042B (en) Intelligent electric meter calibration method

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