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

By setting wireless modules on the main body and lid of the cooking device, and counting and comparing the number of times target data is acquired, the problem of complex and inaccurate lid status detection in the prior art is solved, and fast and accurate lid status judgment is achieved.

CN116406953BActive Publication Date: 2026-07-31ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
View PDF 3 Cites 0 Cited by

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-31

AI Technical Summary

Technical Problem

Existing methods for judging 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, which can easily lead to misjudgments.

Method used

By setting wireless modules on the main body and cover of the device respectively, the number of times the target data is acquired is counted and the magnitude of the data is compared. Based on the comparison results, the state of the cover is determined, including both moving and stationary states.

Benefits of technology

It enables rapid and accurate detection of the cooking equipment lid's condition, avoiding misjudgments caused by complex mechanisms and improving the accuracy and efficiency of judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116406953B_ABST
    Figure CN116406953B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, storage medium, and electronic device for determining the state of a device. The method includes: acquiring target data transmitted by a first wireless module via a second wireless module; counting the number of times the target data was acquired within multiple identical first time intervals over a period of time; comparing the magnitude of at least two acquisition counts to obtain a set of first comparison results; and determining the state of the lid based on the set of first comparison results. This application solves the problem in related technologies where complex opening and closing lid detection mechanisms are required to detect the state of the cooking device lid, and the detection results are inaccurate.
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, counting the number of times the target data is acquired corresponding to multiple identical first time intervals; comparing the magnitude relationship between at least two acquisition counts 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 number of times the second wireless module acquires target data in the same time interval, obtaining comparison results, and determining the state of the cover based on the comparison results, the method achieves 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 count is not equal to the previous acquisition count, determining that the cover is currently in motion; if all first comparison results indicate that the subsequent acquisition count is equal to the previous acquisition count, determining that the cover is currently in a stationary state. By comparing the acquisition counts, the changes in the acquisition counts 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 count is not equal to the previous acquisition count includes: determining that the cover is moving in the closing direction when a set of first comparison results all indicate that the subsequent acquisition count is greater than or equal to the previous acquisition count; and determining that the cover is moving in the opening direction when a set of first comparison results all indicate that the subsequent acquisition count is less than or equal to the previous acquisition count. 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 number of acquisitions in the subsequent acquisition is not equal to the number of acquisitions in the previous acquisition, the method further includes: comparing the magnitude relationship between the last acquisition count 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 count is greater 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 count is less than or equal to 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 count is less than or equal to the second preset value, wherein the first preset value is greater 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 count is greater than the second preset value. By combining the movement state of the cover and the number of acquisitions in the last time interval to determine the open / closed state of the cover, the method achieves the effect of accurately determining the state of the cover.

[0010] Optionally, after determining that the cover is currently stationary when all first comparison results indicate that the subsequent acquisition count is equal to the previous acquisition count, the method further includes: comparing the last acquisition count with 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 count is greater 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 count is less than or equal to the second preset value, wherein the first preset value is greater 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 count is less than the first preset value and greater than the second preset value. By combining the movement state of the device cover and the acquisition count of the last time interval to determine the open / closed state of the cover, the method achieves the effect of accurately determining the 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is less 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is less 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, counting the number of times the second wireless module acquires target data within multiple identical second time intervals in the covered state, and averaging the acquired counts to obtain a first target count; determining a first preset value based on the first target count; counting the number of times the second wireless module acquires target data within multiple identical second time intervals in the open state, and averaging the acquired counts to obtain a second target count; determining a second preset value based on the second target count, wherein the second time interval is the same as the first time interval; within a second temperature range, counting the number of times the second wireless module acquires target data within multiple identical second time intervals in the covered state, and averaging the acquired counts to obtain a second target count; determining a second preset value based on the second target count, wherein the second time interval is the same as the first time interval; The average of the three target counts is calculated to obtain the third target count. A first preset value is determined based on this third target count. Then, the average of the number of times the second wireless module acquires target data within multiple identical second time intervals in the open-cover state is calculated to obtain the fourth target count. A second preset value is determined based on this fourth target count. Within the third temperature range, the average of the number of times the second wireless module acquires target data within multiple identical second time intervals in the closed-cover state is calculated to obtain the fifth target count. A first preset value is determined based on this fifth target count. Similarly, the average of the number of times the second wireless module acquires target data within multiple identical second time intervals in the open-cover state is calculated to obtain the sixth target count. A second preset value is determined based on this sixth target count. By calculating the average value of the target data received within fixed time intervals, 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 number of times the target data is acquired under multiple identical first time intervals within a time period; a first comparison unit, configured to compare the magnitude relationship between at least two acquisition counts 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 number of times the target data is acquired is counted for multiple identical first time intervals; the relationship between at least two acquisition counts 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 where a complex opening and closing cover detection mechanism is required to detect the state of the cooking device cover, and the detection results are inaccurate. By comparing the number of times the second wireless module acquires target data in the same time interval, 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 device status determination method provided 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, count the number of times the target data is acquired under multiple identical first time intervals.

[0029] Specifically, the selected time period can be any consecutive time period, and a fixed time interval can be set within that time period to count the number of times the target data is obtained.

[0030] It should be noted that since 5 frames of data can be received in 250ms under normal cover conditions, a time period can be set to 1s, and each first time interval can be set to 250ms, resulting in 4 first time intervals T1 to T4. T1 can be the first time interval within the time period, and T4 can be the last time interval within the time period. The number of times the target data is acquired in each first time interval is counted. For example, T1 acquires the target data 2 times, T2 acquires the target data 3 times, T3 acquires the target data 3 times, and T4 acquires the target data 4 times.

[0031] Step S106: Compare the size relationship between at least two acquisition counts 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 obtaining the number of times the target data was acquired in each first time interval, the acquisition counts corresponding to each first time interval can be compared to obtain the first comparison result of the number of times the target data was acquired.

[0033] For example, within a time period, T1 acquires 0 pieces of target data, T2 acquires 1 piece of target data, T3 acquires 2 pieces of target data, and T4 acquires 3 pieces of target data. The four acquisition counts 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 number of acquisitions 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 number of acquisitions 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 number of acquisitions gradually increases. This embodiment does not limit the number of acquisitions extracted or the method of comparing the acquisition counts.

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

[0035] Specifically, after comparing the number of times the target data was acquired, the device cover status can be determined based on the comparison results. For example, if it is detected that T1 acquired 0 target data times, T2 acquired 0 target data times, T3 acquired 2 target data times, and T4 acquired 5 target data times, then by comparing T3 with T1 and T4 with T3, and noting that the number of acquisitions increases over time with a maximum of 5 acquisitions, the current status can be determined as closed. As another example, if it is detected that T1 acquired 4 target data times, T2 acquired 4 target data times, T3 acquired 3 target data times, and T4 acquired 1 target data time, then by comparing T3 with T1 and T4 with T3, and noting that the number of acquisitions decreases over time with a minimum of 1 acquisition, the current status can be determined as open.

[0036] 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 number of times the target data is acquired is counted for multiple identical first time intervals. The relationship between at least two acquisition counts is compared to obtain a set of first comparison results, wherein at least one first comparison result is included in the set of first comparison results. The status of the cover is determined based on the 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 number of times the second wireless module acquires target data in the same time interval, 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.

[0037] 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: determining that the cover is currently in motion when at least one first comparison result indicates that the subsequent acquisition count is not equal to the previous acquisition count; and determining that the cover is currently in a stationary state when all of a set of first comparison results indicate that the subsequent acquisition count is equal to the previous acquisition count.

[0038] It should be noted that if the first comparison result indicates that the number of times the next acquisition is not equal to the number of times the previous acquisition is, it means that the content of the first comparison result is that the number of times the next acquisition is not equal to the number of times the previous acquisition is. If the first comparison result indicates that the number of times the next acquisition is equal to the number of times the previous acquisition is, it means that the content of the first comparison result is that the number of times the next acquisition is equal to the number of times the previous acquisition is.

[0039] Specifically, the time required for data transmission between the sweep frequency oscillator and the transponder varies depending on the distance between the cover and the main body of the equipment. This results in a change in the number of times the sweep frequency oscillator receives the target data within the same time period. Therefore, the operating status of the cover can be determined based on the number of times the sweep frequency oscillator acquires the target data at multiple identical time intervals within a given time period.

[0040] For example, three identical time intervals T1 to T3 can be set within 1 second. If target data is acquired once in T1, once in T2, and twice in T3, since the number of times the target data is acquired in T1 and T2 is the same but different from that in T3, a first comparison result indicates that the number of times the target data is acquired in the later acquisition is not equal to the number of times the target data is acquired in the earlier acquisition. Therefore, it can be determined that the current cover is in motion. Alternatively, four identical time intervals T1 to T4 can be set within 1 second. If target data is acquired once in T1, once in T2, once in T3, and once in T4, since the number of times the target data is acquired in T1 to T4 is the same, a set of first comparison results all indicate that the number of times the target data is acquired in the later acquisition is equal to the number of times the target data is acquired in the earlier acquisition. Therefore, it can be determined that the current cover is in a stationary state. This embodiment improves the accuracy of determining the current state of the cover by observing the changes in the acquired target data and judging the state of the cover based on these changes.

[0041] Optionally, in the device state determination method provided in the embodiments of this application, determining that the cover is currently in motion when at least one first comparison result indicates that the number of subsequent acquisitions is not equal to the number of previous acquisitions includes: determining that the cover is moving in the closing direction when a set of first comparison results all indicate that the number of subsequent acquisitions is greater than or equal to the number of previous acquisitions; and determining that the cover is moving in the opening direction when a set of first comparison results all indicate that the number of subsequent acquisitions is less than or equal to the number of previous acquisitions.

[0042] Specifically, if the number of times the target data is acquired differs between two time intervals, the direction of the equipment cover's movement can be determined based on the data changes.

[0043] For example, four identical time intervals T1 to T4 can be set within 1 second, where T1 can be the first time interval and T4 can be the last time interval. If T1 acquires target data once, T2 acquires target data once, T3 acquires target data three times, and T4 acquires target data three times, then by comparison, since T1 and T2 are the same, T3 and T4 are the same, and T3 is different from T2, it can be determined that the cover is currently in motion. Since T3 acquires target data two more times than T2, it can be determined that the device is currently in a closed state. If T1 acquires target data four times, T2 acquires target data three times, T3 acquires target data once, and T4 acquires target data once, then the number of acquisitions decreases over time, and it can be determined that the device is currently in a closed state. This embodiment lays a data foundation for improving the accuracy of device cover status determination by judging the movement state of the device cover.

[0044] Optionally, in the device state determination method provided in the embodiments of this application, after determining that the cover is currently in a moving state when at least one first comparison result indicates that the number of acquisitions is not equal to the number of acquisitions previously, the method further includes: comparing the magnitude relationship between the last acquisition count 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 count is greater 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 count is less 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 count is less than or equal to the second preset value, wherein the first preset value is greater 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 count is greater than the second preset value.

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

[0046] 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 time interval between every two frames of data transmission can be set to 50 ms first, and the number of data frames obtained is counted every 250 ms for one second. The first preset value can be 4, and the second preset value can be 2. At this time, the system judges the state of the device cover body, and obtains the number of data frame acquisitions T1 to T4. Among them, T1 is the number obtained within the first time interval, and T4 is the number obtained within the last time interval. At this time, judge the magnitude relationship among T1, T2, T3, and T4. When T1 = T2 < T3 < T4, it is judged that the device cover body is in the state of closing the cover. And when T4 = 5, it is judged that the device cover body is currently in the state of opening the cover. When T4 = 3, it is judged that the current state of the cover body is the same as the state determined in the previous time. When T1 = T2 > T3 > T4, it is judged that the device cover body is in the state of closing the cover. And when T4 = 0, it is judged that the device cover body is currently in the state of closing the cover. When T4 = 3, it is judged that the current state of the cover body is the same as the state determined in the previous time. In this embodiment, the opening and closing state of the cover body is determined by combining the motion state of the device cover body and the number of acquisitions in the last time interval, achieving the effect of accurately determining the state of the device cover body.

[0047] Optionally, in the method for judging the device state provided in the embodiment of the present application, after determining that the cover body is currently in a stationary state when a set of first comparison results all indicate that the number of acquisitions in the later time is equal to the number of acquisitions in the previous time, the method further includes: comparing the size relationship between the number of acquisitions in the last time and the preset value to obtain a third comparison result; when the third comparison result indicates that the number of acquisitions in the last time is greater than or equal to the first preset value, determining that the current state of the cover body is the state of closing the cover; when the third comparison result indicates that the number of acquisitions in the last time is less than or equal to the second preset value, determining that the current state of the cover body is the state of opening the cover, where the first preset value is greater than the second preset value; when the third comparison result indicates that the number of acquisitions in the last time is less than the first preset value and greater than the second preset value, determining that the current state of the cover body is the same as the state determined in the previous time.

[0048] Specifically, when there is at least one first comparison result indicating that the number of acquisitions in the later time is equal to the number of acquisitions in the previous time, the current state of the device cover body can be judged according to the size relationship between the number of acquisitions in the last time and the preset value. Among them, the first preset value can be used to judge whether the cover body is in the state of closing the cover, and the second preset value can be used to judge whether the cover body is in the state of opening the cover.

[0049] For example, the time interval between sending two data frames can be set to 50ms. The number of data frame acquisitions is counted every 250ms for one second. The first preset value can be 4, and the second preset value can be 2. At this time, the system determines the device cover state, obtaining four data frame acquisition quantities T1 to T4, where T1 is the number acquired in the first time interval, and T4 is the number acquired in the last time interval. Then, the relationship between T1, T2, T3, and T4 is determined. If T1 = T2 = T3 = T4, the device cover is determined to be stationary; if T4 = 4, the device cover is determined to be open; if T4 = 2, the device cover is determined to be closed; and if T4 = 3, the current state of the cover is determined to be the same as the previously determined state. This embodiment combines the device cover's movement state and the number of acquisitions in the last time interval to determine the open / closed state of the cover, achieving an accurate determination of the device cover state.

[0050] 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is less 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is less than the second preset value determined within the first temperature range.

[0051] 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 can affect the amount of target data acquired within a preset statistical time period, potentially leading 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.

[0052] For example, the first temperature range can be a normal temperature environment, and the temperature range can be set to -5℃ to 70℃; the second temperature range can be a high temperature environment, and the temperature range can be set to greater than 75℃; the third temperature range can be a low temperature environment, and the temperature range can be set to less than -5℃. In a normal temperature environment, the first preset value can be 4 and the second preset value can be 2; in a high temperature environment, the first preset value can be 3 and the second preset value can be 0; in a low temperature environment, the first preset value can be 3 and the second preset value can be 1.

[0053] It should be noted that when the temperature is at the critical value 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, when the current temperature is -5℃, it is determined to be a low temperature state, and the first preset value can be 4 and the second preset value can be 2. When the current temperature is 70℃, it is determined to be a high temperature state, and the first preset value can be 3 and the second preset value can be 0. This embodiment achieves the effect of avoiding the influence of temperature on the accuracy of the determination of the device cover state by adjusting the preset values ​​at different temperatures.

[0054] 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, counting the number of times the second wireless module acquires target data within multiple identical second time intervals in the closed state, and averaging the acquired number to obtain a first target number; determining a first preset value based on the first target number; counting the number of times the second wireless module acquires target data within multiple identical second time intervals in the open state, and averaging the acquired number to obtain a second target number; determining a second preset value based on the second target number, wherein the second time interval is the same as the first time interval; within a second temperature range, counting the number of times the second wireless module acquires target data within multiple identical second time intervals in the closed state. The number of times the second wireless module acquires target data in the open state within multiple identical second time intervals is counted, and the average of these counts is calculated to obtain the third target count. A first preset value is determined based on the third target count. The number of times the second wireless module acquires target data in the open state within multiple identical second time intervals is counted, and the average of these counts is calculated to obtain the fourth target count. A second preset value is determined based on the fourth target count. Within the third temperature range, the number of times the second wireless module acquires target data in the closed state within multiple identical second time intervals is counted, and the average of these counts is calculated to obtain the fifth target count. A first preset value is determined based on the fifth target count. The number of times the second wireless module acquires target data in the open state within multiple identical second time intervals is counted, and the average of these counts is calculated to obtain the sixth target count. A second preset value is determined based on the sixth target count.

[0055] 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 point, target data is received, and the number of times the target data is acquired in multiple second time intervals is determined. The average value is then calculated and 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 can be repeated to obtain the second preset value under normal temperature conditions. Furthermore, the device can be placed in high-temperature and low-temperature environments to obtain the first and second preset values ​​under high-temperature 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.

[0056] 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.

[0057] 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.

[0058] Figure 3 This is a schematic diagram of a device for determining the state of an object 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.

[0059] Specifically, 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.

[0060] The first statistical unit 32 is used to count the number of times the target data is acquired under multiple identical first time intervals within a time period.

[0061] The first comparison unit 33 is used to compare the size 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;

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

[0063] The device status determination apparatus provided in this application embodiment acquires target data sent by a first wireless module via a second wireless module through a first acquisition unit 31. 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 number of times the target data is acquired under multiple identical first time intervals within a time period. A first comparison unit 33 compares the magnitude relationship between at least two acquisition counts to obtain a set of first comparison results, wherein at least one first comparison result is included in the set of first comparison results. 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 where a complex opening and closing lid detection mechanism is required to detect the status of the cooking device cover, and the detection results are inaccurate. By comparing the number of times the second wireless module acquires target data in the same time interval, 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.

[0064] 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 number of subsequent acquisitions is not equal to the number of previous acquisitions; 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 number of subsequent acquisitions is equal to the number of previous acquisitions.

[0065] 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 closing direction when a set of first comparison results all indicate that the subsequent acquisition count is greater than or equal to the previous acquisition count; and a second 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 subsequent acquisition count is less than or equal to the previous acquisition count.

[0066] 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 count 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 count is greater 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 count is less 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 count is less than or equal to a second preset value, wherein the first preset value is greater 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 count is greater than the second preset value.

[0067] 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 size relationship between the last acquisition count 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 count is greater 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 count is less than or equal to a second preset value, wherein the first preset value is greater 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 count is less than the first preset value and greater than the second preset value.

[0068] Optionally, in the device state determination apparatus provided in the embodiments of this application, the apparatus 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is less 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is less than the second preset value determined within the first temperature range.

[0069] 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, count the number of times the second wireless module acquires target data in a closed state within multiple identical second time intervals, and average the acquired counts to obtain a first target count, and determine a first preset value based on the first target count; and to, within an open state, count the number of times the second wireless module acquires target data in a closed state within multiple identical second time intervals, and average the acquired counts to obtain a second target count, and determine a second preset value based on the second target count, wherein the second time interval is the same as the first time interval; and a third statistical unit, configured to, within a second temperature range, count the number of times the second wireless module acquires target data in a closed state within multiple identical second time intervals, and average the acquired counts to obtain a second target count, and determine a second preset value based on the second target count, wherein the second time interval is the same as the first time interval; The average of the obtained counts yields the third target count. A first preset value is determined based on the third target count. The number of times the second wireless module acquires target data in multiple identical second time intervals while the cover is open is counted, and the average of these counts is calculated to obtain the fourth target count. A second preset value is determined based on the fourth target count. The fourth statistical unit is used to count the number of times the second wireless module acquires target data in multiple identical second time intervals while the cover is closed within a third temperature range, and the average of these counts is calculated to obtain the fifth target count. A first preset value is determined based on the fifth target count. The number of times the second wireless module acquires target data in multiple identical second time intervals while the cover is open is counted, and the average of these counts is calculated to obtain the sixth target count. A second preset value is determined based on the sixth target count.

[0070] 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.

[0071] 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.

[0072] 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.

[0073] 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.

[0074] 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.

[0075] 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.

[0076] 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.

[0077] 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.

[0078] 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.

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

[0080] Memory may include non-persistent 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. Memory is an example of computer-readable media.

[0081] 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.

[0082] 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.

[0083] 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 of determining a state of a device, characterized by, 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 time period, the number of times the target data was acquired under multiple identical first time intervals is counted. By comparing the magnitude relationship between at least two acquisition counts, a first comparison result is obtained, wherein the first comparison result includes at least one first comparison result; Determining the state of the cover based on a set of the first comparison results includes: determining the current state of the cover as closed when the last acquisition count is greater than or equal to a first preset value, and determining the current state of the cover as open when the last acquisition count is less than or equal to a second preset value, wherein the first preset value is greater than the second preset value. Before determining the state of the cover based on a set of first comparison results, the temperature data of the target device is acquired, and the temperature range corresponding to the temperature data is determined, wherein the frequency at which the second wireless module acquires the target data is different at different temperatures; the first preset value and the second preset value determined within the temperature range corresponding to the temperature data are acquired.

2. The method of claim 1, wherein, 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 number of acquisitions in the subsequent acquisition is not equal to the number of acquisitions in the previous acquisition, it is determined that the cover is currently in motion. If all the first comparison results in a set indicate that the number of acquisitions in the latter case is equal to the number of acquisitions in the former case, it is determined that the cover is currently in a static state.

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

4. The method of claim 2, wherein, If at least one of the first comparison results indicates that the subsequent acquisition count is not equal to the previous acquisition count, after determining that the cover is currently in motion, the method further includes: Compare the last number of acquisitions 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 count is greater 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 count is less than the first preset value, it is determined that the current state of the cover is the same as the state determined in the previous acquisition. When the cover moves in the opening direction and the second comparison result indicates that the last acquisition count is less 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 greater than the second preset value; When the cover moves in the opening direction and the second comparison result indicates that the last acquisition count is greater 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 of claim 2, wherein, If all the first comparison results in a set indicate that the subsequent acquisition count is equal to the previous acquisition count, after determining that the cover is currently in a static state, the method further includes: Compare the last number of acquisitions with the preset value to obtain the third comparison result; If the third comparison result indicates that the last acquisition count is greater 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 count is less 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 greater than the second preset value; If the third comparison result indicates that the last acquisition count is less than the first preset value and greater than the second preset value, the current state of the cover is determined to be the same as the previously determined state.

6. The method of claim 4 or claim 5, wherein, 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, the first preset value and the 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the second temperature range is less 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 less than the first preset value determined within the first temperature range, and the second preset value determined within the third temperature range is less than the second preset value determined within the first temperature range.

7. The method of claim 6, wherein, 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 number of times the second wireless module acquires the target data within multiple identical second time intervals in the closed state is counted, and the average of the acquired counts is calculated to obtain a first target count. The first preset value is determined based on the first target count. The number of times the second wireless module acquires the target data within multiple identical second time intervals in the open state is counted, and the average of the acquired counts is calculated to obtain a second target count. The second preset value is determined based on the second target count. The second time interval is the same as the first time interval. Within the second temperature range, the number of times the second wireless module acquires the target data within multiple identical second time intervals in the closed state is counted, and the average of the acquired counts is calculated to obtain a third target count. The first preset value is determined based on the third target count. The number of times the second wireless module acquires the target data within multiple identical second time intervals in the open state is counted, and the average of the acquired counts is calculated to obtain a fourth target count. The second preset value is determined based on the fourth target count. Within the third temperature range, the number of times the second wireless module acquires the target data within multiple identical second time intervals in the closed state is counted, and the average of the acquired counts is calculated to obtain a fifth target count. The first preset value is determined based on the fifth target count. The number of times the second wireless module acquires the target data within multiple identical second time intervals in the open state is counted, and the average of the acquired counts is calculated to obtain a sixth target count. The second preset value is determined based on the sixth target count.

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 number of times the target data is acquired under multiple identical first time intervals within a time period. The first comparison unit is used to compare the size 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 of the comparison results; The first determining unit is configured to determine the state of the cover based on a set of first comparison results, including: determining the current state of the cover as closed when the last acquisition count is greater than or equal to a first preset value, and determining the current state of the cover as open when the last acquisition count is less than or equal to a second preset value, wherein the first preset value is greater than the second preset value. The second acquisition unit is configured to acquire temperature data of the target device and determine the temperature range corresponding to the temperature data before determining the state of the cover based on a set of first comparison results, wherein the second wireless module acquires the target data at different frequencies under different temperatures; and acquire the first preset value and the second preset value determined within the temperature range corresponding to the temperature data.

9. A non-volatile storage medium, comprising: The non-volatile storage medium is used to store a 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 7.

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.