Equipment state detection method and device, electronic equipment and storage medium
By establishing a communication connection between a direct module between the cloud server and the target device, the device status is judged in real time, and the problem of power failure in the prior art is solved, and high-precision and high-real-time device status detection is achieved.
Patent Information
- Application Number
- CN202311699427.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2025-06-13
AI Technical Summary
The existing technology cannot detect power outages in time after the smart device is powered off. It is necessary to wait until the equipment is powered on and then determine whether the power is off.
By establishing a communication connection between the direct-connected module between the cloud server and the target device, it is judged in real time whether the direct-connected module can send device status information normally, thereby determining whether there is an abnormal condition in the device.
Real-time status detection of smart devices is realized, and the abnormal status of the equipment can be identified in a timely manner, the detection accuracy and real-time nature are improved, and the impact of interference from other external factors is eliminated.
Smart Images

Figure CN120151685A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent detection, and particularly to a method and device for detecting the state of a device, an electronic device, and a storage medium. Background Art
[0002] With the continuous development of technology, the popularity of intelligent devices in production and life is also getting higher and higher. Detecting the abnormal state of intelligent devices is a prerequisite for maintaining the normal order of production and life. Taking an intelligent refrigerator as an example, through its own refrigeration process operation, the intelligent refrigerator can keep the food stored inside it fresh or refrigerated for a long time. However, along with this, the intelligent refrigerator has extremely high power supply requirements. Once the intelligent refrigerator encounters a power outage, its heat preservation function will fail, and a long-term power outage will even cause the food to deteriorate and rot. Therefore, it is very important to detect the abnormal state of the intelligent refrigerator, including power outages.
[0003] Currently, the methods for detecting the abnormalities of intelligent devices mainly focus on the power outage detection of intelligent devices. For example, by storing the time information of the intelligent device during the power-on period, if the detected interval between two adjacent stored time information is too long, it can be determined that the intelligent device has experienced a power outage.
[0004] However, the above-mentioned power outage detection method for intelligent devices needs to store time information in the power-on state, and it is necessary to wait until the time information is stored again after the power is restored to determine whether the intelligent device has experienced a power outage.
[0005] Therefore, based on the principle of the existing detection method, the power outage situation can only be detected after the device's power outage is restored, and it is impossible to detect it in time after the device's power outage. Summary of the Invention
[0006] The present invention provides a method and device for detecting the state of a device to solve the defect in the prior art that the abnormal state of the device cannot be detected in time by analyzing adjacent stored time information.
[0007] In a first aspect, the present invention provides a method for detecting the state of a device, which is applied to a cloud server and includes:
[0008] In the case that the device status information of the target device sent by the target direct connection module is not received within a first preset duration, determining that the status of the target device is abnormal;
[0009] The target direct connection module is a communication device directly connected between the target device and the operator's base station.
[0010] According to the method for detecting the state of a device provided by the present invention, the step of determining that the status of the target device is abnormal in the case that the device status information of the target device sent by the target direct connection module is not received within a first preset duration includes:
[0011] In the case that the device status information of the target device is not received within any sampling period, use the any sampling period as the start time of the first preset duration;
[0012] Determine whether the device status information sent by the target direct connection module is received again within the first preset duration;
[0013] If the device status information is not received, determine that the status of the target device is abnormal;
[0014] Otherwise, determine that the status of the target device is normal.
[0015] According to a device status detection method provided by the present invention, in the case that the status of the target device is determined to be abnormal, it further includes:
[0016] Obtain the network connection status of other devices in the same power supply area as the target device;
[0017] If the proportion of all other devices with the network connection status being offline is greater than the first preset threshold, determine that the abnormal type of the target device is power failure;
[0018] Send a power failure warning notification to the user terminal bound to the target device.
[0019] According to a device status detection method provided by the present invention, if the proportion is less than or equal to the first preset threshold, perform the following steps:
[0020] Continue to search until the device status information of the target device sent by the target direct connection module is obtained within the second preset duration;
[0021] Determine the acquisition time point when the device status information is obtained, and calculate the duration between the start time and the acquisition time point as the power failure duration information of the target device when a power failure occurs;
[0022] Send a power failure recovery notification to the user terminal, and the power failure recovery notification carries the power failure duration information.
[0023] According to a device status detection method provided by the present invention, if the device status information is not obtained within the second preset duration, determine that the abnormal type of the target device is a device failure of the target direct connection module;
[0024] Send a device failure notification to the user terminal, and the device failure notification carries the device failure of the target direct connection module.
[0025] According to a device status detection method provided by the present invention, when continuing to search until the device status information of the target device sent by the target direct connection module is obtained within a second preset duration, it further includes:
[0026] Determine the position change of the target device according to the device status information and the historical device status information received before any sampling period;
[0027] If the position change is greater than a second preset threshold, determine that the power-off is a planned power-off;
[0028] Otherwise, determine that the power-off is an abnormal power-off.
[0029] According to a device status detection method provided by the present invention, the determining the position change of the target device according to the device status information and the historical device status information received before any sampling period includes:
[0030] Obtain the current device position information and / or the current signal strength information included in the device status information; the current signal strength information is determined based on the signal strength of the real-time communication between the target direct connection module and the operator base station;
[0031] Obtain the historical device position information and / or the historical signal strength information included in the historical device status information;
[0032] Determine the position change of the target device according to the current device position information and the historical device position information;
[0033] And / or, determine the position change of the target device according to the current signal strength information and the historical signal strength information.
[0034] In a second aspect, the present invention further provides a device status detection method, which is applied to a target device and includes:
[0035] Control the target direct connection module of itself to send device status information to the cloud server at a preset frequency, so that the cloud server can judge whether the status of the target device is abnormal according to whether the device status information is received within a first preset duration;
[0036] The target direct connection module is a communication device directly connected to an operator base station.
[0037] In a third aspect, the present invention provides a device status detection device, which is integrated in a cloud server and includes a processor and a timer;
[0038] The processor is configured to perform the following operations: when the device status information of the target device sent by the target direct connection module is not received within a first preset duration, determine that the status of the target device is abnormal;
[0039] The first preset duration is collected by the processor controlling the timer, and the target direct connection module is a communication device directly connected between the target device and the operator's base station.
[0040] According to a device status detection device provided by the present invention, the target device is a refrigerator.
[0041] In a fourth aspect, the present invention provides a computer program including a memory, a processor, and stored on the memory and executable on the processor. When the processor executes the computer program, it implements any one of the above device status detection methods.
[0042] In a fifth aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, it implements any one of the above device status detection methods.
[0043] The device status detection method, device, electronic device, and storage medium provided by the present invention can, by establishing a communication connection between the cloud server and the direct connection module of the device itself, determine in real time through the cloud server whether the direct connection module can normally send device status information, and further determine whether there is an abnormal condition of the device, facilitating the timely detection of the abnormal state of the device, effectively excluding the interference of other external factors on the judgment of the abnormal condition of the device, with higher judgment accuracy and stronger real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 is one of the flowcharts of the device status detection method provided by the present invention;
[0046] Figure 2 is another flowchart of the device status detection method provided by the present invention;
[0047] Figure 3 is one of the flowcharts of the method for detecting the abnormal type of the device provided by the present invention;
[0048] Figure 4It is the second flow chart diagram of the method for detecting abnormal types of the detection device provided by the present invention;
[0049] Figure 5 It is the first flow chart diagram of the method for detecting power-off types provided by the present invention;
[0050] Figure 6 It is the second flow chart diagram of the method for detecting power-off types provided by the present invention;
[0051] Figure 7 It is the third flow chart diagram of the device status detection method provided by the present invention;
[0052] Figure 8 It is the structural diagram of the device status detection device provided by the present invention;
[0053] Figure 9 It is the structural diagram of the electronic device provided by the present invention. Detailed implementation manners
[0054] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts shall fall within the protection scope of the present invention.
[0055] It should be noted that in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element. The orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation of the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0056] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0057] The following will describe Figures 1-9 the device status detection method and device provided by the embodiments of the present invention.
[0058] Figure 1 is one of the flow diagrams of the device status detection method provided by the present invention. As Figure 1 shown, the device status detection method provided by the present invention can be applied to a cloud server or other remote servers, including but not limited to the following steps:
[0059] In the case where the device status information of the target device sent by the target direct connection module is not received within the first preset duration, determine that the status of the target device is abnormal;
[0060] The target direct connection module is a communication device directly connected between the target device and the operator's base station.
[0061] It should be emphasized that in the device status detection method provided by the present invention, the target device involved can be either indoor or outdoor, and can be either in the living field or in the production field. For example, it can be a refrigerator, a washing machine, a water heater, a car, etc.
[0062] For the sake of convenience of description, subsequent embodiments will be described with the target device being a refrigerator, which is not regarded as a specific limitation on the protection scope of the present invention.
[0063] In this embodiment, a target direct connection module directly connected to the operator's base station is integrally provided in the target device, that is, the target direct connection module is powered by the power supply of the target device.
[0064] Specifically, the target direct connection module can be a communication device using mobile communication technologies such as 3G, 4G, 5G, etc., and the embodiments of the present invention do not limit this.
[0065] In this embodiment, the device status information of the target device refers to the information generated during the operation of the target device, and its quantity, type, content, etc. are not limited. The device status information of the target device can be sent to the cloud server through the target direct connection module.
[0066] Optionally, the device information of the target device includes, but is not limited to, the base station signal strength information received by the target direct connection module, the GPS positioning information of the target device, and so on.
[0067] For another example, when the target device is a refrigerator, the device information of the target device includes, but is not limited to, the refrigerator temperature, the operating modes of the freezer and / or the refrigerator compartment, the refrigerator door switch state, and so on.
[0068] It should be noted that assuming the execution subject of the device status detection method provided by the present invention is a cloud server, specifically, it can be a cloud server created based on virtualization technology on a cloud platform, or a cloud server created on a dedicated physical server. The embodiments of the present invention do not limit this.
[0069] Specifically, after the target device is powered on, the target direct connection module on the target device starts and establishes a direct connection with the network operator's base station, thereby connecting to the cloud server. The target device controls its target direct connection module to send device status information to the cloud server at a preset frequency, so that the cloud server can receive the device status information of the target device sent by the target direct connection module on time.
[0070] If the target device sends information continuously on time, the cloud server can continuously receive the information, indicating that the target device has been maintaining a good and normal operating state.
[0071] If the cloud server does not receive the device status information of the target device sent by the target direct connection module within the first preset duration, that is, it indicates that the target direct connection module cannot send the device status information of the target device on time, then it indicates that the target device is in an abnormal state.
[0072] Among them, the first preset duration can be set manually, or can be determined comprehensively according to factors such as the types, models, and historical working states of the target device and the cloud server.
[0073] For example, if the first preset duration is set to 10 minutes, and the cloud server cannot receive the device status information of the target device sent by the target direct connection module within 10 minutes, then it indicates that the target device is in an abnormal state.
[0074] For another example, if the abnormal type of the target device is power off, then both the target device and the target direct connection module cannot work properly. At this time, the target device cannot generate device status information, resulting in the target direct connection module being unable to send the device status information to the cloud server within the first preset duration. At this time, the cloud server can judge that the target device is in an abnormal state based on this.
[0075] As an optional embodiment, a timer is set in the cloud server to time the first preset duration.
[0076] The device status detection method provided by the present invention can, by establishing a communication connection between the cloud server and the direct connection module of the device itself, determine in real time through the cloud server whether the direct connection module can normally send device status information, and further determine whether the device has an abnormal condition, facilitating the timely detection of the abnormal status of the device, effectively eliminating the interference of other external factors on the judgment of the abnormal condition of the device, and having higher judgment accuracy and stronger real-time performance.
[0077] Based on the content of the above embodiment, Figure 2 is the second flow schematic diagram of the device status detection method provided by the present invention. As shown in Figure 2 As an optional embodiment, in the case that the device status information of the target device sent by the target direct connection module is not received within the first preset duration, determining that the status of the target device is abnormal includes but is not limited to the following steps:
[0078] In the case that the device status information of the target device is not received within any sampling period, using the any sampling period as the start time of the first preset duration;
[0079] Judging whether the device status information sent by the target direct connection module is received again within the first preset duration;
[0080] If the device status information is not received, determining that the status of the target device is abnormal;
[0081] Otherwise, determining that the status of the target device is normal.
[0082] Specifically, after the target device is powered on, the target direct connection module cyclically sends the device status information of the target device to the cloud server according to the sampling period. In any sampling period, if the cloud server does not receive the device status information of the target device, then using this sampling period as the start time of the first preset duration to start calculating the first preset duration.
[0083] If within the first preset duration, the cloud server receives the device status information of the target device, determining that the status of the target device is normal. Therefore, the fact that the cloud server did not receive the device status information of the target device in the previous sampling period is caused by accidental factors such as network congestion and signal interference.
[0084] If the cloud server still does not receive the device status information of the target device after the first preset duration has elapsed, it is determined that the status of the target device is abnormal. At this time, the reason why the cloud server fails to receive the device status information is not due to accidental factors such as network congestion or signal interference, but a fault that cannot be self-recovered has occurred, such as the target device being in a power-off state, or the target direct connection module malfunctioning, etc.
[0085] In this embodiment, the sampling period can be set manually or determined comprehensively according to factors such as the types, models, and historical working status of the target device and the cloud server.
[0086] For example, the sampling period can be set to 3 seconds, 5 seconds, etc.
[0087] As an optional embodiment, since the sampling period is generally relatively short, any time point in the sampling period can be used as the start time of the first preset duration to calculate the first preset duration. For example, the end time point of the sampling period is used as the start time of the first preset duration.
[0088] It should be noted that the first preset duration is greater than the sampling period.
[0089] In one embodiment, the sampling period is set to 5 seconds and the first preset duration is set to 10 minutes. In any sampling period, if the cloud server does not receive the device status information of the target device, the control timer starts timing.
[0090] After the timer has counted up to 10 minutes, if the cloud server still has not received the device status information of the target device again, the cloud server will determine that the status of the target device is abnormal.
[0091] As another optional embodiment, the cloud server can also determine whether the status of the target device is normal according to the ratio between the number of device status information actually received within the first preset duration (denoted as the first device status information number) and the number of device status information that should theoretically be received (denoted as the second device status information number).
[0092] After the cloud server starts the control timing, it counts the device status information received within 10 minutes.
[0093] If the ratio between the first device status information number and the second device status information number is greater than the preset ratio threshold of the number of times, it is inferred that the target direct connection module is normal.
[0094] If the ratio between the quantity of the first device status information and the quantity of the second device status information is less than or equal to a preset ratio threshold of the number of times, it is inferred that the target direct connection module has a fault. Generally speaking, the reason for this may be due to the fault of the target direct connection module itself.
[0095] For example, assume that the ratio threshold of the number of times is 95% and the quantity of the first device status information is 120. If the quantity of the second device status information is less than or equal to 114 times, it can be inferred that the target direct connection module has a fault, and generally it can be determined that it is the fault of the target direct connection module itself.
[0096] The device status detection method provided by the present invention can, according to the device status information received by the cloud server within the first preset time period, timely learn whether the direct connection module can send information normally, so as to judge whether the target device and / or the target direct connection module has a fault that cannot be self-recovered, with higher judgment accuracy and stronger timeliness.
[0097] Based on the content of the above embodiments, Figure 3 is one of the flow schematic diagrams of the method for detecting the abnormal type of the device provided by the present invention. As Figure 3 shown, as an optional embodiment, when it is determined that the status of the target device is abnormal, it further includes:
[0098] Obtain the network connection status of other devices in the same power supply area as the target device;
[0099] If the proportion of the network connection status of all other devices being in the offline state is greater than the first preset threshold, determine that the abnormal type of the target device is power off;
[0100] Send a power-off alarm notification to the user terminal bound to the target device.
[0101] Specifically, when it is determined that the status of the target device is abnormal, the cloud server collects the network connection status of other devices in the same power supply area as the target device, and counts the network connection status of all other devices, so as to obtain the proportion of the network connection status of all other devices being in the offline state. The cloud server compares the proportion of the network connection status of all other devices being in the offline state with the first preset threshold. If the proportion is greater than the first preset threshold, it indicates that a power outage has occurred in the same power supply area, resulting in the device being in a power-off state, and determine that the abnormal type of the target device is power off. The cloud server sends a notification to the user terminal bound to the target device, and the content of the notification is the power-off alarm of the target device, so as to inform the user that the target device is in a power-off state.
[0102] Among them, the same power supply area refers to the area that provides power consumption services with the same time and same quality by the same power supply institution. For example, the same power supply area can be a certain family, a certain building, a certain community, a certain street, etc.
[0103] Among them, other devices within the same power supply area refer to network-connected devices that receive power consumption services with the same time and same quality as the target device within the same family, building, community or street.
[0104] Among them, the first preset threshold can be set manually or determined comprehensively according to factors such as the types, models, and historical working states of the target device and the cloud server.
[0105] For example, the first preset threshold can be set to 80%, 85%, etc.
[0106] The user terminal involved in the embodiments of the present invention refers to a device that provides voice and / or data connectivity to users, and can be a handheld device with a wireless connection function, or other processing devices connected to a wireless modem, such as a mobile phone, a mobile computer, etc. In different systems, the name of the user terminal may also be different. For example, in a 5G system, the user terminal can be called a user equipment (UE).
[0107] In some embodiments, the number of user terminals bound to the target device can be one or multiple.
[0108] It should be noted that before collecting and counting the network connection status of other devices within the same power supply area as the target device, the present invention embodiments first obtain the authorization of the user for operations such as collecting and counting network connection status information.
[0109] For example, when the user of other devices binds the target device and the user terminal on the user terminal, the user terminal will pop up a message box or jump to the relevant interface of the system settings, request the user for authorization of operations such as collecting and counting network connection status information, and provide explanations such as the content and risks of the authorization. After the user fully understands the content and risks of the authorization and performs the corresponding authorization operation, the present invention embodiments will provide services to the user and perform operations such as collecting and counting network connection status information.
[0110] The present invention effectively and accurately determines that the abnormal type of the target device is power-off when the proportion of the offline status of all other devices in the network connection status is greater than the first preset threshold by detecting the off-line and on-line consistency of other devices within the same power supply area as the target device, thereby screening out the situation where the abnormal type of the target device is power-off, and informing the user that the target device is in a power-off state.
[0111] Based on the content of the above embodiments, Figure 4This is the second flowchart diagram of the method for detecting abnormal types of the detection device provided by the present invention. As shown in Figure 4 If the ratio is less than or equal to the first preset threshold, as an optional embodiment, the following steps are executed:
[0112] Continue to search until the device status information of the target device sent by the target direct connection module is obtained within the second preset duration;
[0113] Determine the acquisition time point when the device status information is obtained, and calculate the duration between the start time and the acquisition time point as the power-off duration information of the target device when a power-off occurs;
[0114] Send a power-off recovery notification to the user terminal, and the power-off recovery notification carries the power-off duration information.
[0115] Specifically, the cloud server compares the ratio of the network connection status of all other devices being in the offline state with the first preset threshold. After determining that the ratio is less than or equal to the first preset threshold, the cloud server will continue to search and maintain a state where it can receive the device status information of the target device sent by the target direct connection module until the second preset duration has elapsed.
[0116] If the cloud server obtains the device status information sent by the target direct connection module within the second preset duration, it collects the acquisition time point when it obtains the device status information, calculates the duration between the start time and the acquisition time point, and takes this duration as the power-off duration information of the target device when a power-off occurs. Then, the cloud server sends a power-off recovery notification to the user terminal bound to the target device, and the notification content carries the power-off duration information of the target device.
[0117] Since the cloud server can re-obtain the device status information of the target device within the second preset duration, it indicates that the target device has resumed power supply after a power-off. Therefore, for the abnormal state where the cloud server cannot obtain the device status information within the first preset duration, the situation where the target device or the target direct connection module itself has a fault can be excluded.
[0118] Among them, the second preset duration can be set manually or determined comprehensively according to factors such as the type, model, and historical working status of the target device and the cloud server.
[0119] For example, the second preset duration can be set to 1 hour, 6 hours, etc.
[0120] As an optional embodiment, when the cloud server sends a power-off recovery notification carrying the power-off duration information to the user terminal bound to the target device, it also informs the user that there is no fault with the target device itself.
[0121] As an alternative embodiment, if the target device is a refrigerator, when the cloud server sends a power failure recovery notice carrying the power failure duration information to the user terminal bound to the refrigerator, it also reminds the user to pay attention to whether the ingredients stored in the refrigerator are normal and not rotten.
[0122] The present invention determines that the power failure has been restored by setting a second preset duration and judging based on the result that the cloud server re-obtains the device status information of the target device sent by the target direct connection module within the second preset duration, thereby excluding the situation where the abnormal type is a failure of the target device or the target direct connection module itself, and timely notifying the user that the power failure of the target device has been restored.
[0123] Based on the content of the above embodiment, as an alternative embodiment, it includes but is not limited to the following steps: If the device status information is not obtained within the second preset duration, it is determined that the abnormal type of the target device is a device failure of the target direct connection module;
[0124] Send a device failure notice to the user terminal, and the device failure notice carries the device failure of the target direct connection module.
[0125] Specifically, after the second preset duration, if the cloud server fails to re-obtain the device status information, it can be determined that the abnormal type of the target device is a device failure of the target direct connection module, rather than the target device being in a power-off state. Then, the cloud server sends a device failure notice to the user terminal bound to the target device, where the device failure notice carries information reminding the user that a device failure has occurred in the target direct connection module.
[0126] In this embodiment, first, the cloud server fails to obtain the device status information of the target device within the first preset duration, indicating that the target device and the target direct connection module have suffered a failure that cannot be self-recovered; second, the cloud server detects that the proportion of other devices in the same power supply area with an offline network status is less than or equal to the first preset threshold, indicating that the failure that cannot be self-recovered by the target device and the target direct connection module is not caused by a power failure of the target device due to a power cut in the area, and the target device is not in a power-off state; finally, if the cloud server still fails to obtain the device status information of the target device within the second preset duration, it can be determined that an irreparable device failure has occurred in the target direct connection module, resulting in the inability to send the device status information of the target device to the cloud server.
[0127] The present invention detects the situation where the abnormal type of the device is a failure of the target direct connection module itself by setting a first preset threshold and a second preset duration, and judging based on the result that the cloud server fails to re-obtain the device status information of the target device sent by the target direct connection module within the second preset duration, combined with the off-line and on-line consistency judgment of devices in the same power supply area, and timely notifies the user that the device has failed.
[0128] Based on the content of the above embodiments, Figure 5 is one of the flow schematic diagrams of the method for detecting the power-off type provided by the present invention. As Figure 5 shown, as an alternative embodiment, in the case of continuing to search until the device status information of the target device sent by the target direct connection module is obtained within the second preset duration, it further includes but is not limited to the following steps:
[0129] Determine the position change of the target device according to the device status information and the historical device status information received before any sampling period;
[0130] If the position change is greater than the second preset threshold, determine that the power-off is a planned power-off;
[0131] Otherwise, determine that the power-off is an abnormal power-off.
[0132] Specifically, if the cloud server continues to search and receives the device status information of the target device sent by the target direct connection module again within the second preset duration, extract the information about the position change in the newly received device status information, and also extract the information about the position change in the device status information received within any sampling period before the target device did not have an abnormal status as the historical device status information. Calculate the position change data of the target device according to these two sets of information about the position change, and compare the position change data with the second preset threshold to determine whether the position space of the target device has changed. Further, if the position change of the target device is greater than the second preset threshold, it indicates that the position space of the target device has changed significantly, and the cloud server determines that the power-off type is a planned power-off; if the position change is less than or equal to the second preset threshold, it indicates that the position space of the target device has not changed significantly, and the cloud server determines that the power-off type is an abnormal power-off.
[0133] Among them, the second preset threshold can be set manually or determined comprehensively according to factors such as the types, models, and historical working status of the target device and the cloud server.
[0134] Among them, a planned power-off refers to a power-off situation where the user actively cuts off the power supply of the target device.
[0135] For example, when the user needs to move the target device, the user will actively cut off the power supply of the target device. After the movement is completed, the user will actively reconnect the power supply of the target device. In this case, although the target device has experienced a power-off state, this power-off state is planned and belongs to a planned power-off.
[0136] In one embodiment, the device status information includes, but is not limited to, information regarding location changes. Further, the information regarding location changes may be GPS positioning information in the target device or the target direct connection module, or may be location information obtained through the base station after the target direct connection module is connected to the network operator's base station. The present invention does not limit this.
[0137] As an alternative embodiment, when the cloud server detects that the power-off type is a planned power-off, that is, the target device is actively powered off and powered on again by the user, there is no need to send a power-on recovery notice to the user terminal subsequently.
[0138] The present invention determines the location change of the target device based on the device status information, and determines whether the location of the target device has changed significantly according to the comparison result between the location change and the second preset threshold, so as to detect whether the power-off type of the target device belongs to a planned power-off.
[0139] Based on the content of the above embodiment, Figure 6 is the second flowchart of the method for detecting the power-off type provided by the present invention. As Figure 6 shown, as an alternative embodiment, determining the location change of the target device according to the device status information and the historical device status information received before any sampling period includes, but is not limited to, the following steps:
[0140] Obtain the current device location information and / or the current signal strength information included in the device status information; the current signal strength information is determined based on the signal strength of the real-time communication between the target direct connection module and the operator's base station;
[0141] Obtain the historical device location information and / or the historical signal strength information included in the historical device status information;
[0142] Determine the location change of the target device according to the current device location information and the historical device location information;
[0143] and / or determine the location change of the target device according to the current signal strength information and the historical signal strength information.
[0144] Specifically, the device status information received by the cloud server within the second preset duration is the current device status information, which includes the current device location information and / or the current signal strength information. The device status information received by the cloud server within any sampling period before the target device shows no abnormality is the historical device status information, which includes the historical device location information and / or the historical signal strength information. After receiving and extracting the current device status information and the historical device status information, the cloud server can either calculate the position change of the target device based on the current device location information and the historical device location information, or calculate the position change of the target device based on the current signal strength information and the historical signal strength information, or calculate the position change of the target device based on the current device location information, the current signal strength information, the historical device location information, and the historical signal strength information simultaneously.
[0145] Among them, the current signal strength information is determined based on the signal strength of the real-time communication between the target direct connection module and the operator base station.
[0146] In one embodiment, according to the historical signal strength information L 1 and the current signal strength information L 2 to judge the position change of the target device, the formula is as follows:
[0147] L 1 -b ≤ L 2 ≤ L 1 +a,
[0148] Among them, a is the preset upper limit increment of the strength, b is the preset lower limit increment of the strength, and a and b together constitute the second preset threshold.
[0149] If L 2 is less than L 1 -b, or L 2 is greater than L 1 +a, it indicates that the position change of the target device exceeds the second preset threshold, and the target device has undergone an obvious position change, so it is determined that the power-off of the target device is a planned power-off.
[0150] As an alternative embodiment, the upper limit increment a of the strength is equal to the lower limit increment b of the strength.
[0151] As an alternative embodiment, the upper limit increment a of the strength and the lower limit increment b of the strength are percentages. For example, the upper limit increment a of the strength is preset to 30%, and the lower limit increment b of the strength is preset to 35%.
[0152] As an alternative embodiment, the upper limit increment a of the strength and the lower limit increment b of the strength are decibel values. For example, both the upper limit increment a of the strength and the lower limit increment b of the strength are preset to 3 decibel values.
[0153] In one embodiment, the current device location information and the historical device location information may be the GPS positioning information in the target device or the target direct connection module, or may be the location information obtained through the base station after the target direct connection module establishes a connection with the network operator's base station. The present invention does not limit this.
[0154] The present invention more precisely determines whether the position of the target device has changed significantly by comparing the target device location information and the signal strength before and after power-off, so as to more precisely detect whether the power-off type of the target device belongs to planned power-off.
[0155] Figure 7 is the third schematic flow chart of the device status detection method provided by the present invention. As Figure 7 shown, the present invention also provides a device status detection method, which can be applied to a target device and includes but is not limited to the following steps:
[0156] Control the target direct connection module of itself to send device status information to the cloud server at a preset frequency, so that the cloud server can judge whether the status of the target device is abnormal according to whether the device status information is received within a first preset duration;
[0157] The target direct connection module is a communication device directly connected to the operator's base station.
[0158] It should be emphasized that in the device status detection method provided by the present invention, the target device involved can be either indoor or outdoor, and can be either in the living field or in the production field. For example, it can be a refrigerator, a washing machine, a water heater, a car, etc.
[0159] For the convenience of description, subsequent embodiments will be described with the target device being a refrigerator, which is not regarded as a specific limitation on the protection scope of the present invention.
[0160] In this embodiment, a target direct connection module directly connected to the operator's base station is integrally provided in the target device, that is, the target direct connection module is powered by the power supply of the target device.
[0161] Specifically, the target direct connection module may be a communication device adopting mobile communication technologies such as 3G, 4G, 5G, etc. The embodiments of the present invention do not limit this.
[0162] In this embodiment, the device status information of the target device refers to the information generated during the operation of the target device, and its quantity, type, content, etc. are not limited. The device status information of the target device can be sent to the cloud server through the target direct connection module.
[0163] Optionally, the device information of the target device includes, but is not limited to, the base station signal strength information received by the target direct connection module, the GPS positioning information of the target device, and so on.
[0164] For another example, when the target device is a refrigerator, the device information of the target device includes, but is not limited to, the refrigerator temperature, the operating mode of the freezer and / or the refrigerator compartment, the refrigerator door switch state, and so on.
[0165] Specifically, after the target device is powered on, the target direct connection module on the target device is started and establishes a direct connection with the network operator base station, so as to connect to the cloud server. The target device controls its own target direct connection module to send device status information to the cloud server at a preset frequency, so that the cloud server can receive the device status information of the target device sent by the target direct connection module on time.
[0166] If the target device sends information continuously on time, the cloud server can continuously receive the information, indicating that the target device has been maintaining a good and normal operating state.
[0167] If the cloud server does not receive the device status information of the target device sent by the target direct connection module within the first preset duration, that is, it indicates that the target direct connection module cannot send the device status information of the target device on time, then it indicates that the target device is in an abnormal state.
[0168] Among them, the first preset duration can be set manually or determined comprehensively according to factors such as the type, model, and historical working status of the target device and the cloud server.
[0169] For example, the first preset duration is set to 10 minutes. If the cloud server cannot receive the device status information of the target device sent by the target direct connection module within 10 minutes, it indicates that the target device is in an abnormal state.
[0170] For another example, if the abnormal type of the target device is power failure, both the target device and the target direct connection module cannot work properly. At this time, the target device cannot generate device status information, resulting in the target direct connection module being unable to send the device status information to the cloud server within the first preset duration. At this time, the cloud server can judge that the target device is in an abnormal state based on this.
[0171] As an optional embodiment, a timer is set in the cloud server to time the first preset duration.
[0172] The device status detection method provided by the present invention can, by establishing a communication connection between a cloud server and a direct connection module of the device itself, determine in real time through the cloud server whether the direct connection module can normally send device status information, and further determine whether the device has an abnormal condition, facilitating the timely detection of the abnormal state of the device, effectively eliminating the interference of other external factors on the judgment of the abnormal condition of the device, with higher judgment accuracy and stronger real-time performance.
[0173] Figure 8 It is a schematic structural diagram of the device status detection device provided by the present invention, as Figure 8 shown, the present invention also provides a device status detection device integrated in a cloud server 800, including a processor 811 and a timer 812;
[0174] The processor 811 is used to perform the following operations: when the device status information of the target device 100 sent by the target direct connection module 110 is not received within a first preset duration, determine that the status of the target device 100 is abnormal;
[0175] The first preset duration is collected by the processor 811 controlling the timer 812, and the target direct connection module 110 is a communication device directly connected between the target device 100 and an operator base station.
[0176] It should be noted that the device status detection device provided by the embodiments of the present invention, when specifically operating, can execute the device status detection method described in any of the above embodiments with the cloud server as the execution subject, and this embodiment will not be elaborated here.
[0177] The device status detection device provided by the present invention can, by establishing a communication connection between a cloud server and a direct connection module of the device itself, determine in real time through the cloud server whether the direct connection module can normally send device status information, and further determine whether the device has an abnormal condition, facilitating the timely detection of the abnormal state of the device, effectively eliminating the interference of other external factors on the judgment of the abnormal condition of the device, with higher judgment accuracy and stronger real-time performance.
[0178] Based on the content of the above embodiments, as an optional embodiment, the target device is a refrigerator.
[0179] Figure 9 It is a schematic structural diagram of the electronic device provided by the present invention, as Figure 9 shown, the present invention also provides an electronic device, including a memory 930, a processor 910, and a computer program stored on the memory 930 and executable on the processor 910. When the processor 910 executes the computer program, it implements the embodiments of any of the above device status detection methods.
[0180] Specifically, the electronic device may include: a processor 910, a communication interface 920, a memory 930, and a communication bus 940. Among them, the processor 910, the communication interface 920, and the memory 930 complete mutual communication through the communication bus 940. The processor 910 may call the logical instructions in the memory 930 to execute the device status detection method, and the method includes:
[0181] When the device status information of the target device sent by the target direct connection module is not received within the first preset duration, determining that the status of the target device is abnormal;
[0182] The target direct connection module is a communication device directly connected between the target device and the operator's base station;
[0183] Or,
[0184] Controlling the target direct connection module of itself to send device status information to the cloud server at a preset frequency, so that the cloud server can determine whether the status of the target device is abnormal according to whether the device status information is received within the first preset duration;
[0185] The target direct connection module is a communication device directly connected to the operator's base station.
[0186] In addition, when the logical instructions in the above-mentioned memory 930 are implemented in the form of software function units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.
[0187] On the other hand, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is used to execute the device status detection method provided in the above-mentioned embodiments, and the method includes:
[0188] In the case where the device status information of the target device sent by the target direct connection module is not received within the first preset duration, determine that the status of the target device is abnormal;
[0189] The target direct connection module is a communication device directly connecting the target device to the operator base station.
[0190] Alternatively, the method includes:
[0191] Control the target direct connection module of itself to send device status information to the cloud server according to a preset frequency, so that the cloud server can determine whether the status of the target device is abnormal according to whether the device status information is received within the first preset duration;
[0192] The target direct connection module is a communication device directly connecting to the operator base station.
[0193] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative labor.
[0194] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0195] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. A device status detection method, applied to a cloud server, Characterized in that, It includes: When the device status information of the target device sent by the target direct connection module is not received within the first preset duration, determining that the status of the target device is abnormal; The target direct connection module is a communication device directly connected between the target device and the operator's base station.
2. The device status detection method according to claim 1, Characterized in that, When the device status information of the target device sent by the target direct connection module is not received within the first preset duration, determining that the status of the target device is abnormal, includes: When the device status information of the target device is not received within any sampling period, taking the any sampling period as the start time of the first preset duration; Judging whether the device status information sent by the target direct connection module is received again within the first preset duration; If the device status information is not received, determining that the status of the target device is abnormal; Otherwise, determining that the status of the target device is normal.
3. The device status detection method according to claim 2, Characterized in that, When it is determined that the status of the target device is abnormal, it further includes: Obtaining the networking status of other devices in the same power supply area as the target device; If the proportion of all other devices with the networking status being offline is greater than the first preset threshold, determining that the abnormal type of the target device is power failure; Sending a power failure warning notice to the user terminal bound to the target device.
4. The device status detection method according to claim 3, Characterized in that, If the proportion is less than or equal to the first preset threshold, the following steps are executed: Continuing to search until the device status information of the target device sent by the target direct connection module is obtained within the second preset duration; Determining the acquisition time point when the device status information is obtained, and calculating the duration between the start time and the acquisition time point as the power failure duration information of the target device when the power failure occurs; Sending a power failure recovery notice to the user terminal, and the power failure recovery notice carries the power failure duration information.
5. The device status detection method according to claim 4, Characterized in that, If the device status information is not obtained within the second preset duration, determining that the abnormal type of the target device is a device failure of the target direct connection module; Sending a device failure notice to the user terminal, and the device failure notice carries the device failure of the target direct connection module.
6. The device status detection method according to claim 4, Characterized in that, When continuing to search until the device status information of the target device sent by the target direct connection module is obtained within the second preset duration, it further includes: Determining the position change of the target device according to the device status information and the historical device status information received before the any sampling period; If the position change is greater than the second preset threshold, determining that the power failure is a planned power failure; Otherwise, determining that the power failure is an abnormal power failure.
7. The device status detection method according to claim 6, wherein, determining the position change of the target device according to the device status information and the historical device status information received before any sampling period includes: obtaining the current device position information and / or the current signal strength information included in the device status information; the current signal strength information is determined based on the signal strength of the real-time communication between the target direct connection module and the operator base station; obtaining the historical device position information and / or the historical signal strength information included in the historical device status information; determining the position change of the target device according to the current device position information and the historical device position information; and / or determining the position change of the target device according to the current signal strength information and the historical signal strength information.
8. A device status detection method applied to a target device, wherein, it includes: controlling the target direct connection module of itself to send device status information to the cloud server at a preset frequency, so that the cloud server determines whether the status of the target device is abnormal according to whether the device status information is received within a first preset duration; the target direct connection module is a communication device directly connected to the operator base station.
9. A device status detection device integrated in a cloud server, wherein, it includes a processor and a timer; the processor is used to perform the following operations: when the device status information of the target device sent by the target direct connection module is not received within a first preset duration, determining that the status of the target device is abnormal; the first preset duration is collected by the processor controlling the timer, and the target direct connection module is a communication device directly connected between the target device and the operator base station.
10. The device status detection device according to claim 9, wherein, the target device is a refrigerator.
11. An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the computer program, it implements the device status detection method according to any one of claims 1 to 7, or implements the device status detection method according to claim 8.
12. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, it implements the device status detection method according to any one of claims 1 to 7, or implements the device status detection method according to claim 8.