Device state determination method and apparatus, storage medium, and electronic device

By installing wireless modules on the main body and lid of the cooking device, and statistically comparing the time intervals of target data acquisition, the problem of inaccurate detection caused by complex detection mechanisms is solved, and rapid and accurate lid status judgment is achieved.

CN116406952BActive Publication Date: 2026-07-10ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
Filing Date
2021-12-31
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

Existing methods for detecting the state of cooking equipment lids require complex opening and closing detection mechanisms, and the detection results are inaccurate, unable to distinguish between moving and stationary states, and pose a risk of misjudgment.

Method used

By setting wireless modules on the main body and cover of the device, the time interval for acquiring target data is statistically analyzed, the acquisition time relationship is compared, and the state of the cover, including moving and stationary states, is determined based on the comparison results.

Benefits of technology

It enables rapid and accurate detection of the condition of the cooking equipment lid, improving the accuracy and reliability of the detection and avoiding misjudgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116406952B_ABST
    Figure CN116406952B_ABST
Patent Text Reader

Abstract

The application discloses a device state judgment method and device, a storage medium and an electronic device. The method comprises the following steps: obtaining target data sent by a first wireless module through a second wireless module; in a time period, counting the acquisition time corresponding to each acquisition of the target data; comparing the size relationship between at least two acquisition times to obtain a group of first comparison results; and determining the state of a cover according to the group of first comparison results. Through the application, the problem that a complex cover opening and closing detection mechanism needs to be set to detect the cover state of a cooking device in the related art, and the detection result of the cover state of the cooking device is inaccurate is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment status determination, and more specifically, to a method, apparatus, storage medium, and electronic device for determining equipment status. Background Technology

[0002] During the cooking process, whether the cooking equipment can maintain normal operation is related to whether the cooking task can be completed smoothly. Therefore, it is very important to accurately judge the operating status of the cooking equipment. Judging the operating status of the cooking equipment includes judging the status of the cooking equipment lid, such as whether the top cover is closed tightly and whether the side door is closed tightly. If the judgment of the status of the cooking equipment lid is not timely or accurate, it will affect the execution of the cooking task and may even lead to accidents.

[0003] In related technologies, the method for judging the state of the lid of cooking equipment is to use a special lid opening and closing detection mechanism, such as a lid opening and closing detection mechanism that includes a magnetic reed switch. However, the lid opening and closing detection mechanism has a complex structure, and the connection structure will age after the equipment has been used for a long time, affecting the accuracy of the lid opening and closing detection. At the same time, traditional detection methods cannot determine whether the lid is in motion or stationary. For example, if the lid is currently in the process of closing, it will result in an error in judging the state of the equipment lid.

[0004] There is currently no effective solution to the problem that related technologies require complex opening and closing detection mechanisms to detect the state of cooking equipment lids, and that the detection results are inaccurate. Summary of the Invention

[0005] This application provides a method, apparatus, storage medium, and electronic device for determining the state of a device, in order to solve the problem in the related art that a complex opening and closing lid detection mechanism is required to detect the state of the cooking device lid, and the detection results of the cooking device lid state are inaccurate.

[0006] According to one aspect of this application, a method for determining the state of a device is provided. The method includes: acquiring target data transmitted by a first wireless module via a second wireless module, wherein the second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device; within a time period, calculating the acquisition time corresponding to each acquisition of target data, wherein the acquisition time is the time interval between the current acquisition time and the previous acquisition time; comparing the magnitude relationship between at least two acquisition times to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result; and determining the state of the cover based on the set of first comparison results. That is, by comparing the acquisition time of a frame of target data acquired by the second wireless module, a comparison result is obtained, and the state of the cover is determined based on the comparison result, thereby achieving the effect of quickly detecting the state of the cover of a cooking device.

[0007] Optionally, determining the state of the cover based on a set of first comparison results includes: if at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time, determining that the cover is currently in motion; if all first comparison results indicate that the subsequent acquisition time is equal to the previous acquisition time, determining that the cover is currently in a stationary state. By comparing the acquisition times, the changes in acquisition time are obtained, and the state of the cover is determined based on these changes, thereby improving the accuracy of determining the current state of the cover.

[0008] Optionally, determining that the cover is currently in motion when at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time includes: determining that the cover is moving in the opening direction when a set of first comparison results all indicate that the subsequent acquisition time is greater than or equal to the previous acquisition time; and determining that the cover is moving in the closing direction when a set of first comparison results all indicate that the subsequent acquisition time is less than or equal to the previous acquisition time. By determining the motion state of the equipment cover, a data foundation is laid for improving the accuracy of equipment cover status determination.

[0009] Optionally, after determining that the cover is currently in motion when at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time, the method further includes: comparing the magnitude relationship between the last acquisition time and a preset value to obtain a second comparison result; determining that the current state of the cover is a closed state when the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is less than or equal to the first preset value; determining that the current state of the cover is the same as the previously determined state when the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is greater than the first preset value; determining that the current state of the cover is an open state when the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is greater than or equal to the second preset value, wherein the first preset value is less than the second preset value; and determining that the current state of the cover is the same as the previously determined state when the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is less than the second preset value. By combining the movement state of the device cover and the acquisition time of the last frame of data to determine the opening and closing state of the cover, the method achieves the effect of accurately determining the opening and closing state of the device cover.

[0010] Optionally, after determining that the cover is currently stationary when all first comparison results indicate that the subsequent acquisition time is equal to the previous acquisition time, the method further includes: comparing the magnitude relationship between the last acquisition time and a preset value to obtain a third comparison result; determining that the current state of the cover is closed when the third comparison result indicates that the last acquisition time is less than or equal to the first preset value; determining that the current state of the cover is open when the third comparison result indicates that the last acquisition time is greater than or equal to the second preset value, wherein the first preset value is less than the second preset value; and determining that the current state of the cover is the same as the previously determined state when the third comparison result indicates that the last acquisition time is less than the second preset value and greater than the first preset value. By combining the movement state of the device cover and the acquisition time of the last frame of data to determine the opening and closing state of the cover, the method achieves the effect of accurately determining the opening and closing state of the device cover.

[0011] Optionally, before determining the state of the cover based on a set of first comparison results, the method further includes: acquiring temperature data of the target device and determining the temperature range corresponding to the temperature data, wherein the frequency at which the second wireless module acquires the target data differs under different temperatures; when the temperature range corresponding to the temperature data is a first temperature range, acquiring a first preset value and a second preset value determined within the first temperature range; when the temperature range corresponding to the temperature data is a second temperature range, acquiring a first preset value and a second preset value determined within the second temperature range, wherein the lower limit of the second temperature range is equal to the upper limit of the first temperature range, the first preset value determined within the second temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is greater than the second preset value determined within the first temperature range; when the temperature range corresponding to the temperature data is a third temperature range, acquiring a first preset value and a second preset value determined within the third temperature range, wherein the upper limit of the third temperature range is equal to the lower limit of the first temperature range, the first preset value determined within the third temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is greater than the second preset value determined within the first temperature range. By adjusting the preset values ​​under different temperatures, the accuracy of the device cover state determination is avoided.

[0012] Optionally, before determining the state of the cover based on a set of first comparison results, the method further includes: within a first temperature range, statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the closed state, and averaging the acquired acquisition times to obtain a first target time; determining a first preset value based on the first target time; statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the open state, and averaging the acquired acquisition times to obtain a second target time; and determining a second preset value based on the second target time; within a second temperature range, statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the closed state, and averaging the acquired acquisition times to obtain a third target time. The target time is determined by: 1) determining a first preset value based on a third target time; 2) statistically analyzing the acquisition times of multiple target data points obtained by the second wireless module in the open state, and averaging these acquisition times to obtain a fourth target time; and 3) determining a second preset value based on the fourth target time. Within a third temperature range, the acquisition times of multiple target data points obtained by the second wireless module in the closed state are statistically analyzed, and averaging these acquisition times to obtain a fifth target time; and 4) determining a first preset value based on the fifth target time. Finally, the acquisition times of multiple target data points obtained by the second wireless module in the open state are statistically analyzed, and averaging these acquisition times to obtain a sixth target time; and 5) determining a second preset value based on the sixth target time. By calculating the average value of the received target data within a fixed time interval, preset values ​​at different temperatures are determined, thus improving the accuracy of determining the device cover status.

[0013] According to another aspect of this application, a device for determining the state of a device is provided. The device includes: a first acquisition unit, configured to acquire target data transmitted by a first wireless module via a second wireless module, wherein the second wireless module is disposed on the main body of the target device and the first wireless module is disposed on the cover of the target device; a first statistics unit, configured to count the acquisition time corresponding to each acquisition of target data within a time period, wherein the acquisition time is the time interval between the current acquisition time and the previous acquisition time; a first comparison unit, configured to compare the magnitude relationship between at least two acquisition times to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result; and a first determination unit, configured to determine the state of the cover based on the set of first comparison results.

[0014] According to another aspect of the present invention, a computer storage medium is also provided for storing a program, wherein the program, when running, controls the device where the computer storage medium is located to execute a device state determination method.

[0015] According to another aspect of the present invention, an electronic device is also provided, comprising a processor and a memory; the memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions, wherein the computer-readable instructions, when executed, perform a device state determination method.

[0016] This application employs the following steps: A second wireless module acquires target data transmitted by a first wireless module, wherein the second wireless module is mounted on the main body of the target device, and the first wireless module is mounted on the cover of the target device; within a time period, the acquisition time corresponding to each acquisition of target data is calculated, wherein the acquisition time is the time interval between the current acquisition of target data and the previous acquisition of target data; the magnitude relationship between at least two acquisition times is compared to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result; the state of the cover is determined based on the set of first comparison results. This solves the problem in related technologies that require complex opening and closing detection mechanisms to detect the state of the cooking device cover, and the detection results for the cooking device cover state are inaccurate. By comparing the acquisition time of a frame of target data acquired by the second wireless module, a comparison result is obtained, and the state of the cover is judged based on the comparison result, thereby achieving the effect of quickly detecting the state of the cooking device cover. Attached Figure Description

[0017] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a flowchart of a device status determination method provided according to an embodiment of this application;

[0019] Figure 2 This is a flowchart of an optional device status determination method provided according to an embodiment of this application;

[0020] Figure 3 This is a schematic diagram of a device for determining the status of an equipment according to an embodiment of this application. Detailed Implementation

[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] According to an embodiment of this application, a method for determining the status of a device is provided.

[0025] Figure 1 This is a flowchart of a method for determining the device status according to an embodiment of this application. For example... Figure 1 As shown, the method includes the following steps:

[0026] Step S102: Obtain the target data sent by the first wireless module through the second wireless module, wherein the second wireless module is installed on the main body of the target device and the first wireless module is installed on the cover of the target device.

[0027] Specifically, the second wireless module can be a reader, specifically a swept-frequency oscillator, which can be installed on the main body of the target device. The first wireless module can be a transponder with a preset fixed resonant frequency. The swept-frequency oscillator and the transponder can communicate using RFID (Radio Frequency Identification) technology. The swept-frequency oscillator can transmit radio frequency signals within a certain frequency range to the transponder at a preset frequency (e.g., once every 200ms) through an inductor coil. When the resonant frequency of the radio frequency signal transmitted by the swept-frequency oscillator is the same as the preset resonant frequency in the transponder, the swept-frequency oscillator receives the target data signal transmitted by the transponder, obtains the target data, and thus completes the wireless acquisition of the target data.

[0028] Step S104: Within a time period, calculate the acquisition time corresponding to each acquisition of target data, where the acquisition time is the time interval between the current acquisition of target data and the previous acquisition of target data.

[0029] Specifically, the selected time period can be any consecutive time period, and the acquisition time corresponding to each acquisition of target data can be counted within that time period.

[0030] For example, the statistical time period can be set to 1 second to count the acquisition time of the target data within 1 second. Specifically, when the first target data is acquired, the timing t1 (reset to zero after acquiring one frame of data) and t2 (reset to zero after 1 second) are started. When the second target data is acquired, the time t1 is recorded and the recording of t1 is restarted. At this time, the first acquisition time T1 is obtained, and the acquisition time is counted in this way until t2 = 1 second. At this time, all the acquisition times are sorted according to the acquisition time order to obtain multiple acquisition times within 1 second. For example, if 10 target data are acquired within 1 second, then 10 acquisition times T1 to T10 are obtained, and T1 can be the first acquisition time in this time period, and T10 can be the last acquisition time in this time period.

[0031] Step S106: Compare the magnitude relationship between at least two acquisition times to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result.

[0032] Specifically, after statistically analyzing the acquisition times corresponding to the target data acquired within a certain time period, each acquisition time can be compared to obtain a comparison result. For example, if four sets of target data are acquired within a preset time period, with T1 being 100ms, T2 being 200ms, T3 being 300ms, and T4 being 400ms, the four acquisition times can be compared to obtain a first comparison result. That is, a set of first submission results contains only one first comparison result, from which it can be seen that the acquisition time gradually increases. Alternatively, T1, T2, and T3 can be compared, and T2, T3, and T4 can be compared to obtain a set of first comparison results, from which it can be seen that the acquisition time gradually increases. Furthermore, T1 can be compared with T2, T2 with T3, and T3 with T4 to obtain a set of first comparison results, from which it can be seen that the acquisition time gradually increases. This embodiment does not limit the extraction acquisition time or the comparison method of acquisition time.

[0033] Step S108: Determine the state of the cover based on a set of first comparison results.

[0034] Specifically, after obtaining the comparison results, the status of the device cover can be determined based on these results. For example, if T1 is detected as 100ms, T2 as 200ms, T3 as 300ms, and T4 as 400ms, then by comparing T3 with T1 and T4 with T3, and noting that the acquisition time gradually increases, and T4 is 400ms, the current status can be determined to be open. As another example, if T1 is detected as 400ms, T2 as 300ms, T3 as 300ms, and T4 as 100ms, then by comparing T3 with T1 and T4 with T3, and noting that the acquisition time gradually increases, and T4 is 100ms, the current status can be determined to be closed.

[0035] The device status determination method provided in this application embodiment acquires target data sent by a first wireless module through a second wireless module. The second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device. Within a time period, the acquisition time corresponding to each acquisition of target data is statistically analyzed, where the acquisition time is the time interval between the current acquisition of target data and the previous acquisition of target data. The relationship between at least two acquisition times is compared to obtain a set of first comparison results, where each set of first comparison results includes at least one first comparison result. The status of the cover is determined based on this set of first comparison results. This solves the problem in related technologies where a complex opening and closing cover detection mechanism is required to detect the status of the cooking device cover, and the detection results are inaccurate. By comparing the acquisition time of a frame of target data acquired by the second wireless module, a comparison result is obtained, and the status of the cover is determined based on the comparison result, thereby achieving the effect of quickly detecting the status of the cooking device cover.

[0036] Optionally, in the device state determination method provided in the embodiments of this application, determining the state of the cover based on a set of first comparison results includes: if at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time, determining that the cover is currently in motion; and if all of a set of first comparison results indicate that the subsequent acquisition time is equal to the previous acquisition time, determining that the cover is currently in a stationary state.

[0037] It should be noted that if the first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time, it means that the content of the first comparison result is that the subsequent acquisition time is not equal to the previous acquisition time. If the first comparison result indicates that the subsequent acquisition time is equal to the previous acquisition time, it means that the content of the first comparison result is that the subsequent acquisition time is equal to the previous acquisition time.

[0038] Specifically, when the distance between the cover and the device main body is different, the time required for data transmission between the swept-frequency oscillator and the transponder will also be different, resulting in a change in the acquisition time of the target data received by the swept-frequency oscillator within the same time. Therefore, the acquisition times of multiple target data obtained by the swept-frequency oscillator within a period of time can be compared to judge the operating state of the cover.

[0039] For example, the acquisition times of the target data can be counted within 1 s, and the statistical results are obtained as T1 = 100 ms, T2 = 100 ms, T3 = 400 ms, and T4 = 400 ms. Then, it can be judged that the acquisition times of T2 and T3 are different, that is, there is at least one first comparison result indicating that the latter acquisition time is not equal to the former acquisition time. Then, it can be judged that the current cover is in a moving state. In addition, if the statistical results are obtained as T1 = 250 ms, T2 = 250 ms, T3 = 250 ms, and T4 = 250 ms, it can be judged that the acquisition times are exactly the same, and then it can be judged that the current cover is in a stationary state. In this embodiment, by comparing the acquisition times, the change situation of the acquisition times is obtained, and the cover state is judged according to the change situation, thereby improving the accuracy of determining the current state of the cover.

[0040] Optionally, in the method for judging the device state provided in the embodiment of the present application, when there is at least one first comparison result indicating that the latter acquisition time is not equal to the former acquisition time, determining that the cover is currently in a moving state includes: when a group of first comparison results all indicate that the latter acquisition time is greater than or equal to the former acquisition time, determining that the cover is moving in the opening direction; when a group of first comparison results all indicate that the latter acquisition time is less than or equal to the former acquisition time, determining that the cover is moving in the closing direction.

[0041] Specifically, when the acquisition times of two certain target data are different within a preset period of time, the running direction of the device cover can be judged according to the change situation of the acquisition times.

[0042] For example, the acquisition times of the target data can be counted within 1 s, and the statistical results are obtained as T1 = 100 ms, T2 = 100 ms, T3 = 400 ms, and T4 = 400 ms. At this time, after comparison, since it increases between T1 to T4, it can be judged that the current cover is in a moving state and is in an opening movement; if it is detected that T1 = 300 ms, T2 = 300 ms, T3 = 200 ms, and T4 = 200 ms, then since T3 < T2, it can be judged that the acquisition time gradually decreases, and it can be judged that the current device is in a closing movement state. In this embodiment, by judging the movement state of the device cover, a data basis is laid for improving the accuracy of judging the device cover state.

[0043] Optionally, in the device state determination method provided in the embodiments of this application, after determining that the cover is currently in motion when at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time, the method further includes: comparing the magnitude relationship between the last acquisition time and a preset value to obtain a second comparison result; determining that the current state of the cover is a closed state when the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is less than or equal to the first preset value; determining that the current state of the cover is the same as the previously determined state when the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is greater than the first preset value; determining that the current state of the cover is an open state when the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is greater than or equal to the second preset value, wherein the first preset value is less than the second preset value; and determining that the current state of the cover is the same as the previously determined state when the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is less than the second preset value.

[0044] Specifically, when at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time, the current device cover state can be determined based on the direction of movement and the magnitude relationship between the last acquisition time and a preset value. The first preset value can be used to determine the cover state when the cover is moving in the closing direction, and the second preset value can be used to determine the cover state when the cover is moving in the opening direction.

[0045] For example, Figure 2 This is a flowchart of an optional device status determination method provided according to an embodiment of this application, such as... Figure 2As shown, the acquisition time of the target data can be statistically analyzed within 1 second. The first preset value can be set to 60ms, and the second preset value can be 300ms. At this time, the system performs device cover status judgment and obtains 10 data frame acquisition quantities T1 to T10, where T1 is the number acquired in the first time interval and T10 is the number acquired in the last time interval. Then, the relationship between T1 and T10 is judged. If the acquisition time of T1 to T10 shows an increasing trend, the device cover is determined to be in an open state. When T10 = 350ms, the device cover is currently in an open state. When T10 = 250ms, the current state of the cover is the same as the previously determined state. If the acquisition time of T1 to T10 shows a decreasing trend, the device cover is determined to be in a closed state. When T10 = 50ms, the device cover is currently in a closed state. When T10 = 80ms, the current state of the cover is the same as the previously determined state. This embodiment combines the movement state of the device cover with the acquisition time of the last frame of data to determine the opening and closing state of the cover, thus achieving the effect of accurately determining the opening and closing state of the device cover.

[0046] Optionally, in the device state determination method provided in the embodiments of this application, after determining that the cover is currently in a stationary state when a set of first comparison results all indicate that the subsequent acquisition time is equal to the previous acquisition time, the method further includes: comparing the magnitude relationship between the last acquisition time and a preset value to obtain a third comparison result; determining that the current state of the cover is a closed state when the third comparison result indicates that the last acquisition time is less than or equal to the first preset value; determining that the current state of the cover is an open state when the third comparison result indicates that the last acquisition time is greater than or equal to the second preset value, wherein the first preset value is less than the second preset value; and determining that the current state of the cover is the same as the state determined previously when the third comparison result indicates that the last acquisition time is less than the second preset value and greater than the first preset value.

[0047] Specifically, if all the first comparison results indicate that the next acquisition time is greater than or equal to the previous acquisition time, the current device cover status can be determined based on the relationship between the last acquisition time and a preset value. The first preset value can be used to determine whether the cover is closed, and the second preset value can be used to determine whether the cover is open.

[0048] For example, the acquisition time of target data can be statistically analyzed within 1 second. A first preset value can be set to 60ms, and a second preset value can be 300ms. At this time, the system determines the device cover state, obtaining 20 data frame acquisition quantities T1 to T20, where T1 is the number acquired in the first time interval, and T20 is the number acquired in the last time interval. Then, the relationship between T1 and T20 is determined. If T1 to T20 are all 50ms, the device cover is determined to be stationary and currently closed. This embodiment combines the device cover's motion state and the acquisition time of the last data frame to determine the cover's opening and closing state, achieving an accurate determination of the device cover's opening and closing state.

[0049] Optionally, in the device state determination method provided in this application embodiment, before determining the state of the cover based on a set of first comparison results, the method further includes: acquiring temperature data of the target device and determining the temperature range corresponding to the temperature data, wherein the frequency at which the second wireless module acquires the target data is different at different temperatures; when the temperature range corresponding to the temperature data is a first temperature range, acquiring a first preset value and a second preset value determined within the first temperature range; when the temperature range corresponding to the temperature data is a second temperature range, acquiring a first preset value and a second preset value determined within the second temperature range, wherein the lower limit of the second temperature range is equal to the upper limit of the first temperature range, the first preset value determined within the second temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is greater than the second preset value determined within the first temperature range; when the temperature range corresponding to the temperature data is a third temperature range, acquiring a first preset value and a second preset value determined within the third temperature range, wherein the upper limit of the third temperature range is equal to the lower limit of the first temperature range, the first preset value determined within the third temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is greater than the second preset value determined within the first temperature range.

[0050] Specifically, because the resonant capacitance value of the resonant circuit changes with temperature, it may cause variations in the operating frequency and chip sweep time. Therefore, temperature-related changes in the acquisition time of target data can lead to errors in determining the open / closed state of the target device. Thus, it is necessary to adjust the first and second preset values ​​accordingly based on temperature to eliminate detection errors caused by temperature factors that could lead to incorrect judgments about the open / closed state of the target device.

[0051] For example, the first temperature range can be a normal temperature environment, which can be set to -5℃ to 70℃; the second temperature range can be a high temperature environment, which can be set to greater than 75℃; and the third temperature range can be a low temperature environment, which can be set to less than -5℃. In a normal temperature environment, the first preset value can be 60 and the second preset value can be 300; in a high temperature environment, the first preset value can be 75 and the second preset value can be 360; and in a low temperature environment, the first preset value can be 70 and the second preset value can be 350. It should be noted that when the temperature is at the threshold between two temperature environments, the current environment needs to be determined as an abnormal temperature environment, and the first and second preset values ​​should be adjusted accordingly. For example, if the current temperature is -5℃, it is determined to be a low temperature state, and the first preset value can be 70 and the second preset value can be 350. If the current temperature is 70℃, it is determined to be a high temperature state, and the first preset value can be 75 and the second preset value can be 360. This embodiment achieves the effect of avoiding the influence of temperature on the accuracy of determining the state of the device cover by adjusting the preset values ​​at different temperatures.

[0052] Optionally, in the device state determination method provided in this application embodiment, before determining the state of the cover based on a set of first comparison results, the method further includes: within a first temperature range, statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the closed state, and averaging the acquired acquisition times to obtain a first target time, and determining a first preset value based on the first target time; statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the open state, and averaging the acquired acquisition times to obtain a second target time, and determining a second preset value based on the second target time; within a second temperature range, statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the closed state, and averaging the acquired acquisition times to obtain a first target time, and determining a first preset value based on the first target time; and within a second temperature range, statistically analyzing the acquisition times corresponding to multiple target data acquired by the second wireless module in the closed state, and averaging the acquired acquisition times to obtain a first target time, and determining a first preset value based on the first target time. The average time is calculated to obtain the third target time. Based on the third target time, the first preset value is determined. The acquisition time of the second wireless module acquiring multiple target data in the open state is counted, and the average of the acquired acquisition times is calculated to obtain the fourth target time. Based on the fourth target time, the second preset value is determined. Within the third temperature range, the acquisition time of the second wireless module acquiring multiple target data in the closed state is counted, and the average of the acquired acquisition times is calculated to obtain the fifth target time. Based on the fifth target time, the first preset value is determined. The acquisition time of the second wireless module acquiring multiple target data in the open state is counted, and the average of the acquired acquisition times is calculated to obtain the sixth target time. Based on the sixth target time, the second preset value is determined.

[0053] Specifically, to better determine the first and second preset values ​​at different temperatures, the device can be tested at the corresponding temperatures to obtain the first and second preset values ​​at different temperatures. For example, the device can be placed in an environment of 50°C with the lid closed. At this time, target data is received, the acquisition time required for each data point is determined, and the average value is calculated. This average value is then set as the preset value for the device with the lid closed under normal temperature conditions, thus obtaining the first preset value under normal temperature conditions. Simultaneously, the device can be placed in an open state, and the above operation is repeated to obtain the second preset value under normal temperature conditions. Furthermore, the device can be placed in high and low temperature environments to obtain the first and second preset values ​​under high and low temperature conditions, respectively. This embodiment determines the preset values ​​at different temperatures by calculating the average value of the target data received within a fixed time interval, thereby improving the accuracy of determining the device lid state.

[0054] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0055] This application also provides a device for determining device status. It should be noted that this device for determining device status can be used to execute the device status determination method provided in this application. The device for determining device status provided in this application will be described below.

[0056] Figure 3 This is a schematic diagram of a device for determining the state of a device according to an embodiment of this application. Figure 3 As shown, the device includes: a first acquisition unit 31, a first statistics unit 32, a first comparison unit 33, and a first determination unit 34.

[0057] The first acquisition unit 31 is used to acquire target data sent by the first wireless module through the second wireless module, wherein the second wireless module is disposed on the main body of the target device and the first wireless module is disposed on the cover of the target device.

[0058] The first statistical unit 32 is used to count the acquisition time corresponding to each acquisition of target data within a time period, wherein the acquisition time is the time interval between the current acquisition of target data and the previous acquisition of target data.

[0059] The first comparison unit 33 is used to compare the magnitude relationship between at least two acquisition times to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result.

[0060] The first determining unit 34 is used to determine the state of the cover based on a set of first comparison results.

[0061] The device status determination apparatus provided in this application embodiment acquires target data sent by a first wireless module through a first acquisition unit 31 via a second wireless module. The second wireless module is disposed on the main body of the target device, and the first wireless module is disposed on the cover of the target device. A first statistics unit 32 counts the acquisition time corresponding to each acquisition of target data within a time period, wherein the acquisition time is the time interval between the current acquisition of target data and the previous acquisition of target data. A first comparison unit 33 compares the magnitude relationship between at least two acquisition times to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result. A first determination unit 34 determines the status of the cover based on the set of first comparison results. This solves the problem in related technologies that require complex opening and closing cover detection mechanisms to detect the status of the cooking device cover, and the detection results are inaccurate. By comparing the acquisition time of a frame of target data acquired by the second wireless module, a comparison result is obtained, and the status of the cover is determined based on the comparison result, thereby achieving the effect of quickly detecting the status of the cooking device cover.

[0062] Optionally, in the device state determination apparatus provided in the embodiments of this application, the first determination unit 34 includes: a first determination module, used to determine that the cover is currently in motion when at least one first comparison result indicates that the subsequent acquisition time is not equal to the previous acquisition time; and a second determination module, used to determine that the cover is currently in a stationary state when a set of first comparison results all indicate that the subsequent acquisition time is equal to the previous acquisition time.

[0063] Optionally, in the device state determination apparatus provided in the embodiments of this application, the first determination module includes: a first sub-determination module, used to determine that the cover moves in the opening direction when a set of first comparison results all indicate that the later acquisition time is greater than or equal to the previous acquisition time; and a second sub-determination module, used to determine that the cover moves in the closing direction when a set of first comparison results all indicate that the later acquisition time is less than or equal to the previous acquisition time.

[0064] Optionally, in the device state determination apparatus provided in the embodiments of this application, the apparatus further includes: a second comparison unit, used to compare the magnitude relationship between the last acquisition time and a preset value to obtain a second comparison result; a second determination unit, used to determine that the current state of the cover is a closed state when the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is less than or equal to a first preset value; a third determination unit, used to determine that the current state of the cover is the same as the previously determined state when the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is greater than the first preset value; a fourth determination unit, used to determine that the current state of the cover is an open state when the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is greater than or equal to a second preset value, wherein the first preset value is less than the second preset value; and a fifth determination unit, used to determine that the current state of the cover is the same as the previously determined state when the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is less than the second preset value.

[0065] Optionally, in the device state determination apparatus provided in the embodiments of this application, the apparatus further includes: a third comparison unit, used to compare the magnitude relationship between the last acquisition time and a preset value to obtain a third comparison result; a sixth determination unit, used to determine that the current state of the cover is a closed state when the third comparison result indicates that the last acquisition time is less than or equal to a first preset value; a seventh determination unit, used to determine that the current state of the cover is an open state when the third comparison result indicates that the last acquisition time is greater than or equal to a second preset value, wherein the first preset value is less than the second preset value; and an eighth determination unit, used to determine that the current state of the cover is the same as the previously determined state when the third comparison result indicates that the last acquisition time is less than the second preset value and greater than the first preset value.

[0066] Optionally, in the device state determination device provided in the embodiments of this application, the device further includes: a second acquisition unit, configured to acquire temperature data of the target device and determine the temperature range corresponding to the temperature data, wherein the frequency at which the second wireless module acquires the target data is different under different temperatures; a third acquisition unit, configured to acquire a first preset value and a second preset value determined within the first temperature range when the temperature range corresponding to the temperature data is a first temperature range; a fourth acquisition unit, configured to acquire a first preset value and a second preset value determined within the second temperature range when the temperature range corresponding to the temperature data is a second temperature range, wherein the lower limit of the second temperature range is equal to the upper limit of the first temperature range, the first preset value determined within the second temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is greater than the second preset value determined within the first temperature range; and a fifth acquisition unit, configured to acquire a first preset value and a second preset value determined within the third temperature range when the temperature range corresponding to the temperature data is a third temperature range, wherein the upper limit of the third temperature range is equal to the lower limit of the first temperature range, the first preset value determined within the third temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is greater than the second preset value determined within the first temperature range.

[0067] Optionally, in the device state determination apparatus provided in this application embodiment, the apparatus further includes: a second statistical unit, configured to, within a first temperature range, statistically analyze the acquisition times corresponding to the acquisition of multiple target data by the second wireless module in the closed state, and calculate the average of the acquired acquisition times to obtain a first target time, and determine a first preset value based on the first target time; and statistically analyze the acquisition times corresponding to the acquisition of multiple target data by the second wireless module in the open state, and calculate the average of the acquired acquisition times to obtain a second target time, and determine a second preset value based on the second target time; and a third statistical unit, configured to, within a second temperature range, statistically analyze the acquisition times corresponding to the acquisition of multiple target data by the second wireless module in the closed state, and calculate the average of the acquired acquisition times. A third target time is obtained, and a first preset value is determined based on the third target time. The acquisition time corresponding to the acquisition of multiple target data by the second wireless module in the open state is statistically analyzed, and the average of the acquired acquisition times is calculated to obtain a fourth target time. A second preset value is determined based on the fourth target time. A fourth statistical unit is used to statistically analyze the acquisition time corresponding to the acquisition of multiple target data by the second wireless module in the closed state within a third temperature range, and the average of the acquired acquisition times is calculated to obtain a fifth target time. A first preset value is determined based on the fifth target time. The acquisition time corresponding to the acquisition of multiple target data by the second wireless module in the open state is statistically analyzed, and the average of the acquired acquisition times is calculated to obtain a sixth target time. A second preset value is determined based on the sixth target time.

[0068] The device for determining the status of the aforementioned equipment includes a processor and a memory. The first acquisition unit 31, the first statistics unit 32, the first comparison unit 33, the first determination unit 34, etc., are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0069] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting the kernel parameters, the problem in related technologies—where complex lid-opening / closing detection mechanisms are needed to detect the lid status of cooking equipment, and where the detection results are inaccurate—is solved.

[0070] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0071] This application also provides a computer storage medium for storing a program, wherein the program, when running, controls the device where the computer storage medium is located to execute a device status determination method.

[0072] This application also provides an electronic device comprising a processor and a memory; the memory stores computer-readable instructions, and the processor executes the computer-readable instructions, wherein the computer-readable instructions, when executed, perform a device state determination method. The electronic device described herein may be a server, PC, PAD, mobile phone, etc.

[0073] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0074] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0075] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0076] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0077] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0078] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0079] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0080] It should also be noted that 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 process, method, article, or apparatus. Unless otherwise specified, 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.

[0081] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for determining the status of equipment, characterized in that, include: The target data sent by the first wireless module is obtained through the second wireless module, wherein the second wireless module is disposed on the main body of the target device and the first wireless module is disposed on the cover of the target device; Within a certain time period, the acquisition time corresponding to each acquisition of the target data is counted, wherein the acquisition time is the time interval between the current acquisition of the target data and the previous acquisition of the target data; By comparing the magnitude relationship between at least two acquisition times, a first comparison result is obtained, wherein the first comparison result includes at least one first comparison result; The state of the cover is determined based on a set of the first comparison results. The state of the cover includes a moving state and a stationary state. The opening and closing state of the cover is determined by combining the moving state of the cover and the acquisition time of the last frame data.

2. The method according to claim 1, characterized in that, Determining the state of the cover based on a set of the first comparison results includes: If at least one of the first comparison results indicates that the subsequent acquisition time is not equal to the previous acquisition time, it is determined that the cover is currently in motion. If all the first comparison results in a set indicate that the subsequent acquisition time is equal to the previous acquisition time, it is determined that the cover is currently in a static state.

3. The method according to claim 2, characterized in that, Determining that the cover is currently in motion when at least one of the first comparison results indicates that the subsequent acquisition time is not equal to the previous acquisition time includes: If all the first comparison results in a set indicate that the subsequent acquisition time is greater than or equal to the previous acquisition time, it is determined that the cover moves in the opening direction; If all the first comparison results in a set indicate that the subsequent acquisition time is less than or equal to the previous acquisition time, it is determined that the cover is moving in the closing direction.

4. The method according to claim 2, characterized in that, If at least one of the first comparison results indicates that the subsequent acquisition time is not equal to the previous acquisition time, after determining that the cover is currently in motion, the method further includes: Compare the last acquisition time with the preset value to obtain the second comparison result; When the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is less than or equal to the first preset value, the current state of the cover is determined to be the closed state. When the cover moves in the closing direction and the second comparison result indicates that the last acquisition time is greater than the first preset value, it is determined that the current state of the cover is the same as the previously determined state. When the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is greater than or equal to the second preset value, the current state of the cover is determined to be the open state, wherein the first preset value is less than the second preset value; When the cover moves in the opening direction and the second comparison result indicates that the last acquisition time is less than the second preset value, it is determined that the current state of the cover is the same as the previously determined state.

5. The method according to claim 2, characterized in that, If all the first comparison results indicate that the later acquisition time is equal to the previous acquisition time, after determining that the cover is currently in a static state, the method further includes: Compare the last acquisition time with the preset value to obtain the third comparison result; If the third comparison result indicates that the last acquisition time is less than or equal to the first preset value, the current state of the cover is determined to be the closed state; If the third comparison result indicates that the last acquisition time is greater than or equal to the second preset value, the current state of the cover is determined to be the open state, wherein the first preset value is less than the second preset value; If the third comparison result indicates that the last acquisition time is less than the second preset value and greater than the first preset value, the current state of the cover is determined to be the same as the previously determined state.

6. The method according to claim 4 or claim 5, characterized in that, Before determining the state of the cover based on a set of the first comparison results, the method further includes: The temperature data of the target device is acquired, and the temperature range corresponding to the temperature data is determined. The frequency at which the second wireless module acquires the target data varies under different temperatures. When the temperature range corresponding to the temperature data is a first temperature range, a first preset value and a second preset value determined within the first temperature range are obtained; When the temperature range corresponding to the temperature data is a second temperature range, the first preset value and the second preset value determined within the second temperature range are obtained, wherein the lower limit of the second temperature range is equal to the upper limit of the first temperature range, the first preset value determined within the second temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is greater than the second preset value determined within the first temperature range. When the temperature range corresponding to the temperature data is a third temperature range, the first preset value and the second preset value determined within the third temperature range are obtained, wherein the upper limit of the third temperature range is equal to the lower limit of the first temperature range, the first preset value determined within the third temperature range is greater than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is greater than the second preset value determined within the first temperature range.

7. The method according to claim 6, characterized in that, Before determining the state of the cover based on a set of the first comparison results, the method further includes: Within the first temperature range, the acquisition time corresponding to multiple target data is obtained by the second wireless module in the closed state, and the average of the acquired acquisition time is calculated to obtain the first target time. The first preset value is determined based on the first target time. In the open state, the acquisition time corresponding to multiple target data is obtained by the second wireless module, and the average of the acquired acquisition time is calculated to obtain the second target time. The second preset value is determined based on the second target time. Within the second temperature range, the acquisition time corresponding to multiple target data is obtained by the second wireless module in the closed state, and the average of the obtained acquisition time is calculated to obtain a third target time. The first preset value is determined based on the third target time. In the open state, the acquisition time corresponding to multiple target data is obtained by the second wireless module, and the average of the obtained acquisition time is calculated to obtain a fourth target time. The second preset value is determined based on the fourth target time. Within the third temperature range, the acquisition time corresponding to multiple target data obtained by the second wireless module in the closed state is statistically analyzed, and the average of the acquired acquisition times is calculated to obtain a fifth target time. The first preset value is determined based on the fifth target time. In the open state, the acquisition time corresponding to multiple target data obtained by the second wireless module is statistically analyzed, and the average of the acquired acquisition times is calculated to obtain a sixth target time. The second preset value is determined based on the sixth target time.

8. A device for determining the status of equipment, characterized in that, include: The first acquisition unit is used to acquire target data sent by the first wireless module through the second wireless module, wherein the second wireless module is disposed on the main body of the target device and the first wireless module is disposed on the cover of the target device; The first statistical unit is used to count the acquisition time corresponding to each acquisition of the target data within a time period, wherein the acquisition time is the time interval between the current acquisition of the target data and the previous acquisition of the target data; The first comparison unit is used to compare the magnitude relationship between at least two acquisition times to obtain a set of first comparison results, wherein the set of first comparison results includes at least one first comparison result; The first determining unit is used to determine the state of the cover based on a set of the first comparison results. The state of the cover includes a moving state and a stationary state. The opening and closing state of the cover is determined by combining the moving state of the cover and the acquisition time of the last frame data.

9. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein when the program runs, it controls the device where the non-volatile storage medium is located to execute the device state determination method according to any one of claims 1 to 6.

10. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing computer-readable instructions, and the processor executing the computer-readable instructions, wherein the computer-readable instructions, when executed, perform the device state determination method according to any one of claims 1 to 7.