CN116406953A - Equipment state judging method and device, storage medium and electronic device - Google Patents

Equipment state judging method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116406953A
CN116406953A CN202111679713.1A CN202111679713A CN116406953A CN 116406953 A CN116406953 A CN 116406953A CN 202111679713 A CN202111679713 A CN 202111679713A CN 116406953 A CN116406953 A CN 116406953A
Authority
CN
China
Prior art keywords
preset value
determining
state
cover
temperature range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111679713.1A
Other languages
Chinese (zh)
Inventor
王赟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Original Assignee
Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd filed Critical Zhejiang Shaoxing Supor Domestic Electrical Appliance Co Ltd
Priority to CN202111679713.1A priority Critical patent/CN116406953A/en
Publication of CN116406953A publication Critical patent/CN116406953A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J36/00Parts, details or accessories of cooking-vessels
    • A47J36/06Lids or covers for cooking-vessels
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J36/00Parts, details or accessories of cooking-vessels
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J36/00Parts, details or accessories of cooking-vessels
    • A47J36/32Time-controlled igniting mechanisms or alarm devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Food Science & Technology (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Operations Research (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Algebra (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Electric Ovens (AREA)

Abstract

The application discloses a device state judging method and device, a storage medium and an electronic device. The method comprises the following steps: acquiring target data sent by a first wireless module through a second wireless module; respectively counting the acquisition times of corresponding target data under a plurality of same first time intervals in a time period; comparing the magnitude relation between at least two acquisition times to obtain a group of first comparison results; and determining the state of the cover body according to a group of first comparison results. Through the application, the problems that a complicated cover opening and closing detection mechanism needs to be arranged in the related technology to detect the state of the cover body of the cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate are solved.

Description

Equipment state judging method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of device status determination, and in particular, to a device status determination method, a device, a storage medium, and an electronic apparatus.
Background
In the process of cooking by using the cooking equipment, whether the cooking equipment can keep a normal operation state is related to whether a cooking task can be successfully completed or not, so that it is very important to accurately judge the operation state of the cooking equipment, wherein the judgment of the operation state of the cooking equipment comprises judgment of the state of a cover body of the cooking equipment, such as whether an upper cover is tightly covered, whether a side door is tightly closed or not, and the like, and the untimely and inaccurate judgment of the state of the cover body of the cooking equipment can influence the execution of the cooking task and even possibly cause accidents.
In the related art, the judging mode of the cooking equipment cover body state is as follows: the cover opening and closing detection mechanism is used for detecting the cover opening and closing, for example, the cover opening and closing detection mechanism comprising a magnetic spring switch is used for detecting the cover opening and closing, but the cover opening and closing detection mechanism is complex in structure, the service life of the equipment is too long, the ageing of the connecting structure can be caused, the accuracy of the cover opening and closing detection is affected, meanwhile, the traditional detection mode cannot judge whether the current state of the cover body is a moving state or a static state, for example, the cover body is subjected to the cover closing action at present, and therefore equipment cover body state judgment errors are generated.
Aiming at the problems that a complex cover opening and closing detection mechanism needs to be arranged in the related art to detect the state of the cover body of the cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate, no effective solution is proposed at present.
Disclosure of Invention
The application provides a judging method and device for equipment states, a storage medium and an electronic device, and aims to solve the problems that a complex cover opening and closing detection mechanism needs to be arranged in related technologies to detect the state of a cover body of cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate.
According to one aspect of the present application, a method for determining a status of a device is provided. The method comprises the following steps: acquiring target data sent by a first wireless module through a second wireless module, wherein the second wireless module is arranged on a main body of target equipment, and the first wireless module is arranged on a cover body of the target equipment; respectively counting the acquisition times of corresponding target data under a plurality of same first time intervals in a time period; comparing the magnitude relation between at least two acquisition times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one first comparison result; and determining the state of the cover body according to a group of first comparison results. That is, the number of times of acquiring the target data at the same time interval by comparing the second wireless module is compared to obtain a comparison result, and the state of the cover body is judged according to the comparison result, so that the effect of rapidly detecting the state of the cover body of the cooking equipment is achieved.
Optionally, determining the state of the cover according to the set of first comparison results includes: determining that the cover body is in a motion state currently under the condition that at least one first comparison result indicates that the last acquisition times are not equal to the previous acquisition times; and under the condition that the group of first comparison results indicate that the last acquisition times are equal to the previous acquisition times, determining that the cover body is in a static state currently. The acquired times are compared, so that the change condition of the acquired times is obtained, and the state of the cover body is judged according to the change condition, so that the accuracy of determining the current state of the cover body is improved.
Optionally, when at least one first comparison result indicates that the last acquisition time is not equal to the previous acquisition time, determining that the cover is currently in the motion state includes: determining that the cover body moves towards the cover closing direction under the condition that a group of first comparison results indicate that the later acquisition times are more than or equal to the former acquisition times; and under the condition that the group of first comparison results indicate that the later acquisition times are smaller than or equal to the former acquisition times, determining that the cover body moves towards the cover opening direction. By judging the movement state of the equipment cover body, a data foundation is laid for improving the accuracy of equipment cover body state judgment.
Optionally, after determining that the cover is currently in the motion state, if at least one first comparison result indicates that the last acquisition time is not equal to the previous acquisition time, the method further includes: comparing the magnitude relation between the last acquisition times and a preset value to obtain a second comparison result; under the condition that the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is greater than or equal to a first preset value, determining the current state of the cover body as the cover closing state; under the condition that the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is smaller than a first preset value, determining that the current state of the cover body is the same as the state determined in the previous time; under the condition that the cover body moves towards the cover opening direction and the second comparison result indicates that the last acquisition time is smaller than or equal to a second preset value, determining the current state of the cover body to be the cover opening state, wherein the first preset value is larger than the second preset value; and under the condition that the cover body moves towards the cover opening direction and the second comparison result indicates that the last acquisition time is larger than a second preset value, determining that the current state of the cover body is the same as the state determined in the last time. The opening and closing states of the cover body are determined by combining the movement state of the cover body of the equipment and the acquisition times of the last time interval, so that the effect of accurately determining the states of the cover body of the equipment is achieved.
Optionally, after determining that the cover is currently in the stationary state, if the set of first comparison results indicate that the last acquisition time is equal to the previous acquisition time, the method further includes: comparing the magnitude relation between the last acquisition times and a preset value to obtain a third comparison result; determining that the current state of the cover body is a cover closing state under the condition that the third comparison result indicates that the last acquisition time is greater than or equal to a first preset value; determining that the current state of the cover body is a cover opening state under the condition that the third comparison result indicates that the last acquisition time is smaller than or equal to a second preset value, wherein the first preset value is larger than the second preset value; and under the condition that the third comparison result indicates that the last acquisition time is smaller than the first preset value and larger than the second preset value, determining that the current state of the cover body is the same as the state determined in the last time. The opening and closing states of the cover body are determined by combining the movement state of the cover body of the equipment and the acquisition times of the last time interval, so that the effect of accurately determining the states of the cover body of the equipment is achieved.
Optionally, before determining the state of the cover according to the set of first comparison results, the method further comprises: acquiring temperature data of target equipment, and determining a temperature range corresponding to the temperature data, wherein the frequencies of acquiring the target data by the second wireless module are 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 in 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 which are determined in 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 in the second temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the second temperature range is smaller than the second preset value determined in the first temperature range; and when the temperature range corresponding to the temperature data is a third temperature range, acquiring a first preset value and a second preset value which are determined in 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 in the third temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the third temperature range is smaller than the second preset value determined in the first temperature range. By adjusting preset values at different temperatures, the effect of avoiding temperature from affecting the accuracy of judging the state of the cover body of the equipment is achieved.
Optionally, before determining the state of the cover according to the set of first comparison results, the method further comprises: in a first temperature range, counting the times of acquiring target data by a second wireless module in a cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a first target times, determining a first preset value according to the first target times, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a second target times, and determining a second preset value according to the second target times, wherein the second time intervals are the same as the first time intervals; in a second temperature range, counting the times of acquiring target data by a second wireless module in a cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a third target time, determining a first preset value according to the third target time, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a fourth target time, and determining a second preset value according to the fourth target time; in a third temperature range, counting the times of acquiring target data by the second wireless module in the cover-closing state in a plurality of same second time intervals, averaging the acquired times to obtain a fifth target times, determining a first preset value according to the fifth target times, counting the times of acquiring the target data by the second wireless module in the cover-closing state in a plurality of same second time intervals, averaging the acquired times to obtain a sixth target times, and determining a second preset value according to the sixth target times. The preset values at different temperatures are determined by calculating the average value of target data reception in a fixed time interval, so that the effect of improving the accuracy of determining the cover body state of the equipment is achieved.
According to another aspect of the present application, a device status determination apparatus is provided. The device comprises: the first acquisition unit is used for acquiring target data sent by the first wireless module through the second wireless module, wherein the second wireless module is arranged on the main body of the target equipment, and the first wireless module is arranged on the cover body of the target equipment; the first statistics unit is used for respectively counting the acquisition times of the corresponding target data under a plurality of same first time intervals in a time period; the first comparison unit is used for comparing the magnitude relation between at least two acquisition times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one first comparison result; and the first determining unit is used for determining the state of the cover body according to a group of first comparison results.
According to another aspect of the embodiment of the present invention, there is also provided a computer storage medium for storing a program, where the program controls an apparatus in which the computer storage medium is located to execute a method for determining an apparatus state when running.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device including a processor and a memory; the memory stores computer readable instructions, and the processor is configured to execute the computer readable instructions, where the computer readable instructions execute a method for determining a status of the device.
Through the application, the following steps are adopted: acquiring target data sent by a first wireless module through a second wireless module, wherein the second wireless module is arranged on a main body of target equipment, and the first wireless module is arranged on a cover body of the target equipment; respectively counting the acquisition times of corresponding target data under a plurality of same first time intervals in a time period; comparing the magnitude relation between at least two acquisition times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one first comparison result; the state of the cover body is determined according to a group of first comparison results, and the problems that a complex cover opening and closing detection mechanism needs to be arranged to detect the state of the cover body of the cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate in the related art are solved. The times of acquiring the target data at the same time interval are compared by the second wireless module to obtain a comparison result, and the state of the cover body is judged according to the comparison result, so that the effect of rapidly detecting the state of the cover body of the cooking equipment is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
Fig. 1 is a flowchart of a method for determining a device status according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of determining device status provided in accordance with an embodiment of the present application;
fig. 3 is a schematic diagram of a device for determining a device status according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the application, a method for judging a device state is provided.
Fig. 1 is a flowchart of a method for determining a device status according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S102, target data sent by a first wireless module is obtained through a second wireless module, wherein the second wireless module is arranged on a main body of target equipment, and the first wireless module is arranged on a cover body of the target equipment.
Specifically, the second wireless module may be a reader, specifically may be a sweep oscillator, and may be mounted on a main body of the target device, the first wireless module may be a transponder with a resonant frequency being a preset fixed value, the sweep oscillator and the transponder may use an RFID (Radio Frequency Identification radio frequency identification) technology to perform communication, the sweep oscillator may send radio frequency signals with frequencies within a certain range to the transponder through the inductor according to preset frequencies (for example, once every 200 ms), and when the resonant frequency of the radio frequency signals sent by the sweep oscillator is the same as the preset resonant frequency in the transponder, the sweep oscillator receives the target data signals sent by the transponder, so as to obtain the target data, thereby completing wireless acquisition of the target data.
Step S104, respectively counting the acquisition times of the corresponding target data under a plurality of same first time intervals in a time period.
Specifically, the selected time period may be any one continuous time period, and a fixed time interval may be set in the time period to count the number of times of obtaining the target data.
It should be noted that, since 5 frames of data may be received in 250ms in the normal covering state, a time period may be set to 1s, each first time interval is set to 250ms, 4 first time intervals T1 to T4 are obtained, T1 may be the first time interval in the time period, T4 may be the last time interval in the time period, and the number of times of acquiring the target data in each first time interval is counted, for example, T1 acquires 2 times of acquiring the target data, T2 acquires 3 times of acquiring the target data, T3 acquires 3 times of acquiring the target data, and T4 acquires 4 times of the target data.
Step S106, comparing the magnitude relation between at least two acquisition times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one first comparison result.
Specifically, after the number of times of obtaining the target data obtained in each first time interval is obtained, the number of times of obtaining corresponding to each first time interval may be compared, so that a first comparison result of the number of times of obtaining the target data may be obtained.
For example, in a period of time, T1 acquires 0 times of target data, T2 acquires 1 time of target data, T3 acquires 2 times of target data, and T4 acquires 3 times of target data, and the 4 times of acquisition may be compared to obtain a first comparison result, that is, a group of first delivery results only includes one first comparison result, and it can be seen from the first comparison result that the number of times of acquisition gradually increases; or comparing T1, T2 and T3, and comparing T2, T3 and T4 to obtain a group of first comparison results, wherein the obtained times are gradually increased as can be seen from the group of comparison results; it is also possible to compare T1 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. The present embodiment does not limit the number of acquisitions of the extraction and the manner of comparison of the number of acquisitions.
Step S108, determining the state of the cover body according to a group of first comparison results.
Specifically, after the comparison result of the acquisition times of the target data is acquired, the state of the cover body of the device may be judged according to the comparison result, for example, it is detected that T1 acquires 0 times of target data, T2 acquires 0 times of target data, T3 acquires 2 times of target data, and T4 acquires 5 times of target data, then the comparison between T3 and T1 may be performed, the comparison between T4 and T3 may be performed, the acquisition times may increase with the increase of time, and the maximum acquisition times may be 5 times, and then the current state may be judged as covering. For another example, if it is detected that T1 acquires 4 times of target data, T2 acquires 4 times of target data, T3 acquires 3 times of target data, and T4 acquires 1 time of target data, the current state may be determined to be the open cover by comparing T3 with T1, comparing T4 with T3, and decreasing the number of acquisitions with the increase of time, and the minimum number of acquisitions is 1 time.
According to the equipment state judging method, target data sent by the first wireless module are obtained through the second wireless module, wherein the second wireless module is arranged on the main body of target equipment, and the first wireless module is arranged on the cover body of the target equipment; respectively counting the acquisition times of corresponding target data under a plurality of same first time intervals in a time period; comparing the magnitude relation between at least two acquisition times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one first comparison result; the state of the cover body is determined according to a group of first comparison results, and the problems that a complex cover opening and closing detection mechanism needs to be arranged to detect the state of the cover body of the cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate in the related art are solved. The times of acquiring the target data at the same time interval are compared by the second wireless module to obtain a comparison result, and the state of the cover body is judged according to the comparison result, so that the effect of rapidly detecting the state of the cover body of the cooking equipment is achieved.
Optionally, in the method for determining a device state provided in the embodiment of the present application, determining the state of the cover according to a set of first comparison results includes: determining that the cover body is in a motion state currently under the condition that at least one first comparison result indicates that the last acquisition times are not equal to the previous acquisition times; and under the condition that the group of first comparison results indicate that the last acquisition times are equal to the previous acquisition times, determining that the cover body is in a static state currently.
It should be noted that, the first comparison result indicates that the last acquisition time is not equal to the previous acquisition time, which means that the content of the first comparison result is that the last acquisition time is not equal to the previous acquisition time, and the first comparison result indicates that the last acquisition time is equal to the previous acquisition time, which means that the content of the first comparison result is that the last acquisition time is equal to the previous acquisition time.
Specifically, when the distances between the cover and the device main body are different, the time required for data transmission between the sweep oscillator and the transponder is also different, and the number of times of receiving the target data by the sweep oscillator in the same time is also changed, so that the operation state of the cover can be judged according to the number of times of acquiring the target data by the sweep oscillator at a plurality of same time intervals in one time period.
For example, 3 identical time intervals T1 to T3 may be set within 1s, and it is detected that T1 acquires 1 time of target data, T2 acquires 1 time of target data, and T3 acquires 2 times of target data, where, since the times of the target data acquired by T1 and T2 are identical but different from T3, there is a first comparison result indicating that the latter acquisition times are not equal to the former acquisition times, it may be determined that the current cover is in a motion state; 4 identical time intervals T1-T4 can be set in 1s, 1 time of target data acquisition is detected by T1, 1 time of target data acquisition is detected by T2, 1 time of target data acquisition is detected by T3, 1 time of target data acquisition is detected by T4, 1 time of target data acquisition is detected by T1-T4, and as the times of target data acquisition are identical, a group of first comparison results indicate that the latter times of acquisition are equal to the former times of acquisition, and then the current cover body can be judged to be in a static state. According to the embodiment, the cover body state is judged according to the obtained change condition of the target data, so that the accuracy of determining the current state of the cover body is improved.
Optionally, in the method for determining a device state provided in the embodiment of the present application, when at least one first comparison result indicates that the number of times of the subsequent acquisition is not equal to the number of times of the previous acquisition, determining that the cover is currently in a motion state includes: determining that the cover body moves towards the cover closing direction under the condition that a group of first comparison results indicate that the later acquisition times are more than or equal to the former acquisition times; and under the condition that the group of first comparison results indicate that the later acquisition times are smaller than or equal to the former acquisition times, determining that the cover body moves towards the cover opening direction.
Specifically, when the acquisition times of the target data in two time intervals are different, the running direction of the equipment cover body can be judged according to the data change condition.
For example, 4 identical time intervals T1 to T4 may be set in 1s, T1 may be the first time interval in the time period, T4 may be the last time interval in the time period, it is detected that T1 acquires 1 time of target data, T2 acquires 1 time of target data, it is detected that T3 acquires 3 times of target data, and T4 acquires 3 times of target data, at this time, by comparison, since T1 is identical to T2, T3 is identical to T4, and T3 is different from T2, it may be determined that the cover is currently in a moving state, at this time, since T3 acquires 2 times more target data than T2, it may be determined that the current device is in a capping moving state; if it is detected that the target data is acquired for 4 times by the T1, the target data is acquired for 3 times by the T2, the target data is acquired for 1 time by the T3, and the acquisition times are decreased along with time by the T4, the current equipment can be judged to be in the uncapping motion state. According to the embodiment, the data foundation is laid for improving the accuracy of equipment cover body state judgment by judging the movement state of the equipment cover body.
Optionally, in the method for determining a device state provided in the embodiment of the present application, when at least one first comparison result indicates that the number of times of the subsequent acquisition is not equal to the number of times of the previous acquisition, after determining that the cover is currently in a motion state, the method further includes: comparing the magnitude relation between the last acquisition times and a preset value to obtain a second comparison result; under the condition that the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is greater than or equal to a first preset value, determining the current state of the cover body as the cover closing state; under the condition that the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is smaller than a first preset value, determining that the current state of the cover body is the same as the state determined in the previous time; under the condition that the cover body moves towards the cover opening direction and the second comparison result indicates that the last acquisition time is smaller than or equal to a second preset value, determining the current state of the cover body to be the cover opening state, wherein the first preset value is larger than the second preset value; and under the condition that the cover body moves towards the cover opening direction and the second comparison result indicates that the last acquisition time is larger than a second preset value, determining that the current state of the cover body is the same as the state determined in the last time.
Specifically, when at least one first comparison result indicates that the last acquired times are not equal to the previous acquired times, the current equipment cover state can be judged according to the movement direction and the magnitude relation between the last acquired times and a preset value, wherein the first preset value can be used for judging the cover state when the cover moves in the cover closing direction, and the second preset value can be used for judging the cover state when the cover moves in the cover opening direction.
For example, fig. 2 is a flowchart of an optional method for determining a device status according to an embodiment of the present application, as shown in fig. 2, a time interval between sending two frames of data may be set to 50ms, the number of times of acquiring a data frame may be counted every 250ms for one second, a first preset value may be 4, and a second preset value may be 2, where the system performs device cover status determination to obtain 4 data frame acquisition amounts 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. At this time, the magnitude relation among T1, T2, T3, T4 is judged, in the case where t1=t2 < T3< T4, the apparatus cover is judged to be in the closed lid movement state, and in the case where t4=5, the apparatus cover is judged to be in the current lid opening state, and in the case where t4=3, the current state of the cover is judged to be the same as the state determined previously; in the case of t1=t2 > T3> T4, the apparatus cover is judged to be in the closed-cover movement state, and in the case of t4=0, the apparatus cover is judged to be in the closed-cover state at present, and in the case of t4=3, the present state of the cover is judged to be the same as the state determined previously. The embodiment combines the movement state of the equipment cover body and the acquisition times of the last time interval to determine the opening and closing state of the cover body, thereby achieving the effect of accurately determining the state of the equipment cover body.
Optionally, in the method for determining a device state provided in the embodiment of the present application, after determining that the cover is currently in the stationary state when the set of first comparison results indicate that the number of times of the last acquisition is equal to the number of times of the previous acquisition, the method further includes: comparing the magnitude relation between the last acquisition times and a preset value to obtain a third comparison result; determining that the current state of the cover body is a cover closing state under the condition that the third comparison result indicates that the last acquisition time is greater than or equal to a first preset value; determining that the current state of the cover body is a cover opening state under the condition that the third comparison result indicates that the last acquisition time is smaller than or equal to a second preset value, wherein the first preset value is larger than the second preset value; and under the condition that the third comparison result indicates that the last acquisition time is smaller than the first preset value and larger than the second preset value, determining that the current state of the cover body is the same as the state determined in the last time.
Specifically, when at least one first comparison result indicates that the last acquired times are equal to the previous acquired times, the current equipment cover body state can be judged according to the magnitude relation between the last acquired times and the preset value, wherein the first preset value can be used for judging whether the cover body is in a cover closing state or not, and the second preset value can be used for judging whether the cover body is in a cover opening state or not.
For example, the time interval between each two frames of data sent may be set to be 50ms, the number of times of acquiring the data frames may be counted every 250ms, for one second, the first preset value may be 4, the second preset value may be 2, at this time, the system performs device cover status judgment to obtain 4 data frame acquiring amounts 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. At this time, the magnitude relation among T1, T2, T3, T4 is determined, and in the case of t1=t2=t3=t4, the apparatus cover is determined to be in a stationary state, and in the case of t4=4, the apparatus cover is determined to be in a current cover-opening state, and in the case of t4=2, the apparatus cover is determined to be in a current cover-closing state; in the case of t4=3, the current state of the cover is determined to be the same as the state determined previously. The embodiment combines the movement state of the equipment cover body and the acquisition times of the last time interval to determine the opening and closing state of the cover body, thereby achieving the effect of accurately determining the state of the equipment cover body.
Optionally, in the method for determining a device state provided in the embodiment of the present application, before determining a state of the cover according to a set of first comparison results, the method further includes: acquiring temperature data of target equipment, and determining a temperature range corresponding to the temperature data, wherein the frequencies of acquiring the target data by the second wireless module are 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 in 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 which are determined in 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 in the second temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the second temperature range is smaller than the second preset value determined in the first temperature range; and when the temperature range corresponding to the temperature data is a third temperature range, acquiring a first preset value and a second preset value which are determined in 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 in the third temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the third temperature range is smaller than the second preset value determined in the first temperature range.
Specifically, since the resonance capacitance value of the resonance circuit changes under the condition of different temperatures, the passing frequency may be changed, and the chip sweep time is different, the quantity of the target data acquired in the preset statistical time period may change due to the temperature, so that an error occurs in judging the cover opening and closing state of the target equipment. Therefore, the first preset value and the second preset value need to be correspondingly adjusted according to different temperatures, so that the error caused by detection errors due to temperature factors is eliminated, and the cover opening and closing state of the target equipment is judged erroneously.
For example, the first temperature range may be a normal temperature environment, the temperature range may be set to-5 ℃ to 70 ℃, the second temperature range may be a high temperature environment, the temperature range may be set to greater than 75 ℃, the third temperature range may be a low temperature environment, the temperature range may be set to less than-5 ℃, the first preset value may be 4, and the second preset value may be 2 under the normal temperature environment; under 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 may be 3 and the second preset value may be 1.
It should be noted that when the temperature is at the critical value of the two temperature environments, the current environment needs to be determined as an abnormal temperature environment, and the first preset value and the second preset value are adjusted accordingly, for example, when the current temperature is-5 ℃, the current low temperature state is judged, at this time, the first preset value may be 4, the second preset value may be 2, when the current temperature is 70 ℃, the current high temperature state is judged, at this time, the first preset value may be 3, the second preset value may be 0, and by adjusting the preset values at different temperatures, the effect of avoiding the temperature from affecting the accuracy of judging the state of the cover body of the device is achieved.
Optionally, in the method for determining a device state provided in the embodiment of the present application, before determining a state of the cover according to a set of first comparison results, the method further includes: in a first temperature range, counting the times of acquiring target data by a second wireless module in a cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a first target times, determining a first preset value according to the first target times, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a second target times, and determining a second preset value according to the second target times, wherein the second time intervals are the same as the first time intervals; in a second temperature range, counting the times of acquiring target data by a second wireless module in a cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a third target time, determining a first preset value according to the third target time, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a fourth target time, and determining a second preset value according to the fourth target time; in a third temperature range, counting the times of acquiring target data by the second wireless module in the cover-closing state in a plurality of same second time intervals, averaging the acquired times to obtain a fifth target times, determining a first preset value according to the fifth target times, counting the times of acquiring the target data by the second wireless module in the cover-closing state in a plurality of same second time intervals, averaging the acquired times to obtain a sixth target times, and determining a second preset value according to the sixth target times.
Specifically, in order to better determine the first preset value and the second preset value at different temperatures, the device may be tested at the corresponding temperatures, so as to obtain the first preset value and the second preset value at different temperatures. For example, the apparatus may be placed in an environment of 50 ℃ and the state of the apparatus may be set to a closed state, at which time the reception of the target data is started and the number of times the target data is acquired in a plurality of second time intervals is determined, and average calculation is performed, so that the average value is set to a preset value when the apparatus is closed in an environment of normal temperature, thereby obtaining a first preset value in an environment of normal temperature, and at the same time, the state of the apparatus may be set to an open state, and the above operations may be repeated, thereby obtaining a second preset value in an environment of normal temperature. In addition, the apparatus may be placed in a high-temperature and low-temperature environment, thereby obtaining a first preset value and a second preset value in the high-temperature environment and the low-temperature environment. According to the method and the device, the preset values at different temperatures are determined by calculating the average value of target data reception in a fixed time interval, so that the effect of improving the accuracy of determining the state of the cover body of the device is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a device for judging the device state, and it should be noted that the device for judging the device state in the embodiment of the application can be used for executing the method for judging the device state provided in the embodiment of the application. The following describes a device for determining a device state provided in an embodiment of the present application.
Fig. 3 is a schematic diagram of a device for determining a device status according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: the first acquisition unit 31, the first statistics unit 32, the first comparison unit 33, the first determination unit 34.
Specifically, the first obtaining unit 31 is configured to obtain, through a second wireless module, target data sent by a first wireless module, where the second wireless module is disposed on a main body of the target device, and the first wireless module is disposed on a cover of the target device;
a first statistics unit 32, configured to respectively count the number of times of acquiring the corresponding target data at a plurality of identical first time intervals in a time period;
A first comparing unit 33, configured to compare magnitude relationships between at least two acquisition times to obtain a set of first comparison results, where the set of first comparison results includes at least one first comparison result;
the first determining unit 34 is configured to determine a state of the cover according to a set of first comparison results.
According to the device for judging the equipment state, the first obtaining unit 31 obtains target data sent by the first wireless module through the second wireless module, wherein the second wireless module is arranged on the main body of the target equipment, and the first wireless module is arranged on the cover body of the target equipment; the first statistics unit 32 counts the number of times of acquiring the corresponding target data at a plurality of identical first time intervals in a time period; a first comparing unit 33, configured to compare magnitude relationships between at least two acquisition times to obtain a set of first comparison results, where the set of first comparison results includes at least one first comparison result; the first determining unit 34 determines the state of the cover according to a set of first comparison results. The problems that a complex cover opening and closing detection mechanism needs to be arranged to detect the state of the cover body of the cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate in the related art are solved. The times of acquiring the target data at the same time interval are compared by the second wireless module to obtain a comparison result, and the state of the cover body is judged according to the comparison result, so that the effect of rapidly detecting the state of the cover body of the cooking equipment is achieved.
Optionally, in the device for determining a device state provided in the embodiment of the present application, the first determining unit 34 includes: the first determining module is used for determining that the cover body is in a motion state currently under the condition that at least one first comparison result indicates that the last acquisition times are not equal to the previous acquisition times; and the second determining module is used for determining that the cover body is in a static state currently under the condition that the group of first comparison results indicate that the last acquisition times are equal to the previous acquisition times.
Optionally, in the device for determining a device state provided in the embodiment of the present application, the first determining module includes: the first sub-determining module is used for determining that the cover body moves towards the cover closing direction under the condition that a group of first comparison results indicate that the last acquisition times are more than or equal to the previous acquisition times; and the second sub-determining module is used for determining that the cover body moves towards the direction of uncovering under the condition that a group of first comparison results indicate that the last acquisition times are smaller than or equal to the previous acquisition times.
Optionally, in the device for determining a device state provided in the embodiment of the present application, the device further includes: the second comparison unit is used for comparing the magnitude relation between the last acquisition times and the preset value to obtain a second comparison result; the second determining unit is used for determining that the current state of the cover body is a cover closing state under the condition that the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is larger than or equal to a first preset value; the third determining unit is used for determining that the current state of the cover body is the same as the state determined in the previous time when the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is smaller than the first preset value; a fourth determining unit, configured to determine, when the cover moves in the direction of opening the cover and the second comparison result indicates that the last acquisition time is less than or equal to a second preset value, that the current state of the cover is an open-cover state, where the first preset value is greater than the second preset value; and a fifth determining unit, configured to determine that the current state of the cover is the same as the state determined in the previous time when the cover moves in the direction of opening the cover and the second comparison result indicates that the last acquisition time is greater than a second preset value.
Optionally, in the device for determining a device state provided in the embodiment of the present application, the device further includes: the third comparison unit is used for comparing the magnitude relation between the last acquisition times and the preset value to obtain a third comparison result; a sixth determining unit, configured 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 greater than or equal to the first preset value; a seventh determining unit, configured to determine, when the third comparison result indicates that the last acquisition time is less than or equal to a second preset value, that the current state of the cover is an uncapped state, where the first preset value is greater than the second preset value; and an eighth determining unit, configured to determine that the current state of the cover is the same as the state determined in the previous time, when the third comparison result indicates that the last acquisition time is smaller than the first preset value and larger than the second preset value.
Optionally, in the device for determining a device state provided in the embodiment of the present application, the device further includes: the second acquisition unit is used for acquiring temperature data of the target equipment and determining a temperature range corresponding to the temperature data, wherein the frequencies of acquiring the target data by the second wireless module are different at different temperatures; the third acquisition unit is used for acquiring a first preset value and a second preset value determined in the first temperature range when the temperature range corresponding to the temperature data is the first temperature range; a fourth obtaining unit, configured to obtain, when a temperature range corresponding to the temperature data is a second temperature range, a first preset value and a second preset value determined in the second temperature range, where a lower limit of the second temperature range is equal to an upper limit of the first temperature range, the first preset value determined in the second temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the second temperature range is smaller than the second preset value determined in the first temperature range; and a fifth obtaining unit, configured to obtain, when the temperature range corresponding to the temperature data is a third temperature range, a first preset value and a second preset value determined in the third temperature range, where an upper limit of the third temperature range is equal to a lower limit of the first temperature range, the first preset value determined in the third temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the third temperature range is smaller than the second preset value determined in the first temperature range.
Optionally, in the device for determining a device state provided in the embodiment of the present application, the device further includes: the second statistics unit is used for counting the times of acquiring target data by the second wireless module in a plurality of same second time intervals in a cover-closed state in a first temperature range, averaging the acquired times to obtain a first target times, determining a first preset value according to the first target times, counting the times of acquiring the target data by the second wireless module in the same second time intervals in the cover-closed state, averaging the acquired times to obtain a second target times, and determining a second preset value according to the second target times, wherein the second time intervals are the same as the first time intervals; the third statistics unit is used for counting the times of acquiring target data by the second wireless module in a plurality of same second time intervals in a cover-closed state in a second temperature range, averaging the acquired times to obtain a third target time, determining a first preset value according to the third target time, counting the times of acquiring the target data by the second wireless module in the same second time intervals in the cover-closed state, averaging the acquired times to obtain a fourth target time, and determining a second preset value according to the fourth target time; the fourth statistics unit is used for counting the times of acquiring target data by the second wireless module in a plurality of same second time intervals in the cover-closed state in a third temperature range, averaging the acquired times to obtain a fifth target times, determining a first preset value according to the fifth target times, counting the times of acquiring the target data by the second wireless module in the same second time intervals in the cover-closed state, averaging the acquired times to obtain a sixth target times, and determining a second preset value according to the sixth target times.
The device state judging apparatus includes a processor and a memory, the first acquiring unit 31, the first calculating unit 32, the first comparing unit 33, the first determining unit 34, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The inner core can be provided with one or more than one, and the problems that a complex cover opening and closing detection mechanism needs to be arranged to detect the state of the cover body of the cooking equipment and the detection result of the state of the cover body of the cooking equipment is inaccurate in the related technology are solved by adjusting the parameters of the inner core.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application also provides a computer storage medium, which is used for storing the program, wherein the program is used for controlling the equipment where the computer storage medium is located to execute a judging method of the equipment state when running.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory; the memory stores computer readable instructions, and the processor is configured to execute the computer readable instructions, where the computer readable instructions execute a method for determining a status of the device. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method for determining a status of a device, comprising:
acquiring target data sent by a first wireless module through a second wireless module, wherein the second wireless module is arranged on a main body of target equipment, and the first wireless module is arranged on a cover body of the target equipment;
respectively counting the acquisition times of the corresponding target data under a plurality of same first time intervals in a time period;
comparing the magnitude relation between at least two acquired times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one first comparison result;
and determining the state of the cover body according to a group of first comparison results.
2. The method of claim 1, wherein determining the state of the cover based on a set of the first comparison results comprises:
Determining that the cover body is in a motion state currently under the condition that at least one first comparison result indicates that the last acquisition times are not equal to the previous acquisition times;
and under the condition that a group of first comparison results indicate that the last acquisition times are equal to the previous acquisition times, determining that the cover body is in a static state currently.
3. The method of claim 2, wherein determining that the cover is currently in motion if there is at least one of the first comparison results indicating that a subsequent acquisition time is not equal to a previous acquisition time comprises:
determining that the cover body moves towards the cover closing direction under the condition that a group of first comparison results indicate that the last acquisition times are more than or equal to the previous acquisition times;
and under the condition that a group of first comparison results indicate that the last acquisition times are smaller than or equal to the previous acquisition times, determining that the cover body moves towards the cover opening direction.
4. The method of claim 2, wherein, in the event that at least one of the first comparison results indicates that a subsequent acquisition time is not equal to a previous acquisition time, the method further comprises, after determining that the cover is currently in motion:
Comparing the magnitude relation between the last acquisition times and a preset value to obtain a second comparison result;
determining that the current state of the cover body is a cover closing state under the condition that the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is larger than or equal to a first preset value;
when the cover body moves towards the cover closing direction and the second comparison result indicates that the last acquisition time is smaller than the first preset value, determining that the current state of the cover body is the same as the state determined in the previous time;
determining that the current state of the cover body is a cover opening state under the condition that the cover body moves towards the cover opening direction and the second comparison result indicates that the last acquisition time is smaller than or equal to a second preset value, wherein the first preset value is larger than the second preset value;
and under the condition that the cover body moves towards the cover opening direction and the second comparison result indicates that the last acquisition time is larger 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.
5. The method of claim 2, wherein, in a case where a set of the first comparison results each indicate that a subsequent acquisition count is equal to a previous acquisition count, the method further comprises, after determining that the cover is currently in a stationary state:
Comparing the magnitude relation between the last acquisition times and a preset value to obtain a third comparison result;
determining that the current state of the cover body is a cover closing state under the condition that the third comparison result indicates that the last acquisition time is greater than or equal to a first preset value;
determining that the current state of the cover body is an uncovering state under the condition that the third comparison result indicates that the last acquisition time is smaller than or equal to a second preset value, wherein the first preset value is larger than the second preset value;
and under the condition that the third comparison result indicates that the last acquisition time is smaller than the first preset value and larger than the second preset value, determining that the current state of the cover body is the same as the state determined in the last time.
6. The method of claim 4 or claim 5, wherein prior to determining the state of the cover from a set of the first comparison results, the method further comprises:
acquiring temperature data of the target equipment, and determining a temperature range corresponding to the temperature data, wherein the frequencies of acquiring the target data by the second wireless module are different at different temperatures;
When the temperature range corresponding to the temperature data is a first temperature range, acquiring the first preset value and the second preset value determined in the first temperature range;
when the temperature range corresponding to the temperature data is a second temperature range, acquiring the first preset value and the second preset value determined in 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 in the second temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the second temperature range is smaller than the second preset value determined in the first temperature range;
and when the temperature range corresponding to the temperature data is a third temperature range, acquiring the first preset value and the second preset value determined in 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 in the third temperature range is smaller than the first preset value determined in the first temperature range, and the second preset value determined in the third temperature range is smaller than the second preset value determined in the first temperature range.
7. The method of claim 6, wherein prior to determining the state of the cover based on a set of the first comparison results, the method further comprises:
in the first temperature range, counting the times of acquiring the target data by the second wireless module in the cover-closed state in a plurality of same second time intervals, averaging the acquired times to obtain a first target times, determining the first preset value according to the first target times, counting the times of acquiring the target data by the second wireless module in the cover-closed state in a plurality of same second time intervals, averaging the acquired times to obtain a second target times, determining the second preset value according to the second target times, wherein the second time intervals are the same as the first time intervals;
in the second temperature range, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a third target times, determining the first preset value according to the third target times, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a fourth target times, and determining the second preset value according to the fourth target times;
In the third temperature range, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a fifth target times, determining the first preset value according to the fifth target times, counting the times of acquiring the target data by the second wireless module in the cover closing state in a plurality of same second time intervals, averaging the acquired times to obtain a sixth target times, and determining the second preset value according to the sixth target times.
8. A device for determining a status of an apparatus, comprising:
the first acquisition unit is used for acquiring target data sent by a first wireless module through a second wireless module, wherein the second wireless module is arranged on a main body of target equipment, and the first wireless module is arranged on a cover body of the target equipment;
the first statistics unit is used for respectively counting the acquisition times of the corresponding target data under a plurality of same first time intervals in a time period;
the first comparison unit is used for comparing the magnitude relation between at least two acquired times to obtain a group of first comparison results, wherein the group of first comparison results at least comprises one comparison result;
And the first determining unit is used for determining the state of the cover body according to a group of first comparison results.
9. A nonvolatile storage medium for storing a program, wherein the program, when executed, controls a device in which the nonvolatile storage medium is located to execute the device state judging method according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, wherein the memory has stored therein computer readable instructions for executing the computer readable instructions, wherein the computer readable instructions when executed perform the method for determining the status of the device of any one of claims 1 to 7.
CN202111679713.1A 2021-12-31 2021-12-31 Equipment state judging method and device, storage medium and electronic device Pending CN116406953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111679713.1A CN116406953A (en) 2021-12-31 2021-12-31 Equipment state judging method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111679713.1A CN116406953A (en) 2021-12-31 2021-12-31 Equipment state judging method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116406953A true CN116406953A (en) 2023-07-11

Family

ID=87058580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111679713.1A Pending CN116406953A (en) 2021-12-31 2021-12-31 Equipment state judging method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116406953A (en)

Similar Documents

Publication Publication Date Title
CN105045713A (en) Data processing method and mobile terminal
CN110601900A (en) Network fault early warning method and device
US11366137B2 (en) Temperature compensation method for SAR sensor of terminal, and terminal
CN110874932A (en) Method, device and system for identifying number of axles
CN114326676B (en) Intrusion detection method and device, storage medium and electronic equipment
CN113189664B (en) Object placing state detection method and device
CN116406953A (en) Equipment state judging method and device, storage medium and electronic device
CN116406952A (en) Equipment state judging method and device, storage medium and electronic device
CN107438268B (en) Method and device for accelerating wireless network for mobile device
CN110753369B (en) Method and device for detecting interrupt cell
CN109580049B (en) Pressure detection method and device for remote controller keys
CN114747948B (en) Method and system for judging equipment state, storage medium and electronic device
CN107623526B (en) A kind of method and communication terminal adjusting antenna receiving sensitivity
CN111181957A (en) Internet of things equipment security verification method and system and central control equipment
US8483621B2 (en) Radio frequency interference sensing system and method
CN107888457B (en) Port packet loss detection method and device and communication equipment
JP6319521B1 (en) Interference detection device
CN115951824A (en) Sampling data processing method, device and nonvolatile storage medium
CN114809856A (en) Method and equipment for determining motion state of electric control door during opening and closing
CN112882854B (en) Method and device for processing request exception
EP3445131B1 (en) Frequency band steering of stations in a wireless network
CN115081562A (en) Method and device for judging equipment state, storage medium and electronic device
CN115242269B (en) Device communication method, device communication apparatus, storage medium, and electronic apparatus
CN117579491A (en) Method and device for processing network card and storage medium thereof
CN106209266B (en) A kind of control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination