Zeroing method, device and zeroing system for target sensor

By calculating and configuring the new calibration coefficients, the automatic zeroing of the sensor is achieved, solving the problems of low efficiency and drift in traditional zeroing operation, and improving the accuracy and stability of measurement.

CN118961058BActive Publication Date: 2024-12-13GUANGDONG RUNYU SENSOR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411443702.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2024-12-13
Estimated Expiration
2044-10-16

AI Technical Summary

Technical Problem

The zeroing operation of traditional pressure sensors requires manual intervention, which is inefficient and error-prone. Due to environmental factors and mechanical stress, the sensor may drift, affecting the accuracy and stability of the measurement.

Method used

By obtaining the actual zero point output value and theoretical value, sensitivity coefficient and current calibration coefficient of the target sensor chip, calculate the proportion of zero point deviation voltage and digital deviation, obtain a new calibration coefficient, and configure it to the signal conditioning chip to achieve automatic zero adjustment .

Benefits of technology

The automatic and accurate zeroing of the sensor is achieved, which improves the accuracy and stability of measurement, reduces the cost of manual intervention and the risk of errors, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118961058B_ABST
    Figure CN118961058B_ABST
Patent Text Reader

Abstract

The present application provides a zeroing method, device and zeroing system for a target sensor, the method comprising: obtaining the measured value outputted by the target sensor chip at the actual zero point and the theoretical value outputted by the target sensor chip at the zero point, the target sensor chip comprising the target sensor and a signal conditioning chip connected to the target sensor; obtaining the sensitivity coefficient and the current calibration coefficient of the target sensor chip; determining the zero-point deviation voltage proportion according to the measured value, the theoretical value and the reference voltage of the target sensor; determining the target measurement value digital quantity deviation according to the zero-point deviation voltage proportion and the sensitivity coefficient; determining the sum of the target measurement value digital quantity deviation and the current calibration coefficient to obtain a new calibration coefficient; and configuring the new calibration coefficient to the signal conditioning chip. The present application can automatically realize accurate zero-point calibration and improve the accuracy and stability of the measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of sensor technology, and in particular to a zeroing method, device and zeroing system for a target sensor. Background Art

[0002] Pressure sensors are important devices for real-time detection and measurement of pressure changes and are widely used in various industrial control systems and vehicles. During use, due to environmental factors and mechanical stress, the sensor may drift and need to be calibrated regularly to ensure measurement accuracy and stability. Traditional pressure sensor zeroing operations require manual intervention, which is inefficient and prone to errors. Summary of the invention

[0003] The embodiments of the present application provide a zeroing method, device and zeroing system for a target sensor, thereby automatically achieving accurate zero point calibration at least to a certain extent, thereby improving the accuracy and stability of measurement.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to one aspect of an embodiment of the present application, a method for zeroing a target sensor is provided, the method comprising: obtaining a measurement value output by a target sensor chip at an actual zero point and a theoretical value output by the target sensor chip at zero point, the target sensor chip comprising a target sensor and a signal conditioning chip connected to the target sensor; obtaining a sensitivity coefficient and a current calibration coefficient of the target sensor chip; determining a zero-point deviation voltage ratio based on the measurement value, the theoretical value and a reference voltage of the target sensor; determining a target measurement value digital quantity deviation based on the zero-point deviation voltage ratio and the sensitivity coefficient; determining the sum of the target measurement value digital quantity deviation and the current calibration coefficient to obtain a new calibration coefficient; and configuring the new calibration coefficient to the signal conditioning chip so that the target sensor chip outputs a measurement value based on the new calibration coefficient.

[0006] According to one aspect of an embodiment of the present application, a zero adjustment device for a target sensor is provided, the device comprising: a first acquisition unit, used to acquire a measurement value output by a target sensor chip at an actual zero point and a theoretical value output by the target sensor chip at zero point, the target sensor chip comprising a target sensor and a signal conditioning chip connected to the target sensor; a second acquisition unit, used to acquire a sensitivity coefficient and a current calibration coefficient of the target sensor chip; a first determination unit, used to determine a zero-point deviation voltage ratio according to the measurement value, the theoretical value and a reference voltage of the target sensor; a second determination unit, used to determine a target measurement value digital quantity deviation according to the zero-point deviation voltage ratio and the sensitivity coefficient; a summation unit, used to determine the sum of the target measurement value digital quantity deviation and the current calibration coefficient to obtain a new calibration coefficient; and a configuration unit, used to configure the new calibration coefficient to the signal conditioning chip so that the target sensor chip outputs a measurement value according to the new calibration coefficient.

[0007] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit is configured to: obtain the binary sensitivity coefficient stored in the register of the signal conditioning chip, and convert the binary sensitivity coefficient into decimal to obtain the sensitivity coefficient; obtain the binary calibration coefficient stored in the register of the signal conditioning chip, and convert the binary calibration coefficient into decimal to obtain the current calibration coefficient.

[0008] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit is configured to: obtain the binary sensitivity coefficient from the target register address of the register of the signal conditioning chip; the configuration unit is configured to: convert the new calibration coefficient into binary to obtain a new binary calibration coefficient; write the new binary calibration coefficient to the target register address of the register of the signal conditioning chip.

[0009] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit is configured to: respectively acquire binary first values ​​from multiple first register addresses of the register of the signal conditioning chip to obtain multiple binary first values; merge the multiple binary first values ​​in a manner of high bit first and low bit last to obtain a binary sensitivity coefficient; respectively acquire binary second values ​​from multiple second register addresses of the register of the signal conditioning chip to obtain multiple binary first values; merge the multiple binary first values ​​in a manner of high bit first and low bit last to obtain a binary calibration coefficient.

[0010] In some embodiments of the present application, based on the aforementioned scheme, the device also includes a drift judgment unit; before obtaining the sensitivity coefficient and the current calibration coefficient of the target sensor chip, the drift judgment unit is used to: determine whether the target sensor drifts, wherein the sensitivity coefficient and the current calibration coefficient of the target sensor chip are obtained after determining that the target sensor drifts.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the drift judgment unit is configured to: determine the actual drift rate of the target sensor according to the measurement value output by the target sensor chip at the actual zero point, the theoretical value output by the target sensor chip at the zero point, the resolution of the target sensor chip and the measurement value range corresponding to the target sensor; determine whether the target sensor drifts according to the comparison result of the actual drift rate with a predetermined drift rate threshold.

[0012] In some embodiments of the present application, based on the aforementioned solution, the target sensor includes at least one of a pressure sensor and a temperature sensor.

[0013] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the zeroing method of the target sensor as described in the above embodiment is implemented.

[0014] According to one aspect of an embodiment of the present application, a zeroing system is provided, comprising: a communication interface for communicating with a target sensor chip; a control module for controlling a zeroing mainboard to perform a zeroing operation; the zeroing mainboard is respectively connected to the control module and the communication interface, and is used to implement the zeroing method of the target sensor as described in the above embodiment.

[0015] In some embodiments of the present application, based on the aforementioned scheme, the zeroing system also includes a first wireless communication module and a second wireless communication module for wireless communication with the first wireless communication module, the first wireless communication module is connected to the communication interface, the second wireless communication module is connected to the target sensor chip, and the communication interface is communicatively connected to the target sensor chip via the first wireless communication module and the second wireless communication module.

[0016] In the technical solutions provided in some embodiments of the present application, for a target sensor chip including a target sensor and a signal conditioning chip connected to the target sensor, the sensitivity coefficient and the current calibration coefficient of the target sensor chip, as well as the measured value output by the target sensor chip at the actual zero point and the theoretical value output by the target sensor chip at the zero point are obtained; then, the zero point deviation voltage ratio is determined according to the measured value, the theoretical value and the reference voltage of the target sensor, and the target measurement value digital quantity deviation is determined according to the zero point deviation voltage ratio and the sensitivity coefficient; finally, a new calibration coefficient is obtained by determining the sum of the target measurement value digital quantity deviation and the current calibration coefficient, and the new calibration coefficient is configured to the signal conditioning chip to achieve zeroing. Therefore, the embodiment of the present application not only achieves accurate zeroing, thereby improving the accuracy and stability of the measurement, but also the entire process of zero point calibration is automatically achieved, without the need for manual intervention, reducing labor costs, improving efficiency, and avoiding zeroing errors.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A logical block diagram of a system according to an embodiment of the present application is shown.

[0020] Figure 2 A schematic flow chart of a main program according to an embodiment of the present application is shown.

[0021] Figure 3 A flow chart of a method for zeroing a target sensor according to an embodiment of the present application is shown.

[0022] Figure 4 A flow chart for determining whether a target sensor drifts according to an embodiment of the present application is shown.

[0023] Figure 5 A flowchart of a key interrupt processing program according to an embodiment of the present application is shown.

[0024] Figure 6 An embodiment according to the present application is shown. Figure 3 Flowchart of details of step 320 in an embodiment.

[0025] Figure 7 A block diagram of a zero adjustment device for a target sensor according to an embodiment of the present application is shown.

[0026] Figure 8 A schematic diagram of a zeroing system according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0028] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0029] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0032] Figure 11 shows a logical block diagram of a system according to an embodiment of the present application. Figure 1 As shown, the logic block diagram of the system is actually the product structure of the pressure sensor zeroing system with LIN communication, which includes a control module, a zeroing mainboard and a LIN communication interface; wherein, the control module has an LCD display unit and three buttons K1, K2 and K3. The control module is used to control the zeroing mainboard to perform corresponding operations, and receive and monitor the data of the sensor uploaded from the zeroing mainboard; the zeroing mainboard is used to exchange data with the pressure sensor through the LIN communication protocol to realize the automatic zeroing function of the sensor. The zeroing mainboard can be powered by a power supply with an output voltage of 24V; the LIN communication interface is used to communicate with the pressure sensor. This interface can realize hardware connection, and can also connect a wireless module to realize signal transparent transmission. The LIN (Local Interconnect Network) communication interface is a low-cost, low-speed serial communication protocol, which is mainly used for simple networks in automotive electronic systems. Please continue to refer to Figure 1 As shown, the logic block diagram of the system also includes a pressure sensor. It is easy to understand that the pressure sensor here is actually a target sensor chip, which may include a signal conditioning chip and at least one of the following: a pressure sensor, a temperature sensor; wherein the signal conditioning chip may be a ZSSC4132 chip, the pressure sensor may be a bridge sensor connected to the ZSSC4132 chip, which may be a sensor for measuring air pressure; the temperature sensor may be a temperature sensor connected to the ZSSC4132 chip.

[0033] ZSSC4132 is a signal conditioning chip designed for bridge sensors. It is mainly used to process signals from various types of bridge sensors (such as strain gauge pressure sensors, temperature sensors, etc.) and convert them into digital signals that can be used for subsequent analysis and processing.

[0034] The system works as follows:

[0035] 1. Connect the zeroing mainboard: The zeroing mainboard establishes a LIN communication link with the target sensor chip through the LIN communication interface.

[0036] 2. Start the system: Start the control panel through the control module to make the whole system start working.

[0037] 3. Sensor data acquisition: The control module sends operation commands, and the zeroing mainboard can periodically obtain data from the target sensor chip according to the operation commands, and process and analyze the data. Of course, the control module can also send commands to read and write sensor data according to the trigger of the button. For example, the control module can send a read command to the zeroing mainboard according to the trigger of the button, and the zeroing mainboard can obtain the pressure sensor data by sending the read command to the target sensor chip. As a slave, the pressure sensor will return the data corresponding to the read command.

[0038] 4. Automatic zeroing: When the sensor output is detected to drift, the zeroing mainboard sends a zeroing instruction to the target sensor chip through the LIN communication protocol to perform automatic zeroing operation.

[0039] 5. Remote monitoring and control: Users can remotely monitor the status of the target sensor chip through the control module and issue control commands to the zeroing mainboard. To achieve remote monitoring, the target sensor chip product must be directly installed on the car to achieve signal interaction with the zeroing system.

[0040] Figure 2 Schematic diagram of the main program flow according to an embodiment of the present application is shown. Figure 2 As shown, the main program may specifically include the following processes:

[0041] Step 210, system initialization.

[0042] Perform the initialization operation of the entire system.

[0043] Step 220, LIN and LCD are initialized.

[0044] Perform initialization operations on the LIN communication interface and LCD display unit.

[0045] Step 230, the zeroing mainboard MCU sends a command to establish communication with the 4132 pressure sensor.

[0046] The zeroing mainboard MCU sends commands to the target sensor chip through the LIN communication interface to establish communication with the target sensor chip. The commands here may include entering command mode, reading product serial number, reading IC status, reading LIN status, starting normal mode, obtaining sensor data, etc.

[0047] Before executing step 230 , the baud rate, COM port, etc. of the LIN communication interface may be configured first.

[0048] Step 240, execute the following While loop: Zero the mainboard MCU to read the relevant registers of the pressure sensor 4132 chip through LIN communication, calculate the pressure value and temperature value, and display them.

[0049] Continue to execute step 240, the zeroing mainboard reads the digital pressure value and the digital temperature value stored in the relevant registers of the target sensor chip through the LIN communication interface, calculates the pressure value and the temperature value in the form of physical quantity representation based on the digital pressure value and the digital temperature value, and sends them to the control module, which displays the pressure value and the temperature value.

[0050] Figure 3 FIG. 1 is a flow chart showing a method for zeroing a target sensor according to an embodiment of the present application. Figure 3 As shown, the zeroing method of the target sensor can be executed by the aforementioned zeroing mainboard, and the zeroing method of the target sensor can specifically include the following steps:

[0051] Step 310, obtaining a measured value outputted by a target sensor chip at an actual zero point and a theoretical value outputted by the target sensor chip at a zero point, wherein the target sensor chip includes a target sensor and a signal conditioning chip connected to the target sensor.

[0052] The signal conditioning chip may be the aforementioned ZSSC4132 chip. The ZSSC4132 chip is a sensor signal conditioning chip designed specifically for automotive pressure measurement. It integrates a LIN output interface and is suitable for applications such as electric / hybrid vehicle HVAC systems. The sensor signal conditioning chip can convert the input pressure signal or temperature signal into an electrical signal, perform high-precision amplification and specific correction, and finally output a pressure value or temperature value.

[0053] The target sensor may include at least one of a pressure sensor and a temperature sensor. The ZSSC4132 chip can be connected to an external bridge sensor or an external temperature sensor, wherein the bridge sensor can be a pressure sensor. The ZSSC4132 chip can measure pressure and temperature through calibration compensation. The ZSSC4132 chip can be used in automotive air conditioners to monitor and control the temperature and pressure in the refrigeration system.

[0054] The measurement value output by the target sensor chip at the actual zero point is: at the actual zero point, the pressure value or temperature value finally output by the system in the form of a physical quantity. For example, for a pressure sensor, the unit of the actual measurement value may be bar; for a temperature sensor, the unit of the actual measurement value may be Celsius. The actual measurement value may be displayed on the LCD display unit of the control unit to show the user the pressure value and / or temperature value currently detected by the target sensor. If the target sensor is a pressure sensor, then the measurement value output by the target sensor chip at the actual zero point may be the pressure value measured when the pressure actually measured by the target sensor chip is 0.

[0055] Therefore, the measured value output by the target sensor chip at the actual zero point can be read directly from the control module.

[0056] Specifically, the actual measurement value of the target sensor at the actual zero point can be obtained by reading the target sensor chip, and the specific process is as follows:

[0057] 1. Hardware connection:

[0058] Ensure that the target sensor chip is properly connected to the LIN bus. This usually involves connecting the LIN pins of the target sensor chip to the corresponding lines of the LIN bus and ensuring that the power and ground connections are correct.

[0059] 2. Configure LIN bus parameters:

[0060] Set the LIN bus parameters such as baud rate, frame ID, data length, etc. These parameters need to match the communication protocol of the target sensor chip.

[0061] 3. Send the request:

[0062] Send a read request to the target sensor chip using the appropriate frame ID and data format. This typically involves sending a data frame containing a specific command. This data frame may be preceded by a data frame to initiate normal mode.

[0063] 4. Receive response:

[0064] Wait for the response of the target sensor chip. If a read request is sent, the target sensor chip will return a data frame containing pressure data or temperature data, where the pressure data or temperature data is in the format of digital quantity.

[0065] 5. Parsing data:

[0066] Parse the received data frame and extract the digital quantity of pressure value or temperature value. After the zeroing mainboard obtains the digital quantity of pressure value or temperature value, it can send the digital quantity of pressure value or temperature value to the control module. The control module can convert the digital quantity of pressure value or temperature value into a physical quantity representation. The zeroing mainboard can obtain the pressure value or temperature value in the form of a physical quantity representation from the control module; of course, the zeroing mainboard can also directly convert the obtained digital quantity of pressure value or temperature value into a physical quantity representation. The aforementioned original measurement value digital quantity needs to undergo further processing operations such as zero point compensation of the ZSSC4132 chip to obtain the digital quantity of pressure value or temperature value.

[0067] The control module or the zeroing mainboard can obtain the pressure value or the temperature value in the form of physical quantity representation by multiplying the digital quantity of the pressure value or the digital quantity of the temperature value by the resolution of the target sensor chip.

[0068] If the measurement range of the pressure sensor is 0-170 bar and the resolution is 0.05, then the maximum digital value of the pressure value that can be obtained = 170 / 0.05 = 3400; if the measurement range of the temperature sensor is -40-180 degrees Celsius and the resolution is 0.1, then the maximum digital value of the temperature value that can be obtained = 220 / 0.1 = 2200.

[0069] 6. Error handling:

[0070] Handle possible communication errors such as timeout, checksum errors, etc.

[0071] The theoretical value output by the target sensor chip at zero point, that is, the theoretical measurement value of the target sensor at zero point, may be the measurement value of the target sensor when no drift occurs, which is determined by the system when it leaves the factory.

[0072] In one embodiment of the present application, before obtaining the sensitivity coefficient and the current calibration coefficient of the target sensor chip, the zeroing method of the target sensor may include the following steps: determining whether the target sensor drifts, wherein obtaining the sensitivity coefficient and the current calibration coefficient of the target sensor chip is performed when it is determined that the target sensor drifts.

[0073] The zeroing mainboard can periodically execute the step of determining whether the target sensor drifts. If it is determined that the target sensor drifts, the subsequent steps of the target sensor zeroing method provided in the embodiment of the present application can be executed; if it is determined that the target sensor does not drift, the step of determining whether the target sensor drifts can be re-executed after a predetermined period of time.

[0074] Of course, the step of determining whether the target sensor has drifted can also be executed according to a command triggered by the user; in addition, the control module can also automatically analyze environmental information such as humidity, temperature, and weather, and automatically send a command to the zeroing mainboard based on the analysis results to instruct the zeroing mainboard to determine whether the target sensor has drifted. For example, the control module can obtain environmental information by communicating with other external sensors. When the control module determines that the humidity or temperature has changed dramatically (such as the rate of change within a predetermined period of time is greater than a threshold), or when bad weather occurs, the target sensor is more likely to drift. Therefore, it is necessary to determine whether the target sensor has drifted. The advantage of this is that the drift of the target sensor can be discovered more promptly and repaired through zeroing, thereby ensuring the reliability and stability of the system.

[0075] The zeroing mainboard can periodically obtain data from the control module, and process and analyze the data to periodically determine whether the target sensor drifts.

[0076] Figure 4 FIG. 1 is a flowchart showing whether a target sensor has drifted according to an embodiment of the present application. Figure 4 As shown, determining whether the target sensor drifts may specifically include the following steps:

[0077] Step 410, determining the actual drift rate of the target sensor according to the measured value output by the target sensor chip at the actual zero point, the theoretical value output by the target sensor chip at the zero point, the resolution of the target sensor chip and the measured value range corresponding to the target sensor.

[0078] The difference between the measured value output by the target sensor chip at the actual zero point and the theoretical value output by the target sensor chip at the zero point can be determined, the difference is multiplied by the resolution of the target sensor chip, and the product of the two is divided by the size of the measurement value range and 100 in turn, thereby obtaining the actual drift rate of the target sensor.

[0079] For example, for a pressure sensor, the corresponding measurement range is 0-170 bar, and the resolution of the target sensor chip is 0.05. Then, the calculation formula for the actual drift rate can be: (actual measurement value - theoretical measurement value) × 0.05 / 170 bar / 100. Similarly, for a temperature sensor, the corresponding measurement range is -40-180 degrees Celsius, and the resolution of the target sensor chip is 0.1. Then, the calculation formula for the actual drift rate can be: (actual measurement value of the current temperature - theoretical measurement value of the current temperature) × 0.1 / 220 / 100.

[0080] Step 420 , determining whether the target sensor drifts according to a comparison result between the actual drift rate and a predetermined drift rate threshold.

[0081] A corresponding predetermined drift rate threshold may be defined for each sensor, and the predetermined drift rate thresholds corresponding to different sensors may be different. For example, the predetermined drift rate threshold corresponding to the pressure sensor may be 0.5%, and the predetermined drift rate threshold corresponding to the temperature sensor may be 1%.

[0082] If the actual drift rate is greater than the predetermined drift rate threshold, it can be determined that the target sensor has drifted; if the actual drift rate is less than or equal to the predetermined drift rate threshold, it can be determined that the target sensor has not drifted.

[0083] Figure 5 FIG. 1 is a flow chart of a key interrupt processing program according to an embodiment of the present application. Figure 5 As shown, it includes the following processes:

[0084] In step 510, short press button K1 to interrupt: the system starts up and enters the setting after 3 seconds.

[0085] When the user short presses the button K1 of the control module, a first interrupt signal will be triggered. The interrupt processing program executed according to the first interrupt signal is: the system is turned on and the setting is entered after 3 seconds.

[0086] In step 520, short press button K2 to implement the zero adjustment function.

[0087] When the user short presses the button K2 of the control module, a second interrupt signal will be triggered. The interrupt processing program executed according to the second interrupt signal is: realizing the zero adjustment function.

[0088] In step 530, short press button K3: exit settings.

[0089] The user short presses the button K3 of the control module to trigger the third interrupt signal, and the interrupt processing program executed according to the third interrupt signal is: exit setting.

[0090] Therefore, when the user short presses button K2, the zero adjustment mainboard can automatically execute Figure 3 The steps shown in the example.

[0091] Please continue to see Figure 3 , step 320, obtaining the sensitivity coefficient and current calibration coefficient of the target sensor chip.

[0092] The sensitivity coefficient is used to quantify the response of the measured value output by the target sensor chip (such as the pressure value or temperature value expressed in the form of physical quantity) to the change of the digital quantity of the original measured value; the current calibration coefficient is used to correct the signal offset.

[0093] Figure 6 An embodiment according to the present application is shown. Figure 3 Flow chart of details of step 320 in the embodiment. Figure 6 As shown, obtaining the sensitivity coefficient and current calibration coefficient of the target sensor chip may specifically include the following steps:

[0094] Step 321, obtaining the binary sensitivity coefficient stored in the register of the signal conditioning chip, and converting the binary sensitivity coefficient into a decimal system to obtain the sensitivity coefficient.

[0095] In the register, the sensitivity coefficient may be stored in binary form.

[0096] In one embodiment of the present application, obtaining a binary sensitivity coefficient stored in a register of a signal conditioning chip includes: obtaining the binary sensitivity coefficient from a target register address of the register of the signal conditioning chip.

[0097] It is necessary to obtain the binary sensitivity coefficient according to the register address.

[0098] In one embodiment of the present application, a binary sensitivity coefficient stored in a register of a signal conditioning chip is obtained, including: obtaining binary first values ​​from multiple first register addresses of the register of the signal conditioning chip respectively to obtain multiple binary first values; merging the multiple binary first values ​​in a manner of high bits first and low bits last to obtain a binary sensitivity coefficient.

[0099] Specifically, the multiple first register addresses may be 0xbc, 0xbd, and 0xbe, respectively, and these first register addresses are used for binary sensitivity coefficients. The binary sensitivity coefficients can be obtained by reading the first binary values ​​stored in the first register addresses of the signal conditioning chip, and merging these first values ​​in the order of high bits first and low bits last. Then, the binary sensitivity coefficients can be converted into decimal numbers in the range of (0, 256) to obtain the sensitivity coefficients (whose values ​​can be recorded as scale_S_old).

[0100] Step 322, obtaining the binary calibration coefficient stored in the register of the signal conditioning chip, and converting the binary calibration coefficient into a decimal system to obtain the current calibration coefficient.

[0101] In one embodiment of the present application, a binary calibration coefficient stored in a register of a signal conditioning chip is obtained, including: obtaining binary second values ​​from multiple second register addresses of the register of the signal conditioning chip respectively to obtain multiple binary first values; and merging the multiple binary first values ​​in a manner of high bits first and low bits last to obtain a binary calibration coefficient.

[0102] Specifically, the multiple second register addresses may be 0xb9, 0xba, and 0xbb, respectively, and these second register addresses are used for binary calibration coefficients. The binary second values ​​stored in the second register addresses of the signal conditioning chip are read, and these second values ​​are combined in the order of high bits first and low bits last, so as to obtain the binary calibration coefficients. Then, the binary calibration coefficients may be converted into decimal numbers in the interval (-1, 1), thereby obtaining the current calibration coefficients (whose values ​​may be recorded as scale_off_old).

[0103] Please continue to see Figure 3 , step 330, determining the zero point deviation voltage ratio according to the measured value, the theoretical value and the reference voltage of the target sensor.

[0104] The difference between the measured value and the theoretical value can be determined first, and then the difference is divided by the reference voltage of the target sensor to obtain the zero point deviation voltage ratio.

[0105] Step 340: Determine the target measurement value digital deviation according to the zero point deviation voltage ratio and the sensitivity coefficient.

[0106] The zero point deviation voltage ratio can be divided by the sensitivity coefficient scale_S_old to obtain the target measurement value digital quantity deviation. The target measurement value digital quantity deviation is used to reflect the difference between the original measurement value digital quantity output by the sensor and the correct calibration coefficient.

[0107] Step 350, determine the sum of the target measurement value digital quantity deviation and the current calibration coefficient to obtain a new calibration coefficient.

[0108] In general, the new calibration coefficients can be calculated as follows:

[0109] scale_off_new=(zero-0.5) / 5 / scale_S_old+scale_off_old,

[0110] Among them, scale_off_new is the new calibration coefficient, zero is the measured value, 0.5 is the theoretical value of zero-point output, 5 is the size of the reference voltage, scale_off_old is the current calibration coefficient, and scale_S_old is the sensitivity coefficient.

[0111] Step 360, configuring the new calibration coefficient to the signal conditioning chip so that the target sensor chip outputs a measurement value according to the new calibration coefficient.

[0112] Automatic zeroing can be achieved by configuring the new calibration coefficients to the signal conditioning chip.

[0113] In the case where the binary sensitivity coefficient is obtained from the target register address of the register of the signal conditioning chip, configuring the new calibration coefficient to the signal conditioning chip may include the following steps: converting the new calibration coefficient into binary to obtain a new binary calibration coefficient; and writing the new binary calibration coefficient to the target register address of the register of the signal conditioning chip.

[0114] Specifically, if the multiple second register addresses used to obtain the binary calibration coefficients are 0xb9, 0xba, and 0xbb, then after obtaining the new binary calibration coefficients, they can be converted into 3-byte hexadecimal numbers and written to the 0xb9, 0xba, and 0xbb addresses of the register of the signal conditioning chip through LIN communication.

[0115] Writing data to the register of the signal conditioning chip can also be done by using the same steps as in the above-mentioned embodiment for the read operation of the target sensor chip. However, in the step of sending a request, it is necessary to use an appropriate frame ID and data format to send a write request to the target sensor chip; in the step of receiving a response, since a write request is sent, the target sensor chip will configure and change the corresponding register according to the received data, and return a data frame indicating whether the write operation is successful; in the step of parsing data, the received data frame can be parsed to extract information from the data frame to confirm whether the write operation is successful.

[0116] In summary, the embodiment of the present application proposes an automatic zeroing solution for a pressure sensor with LIN communication. By combining LIN communication technology and pressure sensor technology, the automatic zeroing of the sensor is realized, and the function of remote monitoring and control is provided, which greatly improves the convenience and efficiency. The solution of the embodiment of the present application can be widely used in the fields of automobiles, industrial control, etc., improves the accuracy and efficiency of sensor zeroing, and reduces the cost and risk of manual operation.

[0117] The following describes an apparatus embodiment of the present application, which can be used to execute the zeroing method of the target sensor in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the zeroing method of the target sensor in the present application.

[0118] Figure 7 FIG. 1 is a block diagram of a zero adjustment device for a target sensor according to an embodiment of the present application. Figure 7 As shown, a target sensor zeroing device 700 according to an embodiment of the present application includes: a first acquisition unit 710 , a second acquisition unit 720 , a first determination unit 730 , a second determination unit 740 , a summing unit 750 and a configuration unit 760 . Among them, the first acquisition unit 710 is used to obtain the measurement value output by the target sensor chip at the actual zero point and the theoretical value output by the target sensor chip at the zero point, and the target sensor chip includes a target sensor and a signal conditioning chip connected to the target sensor; the second acquisition unit 720 is used to obtain the sensitivity coefficient and the current calibration coefficient of the target sensor chip; the first determination unit 730 is used to determine the zero-point deviation voltage ratio according to the measurement value, the theoretical value and the reference voltage of the target sensor; the second determination unit 740 is used to determine the target measurement value digital deviation according to the zero-point deviation voltage ratio and the sensitivity coefficient; the summation unit 750 is used to determine the sum of the target measurement value digital deviation and the current calibration coefficient to obtain a new calibration coefficient; the configuration unit 760 is used to configure the new calibration coefficient to the signal conditioning chip so that the target sensor chip outputs the measurement value according to the new calibration coefficient.

[0119] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit 720 is configured to: obtain the binary sensitivity coefficient stored in the register of the signal conditioning chip, and convert the binary sensitivity coefficient into decimal to obtain the sensitivity coefficient; obtain the binary calibration coefficient stored in the register of the signal conditioning chip, and convert the binary calibration coefficient into decimal to obtain the current calibration coefficient.

[0120] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit 720 is configured to: obtain the binary sensitivity coefficient from the target register address of the register of the signal conditioning chip; the configuration unit 760 is configured to: convert the new calibration coefficient into binary to obtain a new binary calibration coefficient; and write the new binary calibration coefficient to the target register address of the register of the signal conditioning chip.

[0121] In some embodiments of the present application, based on the aforementioned scheme, the second acquisition unit 720 is configured to: respectively acquire binary first values ​​from multiple first register addresses of the register of the signal conditioning chip to obtain multiple binary first values; merge the multiple binary first values ​​in a manner that the high bit comes first and the low bit comes last to obtain a binary sensitivity coefficient; respectively acquire binary second values ​​from multiple second register addresses of the register of the signal conditioning chip to obtain multiple binary first values; merge the multiple binary first values ​​in a manner that the high bit comes first and the low bit comes last to obtain a binary calibration coefficient.

[0122] In some embodiments of the present application, based on the aforementioned scheme, the device also includes a drift judgment unit; before obtaining the sensitivity coefficient and the current calibration coefficient of the target sensor chip, the drift judgment unit is used to: determine whether the target sensor drifts, wherein the sensitivity coefficient and the current calibration coefficient of the target sensor chip are obtained after determining that the target sensor drifts.

[0123] In some embodiments of the present application, based on the aforementioned scheme, the drift judgment unit is configured to: determine the actual drift rate of the target sensor according to the measurement value output by the target sensor chip at the actual zero point, the theoretical value output by the target sensor chip at the zero point, the resolution of the target sensor chip and the measurement value range corresponding to the target sensor; determine whether the target sensor drifts according to the comparison result of the actual drift rate with a predetermined drift rate threshold.

[0124] In some embodiments of the present application, based on the aforementioned solution, the target sensor includes at least one of a pressure sensor and a temperature sensor.

[0125] As one aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0126] As one aspect, the present application also provides a zeroing system, including: a communication interface for communicating with a target sensor chip; a control module for controlling a zeroing mainboard to perform a zeroing operation; the zeroing mainboard is respectively connected to the control module and the communication interface, and is used to implement the zeroing method of the target sensor as described in the above embodiment.

[0127] The communication interface here may be a LIN communication interface.

[0128] Figure 8 FIG. 1 is a schematic diagram of a zeroing system according to an embodiment of the present application. Figure 8 As shown, the zeroing system is actually a zeroing device, which may include a control module 810, a zeroing mainboard 820 electrically connected to the control module, and a LIN communication interface 830 connected to the zeroing mainboard 820, and the LIN communication interface 830 is connected to the target sensor chip.

[0129] The target sensor chip may include a ZSSC4132 chip and a pressure sensor and / or a temperature sensor externally connected to the ZSSC4132 chip.

[0130] It can be seen that the system has a simple design, compact structure, low cost of use, and is suitable for large-scale applications.

[0131] The target sensor chip can be used in the automotive field, especially in the air conditioning (HVAC) system of hybrid electric vehicles (PHEV) and pure electric vehicles (BEV). Specifically, in this application scenario, the ZSSC4132 chip can be installed in the car, and the ZSSC4132 chip is responsible for processing the signals from the temperature and pressure sensors to provide accurate environmental monitoring data for the vehicle.

[0132] In some embodiments of the present application, based on the aforementioned scheme, the zeroing system also includes a first wireless communication module and a second wireless communication module for wireless communication with the first wireless communication module, the first wireless communication module is connected to the communication interface, the second wireless communication module is connected to the target sensor chip, and the communication interface is communicatively connected to the target sensor chip via the first wireless communication module and the second wireless communication module.

[0133] The first wireless communication module and the second wireless communication module may be various modules capable of communicating with each other, such as a WIFI module or a Bluetooth module.

[0134] By setting up the first wireless communication module and the second wireless communication module, the user can remotely monitor the status of the sensor through the control module and issue control commands to the zeroing mainboard, thereby realizing remote monitoring and control of the pressure sensor.

[0135] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0136] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.

[0137] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0138] It will be appreciated that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A method for zeroing a target sensor, characterized in that: include: Acquire a measured value outputted by a target sensor chip at an actual zero point and a theoretical value outputted by the target sensor chip at the zero point, wherein the target sensor chip comprises a target sensor and a signal conditioning chip connected to the target sensor, and the target sensor comprises at least one of a pressure sensor and a temperature sensor; Determine the actual drift rate of the target sensor according to the measured value output by the target sensor chip at the actual zero point, the theoretical value output by the target sensor chip at the zero point, the resolution of the target sensor chip and the measured value range corresponding to the target sensor; Determining whether the target sensor drifts according to a comparison result of the actual drift rate and a predetermined drift rate threshold; When it is determined that the target sensor has drifted, obtaining a sensitivity coefficient and a current calibration coefficient of the target sensor chip; Determine the difference between the measured value and the theoretical value, and divide the difference between the measured value and the theoretical value by the reference voltage of the target sensor to obtain a zero point deviation voltage ratio; Divide the zero point deviation voltage ratio by the sensitivity coefficient to obtain a target measurement value digital deviation; Determine the sum of the target measurement value digital quantity deviation and the current calibration coefficient to obtain a new calibration coefficient; The new calibration coefficients are configured to the signal conditioning chip so that the target sensor chip outputs a measurement value according to the new calibration coefficients.

2. The method for zeroing a target sensor according to claim 1, characterized in that: The obtaining of the sensitivity coefficient and the current calibration coefficient of the target sensor chip includes: Obtaining a binary sensitivity coefficient stored in a register of the signal conditioning chip, and converting the binary sensitivity coefficient into a decimal system to obtain a sensitivity coefficient; The binary calibration coefficient stored in the register of the signal conditioning chip is obtained, and the binary calibration coefficient is converted into a decimal system to obtain a current calibration coefficient.

3. The method for zeroing a target sensor according to claim 2, characterized in that: The obtaining of the binary sensitivity coefficient stored in the register of the signal conditioning chip comprises: Obtaining a binary sensitivity coefficient from a target register address of a register of the signal conditioning chip; The configuring the new calibration coefficient to the signal conditioning chip comprises: Converting the new calibration coefficient into binary to obtain a new binary calibration coefficient; The new binary calibration coefficient is written to the target register address of the register of the signal conditioning chip.

4. The method for zeroing a target sensor according to claim 2, characterized in that: The obtaining of the binary sensitivity coefficient stored in the register of the signal conditioning chip comprises: Respectively obtain first binary values ​​from a plurality of first register addresses of the register of the signal conditioning chip to obtain a plurality of first binary values; The plurality of binary first values ​​are combined in a manner of high bit first and low bit last to obtain a binary sensitivity coefficient; The obtaining of the binary calibration coefficient stored in the register of the signal conditioning chip comprises: Respectively acquiring binary second values ​​from a plurality of second register addresses of the register of the signal conditioning chip to obtain a plurality of binary first values; The plurality of binary first values ​​are combined in a manner of high bits first and low bits last to obtain a binary calibration coefficient.

5. A zero adjustment device for a target sensor, characterized in that: The device comprises: a first acquisition unit, configured to acquire a measured value outputted by a target sensor chip at an actual zero point and a theoretical value outputted by the target sensor chip at zero point, wherein the target sensor chip comprises a target sensor and a signal conditioning chip connected to the target sensor, and the target sensor comprises at least one of a pressure sensor and a temperature sensor; The drift judgment unit is configured to: determine the actual drift rate of the target sensor according to the measurement value output by the target sensor chip at the actual zero point, the theoretical value output by the target sensor chip at the zero point, the resolution of the target sensor chip and the measurement value range corresponding to the target sensor; and determine whether the target sensor drifts according to the comparison result of the actual drift rate and a predetermined drift rate threshold; A second acquisition unit, configured to acquire a sensitivity coefficient and a current calibration coefficient of the target sensor chip when it is determined that the target sensor has drifted; A first determining unit is used to determine a difference between the measured value and the theoretical value, and divide the difference between the measured value and the theoretical value by a reference voltage of the target sensor to obtain a zero-point deviation voltage ratio; A second determining unit is used to divide the zero point deviation voltage ratio by the sensitivity coefficient to obtain a target measurement value digital quantity deviation; A summing unit, used to determine the sum of the target measurement value digital quantity deviation and the current calibration coefficient to obtain a new calibration coefficient; The configuration unit is used to configure the new calibration coefficient to the signal conditioning chip so that the target sensor chip outputs a measurement value according to the new calibration coefficient.

6. A zeroing system, characterized in that: include: A communication interface, used for communicating with a target sensor chip; A control module, used to control the zeroing mainboard to perform zeroing operations; The zeroing mainboard is connected to the control module and the communication interface respectively, and is used to implement the zeroing method of the target sensor according to any one of claims 1 to 4.

7. The zeroing system according to claim 6, characterized in that: The zeroing system also includes a first wireless communication module and a second wireless communication module that communicates wirelessly with the first wireless communication module, the first wireless communication module is connected to the communication interface, the second wireless communication module is connected to the target sensor chip, and the communication interface is communicatively connected to the target sensor chip via the first wireless communication module and the second wireless communication module.

Citation Information

Patent Citations

  • Automatic calibration method of sensor and batch calibration device

    CN106289366A

  • Compensation circuit for sensitivity and zero temperature drift in Hall sensor integrated chip and compensation method thereof

    CN110542870A

  • Pressure gauge having zero correction function and zero correction method

    JP2019168369A