Electronic scale zero point correction method and device

By collecting and judging the difference in digital signal values ​​while the electronic scale is in sleep mode, and using a piecewise linear formula to correct the zero point, the problems of high power consumption and untimely zero point correction in the wake-up state of the electronic scale are solved, thereby improving measurement accuracy and saving power consumption.

CN115219009BActive Publication Date: 2026-03-31SHENZHEN CHENBEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-05
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing technologies, electronic scales consume a lot of power when performing zero-point calibration in the wake-up state, and the zero-point calibration is not timely, resulting in inaccurate measurement results.

Method used

The electronic scale acquires digital signal values ​​while in sleep mode. The absolute value of the signal value difference is used to determine whether to reacquire the signal value and calibrate the zero point. The zero point of the electronic scale is calibrated using a piecewise linear formula.

Benefits of technology

It reduces the power consumption of zero-point calibration, improves measurement accuracy, enables timely zero-point calibration in sleep mode, and enhances the measurement precision of electronic scales.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115219009B_ABST
    Figure CN115219009B_ABST
Patent Text Reader

Abstract

The application provides an electronic scale zero point correction method and device, wherein the method comprises the following steps: collecting first digital signal values and second digital signal values of the electronic scale in a dormant state at intervals of a first sampling period; judging whether the absolute value of the difference between the first digital signal values and the second digital signal values is greater than a first preset value; if the absolute value of the difference between the first digital signal values and the second digital signal values is greater than the first preset value, then re-collecting a plurality of digital signal values of the electronic scale at intervals of a second sampling period; and correcting the zero point of the electronic scale according to the re-collected plurality of digital signal values. The application corrects the zero point of the electronic scale in the case that the digital signal values collected by the electronic scale in the dormant state change, solves the technical problems that the zero point correction of the electronic scale in the prior art will cause large power consumption and the zero point correction is not timely, and achieves the technical effects of improving the measurement accuracy of the electronic scale and saving the power consumption generated by correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic scale technology, and in particular to a method and apparatus for zero-point calibration of electronic scales. Background Technology

[0002] Electronic scales have two states: sleep mode and wake-up mode. Sleep mode refers to the scale's screen being off, while wake-up mode refers to the scale's screen being on. When an object is placed on the scale, the scale's pressure sensor can collect the corresponding analog pressure signal, convert the analog pressure signal into a digital signal, and obtain a digital signal value.

[0003] In existing technology, electronic scales perform zeroing in a wake-up state. During this state, the scale's screen is on, and the frequency of acquiring digital signal values ​​(AD values) is very high. Therefore, zero-point calibration in wake-up mode consumes significant power. If the scale is in sleep mode and is moved or an object is placed on it, zero-point calibration is not performed when the scale re-enters wake-up mode. Measurements obtained without zero-point calibration are inaccurate. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide at least one method and apparatus for zero-point calibration of electronic scales, which calibrates the zero point of the electronic scale when the digital signal value collected by the electronic scale in the sleep state changes. This solves the technical problems of large power consumption and untimely zero-point calibration in the prior art, and achieves the technical effect of improving the measurement accuracy of the electronic scale and saving power consumption generated by calibration.

[0005] This application mainly includes the following aspects:

[0006] In a first aspect, embodiments of this application provide a zero-point calibration method for an electronic scale. The method includes: acquiring a first digital signal value and a second digital signal value of the electronic scale at a first sampling period interval while the electronic scale is in a sleep state; determining whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than a first preset value; if the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value, then re-acquiring multiple digital signal values ​​of the electronic scale at a second sampling period interval; and calibrating the zero point of the electronic scale based on the re-acquired multiple digital signal values.

[0007] Optionally, after determining whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value, the method further includes: if the absolute value of the difference between the first digital signal value and the second digital signal value is less than or equal to the first preset value, then the first digital signal value and the second digital signal value of the electronic scale in the sleep state at an interval of the first sampling period are re-acquired.

[0008] Optionally, calibrating the zero point of the electronic scale based on the re-acquired multiple digital signal values ​​includes: determining whether the difference between any two digital signal values ​​is less than a preset range; if the difference between any two digital signal values ​​is less than the preset range, calculating the average value of the multiple digital signal values ​​and determining the average value as the current calibrated zero point; if the difference between any two digital signal values ​​is not less than the preset range, re-acquiring the first and second digital signal values ​​of the electronic scale at a first sampling period interval in the sleep state.

[0009] Optionally, before determining whether the difference between any two digital signal values ​​among the multiple digital signal values ​​is less than a preset range, the method further includes: determining whether the absolute value of the difference between the second digital signal value and the preset zero point is greater than a second preset value, and whether the absolute value of the difference between the second digital signal value and the zero point of the previous correction is greater than the second preset value; if the absolute value of the difference between the second digital signal value and the preset zero point is less than or equal to the second preset value, and / or the absolute value of the difference between the second digital signal value and the zero point of the previous correction is less than or equal to the second preset value, then re-acquire the multiple digital signal values ​​of the electronic scale at a second sampling period interval.

[0010] Optionally, after determining whether the absolute value of the difference between the second digital signal value and the preset zero point is greater than the second preset value, and whether the absolute value of the difference between the second digital signal value and the previously calibrated zero point is greater than the second preset value, the method further includes: if the absolute value of the difference between the second digital signal value and the preset zero point is greater than the second preset value, and the absolute value of the difference between the second digital signal value and the previously calibrated zero point is greater than the second preset value, then a preset number of digital signal values ​​of the electronic scale are collected; it is determined whether the difference between any two digital signal values ​​in the preset number of digital signal values ​​is less than a preset range; if the difference between any two digital signal values ​​in the preset number of digital signal values ​​is less than the preset range, then multiple digital signal values ​​of the electronic scale are re-collected at intervals of the second sampling period; if the difference between any two digital signal values ​​in the preset number of digital signal values ​​is greater than or equal to the preset range, then the first digital signal value and the second digital signal value of the electronic scale at intervals of the first sampling period in the sleep state are re-collected.

[0011] Optionally, the calibration linear formula corresponding to the preset zero point of the electronic scale is a piecewise linear formula, which includes multiple linear formulas. After calibrating the zero point of the electronic scale based on the multiple re-acquired digital signal values, the method further includes: determining the linear formula that matches the calibrated zero point according to the domain of each linear formula in the piecewise linear formula; substituting the calibrated zero point into the matching linear formula to obtain the weight value corresponding to the calibrated zero point; and subtracting the weight value from each linear formula in the piecewise linear formula to determine the calibrated piecewise linear formula.

[0012] Optionally, the method further includes: determining the domain of each linear formula in the corrected piecewise linear formula; acquiring the target digital signal value collected by the electronic scale in the wake-up state; determining the target linear formula that matches the target digital signal value based on the domain of each linear formula; and substituting the target digital signal value into the target linear formula to obtain the target digital signal to the corresponding weight value.

[0013] Secondly, embodiments of this application also provide an electronic scale zero-point calibration device, which includes: a first acquisition module for acquiring a first digital signal value and a second digital signal value of the electronic scale at a first sampling period interval when the electronic scale is in a sleep state; a judgment module for judging whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than a first preset value; a second acquisition module for re-acquiring multiple digital signal values ​​of the electronic scale at a second sampling period interval if the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value; and a calibration module for calibrating the zero point of the electronic scale based on the re-acquired multiple digital signal values.

[0014] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory through the bus. The machine-readable instructions are executed by the processor to perform the steps of the electronic scale zero-point calibration method described in the first aspect or any possible implementation of the first aspect.

[0015] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of zero-point calibration of the electronic scale as described in the first aspect or any possible implementation of the first aspect.

[0016] This application provides a method and apparatus for zero-point calibration of an electronic scale. The method includes: acquiring a first digital signal value and a second digital signal value of the electronic scale at a first sampling period interval while the scale is in a sleep state; determining whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than a first preset value; if the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value, then re-acquiring multiple digital signal values ​​of the electronic scale at a second sampling period interval; and calibrating the zero point of the electronic scale based on the re-acquired multiple digital signal values. This application calibrates the zero point of the electronic scale by correcting changes in the digital signal values ​​acquired while the scale is in a sleep state, solving the technical problems of high power consumption and untimely zero-point calibration in the prior art, thereby improving the measurement accuracy of the electronic scale and saving power consumption generated during calibration.

[0017] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart of an electronic scale zero-point calibration method provided in an embodiment of this application is shown.

[0020] Figure 2 A flowchart of another electronic scale zero-point calibration method provided in an embodiment of this application is shown.

[0021] Figure 3 This paper illustrates a functional block diagram of an electronic scale zero-point calibration device provided in an embodiment of this application.

[0022] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0024] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0025] Current technology for zero-point calibration of electronic scales performs the calibration during the current use of the scale and uses the calibrated zero point as the zero point for the next use. However, electronic scales are always in a wake-up state during use, when the screen is lit and the frequency of digital signal acquisition is high. Therefore, zero-point calibration in this wake-up state generates significant power consumption. Furthermore, if the scale is moved or items placed on it are removed before the next use, the zero point will change.

[0026] Based on this, this application provides a zero-point calibration method and apparatus for an electronic scale. By correcting the zero point of the electronic scale when the digital signal value collected during the electronic scale's sleep state changes, it solves the technical problems of high power consumption and untimely zero-point calibration in existing technologies. This achieves the technical effects of improving the measurement accuracy of the electronic scale and saving power consumption during calibration, as detailed below:

[0027] Please see Figure 1 , Figure 1 This is a flowchart illustrating a zero-point calibration method for an electronic scale provided in an embodiment of this application. Figure 1 As shown in the embodiment of this application, the zero-point calibration method for an electronic scale includes the following steps:

[0028] S101: Collect the first and second digital signal values ​​of the electronic scale in sleep mode at a first sampling period interval.

[0029] Each digital signal value corresponds to the weight of an item placed on the scale; that is, there is a one-to-one correspondence between digital signal values ​​and weights. When the scale is not in use for an extended period, items may be placed on it. Regardless of whether the weight of the items exceeds the initial weighing weight, if the weight of the items remains unchanged within a preset time range, the scale will enter a sleep state. The scale will only awaken from sleep mode when the weight of the items placed on it is greater than or equal to the initial weighing weight. The initial weighing weight is typically set to 5 kg, and the preset time range is typically set to 10 seconds.

[0030] For example, if a 10-kilogram object is placed on the electronic scale, the electronic scale will be awakened and in a wake-up state. If the object is not removed, the electronic scale will turn off the screen 10 seconds after displaying 10 kilograms, and the electronic scale will switch from a wake-up state to a sleep state.

[0031] The system acquires the first digital signal value of the electronic scale in sleep mode, and then acquires the second digital signal value at a first sampling period. In other words, the time interval between the sampling time of the first digital signal value and the sampling time of the second digital signal value is the first sampling period, and the sampling time of the second digital signal value is after the sampling time of the first digital signal value.

[0032] The first sampling period is generally set to match the sleep sampling period of the electronic scale. The sleep sampling period is generally set to 1 second, and therefore the first sampling period is also 1 second. In other words, the electronic scale itself collects digital signal values ​​according to the sleep sampling period while in sleep mode, and the first sampling period is also set to the sleep sampling period, which ensures that the power consumption generated by the electronic scale calibration is basically the same as the power consumption of the electronic scale in sleep mode.

[0033] S102: Determine whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value.

[0034] If the absolute value of the difference between the first digital signal value and the second digital signal value is less than or equal to the first preset value, then return to step S101: collect the first digital signal value and the second digital signal value of the electronic scale at a time interval of the first sampling period in the sleep state. That is, when the first digital signal value and the second digital signal value tend to be stable (the electronic scale is not moved or the weight of the object placed on the electronic scale remains unchanged), the zero point of the electronic scale is not calibrated.

[0035] Electronic scales have a calibration linear formula and a preset zero point. The calibration linear formula is a linear formula developed in the electronic scale manufacturing plant, using the digital signal value collected by the scale as the independent variable and the weight of the object placed on the scale corresponding to that digital signal value as the dependent variable. The preset zero point is the digital signal value corresponding to an object weighing 0 kilograms, which is the value of the independent variable when the dependent variable of the calibration linear formula is 0. In other words, the preset zero point and the calibration linear formula are constant.

[0036] The first preset value can be set to the digital signal value corresponding to a 500-gram object placed on the electronic scale. In other words, the independent variable value corresponding to a 500-gram object in the calibrated linear formula is the first preset value.

[0037] The method also includes: determining the first weight corresponding to the first digital signal and the second weight corresponding to the second digital signal value based on the calibration linear formula; and determining whether the absolute value of the difference between the first weight and the second weight is greater than a preset weight value.

[0038] In other words, the weight values ​​corresponding to the first and second digital signal values ​​can be determined by calibrating the linear formula, and it can be determined whether the difference between the weight value corresponding to the first digital signal value and the weight value corresponding to the first digital signal value is 500 grams.

[0039] S103: Reacquire multiple digital signal values ​​of the electronic scale at the second sampling interval.

[0040] If the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value, then multiple digital signal values ​​of the electronic scale are re-acquired at a second sampling period. In other words, if the fluctuation between the first and second digital signal values ​​is due to moving the electronic scale or moving the object placed on the electronic scale, then multiple digital signal values ​​of the electronic scale are re-acquired at a second sampling period.

[0041] The acquisition period for multiple digital signal values ​​is the second acquisition period, which can be 20 milliseconds, and the number of multiple digital signal values ​​can be set to 5.

[0042] S104: Correct the zero point of the electronic scale based on the multiple re-acquired digital signal values.

[0043] The zero-point calibration of the electronic scale based on the re-acquired multiple digital signal values ​​includes: determining whether the difference between any two digital signal values ​​is less than a preset range; if the difference between any two digital signal values ​​is less than the preset range, calculating the average value of the multiple digital signal values ​​and determining the average value as the current calibrated zero point; if the difference between any two digital signal values ​​is not less than the preset range, re-acquiring the first and second digital signal values ​​of the electronic scale in sleep mode at a first sampling period interval.

[0044] In other words, it determines whether multiple digital signal values ​​are approximate values. If multiple digital signal values ​​are approximate values, the average value of multiple digital signal values ​​is calculated and the average value is determined as the current corrected zero point. If multiple digital signal values ​​are not approximate values, step S101 is executed again: the first digital signal value and the second digital signal value of the electronic scale in sleep mode at a time interval of the first sampling period are collected.

[0045] In other words, after the first and second digital signals, multiple stable digital signal values ​​are acquired, and the zero point of the electronic scale is calibrated using these stable digital signal values.

[0046] Please see Figure 2 , Figure 2 A flowchart illustrating another method for zero-point calibration of an electronic scale provided in an embodiment of this application. Figure 2As shown in the embodiment of this application, the zero-point calibration method for an electronic scale includes the following steps:

[0047] S201: Collect the first and second digital signal values ​​of the electronic scale in sleep mode at a first sampling period interval.

[0048] S202: Determine whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value.

[0049] If the absolute value of the difference between the first digital signal value and the second digital signal value is less than or equal to the first preset value, then return to step S201: collect the first digital signal value and the second digital signal value of the electronic scale in sleep mode at a time interval of the first sampling period.

[0050] Steps S201 and S202 are the same as steps S101 and S102 above, and will not be repeated here.

[0051] S203: Determine whether the absolute value of the difference between the second digital signal value and the preset zero point is greater than the second preset value, and whether the absolute value of the difference between the second digital signal value and the zero point of the previous correction is greater than the second preset value.

[0052] The zero point of the last calibration refers to the zero point of the electronic scale after the last calibration.

[0053] If the absolute value of the difference between the second digital signal value and the preset zero point is less than or equal to the second preset value, and / or the absolute value of the difference between the second digital signal value and the previously calibrated zero point is less than or equal to the second preset value, then step S206 is executed: re-acquire multiple digital signal values ​​of the electronic scale at intervals of the second sampling period. In other words, if the difference between the second digital signal value and any one of the preset zero point or the previously calibrated zero point is small, it is considered that the weight corresponding to the zero point of this calibration is small and will not produce a large error, thus step S206 can be executed directly.

[0054] The second preset value can be set to the digital signal value corresponding to a 5 kg object placed on the electronic scale. In other words, the independent variable value corresponding to a 5 kg object as the dependent variable in the calibration linear formula is the second preset value.

[0055] S204: Collects a preset number of digital signal values ​​from the electronic scale.

[0056] If the absolute value of the difference between the second digital signal value and the preset zero point is greater than the second preset value, and the absolute value of the difference between the second digital signal value and the zero point of the last calibration is greater than the second preset value, then a preset number of digital signal values ​​of the electronic scale are collected.

[0057] In other words, if the second digital signal value differs significantly from both the preset zero point and the zero point of the previous correction, it is considered that the weight corresponding to the zero point of this correction is large. In order to prevent large errors, a preset number of digital signal values ​​need to be collected for comparison. When the preset number of digital signal values ​​tend to stabilize, this correction is then performed.

[0058] Situations where the second digital signal value differs significantly from both the preset zero point and the previous zero point include: when the electronic scale has accumulated heavy debris for a long time or when the person is not removed from the electronic scale in time after weighing.

[0059] The sampling period for a preset number of data signal values ​​is set as the first sampling period. That is, the sampling period in steps S201 and S204 is the first sampling period, which is generally set to be consistent with the sleep sampling period of the electronic scale. The preset number is generally set to 3.

[0060] S205: Determine whether the difference between any two digital signal values ​​in a preset number of digital signal values ​​is less than a preset range.

[0061] If the difference between any two digital signal values ​​in the preset number of digital signal values ​​is greater than or equal to the preset range, then return to step S201: collect the first digital signal value and the second digital signal value of the electronic scale in sleep mode at a time interval of the first sampling period.

[0062] In other words, if the preset number of digital signal values ​​is not an approximation, or if the preset number of digital signal values ​​collected are unstable, then the current correction fails, and step S201 is executed again: collect the first digital signal value and the second digital signal value of the electronic scale in sleep mode at a time interval of the first sampling period.

[0063] S206: Reacquire multiple digital signal values ​​of the electronic scale at the second sampling interval.

[0064] If the difference between any two digital signal values ​​in the preset number of digital signal values ​​is less than the preset range, then multiple digital signal values ​​of the electronic scale at the second sampling period will be re-acquired.

[0065] In other words, if the preset number of digital signal values ​​are approximate, meaning the preset number of digital signal values ​​are stable, then multiple digital signal values ​​from the electronic scale are acquired. The acquisition period for these multiple digital signal values ​​is the second acquisition period.

[0066] S207: Determine whether the difference between any two digital signal values ​​among multiple digital signal values ​​is less than a preset range.

[0067] If the difference between any two digital signal values ​​among the multiple digital signal values ​​is not both less than the preset range, then return to step S201: collect the first digital signal value and the second digital signal value of the electronic scale in sleep mode at a time interval of the first sampling period.

[0068] S208: Calculate the average value of multiple digital signal values ​​and determine the average value as the current corrected zero point.

[0069] If the difference between any two digital signal values ​​is less than a preset range, then the average value of the multiple digital signal values ​​is calculated, and the average value is determined as the current corrected zero point.

[0070] The current corrected zero point is set as the zero point of the previous correction corresponding to the next correction.

[0071] For example, in a factory, electronic scales can be calibrated by relating digital signal values ​​to body weight to obtain a calibration linear formula. Calibration refers to testing the accuracy and precision of the scale's weight measurement. By using a reference weight, external factors such as minor structural differences and sensor data discrepancies are normalized to ensure accuracy and precision. Assume the scale's range is 150 kg (meaning it can weigh objects from 0 kg to 150 kg). Record the digital signal value collected when the object on the scale is 0 kg. Define the digital signal value corresponding to 0 kg as the scale's preset zero point AD0. Record the digital signal value collected when the object on the scale is 50 kg (AD1), 100 kg (AD2), and 150 kg (AD3). The difference between AD3 and AD2 is determined as the first difference, the difference between AD2 and AD1 is determined as the second difference, and the difference between AD1 and AD0 is determined as the third difference. It is then determined whether the difference between any two of the third, second, and first differences is less than a preset range. If the difference between any two of the third, second, and first differences is less than the preset range, it indicates that AD3, AD2, AD1, and AD0 are approximate values, which further indicates that the digital signal value has a linear relationship with the weight of the object on the electronic scale, and the electronic scale is calibrated successfully. If the difference between any two of the third, second, and first differences is not less than the preset range, the electronic scale calibration fails.

[0072] Setting the digital signal value as the independent variable and the object weight as the dependent variable, the first linear formula y1 = k1 × x + b1 is determined using (AD0, 0) and (AD1, 50). The domain of the first linear formula is [AD0, AD1], and the range of its values ​​is [0, 50]. k1 is the slope of the first linear formula, and b1 is the intercept. The second linear formula y2 = k2 × x + b2 is determined using (AD1, 50) and (AD2, 100). The domain of the second linear formula is (AD1, AD2], and the range of its values ​​is (50, 100). k2 is the slope of the second linear formula, and b2 is the... The intercept of the second linear formula is used to determine the third linear formula y3 = k3 × x + b3. The domain of the third linear formula is (AD2, AD3], and the range of its values ​​is (100, 150]. k3 is the slope of the third linear formula, and b3 is the intercept. The first, second, and third linear formulas are used as the calibration linear formulas corresponding to the preset zero point (-b1 / k1) of the electronic scale. By substituting the digital signal value collected by the electronic scale as the independent variable into the corresponding linear formula, the weight corresponding to the digital signal value can be determined, thereby measuring the weight of the object on the electronic scale.

[0073] The calibration linear formula corresponding to the preset zero point of the electronic scale is a piecewise linear formula, which includes multiple linear formulas. After calibrating the zero point of the electronic scale based on the re-acquired digital signal values, the method further includes: determining the linear formula that matches the calibrated zero point according to the domain of each linear formula in the piecewise linear formula; substituting the calibrated zero point into the matching linear formula to obtain the weight value corresponding to the calibrated zero point; and subtracting the weight value from each linear formula in the piecewise linear formula to determine the calibrated piecewise linear formula.

[0074] The weight value corresponding to the calibrated zero point can be positive or negative.

[0075] For example, if the piecewise linear formula corresponding to the preset zero point of the electronic scale is: y1 = k1 × x + b1 when the domain of the independent variable is [AD0, AD1]; y2 = k2 × x + b2 when the domain of the independent variable is (AD1, AD2]; and y3 = k3 × x + b3 when the domain of the independent variable is (AD2, AD3]), and the zero point to be corrected is AD0, which belongs to [AD0, AD1], then substituting AD0 into y1 = k1 × x + b1, we get y0 = Let k1×AD0+b1, and y0 be the weight value corresponding to AD0. Then the corrected piecewise linear formula is y1=k1×x+b1-y0, with the domain of the independent variable being [AD0+y0 / k1, AD1+y0 / k1]; y2=k2×x+b2-y0, with the domain of the independent variable being (AD1+y0 / k2, AD2+y0 / k2]; y3=k3×x+b3-y0, with the domain of the independent variable being (AD2+y0 / k3, AD3+y0 / k3).

[0076] The method also includes: determining the domain of each linear formula in the corrected piecewise linear formula; acquiring the target digital signal value collected by the electronic scale in the wake-up state; determining the target linear formula that matches the target digital signal value based on the domain of each linear formula; and substituting the target digital signal value into the target linear formula to obtain the target digital signal to the corresponding weight value.

[0077] For example, if the corrected piecewise linear formulas are y1 = k1 × x + b1 - y0, the domain of the independent variable is [AD0 + y0 / k1, AD1 + y0 / k1]; y2 = k2 × x + b2 - y0, the domain of the independent variable is (AD1 + y0 / k2, AD2 + y0 / k2]; y3 = k3 × x + b3 - y0, the domain of the independent variable is (AD2 + y0 / k3, AD3 + y0 / k3). If the target digital signal value collected by the electronic scale in the wake-up state is AD1, and AD1 belongs to (AD1 + y0 / k2, AD2 + y0 / k2], then substituting AD1 into y2 = k2 × x + b2 - y0 yields a = k2 × AD1 + b2 - y0. Therefore, a represents the target digital signal to the corresponding weight value.

[0078] For example, in the prior art, when an electronic scale is picked up and placed on the ground, and a person stands on the scale to weigh themselves, the scale will display the weight of "person + scale". The weight corresponding to the calibrated zero point, calculated using the method described in this application, is the weight of the scale. This weight is then subtracted using a calibrated piecewise linear formula, resulting in the scale detecting the person's own weight. In the prior art, when the electronic scale is in sleep mode, if an item is placed on it, and the item is removed and then weighed, the scale will display the weight of "person - item". The weight corresponding to the calibrated zero point, calculated using the method described in this application, is the negative value of the item's weight. This weight is then added using a calibrated piecewise linear formula, resulting in the scale detecting the person's own weight.

[0079] Based on the same application concept, this application also provides an electronic scale zero-point calibration device corresponding to the electronic scale zero-point calibration method provided in the above embodiments. Since the principle of the device in this application is similar to the electronic scale zero-point calibration method in the above embodiments of this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0080] like Figure 3 As shown, Figure 3 This is a functional block diagram of an electronic scale zero-point calibration device provided in an embodiment of this application. The electronic scale zero-point calibration device 10 includes: a first acquisition module 101, a judgment module 102, a second acquisition module 103, and a calibration module 104. The first acquisition module 101 is used to acquire a first digital signal value and a second digital signal value of the electronic scale at a first sampling period interval when the electronic scale is in sleep mode; the judgment module 102 is used to determine whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than a first preset value; the second acquisition module 103 is used to re-acquire multiple digital signal values ​​of the electronic scale at a second sampling period interval if the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value; the calibration module 104 is used to calibrate the zero point of the electronic scale based on the re-acquired multiple digital signal values.

[0081] Based on the same application concept, see [link / reference] Figure 4 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. The electronic device 20 includes a processor 201, a memory 202, and a bus 203. The memory 202 stores machine-readable instructions that can be executed by the processor 201. When the electronic device 20 is running, the processor 201 and the memory 202 communicate through the bus 203. When the machine-readable instructions are executed by the processor 201, the steps of the zero-point calibration method for an electronic scale as described in any of the above embodiments are executed.

[0082] Specifically, when the machine-readable instructions are executed by the processor 201, the following processing can be performed: acquiring a first digital signal value and a second digital signal value of the electronic scale at a first sampling period interval while it is in sleep mode; determining whether the absolute value of the difference between the first digital signal value and the second digital signal value is greater than a first preset value; if the absolute value of the difference between the first digital signal value and the second digital signal value is greater than the first preset value, then re-acquiring multiple digital signal values ​​of the electronic scale at a second sampling period interval; and correcting the zero point of the electronic scale based on the re-acquired multiple digital signal values.

[0083] Based on the same concept, this application also provides a computer-readable storage medium storing a computer program, which, when run by a processor, executes the steps of the electronic scale zero-point calibration method provided in the above embodiments.

[0084] Specifically, the storage medium can be a general-purpose storage medium, such as a portable disk or hard disk. When the computer program on the storage medium is run, it can execute the above-mentioned zero-point calibration method for electronic scales. By correcting the zero point of the electronic scale when the digital signal value collected by the electronic scale in the sleep state changes, the technical problems of large power consumption and untimely zero-point calibration in the prior art are solved, thereby achieving the technical effects of improving the measurement accuracy of the electronic scale and saving power consumption generated by calibration.

[0085] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0086] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0087] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0088] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0089] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An electronic balance zero point correction method, characterized by, The electronic scale zero point correction method comprises: collecting first and second digital signal values of the electronic scale at an interval of a first sampling period in a dormant state, the first sampling period being the same as a dormant sampling period of the electronic scale, and the dormant state including at least that the weight of an article placed on the electronic scale does not change within a preset time range; judging whether the absolute value of the difference between the first and second digital signal values is greater than a first preset value; if the absolute value of the difference between the first and second digital signal values is greater than the first preset value, judging whether the absolute value of the difference between the second digital signal value and a preset zero point is greater than a second preset value, and whether the absolute value of the difference between the second digital signal value and a last corrected zero point is greater than the second preset value; if the absolute value of the difference between the second digital signal value and the preset zero point is greater than the second preset value, and the absolute value of the difference between the second digital signal value and the last corrected zero point is greater than the second preset value, collecting a preset number of digital signal values of the electronic scale, and judging whether the difference between any two of the preset number of digital signal values is less than a preset range; if the absolute value of the difference between the second digital signal value and the preset zero point is less than or equal to the second preset value and / or the absolute value of the difference between the second digital signal value and the last corrected zero point is less than or equal to the second preset value, or if the difference between any two of the preset number of digital signal values is less than the preset range, re-collecting a plurality of digital signal values of the electronic scale at an interval of a second sampling period, the second sampling period being less than the first sampling period; correcting the zero point of the electronic scale according to the re-collected plurality of digital signal values.

2. The electronic scale zero point correction method of claim 1, wherein, After judging whether the absolute value of the difference between the first and second digital signal values is greater than the first preset value, the method further comprises: if the absolute value of the difference between the first and second digital signal values is less than or equal to the first preset value, re-collecting first and second digital signal values of the electronic scale at an interval of the first sampling period in the dormant state.

3. The electronic scale zero point correction method of claim 1, wherein, The correcting the zero point of the electronic scale according to the re-collected plurality of digital signal values comprises: judging whether the difference between any two of the plurality of digital signal values is less than the preset range; if the difference between any two of the plurality of digital signal values is less than the preset range, calculating an average value of the plurality of digital signal values, and determining the average value as a current corrected zero point; if the difference between any two of the plurality of digital signal values is not less than the preset range, re-collecting first and second digital signal values of the electronic scale at an interval of the first sampling period in the dormant state.

4. The electronic scale zero point correction method of claim 1, wherein, The method further comprises: if the difference between any two of the preset number of digital signal values is greater than or equal to the preset range, re-collecting first and second digital signal values of the electronic scale at an interval of the first sampling period in the dormant state.

5. The electronic scale zero point correction method of claim 1, wherein, The calibration linear formula corresponding to the preset zero point of the electronic scale is a segmented linear formula, and the segmented linear formula comprises a plurality of linear formulas; After the electronic scale zero point is corrected according to the re-acquired plurality of digital signal values, the method further comprises: According to the definition domain of each linear formula in the segmented linear formula, a linear formula matched with the corrected zero point is determined; The corrected zero point is brought into the matched linear formula to obtain a weight value corresponding to the corrected zero point; Each linear formula in the segmented linear formula is subtracted by the weight value to determine a corrected segmented linear formula.

6. The electronic scale zero point correction method of claim 5, wherein, The method further comprises: Determining the definition domain of each linear formula of the corrected segmented linear formula; Acquiring a target digital signal value acquired by the electronic scale in a wake-up state; According to the definition domain of each linear formula, a target linear formula matched with the target digital signal value is determined; The target digital signal value is brought into the target linear formula to obtain a body weight value corresponding to the target digital signal.

7. An electronic zero point correction device, characterized in that The electronic scale zero point correction device comprises: A first acquisition module is configured to acquire first and second digital signal values of the electronic scale in a sleep state at intervals of a first sampling period, wherein the first sampling period is the same as the sleep sampling period of the electronic scale, and the sleep state at least includes that the weight of an object placed on the electronic scale does not change within a preset time range; A judgment module is configured to judge whether the absolute value of the difference between the first and second digital signal values is greater than a first preset value; A second acquisition module is configured to: if the absolute value of the difference between the first and second digital signal values is greater than the first preset value, judge whether the absolute value of the difference between the second digital signal value and a preset zero point is greater than a second preset value, and whether the absolute value of the difference between the second digital signal value and the last corrected zero point is greater than the second preset value; If the absolute value of the difference between the second digital signal value and the preset zero point is greater than the second preset value, and the absolute value of the difference between the second digital signal value and the last corrected zero point is greater than the second preset value, a preset number of digital signal values of the electronic scale are acquired, and it is judged whether the difference between any two digital signal values in the preset number of digital signal values is less than a preset range; If the absolute value of the difference between the second digital signal value and the preset zero point is less than or equal to the second preset value and / or the absolute value of the difference between the second digital signal value and the last corrected zero point is less than or equal to the second preset value, or if the difference between any two digital signal values in the preset number of digital signal values is less than the preset range, a plurality of digital signal values of the electronic scale at intervals of a second sampling period are re-acquired, and the second sampling period is less than the first sampling period; A correction module is configured to correct the electronic scale zero point according to the re-acquired plurality of digital signal values.

8. An electronic device, comprising: It comprises: A processor, a memory, and a bus, the memory storing machine readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicating through the bus, the machine readable instructions being executed by the processor to perform the steps of the electronic scale zero point correction method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A computer readable storage medium storing a computer program, the computer program being executed by the processor to perform the steps of the electronic scale zero point correction method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Automatic calibration method of electronic scale

    CN105258779A

  • Method and device for infusion inspection of charging state automatic calibration and measurement basis

    CN108344486A

  • Balance following algorithm of weighing zero point

    CN112130934A

  • Weight measuring apparatus

    JP2010038688A