CN116164879A - Pressure sensor compensation method, device, equipment and medium - Google Patents

Pressure sensor compensation method, device, equipment and medium Download PDF

Info

Publication number
CN116164879A
CN116164879A CN202310183065.3A CN202310183065A CN116164879A CN 116164879 A CN116164879 A CN 116164879A CN 202310183065 A CN202310183065 A CN 202310183065A CN 116164879 A CN116164879 A CN 116164879A
Authority
CN
China
Prior art keywords
pressure
compensation
temperature
pressure sensor
precision
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.)
Pending
Application number
CN202310183065.3A
Other languages
Chinese (zh)
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.)
Chongqing Silian Sensor Technology Co ltd
Original Assignee
Chongqing Silian Sensor Technology 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 Chongqing Silian Sensor Technology Co ltd filed Critical Chongqing Silian Sensor Technology Co ltd
Priority to CN202310183065.3A priority Critical patent/CN116164879A/en
Publication of CN116164879A publication Critical patent/CN116164879A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L19/00Details of, or accessories for, apparatus for measuring steady or quasi-steady pressure of a fluent medium insofar as such details or accessories are not special to particular types of pressure gauges
    • G01L19/04Means for compensating for effects of changes of temperature, i.e. other than electric compensation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L19/00Details of, or accessories for, apparatus for measuring steady or quasi-steady pressure of a fluent medium insofar as such details or accessories are not special to particular types of pressure gauges
    • G01L19/0092Pressure sensor associated with other sensors, e.g. for measuring acceleration or temperature
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L27/00Testing or calibrating of apparatus for measuring fluid pressure
    • G01L27/002Calibrating, i.e. establishing true relation between transducer output value and value to be measured, zeroing, linearising or span error determination

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The application relates to the technical field of sensors, and provides a pressure sensor compensation method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring first pressure display values and first temperature display values corresponding to the plurality of target pressure sensors, the plurality of first compensation pressures and the plurality of first compensation temperatures; configuring a plurality of target pressure sensors according to the optimal configuration information according to the first pressure display value and the first temperature display value; receiving a second pressure display value and a second temperature display value corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining an actual pressure value and an actual temperature value according to the second pressure display value and the second temperature display value; and respectively comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature to obtain pressure precision and temperature precision, and judging whether the pressure precision and the temperature precision are within a preset precision range so as to complete the compensation of the pressure sensor.

Description

Pressure sensor compensation method, device, equipment and medium
Technical Field
The application relates to the technical field of sensors, in particular to a pressure sensor compensation method, a pressure sensor compensation device, pressure sensor compensation equipment and pressure sensor compensation media.
Background
Digital pressure sensors are oil filled OEM (Original Equipment Manufacturer ) pressure sensitive elements that employ stainless steel corrugated diaphragm isolation. The pressure to be measured is transmitted to a silicon pressure sensitive chip with a precise mechanical structure of a Wheatstone bridge through an isolation diaphragm and poured silicon oil, so that the accurate conversion of the pressure to be measured and an analog signal is realized, and then the temperature compensation and the nonlinear correction are carried out through a customized special integrated circuit, and the pressure data and the temperature data which accord with a communication interface protocol are output.
In the existing process of producing the digital pressure sensor, production line personnel are required to detect and compensate for a plurality of digital pressure sensors, and the problems of long production period, low production efficiency and incapability of accurate compensation exist.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present application is to provide a method, an apparatus, a device and a medium for compensating a pressure sensor, which are used for solving the problems that in the prior art, a production line personnel is required to detect and compensate for a plurality of digital pressure sensors, and the production period is long, the production efficiency is low, and accurate compensation cannot be performed.
To achieve the above and other related objects, the present application provides a pressure sensor compensation method, the method comprising:
acquiring first pressure display values and first temperature display values corresponding to the plurality of target pressure sensors, the plurality of first compensation pressures and the plurality of first compensation temperatures;
obtaining optimal configuration information corresponding to the target pressure sensors according to the first pressure display value and the first temperature display value, and configuring the target pressure sensors according to the optimal configuration information;
receiving second pressure display values and second temperature display values corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining an actual pressure value and an actual temperature value according to the second pressure display values, the second temperature display values and preset display value conversion rules;
and respectively comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature to obtain pressure precision and temperature precision, judging whether the pressure precision and the temperature precision are within a preset precision range, and finishing the compensation of the pressure sensor according to a judging result.
In an embodiment of the application, before obtaining the first pressure display values and the first temperature display values corresponding to the plurality of target pressure sensors and the plurality of first compensation pressures and the plurality of first compensation temperatures, the method further includes:
issuing a communication detection signal to a pre-configured communication transfer template, and performing communication detection on a plurality of candidate pressure sensors in a candidate pressure sensor list according to the communication detection signal;
and if the communication detection of the candidate pressure sensor fails, removing the candidate pressure sensor with the communication detection failure from the candidate pressure sensor list to obtain the target pressure sensors.
In an embodiment of the present application, after obtaining the plurality of target pressure sensors, the method further includes:
acquiring preset initial configuration information;
according to the initial configuration information, the plurality of target pressure sensors are initially configured, and third pressure display values of the plurality of target pressure sensors, which are subjected to initial configuration, in a preset pressure test environment are received;
and judging whether the target pressure sensors with the initial configuration completed can be compensated or not according to the third pressure display value and the preset pressure display value range.
In an embodiment of the present application, determining whether the plurality of target pressure sensors after the initial configuration is completed can perform compensation according to the third pressure display value and the preset pressure display value range includes:
if the third pressure display value is in the preset pressure display value range, determining that the target pressure sensor with the initial configuration being completed can compensate;
if the third pressure display value is not in the preset pressure display value range, determining that the target pressure sensor with the initial configuration being completed cannot be compensated, receiving the position information of the target pressure sensor which cannot be compensated, and generating a pressure sensor rejection instruction according to the position information.
In an embodiment of the present application, the representation of the display value conversion rule includes:
Figure BDA0004102870430000031
wherein Max Measuring range For maximum range of pressure sensor, min Measuring range Max, which is the minimum range of the pressure sensor Percentage of Min, the maximum percentage of the full range of the pressure sensor Percentage of Xbits is the minimum percentage of the full range of the pressure sensor, and Xbits is the number of character bits output by the micro control unit.
In an embodiment of the present application, the representation of the display value conversion rule further includes:
Figure BDA0004102870430000032
In an embodiment of the present application, determining whether the pressure accuracy and the temperature accuracy are within a preset accuracy range, and completing the compensation of the pressure sensor according to the determination result includes:
if the pressure precision and the temperature precision are within the preset precision range, determining that the plurality of target pressure sensors are successfully compensated;
if the pressure precision and the temperature precision are not in the preset precision range, acquiring new initial configuration information, carrying out initial configuration on the plurality of target pressure sensors according to the new initial configuration information, then acquiring new optimal configuration information of the plurality of target pressure sensors with the initial configuration completed, and compensating the plurality of target pressure sensors according to the new optimal configuration information.
In an embodiment of the present application, there is also provided a pressure sensor compensation apparatus, the apparatus including:
the first compensation module is used for acquiring first pressure display values and first temperature display values corresponding to the plurality of target pressure sensors, the plurality of first compensation pressures and the plurality of first compensation temperatures;
the optimal configuration module is used for obtaining optimal configuration information corresponding to the target pressure sensors according to the first pressure display value and the first temperature display value, and configuring the target pressure sensors according to the optimal configuration information;
The second compensation module is used for receiving second pressure display values and second temperature display values corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining actual pressure values and actual temperature values according to the second pressure display values, the second temperature display values and preset display value conversion rules;
and the precision judging module is used for comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature respectively to obtain pressure precision and temperature precision, judging whether the pressure precision and the temperature precision are in a preset precision range or not, and finishing the compensation of the pressure sensor according to a judging result.
In an embodiment of the present application, there is also provided an electronic device including:
one or more processors;
and a storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the pressure sensor compensation method as described above.
In an embodiment of the present application, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the pressure sensor compensation method as described above.
The invention has the beneficial effects that:
firstly, acquiring first pressure display values and first temperature display values corresponding to a plurality of target pressure sensors, a plurality of first compensation pressures and a plurality of first compensation temperatures; obtaining optimal configuration information corresponding to the target pressure sensors according to the first pressure display value and the first temperature display value, and configuring the target pressure sensors according to the optimal configuration information; receiving second pressure display values and second temperature display values corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining an actual pressure value and an actual temperature value according to the second pressure display values, the second temperature display values and preset display value conversion rules; and finally, comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature respectively to obtain pressure precision and temperature precision, judging whether the pressure precision and the temperature precision are within a preset precision range, and finishing the compensation of the pressure sensor according to a judging result. According to the invention, the acquisition of the display value, the calculation of the optimal configuration information and the configuration of the configuration information can be completed through the automatic control system, then the compensation of the pressure sensor is completed through the precision comparison, no personnel in a production line are involved in the whole process, the unattended operation and the automatic compensation calibration can be realized, a plurality of pressure sensors can be compensated and calibrated at one time, the production time is saved, and the production efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram of an implementation environment of a pressure sensor compensation method according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart diagram illustrating a method of pressure sensor compensation according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating communication detection and initial configuration information configuration of a pressure sensor according to an exemplary embodiment of the present application;
FIG. 4 is a schematic flow diagram illustrating a first compensation of a pressure sensor according to an exemplary embodiment of the present application;
FIG. 5 is a schematic flow diagram illustrating a second compensation of a pressure sensor according to an exemplary embodiment of the present application;
FIG. 6 is a block diagram of a pressure sensor compensation apparatus shown in an exemplary embodiment of the present application;
fig. 7 shows a schematic diagram of a computer system suitable for an electronic device according to an embodiment of the application.
Detailed Description
Further advantages and effects of the present invention will become readily apparent to those skilled in the art from the disclosure herein, by referring to the accompanying drawings and the preferred embodiments. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present invention, it will be apparent, however, to one skilled in the art that embodiments of the present invention may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present invention.
It should be noted that the digital pressure sensor works on the principle that pressure acts directly on the diaphragm of the sensor, so that the diaphragm generates micro displacement proportional to the pressure of the medium, the resistance of the sensor changes, and an electronic circuit detects the change and converts and outputs a digital standard signal corresponding to the pressure. In an actual use environment of the pressure sensor, because of the influence of the ambient temperature, errors exist between a display value and an actual value, and therefore compensation calibration of the pressure sensor is needed. In the existing pressure sensor production process, the compensation calibration of the pressure sensor is mostly based on manual compensation calibration of production line personnel, the production line personnel needs to operate on duty and frequently operate various equipment and instruments, the problems of long production period and low production efficiency of the pressure sensor can be caused, and meanwhile the problems of large temperature drift, low qualification rate and the like can be generated.
FIG. 1 is a schematic diagram of an implementation environment of a pressure sensor compensation method according to an exemplary embodiment of the present application.
Referring to fig. 1, the implementation environment may include a pressure sensor compensation system 101 and a pressure sensor 102, where the pressure sensor compensation system 101 is configured to obtain a display value of the pressure sensor 102 and perform initial configuration and optimal configuration on the pressure sensor, and the pressure sensor compensation system 101 also controls an ambient temperature and pressure of the pressure sensor 102.
In an embodiment of the present application, the pressure sensor compensation system 101 obtains first pressure display values and first temperature display values corresponding to a plurality of target pressure sensors, a plurality of first compensation pressures, and a plurality of first compensation temperatures; obtaining optimal configuration information corresponding to the target pressure sensors according to the first pressure display value and the first temperature display value, and configuring the target pressure sensors according to the optimal configuration information; receiving second pressure display values and second temperature display values corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining an actual pressure value and an actual temperature value according to the second pressure display values, the second temperature display values and preset display value conversion rules; and respectively comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature to obtain pressure precision and temperature precision, judging whether the pressure precision and the temperature precision are within a preset precision range, and finishing the compensation of the pressure sensor according to a judging result. The automatic control system is used for completing the collection of the display value, the calculation of the optimal configuration information and the configuration of the configuration information, and then the compensation of the pressure sensor is completed through the precision comparison, so that the personnel participation of a production line is not needed in the whole process, the unattended operation and the automatic compensation calibration can be realized, the plurality of pressure sensors can be compensated and calibrated at one time, the production time is saved, and the production efficiency is improved.
Illustratively, the pressure sensor compensation system 101 includes hardware, a lower computer, and an upper computer. The hardware is an MCU (Microcontroller Unit, micro control unit) as a main control unit for controlling the multi-path analog switch and controlling the on-off of the communication interfaces of the pressure sensors so as to realize the communication switching of the pressure sensors, and the hardware can also comprise a communication adapter plate which is arranged in the oven so as to realize the connection of the pressure sensors and the MCU; the lower computer is mainly responsible for data acquisition, register configuration, data transmission and pressure sensor communication switching of the pressure sensor, and can also process the control problems of the oven and the pressure controller, so as to realize bridging between the pressure sensor and the upper computer; the upper computer is mainly responsible for operating the interface and calculating according to the acquired display value to obtain the optimal configuration information and transmitting the optimal configuration information to the lower computer, and the lower computer writes the optimal configuration information into a register of the pressure sensor.
The foregoing describes an exemplary implementation environment for applying the technical solutions of the present application, and the following describes a pressure sensor compensation method of the present application.
In order to solve the problems that in the existing process of producing digital pressure sensors, production line personnel are required to detect and compensate for a plurality of digital pressure sensors, and the production period is long, the production efficiency is low, and accurate compensation cannot be performed, embodiments of the present application respectively propose a pressure sensor compensation method, a pressure sensor compensation device, an electronic device, a computer readable storage medium, and a computer program pressure sensor, and these embodiments will be described in detail below.
Referring to fig. 2, fig. 2 is a flow chart illustrating a pressure sensor compensation method according to an exemplary embodiment of the present application, which can be applied to the implementation environment shown in fig. 1. It should be understood that the method may be adapted to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and the implementation environments to which the method is adapted are not limited by the present embodiment.
As shown in fig. 2, in an exemplary embodiment, the pressure sensor compensation method at least includes steps S210 to S240, which are described in detail below:
in step S210, first pressure display values and first temperature display values of the plurality of target pressure sensors corresponding to the plurality of first compensation pressures and the plurality of first compensation temperatures are acquired.
In the process of producing the pressure sensor, the pressure sensor compensation system 101 controls the ambient temperature of the oven on the pressure sensor production line to rise to the first compensation temperature, controls the pressure controller to output the first compensation pressure, and then the lower computer collects the pressure display values and the temperature display values of the plurality of target pressure sensors on the production line when corresponding to the plurality of pressures in the plurality of temperature environments. Wherein the ranges of the plurality of target pressure sensors may or may not be uniform; the lower computer can acquire the pressure display value and the temperature display value by acquiring the code value of the target pressure sensor, and then transmit the pressure display value and the temperature display value to the upper computer to calculate the optimal configuration information.
In step S220, optimal configuration information corresponding to the plurality of target pressure sensors is obtained according to the first pressure display value and the first temperature display value, and the plurality of target pressure sensors are configured according to the optimal configuration information.
The upper computer receives the first pressure display value and the first temperature display value uploaded by the lower computer, calculates to obtain optimal configuration information according to a preset optimal configuration information calculation mode, then transmits the optimal configuration information to the lower computer, and the lower computer transmits the optimal configuration information to a register address of each target pressure sensor to complete configuration of the optimal configuration information.
In step S230, the configured second pressure display values and second temperature display values corresponding to the plurality of target pressure sensors and the plurality of second compensation pressures and second compensation temperatures are received, and the actual pressure values and the actual temperature values are determined according to the second pressure display values, the second temperature display values and the preset display value conversion rules.
For example, after the lower computer completes the configuration of the optimal configuration information, the pressure sensor compensation system 101 controls the temperature of the oven to rise to the second compensation temperature, and then controls the pressure controller to output a plurality of second compensation pressures in the environment of the second compensation temperature. The lower computer collects second pressure display values and second temperature display values corresponding to the second compensation pressures and the second compensation temperatures, and then converts the second pressure display values and the second temperature display values into actual pressure values and actual temperature values through preset display value conversion rules.
In step S240, the actual pressure value and the actual temperature value are compared with the second compensation pressure and the second compensation temperature respectively to obtain pressure accuracy and temperature accuracy, whether the pressure accuracy and the temperature accuracy are within a preset accuracy range is determined, and compensation of the pressure sensor is completed according to the determination result.
As can be seen from the foregoing steps S210 to S240, the solution provided in this embodiment may complete the collection of the display value, the calculation of the optimal configuration information, and the configuration of the configuration information through the automatic control system, and then complete the compensation of the pressure sensor through the precision comparison, so that no personnel in the production line are involved in the whole process, unmanned on duty and automatic compensation calibration can be realized, and multiple pressure sensors can be compensated and calibrated at one time, thereby saving the production time and improving the production efficiency.
In an embodiment of the present application, before acquiring the first pressure display values and the first temperature display values corresponding to the plurality of target pressure sensors and the plurality of first compensation pressures and the plurality of first compensation temperatures in step S210 shown in fig. 2, the method further includes the following steps:
issuing a communication detection signal to a pre-configured communication transfer template, and performing communication detection on a plurality of candidate pressure sensors in a candidate pressure sensor list according to the communication detection signal;
And if the communication detection of the candidate pressure sensor fails, removing the candidate pressure sensor with the communication detection failure from the candidate pressure sensor list to obtain the target pressure sensors.
In an embodiment of the present application, after obtaining the plurality of target pressure sensors, the method further includes the following steps:
acquiring preset initial configuration information;
according to the initial configuration information, the plurality of target pressure sensors are initially configured, and third pressure display values of the plurality of target pressure sensors, which are subjected to initial configuration, in a preset pressure test environment are received;
and judging whether the target pressure sensors with the initial configuration completed can be compensated or not according to the third pressure display value and the preset pressure display value range.
In an embodiment of the present application, according to the third pressure display value and the preset pressure display value range, determining whether the plurality of target pressure sensors after the initial configuration is completed can perform compensation includes the following steps:
if the third pressure display value is in the preset pressure display value range, determining that the target pressure sensor with the initial configuration being completed can compensate;
If the third pressure display value is not in the preset pressure display value range, determining that the target pressure sensor with the initial configuration being completed cannot be compensated, receiving the position information of the target pressure sensor which cannot be compensated, and generating a pressure sensor rejection instruction according to the position information.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating communication detection and initial configuration information configuration of a pressure sensor according to an exemplary embodiment of the present application. When the pressure sensors are placed on the oven clamp, the production line personnel only need to click a start button on an operation interface of the upper computer, at the moment, the upper computer sends a communication detection signal to the lower computer, the lower computer transmits the communication detection signal to a communication transfer template pre-configured in the oven, global scanning is carried out on a plurality of candidate pressure sensors on the production line through the communication transfer template, whether the communication of each pressure sensor is normal is confirmed, and the abnormal pressure sensor is displayed and discarded. When the lower computer transmits the communication detection signal to the communication transfer template pre-configured in the oven, the candidate pressure sensor can be selected to perform global scanning according to the pre-configured candidate pressure sensor list, when the communication detection of the candidate pressure sensor fails, the candidate pressure sensor is deleted from the candidate pressure sensor list, and the remaining candidate pressure sensor with successful communication detection is the target pressure sensor.
After the communication detection is completed and a plurality of target pressure sensors are obtained, the lower computer sends initial configuration information to registers of the plurality of target pressure sensors and completes initial configuration. At this time, the pressure controller is controlled to output 0% and 100% of pressure to form a pressure test environment, and whether the third pressure display value of the pressure sensor before uncompensated is within a preset pressure display value range is confirmed, wherein the preset pressure display value range in the embodiment of the application can be, for example, 20+/-5% and 80+/-5% of the measuring range. If the third pressure display value is within 20+/-5% and 80+/-5%, determining that the target pressure sensor with the initial configuration is capable of compensating; if the third pressure display value is not within 20+/-5% and 80+/-5%, determining that the target pressure sensor with the initially configured target pressure sensor cannot be compensated, receiving the position information of the target pressure sensor which cannot be compensated, generating a pressure sensor rejection instruction according to the position information, and rejecting the target pressure sensor which cannot be compensated according to the pressure sensor rejection instruction by a product rejection module on a controllable pressure sensor production line or displaying and early warning to a line staff according to the pressure sensor rejection instruction.
In an embodiment of the present application, referring to fig. 4, fig. 4 is a schematic flow diagram illustrating a first compensation of a pressure sensor according to an exemplary embodiment of the present application. The pressure sensor compensation system 101 automatically controls the temperature of the oven to rise and fall after confirming that the initial configuration of the target pressure sensor is successful, judges whether the temperature in the oven reaches T1, T2 and T3, and if the temperature in the oven does not reach T1, T2 and T3, waits for the temperature to meet T1, T2 and T3, and then executes the next step; when the temperatures in the oven reach T1, T2, and T3 respectively, first pressure display values and first temperature display values of three points P1, P2, and P3 are required to be acquired at each temperature point, in this embodiment, P1, P2, and P3 are respectively 0%, 50%, and 100%, and whether the pressures meet P1, P2, and P3 at each temperature point is required to be determined, if the pressures do not meet P1, P2, and P3, the pressure needs to be waited for meeting the requirements, and nine sets of data of P1, P2, and P3 at three temperature points T1, T2, and T3 can be acquired after the pressures meet the requirements. The upper computer calculates the acquired code value data to obtain optimal configuration information, and when the optimal configuration information meets the preset optimal configuration information data range, the optimal configuration information is sent to the lower computer, and the lower computer writes the optimal configuration information into the corresponding register address of each target pressure sensor. When the optimal configuration information does not meet the preset optimal configuration information data range, other preset optimal configuration information is imported, if the importing of the other preset optimal configuration information fails, the fact that the current target pressure sensor does not pass through the unqualified product is determined, and the product failed for the second time is discarded and the position of the product is displayed.
In an embodiment of the present application, the representation of the display value conversion rule includes:
Figure BDA0004102870430000111
wherein Max Measuring range For Min Measuring range For Max Percentage of For Min Percentage of For Xbaits, the micro control unit outputs the number of character bits.
In an embodiment of the present application, the representation of the display value conversion rule further includes:
Figure BDA0004102870430000112
it should be noted that Xbits is the number of bits of the output character of the micro-control unit, and is generally 24bits (bits, information volume unit); max (Max) Percentage of Min (Min) Percentage of Belonging to an adjustable range, e.g. 1000KPa, max for sensor range Percentage of Can be any one of 100 to 0 percent, min Percentage of Similarly, but Max Percentage of Must be greater than Min Percentage of
In an embodiment of the present application, determining whether the pressure accuracy and the temperature accuracy are within a preset accuracy range, and completing the compensation of the pressure sensor according to the determination result includes the following steps:
if the pressure precision and the temperature precision are within the preset precision range, determining that the plurality of target pressure sensors are successfully compensated;
if the pressure precision and the temperature precision are not in the preset precision range, acquiring new initial configuration information, carrying out initial configuration on the plurality of target pressure sensors according to the new initial configuration information, then acquiring new optimal configuration information of the plurality of target pressure sensors with the initial configuration completed, and compensating the plurality of target pressure sensors according to the new optimal configuration information.
Referring to fig. 5, for example, fig. 5 is a schematic flow chart illustrating a second compensation of a pressure sensor according to an exemplary embodiment of the present application. After the optimal configuration information is written into the target pressure sensor by the lower computer, the temperature of the oven is controlled to be increased to 60 ℃, the pressure controller outputs 0%, 25%, 50%, 75% and 100% pressure values, a read command is sent to each pressure sensor, the pressure sensors return the second pressure display value and the second temperature display value of the current pressure point one by one, and an actual pressure value and an actual temperature value are obtained through the display value conversion rule. And correspondingly comparing the actual pressure value and the actual temperature value with the pressure controller and the temperature of the oven to calculate pressure precision and temperature precision, and judging whether the pressure precision meets 0.25 percent or not and whether the temperature precision meets +/-2 ℃. If the pressure precision and the temperature precision meet the preset precision range, determining that the compensation of the target pressure sensors is successful, and stopping the operation of equipment on the production line. If the pressure precision and the temperature precision do not meet the preset precision range, the pressure sensor which does not meet the requirements is rewritten into the initial configuration information, the data are collected again to calculate the optimal configuration information, the compensation process is repeated, the product is put in storage after the precision is qualified, and the position is displayed and discarded when the product precision is not qualified.
When the pressure sensor compensation method in the embodiment is used for compensating the pressure sensor, only a production line worker is required to put the sensor into the clamp and take the sensor out of the clamp, and the rest processes are all controlled by the pressure sensor compensation system 101, so that unattended and automatic compensation calibration can be realized, a plurality of pressure sensors can be calibrated and compensated at one time, the production time is saved, and the production efficiency is improved. In an exemplary test, the overall production time of the pressure sensor is 9 hours, the process does not need production line personnel to participate, and when the lower computer collects data, the collected data can be judged and optimized through the first compensation and the second compensation, so that the finally output optimal configuration information is more applied to the pressure sensor. After the pressure sensor with the common precision of 0.25% in the related art is calibrated by the pressure sensor compensation method in the embodiment of the application, the precision is effectively improved by 0.015%, and the optimal precision can reach 0.003%.
Referring to fig. 6, fig. 6 is a block diagram of a pressure sensor compensation apparatus according to an exemplary embodiment of the present application. The device may be applied to the implementation environment shown in fig. 1. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 6, the exemplary pressure sensor compensation apparatus includes:
a first compensation module 601, configured to obtain first pressure display values and first temperature display values corresponding to the plurality of target pressure sensors, the plurality of first compensation pressures, and the plurality of first compensation temperatures;
the optimal configuration module 602 is configured to obtain optimal configuration information corresponding to the plurality of target pressure sensors according to the first pressure display value and the first temperature display value, and configure the plurality of target pressure sensors according to the optimal configuration information;
the second compensation module 603 is configured to receive second pressure display values and second temperature display values corresponding to the configured plurality of target pressure sensors and the plurality of second compensation pressures and second compensation temperatures, and determine an actual pressure value and an actual temperature value according to the second pressure display values, the second temperature display values and a preset display value conversion rule;
and the accuracy judging module 604 is configured to compare the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature respectively, obtain pressure accuracy and temperature accuracy, judge whether the pressure accuracy and the temperature accuracy are within a preset accuracy range, and complete compensation of the pressure sensor according to a judgment result.
In the pressure sensor compensation device, the automatic control system can be used for completing the collection of display values, the calculation of optimal configuration information and the configuration of configuration information, and then the compensation of the pressure sensor is completed through precision comparison, so that the whole process is free of participation of production line personnel, unmanned on duty and automatic compensation calibration can be realized, a plurality of pressure sensors can be compensated and calibrated at one time, the production time is saved, and the production efficiency is improved.
It should be noted that, the pressure sensor compensation device provided in the foregoing embodiment and the pressure sensor compensation method provided in the foregoing embodiment belong to the same concept, and a specific manner in which each module and unit perform an operation has been described in detail in the method embodiment, which is not repeated herein. In practical application, the pressure sensor compensation device provided in the above embodiment may be configured by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and a storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the pressure sensor compensation method provided in the various embodiments described above.
Fig. 7 shows a schematic diagram of a computer system suitable for an electronic device according to an embodiment of the application. It should be noted that, the computer system 700 of the electronic device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a central processing unit (Central Processing Unit, CPU) 701 that can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 702 or a program uploaded from a storage section 708 into a random access Memory (Random Access Memory, RAM) 703. In the RAM 703, various programs and data required for the system operation are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An Input/Output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 710 as needed, so that a computer program read out therefrom is installed into the storage section 708 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program pressure sensor comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. When executed by a Central Processing Unit (CPU) 701, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program pressure sensors according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the pressure sensor compensation method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the present application also provides a computer program pressure sensor or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the pressure sensor compensation method provided in the above-described respective embodiments.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. It is therefore intended that all equivalent modifications and changes made by those skilled in the art without departing from the spirit and technical spirit of the present invention shall be covered by the appended claims.

Claims (10)

1. A method of compensating for a pressure sensor, the method comprising:
acquiring first pressure display values and first temperature display values corresponding to the plurality of target pressure sensors, the plurality of first compensation pressures and the plurality of first compensation temperatures;
obtaining optimal configuration information corresponding to the target pressure sensors according to the first pressure display value and the first temperature display value, and configuring the target pressure sensors according to the optimal configuration information;
receiving second pressure display values and second temperature display values corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining an actual pressure value and an actual temperature value according to the second pressure display values, the second temperature display values and preset display value conversion rules;
and respectively comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature to obtain pressure precision and temperature precision, judging whether the pressure precision and the temperature precision are within a preset precision range, and finishing the compensation of the pressure sensor according to a judging result.
2. The method of compensating for a pressure sensor according to claim 1, wherein before acquiring the first pressure display values and the first temperature display values of the plurality of target pressure sensors corresponding to the plurality of first compensation pressures and the plurality of first compensation temperatures, further comprises:
Issuing a communication detection signal to a pre-configured communication transfer template, and performing communication detection on a plurality of candidate pressure sensors in a candidate pressure sensor list according to the communication detection signal;
and if the communication detection of the candidate pressure sensor fails, removing the candidate pressure sensor with the communication detection failure from the candidate pressure sensor list to obtain the target pressure sensors.
3. The method of compensating for a pressure sensor according to claim 2, further comprising, after said obtaining said plurality of target pressure sensors:
acquiring preset initial configuration information;
according to the initial configuration information, the plurality of target pressure sensors are initially configured, and third pressure display values of the plurality of target pressure sensors, which are subjected to initial configuration, in a preset pressure test environment are received;
and judging whether the target pressure sensors with the initial configuration completed can be compensated or not according to the third pressure display value and the preset pressure display value range.
4. The method of compensating for a pressure sensor according to claim 3, wherein determining whether the initially configured plurality of target pressure sensors are capable of compensation based on the third pressure display value and a preset pressure display value range comprises:
If the third pressure display value is in the preset pressure display value range, determining that the target pressure sensor with the initial configuration being completed can compensate;
if the third pressure display value is not in the preset pressure display value range, determining that the target pressure sensor with the initial configuration being completed cannot be compensated, receiving the position information of the target pressure sensor which cannot be compensated, and generating a pressure sensor rejection instruction according to the position information.
5. The method of claim 1, wherein the representation of the display value conversion rule comprises:
Figure FDA0004102870420000021
wherein Max Measuring range For maximum range of pressure sensor, min Measuring range Max, which is the minimum range of the pressure sensor Percentage of Min, the maximum percentage of the full range of the pressure sensor Percentage of Xbits is the minimum percentage of the full range of the pressure sensor, and Xbits is the number of character bits output by the micro control unit.
6. The method of claim 5, wherein the representation of the display value conversion rule further comprises:
Figure FDA0004102870420000022
7. the method according to any one of claims 1 to 4, wherein determining whether the pressure accuracy and the temperature accuracy are within a preset accuracy range, and performing the compensation of the pressure sensor based on the determination result, comprises:
If the pressure precision and the temperature precision are within the preset precision range, determining that the plurality of target pressure sensors are successfully compensated;
if the pressure precision and the temperature precision are not in the preset precision range, acquiring new initial configuration information, carrying out initial configuration on the plurality of target pressure sensors according to the new initial configuration information, then acquiring new optimal configuration information of the plurality of target pressure sensors with the initial configuration completed, and compensating the plurality of target pressure sensors according to the new optimal configuration information.
8. A pressure sensor compensation device, the device comprising:
the first compensation module is used for acquiring first pressure display values and first temperature display values corresponding to the plurality of target pressure sensors, the plurality of first compensation pressures and the plurality of first compensation temperatures;
the optimal configuration module is used for obtaining optimal configuration information corresponding to the target pressure sensors according to the first pressure display value and the first temperature display value, and configuring the target pressure sensors according to the optimal configuration information;
the second compensation module is used for receiving second pressure display values and second temperature display values corresponding to the configured target pressure sensors, the second compensation pressures and the second compensation temperatures, and determining actual pressure values and actual temperature values according to the second pressure display values, the second temperature display values and preset display value conversion rules;
And the precision judging module is used for comparing the actual pressure value and the actual temperature value with the second compensation pressure and the second compensation temperature respectively to obtain pressure precision and temperature precision, judging whether the pressure precision and the temperature precision are in a preset precision range or not, and finishing the compensation of the pressure sensor according to a judging result.
9. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the pressure sensor compensation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor of a computer, causes the computer to perform the pressure sensor compensation method according to any one of claims 1 to 7.
CN202310183065.3A 2023-02-28 2023-02-28 Pressure sensor compensation method, device, equipment and medium Pending CN116164879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310183065.3A CN116164879A (en) 2023-02-28 2023-02-28 Pressure sensor compensation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310183065.3A CN116164879A (en) 2023-02-28 2023-02-28 Pressure sensor compensation method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116164879A true CN116164879A (en) 2023-05-26

Family

ID=86421784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310183065.3A Pending CN116164879A (en) 2023-02-28 2023-02-28 Pressure sensor compensation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116164879A (en)

Similar Documents

Publication Publication Date Title
CN112082634A (en) Remote auxiliary calibration method for electronic scale
CN112182067A (en) Individual height prediction method and device, electronic equipment and storage medium
CN115728445A (en) Sensor calibration method, device, equipment and computer readable storage medium
CN116164879A (en) Pressure sensor compensation method, device, equipment and medium
CN111200467B (en) Calibration method and device for wireless parameters of chip and electronic equipment
CN111912974B (en) Immune reagent calibration method
US20120265469A1 (en) Calibration method and device
CN114038372B (en) Gamma adjustment method, related device and storage medium
CN115174373B (en) Modbus device point table generation method, device, equipment and storage medium
CN116415686A (en) Temperature rise model calibration method and device, ultrasonic imaging equipment and storage medium
CN114141206B (en) Backlight correction method, related device and storage medium
CN110084298B (en) Method and device for detecting image similarity
CN110967446B (en) Parameter targeting method and device, storage medium and electronic equipment
CN114158791A (en) Product temperature measuring method and device
JP2017050600A (en) Transmitter detection system, server, transmitter detection method and program
US20180242055A1 (en) Field device and information providing method
JP2020094822A (en) Humidity measurement system, humidity correction terminal, humidity sensor, and humidity measurement method
CN114114725A (en) Method for testing LCM response time and related equipment
CN112585433A (en) Method for calibrating a sensor of a device and sensor system
JP7485394B1 (en) Diagnostic Equipment
JP2001228028A (en) Infrared thermal imaging device
WO2023272603A1 (en) Calibration method and electronic device
CN115576765B (en) Test method, test device, electronic equipment and storage medium
US11892923B2 (en) Testing electronic products for determining abnormality
JP2013080336A (en) Device and program for energy consumption management

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: No. 7 Liming Road, Longxing Town, Yubei District, Chongqing, 401135

Applicant after: Chongqing Jinxin Meisi Sensor Technology Co.,Ltd.

Address before: 401135 No. 618 Liangjiang Avenue, Longxing Town, Yubei District, Chongqing

Applicant before: Chongqing Silian Sensor Technology Co.,Ltd.