Electronic scale state control method, electronic scale control method and electronic scale
By setting the weight threshold range and status confirmation mechanism in the electronic scale, the problem of misjudging the object when the electronic scale is disturbed by external interference is solved, and the reliability and battery life of the electronic scale are improved.
Patent Information
- Application Number
- CN202411481210.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-03-11
AI Technical Summary
Existing electronic scales are prone to misjudgment of targets when they are interfered by external factors, resulting in missed working conditions and reducing the reliability of electronic scales.
By setting the weight threshold range, when the weight value is detected within the threshold range in the electronic scale pre-wake state, the state confirmation is performed, a plurality of second weight measurement values are obtained, and whether it is disturbed by external factors is determined, thereby accurately switching the state.
It reduces the possibility of electronic scale misjudgment entering the working state, improves the reliability of electronic scales, and extends battery life.
Smart Images

Figure CN119595078A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic scales, and in particular to an electronic scale state control method, device, storage medium and computer program product, an electronic scale control method, device, storage medium and computer program product, and an electronic scale. Background Art
[0002] As a common measuring tool, electronic scales are widely used in daily life. Their usage covers weighing ingredients in home kitchens, weight checks in gyms, and cargo measurement in commercial fields and industrial production.
[0003] However, electronic scales may be affected by external factors, and it is easy for the electronic scale to misjudge and enter the working state even though there is no object on the scale, and the measured weight value is 0 and the screen is displayed.
[0004] This shows that current electronic scales still have the problem of low reliability. Summary of the invention
[0005] Based on this, it is necessary to provide a more reliable electronic scale state control method, device, electronic scale, computer-readable storage medium and computer program product, as well as an electronic scale control method, device, computer-readable storage medium and computer program product to address the above-mentioned technical problems.
[0006] In a first aspect, the present application provides an electronic scale state control method, comprising:
[0007] Obtaining a first weight measurement value of the electronic scale, where the first weight measurement value is a weight value measured by the electronic scale when it is in a pre-awakening state;
[0008] When the first weight measurement value satisfies a preset target weight threshold range, obtaining a plurality of second weight measurement values of the electronic scale;
[0009] Based on the plurality of second weight measurement values, the state switching of the electronic scale is controlled.
[0010] In one embodiment, based on the plurality of second weight measurement values, controlling the state switching of the electronic scale comprises:
[0011] Confirm whether there is signal interference on the electronic scale and obtain the interference detection result;
[0012] Based on the interference detection result, the state switching of the electronic scale is controlled.
[0013] In one embodiment, when the first weight measurement value is within a preset target weight threshold range, obtaining a plurality of second weight measurement values of the electronic scale includes:
[0014] When the first weight measurement value is within a preset target weight threshold range, switching the electronic scale from a pre-awakening state to an interference confirmation state;
[0015] A plurality of second weight measurement values measured by the electronic scale in the interference confirmation state are obtained.
[0016] In one embodiment, when the first weight measurement value is within a preset target weight threshold range, switching the electronic scale from a pre-awakening state to an interference confirmation state includes:
[0017] Determine the current weighing mode of the electronic scale;
[0018] determining a weight threshold range corresponding to the weighing mode as a target weight threshold range;
[0019] When the first weight measurement value is within the target weight threshold range, the electronic scale is switched from the pre-awakening state to the interference confirmation state.
[0020] In one embodiment, based on the plurality of second weight measurement values, determining whether there is signal interference in the electronic scale, and obtaining the interference detection result includes:
[0021] performing data filtering on the plurality of second weight measurements;
[0022] Compare the filtered second weight measurement values with the lower limit value of the target weight threshold range respectively, and select the target second weight measurement values greater than or equal to the lower limit value;
[0023] determining a ratio of the number of target second weight measurements to the number of filtered second weight measurements;
[0024] The proportion value is compared with a preset proportion threshold value to confirm whether there is signal interference on the electronic scale and obtain an interference detection result.
[0025] In one embodiment, based on the interference detection result, controlling the state switching of the electronic scale includes:
[0026] When the interference detection result indicates that there is signal interference in the electronic scale, the electronic scale is controlled to switch to a sleep state;
[0027] When the interference detection result indicates that there is no signal interference in the electronic scale, the electronic scale is controlled to switch to a working state.
[0028] In one embodiment, after obtaining a plurality of second weight measurement values of the electronic scale, the electronic scale state control method further includes:
[0029] Filtering out N second weight measurement values at the most recent N sampling moments from the plurality of second weight measurement values;
[0030] If the screened N second weight measurement values are all greater than the upper limit of the preset target weight threshold range, it is determined that there is a target object on the electronic scale, and the electronic scale is controlled to enter a working state.
[0031] In one embodiment, the electronic scale state control method further includes:
[0032] For each weighing mode of the electronic scale, obtaining a plurality of historical weight measurement values of the electronic scale in a pre-awakening state;
[0033] Based on multiple historical weight measurements, the weight threshold range corresponding to the weighing mode is adjusted.
[0034] In a second aspect, the present application also provides an electronic scale control method, comprising:
[0035] Get multiple weight measurements from a scale;
[0036] determining a status of the electronic scale based on the plurality of weight measurements;
[0037] When it is determined that the electronic scale is in the sleep state, the electronic scale does not output weight measurement data.
[0038] In one embodiment, the weight measurement value includes a first weight measurement value and a second weight measurement value, the first weight measurement value is a weight value measured by the electronic scale in a pre-wake-up state, and the second weight measurement value is a weight value measured when the first weight measurement value of the electronic scale meets a preset target weight threshold range.
[0039] In a second aspect, the present application also provides an electronic scale state control device, comprising:
[0040] A weight acquisition module is used to acquire a first weight measurement value of the electronic scale, where the first weight measurement value is a weight value measured by the electronic scale when the electronic scale is in a pre-awakening state; and when the first weight measurement value meets a preset target weight threshold range, acquire a plurality of second weight measurement values of the electronic scale;
[0041] An interference detection module, used to confirm whether there is signal interference in the electronic scale based on the plurality of second weight measurement values, and obtain an interference detection result;
[0042] The state switching module is used to control the state switching of the electronic scale based on the interference detection result.
[0043] In a third aspect, the present application further provides an electronic scale control device, comprising:
[0044] A weight measurement value acquisition module, used for acquiring a plurality of weight measurement values of an electronic scale;
[0045] a state determination module for determining a state of the electronic scale based on the plurality of weight measurements;
[0046] The control module is used for preventing the electronic scale from outputting weight measurement data when it is determined that the electronic scale is in a dormant state.
[0047] In a fourth aspect, the present application also provides an electronic scale, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the steps in any one of the above-mentioned electronic scale state control method embodiments or the steps in the electronic scale control method embodiment.
[0048] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in any one of the above-mentioned electronic scale state control method embodiments or the steps in the electronic scale control method embodiments.
[0049] In a sixth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps in any one of the above-mentioned electronic scale state control method embodiments or the steps in the electronic scale control method embodiment.
[0050] In a seventh aspect, the present application also provides an electronic scale control method, comprising:
[0051] Get multiple weight measurements from a scale;
[0052] determining a status of the electronic scale based on a plurality of said weight measurements;
[0053] When it is determined that the electronic scale is in the sleep state, the electronic scale does not output weight measurement data.
[0054] The above-mentioned electronic scale state control method, device, electronic scale, computer-readable storage medium and computer program product are different from the traditional electronic scale state switching method, in which after detecting that the weight value measured by the electronic scale is greater than a certain threshold in the pre-wake-up state, the electronic scale is controlled to directly switch from the pre-wake-up state to the working state. Considering that the electronic scale may be disturbed by external factors in the pre-wake-up state, there is no object on the scale, but the electronic scale misjudges that there is an object on the scale and then enters the working state. Therefore, by setting a threshold range, the present application compares the first weight measurement value measured by the electronic scale in the pre-wake-up state with the threshold range. When the first weight measurement value meets the preset weight threshold range, that is, the electronic scale may be disturbed by external factors at this time, it is necessary to further confirm the state of the electronic scale, trigger a preset state confirmation event, obtain multiple second weight measurement values of the electronic scale, and further judge whether the electronic scale is disturbed by external factors based on the multiple second weight measurement values, so as to more accurately switch the state of the electronic scale. The possibility of the electronic scale misjudging entering the working state is reduced, and the reliability of the electronic scale is improved.
[0055] The electronic scale control method determines the current state of the electronic scale by acquiring multiple weight measurement values of the electronic scale. When the electronic scale is determined to be in a dormant state, the electronic scale does not output weight measurement data, thereby reducing the possibility that the electronic scale is disturbed by external factors and automatically enters a working state, outputs weight measurement data, and causes power consumption, thereby extending battery life. The electronic scale state control method and the electronic scale control method solve the hardware problem of the electronic scale being disturbed by external factors without changing the hardware design of the electronic scale and without increasing costs, thereby improving the reliability of the electronic scale. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A schematic diagram of a flow chart of an electronic scale state control method in one embodiment;
[0058] Figure 2 A schematic diagram of a flow chart of an electronic scale state control method in another embodiment;
[0059] Figure 3 A schematic diagram of a flow chart of an electronic scale state control method in yet another embodiment;
[0060] Figure 4A schematic diagram of a flow chart of a method for controlling the state of an electronic scale in yet another embodiment;
[0061] Figure 5 A schematic diagram of a flow chart of a method for controlling the state of an electronic scale in a detailed embodiment;
[0062] Figure 6 A schematic diagram of a method for controlling the state of an electronic scale in a detailed embodiment;
[0063] Figure 7 is a structural block diagram of an electronic scale state control device in one embodiment;
[0064] Figure 8 FIG. 4 is a structural block diagram of an electronic scale control device in one embodiment. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0066] In one embodiment, Figure 1 As shown, a method for controlling the state of an electronic scale is provided. This embodiment uses the method applied to an electronic scale as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including an electronic scale and a server, and is implemented through the interaction between the electronic scale and the server. In this embodiment, the method includes steps S200 to S600. Among them:
[0067] S200, obtaining a first weight measurement value of the electronic scale, where the first weight measurement value is a weight value measured by the electronic scale when it is in a pre-awakening state.
[0068] Among them, the pre-wake-up state is the state in which the electronic scale performs on-scale detection. Among them, on-scale detection refers to detecting whether a target object is on the scale by analyzing the change of the weight measurement value, so that the electronic scale controls whether to perform precise weight measurement. The first weight measurement value can be obtained by the analog to digital converter (ADC) of the electronic scale. Specifically, when the electronic scale enters the pre-wake-up state, the analog to digital converter in the electronic scale samples the pressure signal output by the pressure sensor at a certain sampling frequency, such as 1000hz (hertz), converts the sampled pressure signal into a digital signal and converts it to obtain the weight value. The higher the sampling frequency of the analog to digital converter, the shorter the sampling time, the less power consumption, but the lower the accuracy, so the sampling frequency in the pre-wake-up state can be set in combination with actual needs and power consumption. It can be understood that the sampling frequency of the analog to digital converter in the pre-wake-up state is not only 1000hz, but also can be 500hz or 800hz and other numbers in other embodiments, which are not limited here.
[0069] After sampling the pressure signal, the analog-to-digital converter converts it to an AD value, which is the numerical representation of the pressure signal after being converted into a digital signal. The weight conversion method is used to convert the weight value corresponding to the AD value. The weight conversion method can be determined by the calibration method of the electronic scale. The AD value is converted to the corresponding weight value, that is, the weight measurement value, through the calibration coefficient and offset in the weight conversion method.
[0070] In practical applications, in order to detect whether a target object is on the scale, the electronic scale periodically enters a pre-wake-up state, and the wake-up period can be set to 1 second, that is, the pre-wake-up state is entered every 1 second. It can be understood that in other embodiments, it can also be 0.5 seconds or 2 seconds, etc., which is not limited here. When the electronic scale enters the pre-wake-up state, a first weight measurement value is obtained through the analog-to-digital converter.
[0071] S400: When the first weight measurement value satisfies a preset target weight threshold range, a plurality of second weight measurement values of the electronic scale are obtained.
[0072] The preset target weight threshold range is used to detect whether a target object is on the scale. The second weight measurement value is a weight measurement value obtained by the electronic scale when the first weight measurement value meets the preset target weight threshold range.
[0073] The target weight threshold range can be set according to the type and accuracy of the electronic scale. Specifically, electronic scales are classified according to their uses, including but not limited to household electronic scales, commercial electronic scales, medical electronic scales, and industrial electronic scales, among which household electronic scales are further subdivided into kitchen electronic scales and weight scales, etc. It can be understood that different types of electronic scales have different weighing accuracy. Further, considering the dead weight of the electronic scale and the error of the weight measurement value measured by the analog-to-digital converter, the lower limit value in the target weight threshold range is set to ensure that the electronic scale does not enter the working state when it is picked up and put down. The upper limit value in the target weight threshold range is set based on experience to ensure that the weight measurement value measured under signal interference is not higher than the upper limit value.
[0074] For example, if the weighing accuracy of a kitchen scale is 1 gram and it can weigh items of 1 to 5000 grams, and its own weight is 500 grams, the target weight threshold range can be set to 550 to 1000 grams; if the weighing accuracy of a weight scale is 1 kilogram and its weighing range is 1 to 150 kilograms, and its own weight is 1.8 kilograms, the target weight threshold range of the weight scale can be set to 2 to 8 kilograms.
[0075] In actual applications, after obtaining the first weight measurement value of the electronic scale in the pre-wake-up state through the analog-to-digital converter, the first weight measurement value is compared with the target weight threshold range. When the first weight measurement value is within the target weight threshold range, multiple second weight measurement values are obtained through the analog-to-digital converter.
[0076] In other embodiments, a state confirmation event may be pre-set to further detect whether the electronic scale is in a state of being disturbed by external factors. Specifically, the state confirmation event may include obtaining multiple weight measurement values, and detecting whether the electronic scale is in a state of being disturbed by external factors based on the data change trend of the multiple weight measurement values. When the first weight measurement value is within the target weight threshold range, the state confirmation event is triggered, and multiple second weight measurement values are obtained through the analog-to-digital converter.
[0077] S600, controlling the state switching of the electronic scale based on the plurality of second weight measurement values.
[0078] In this embodiment, the state of the electronic scale may include but is not limited to a sleep state, a pre-awakening state and a working state.
[0079] When the first measurement value meets the preset target weight threshold range, there may be a target object on the scale, or the electronic scale may be disturbed by external factors. Therefore, in practical applications, multiple second weight measurement values can be used to further determine whether there is a target object on the electronic scale. Specifically, the time series data composed of multiple second weight measurement values can be evaluated for data volatility, such as by standard deviation or autocorrelation test, to obtain a data fluctuation value, which is used to measure the change amplitude and stability of the time series data. A data fluctuation threshold is set, and whether there is a target object on the electronic scale is determined based on the data fluctuation value and the data fluctuation threshold. When it is determined that there is no target object on the electronic scale, it is characterized that the first weight measurement value is data disturbed by external factors, and the electronic scale is controlled to switch to a sleep state.
[0080] The above-mentioned electronic scale state control method is different from the traditional electronic scale state switching method, in which after detecting that the weight value measured by the electronic scale is greater than a certain threshold value in the pre-wake-up state, the electronic scale is controlled to directly switch from the pre-wake-up state to the working state. Considering that the electronic scale may be disturbed by external factors in the pre-wake-up state, there is no object on the scale, but the electronic scale misjudges that there is an object on the scale and then enters the working state. Therefore, by setting a threshold range, the application compares the first weight measurement value measured by the electronic scale in the pre-wake-up state with the threshold range. When the first weight measurement value meets the preset weight threshold range, that is, the electronic scale may be disturbed by external factors at this time, it is necessary to further confirm the state of the electronic scale, trigger a preset state confirmation event, obtain multiple second weight measurement values of the electronic scale, and further judge whether the electronic scale is disturbed by external factors based on the multiple second weight measurement values, so as to more accurately switch the state of the electronic scale. The possibility of the electronic scale misjudging entering the working state is reduced, and the reliability of the electronic scale is improved.
[0081] The second weight measurement value is used to further determine whether the electronic scale is subject to signal interference. In an exemplary embodiment, Figure 2 As shown, S600 includes S620 to S640. Among them:
[0082] S620: Based on the multiple second weight measurement values, confirm whether there is signal interference on the electronic scale, and obtain an interference detection result.
[0083] Signal interference can be caused by electromagnetic waves. In daily life, electromagnetic interference mainly comes from various electronic devices and household appliances, such as power strips, microwave ovens, induction cookers, computer hosts or printers.
[0084] After the electronic scale is interfered with by the signal, the signal output by the sensor inside the electronic scale may be unstable, distorted or interrupted. By analyzing the data trend of multiple second weight measurement values and observing the change of the data, it is possible to confirm whether there is signal interference on the electronic scale and obtain the interference detection result. The interference detection result includes the existence of signal interference on the electronic scale and the absence of signal interference on the electronic scale. The method of analyzing data trends can be to calculate the basic characteristics of the data, such as the mean, median, mode, , variance, etc., to describe the distribution, concentration and , so as to analyze the changes of data through the basic characteristics of the data.
[0085] In some special cases, in a non-electromagnetic interference environment, there may be no target object on the scale, but the first weight measurement value obtained is within the preset target weight threshold range, such as when the sampling frequency of the analog-to-digital converter is too high, resulting in inaccurate data obtained by sampling.
[0086] In practical applications, by calculating the mean and variance of multiple second weight values, and analyzing the change of the second weight value based on the mean and variance, it is confirmed whether there is signal interference in the electronic scale, and the interference detection result is obtained.
[0087] S640, based on the interference detection result, control the state switching of the electronic scale.
[0088] In practical applications, based on the interference detection results, it is determined whether the electronic scale is subject to signal interference, thereby determining whether a target object is on the scale, and then controlling the electronic scale to switch to a sleep state or a working state.
[0089] In this embodiment, based on multiple second weight measurement values, it is further determined whether there is signal interference in the electronic scale, so that the state of the electronic scale is switched according to the signal interference judgment result, thereby reducing the possibility that the electronic scale will mistakenly enter the working state due to signal interference, thereby causing the electronic scale to operate incorrectly.
[0090] In order to improve the reliability of the electronic scale, an interference confirmation state is added to the electronic scale. In an exemplary embodiment, S400 includes S420 to S440. Among them:
[0091] S420: When the first weight measurement value is within a preset target weight threshold range, the electronic scale is switched from a pre-awakening state to an interference confirmation state.
[0092] S440, obtaining a plurality of second weight measurement values measured by the electronic scale in an interference confirmation state.
[0093] The interference confirmation state is the state in which the electronic scale performs interference confirmation.
[0094] After switching to the interference confirmation state, in order to improve the accuracy of interference confirmation, the sampling frequency of the analog-to-digital converter is adjusted, and the analog-to-digital converter samples the pressure signal multiple times according to the adjusted sampling frequency. The adjusted sampling frequency can be set according to the sampling number. The sampling number is set according to actual needs. It can be understood that the sampling number can be increased to improve the accuracy of interference detection based on the second weight measurement value.
[0095] Since the electronic scale periodically switches from the sleep state to the pre-wake-up state and from the pre-wake-up state to the sleep state according to the wake-up cycle, in order not to extend the wake-up cycle and improve the user experience, the standard sampling duration of the interference confirmation state is preferably shorter than the wake-up cycle.
[0096] The sampling frequency can be adjusted in combination with the wake-up period and the number of samplings. Specifically, if the wake-up period is 1 second and 7 second weight measurement values are obtained, that is, the number of samplings is 7, the sampling frequency of the analog-to-digital converter can be adjusted to 20 Hz, then the single sampling duration is 1 / 20=50 milliseconds, and the total sampling duration is 7*50=350 milliseconds. It can be understood that in addition to 20 Hz, the adjusted sampling frequency can also be other numbers such as 10 Hz or 50 Hz in other embodiments, which is not limited here.
[0097] If the total sampling duration in the interference confirmation state is longer than the duration of the wake-up cycle, the duration of entering the sleep state from the wake-up state can be extended. For example, the preset wake-up cycle is 1 second. After entering the interference confirmation state via the pre-wake-up state, only the duration of entering the sleep state is extended so that the extended duration is longer than the total sampling duration.
[0098] In practical applications, sampling is performed by an analog-to-digital converter according to the adjusted sampling frequency and sampling times, and multiple second weight measurement values are converted.
[0099] In other embodiments, when the first weight measurement value is less than the lower limit value in the target weight threshold range, the electronic scale can be switched from the pre-wake-up state to the sleep state; when the first weight measurement value is greater than the upper limit value in the target weight threshold range, the electronic scale can be switched from the pre-wake-up state to the working state.
[0100] In this embodiment, an interference confirmation state is added after the pre-wake-up state of the electronic scale. On the one hand, there is no need to extend the wake-up cycle to reduce the influence of signal interference on the accuracy of the first weight measurement value, that is, the sampling time in the pre-wake-up state, which reduces the possibility of increasing power consumption by extending the wake-up cycle; on the other hand, the second weight measurement value of the electronic scale obtained in the interference confirmation state is helpful to further judge whether there is signal interference in the electronic scale at the current time, thereby reducing the possibility of power consumption caused by the electronic scale automatically entering the working state due to signal interference.
[0101] In order to improve the accuracy of interference confirmation, in an exemplary embodiment, as Figure 3 As shown, S420 includes S422 to S426. Among them:
[0102] S422, determining the current weighing mode of the electronic scale.
[0103] S424: Determine the weight threshold range corresponding to the weighing mode as the target weight threshold range.
[0104] S426, when the first weight measurement value is within the target weight threshold range, switching the electronic scale from the pre-awakening state to the interference confirmation state.
[0105] It is understandable that the electronic scale may include multiple weighing modes, and the weighing ranges and weighing precisions corresponding to different weighing modes are different. The weighing modes include but are not limited to the kitchen weighing mode, the weight mode, the body fat percentage calculation mode, and the heavy object weighing mode. The corresponding weight threshold range can be set in advance according to the weighing mode of the electronic scale, and the corresponding relationship can be stored in the electronic scale. Specifically, the weight threshold range corresponding to the kitchen weighing mode can be 550~1000 grams; the weight threshold range corresponding to the weight mode and the body fat percentage calculation mode can be 2~10 kilograms; the weight threshold range corresponding to the heavy object weighing mode can be 20~40 kilograms.
[0106] After determining the current weighing mode of the electronic scale, the weight threshold range corresponding to the current weighing mode is determined as the target weight threshold range according to the correspondence between different weighing modes and different weight threshold ranges.
[0107] When the first weight measurement value is within the target weight threshold range, the electronic scale is switched from the pre-wake-up state to the interference confirmation state. The interference confirmation state is not an inherent state of the electronic scale, but is a state named for interference detection under a specific condition to distinguish it from the inherent sleep state, pre-wake-up state and working state of the electronic scale.
[0108] In this embodiment, the influence of different weighing ranges in different weighing modes of the electronic scale on signal interference confirmation is taken into consideration, and corresponding weight threshold ranges are set for different weighing modes. Therefore, according to the current weighing mode of the electronic scale, interference confirmation is performed using the weight threshold range corresponding to the current weighing mode, thereby improving the accuracy of interference confirmation of the electronic scale.
[0109] like Figure 4 As shown, in an exemplary embodiment, S620 includes S622 to S628. Among them:
[0110] S622, performing data filtering on the plurality of second weight measurement values.
[0111] S624, comparing the filtered second weight measurement values with the lower limit values of the target weight threshold range respectively, and screening out target second weight measurement values that are greater than or equal to the lower limit values.
[0112] S626: Determine a ratio of the number of target second weight measurement values to the number of filtered second weight measurement values.
[0113] S628, comparing the proportion value with a preset proportion threshold value to confirm whether there is signal interference in the electronic scale, and obtaining an interference detection result.
[0114] In order to improve the accuracy of interference detection based on multiple second weight measurement values, data filtering can be performed on the multiple second weight measurement values. The data filtering method may include a depolarization method, such as quantile depolarization, standard deviation depolarization, or median depolarization. After obtaining multiple second weight measurement values, the multiple second weight measurement values are depolarized, and the number of depolarization values can be determined based on the number of second weight measurement values. For example, if the number of second weight measurement values obtained is small, such as 7, one maximum value and one minimum value can be removed to reduce the impact of extreme values on subsequent interference detection.
[0115] For example, taking the current electronic scale's weighing mode as body weight mode, the target weight threshold range is 2kg to 10kg, and the total number of second weight measurement values after removing the extreme values is 5. The second weight measurement values after removing the extreme values are compared with 2kg in turn to screen out target second weight measurement values greater than or equal to 2kg.
[0116] Continuing with the above example, the percentage threshold is determined according to actual needs, such as 60%. If the number of target second weight measurement values greater than or equal to 2 kg is 3, then the percentage of the number of target second weight measurement values relative to the number of filtered second weight measurement values is 3 / 5=60%.
[0117] The proportion value is compared with the preset proportion threshold. If the proportion value is greater than the proportion threshold, it is determined that there is no signal interference in the electronic scale. Otherwise, if the proportion value is less than or equal to the proportion threshold, it is determined that there is signal interference in the electronic scale, thereby obtaining the interference detection result.
[0118] In this embodiment, the signal interference confirmation of the electronic scale is improved by performing a proportion threshold analysis on the multiple second weight measurement values after data filtering, so that the accuracy of the interference detection result is improved, so that the electronic scale can control whether to enter the working state based on the interference detection result, thereby helping to reduce the possibility of power consumption caused by the electronic scale automatically entering the working state due to signal interference.
[0119] After obtaining the interference detection result, the electronic scale is controlled to switch the state. In an exemplary embodiment, S640 includes S642 to S644. Among them:
[0120] S642, when the interference detection result indicates that the electronic scale has signal interference, the electronic scale is controlled to switch to a sleep state.
[0121] If the interference detection result indicates that there is signal interference in the electronic scale, that is, there is no target object on the scale, the electronic scale is controlled to switch to a sleep state.
[0122] S644, when the interference detection result indicates that there is no signal interference in the electronic scale, the electronic scale is controlled to switch to a working state.
[0123] If the interference detection result indicates that there is no signal interference on the electronic scale, that is, there is a target object on the scale, the electronic scale is controlled to switch to a working state to perform accurate weight measurement.
[0124] In this embodiment, the electronic scale is controlled to switch to a sleep state or a working state according to the interference detection result, thereby reducing the possibility of the electronic scale automatically entering the working state due to signal interference and causing power consumption.
[0125] In order to improve the user's weighing experience, in an exemplary embodiment, after S400, the method further includes S520 to S540. Among them:
[0126] S520: Filter out N second weight measurement values at the latest N sampling moments from the multiple second weight measurement values.
[0127] S540: If the N second weight measurement values selected are all greater than the upper limit of the preset target weight threshold range, it is determined that there is a target object on the electronic scale, and the electronic scale is controlled to enter a working state.
[0128] Under normal circumstances, the electronic scale periodically enters a pre-wake-up state. For example, when there is a target object on the scale, the state change process of the electronic scale can be: sleep state -> pre-wake-up state -> working state -> sleep state; when there is no target object on the scale and the electronic scale is subject to electromagnetic interference, the state change process of the electronic scale can be: sleep state -> pre-wake-up state -> interference confirmation state -> sleep state.
[0129] In one possible implementation, the electronic scale may enter the interference confirmation state due to signal interference. In the interference confirmation state, when the electronic scale obtains multiple second weight measurement values through the analog-to-digital converter, the target object may be on the scale. Since the electronic scale is in the interference confirmation state at this time, it will not directly enter the working state, but must first enter the sleep state, wait for a wake-up cycle, and enter the next pre-wake-up state before entering the working state. That is, the state change process of the electronic scale is sleep state -> pre-wake-up state -> interference confirmation state -> sleep state -> pre-wake-up state -> working state. In this way, the user's waiting time is increased and the user's weighing experience is reduced.
[0130] Therefore, in order to improve the user experience, the N second weight measurement values at the most recent N sampling moments can be screened out from multiple second weight measurement values. It can be understood that N is a natural number greater than or equal to 1, and less than or equal to the total number of second weight measurement values. Exemplarily, 7 second weight measurement values are obtained by sampling through an analog-to-digital converter, N is set to 2, the target weight threshold range is 2kg~10kg, the second weight measurement values at the most recent 2 sampling moments are screened out, and the screened out second weight measurement values are compared with 10kg respectively. When the two screened out second weight measurement values are both greater than 10kg, it is determined that there is a target object on the electronic scale, and the electronic scale is controlled to enter a working state. It can be understood that the target object includes but is not limited to a person, an animal, or an object.
[0131] In this embodiment, the situation where a target object is on the scale in the interference confirmation state is taken into consideration, and the conditions for directly entering the working state from the interference confirmation state are designed, thereby reducing the possibility of extending the user's weighing waiting time and improving the user's weighing experience.
[0132] In order to improve the applicability of interference detection of electronic scales, in an exemplary embodiment, the electronic scale state control method further includes S920 to S940. Among them:
[0133] S920: For each weighing mode of the electronic scale, obtain a plurality of historical weight measurement values of the electronic scale in a pre-awakening state.
[0134] S940, based on the multiple historical weight measurement values, adjust the weight threshold range corresponding to the weighing mode.
[0135] Since different electronic scales may be located in different environments, different types of electronic scales may have different anti-interference capabilities, and the same type of electronic scales may have different anti-interference capabilities, which makes the electronic scales subject to different degrees of signal interference. Specifically, for the same type of electronic scale, the components on the internal PCBA (Printed Circuit Board Assembly) may be able to handle different currents, which makes different electronic scales of the same type have different anti-interference capabilities.
[0136] Therefore, in order to improve the accuracy of interference detection of the electronic scale in different environments, the corresponding weight threshold range is adjusted for each weighing mode of the electronic scale. Specifically, for each weighing mode, multiple historical weight measurement values measured when the electronic scale enters the pre-wake-up state within a preset time period in the weighing mode are obtained, and the multiple historical weight measurement values are analyzed through an abnormality detection method to screen out the historical weight measurement values measured under signal interference, and the adjusted weight threshold range is determined based on the screened historical weight measurement values, that is, the upper limit value of the adjusted weight threshold range should be greater than the maximum value of the screened historical weight measurement values, and the lower limit value should be less than the minimum value of the screened historical weight measurement values.
[0137] In this embodiment, the weight threshold range is adaptively adjusted according to the historical weight measurement value to adapt to the interference detection and state switching of the electronic scale in different interference environments, thereby improving the accuracy of interference detection of the electronic scale, and further, helping to improve the accuracy of state switching of the electronic scale.
[0138] In order to make a clearer description of the electronic scale state control method provided by the present application, the following is a specific embodiment, attached Figure 4 and attached Figure 5 To illustrate, this specific embodiment includes the following steps:
[0139] S1, obtaining a first weight measurement value of the electronic scale, where the first weight measurement value is a weight value measured by the electronic scale when it is in a pre-awakening state.
[0140] S2, determining the current weighing mode of the electronic scale, and determining the weight threshold range corresponding to the weighing mode as the target weight threshold range.
[0141] S3, when the first weight measurement value is within the target weight threshold range, switching the electronic scale from the pre-awakening state to the interference confirmation state, and obtaining a plurality of second weight measurement values of the electronic scale.
[0142] When the first weight measurement value is less than the lower limit value in the target weight threshold range, the electronic scale is switched from the pre-wake-up state to the sleep state; when the first weight measurement value is greater than the upper limit value in the target weight threshold range, the electronic scale is switched from the pre-wake-up state to the working state.
[0143] S4, from the multiple second weight measurement values, screen out the N second weight measurement values at the most recent N sampling moments. If the screened out N second weight measurement values are all greater than the upper limit value of the preset target weight threshold range, it is determined that there is a target object on the electronic scale, and the electronic scale is controlled to enter a working state.
[0144] S5, filter the data of multiple second weight measurement values, compare the filtered second weight measurement values with the lower limit value of the target weight threshold range respectively, screen out the target second weight measurement values that are greater than or equal to the lower limit value, determine the proportion of the number of target second weight measurement values relative to the number of filtered second weight measurement values, compare the proportion value with the preset proportion threshold value, confirm whether there is signal interference in the electronic scale, and obtain the interference detection result.
[0145] S6, when the interference detection result indicates that the electronic scale has signal interference, the electronic scale is controlled to switch to a sleep state; when the interference detection result indicates that the electronic scale has no signal interference, the electronic scale is controlled to switch to a working state.
[0146] S7, for each weighing mode of the electronic scale, obtaining multiple historical weight measurement values of the electronic scale in a pre-awakening state, and adjusting the weight threshold range corresponding to the weighing mode based on the multiple historical weight measurement values.
[0147] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0148] In an exemplary embodiment, an electronic scale control method is provided, including S820 to S860.
[0149] S820, obtaining a plurality of weight measurement values of an electronic scale.
[0150] The weight measurement value may be a weight value measured by an electronic scale.
[0151] In practical applications, multiple weight measurement values can be continuously acquired through the analog-to-digital converter of the electronic scale. The number of acquired values can be determined according to actual needs, such as 5, 7 or 10 weight measurement values can be acquired.
[0152] S840, determining a state of the electronic scale based on the plurality of weight measurements.
[0153] In this embodiment, the state of the electronic scale may include but is not limited to a sleep state, a pre-awakening state and a working state.
[0154] In practical applications, multiple different weight thresholds and corresponding state judgment conditions can be pre-set to detect whether there is a target object on the electronic scale and whether the electronic scale is in a state of interference by external factors. Specifically, the first weight threshold for detecting whether there is a target object on the electronic scale can be set according to the self-weight of the electronic scale, and the second weight threshold for detecting whether the electronic scale is in a state of interference by external factors can be set according to the maximum weight measurement value measured when the electronic scale is disturbed. If multiple weight measurement values are all less than the first weight threshold, it is determined that there is no target object on the electronic scale, and the state of the electronic scale is determined to be a dormant state; if multiple weight measurement values are all greater than the second weight threshold, it is determined that there is a target object on the electronic scale, and the state of the electronic scale is determined to be a working state; if the number of weight measurement values between the first weight threshold and the second weight threshold among the multiple weight measurement values is less than the preset number, it is determined that the state of the electronic scale is a dormant state.
[0155] S860: When it is determined that the electronic scale is in a dormant state, the electronic scale does not output weight measurement data.
[0156] The weight measurement data may include weight data converted from a data converter of the electronic scale by a collected weight measurement value.
[0157] In actual applications, when it is determined that the electronic scale is in a dormant state, the data converter of the electronic scale does not convert the weight measurement value and does not output the weight measurement data.
[0158] In this embodiment, the current state of the electronic scale is determined by acquiring multiple weight measurement values of the electronic scale. When the electronic scale is determined to be in a sleep state, the electronic scale does not output weight measurement data, thereby reducing the possibility that the electronic scale is automatically entered into a working state due to interference from external factors and outputs weight measurement values to cause power consumption, thereby extending battery life.
[0159] In an exemplary embodiment, the weight measurement value includes a first weight measurement value and a second weight measurement value, the first weight measurement value is a weight value measured by the electronic scale in a pre-wake-up state, and the second weight measurement value is a weight value measured by the electronic scale when the first weight measurement value meets a preset target weight threshold range.
[0160] In actual applications, the first weight measurement value may be obtained when the electronic scale is in a pre-wake-up state, and multiple second weight measurement values of the electronic scale may be obtained when the first weight measurement value meets a preset target weight threshold range. Specifically, the weight measurement value acquisition method in this embodiment may refer to the steps of acquiring the first weight measurement value and the second weight measurement value in the embodiment of the above-mentioned electronic scale state control method. The method for judging whether the first weight measurement value meets the preset target weight threshold range in this embodiment may refer to the step of judging whether the first weight measurement value meets the preset target weight threshold range in the embodiment of the above-mentioned electronic scale state control method, which will not be repeated here.
[0161] In other embodiments, the method for determining the state of an electronic scale based on multiple weight measurement values can refer to the step of switching the state of the electronic scale based on the first weight measurement value and the second weight measurement value in the embodiment of the above-mentioned electronic scale state control method, which will not be repeated here.
[0162] In this embodiment, the multiple weight measurement values obtained are helpful to further determine the current state of the electronic scale, so as to perform corresponding control processing according to different states of the electronic scale, which is helpful to improve the reliability of the electronic scale.
[0163] In order to reduce the possibility of unnecessary power consumption caused by the electronic scale, in one embodiment, the electronic scale control method further includes S880.
[0164] S880: When it is determined that the electronic scale is in a dormant state, the electronic scale is in a screen-off state and does not output weight measurement data.
[0165] Considering that an electronic scale with a display screen will control the display component of the electronic scale to light up the screen and display the measured weight measurement data after mistakenly judging that it has entered the working state. In the present application, when it is judged that the electronic scale is in the dormant state, the display component of the electronic scale is controlled not to light up the screen, and the weight measurement data is not output to the display component for display, so that the electronic scale is in the off-screen state and does not display the weight measurement data.
[0166] In this embodiment, different from the existing electronic scale control method, when the electronic scale is disturbed by external factors and misjudges that there is a target object on the electronic scale, the electronic scale enters the working state, lights up the display, and displays the weight measurement data. In the case where the electronic scale is determined to be in a dormant state, the application controls the electronic scale to be in a screen-off state and does not output the weight measurement value, thereby extending the battery life.
[0167] In an exemplary embodiment, Figure 7 As shown, an electronic scale state control device 300 is provided, comprising: a weight acquisition module 320, an interference detection module 340 and a state switching module 360, wherein:
[0168] The weight acquisition module 320 is used to obtain a first weight measurement value of the electronic scale, where the first weight measurement value is the weight value measured by the electronic scale when it is in a pre-wake-up state; when the first weight measurement value meets a preset target weight threshold range, multiple second weight measurement values of the electronic scale are obtained.
[0169] The interference detection module 340 is used to confirm whether there is signal interference in the electronic scale based on the multiple second weight measurement values, and obtain an interference detection result.
[0170] The state switching module 360 is used to control the state switching of the electronic scale based on the interference detection result.
[0171] In an exemplary embodiment, the state switching module 360 is further used to switch the electronic scale from the pre-wake-up state to the interference confirmation state when the first weight measurement value is within a preset target weight threshold range. The weight acquisition module 320 is further used to acquire multiple second weight measurement values measured by the electronic scale in the interference confirmation state.
[0172] In an exemplary embodiment, the state switching module 360 is also used to determine the current weighing mode of the electronic scale, determine the weight threshold range corresponding to the weighing mode as the target weight threshold range, and when the first weight measurement value is within the target weight threshold range, switch the electronic scale from the pre-wake-up state to the interference confirmation state.
[0173] In an exemplary embodiment, the interference detection module 340 is also used to filter data of multiple second weight measurement values, compare the filtered second weight measurement values with the lower limit value of the target weight threshold range, screen out target second weight measurement values that are greater than or equal to the lower limit value, determine the proportion of the number of target second weight measurement values relative to the number of filtered second weight measurement values, compare the proportion value with a preset proportion threshold value, confirm whether there is signal interference in the electronic scale, and obtain an interference detection result.
[0174] In an exemplary embodiment, the state switching module 360 is also used to control the electronic scale to switch to a sleep state when the interference detection result indicates that there is signal interference in the electronic scale, and to control the electronic scale to switch to a working state when the interference detection result indicates that there is no signal interference in the electronic scale.
[0175] In an exemplary embodiment, the state switching module 360 is also used to filter out N second weight measurement values at the most recent N sampling moments from multiple second weight measurement values. If the filtered N second weight measurement values are all greater than the upper limit value of a preset target weight threshold range, it is determined that there is a target object on the electronic scale, and the electronic scale is controlled to enter a working state.
[0176] In an exemplary embodiment, the electronic scale state control device 300 also includes a threshold range calibration module 380, which is used to obtain multiple historical weight measurement values of the electronic scale in a pre-wake-up state for each weighing mode of the electronic scale, and adjust the weight threshold range corresponding to the weighing mode based on the multiple historical weight measurement values.
[0177] Each module in the electronic scale state control device 300 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0178] In an exemplary embodiment, Figure 8 As shown, an electronic scale control device 400 is provided, comprising: a weight measurement value acquisition module 420, a state determination module 440 and a control module 460, wherein:
[0179] A weight measurement value acquisition module 420, used to acquire a plurality of weight measurement values of the electronic scale;
[0180] a state determination module 440 for determining a state of the electronic scale based on the plurality of weight measurements;
[0181] The control module 460 is configured to prevent the electronic scale from outputting weight measurement data when it is determined that the electronic scale is in a dormant state.
[0182] In an exemplary embodiment, the weight measurement value acquisition module 420 is also used to obtain a first weight measurement value and a second weight measurement value, the first weight measurement value being the weight value measured by the electronic scale in a pre-wake-up state, and the second weight measurement value being the weight value measured by the electronic scale when the first weight measurement value meets a preset target weight threshold range.
[0183] In an exemplary embodiment, an electronic scale is provided, which includes a sensor, an analog-to-digital converter, a power supply, a processor, a memory, an input / output interface, a communication interface and an input device. The sensor, the analog-to-digital converter and the power supply are connected to the processor respectively, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface and the input device are connected to the system bus through the input / output interface. The processor of the electronic scale is used to provide computing and control capabilities. The memory of the electronic scale includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic scale is used to exchange information between the processor and an external device. The communication interface of the electronic scale is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for controlling the state of an electronic scale is implemented.
[0184] In other embodiments, the electronic scale may further include a display unit, which is used to form a visually visible picture, and may be a display screen, a projection device, or a virtual reality imaging device. The display screen may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic scale may be a touch layer covered on the display screen, or a key, trackball, or touchpad provided on the housing of the electronic scale, or an external keyboard, touchpad, or mouse, etc.
[0185] In an exemplary embodiment, an electronic scale is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in any one of the above-mentioned electronic scale state control method embodiments or the steps in the electronic scale control method embodiments are implemented.
[0186] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any one of the above-mentioned electronic scale state control method embodiments or the steps in the electronic scale control method embodiments are implemented.
[0187] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in any of the above-mentioned electronic scale state control method embodiments. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.
[0188] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0189] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0190] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for controlling the state of an electronic scale, characterized in that: The method comprises: Acquire a first weight measurement value of the electronic scale, where the first weight measurement value is a weight value measured by the electronic scale in a pre-awakening state; When the first weight measurement value satisfies a preset target weight threshold range, obtaining a plurality of second weight measurement values of the electronic scale; Based on the plurality of second weight measurement values, the state switching of the electronic scale is controlled.
2. The control method according to claim 1, characterized in that: The controlling the state switching of the electronic scale based on the plurality of second weight measurement values comprises: Based on the plurality of second weight measurement values, confirming whether the electronic scale has signal interference, and obtaining an interference detection result; Based on the interference detection result, the state switching of the electronic scale is controlled.
3. The method according to claim 2, characterized in that The step of obtaining a plurality of second weight measurement values of the electronic scale when the first weight measurement value is within a preset target weight threshold range comprises: When the first weight measurement value is within a preset target weight threshold range, switching the electronic scale from a pre-awakening state to an interference confirmation state; A plurality of second weight measurement values obtained by measuring the electronic scale when the electronic scale is in the interference confirmation state are obtained.
4. The method according to claim 3, characterized in that The step of switching the electronic scale from a pre-awakening state to an interference confirmation state when the first weight measurement value is within a preset target weight threshold range includes: Determining a current weighing mode of the electronic scale; Determining a weight threshold range corresponding to the weighing mode as a target weight threshold range; When the first weight measurement value is within the target weight threshold range, the electronic scale is switched from a pre-awakening state to an interference confirmation state.
5. The method according to claim 2, characterized in that: The determining, based on the plurality of second weight measurement values, whether the electronic scale has signal interference, and obtaining the interference detection result comprises: performing data filtering on a plurality of the second weight measurement values; Compare the filtered second weight measurement values with the lower limit value of the target weight threshold range respectively, and filter out the target second weight measurement values greater than or equal to the lower limit value; determining a ratio of the number of the target second weight measurements to the number of the filtered second weight measurements; The proportion value is compared with a preset proportion threshold value to confirm whether there is signal interference in the electronic scale, and an interference detection result is obtained.
6. The method according to any one of claims 2 to 5, characterized in that: The controlling the state switching of the electronic scale based on the interference detection result includes: When the interference detection result indicates that the electronic scale has signal interference, controlling the electronic scale to switch to a sleep state; When the interference detection result indicates that there is no signal interference in the electronic scale, the electronic scale is controlled to switch to a working state.
7. The method according to claim 1, characterized in that After obtaining a plurality of second weight measurement values of the electronic scale, the method further includes: Filtering out N second weight measurement values at the most recent N sampling moments from the plurality of second weight measurement values, where N is a natural number greater than or equal to 1; If the screened N second weight measurement values are all greater than the upper limit of the preset target weight threshold range, it is determined that there is a target object on the electronic scale, and the electronic scale is controlled to enter a working state.
8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: For each weighing mode of the electronic scale, obtaining a plurality of historical weight measurement values of the electronic scale in a pre-awakening state; Based on the plurality of historical weight measurements, a weight threshold range corresponding to the weighing mode is adjusted.
9. An electronic scale control method, characterized in that: The method comprises: Get multiple weight measurements from a scale; determining a status of the electronic scale based on a plurality of the weight measurements; In a case where it is determined that the electronic scale is in the sleep state, the electronic scale does not output weight measurement data.
10. The method according to claim 9, characterized in that The weight measurement value includes a first weight measurement value and a second weight measurement value, the first weight measurement value is a weight value measured by the electronic scale in a pre-wake-up state, and the second weight measurement value is a weight value measured by the electronic scale when the first weight measurement value meets a preset target weight threshold range.