A weighing method, a weighing apparatus, and a readable storage medium
By detecting the handle position and determining the weighing calibration value, the problem of inaccurate weighing display values caused by the handle cable tension was solved, thus realizing the calibration of the weighing equipment's display value and improving accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN CHENBEI TECH CO LTD
- Filing Date
- 2026-02-02
- Publication Date
- 2026-05-29
AI Technical Summary
When the handle of an eight-electrode body fat scale is placed on the stand, the tension in the handle cable affects the accuracy of the weighing display.
By detecting the position of the handle, the weighing calibration value of the weighing equipment is determined, and the calibration value is used to correct the weighing value, thus eliminating the influence of the handle cable tension on the displayed value.
This improves the accuracy of the displayed values on the weighing equipment, ensuring the precision of the weighing display.
Smart Images

Figure CN122108327A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of body indicator detection, and in particular to a weighing method, weighing device and readable storage medium. Background Technology
[0002] Currently, eight-electrode body fat scales have four electrodes on the handle, which work in conjunction with the four electrodes on the scale surface to apply multi-frequency bioelectrical signals to the body and measure various body composition indicators. Some related technologies also feature a handle support design that can be attached to a fixed location, such as a wall or furniture, making the handle easier to access and reducing the need for users to bend over.
[0003] When the handle is placed on the stand, the handle cable, also known as the signal cable, is usually taut. The handle cable will exert tension on the scale. If the body fat scale is used for weighing at this time, the displayed weight may be affected by the tension of the handle cable, resulting in an inaccurate weight display. Summary of the Invention
[0004] In view of this, this application provides a weighing method, a weighing device, and a readable storage medium, which solves the problem of inaccurate weighing display values in related technologies.
[0005] In a first aspect, embodiments of this application provide a weighing method applied to a weighing device. The weighing device includes a device body, a handle, and a handle bracket. The device body and the handle are connected via a signal line, and the handle bracket is used to hold the handle. The method includes: Detect the position of the handle; the position of the handle includes at least: the handle is located on the handle bracket; Determine the weighing calibration value of the weighing equipment, assuming the handle is located on the handle bracket. Obtain the weighing value of the weighing equipment; The weighing display value of the weighing equipment is determined based on the weighing correction value and the weighing value.
[0006] Secondly, embodiments of this application provide a weighing device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the method as described in the first aspect.
[0007] Thirdly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first aspect.
[0008] The weighing method, weighing device, and readable storage medium of this application embodiment detect the handle position. If the handle is determined to be on the handle support, a weighing calibration value for the weighing device is determined. The obtained weighing value of the weighing device is then corrected using this calibration value to obtain the displayed weighing value. This achieves the correction of the weighing value of the weighing device, eliminating the influence of handle cable tension on the displayed value and improving the accuracy of the displayed value.
[0009] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0010] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 One of the structural schematic diagrams of the weighing device according to an embodiment of this application is shown; Figure 2 A second schematic diagram of the structure of the weighing device according to an embodiment of this application is shown; Figure 3 The third schematic diagram of the weighing device according to an embodiment of this application is shown; Figure 4 The fourth schematic diagram of the weighing device according to an embodiment of this application is shown; Figure 5 A flowchart illustrating the weighing method according to an embodiment of this application is shown. Detailed Implementation
[0011] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0012] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0013] The weighing method, weighing equipment, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0014] This application provides a weighing method applied to weighing equipment, such as a smart body fat scale or a medical-grade body fat analyzer. Figure 1 and Figure 2 As shown, the weighing device includes a main body 101, a handle 102, a handle bracket 103, and a signal cable 104. The handle 102 can be placed on the handle bracket 103 or on the main body 101. The main body 101 and the handle 102 are connected via the signal cable 104. The main body 101 is equipped with an automatic reel. When the signal cable 104 is released, the automatic reel automatically rotates under the action of an internal spring or torsion spring, retracting the signal cable 104 and magnetically attaching it to the edge of the main body 101. It is understood that in practical applications, the handle of the weighing device may be placed in several positions: on the main body, in the user's hand, or on the handle bracket.
[0015] like Figure 5 As shown, the weighing method in this application embodiment includes: Step S501, detect the position of the handle; the position of the handle includes at least: the handle is located on the handle bracket.
[0016] In this step, when the weighing equipment is in a no-load state, that is, when the user is not on the scale, the position of the handle must at least include the handle being located on the handle bracket, such as... Figure 1 As shown, in this situation, the signal line 104 connecting the handle will exert a pulling force on the device body 101. The position of the handle is detected, and the displayed weighing value can be subsequently corrected based on the handle's position.
[0017] In some embodiments, such as Figure 2 As shown, the position of the handle 102 also includes the handle 102 being located on the device body 101.
[0018] In one possible implementation, at least one of the handle and the handle support is provided with a detection device, which is used to output different detection values according to different positions of the handle. The position of the detection handle includes: Obtain the detection value from the detection device; Determine whether the detected value meets the preset standard; If the detected value meets the preset standard, then the handle is determined to be in the handle bracket; If the detected value does not meet the preset standard, it is determined that the handle is not in the handle support.
[0019] In this possible implementation, a detection device is installed on the handle or handle bracket. The detection device outputs different detection values depending on the handle's position. That is, the detection device outputs differentiated electrical signals or inductive data based on changes in the relative position of the handle and handle bracket, thus allowing for accurate determination of the handle's current position based on the detection value. For example, it can determine whether the detection value meets a preset standard. If it does, the handle is determined to be on the handle bracket; otherwise, it is determined that the handle is not on the handle bracket. The handle not being on the handle bracket could mean that it is on the main body of the device. Through the detection of the detection device, the handle's position can be accurately determined, thereby providing a basis for the calibration of the weighing display value.
[0020] In one possible implementation, the detection device is disposed on the handle, the handle bracket is provided with a first detection device, the main body of the device is provided with a second detection device, and the detection device is used to output a first detection value when the first detection device is detected, and to output a second detection value when the second detection device is detected. If the detected value meets the preset standard, the handle is determined to be in the handle support, including: if the detected value of the detection device is the first detected value, the detected value meets the preset standard, and the handle is determined to be in the handle support; If the detected value does not meet the preset standard, it is determined that the handle is not in the handle support, including: if the detected value of the detection device is the second detected value, the detected value does not meet the preset standard, and it is determined that the handle is not in the handle support.
[0021] In this possible implementation, the handle position can be detected by setting a detection device on the handle, a first inspected device on the handle bracket, and a second inspected device on the device body. Specifically, if the detection value of the detection device is the first detection value, it indicates that the detection value meets the preset standard, the detection device has detected the first inspected device, and the handle is located on the handle bracket. If the detection value of the detection device is the second detection value, it indicates that the detection device has detected the second inspected device, the detection value does not meet the preset standard, and it is determined that the handle is not on the handle bracket, but on the device body.
[0022] For example, a Hall sensor is installed on the handle, which is one implementation of the detection device. Correspondingly, an N-pole magnet is installed on the handle support, which is one implementation of the first detected device. An S-pole magnet is installed on the main body of the device, which is one implementation of the second detected device. The Hall sensor can be configured to output a reference voltage when neither the N-pole nor the S-pole magnet is detected, and to output a voltage higher than the reference voltage when the N-pole magnet is detected. Therefore, when the Hall sensor output voltage is higher than the reference voltage, it can be determined that the handle is located on the handle support. When the Hall sensor detects the S-pole magnet, the output voltage is lower than the reference voltage. Therefore, when the Hall sensor output voltage is lower than the reference voltage, it can be determined that the handle is located on the main body of the device. Furthermore, it can also detect whether the handle is in the user's hand. Specifically, when the Hall sensor outputs a reference voltage, it indicates that neither the N-pole nor the S-pole magnet is detected, thus determining that the handle is in the user's hand.
[0023] It is understandable that an N-pole magnet can be mounted on the main body of the device, serving as one implementation of the second tested device, and an S-pole magnet can be mounted on the handle bracket, serving as one implementation of the first tested device. When the N-pole magnet is detected, the output voltage is higher than the reference voltage; therefore, when the Hall sensor output voltage is higher than the reference voltage, it can be determined that the handle is located on the main body of the device. When the Hall sensor detects the S-pole magnet, the output voltage is lower than the reference voltage; therefore, when the Hall sensor output voltage is lower than the reference voltage, it can be determined that the handle is located on the handle bracket. Furthermore, it is also possible to detect whether the handle is in the user's hand; specifically, when the Hall sensor outputs a reference voltage, it can be determined that the handle is in the user's hand.
[0024] In other embodiments, an infrared transmitter is mounted on the handle, serving as one implementation of the detection device. Correspondingly, a first infrared receiver is mounted on the handle bracket, serving as one implementation of the first device under test. A second infrared receiver is mounted on the main body of the device, serving as one implementation of the second device under test. In this embodiment, the first and second infrared receivers are respectively positioned corresponding to the infrared transmitter. For example, the positional relationship between the first and second infrared receivers satisfies the following: when the handle is located on the handle bracket, the emission direction of the infrared transmitter is towards the first infrared receiver; similarly, the positional relationship between the second and second infrared receivers satisfies the following: when the handle is located on the main body of the device, the emission direction of the infrared transmitter is towards the second infrared receiver. Thus, when the first infrared receiver receives the infrared signal from the infrared transmitter, it can be determined that the handle is located on the handle bracket; and when the second infrared receiver receives the infrared signal from the infrared transmitter, it can be determined that the handle is located on the main body of the device.
[0025] In this embodiment, by setting a detection device on the handle, setting a first inspection device on the handle bracket, and setting a second inspection device on the main body of the equipment, the position of the handle can be accurately determined based on the detection value of the detection device. This provides a basis for subsequent calibration of the weighing display value based on the position of the handle, thereby ensuring the accuracy of the weighing display value.
[0026] In another possible implementation, such as Figure 3 and Figure 4 As shown, the detection device is disposed on the handle 102. The detection device includes a first detection device 201 and a second detection device 202. The handle bracket 103 is provided with a first detection device 203, and the main body 101 is provided with a second detection device 204. The first detection device 201 is used to output a third detection value when the first detection device 203 is detected, and the second detection device 202 outputs a fourth detection value when the second detection device 204 is detected.
[0027] If the detection value meets the preset standard, then the handle is determined to be in the handle support, including: if the detection value of the first detection device is the third detection value, then the detection value meets the preset standard and the handle is determined to be in the handle support; If the detection value does not meet the preset standard, it is determined that the handle is not in the handle support, including: if the detection value of the second detection device is the fourth detection value, the detection value does not meet the preset standard, and it is determined that the handle is not in the handle support.
[0028] In this possible implementation, the position of the handle 102 can be detected by setting a first detection device 201 and a second detection device 203 on the handle 102, setting a first inspected device 203 on the handle bracket 103, and setting a second inspected device 204 on the device body 101. Specifically, if the detection value of the first detection device 201 is the third detection value, it indicates that the first detection device 201 has detected the first inspected device 203. At this time, the detection value meets the preset standard, and it is determined that the handle 102 is located on the handle bracket 103. If the detection value of the second detection device 202 is the fourth detection value, it indicates that the second detection device 202 has detected the second inspected device 204. At this time, the detection value does not meet the preset standard, and it is determined that the handle 102 is not on the handle bracket 103, but on the device body 101.
[0029] For example, a unipolar Hall sensor is installed at each end of the handle 102, namely a first Hall sensor and a second Hall sensor. The first Hall sensor is one implementation of the first detection device 201, and the second Hall sensor is one implementation of the second detection device 202. An N-pole magnet is installed on the handle bracket 103, which is one implementation of the first tested device 203. An S-pole magnet is installed on the device body 101, which is one implementation of the second tested device 204. In this embodiment, the first Hall sensor and the N-pole magnet are positioned correspondingly, and the second Hall sensor and the S-pole magnet are positioned correspondingly. For example, the positional relationship between the first Hall sensor and the N-pole magnet satisfies the following condition: when the handle is located on the handle bracket, the first Hall sensor is closer to the N-pole magnet; the positional relationship between the second Hall sensor and the S-pole magnet satisfies the following condition: when the handle is located on the device body, the second Hall sensor is closer to the S-pole magnet. Thus, when the handle 102 is placed on the handle holder 103, the first Hall sensor can detect the N-pole magnet on the handle holder 103, and output a voltage as the detection value. At this time, the second Hall sensor cannot detect the S-pole magnet on the device body 101. Therefore, when the output voltage of the first Hall sensor is detected, it can be determined that the handle 102 is placed on the handle holder 103. When the handle 102 is placed on the device body 101, the second Hall sensor can detect the S-pole magnet on the device body, and output a voltage as the detection value. At this time, the first Hall sensor cannot detect the N-pole magnet 201 on the handle holder 103. Therefore, when the output voltage of the second Hall sensor is detected, it can be determined that the handle 102 is placed on the device body 101.
[0030] It is understandable that an N-pole magnet can also be installed on the main body 101 of the device, which is one implementation of the second tested device 202, and an S-pole magnet can be installed on the handle bracket 103, which is one implementation of the first tested device 201. In this embodiment, the first Hall sensor and the S-pole magnet are correspondingly arranged, and the second Hall sensor and the N-pole magnet are correspondingly positioned. For example, the positional relationship between the first Hall sensor and the S-pole magnet satisfies that when the handle is located on the handle bracket, the first Hall sensor is closer to the S-pole magnet; the positional relationship between the second Hall sensor and the N-pole magnet satisfies that when the handle is located on the main body of the device, the second Hall sensor is closer to the N-pole magnet. Thus, when the handle 102 is placed on the handle bracket 103, the first Hall sensor can detect the S-pole magnet on the handle bracket 103, thereby outputting a voltage as a detection value. At this time, the second Hall sensor cannot detect the N-pole magnet on the main body 101. Therefore, when the output voltage of the first Hall sensor is detected, it can be determined that the handle 102 is placed on the handle bracket 103. When the handle 102 is placed on the device body 101, the second Hall sensor can detect the N-pole magnet on the device body 101 and output voltage as the detection value. At this time, the first Hall sensor cannot detect the S-pole magnet on the handle bracket 103. Therefore, when the output voltage of the second Hall sensor is detected, it can be determined that the handle 102 is placed on the device body 101.
[0031] In other embodiments, one implementation of the detection device can be an NFC reader, and one implementation of the device under test can be an NFC tag. An NFC reader is installed at each end of the handle 102, a first NFC reader and a second NFC reader. The first NFC reader is one implementation of the first detection device, and the second NFC reader is one implementation of the second detection device. A first NFC tag is installed on the handle support 103, which is one implementation of the first device under test. A second NFC tag is installed on the device body 101, which is one implementation of the second device under test. In this embodiment, the first NFC reader and the first NFC tag are correspondingly positioned, and the second NFC reader and the second NFC tag are positioned correspondingly. For example, the positional relationship between the first NFC reader and the first NFC tag satisfies the following condition: when the handle is located on the handle support, the first NFC reader is closer to the first NFC tag; similarly, the positional relationship between the second NFC reader and the second NFC tag satisfies the following condition: when the handle is located on the device body, the second NFC reader is closer to the second NFC tag. Thus, when the handle 102 is placed on the handle holder 103, the first NFC reader can detect the first NFC tag on the handle holder 103 and output voltage. At this time, the second NFC reader cannot detect the second NFC tag on the device body 101. Therefore, detecting the output voltage of the first NFC reader confirms that the handle 102 is placed on the handle holder 103. Similarly, when the handle 102 is placed on the device body 101, the second NFC reader can detect the second NFC tag on the device body and output voltage. At this time, the first NFC reader cannot detect the first NFC tag on the handle holder 103. Therefore, detecting the output voltage of the second NFC reader confirms that the handle 102 is placed on the device body 101.
[0032] In this embodiment, by setting a first detection device and a second detection device on the handle, setting a first inspection device on the handle bracket, and setting a second inspection device on the main body of the device, the position of the handle can be accurately determined based on the detection values of the first detection device and the second detection device. This provides a basis for subsequent calibration of the weighing display value based on the position of the handle, thereby ensuring the accuracy of the weighing display value.
[0033] This application provides various methods for detecting the position of the controller, thereby improving the flexibility of controller position detection.
[0034] Step S502: If it is determined that the handle is located on the handle bracket, determine the weighing calibration value of the weighing equipment.
[0035] In this step, when the handle is located on the handle bracket, the weighing calibration value of the weighing equipment is determined. This weighing calibration value is used to correct the displayed value of the weighing equipment.
[0036] In one possible implementation, the weighing calibration value includes a weighing zero point value. Determining the weighing calibration value of the weighing device when it is determined that the handle is located on the handle support includes: determining the weighing zero point value of the weighing device when it is determined that the handle is located on the handle support.
[0037] In this embodiment, the zero-point value of the weighing device is determined based on the position of the handle. This zero-point value is then used as the weighing calibration value to correct the displayed value of the weighing device. The zero-point value of the weighing device is the reference measurement value under no-load conditions, ensuring that the weighing device can accurately display a value of "0" under no-load conditions. This ensures that the reading reflects only the actual weight of the object when it is loaded, serving as the basic calibration benchmark for accurate weighing.
[0038] In one possible implementation, determining the zero-point value of the weighing device includes: When the handle is in the handle bracket, the first weighing value of the weighing device under no-load conditions is taken as the zero-point value of the weighing device.
[0039] In this embodiment, if the weighing device detects that the handle is located on the handle bracket when it is under no load, then the first weighing value G1 of the weighing device is used as the zero point value.
[0040] In other possible embodiments, if it is detected that the handle is not located on the handle bracket but on the main body of the device, then the second weighing value of the weighing device in the no-load state when the handle is on the main body of the device is used as the zero-point value of the weighing device, and the second weighing value is greater than the first weighing value. In this embodiment, if the weighing device detects that the handle is located on the main body of the device in the no-load state, then the second weighing value G2 of the weighing device is used as the zero-point value.
[0041] It should be noted that, compared to when the handle is located on the main body of the device, when the handle is located on the handle bracket, the weight of the handle does not affect the current weighing value of the weighing device's weight sensor, and the current weighing value of the weighing device's weight sensor is also affected by the tension of the handle cable. Therefore, the first weighing value G1 and the second weighing value G2 are not equal, and the second weighing value G2 is greater than the first weighing value G1.
[0042] In this embodiment, based on the position of the handle, the zero-point value of the weighing device under no-load conditions is calibrated. The zero-point value can be used as a weighing correction value to correct the displayed value of the weighing device, thereby improving the accuracy of the weighing display value of the weighing device.
[0043] Step S503: Obtain the weighing value of the weighing equipment.
[0044] In this step, the user steps onto the scale, and the weight sensor of the weighing device weighs the user to obtain the current weight value. It is worth noting that this weight value will be affected by the position of the handle. For example, when the handle is on the main body of the device, the weight of the handle itself will affect the weight value, and when the handle is on the handle bracket, the tension of the handle cable will affect the weight value.
[0045] Step S504: Determine the weighing display value of the weighing equipment based on the weighing correction value and the weighing value.
[0046] In this step, the weighing correction value is used to eliminate errors in the weighing value in order to determine the final weighing display value of the weighing equipment.
[0047] In one possible implementation, determining the weighing display value of the weighing device based on the weighing correction value and the weighing value includes: calculating the difference between the weighing value and the weighing correction value as the weighing display value of the weighing device.
[0048] In this embodiment, the difference between the weighing value and the weighing correction value is calculated, and this difference is used as the weighing display value of the weighing device, thereby realizing the correction of the display value of the weighing device and improving the accuracy.
[0049] To address the issue of inaccurate weighing display values caused by the influence of handle weight or handle cable tension on the weighing equipment, this application embodiment detects the handle position and determines a weighing calibration value for the weighing equipment based on the handle position. This calibration value is then used to correct the acquired weighing value, resulting in the displayed weighing value. Specifically, to address the issue of inaccurate weighing display values caused by the influence of handle cable tension, this application embodiment determines the weighing calibration value when the handle is located on the handle support, and uses this calibration value to correct the acquired weighing value, resulting in the displayed weighing value.
[0050] This application embodiment realizes the correction of the displayed value of the weighing device to eliminate the influence of the handle cable tension on the displayed value, thereby improving the accuracy of the displayed value of the weighing device.
[0051] In one possible implementation, the method further includes: updating the symmetrical zero-point value according to a preset update cycle when the handle is located on the handle support; The method of updating the symmetrical zero-point value according to a preset update cycle includes: According to the preset update cycle, obtain the current third weighing value of the weighing equipment; If the third weighing value is less than the second weighing value, and the third weighing value is not equal to the first weighing value, then the third weighing value is updated to the zero-point weighing value. The second weighing value is the weighing value of the weighing equipment in a no-load state when the handle is located in the main body of the equipment.
[0052] When the handle is placed on the handle bracket, the handle exerts a pulling force on the main body of the equipment through the handle cable. This pulling force changes when the equipment is moved, transported, or subjected to collisions, thus changing the zero-point weighing value. Therefore, the user's weight calculated based on this zero-point value after the equipment is stably positioned is inaccurate. To ensure accuracy, the zero-point weighing value can be updated according to a preset update cycle. Specifically, with the handle on the handle bracket, the current third weighing value of the weighing equipment in an unloaded state is obtained according to the preset update cycle. This third weighing value is compared with the second weighing value. If the third weighing value is less than the second weighing value, it indicates that the handle is indeed on the handle bracket, and the third weighing value is further compared with the first weighing value. If the third weighing value is inconsistent with the first weighing value, the zero-point weighing value with the handle on the handle bracket needs to be updated; that is, the third weighing value is used as the zero-point weighing value. If the third weighing value is the same as the first weighing value, no update of the zero-point weighing value is required.
[0053] In this embodiment, the zero-point value of weighing can be updated according to a preset update cycle, avoiding the problem of the zero-point value of weighing becoming invalid due to changes in the position of the main body of the equipment, and ensuring the accuracy of the zero-point value of weighing and the weighing equipment in weighing weight.
[0054] In one possible implementation, detecting the position of the handle includes: Determine the operating mode of the weighing equipment; operating modes include sleep mode and wake-up mode. The matching detection mode is determined according to the working mode of the weighing equipment; among them, the detection mode matched by the sleep mode and the detection mode matched by the wake-up mode, any detection cycle in the detection mode matched by the sleep mode is not shorter than any detection cycle in the detection mode matched by the wake-up mode. The position of the handle is detected according to the detection cycle of the detection mode.
[0055] In this possible implementation, different cycles of calibration can be performed based on different working modes. This can also be understood as: determining the weighing calibration value for different cycles or performing handle position detection for different cycles based on different working modes.
[0056] Specifically, the matching detection mode is determined based on the operating mode of the weighing equipment. If the weighing equipment is in sleep mode, the corresponding matching detection mode is the first detection mode; if the weighing equipment is in wake-up mode, the corresponding matching detection mode is the second detection mode. The detection cycles of the first and second detection modes are different. The first detection mode may include at least one detection cycle, and the second detection mode may include at least one detection cycle.
[0057] In one embodiment, the detection cycle in the first detection mode includes three first detection cycles, and the detection cycle in the second detection mode is the second detection cycle. The multiple first detection cycles increase sequentially, and the second detection cycle is shorter than or equal to the first first detection cycle. For example, in wake-up mode, the second detection mode checks once per second, meaning the second detection cycle is 1 second. In sleep mode, the first detection mode is: once per second within the first minute of entering sleep mode, meaning the first detection cycle is 1 second; once every 5 seconds from 1 minute to 10 minutes, meaning the first detection cycle is 5 seconds; and once every 5 minutes after 10 minutes, meaning the first detection cycle is 5 minutes. It should be noted that entering sleep mode indicates the user has briefly used the weighing device, and they are most likely to weigh themselves again in a short time. Therefore, the detection cycle for the first minute in sleep mode is set to 1 second. The probability of subsequent use gradually decreases, so the detection cycle can be gradually extended. This application achieves a better balance between device power consumption and response sensitivity by gradually extending the detection cycle in sleep mode.
[0058] In one embodiment, the working mode of the weighing device can be determined in the following way: if the change in the weighing value of the weighing device within a unit time is greater than a preset threshold, the working mode is determined to be the wake-up mode; if the change in the weighing value of the weighing device within a unit time is less than or equal to the preset threshold, the working mode is determined to be the sleep mode. The preset threshold can be set to 2kg, 3kg, 4kg, etc.
[0059] In this embodiment, the detection cycle can be determined according to the working mode of the weighing equipment. Each detection cycle in the detection mode matched by the sleep mode is not shorter than the detection cycle in the detection mode matched by the wake-up mode; that is, the wake-up mode detects more frequently than the sleep mode. Reducing detection in sleep mode lowers equipment power consumption, while increasing detection in wake-up mode ensures response sensitivity and improves weighing accuracy.
[0060] This application also provides a weighing device, which includes a processor and a memory. The memory stores a program or instructions that can be run on the processor. When the program or instructions are executed by the processor, they implement the various steps of the above-described weighing method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0061] Memory can be used to store software programs and various data. A memory can primarily consist of a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, memory can include volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM). The memory in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0062] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and applications, while the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor.
[0063] like Figure 1 and Figure 2As shown, the weighing device includes a main body 101, a handle 102, a handle bracket 103, and a signal cable 104. The handle 102 can be placed on the handle bracket 103 or on the main body 101. The main body 101 and the handle 102 are connected via the signal cable 104. The main body 101 is equipped with an automatic reel. When the signal cable 104 is released, the automatic reel automatically rotates under the action of an internal spring or torsion spring, retracting the signal cable 104 and magnetically attaching it to the edge of the main body 101. It is understood that in practical applications, the handle of the weighing device may be placed in several positions: on the main body, in the user's hand, or on the handle bracket.
[0064] In one embodiment, one of the handle 102 and the handle support 103 is provided with a detection device, which outputs different detection values according to different positions of the handle. In one embodiment, the detection device is disposed on the handle 102, the handle support 103 is provided with a first detection device, and the device body 101 is provided with a second detection device. The detection device outputs a first detection value when the first detection device is detected, and outputs a second detection value when the second detection device is detected. If the detection value of the detection device is determined to be the first detection value, then the handle 102 is determined to be located on the handle support 103; if the detection value of the detection device is determined to be the second detection value, then the handle 102 is determined to be located on the device body 101. In another embodiment, the detection device is disposed on the handle 102 and includes a first detection device and a second detection device. The handle support 103 is provided with the first detection device, and the device body 101 is provided with the second detection device. The first detection device outputs a third detection value when the first detection device is detected, and the second detection device outputs a fourth detection value when the second detection device is detected. If the detection value of the first detection device is determined to be the third detection value, then the handle 102 is determined to be located on the handle bracket 103; if the detection value of the second detection device is determined to be the fourth detection value, then the handle 102 is determined to be located on the main body of the device 101.
[0065] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described weighing method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0066] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0067] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A weighing method, characterized in that, Applied to a weighing device, the weighing device includes a device body, a handle, and a handle bracket, the device body and the handle are connected via a signal line, and the handle bracket is used to hold the handle; the method includes: Detect the position of the handle; the position of the handle includes at least: the handle is located on the handle bracket; Determine the weighing calibration value of the weighing device if it is determined that the handle is located on the handle bracket; Obtain the weighing value of the weighing device; The weighing display value of the weighing device is determined based on the weighing correction value and the weighing value.
2. The weighing method according to claim 1, characterized in that, At least one of the handle and the handle bracket is provided with a detection device, and the detection device is used to output different detection values according to different positions of the handle; The detection of the position of the handle includes: Obtain the detection value from the detection device; Determine whether the detected value meets the preset standard; If the detected value meets the preset standard, then it is determined that the handle is in the handle bracket; If the detected value does not meet the preset standard, it is determined that the handle is not in the handle bracket.
3. The weighing method according to claim 2, characterized in that, The detection device is disposed on the handle, the handle bracket is provided with a first detection device, and the main body of the device is provided with a second detection device. The detection device is used to output a first detection value when the first detection device is detected, and to output a second detection value when the second detection device is detected. The step of determining that the handle is in the handle bracket if the detection value meets the preset standard includes: if the detection value of the detection device is a first detection value, then the detection value meets the preset standard, and the handle is determined to be in the handle bracket; The step of determining that the handle is not in the handle bracket if the detection value does not meet the preset standard includes: if the detection value of the detection device is a second detection value, then the detection value does not meet the preset standard, and the handle is determined to be not in the handle bracket.
4. The weighing method according to claim 2, characterized in that, The detection device is disposed on the handle, and the detection device includes a first detection device and a second detection device. The handle bracket is provided with a first detection device, and the main body of the device is provided with a second detection device. The first detection device is used to output a third detection value when the first detection device is detected, and the second detection device outputs a fourth detection value when the second detection device is detected. The step of determining that the handle is in the handle bracket if the detection value meets the preset standard includes: if the detection value of the first detection device is a third detection value, then the detection value meets the preset standard and the handle is determined to be in the handle bracket; The step of determining that the handle is not in the handle bracket if the detection value does not meet the preset standard includes: if the detection value of the second detection device is the fourth detection value, then the detection value does not meet the preset standard, and the handle is determined to be not in the handle bracket.
5. The weighing method according to claim 1, characterized in that, The weighing calibration value includes the zero-point weighing value. Determining the weighing calibration value of the weighing equipment when the handle is determined to be located on the handle bracket includes: Determine the zero-point value of the weighing device when the handle is located on the handle bracket.
6. The weighing method according to claim 5, characterized in that, Determining the zero-point value of the weighing equipment includes: When the handle is positioned on the handle bracket, the first weighing value of the weighing device in an unloaded state is taken as the zero-point value of the weighing device.
7. The weighing method according to claim 6, characterized in that, The method further includes: When the handle is located on the handle bracket, the zero-point value of the weighing is updated according to a preset update cycle; The method of updating the weighing zero point value according to a preset update cycle includes: According to the preset update cycle, obtain the current third weighing value of the weighing device; If the third weighing value is less than the second weighing value, and the third weighing value is not equal to the first weighing value, then the third weighing value is updated to the zero-point weighing value. The second weighing value is the weighing value of the weighing device in a no-load state when the handle is located in the main body of the device.
8. The weighing method according to claim 1, characterized in that, The detection of the position of the handle includes: Determine the operating mode of the weighing equipment; the operating mode includes a sleep mode and a wake-up mode; The matching detection mode is determined according to the working mode of the weighing equipment; wherein, the detection mode matched by the sleep mode and the detection mode matched by the wake-up mode, and any detection cycle in the detection mode matched by the sleep mode is not shorter than any detection cycle in the detection mode matched by the wake-up mode. The position of the handle is detected according to the detection cycle of the detection mode.
9. A weighing device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that run on the processor, the program or instructions being executed by the processor to implement the steps of the weighing method as described in any one of claims 1 to 8.
10. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the weighing method as described in any one of claims 1 to 8.