Weighing zero point calibration method and system and computer-readable medium

The method and system for weighing zero point calibration improve accuracy and reliability by using a systematic approach to collect and analyze weight data, calculate zero points, and apply fluctuation thresholds, thus addressing common challenges in existing systems.

WO2025130874A1PCT designated stage expired Publication Date: 2025-06-26METTLER TOLEDO (CHANGZHOU) PRECISION INSTR CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/139993
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-18
Filing Date
2024-12-17
Publication Date
2025-06-26

AI Technical Summary

Technical Problem

Existing weighing systems face challenges in maintaining accurate zero point calibration due to factors like temperature changes, dust accumulation, and object impacts, leading to reduced measurement accuracy and increased complexity in configuration.

Method used

A method and system for weighing zero point calibration that collects original weight data within different time periods, calculates initial and preliminary zero points, and uses fluctuation thresholds to determine the validity of the preliminary zero point, thereby improving calibration accuracy and robustness.

Benefits of technology

The proposed solution enhances the accuracy and reliability of weighing zero point calibration by effectively addressing issues related to temperature changes, dust accumulation, and object impacts, while also simplifying the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024139993_26062025_PF_FP_ABST
    Figure CN2024139993_26062025_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to a weighing zero point calibration method and system and a computer-readable medium. The method includes: step S1: collecting first original weight data, and calculating an initial zero point; step S2: collecting current original weight data, determining whether the current original weight data meets a first preset condition, and if yes, performing step S3; step S3: collecting second original weight data, determining whether the second original weight data meets the first preset condition, and if yes, performing step S4; step S4: collecting third original weight data, calculating a preliminary zero point and a first zero point fluctuation value, determining whether the preliminary zero point is valid, and if yes, performing step S5; step S5: collecting fourth original weight data, calculating a second zero point fluctuation value, determining whether the preliminary zero point is valid, and if yes, performing step S6; and step S6: using the preliminary zero point as a current weighing zero point. The present invention can improve the accuracy of weighing zero point calibration.
Need to check novelty before this filing date? Find Prior Art

Description

WEIGHING ZERO POINT CALIBRATION METHOD AND SYSTEM AND COMPUTER-READABLE MEDIUMBACKGROUND OF THE INVENTIONTechnical Field

[0001] The present invention mainly relates to the field of dynamic product weighing technologies, and specifically to a weighing zero point calibration method and system and a computer-readable medium.Background Art

[0002] During weighing of a packaged object in product logistics transportation and other processes, the object passes through an electronic scale (for example, a belt scale) within a random time. During long-time operation of an existing electronic scale, due to factors such as changes in air temperature, humidity, and wind speed, dust accumulation on the electronic scale, and an impact caused by a measured object (for example, fat in meat) on the electronic scale, and the like, as time elapses, a zero point drift may occur on the electronic scale. As a result, measurement accuracy is reduced, and a measured weight of the object is inaccurate.

[0003] At present, a method for automatic zeroing at a fixed period is generally used for weighing zero point calibration, so as to solve as much as possible a zero point drift problem caused by long-time operation of an electronic scale. For example, a zeroing command is periodically triggered by using a programmable logic controller (PLC) . On some electronic scales, a photoelectric sensor configured to detect whether an object is placed on a scale or removed from a scale is provided. In some weighing zero point calibration methods, fixed-period zeroing is implemented based on a photoelectric signal of the photoelectric sensor triggered by an object and a weighing weight.

[0004] In an existing weighing zero point calibration method using a PLC and a photoelectric sensor, because components such as a PLC and a photoelectric apparatus need to be additionally configured on an electronic scale, the complexity of configuring the electronic scale is increased, which is not conducive to the integration of user equipment. In a weighing process, if an object is suddenly placed on a scale at a moment when a periodic zeroing operation is performed, a zero point obtained by the current calibration may deviate from an actual zero point. If fixed-period zeroing is implemented only depending on an object placement photoelectric signal and an object removal photoelectric signal of a photoelectric sensor, when the photoelectric sensor is damaged, the robustness of weighing zero point calibration is greatly reduced or it is impossible to perform weighing zero point calibration. There is a problem of Iow accuracy in weighing zero point calibration in the prior art.SUMMARY

[0005] A technical problem to be resolved by the present application is to provide a weighing zero point calibration method and system and a computer-readable medium, which can improve the accuracy of weighing zero point calibration.

[0006] To resolve the above technical problem, a technical solution used in the present application is a weighing zero point calibration method. The method includes: step S1: collecting first original weight data within a first preset time period, and calculating an initial zero point based on the first original weight data; step S2: collecting current original weight data in real time, determining whether the current original weight data meets a first preset condition, and if no, repeating step S2, or if yes, performing step S3, where the first preset condition is set based on the initial zero point; step S3: collecting second original weight data within a second preset time period, determining whether each piece of second original weight data meets the first preset condition, and if no, performing step S2, or if yes, performing step S4; step S4: collecting a preset quantity of pieces of third original weight data, calculating a preliminary zero point and a first zero point fluctuation value based on the third original weight data, determining, whether the preliminary zero point is valid based on the first zero point fluctuation value, and if no, performing step S2, or if yes, performing step S5; step S5: collecting a preset quantity of pieces of fourth original weight data, calculating a second zero point fluctuation value based on the fourth original weight data, determining whether the preliminary zero point is valid based on the second zero point fluctuation value and if no, performing step S2, or if yes, performing step S6; and step S6: using the preliminary zero point as a current weighing zero point.

[0007] In an embodiment of the present application, in step S5, determining whether the preliminary zero point is valid based on the second zero point fluctuation value, and if yes, step S6 is performed after step S5 is repeated at least once.

[0008] In an embodiment of the present application, in step S1 to step S5, when the first original weight data, the current original weight data, the second original weight data, the third original weight data, and the fourth original weight data are collected, the original weight data in each step is filtered using the following formula, to obtain filtered original weight data f (n) where N denotes a frequency of collecting original weight data, d denotes a filtering  depth, w [·] denotes a weight array formed by original weight data collected at the frequency of N Hertz, n denotes a sequence number of the original weight data in the weight array, and traversal is started for n from first piece of original weight data in the weight array.

[0009] In an embodiment of the present application, the step of calculating the initial zero point based on the first original weight data in step S1 includes: calculating the initial zero point Z0 using the following formula: where X denotes the first preset time period, and f (i) denotes an ith piece of filtered  first original weight data.

[0010] In an embodiment of the present application, step S1 further includes: calculating a short-period zero point fluctuation threshold Z1 based on the first original weight data, and using the following formulas: O (n) = Max (f (n) ~f (n + αN -1) ) -Min (f (n) ~f (n + αN -1) ) where f (n) denotes an nth piece of filtered first original weight data; α is a constant  greater than Mαx (f (n) ~f (n + αN -1) ) denotes a maximum value in the nth piece of filtered first original weight data to an (n + αN -1) th piece of filtered first original weight data; Min (f (n) ~f (n + αN -1) ) denotes a minimum value in the nth piece of filtered first original weight data to the (n + αN -1) th piece of filtered first original weight data; PrioA denotes a first weight value; and PrioB denotes a second weight value.

[0011] In an embodiment of the present application, step S1 further includes: calculating a long-period zero point fluctuation threshold Z2 based on the first original weight data, and using the following formula: Z2 = Max (f [·] ) -Min (f [·] ) where f [·] denotes an array formed by all filtered first original weight data.

[0012] In an embodiment of the present application, the first preset condition is (K2 *Z2) + (K1 *Z1) + Z0, where K1、 K2 are constants greater than or equal to 0, and K1 ≠ K2 or K1 = K2; Z2 denotes the long-period zero point fluctuation threshold, Z1 denotes the short-period zero point fluctuation threshold, and Z0 denotes the initial zero point; the steps of determining whether the current original weight data meets the first preset condition in step S2 and determining whether each piece of second original weight data meets the first preset condition in step S3 include: if the filtered original weight data is less than (K2 *Z2) + (K1 *Z1) + Z0, determining that the first preset condition is met; or if the filtered original weight data is greater than or equal to (K2 *Z2) + (K1 *Z1) + Z0, determining that the first preset condition is not met.

[0013] In an embodiment of the present application, the step of calculating the preliminary zero point and the first zero point fluctuation value based on the third original weight data in step S4 includes: calculating the preliminary zero point PZ using the following formula: where F (i) denotes an ith piece of filtered third original weight data, and β is a constant  greater than and calculating the first zero point fluctuation value M using the following formula: M = Max (F (n) ~F (n + βN) ) -Min (F (n) ~f (n + βN) ) where F (n) denotes an nth piece of filtered third original weight data; Max (F (n) ~F (n +  βN) ) denotes a maximum value in the nth piece of filtered third original weight data to an (n + βN) th piece of filtered third original weight data; and Min (F (n) ~f (n + βN) ) denotes a minimum value in the nth piece of filtered third original weight data to the (n + βN) th piece of filtered third original weight data.

[0014] In an embodiment of the present application, the step of determining, based on the first zero point fluctuation value, whether the preliminary zero point is valid in step S4 includes: if a second preset condition that TC -TR < X and M < Z1, or TC -TR ≥ X and M< Z2, or TC -TR > 2 *X and M< 2 *Z2 is met, determining that the preliminary zero point is valid; or if the second preset condition is not met, determining that the preliminary zero point is invalid, where TC denotes a moment at which the preliminary zero point is obtained, TR denotes a moment at which the initial zero point is obtained, X denotes the first preset time period, M denotes the first zero point fluctuation value, Z1 denotes the short-period zero point fluctuation threshold, and Z2 denotes the long-period zero point fluctuation threshold.

[0015] In an embodiment of the present application, the step of determining, based on the second zero point fluctuation value, whether the preliminary zero point is valid in step S5 includes: if a third preset condition that or or is met, determining that the preliminary zero point is valid; or if the third preset condition is not met, determining that the preliminary zero point is invalid, where Mnew denotes the second zero point fluctuation value, C in denotes a quantity of times of performing step S5, n denotes an nth time of performing step S5, and 1 ≤ n ≤ C.

[0016] In an embodiment of the present application, after the step of using the preliminary zero point as a current weighing zero point in step S6, the method further includes: calculating a time interval TI = TC -TR between a moment TC at which the preliminary zero point is obtained and a moment TR at which the initial zero point is obtained; storing the time interval TI in a zero point interval array TS; and using the moment TC as the moment TR to refresh a zero point obtaining time.

[0017] In an embodiment of the present application, in a process of calculating the short-period zero point fluctuation threshold Z1 in step S1, the second weight value Prio B and the first weight value Prio A are calculated using the following formulas: Prio A = 1-Prio B where n denotes a quantity of pieces of data in the zero point interval array TS, and n is  an integer greater than or equal to 1; γ is an integer greater than or equal to 1, and n ≥ γ;X denotes the first preset time period; N denotes a frequency of collecting the first original weight data; and TS (i) denotes an ith piece of data in the zero point interval array TS.

[0018] In an embodiment of the present application, in a process of performing step S2 to step S5, an object signal is obtained from a weighing apparatus in real time, and if it is determined, based on the object signal, that there is an object on the weighing apparatus, step S2 is performed.

[0019] In an embodiment of the present application, in step S4, determine whether the preliminary zero point is valid based on the first zero point fluctuation value, and if yes, before step S5 is performed, the method further includes: storing the initial zero point in a zero point rollback temporary storage space, and temporarily using the preliminary zero point as the current weighing zero point; and in step S5, determine whether the preliminary zero point is valid based on the second zero point fluctuation value, and if no, before step S2 is performed, the method further includes: temporarily using a last initial zero point in the zero point rollback temporary storage space as the current weighing zero point.

[0020] To resolve the above technical problem, the present application further provides a weighing zero point calibration system. The system includes: a memory configured to store instructions executable by a processor; and the processor, configured to execute the instructions to implement the above weighing zero point calibration method.

[0021] To resolve the above technical problem, the present application further provides a computer-readable medium storing computer program code thereon, where the computer program code, when executed by the processor, implements the above weighing zero point calibration method.

[0022] In the technical solutions of the present application, the original weight data within different time periods is collected, and the initial zero point, the short-period zero point fluctuation threshold, and the long-period zero point fluctuation threshold are calculated, so that it can be determined, in combination with the initial zero point, whether the original weight data meets the first preset condition, so as to detect in a timely manner whether there is an object on an electronic scale, and skip to perform weighing zero point calibration when there is an object on the scale. The preliminary zero point, the first zero point fluctuation value, and the second zero point fluctuation value are calculated, so that whether the preliminary zero point is valid can be determined in combination with the short-period zero point fluctuation threshold, the long-period zero point fluctuation threshold, the first zero point fluctuation value, and the second zero point fluctuation value. When it is determined that the preliminary zero point is invalid, it indicates that the preliminary zero point is unreliable and needs to be discarded. When it is determined that the preliminary zero point is valid, it indicates that the preliminary zero point is reliable, and the preliminary zero point can be used to perform weighing zero point calibration. A pre-zeroing concept is used in the present application. The original weight data collected within different future time periods is used to verify whether a previously calculated preliminary zero point is reliable. Such a setting can improve the accuracy of weighing zero point calibration. The present application can avoid a problem caused when an object is placed on a scale during a zeroing operation, thereby improving the reliability of automatic zeroing.

[0023] To make the above objectives, features, and advantages of the present application more comprehensible, specific implementations of the present application are further described below in detail with reference to the accompanying drawings. Where: Fig. 1 is an exemplary flowchart of a weighing zero point calibration method  according to an embodiment of the present application; Fig. 2 is an exemplary flowchart of a weighing zero point calibration method  according to another embodiment of the present application; Fig. 3 is an exemplary flowchart of a weighing zero point calibration method  using zero point rollback according to the present application; and Fig. 4 is a system block diagram of a weighing zero point calibration system  according to an embodiment of the present application.BRIEF DESCRIPTION OF THE DRAWINGS

[0024] To make the above objectives, features, and advantages of the present application more comprehensible, specific implementations of the present application are further described below in detail with reference to the accompanying drawings.

[0025] In the following descriptions, many specific details are described to make the present application fully comprehensible. However, the present application may be implemented in other manners different from those described herein. Therefore, the present application is not limited to specific embodiments disclosed below.

[0026] As shown in the present application and the claims, unless the context expressly indicates otherwise, the words “a” , “an” , “said” , and / or “the” do not specifically refer to the singular, but may also include the plural. Generally, the terms “include” and “comprise” only suggest that the expressly identified steps and elements are included, but these steps and elements do not constitute an exclusive list, and the method or device may further include other steps or elements.

[0027] In the present application, a flowchart is used to illustrate the operations performed by a system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed exactly in order. Instead, the various steps may be processed in reverse order or simultaneously. In addition, other operations are added to these processes, or operations of a certain step or several steps are removed from these processes.

[0028] The present application provides a weighing zero point calibration method, which is applicable to an electronic scale, for example, a logistics belt scale, a product checkweigher, or the like. The present application is also applicable to a scenario of dynamic check weighing of a non-belt scale. For example, a to-be-measured object is carried to a weighing platform by a robotic arm. The weighing zero point calibration method of the present application may be run in a controller of an electronic scale, or may be run in a cloud platform. When the weighing zero point calibration method is run in the cloud platform, data of the electronic scale and data of the cloud platform are exchanged through a wireless network. For example, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an interconnected cloud, a multi-cloud, or the like or any combination thereof. A running environment of the weighing zero point calibration method is not limited in the present application.

[0029] FIG. 1 is an exemplary flowchart of a weighing zero point calibration method according to an embodiment of the present application. Referring to FIG. 1, the weighing zero point calibration method in this embodiment includes the following steps: step S1: collecting first original weight data within a first preset time period, and  calculating an initial zero point based on the first original weight data; step S2: collecting current original weight data in real time, determining whether the  current original weight data meets a first preset condition, and if no, repeating step S2, or if yes, perform step S3, where the first preset condition is set based on the initial zero point; step S3: collecting second original weight data within a second preset time period,  determining whether each piece of second original weight data meets the first preset condition, and if no, performing step S2, or if yes, performing step S4; step S4: collecting a preset quantity of pieces of third original weight data, calculating a  preliminary zero point and a first zero point fluctuation value based on the third original weight data, determining, whether the preliminary zero point is valid based on the first zero point fluctuation value, and if no, performing step S2, or if yes, performing step S5; step S5: collecting a preset quantity of pieces of fourth original weight data, calculating  a second zero point fluctuation value based on the fourth original weight data, determining, whether the preliminary zero point is valid based on the second zero point fluctuation value, and if no, performing step S2, or if yes, performing step S6; and step S6: using the preliminary zero point as a current weighing zero point.

[0030] For example, a process of obtaining the preliminary zero point and using the preliminary zero point as a new zero point is described below. Step S1 to step S6 are described below in detail.

[0031] In some embodiments, for example, in step S1 to step S5 below, when the first original weight data, the current original weight data, the second original weight data, the third original weight data, and the fourth original weight data are collected, the original weight data in each step is filtered using the following formula (1) , to obtain filtered original weight data f (n) : where N denotes a frequency of collecting original weight data, d denotes a filtering  depth, w [·] denotes a weight array formed by original weight data collected at the frequency of N Hertz, n denotes a sequence number of original weight data in the weight array, and traversal is started for n from the first piece of original weight data in the weight array. For example, a frequency N of collecting the first original weight data, a frequency N of collecting the current original weight data, a frequency N of collecting the second original weight data, a frequency N of collecting the third original weight data, and a frequency N of collecting the fourth original weight data are not limited in the present application. These frequencies may be set to be the same or different. If low-frequency noise obtained through analysis is concentrated near S Hertz (hz) , it may set that the filtering depth is

[0032] For example, in an actual application scenario, in a process of starting an electronic scale system, there may be impacts such as motor vibration and an unstable installation position of a weighing platform. As a result, collected original weight data may carry a noise signal. In the present application, the original weight data collected within different time periods is filtered, so that the accuracy of subsequent data processing can be improved, and zero point data features in a non-steady state can be better recognized. During actual application, the original weight data may not choose to be filtered. This is not limited in the present application.

[0033] In step S1, the first original weight data within the first preset time period is collected, and the initial zero point is calculated based on the first original weight data. For example, it may be considered that a period of time (for example, 1 minute to 30 minutes) after an electronic scale is powered on and turned on is a startup phase of the electronic scale system. In this case, it is required that no object should be placed on the electronic scale, and a parameter calculated based on the first original weight data in the startup phase of the system has good reference significance. The first preset time period may be set as required to any time ranging from 1 minute to 30 minutes.

[0034] In some embodiments, the step of calculating an initial zero point based on the first original weight data in step S1 includes: calculating the initial zero point Z0 using the following formula (2) : where X denotes the first preset time period, and f (i) denotes an ith piece of filtered  first original weight data. For example, if a time period for collection is set to X minutes, a weight array w [·] formed by the collected first original weight data includes X *N *60 pieces of data. A moment at which the initial zero point Z0 is calculated may be recorded as TR at the same time.

[0035] In some embodiments, step S1 further includes: calculating a short-period zero point fluctuation threshold based on the first original weight data, and calculating the short-period zero point fluctuation threshold Z1 using the following formula (3) and formula (4): O(n) = Max (f (n) ~f (n + αN -1) ) -Min (f (n) ~f (n + αN -1) )  (4)  where f (n) denotes an nth piece of filtered first original weight data; α is a constant  greater than Max (f (n) ~f (n + αN -1) ) denotes a maximum value in the nth piece of filtered first original weight data to an (n + αN -1) th piece of filtered first original weight data; Min (f (n) ~f (n + αN -1) ) denotes a minimum value in the nth piece of filtered first original weight data to the (n + αN -1) th piece of filtered first original weight data; PrioA denotes a first weight value; and PrioB denotes a second weight value.

[0036] For example, if a result value of αN in the formula (4) contains a decimal place, for example, αN = 1.4, the result value of αN may be rounded to 1 according to the rounding-off method. Alternatively, the result value of αN may be rounded up to 2. Alternatively, the result value of αN may be rounded down to 1. A method for rounding the result value of αN is not limited in the present application. It may be considered that αN in the formula (4) is equivalent to first original weight data collected within α seconds at the frequency N, and (n + αN -1) cannot exceed an index of the last value in all the first original weight data. The short-period zero point fluctuation threshold may represent an impact caused by inherent vibration (for example, motor vibration, platform vibration, or the like) on the electronic scale.

[0037] For example, the above formula (3) is equivalent to obtaining the short-period zero point fluctuation threshold Z1 by calculating a mean value and a maximum value of all O(n) and performing weighted processing. The first weight value PrioA may be 0.5, and the second weight value PrioB may be 0.5. The first weight value PrioA and the second weight value PrioB are not limited in the present application. An adaptive calculation method for the first weight value PrioA and the second weight value PrioB is further specially designed in the present application. The adaptive calculation method is described below.

[0038] In some embodiments, step S1 further includes: calculating a long-period zero point fluctuation threshold based on the first original weight data, and calculating the long-period zero point fluctuation threshold Z2 using the following formula (5) : Z2 = Max (f [·] ) -Min (f [·] )          (5)  where f [·] denotes an array formed by all filtered first original weight data. For  example, the above formula (5) is equivalent to finding a maximum value and a minimum value in all data of the array f [·] and calculating a difference between them.  For example, the long-period zero point fluctuation threshold may represent an impact  caused by a special case, for example, an impact caused by a temperature change resulting from heat generation of a sensor component after the electronic scale is turned on.

[0039] For example, it may be considered that after operation for a period of time (for example, the first preset time period) , a preparation phase of the electronic scale system ends, an operation phase is entered. Step S2 to step S6 below are equivalent to the operation phase of the electronic scale system.

[0040] In step S2, the current original weight data is collected in real time, whether the current original weight data meets the first preset condition is determined, and if no, step S2 is repeated, or if yes, step S3 is performed, where the first preset condition is set based on the initial zero point. For example, in the present application, the first preset condition is set, so that it can be detected in a timely manner whether an object is placed on the electronic scale. When an object is placed on the scale, it indicates that collected data is unreliable, and there is a need to re-collect data, so that it is set to repeat step S2 in the present application.

[0041] In some embodiments, the first preset condition is (K2 *Z2) + (K1 *Z1) + Z0, where K1、K2 are constants greater than or equal to 0, and K1 ≠ K2 or K1 = K2; Z2 denotes the long-period zero point fluctuation threshold, Z1 denotes the short-period zero point fluctuation threshold, and Z0 denotes the initial zero point. The step of determining whether the current original weight data meets the first preset condition in step S2 includes: step S201: if filtered current original weight data is less than (K2 *Z2) + (K1 *Z1) +  Z0, determining that the first preset condition is met; or step S202: if the filtered current original weight data is greater than or equal to  (K2 *Z2) + (K1 *Z1) + Z0, determining that the first preset condition is not met.

[0042] In step S3, the second original weight data within the second preset time period is collected, whether each piece of second original weight data meets the first preset condition is determined, and if no, step S2 is performed, or if yes, step S4 is performed.

[0043] In some embodiments, the step of determining whether each piece of second original weight data meets the first preset condition in step S3 includes: step S301: if each piece of filtered second original weight data is less than (K2 *Z2) +  (K1 *Z1) + Z0, determining that the first preset condition is met; or step S302: if each piece of filtered second original weight data is greater than or equal  to (K2 *Z2) + (K1 *Z1) + Z0, determining that the first preset condition is not met.

[0044] For example, the second preset time period is related to the values of K1、 K2 The value of K2 in the first preset condition (K2 *Z2) + (K1 *Z1) + Z0 in the present application may be 5, and the value of K1 may be 0. In other words, the second preset time period may be set to five seconds (s) . If a photoelectric sensor or another high-speed system with a high throughput is provided in the electronic scale, the values of K1、 K2 may be set to small values (for example, 1 or 2) . If the electronic scale has a Iow throughput, the values of K1、 K2 may be set to large values (for example, 8 or 9) . (K2*Z2) in the first preset condition is equivalent to a weight threshold, that is, K2 times of the long-period zero point fluctuation threshold Z2. During actual application, the weight threshold (K2 *Z2) may be generally set to 5%to 50%of an actual weight of a to-be-measured object. This is not limited in the present application.

[0045] For example, during actual application, because a filter may have a delay and as a result a weight signal outputted by the filter has a delay, whether there is an object on the scale may fail to be accurately determined based on the weight signal. Therefore, in a scenario without a photoelectric signal mode (no photoelectric sensor is provided in the electronic scale) , the length of the second preset time period in step S3 may be appropriately increased to ensure the reliability of determining an empty scale state. In addition, in the present application, whether the current original weight data collected in real time in step S2 and the second original weight data collected within the second preset time period in step S3 meet the first preset condition may be determined, so that an impact caused by the delay of the filter can be minimized, and the overall accuracy of weighing zero point calibration can be improved.

[0046] In step S4, the preset quantity of pieces of third original weight data are collected, the preliminary zero point and the first zero point fluctuation value are calculated based on the third original weight data, whether the preliminary zero point is valid is determined based on the first zero point fluctuation value, and if no, step S2 is performed, or if yes, step S5 is performed.

[0047] In some embodiments, the step of calculating a preliminary zero point and a first zero point fluctuation value based on the third original weight data in step S4 includes: step S401: calculating the preliminary zero point PZ using the following formula (6) : where F (i) denotes an ith piece of filtered third original weight data, β is a constant  greater than and a moment at which the preliminary zero point PZ is obtained may be recorded as TC at the same time; and step S402: calculating the first zero point fluctuation value M using the following  formula (7) : M = Max (F (n) ~F (n + βN) ) -Min (F (n) ~f (n + βN) )        (7) where F (n) denotes an nth piece of filtered third original weight data; Max (F (n) ~F (n +  βN) ) denotes a maximum value in the nth piece of filtered third original weight data to an (n + βN) th piece of filtered third original weight data; and Min (F (n) ~f (n + βN) ) denotes a minimum value in the nth piece of filtered third original weight data to the (n + βN) th piece of filtered third original weight data.

[0048] For example, in the present application, the filtered original weight data obtained by the electronic scale system in the operation phase is denoted by a capital F for distinguishing it from the filtered original weight data f obtained by the above electronic scale system in the startup phase. If the result value of βN in the formulas (6) and (7) contain a decimal place, for example, βN = 1.4, the result value of βN may be rounded to 1 according to the rounding method. Alternatively, the result value of βN may be rounded up to 2. Alternatively, the result value of βN may be rounded down to 1. A method for rounding the result value of βN is not limited in the present application. It may be considered that βN in the formula (7) is equivalent to third original weight data collected within β seconds at the frequency N, and (n + βN) cannot exceed an index of the last value in all the third original weight data.

[0049] In some embodiments, the step of determining, based on the first zero point fluctuation value, whether the preliminary zero point is valid in step S4 includes: if a second preset condition that TC-TR < X and M < Z1, or TC -TR ≥ X and M < Z2, or TC-TR > 2* X and M< 2 *Z2 is met, determining that the preliminary zero point is valid; or if the second preset condition is not met, determining that the preliminary zero point is invalid, where TC denotes a moment at which the preliminary zero point is obtained, TR denotes a moment at which the initial zero point is obtained, X denotes the first preset time period, M denotes the first zero point fluctuation value, Z1 denotes the short-period zero point fluctuation threshold, and Z2 denotes the long-period zero point fluctuation threshold.

[0050] For example, a time concept is introduced into the second preset condition. According to multiple determination conditions in the second preset condition in the present application, it may be understood that if a time from the last successful zeroing is short, more stringent zeroing may be performed to ensure reliability. If the time from the last successful zeroing is long, the conditions may be relaxed to implement successful zeroing. In the present application, the second preset condition is set, so that a case that zeroing fails due to a temperature drift impact caused by a long-time temperature change or an occasional impact caused by wind or the like can be avoided. The present application can achieve both reliability and effectiveness.

[0051] In step S5, the preset quantity of pieces of fourth original weight data are collected, the second zero point fluctuation value is calculated based on the fourth original weight data, whether the preliminary zero point is valid is determined based on the second zero point fluctuation value, and if no, step S2 is performed, or if yes, step S6 is performed. For example, the second zero point fluctuation value may be calculated using the above formula (7) . During actual application, because a filter may have a delay and as a result a weight signal outputted by the filter has a delay, whether there is an object on the scale may fail to be accurately determined based on the weight signal. Therefore, in a scenario without a photoelectric signal mode, the collecting a preset quantity of pieces fourth original weight data in step S5 is equivalent to appropriately extending a time of collecting original weight data, so that the reliability of determining an empty scale state is ensured.

[0052] In some embodiments, in step S5, whether the preliminary zero point is valid is determined based on the second zero point fluctuation value, and if yes, step S6 is performed after step S5 is repeated at least once. For example, it may be set as required to repeat step S5 once or repeat step S5 a plurality of times. This is not limited in the present application. In the present application, when it is determined that the preliminary zero point is valid, it is set to repeat step S5 at least once, so that the reliability of the preliminary zero point can be further ensured.

[0053] In some embodiments, the step of determining, based on the second zero point fluctuation value, whether the preliminary zero point is valid in step S5 includes: if a third preset condition that TC -TR < X and or TC -TR ≥ X and or TC -TR > 2 *X and is met, determining that the preliminary zero point is valid; or if the third preset condition is not met, determining that the preliminary zero point is invalid, where Mnew denotes the second zero point fluctuation value, C in denotes a quantity of times of performing step S5, n denotes an nth time of performing step S5, and 1 ≤ n ≤ C. For example, the third preset condition set in the present application is equivalent to that as the quantity of times of performing step S5 increases, some determination conditions in the third preset condition are gradually relaxed accordingly. Such a setting can improve the reliability of the preliminary zero point and the timeliness of weighing zero point calibration.

[0054] In step S6, the preliminary zero point is used as the current weighing zero point. For example, through the determination in the plurality of steps above, it indicates that the preliminary zero point is reliable, and the preliminary zero point may be used as the current weighing zero point for weighing zero point calibration. For example, it may be set that Z0 = PZ, where the symbol = denotes a value assignment operation.

[0055] In some embodiments, after the step of using the preliminary zero point as a current weighing zero point in step S6, the method further includes the following steps: step S610: calculating a time interval TI = TC -TR between a moment TC at which the  preliminary zero point is obtained and a moment TR at which the initial zero point is obtained; step S620: storing the time interval TI in a zero point interval array TS; and step S630: using the moment TC as the moment TR to refresh a zero point obtaining  time. For example, it may be set in step S630 that TR = TC, where the symbol = denotes a value assignment operation.

[0056] For example, through step S2 to step S6 above, it is equivalent to that one round of weighing zero point calibration is completely performed. Subsequently, it may be set that step S2 is performed after step S6 is performed, indicating that a next round of weighing zero point calibration continues to be performed in the operation phase of the electronic scale system. In some embodiments, to enhance the adaptability of the electronic scale system, a short-period zero point feature model may be updated dynamically. For example, the first zero point fluctuation value M calculated according to the formula (7) in step S4 above may be added to the array O (n) calculated according to the formula (4) in step S1 to form a new array Onew (n) , and the short-period zero point fluctuation threshold Z1 may be re-calculated based on the new array Onew (n) . This is equivalent to making a preparation for a next round of zero point calculation.

[0057] An adaptive calculation method for the first weight value PrioA and the second weight value PrioB is described below. In some embodiments, in a process of calculating the short-period zero point fluctuation threshold Z1 in step S1, the second weight value PrioB and the first weight value PrioA are calculated using the following formula (8) and formula (9) : PrioA = 1-PrioB        (9) where n denotes a quantity of pieces of data in the zero point interval array TS, and n is  an integer greater than or equal to 1; γ is an integer greater than or equal to 1, and n ≥γ; X denotes the first preset time period; N denotes a frequency of collecting the first original weight data; and TS (i) denotes an ith piece of data in the zero point interval array TS. For example, the formula (8) and formula (9) are set, so that the second weight value PrioB and the first weight value PrioA may be adaptively adjusted, thereby improving the overall accuracy of the weighing zero point calibration method.

[0058] For example, the above-mentioned technical content of the present application is applicable to a scenario in which no photoelectric sensor is provided in an electronic scale (no photoelectric signal mode is provided) , and weighing zero point calibration may be performed on the electronic scale only based on the original weight data. When no photoelectric signal mode is provided, because the electronic scale does not depend on an external trigger signal, the weighing zero point calibration method of the present application may be expanded for use in non-belt scales, for example, a scenario in which a to-be-measured object is moved to a weighing platform by using a robotic arm. The present application is also applicable to an electronic scale in which a photoelectric sensor cannot be used due to a special characteristic of an object (for example, the object is excessively thin, the object is transparent, or the like) .

[0059] In the present application, for a scenario in which a photoelectric sensor is provided in an electronic scale (aphotoelectric signal mode is provided) , a weighing zero point calibration method is correspondingly designed, so that application scenarios of the present application can be expanded, thereby improving the flexibility of weighing zero point calibration. In some embodiments, in a process of performing step S2 to step S5, an object signal (for example, an object placement signal and an object removal signal in a photoelectric signal) is obtained from a weighing apparatus (for example, an electronic scale) in real time, and if it is determined, based on the object signal, that there is an object on the weighing apparatus, step S2 is performed. In the present application, in the weighing zero point calibration method with a photoelectric signal mode, most technical content is the same as that described above. Details are not described here again.

[0060] In the present application, whether there is currently an object on the electronic scale (for example, a belt scale) is determined through logical determination of the photoelectric signal and the weight threshold. If no object passes through the electronic scale for a period of time, it may be considered that at present, the electronic scale is in a steady near-zero point state, so that original weight data within the period of time may be collected and the preliminary zero point may be calculated. Subsequently, observation is continued for a period of time. If no photoelectric signal is triggered within a preset observation time and a weight remains steady and does not exceed a threshold, it may be considered that the previously calculated preliminary zero point is a valid and reliable zero point, and subsequently the preliminary zero point may be set as a new zero point. If a photoelectric signal is triggered within the observation time, it indicates that the calculated preliminary zero point is obtained when an object is about to be placed on the scale. In this case, the preliminary zero point is unreliable, and the preliminary zero point may be discarded. In the present application, through introduction of double determination of the photoelectric signal and the original weight data and a pre-zeroing operation, a problem caused when an object is placed during an automatic zeroing operation can be avoided, thereby improving the accuracy of weighing zero point calibration.

[0061] A zero point rollback method is further designed to perform weighing zero point calibration in the present application. In some embodiments, in step S4, whether the preliminary zero point is valid is determined based on the first zero point fluctuation value, and if yes, before step S5 is performed, the method further includes: storing the initial zero point Z0 in a zero point rollback temporary storage space ZP, and temporarily using the preliminary zero point PZ as the current weighing zero point; and in step S5, whether the preliminary zero point is valid is determined based on the second zero point fluctuation value, and if no, before step S2 is performed, the method further includes: temporarily using a last initial zero point in the zero point rollback temporary storage space ZP as the current weighing zero point. In the present application, in the weighing zero point calibration method with a zero point rollback idea, most technical content is the same as that described above. Details are not described here again.

[0062] For example, the zero point rollback idea is described in combination with a specific scenario. For example, when it is determined, based on the photoelectric signal and the weight threshold, that there is no object on the scale, detection lasts for a period of time. If a weight fluctuation is not greater than a certain proportion of a preset weight threshold (for example, 5%to 80%of the weight threshold) within the period of time, in this case, a new zero point is calculated based on original weight data collected within the period of time. A previous zero point is stored while the new zero point takes effect. Starting from a time point at which the new zero point takes effect, a preset period of time Time may continue to be waited or a preset quantity of pieces of original weight data are collected. If a weight fluctuation amplitude within this period of time Time or of the collected original weight data exceeds the weight threshold, or a weight fluctuation amplitude exceeds a certain times (for example, 0.8 times to 5 times) of the weight threshold, or the photoelectric sensor detects that there is an object on the scale, in this case, the new zero point is considered unreliable, and the previously stored old zero point is immediately rolled back to keep a previous zero point state.

[0063] In the technical solutions of the present application, the original weight data within different time periods is collected, and the initial zero point, the short-period zero point fluctuation threshold, and the long-period zero point fluctuation threshold are calculated, so that it can be determined, in combination with the initial zero point, whether the original weight data meets the first preset condition, so as to detect in a timely manner whether there is an object on an electronic scale, and skip to perform weighing zero point calibration when there is an object on the scale. The preliminary zero point, the first zero point fluctuation value, and the second zero point fluctuation value are calculated, so that whether the preliminary zero point is valid can be determined in combination with the short-period zero point fluctuation threshold, the long-period zero point fluctuation threshold, the first zero point fluctuation value, and the second zero point fluctuation value. When it is determined that the preliminary zero point is invalid, it indicates that the preliminary zero point is unreliable and needs to be discarded. When it is determined that the preliminary zero point is valid, it indicates that the preliminary zero point is reliable, and the preliminary zero point can be used to perform weighing zero point calibration. A pre-zeroing concept is used in the present application. The original weight data collected within different future time periods is used to verify whether a previously calculated preliminary zero point is reliable. Such a setting can improve the accuracy of weighing zero point calibration. The present application can avoid a problem caused when an object is placed on a scale during a zeroing operation, thereby improving the reliability of automatic zeroing.

[0064] The weighing zero point calibration method of the present application is described below using two embodiments. Embodiment 1

[0065] FIG. 2 is an exemplary flowchart of a weighing zero point calibration method according to another embodiment of the present application. Referring to FIG. 2, in step S210, a startup phase of an electronic scale system is entered. In step S220, original weight data within a period of time is collected. In step S230, the original weight data is filtered, and an initial zero point is calculated. In step S240, a short-period zero point fluctuation threshold and a long-period zero point fluctuation threshold are calculated. In step S250, an operation phase of the electronic scale system is entered. In step S260, current original weight data is collected in real time and is filtered. In step S270, whether the current original weight data meets a first preset condition is determined in real time, and if no, step S270 is repeated, or if yes, step S280 is performed. In step S280, original weight data within a next period of time is collected, whether each piece of original weight data meets the first preset condition is determined, and if no, step S270 is performed, or if yes, step S290 is performed.

[0066] Continuing to refer to FIG. 2, in step S290, a preset quantity of pieces of original weight data are collected, a preliminary zero point and a zero point fluctuation value are calculated, whether the preliminary zero point is valid is determined, and if no, step S270 is performed, or if yes, step S2100 is performed. In step S2100, a preset quantity of pieces of original weight data continue to be collected, whether the preliminary zero point is valid is determined, and if no, step S270 is performed, or if yes, step S2110 is performed. Step S2100 may be repeated a plurality of times. In step S2110, the preliminary zero point is set as a current weighing zero point, and a zero point obtaining time is updated. When step S2120 is reached, it indicates that current zeroing succeeds, and a next round of periodic zeroing is entered, or the weighing zero point calibration method is ended. If a next round of periodic zeroing needs to be entered, step S250 is performed. Optionally, a short-period zero point fluctuation model in step S240 may be updated after step S2120, to make a preparation for a next round of periodic zeroing. Embodiment 2

[0067] FIG. 3 is an exemplary flowchart of a weighing zero point calibration method using zero point rollback according to the present application. Referring to FIG. 3, in step S310, a startup phase of an electronic scale system is entered. In step S320, original weight data within a period of time is collected. In step S330, the original weight data is filtered, and an initial zero point is calculated. In step S340, a short-period zero point fluctuation threshold and a long-period zero point fluctuation threshold are calculated. In step S350, an operation phase of the electronic scale system is entered. In step S360, current original weight data is collected in real time and is filtered. In step S370, whether the current original weight data meets a first preset condition is determined in real time, and if no, step S370 is repeated, or if yes, step S380 is performed. In step S380, original weight data within a next period of time is collected, whether each piece of original weight data meets the first preset condition is determined, and if no, step S370 is performed, or if yes, step S390 is performed.

[0068] Continuing to refer to FIG. 3, in step S390, a preset quantity of pieces of original weight data are collected, a preliminary zero point and a zero point fluctuation value are calculated, whether the preliminary zero point is valid is determined, and if no, step S370 is performed, or if yes, step S3100 is performed. In step S3100, the preliminary zero point is set as a current weighing zero point, and a previous old zero point is stored. In step S3110, a preset quantity of pieces of original weight data continue to be collected, whether the preliminary zero point is valid is determined, and if no, when step S3122 is reached, it indicates that the preliminary zero point is unreliable, a previously stored old zero point is used to roll back the current weighing zero point to a previous state, and step S370 is performed, or if yes, when step S3121 is reached, it indicates that the preliminary zero point is reliable and it is not necessary to roll back a zero point, a zero point array is updated, and a zero point obtaining time is refreshed. When step S3130 is reached, it indicates that current zeroing succeeds, and a next round of periodic zeroing is entered, or the weighing zero point calibration method is ended. If it is necessary to enter a next round of periodic zeroing, step S350 is performed. Optionally, a short-period zero point fluctuation model in step S340 may be updated after step S3130, to make a preparation for a next round of periodic zeroing.

[0069] The present application further includes a weighing zero point calibration system. The system includes a memory and a processor. The memory is configured to store instructions executable by the processor. The processor is configured to execute the instructions to implement the above weighing zero point calibration method.

[0070] FIG. 4 is a system block diagram of a weighing zero point calibration system according to an embodiment of the present application. Referring to FIG. 4, the weighing zero point calibration system 400 may include an internal communication bus 401, a processor 402, a read-only memory (ROM) 403, a random access memory (RAM) 404, and a communication port 405. The weighing zero point calibration system 400 may further include a hard disk 406. The internal communication bus 401 may implement data communication between the components of the weighing zero point calibration system 400. The processor 402 can perform determination and give a prompt. In some embodiments, the processor 402 may include one or more processors. The communication port 405 may implement data communication between the weighing zero point calibration system 400 and outside. In some embodiments, the weighing zero point calibration system 400 may receive information and data from and send information and data to a network through the communication port 405. The weighing zero point calibration system 400 may further include program storage units and data storage units in different forms, for example, the hard disk 406, the read-only memory (ROM) 403, and the random access memory (RAM) 404, so that various data files used in computer processing and / or communication and possible program instructions performed by the processor 402 can be stored. The processor executes these instructions to implement the main part of the method. A processing result from the processor is transmitted to user equipment through the communication port and displayed in a user interface.

[0071] The above weighing zero point calibration method may be implemented as a computer program, which is stored in the hard disk 406 and may be loaded into the processor 402 for execution to implement the weighing zero point calibration method of the present application.

[0072] The present application further includes a computer-readable medium storing computer program code thereon, where the computer program code, when executed by a processor, implements the above weighing zero point calibration method.

[0073] The weighing zero point calibration method may also be stored, as an article of manufacture, in the computer-readable storage medium when implemented as the computer program. For example, the computer-readable storage media may include, but are not limited to, a magnetic storage device (e.g., a hard disk, a floppy disk, and a magnetic stripe) , an optical disc (e.g., a compact disc (CD) , and a digital versatile disc (DVD) ) , a smart card, and a flash memory device (e.g., an electrically erasable programmable read-only memory (EPROM) , a card, a stick, and a key driver) . In addition, various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term “machine-readable medium” may include, but is not limited to, wireless channels and various other media (and / or storage media) capable of storing, containing, and / or carrying code and / or instructions and / or data.

[0074] It should be understood that the embodiments described above are merely illustrative. The embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor may be implemented in one or more application-specific integrated circuits (ASIC) , digital signal processors (DSP) , digital signal processing devices (DSPD) , programmable logic devices (PLD) , field programmable gate arrays (FPGA) , processors, controllers, microcontrollers, microprocessors, and / or other electronic units designed to perform the functions described herein, or a combination thereof.

[0075] Some aspects of the present application may be completely executed by hardware, or may be completely executed by software (including firmware, resident software, microcode, etc. ) , or may be executed by a combination of hardware and software. The hardware or software described above may all be referred to as “data block” , “module” , “engine” , “unit” , “component” , or “system” . The processor may be one or more application-specific integrated circuits (ASIC) , digital signal processors (DSP) , digital signal processing devices (DAPD) , programmable logic devices (PLD) , field-programmable gate arrays (FPGA) , processors, controllers, microcontrollers, microprocessors, or a combination thereof. In addition, various aspects of the present application may be embodied as a computer product in one or more computer-readable media, and the product includes computer-readable program code. For example, the computer-readable media may include, but are not limited to, a magnetic storage device (for example, a hard disk, a floppy disk, a tape... ) , an optical disc (for example, a compact disc (CD) , a digital versatile disc (DVD) ... ) , a smart card, and a flash memory device (for example, a card, a stick, a key drive... ) .

[0076] The computer-readable medium may include a propagation data signal containing computer program code, for example, on a baseband or as a part of a carrier. The propagation signal may take various forms, including an electromagnetic form, an optical form, etc., or a suitable combination form. The computer-readable medium may be any computer-readable medium other than a computer-readable storage medium. The medium may be connected to an instruction execution system, apparatus, or device to implement communication, propagation, or transmission of a program for use. The program code located on the computer-readable medium can be propagated through any suitable medium, including radio, a cable, a fiber-optic cable, a radio frequency signal, or a similar medium, or any combination of the foregoing media.

[0077] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure of the present application is merely used as an example and does not constitute a limitation on the present application. Those skilled in the art may make various modifications, improvements, and amendments to the present application, although it is not explicitly stated here. Such modifications, improvements, and amendments are suggested in the present application, and therefore, such modifications, improvements, and amendments still fall within the spirit and scope of exemplary embodiments of the present application.

[0078] Also, the present application uses specific words to describe the embodiments of the present application. For example, “one embodiment” , “an embodiment” , and / or “some embodiments” mean a feature, structure, or characteristic associated with at least one embodiment of the present application. Therefore, it should be emphasized and noted that two or more references to “an embodiment” , “one embodiment” , or “an alternative embodiment” in various places in this specification do not necessarily indicate the same embodiment. In addition, some features, structures, or characteristics in one or more embodiments of the present application may be combined appropriately.

[0079] In some embodiments, numbers for describing the number of compositions and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifier “about” , “approximately” , or “substantially” in some examples. Unless otherwise stated, “about” , “approximately” , or “substantially” indicates that the number is allowed to vary by ± 20%. Correspondingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, and the approximate values can be changed according to the required characteristics of individual embodiments. In some embodiments, for the numerical parameters, the specified significant digits should be taken into consideration, and a general digit reservation method should be used. Although the numerical ranges and parameters used to confirm the breadth of the ranges of the numerical parameters in some embodiments of the present application are approximate values, such numerical values need to be set as precisely as possible within a feasible range in specific embodiments.

Claims

1.A weighing zero point calibration method, characterized by comprising the steps of:step S1: collecting first original weight data within a first preset time period, and calculating an initial zero point based on the first original weight data;step S2: collecting current original weight data in real time, determining whether the current original weight data meets a first preset condition, and if no, repeating step S2, or if yes, performing step S3, where the first preset condition is set based on the initial zero point;step S3: collecting second original weight data within a second preset time period, determining whether each piece of second original weight data meets the first preset condition, and if no, performing step S2, or if yes, performing step S4;step S4: collecting a preset quantity of pieces of third original weight data, calculating a preliminary zero point and a first zero point fluctuation value based on the third original weight data, determining whether the preliminary zero point is valid based on the first zero point fluctuation value, and if no, performing step S2, or if yes, performing step S5;step S5: collecting a preset quantity of pieces of fourth original weight data, calculating a second zero point fluctuation value based on the fourth original weight data, determining whether the preliminary zero point is valid based on the second zero point fluctuation value, and if no, performing step S2, or if yes, performing step S6; andstep S6: using the preliminary zero point as a current weighing zero point.2.The weighing zero point calibration method according to claim 1, characterized in that in step S5, determining whether the preliminary zero point is valid based on the second zero point fluctuation value, and if yes, step S6 is performed after step S5 is repeated at least once.3.The weighing zero point calibration method according to claim 1, characterized in that in step S1 to step S5, when the first original weight data, the current original weight data, the second original weight data, the third original weight data, and the fourth original weight data are collected, the original weight data in each step is filtered using the following formula, to obtain filtered original weight data f (n) wherein N denotes a frequency of collecting original weight data, d denotes a filtering depth, w [·] denotes a weight array formed by original weight data collected at the frequency of N Hertz, n denotes a sequence number of the original weight data in the weight array, and traversal is started for n from first piece of original weight data in the weight array.4.The weighing zero point calibration method according to claim 3, characterized in that the step of calculating the initial zero point based on the first original weight data in step S1 comprises: calculating the initial zero point Z0 using the following formula: wherein X denotes the first preset time period, and f (i) denotes an ith piece of filtered first original weight data.5.The weighing zero point calibration method according to claim 3, characterized in that step S1 further comprises: calculating a short-period zero point fluctuation threshold Z1 based on the first original weight data, and using the following formulas: O (n) = Max (f (n) ~f (n + ɑN -1) ) -Min (f (n) ~f (n + ɑN -1) )wherein f (n) denotes an nth piece of filtered first original weight data; ɑ is a constant greater thanMax (f (n) ~f (n + ɑN -1) ) denotes a maximum value in the nth piece of filtered first original weight data to an (n + ɑN -1) th piece of filtered first original weight data; Min (f (n) ~f (n + ɑN -1) ) denotes a minimum value in the nth piece of filtered first original weight data to the (n + ɑN -1) th piece of filtered first original weight data; PrioA denotes a first weight value; and PrioB denotes a second weight value.6.The weighing zero point calibration method according to claim 5, characterized in that step S1 further comprises: calculating a long-period zero point fluctuation threshold Z2 based on the first original weight data, and using the following formula: Z2 = Max (f [·] ) -Min (f [·] )wherein f [·] denotes an array formed by all filtered first original weight data.7.The weighing zero point calibration method according to claim 6, characterized in that the first preset condition is (K2 *Z2) + (K1 *Z1) + Z0, wherein K1、 K2 are constants greater than or equal to 0, and K1 ≠ K2 or K1 = K2; Z2 denotes the long-period zero point fluctuation threshold, Z1 denotes the short-period zero point fluctuation threshold, and Z0 denotes the initial zero point; the steps of determining whether the current original weight data meets the first preset condition in step S2 and determining whether each piece of second original weight data meets the first preset condition in step S3 comprises:If the filtered original weight data is less than (K2 *Z2) + (K1 *Z1) + Z0, determining that the first preset condition is met; orif the filtered original weight data is greater than or equal to (K2 *Z2) + (K1 *Z1) + Z0, determining that the first preset condition is not met.8.The weighing zero point calibration method according to claim 6, characterized in that the step of calculating the preliminary zero point and the first zero point fluctuation value based on the third original weight data in step S4 comprises:calculating the preliminary zero point PZ using the following formula:wherein F (i) denotes an ith piece of filtered third original weight data, and β is a constant greater thanandcalculating the first zero point fluctuation value M using the following formula:M = Max (F (n) ~F (n + βN) ) -Min (F (n) ~f (n + βN) )wherein F (n) denotes an nth piece of filtered third original weight data; Max (F (n) ~F (n + βN) ) denotes a maximum value in the nth piece of filtered third original weight data to an (n +βN) th piece of filtered third original weight data; and Min (F (n) ~f (n +βN) ) denotes a minimum value in the nth piece of filtered third original weight data to the (n + βN) th piece of filtered third original weight data.9.The weighing zero point calibration method according to claim 8, characterized in that the step of determining, based on the first zero point fluctuation value, whether the preliminary zero point is valid in step S4 comprises:if a second preset condition that TC -TR < X and M < Z1, or TC -TR ≥ X and M < Z2, or TC -TR > 2 *X and M < 2 *Z2 is met, determining that the preliminary zero point is valid; or if the second preset condition is not met, determining that the preliminary zero point is invalid,wherein TC denotes a moment at which the preliminary zero point is obtained, TR denotes a moment at which the initial zero point is obtained, X denotes the first preset time period, M denotes the first zero point fluctuation value, Z1 denotes the short-period zero point fluctuation threshold, and Z2 denotes the long-period zero point fluctuation threshold.10.The weighing zero point calibration method according to claim 9, characterized in that the step of determining, based on the second zero point fluctuation value, whether the preliminary zero point is valid in step S5 comprises:if a third preset condition that TC -TR < X andor TC -TR ≥ X and or TC -TR > 2 *X andis met, determining that the preliminary zero point is valid; or if the third preset condition is not met, determining that the preliminary zero point is invalid,wherein Mnew denotes the second zero point fluctuation value, C indenotes a quantity of times of performing step S5, n denotes an nth time of performing step S5, and 1 ≤ n ≤ C.11.The weighing zero point calibration method according to claim 5, characterized in that after the step of using the preliminary zero point as a current weighing zero point in step S6, the method further comprises:calculating a time interval TI = TC -TR between a moment TC at which the preliminary zero point is obtained and a moment TR at which the initial zero point is obtained;storing the time interval TI in a zero point interval array TS; andusing the moment TC as the moment TR to refresh a zero point obtaining time.12.The weighing zero point calibration method according to claim 11, characterized in that in a process of calculating the short-period zero point fluctuation threshold Z1 in step S1, the second weight value PrioB and the first weight value PrioA are calculated using the following formulas: PrioA = 1 -PrioBwherein n denotes a quantity of pieces of data in the zero point interval array TS, and n is an integer greater than or equal to 1; γ is an integer greater than or equal to 1, and n ≥ γ; X denotes the first preset time period; N denotes a frequency of collecting the first original weight data; and TS (i) denotes an ith piece of data in the zero point interval array TS.13.The weighing zero point calibration method according to any one of claims 1 to 12, characterized in that in a process of performing step S2 to step S5, an object signal is obtained from a weighing apparatus in real time, and if it is determined, based on the object signal, that there is an object on the weighing apparatus, step S2 is performed.14.The weighing zero point calibration method according to claim 13, characterized in that in step S4, determine whether the preliminary zero point is valid based on the first zero point fluctuation value, and if yes, before step S5 is performed, the method further comprises:storing the initial zero point in a zero point rollback temporary storage space, andtemporarily using the preliminary zero point as the current weighing zero point; andin step S5, determine whether the preliminary zero point is valid based on the second zero point fluctuation value, and if no, before step S2 is performed, the method further comprises: temporarily using a last initial zero point in the zero point rollback temporary storage space as the current weighing zero point.15.A weighing zero point calibration system, characterized by comprising:a memory configured to store instructions executable by a processor; andthe processor, configured to execute the instructions to implement the weighing zero point calibration method according to any one of claims 1 to 14.16.A computer-readable medium storing computer program code thereon, characterized in that the computer program code, when executed by the processor, implements the weighing zero point calibration method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Weighing calibration method, device, equipment and medium

    CN114397003A