Equipment detection method and device, electronic equipment and readable storage medium

By obtaining the hardware and software status information of smart home devices and processing this information based on detection strategies, the problem that traditional detection methods cannot effectively monitor equipment abnormalities is solved, and the equipment is fully monitored and fault detection is achieved, which improves the reliability and stability of the equipment.

CN120110962APending Publication Date: 2025-06-06SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311664814.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

Traditional detection methods cannot effectively monitor the abnormal status of smart home devices, resulting in difficulty in solving faults and product iteration.

Method used

By obtaining device status information, including hardware and software status information, and processing this information based on detection policies, the processing sequence and processing level are determined to achieve automatic monitoring and fault detection.

Benefits of technology

It realizes all-round monitoring of smart home devices, can quickly identify hardware and software abnormalities, and improves the reliability and stability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120110962A_ABST
    Figure CN120110962A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment detection method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring equipment state information; the equipment state information comprises first state information and second state information which is different from the first state information in state type; processing the equipment state information based on the detection strategy to obtain an equipment detection result; wherein the detection strategy is used for indicating a first processing sequence for the first state information and the second state information, and a second processing sequence for each piece of first state information. The front-back association logic relation of the detection mode is determined through the detection strategy, the specific abnormal state of the equipment is judged, the whole equipment working process of the equipment is effectively monitored, and the reliability and stability of the equipment quality can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a device detection method, apparatus, electronic device and readable storage medium. Background Art

[0002] With the rapid popularization of whole-house intelligence, consumers have higher and higher requirements for the quality and reliability of smart home devices. When a device fails, it takes time to communicate the problem and requires experience analysis to solve the device abnormality, which is not conducive to problem solving and subsequent product iteration and problem repair. At this time, it is necessary to automatically monitor the abnormal status of the device. However, traditional detection methods cannot effectively monitor. Summary of the invention

[0003] Based on this, it is necessary to provide an equipment detection method, device, electronic device and readable storage medium that can perform effective monitoring in response to the above technical problems.

[0004] In a first aspect, the present application provides a device detection method, the method comprising:

[0005] Acquire device status information; the device status information includes first status information and second status information of a status type different from that of the first status information;

[0006] The device status information is processed based on the detection strategy to obtain a device detection result; wherein the detection strategy includes a first processing sequence for indicating the first status information and the second status information, and a second processing sequence for each first status information.

[0007] In one embodiment, obtaining device status information includes:

[0008] If the device is in a startup state, the device state information is obtained.

[0009] In one of the embodiments, the state type of the first state information includes hardware state information, and the state type of the second state information includes software state information;

[0010] The first processing sequence includes that the processing priority of hardware status information is higher than that of software status information; the second processing sequence includes processing each piece of hardware status information according to the corresponding processing level; and the processing level is positively correlated with the severity of the impact of the hardware status information on device detection.

[0011] In one embodiment, processing the device status information based on the detection strategy to obtain the device detection result includes:

[0012] If the hardware status information is detected to be abnormal, a fault prompt message is output as the device detection result;

[0013] If it is detected that the hardware status information is normal, then the software status information is detected to see if it is normal, and the device detection result is obtained.

[0014] In one embodiment, each piece of hardware status information is processed step by step according to the corresponding processing level, including:

[0015] Determine whether the hardware status information of the current processing level matches the corresponding preset reference value;

[0016] If the hardware status information of the current processing level matches the corresponding preset reference value, then continue to determine whether the hardware status information of the next processing level whose processing level is lower than the current processing level matches the corresponding preset reference value;

[0017] If the hardware status information of the current processing level does not match the corresponding preset reference value, a fault prompt message is output; the fault prompt message includes at least one of an indicator light being always on, an indicator light flashing, an indicator light being always on with a preset color, and an indicator light flashing with a preset color.

[0018] In one embodiment, each piece of hardware status information includes a device operating voltage, a device temperature value, and a device vibration value;

[0019] Among them, the processing level of the equipment working voltage is higher than the processing level of the equipment temperature value, and the processing level of the equipment temperature value is higher than the processing level of the equipment vibration value.

[0020] In one embodiment, a preset reference value corresponding to the device vibration value is a vibration threshold; and determining whether the device vibration value matches the vibration threshold includes:

[0021] Obtain multi-axis motion parameters collected according to the sampling period;

[0022] The sum of the variances of the motion parameters of each axis in each sampling period is obtained, and the absolute value of the difference between the sums of the variances of two adjacent sampling periods is determined as the vibration value of the device;

[0023] When the device vibration value is greater than or equal to the vibration threshold, it is determined that the device vibration value does not match the vibration threshold; the fault prompt information is used to indicate that the device is in a vibration state.

[0024] In one embodiment, the method further comprises:

[0025] Get the average of multiple consecutive device vibration values, and use the average of preset multiples as the vibration threshold.

[0026] In one embodiment, each piece of software status information corresponds to a plurality of functional logics of the device; the plurality of functional logics are obtained by dividing the operation logic of the device according to the functions;

[0027] Process device status information based on detection strategies, including:

[0028] Perform status monitoring on each software status information one by one or in parallel;

[0029] If an abnormal state is detected, a fault recovery operation is performed and a fault error code is output; the fault error code is used to instruct the server to display a corresponding prompt message in the user interface.

[0030] In one embodiment, each software status information includes working information and running information;

[0031] Perform status monitoring on each software status information one by one or in parallel, including performing the following operations one by one or in parallel:

[0032] determining whether the device meets the operating conditions according to the operating information;

[0033] It is determined whether the device meets the working requirements based on the working information.

[0034] In one of the embodiments, the operation information includes at least one of heartbeat information, front-end configuration parameters, system configuration parameters, and thread operation information;

[0035] Determining whether the device meets the operating conditions according to the operating information includes:

[0036] Determine whether the device sends heartbeat information to the server according to the heartbeat interval;

[0037] Determine whether the device transmits a response feedback; the response feedback is used to indicate that the front-end configuration parameters are successfully configured;

[0038] Determining whether the device successfully verifies the system configuration parameters;

[0039] Determine whether the device thread is set to the running state regularly according to the thread running information.

[0040] In one embodiment, the work information includes source data input by the device;

[0041] Confirm whether the equipment meets the working requirements based on the working information, including:

[0042] The data quality of the source data is determined according to a reference threshold value, and it is confirmed whether the device outputs result data based on the source data.

[0043] In a second aspect, the present application also provides a device detection apparatus, the apparatus comprising:

[0044] An information acquisition module, used to acquire device status information; the device status information includes first status information and second status information of a status type different from that of the first status information;

[0045] The detection module is used to process the device status information based on the detection strategy to obtain the device detection result; wherein the detection strategy is used to indicate a first processing sequence for the first status information and the second status information, and a second processing sequence for each first status information.

[0046] In a third aspect, the present application provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0047] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0048] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0049] In the above-mentioned device detection method, apparatus, electronic device and readable storage medium, the device status information acquired by the device includes first status information and second status information of a different status type from the first status information, and then the device can process the device status information based on the detection strategy to obtain the device detection result; wherein, the device can determine the first processing order for the first status information and the second status information, and the second processing order for each first status information through the detection strategy. The present application can automatically monitor the device, determine the logical relationship between the detection methods through the detection strategy, and then judge the specific abnormal state of the device, so as to realize effective monitoring of the entire device workflow, which is of great help to improve the reliability and stability of the equipment quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 An application environment diagram of a device detection method in an embodiment;

[0052] Figure 2 is an application environment diagram of a device detection method in another embodiment;

[0053] Figure 3 A schematic diagram of a flow chart of a device detection method in an embodiment;

[0054] Figure 4A schematic diagram of a hardware detection process in an embodiment;

[0055] Figure 5 A schematic diagram of a process flow of hardware detection failure prompt in one embodiment;

[0056] Figure 6 A schematic diagram of a process for determining whether a device is in a vibration state in one embodiment;

[0057] Figure 7 A schematic diagram of a specific process of determining whether a device is in a vibration state in one embodiment;

[0058] Figure 8 A schematic diagram of a software detection process in one embodiment;

[0059] Fig. 9 A schematic diagram of the division of software functional modules of a millimeter wave radar device in one embodiment;

[0060] Fig.10 A schematic diagram of a specific process of software detection in an embodiment;

[0061] Fig.11 is a structural block diagram of a device detection device in an embodiment;

[0062] Fig.12 is a diagram of the internal structure of an electronic device in one embodiment;

[0063] Fig.13 Schematic diagram of the hardware detection structure of a millimeter wave radar device in one embodiment. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0066] It is understood that terms such as "first" and "second" in this application are only used to distinguish similar objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. The "connection" appearing in the embodiments of this application refers to various connection methods such as direct connection or indirect connection to achieve communication between devices, and the embodiments of this application do not make any limitation on this.

[0067] It will be understood that “at least one” means one or more, and “plurality” means two or more.

[0068] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0069] At present, how to automatically monitor the abnormal status of the equipment, especially to perform self-checks during the power-on process, is particularly important. However, the existing technology can usually only achieve single fault monitoring, or the logical judgment of the software is unclear, and it is impossible to fully and effectively monitor the entire startup process of the equipment hardware and software and prompt reporting, etc., and it cannot provide helpful help for solving faults, and it cannot provide fault recovery measures.

[0070] In response to the above problems, this application proposes to monitor the power-on status of the device by combining status information of different status types, determine the processing order of different status information and the processing order of the status information itself through detection strategies, for example, monitor the power-on status of the device by combining hardware and software, judge the specific abnormal status of the device through the software logic of multiple sensors, and take corresponding measures to restore the normal operation of the device. Among them, this application performs self-inspection and self-recovery on the device during the power-on startup process, and reports the device abnormality code to prompt the user, which is helpful for the later analysis of equipment failures, and is also of great help in improving the reliability and stability of equipment quality.

[0071] The device detection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in the figure, Figure 1 A smart home system 10 is provided, and the smart home system 10 includes a terminal device 102 and a home device 104 that is communicatively connected to the terminal device 102. The number of the home device 104 may be at least one.

[0072] The home device 104 may be a sensor, a switch, etc. Exemplarily, the home device 104 may be a human detection device, such as a human scene sensor or a human presence sensor, which may detect whether there is a person in the current space, or detect the position, posture, movement direction, etc. of a person in the current space, and send the detected information to the terminal device 102.

[0073] The terminal device 102 may include a smart mirror, a smart phone, a large screen, a TV, a small wall control screen, a personal computer (PC), a tablet computer, a personal digital assistant (PDA), and other intelligent interactive terminals, which are not limited here. Optionally, the terminal device 102 may provide an intuitive visual home interface, which is convenient for users to view indoor objects in the interface. For example, the user quickly and accurately selects a home device 104 to be controlled in the interface, and the terminal device 102 controls the home device 104 through a communication connection with the home device 104 based on the user's selection and specific control operation.

[0074] In the embodiment of the present application, the smart home system 10 may further include a gateway 106 that is communicatively connected to the terminal device 102 and the home device 104. The number of gateways 106 may be at least one. The gateway 106 may be an intelligent gateway for smart home control, which may realize functions such as system information collection, information input, information output, centralized control, remote control, and linkage control. The gateway 106 may be responsible for specific security alarms, home appliance control, electricity consumption information collection, etc. The gateway 106 may also exchange information with products such as smart interactive terminals wirelessly. The gateway 106 also has wireless routing functions, excellent wireless performance, network security, and coverage area.

[0075] In the embodiment of the present application, the home device 104 may include a variety of smart home appliances, sensing devices and detection devices arranged in the indoor space, such as smart TVs, smart refrigerators, smart air conditioners, temperature and humidity sensors, pressure sensors, smoke sensors, sockets, electric lights, infrared transmitters, millimeter wave radars, etc. The home device 104 connected to the gateway 106 can exchange information and instructions with the gateway 106. The gateway 106 and the home device 104 can be connected through communication methods such as Bluetooth, WIFI (Wireless-Fidelity), ZigBee (Zifeng Technology), etc. Of course, the connection method between the gateway 106 and the home device 104 may not be specifically limited in the embodiment of the present application.

[0076] Optionally, in the embodiment of the present application, the smart home system 10 may further include a server 110 that is communicatively connected to the gateway 106. The server 110 may be a local server, a cloud server, or other server. The server 110 may be implemented as an independent server or a server cluster composed of multiple servers. The specific server type may not be limited in the embodiment of the present application. The server 110 connected to the gateway 106 may exchange information with the gateway 106 wirelessly. The gateways 106 arranged in different indoor spaces may communicate with the same server 110 through the network to exchange information between the server 110 and the gateway 106.

[0077] The terminal device 102 can exchange information with the server 110 through wireless methods such as 2G / 3G / 4G / 5G / WiFi. Of course, the connection method between the terminal device 102 and the server 110 may not be limited in the embodiment of the present application. In some embodiments, the terminal device 102 can also be used to interact with users, so that users can wirelessly communicate with the gateway 106 based on the router 108 through the terminal device 102. In addition, the user can add an account information to the gateway 106 and the terminal device 102 at the same time, and realize the information synchronization of the gateway 106 and the terminal device 102 through the account information.

[0078] In some embodiments, the user can set different trigger scenarios or automation linkages through the application (Application, APP) of the terminal device 102. As a way, the terminal device 102 can upload the scene configuration information or automation scheme to the server 110, so that when the triggering condition of the triggering scene or automation is reached, the server 110 can find the device corresponding to the execution action in the scene configuration information or automation scheme according to the stored scene configuration information or automation scheme, so as to notify the device to perform the execution action to meet the execution result of the triggering scene or automation. As another way, the server 110 can also send the scene configuration information or automation scheme to the gateway 106, and the gateway 106 can find the device corresponding to the execution action in the scene configuration information or automation scheme according to the stored scene configuration information or automation scheme. At the same time, the gateway 106 can feedback the execution status of the device to the server 110.

[0079] For further information, please refer to Figure 2 , Figure 2 A schematic diagram of another application environment provided in the embodiment of the present application. In the embodiment of the present application, a millimeter wave radar device can be used as Figure 1The home device 104 in the embodiment. Optionally, the millimeter wave radar device is used as a human presence sensor to accurately detect the static presence of a human body through micro-motion detection. Among them, the millimeter wave radar device includes at least the following three parts: a radio frequency antenna, a radio frequency front end (responsible for transmitting and receiving signals) and a signal processor. Exemplarily, the millimeter wave radar device can be a millimeter wave radar sensor integrated with a millimeter wave radar chip; it should be noted that the millimeter wave radar chip can refer to the integration of a radio frequency antenna, a radio frequency front end and a signal processor into one chip.

[0080] Taking server 110 as a cloud server (referred to as the cloud) as an example, based on the embodiment of the present application, the millimeter wave radar device can monitor its own device hardware status and prompt the user through light control when the device fails abnormally (for example, prompting the user of hardware failure through an indicator light); at the same time, when the device fails abnormally (for example, when the device has an abnormal software status), the device can record the fault error code, report it to the cloud server via WIFI, and restart the device automatically. Exemplarily, the received fault error code can be transmitted to the cloud server by the router, and then stored in the cloud database for user interface prompts.

[0081] In an exemplary embodiment, Figure 3 As shown, a device detection method is provided, which is applied to Figure 1 or Figure 2 The home appliance in FIG. 1 is taken as an example to illustrate, and the method includes the following steps 202 to 204. Among them:

[0082] Step 202, obtaining device status information; the device status information includes first status information and second status information of a status type different from that of the first status information.

[0083] The device status information may represent the working status and operation status of the home device. Further, the device status information includes first status information and second status information, and the first status information and the second status information have different status types, so that the device can monitor different work processes of the device.

[0084] Step 204, processing the device status information based on the detection strategy to obtain a device detection result; wherein the detection strategy includes a first processing sequence for indicating the first status information and the second status information, and a second processing sequence for each first status information.

[0085] Specifically, when the home appliance obtains the device status information, it can process the device status information through the detection strategy to obtain a device detection result, wherein the device detection result includes a detection result obtained by processing the first status information and a detection result obtained by processing the second status information.

[0086] For example, the detection strategy in the present application may be a strategy for instructing the device to self-check, and self-check refers to the process of troubleshooting. Among them, the home appliance can determine the first processing order for the first state information and the second state information according to the detection strategy, for example, giving priority to the first state information, which can realize the priority processing of a certain type of state information to realize effective monitoring of the device; further, the home appliance can also determine the second processing order for each first state information according to the detection strategy, so as to determine the specific abnormal state of the device.

[0087] It should be noted that the embodiments of the present application do not limit the specific information types of the first state information and the second state information. The first state information and the second state information to be obtained can be determined based on the types of devices and business functions in the smart home.

[0088] The embodiment of the present application monitors the power-on status of the device by combining status information of different status types, and determines the processing order of different status information and the processing order of the status information itself through the detection strategy. That is, the detection strategy determines the logical relationship between the detection methods, and then determines the specific abnormal state of the device, so as to realize effective monitoring of the entire device workflow, and improve the reliability and stability of the equipment quality.

[0089] In an exemplary embodiment, step 202 includes the following steps, wherein:

[0090] If the device is in the startup state, obtain the device status information.

[0091] Specifically, the startup running state may refer to the state entered by the home appliance when it is powered on. The present application can realize self-checking during the power-on process. When the home appliance is powered on, the hardware status information and the software status information can be obtained, and the self-checking state can be entered.

[0092] This application facilitates the analysis and processing of equipment abnormalities by performing self-inspection on the equipment during the power-on startup process, reduces labor costs, and helps improve product quality.

[0093] In an exemplary embodiment, the state type of the first state information includes hardware state information, and the state type of the second state information includes software state information;

[0094] The first processing sequence includes that the processing priority of hardware status information is higher than that of software status information; the second processing sequence includes processing each piece of hardware status information according to the corresponding processing level; and the processing level is positively correlated with the severity of the impact of the hardware status information on device detection.

[0095] Specifically, the state type of the first state information may be hardware state information, and the state type of the second state information may be software state information, so that the home appliance can effectively monitor the entire device workflow of the device hardware and software. Optionally, the hardware state information may include information indicating the operation status of the device hardware, such as operating voltage, temperature, and vibration, etc., and the software state information may include information indicating the operation status of the device software, such as operation information, work information, etc.

[0096] For example, there can be multiple pieces of hardware status information and multiple pieces of software status information, so that the home appliance can comprehensively determine whether there is any abnormality in the device from multiple dimensions through self-inspection, which is conducive to subsequent fault analysis and further improves the quality reliability and stability of the device.

[0097] Optionally, the home appliance can obtain the hardware status information through the corresponding monitoring devices, such as obtaining the operating voltage of the device through a voltage monitoring device, obtaining the temperature data of the device through a temperature sensor, etc.; optionally, the home appliance can divide the operation logic of the device into multiple functional logics according to the functions, and perform timed status monitoring on each functional logic to obtain the software status information. For example, the device divides the software functions to obtain functional logics such as heartbeat communication, parameter configuration, and thread monitoring, and then performs status monitoring at a default fixed time to obtain the software status information.

[0098] It should be noted that the embodiments of the present application do not limit the specific information types of hardware status information and software status information, and the hardware status information and software status information to be obtained can be determined based on the type of equipment and business functions in the smart home; for example, taking the home device as a millimeter wave radar sensor, the hardware status information may include operating voltage, temperature data, vibration data, etc., and the software status information may include working information such as signal collection quantity, and may also include operating information such as heartbeat communication data and configuration parameters.

[0099] Furthermore, the detection strategy is used to indicate a first processing order and a second processing order, wherein the first processing order includes that the processing priority of hardware status information is higher than that of software status information; the second processing order includes processing each piece of hardware status information according to the corresponding processing level; the processing level is positively correlated with the severity of the impact of the hardware status information on the device detection. Furthermore, the device detection result includes the hardware detection result obtained by processing the hardware status information, and the software detection result obtained by processing the software status information, that is, the entire self-checking process requires both hardware and software to be detected and judged, which can avoid single fault monitoring.

[0100] Furthermore, in the process of processing each piece of hardware status information, the detection strategy is used to instruct the home appliance to process each piece of hardware status information step by step according to the corresponding processing level, and the processing level is positively correlated with the severity of the impact of the hardware status information on the device detection. In this application, the processing logic of the processing order of each piece of hardware status information by the home appliance is fixed, and the processing level corresponding to the hardware status information is obtained by sorting the severity of the impact on the device detection; for example, abnormal voltage directly affects the operation of the entire device, and excessive temperature also has a serious impact on the device detection. Based on this application, the processing level corresponding to the working voltage and temperature can be set to a higher level to obtain a specific detection logic for the hardware.

[0101] In one embodiment, step 204 includes the following steps, wherein:

[0102] If the hardware status information is detected to be abnormal, the fault prompt information is output as the device detection result;

[0103] If it is detected that the hardware status information is normal, then the software status information is detected to see if it is normal, and the device detection result is obtained.

[0104] Specifically, the present application prioritizes processing of hardware status information based on the detection strategy. When the device status information is obtained, the home appliance has a sequence restriction for processing the hardware status information and the software status information. The hardware status information is processed first, and then the software status information is processed. That is, the detection strategy clarifies the logical relationship between the detection methods in the self-check.

[0105] By giving priority to hardware status information, hardware faults are checked first, and software problems are checked only when there is no hardware problem, thereby avoiding software errors caused by hardware. For example, if there is a problem with the working voltage of a household appliance, it can be determined that the appliance is in an abnormal working state, which is very likely to cause software errors. This application proposes to give priority to processing hardware status information, and then process software status information, to achieve effective monitoring of the entire device workflow of the device hardware and software, and provide favorable assistance for troubleshooting.

[0106] In the above-mentioned device detection method, by obtaining hardware status information and software status information, the home appliance can comprehensively judge whether there is any abnormality in the device from multiple dimensions through self-inspection, and further clarify the logical relationship between the detection methods through the detection strategy, which can not only avoid single fault monitoring, but also determine the detection logic of hardware and software in the entire self-inspection process, as well as the processing order for each hardware status information, to achieve effective self-inspection of the entire device workflow of the device hardware and software, greatly improving the reliability and stability of the equipment quality.

[0107] In an exemplary embodiment, Figure 4As shown, each piece of hardware status information is processed step by step according to the corresponding processing level, including steps 302 to 306. Among them:

[0108] Step 302, determining whether the hardware status information of the current processing level matches the corresponding preset reference value.

[0109] Specifically, the home appliance processes each hardware status information preferentially according to the detection strategy, and determines whether the hardware status information of the current processing level matches the corresponding preset reference value; wherein the preset reference value can represent the hardware parameters of the home appliance under normal working state.

[0110] Taking the hardware status information as the operating voltage as an example, the corresponding preset reference value may be a reference voltage, which refers to the base value + the allowable error, such as 3.3V + 100mV. For another example, taking the hardware status information as the device temperature as an example, the corresponding preset reference value may refer to a fixed temperature. For example, the preset reference value corresponding to the device temperature may be 10°C less than the maximum allowable operating temperature. Taking the maximum allowable operating temperature as 80°C as an example, the preset reference value may be set to 70°C.

[0111] The home appliance determines whether the hardware status information of the current processing level matches the corresponding preset reference value, thereby determining whether the device currently has a hardware abnormality. Since the processing level is sorted by the severity of the impact on the device detection, the embodiment of the present application can clarify the logical relationship between the hardware status detection before and after, and can realize effective self-checking of the device during the power-on startup process to ensure that the home appliance is in normal working condition.

[0112] Step 304: If the hardware status information of the current processing level matches the corresponding preset reference value, then continue to determine whether the hardware status information of the next processing level whose processing level is lower than the current processing level matches the corresponding preset reference value.

[0113] Specifically, when the hardware status information of the current processing level matches the corresponding preset reference value, it can be confirmed that the home appliance is in a normal working state at the hardware status level of the current processing level, and then it can be further determined whether the hardware status information of the next processing level whose processing level is lower than the current processing level matches the corresponding preset reference value.

[0114] Step 306, if the hardware status information of the current processing level does not match the corresponding preset reference value, a fault prompt information is output; the fault prompt information includes at least one of an indicator light being always on, an indicator light flashing, an indicator light being always on with a preset color, and an indicator light flashing with a preset color.

[0115] Specifically, when the hardware status information of the current processing level does not match the corresponding preset reference value, it can be confirmed that the home appliance is in an abnormal working state at the hardware status level of the current processing level, and a prompt alarm is required; exemplarily, the prompt alarm can be issued by outputting fault prompt information.

[0116] Among them, the fault prompt information may include the indicator light being always on, flashing, or always on or flashing in a preset color. Different prompt methods can be used to remind different hardware faults detected, so that users can understand the status of the device more conveniently and know whether the device is working properly without additional operations.

[0117] In the embodiment of the present application, a hardware failure is warned by an indicator light. By monitoring the hardware status of the device and prompting the user through the indicator light, safety can be increased, time can be saved, and efficiency can be improved to reduce labor costs. The indicator light allows the user to promptly discover abnormal conditions of the device and understand the status of the device more quickly, so that timely measures can be taken to increase the safety of the device.

[0118] In an exemplary embodiment, each piece of hardware status information includes a device operating voltage, a device temperature value, and a device vibration value;

[0119] Among them, the processing level of the equipment working voltage is higher than the processing level of the equipment temperature value, and the processing level of the equipment temperature value is higher than the processing level of the equipment vibration value.

[0120] Specifically, taking the home device as a millimeter wave radar device as an example, the millimeter wave radar device is powered on and started, such as Figure 5 As shown, each hardware status information may include device operating voltage, device temperature value and device vibration value, wherein the preset reference value corresponding to the device operating voltage is the reference voltage, the preset reference value corresponding to the device temperature value is the reference temperature, and the preset reference value corresponding to the device vibration value is the vibration threshold.

[0121] Among them, by monitoring the device, the millimeter-wave radar device can prompt to enter the self-test state when monitoring the device working voltage, device temperature value and device vibration value, and then compare the device working voltage with the reference voltage, the device temperature value with the reference temperature, and the device vibration value with the vibration threshold in sequence according to the processing level; for example, when the device working voltage is higher than the reference voltage, it is determined that the working voltage is abnormal, and the user is prompted by the prompt light being red and always on. For another example, when the device vibration value is greater than or equal to the vibration threshold, it is determined that the device is in a vibration state, and the user is prompted by the prompt light being red and flashing slowly. Based on this application, it is possible to monitor whether the millimeter-wave radar device is in a vibration state, thereby preventing the millimeter-wave radar from working when the device is in a shaking or vibrating state, thereby improving the reliability of the measurement data.

[0122] Millimeter-wave radar equipment uses the logical relationship between the three detection methods of voltage, temperature, and vibration to comprehensively judge whether the equipment has hardware abnormalities in multiple dimensions. Among them, excessive voltage, excessive temperature, and vibration are all hardware abnormalities, which can improve detection accuracy and locate problems more accurately. By fully understanding the status of the equipment and reducing misjudgments, it helps to reduce the cost of maintaining and repairing equipment and avoid unnecessary repairs and replacements.

[0123] Millimeter-wave radar equipment can provide early warnings through fault warning lights and characterize abnormalities of different hardware status information under different circumstances. The embodiment of the present application uses multi-dimensional judgment and warning light reminders to enable users to discover abnormalities earlier, provide early warnings, avoid equipment damage or accidents, reduce maintenance costs, and improve safety, equipment reliability and stability.

[0124] In one embodiment, the preset reference value corresponding to the device vibration value is a vibration threshold; Figure 6 As shown, judging whether the vibration value of the device matches the vibration threshold may include steps 402 to 406. Among them:

[0125] Step 402, obtaining multi-axis motion parameters collected according to the sampling period;

[0126] Specifically, the sampling period may refer to a data sampling period, which may be understood as a data window length. Exemplarily, the sampling period is 10 frames, or other frames, which are set based on experience, such as considering the immediacy and reliability of the data. Further, the multi-axis motion parameter may be a three-axis motion parameter; exemplarily, the multi-axis motion parameter includes a multi-axis acceleration value.

[0127] Taking the household device as a millimeter wave radar device as an example, the vibration of the millimeter wave radar device can be monitored by an acceleration sensor, and the acceleration value of the acceleration sensor is used as vibration data. For example, the multi-axis motion parameter can refer to the acceleration value of the XYZ three-axis acceleration of the acceleration sensor. Optionally, the XYZ three-axis acceleration value can be read once every 10 frames.

[0128] Step 404, obtaining the sum of the variances of the motion parameters of each axis in each sampling period, and determining the absolute value of the difference between the sums of the variances of two adjacent sampling periods as the vibration value of the device;

[0129] Specifically, the device can obtain the sum of the variances of the motion parameters of each axis in each sampling period, and then use the absolute value of the difference between the sum of the variances of two adjacent sampling periods as the device vibration value, which can more sensitively reflect the vibration changes of the device, more accurately capture small vibration changes, and better distinguish different vibration states, which helps to accurately judge the working state and abnormal conditions of the device. At the same time, it is convenient to compare and analyze the vibration conditions at different time points.

[0130] For example, if the household device is a millimeter-wave radar device, the sampling period is 10 frames, and the multi-axis motion parameter is the acceleration value of the XYZ three-axis of the acceleration sensor, the variance of the XYZ three-axis is calculated every 10 frames, and the difference between the results of the previous and next 10 frames is taken as the vibration value of the device. The variance can be calculated using the following formula:

[0131]

[0132]

[0133] Among them, σ represents the variance, μ represents the mean of the X-axis angle values ​​of 10 frames, and V i Refers to the single X-axis value, N refers to 1-10.

[0134] The above formula is used to obtain the variance of the XYZ axis every 10 frames, and we get X1σ, Y1σ, and Z1σ. The sum is σ 1 =X1σ+Y1σ+Z1σ. Then we can calculate the σ of the next 10 consecutive frames. 2 =X2σ+Y2σ+Z2σ; Equipment vibration value d=σ 2 -σ 1 .

[0135] Step 406: When the device vibration value is greater than or equal to the vibration threshold, it is determined that the device vibration value does not match the vibration threshold; the fault prompt information is used to indicate that the device is in a vibration state.

[0136] Specifically, when the device vibration value is obtained, the home appliance can determine that the device vibration value does not match the vibration threshold when the device vibration value is greater than or equal to the vibration threshold, and then confirm that the device is in a vibration state. Optionally, when the device vibration value is less than or equal to the vibration threshold, it is determined that the device vibration value matches the vibration threshold, and then confirm that the device is in a non-vibration state (i.e., a static state).

[0137] In an exemplary embodiment, the method further comprises:

[0138] Get the average of multiple consecutive device vibration values, and use the average of preset multiples as the vibration threshold.

[0139] Specifically, the device can obtain the average of multiple consecutive device vibration values ​​based on the sampling period, and then use the average of the preset multiples as the vibration threshold. The preset multiple can be set according to demand, for example, 1.5 times.

[0140] For example, after obtaining the device vibration value, the device can be observed to be stationary for a period of time, and the device vibration values ​​of the time d1 to dt can be accumulated, and the average value D of d1 to dt can be calculated, and the vibration threshold T can be equal to 1.5 times the value of D. Furthermore, the vibration judgment condition can be: when the device vibration value d is greater than or equal to the vibration threshold T, it indicates that the device is in a vibrating state, otherwise it is in a stationary state.

[0141] In order to further explain the present application scheme, a specific example is given below. Figure 7 As shown, taking the household device as a millimeter wave radar device, the sampling period as 10 frames, and the multi-axis motion parameter as the acceleration value of the XYZ three-axis acceleration of the acceleration sensor as an example, the acceleration value of the XYZ three-axis acceleration of the acceleration sensor can be read. When it is determined that the cumulative number of frames is greater than or equal to 10 frames, the variance of each of the XYZ three axes is calculated and summed as the value at the current time t, and then the absolute value of the difference between the value at the current time t and the previous time t-1 is taken as the device vibration value, and it is determined whether the device vibration value is greater than or equal to the vibration threshold T. When the device vibration value is greater than or equal to the vibration threshold T, it indicates that the device is in a vibration state, otherwise it is in a non-vibration state.

[0142] In the embodiment of the present application, when the working voltage and the device temperature are normal, it is determined whether the millimeter wave radar device is in a vibrating state, thereby avoiding the millimeter wave radar detecting the existence of the target by the micro-movement of the echo signal when detecting the target. If the millimeter wave radar device itself is in a vibrating state, it will be fed back to the receiving signal of the millimeter wave radar, resulting in the situation where the detection result is invalid (that is, the target always exists). By accurately determining whether the device is abnormal and prompting the user in time, the embodiment of the present application can timely realize fault recovery, thereby avoiding the millimeter wave radar from being in a vibrating state and improving the reliability and stability of the device quality.

[0143] In an exemplary embodiment, each piece of software status information corresponds to a plurality of functional logics of a device; the plurality of functional logics are obtained by dividing the operation logic of the device according to functions; Figure 8 As shown, step 202 includes steps 502 to 504 .

[0144] in:

[0145] Step 502: Perform abnormal status monitoring on each software status information one by one or in parallel.

[0146] Specifically, each software status information in this application can correspond to multiple functional logics divided by the operation logic of the device according to functions; wherein, the operation logic of the device can refer to the software function of the device, and then the multiple functional logics divided by the operation logic according to functions can refer to each software function module obtained by the functional division of the device software; the software function module in this embodiment represents a virtual module with the same software function as the device. Through each software status information, the device in the self-checking state can comprehensively judge whether the software is in an abnormal state from multiple dimensions, which is helpful for the later analysis of equipment failures and improves the reliability and stability of equipment quality.

[0147] like Fig. 9 As shown, taking the millimeter-wave radar device as an example of a household device, the device software divides the functions into a heartbeat communication module, a radar target positioning and tracking module, a radar RF front-end configuration and signal monitoring module, a system parameter configuration module, a thread monitoring module, etc. The status information of each software can be obtained by monitoring the timing status (fixed time by default) of each module.

[0148] When the hardware detection results are determined, the device entering the self-check state can further perform abnormal status monitoring on each software status information one by one or in parallel, that is, there is no correlation between the detection order of the software status information, and the judgment can be parallel or exchanged, thereby improving the fault detection efficiency.

[0149] Step 504: When an abnormal state is detected, a fault recovery operation is performed and a fault error code is output; the fault error code is used to instruct the server to display a corresponding prompt message in the user interface.

[0150] Specifically, the home appliance monitors the abnormal status of each software status information one by one or in parallel. When an abnormal status is detected, it can perform a fault recovery operation and output a fault error code (referred to as a fault code for short), wherein the fault error code can be used to instruct the server to display a corresponding prompt message in the user interface.

[0151] By executing the fault recovery operation, the present application can perform self-inspection and self-recovery on the device during the power-on startup process, and report the fault error code to prompt the user, which is helpful for the subsequent analysis of the device failure and at the same time improves the reliability and stability of the equipment quality.

[0152] In an exemplary embodiment, the failover operation includes a reboot.

[0153] Specifically, when a home appliance in the self-checking state determines that the device is abnormal, it can report the fault error code to the server and perform fault recovery operations, such as restarting the device, to achieve device self-recovery. Among them, device self-recovery can restore the device state, thereby solving software problems, repairing software conflicts, etc., so that the device can resume normal operation.

[0154] In an exemplary embodiment, each software status information includes working information and running information;

[0155] Perform abnormal status monitoring on each software status information one by one or in parallel, including performing the following operations one by one or in parallel:

[0156] Determine whether the equipment meets the operating conditions based on the operating information;

[0157] Confirm whether the equipment meets the working requirements based on the working information.

[0158] Specifically, each piece of software status information may be working information and running information, wherein the working information may represent the working status of the relevant software of the device, and the running information may represent the running status of the relevant software of the device.

[0159] Home appliances can determine whether the equipment meets the operating conditions based on the operating information, and confirm whether the equipment meets the working requirements based on the working information, realizing multi-dimensional equipment self-inspection, which helps to fully understand the equipment status, discover problems in advance, improve accuracy and safety, and thus ensure the normal operation of the equipment.

[0160] In an exemplary embodiment, the operation information may include at least one of heartbeat information, front-end configuration parameters, system configuration parameters, and thread operation information;

[0161] Determine whether the equipment meets the operating conditions based on the operating information, including:

[0162] Determine whether the device sends heartbeat information to the server according to the heartbeat interval;

[0163] Determine whether the device transmits response feedback; the response feedback is used to indicate that the front-end configuration parameters are successfully configured;

[0164] Determine whether the device has successfully verified the system configuration parameters;

[0165] Determine whether the device thread is set to the running state regularly according to the thread running information.

[0166] Specifically, the operation information may include one or more of heartbeat information, front-end configuration parameters, system configuration parameters and thread operation information; wherein, the heartbeat information can characterize the communication and operation status of the device, for example, whether the device regularly (for example, heartbeat interval) performs heartbeat communication with the server via WIFI; the front-end configuration parameters may refer to the configuration information of the device, such as the RF front-end configuration. Taking the millimeter-wave radar device as an example, the front-end configuration parameters refer to the configuration information of the millimeter-wave radar RF signal, such as the operating frequency band, transmission power, etc. If the configuration fails (no response feedback), it proves that the radar cannot work normally.

[0167] Exemplarily, the system configuration parameters may refer to local parameters. When the verification of reading the system configuration parameters fails, it can be determined that an abnormality has occurred in the reading of the local parameters. Since the device can be connected to the server via WIFI, the server has a backup of the parameters, and the device can pull the latest parameter table from the server.

[0168] In an exemplary embodiment, the work information may include source data input by the device;

[0169] Confirm whether the equipment meets the working requirements based on the working information, including:

[0170] The data quality of the source data is determined according to a reference threshold value, and whether the device outputs result data is confirmed based on the source data.

[0171] Specifically, working information can refer to the data input by the device and the data output by the device. Taking the millimeter wave radar device as an example, the source data input by the device can be the signal sampling point, which can then characterize the quality of the signal collected by the millimeter wave radar. If the signal quality is very small when there is a target, it means that the millimeter wave radar is faulty and the obtained measurement information is unreliable.

[0172] For example, the result data output by the device can refer to the work result output after the source data is processed by the device. Taking the millimeter wave radar device as an example, the device can calculate and obtain the target location and track the target position. When the device does not obtain the above result data, it can be confirmed that the device has a software system failure, and a fault code can be used to report a prompt.

[0173] The following is a specific example to illustrate this, taking the millimeter wave radar device as an example. Fig.10As shown, the device detects the front-end parameter configuration and obtains the response feedback of the device, wherein the response feedback can be used to characterize the successful configuration of the front-end configuration parameters. When the configuration fails, the fault code 01 is reported and the system is restarted. When the configuration is successful, the signal sampling point of the device can be obtained. When the difference between the maximum value and the minimum value of the signal sampling point is less than or equal to the reference threshold, the fault code 02 is reported and the system is restarted. When the difference between the maximum value and the minimum value of the signal sampling point is greater than the reference threshold, the system configuration parameters can be read. When the reading and verification fail, the configuration parameters are requested from the server and the fault code 03 is reported, and the system is restarted. If the reading and verification are successful, when the target positioning cannot be calculated and the target position is tracked, the fault code 04 is reported and the system is restarted. When the target positioning can be calculated and the target position is tracked, it is determined whether the device transmits heartbeat communication through WIFI regularly. If not, the fault code 05 is reported and the system is restarted. If so, it is detected whether the thread is set to the running state regularly. When the thread is not set to the running state regularly, the fault code 06 is reported and the system is restarted. When the thread is set to the running state regularly, no fault is reported through WIFI.

[0174] In the above device detection method, the software regularly monitors the operating status of each functional module and reports the fault error code. When the software functional module is abnormal, the fault error code of the device is recorded and reported to the server via WIFI, and the device is automatically restarted at the same time; it should be noted that Fig.10 The detection order of each software status parameter is only an exemplary description and is not limited in this application.

[0175] In the above, the embodiment of the present application monitors the hardware status of the device through multiple hardware status information and prompts the user through the indicator light. After completing the hardware detection, the software running user fault error code is collected in time through multiple software status information, which is convenient for analyzing and processing device abnormalities, reducing labor costs and helping to improve product quality.

[0176] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0177] Based on the same inventive concept, the embodiment of the present application also provides a device detection device for implementing the device detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more device detection device embodiments provided below can refer to the limitations on the device detection method above, and will not be repeated here.

[0178] In an exemplary embodiment, Fig.11 As shown, a device detection device 900 is provided, comprising:

[0179] The information acquisition module 901 is used to acquire device status information; the device status information includes first status information and second status information of a different status type from the first status information;

[0180] The detection module 902 is used to process the device status information based on the detection strategy to obtain the device detection result; wherein the detection strategy is used to indicate a first processing sequence for the first status information and the second status information, and a second processing sequence for each first status information.

[0181] In one embodiment, the information acquisition module 901 is used to acquire device status information if the device is in a startup running state.

[0182] In one of the embodiments, the state type of the first state information includes hardware state information, and the state type of the second state information includes software state information;

[0183] The first processing sequence includes that the processing priority of hardware status information is higher than that of software status information; the second processing sequence includes processing each piece of hardware status information according to the corresponding processing level; and the processing level is positively correlated with the severity of the impact of the hardware status information on device detection.

[0184] In one embodiment, the detection module 902 includes:

[0185] The hardware detection module is used to output fault prompt information as the device detection result if abnormal hardware status information is detected;

[0186] The software detection module is used to detect whether the software status information is normal if the hardware status information is detected to be normal, and obtain the device detection result.

[0187] In one embodiment, the hardware detection module includes:

[0188] A matching judgment module is used to judge whether the hardware status information of the current processing level matches the corresponding preset reference value; and if the hardware status information of the current processing level matches the corresponding preset reference value, then continue to judge whether the hardware status information of the next processing level whose processing level is lower than the current processing level matches the corresponding preset reference value;

[0189] A fault prompt module is used to output fault prompt information if the hardware status information of the current processing level does not match the corresponding preset reference value; the fault prompt information includes at least one of the indicator light being always on, the indicator light flashing, the indicator light being always on with a preset color, and the indicator light flashing with a preset color.

[0190] In one embodiment, each piece of hardware status information includes a device operating voltage, a device temperature value, and a device vibration value;

[0191] Among them, the processing level of the equipment working voltage is higher than the processing level of the equipment temperature value, and the processing level of the equipment temperature value is higher than the processing level of the equipment vibration value.

[0192] In one embodiment, the preset reference value corresponding to the vibration value of the device is a vibration threshold; the matching judgment module includes:

[0193] A motion parameter acquisition module, used to acquire multi-axis motion parameters collected according to a sampling period;

[0194] A vibration value acquisition module is used to obtain the sum of the variances of the motion parameters of each axis in each sampling period, and determine the absolute value of the difference between the sums of the variances of two adjacent sampling periods as the vibration value of the device;

[0195] The prompt module is used to determine that the device vibration value does not match the vibration threshold when the device vibration value is greater than or equal to the vibration threshold; the fault prompt information is used to indicate that the device is in a vibration state.

[0196] In one embodiment, the matching determination module further includes:

[0197] The threshold acquisition module is used to obtain the average of multiple consecutive device vibration values ​​and use the average of preset multiples as the vibration threshold.

[0198] In one embodiment, each piece of software status information corresponds to a plurality of functional logics of the device; the plurality of functional logics are obtained by dividing the operation logic of the device according to the functions;

[0199] The detection module 902 includes:

[0200] An abnormality monitoring module, used to perform abnormal status monitoring on each software status information one by one or in parallel;

[0201] The error code output module is used to perform fault recovery operations and output fault error codes when an abnormal state is detected; the fault error code is used to instruct the server to display corresponding prompt information in the user interface.

[0202] In one embodiment, each software status information includes working information and running information;

[0203] The anomaly monitoring module is used to perform the following operations one by one or in parallel:

[0204] Determine whether the equipment meets the operating conditions based on the operating information;

[0205] Confirm whether the equipment meets the working requirements based on the working information.

[0206] In one of the embodiments, the operation information includes at least one of heartbeat information, front-end configuration parameters, system configuration parameters, and thread operation information;

[0207] The operation monitoring module is used to determine whether the device sends heartbeat information to the server according to the heartbeat interval; determine whether the device transmits response feedback; the response feedback is used to indicate that the front-end configuration parameters are successfully configured; determine whether the device has successfully verified the system configuration parameters; and determine whether the device thread is regularly set to the running state based on the thread running information.

[0208] In one embodiment, the work information includes source data input by the device;

[0209] The work monitoring module is used to determine the data quality of the source data according to the reference threshold value, and to confirm whether the device outputs the result data based on the source data.

[0210] Each module in the above-mentioned device detection apparatus can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0211] In an exemplary embodiment, an electronic device is provided, the internal structure of which can be as shown in FIG. Fig.12As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a device detection method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0212] Those skilled in the art will understand that Fig.12 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0213] In an exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above-mentioned device detection method when executing the computer program.

[0214] The device can monitor data through multiple sensors and prompt the self-check status, for example, Fig.13As shown, taking the electronic device as a millimeter wave radar device as an example, the millimeter wave radar device can be connected to a temperature sensor, a voltage monitoring device, an acceleration sensor and a WIFI communication module. The WIFI communication module and the millimeter wave radar device can be connected using a UART (Universal Asynchronous Receiver Transmitter) serial port. Furthermore, the millimeter wave radar device can have or be connected to an indicator light. The millimeter wave radar device is powered on and started, and the voltage value output by the voltage monitoring device, the temperature value transmitted by the temperature sensor, and the acceleration value of the XYZ three-axis acceleration of the acceleration sensor are read. Based on the above device detection method, multiple sensors monitor the hardware status of the device and prompt the user through the indicator light, and timely collect the fault error code of the software running user, which is convenient for analyzing and processing equipment abnormalities, reducing labor costs, and helping to improve product quality.

[0215] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned device detection method are implemented.

[0216] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the above-mentioned device detection method when executed by a processor.

[0217] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0218] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0219] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A device detection method, It is characterized in that The method comprises: Acquire device status information; the device status information includes first status information and second status information of a status type different from that of the first status information; The device status information is processed based on a detection strategy to obtain a device detection result; wherein the detection strategy includes a first processing order for indicating the first status information and the second status information, and a second processing order for each of the first status information.

2. The method according to claim 1, It is characterized in that The obtaining of device status information includes: If the device is in a startup state, the device state information is obtained.

3. The method according to claim 1, It is characterized in that The state type of the first state information includes hardware state information, and the state type of the second state information includes software state information; The first processing order includes a processing priority of the hardware status information being higher than the software status information; The second processing sequence includes processing each piece of hardware status information according to a corresponding processing level; the processing level is positively correlated with the severity of the impact of the hardware status information on device detection.

4. The method according to claim 3, It is characterized in that Processing the device status information based on the detection strategy to obtain the device detection result includes: If the hardware status information is detected to be abnormal, a fault prompt message is output as the device detection result; If it is detected that the hardware status information is normal, then the software status information is detected to see if it is normal, and the device detection result is obtained.

5. The method according to claim 3, It is characterized in that The processing of each piece of hardware status information according to the corresponding processing level includes: Determine whether the hardware status information of the current processing level matches the corresponding preset reference value; If the hardware status information of the current processing level matches the corresponding preset reference value, then continue to determine whether the hardware status information of the next processing level whose processing level is lower than the current processing level matches the corresponding preset reference value; If the hardware status information of the current processing level does not match the corresponding preset reference value, a fault prompt message is output; The fault prompt information includes at least one of an indicator light being always on, an indicator light flashing, an indicator light being always on with a preset color, and an indicator light flashing with a preset color.

6. The method according to claim 5, It is characterized in that Each of the hardware status information includes a device operating voltage, a device temperature value, and a device vibration value; The processing level of the device operating voltage is higher than the processing level of the device temperature value, and the processing level of the device temperature value is higher than the processing level of the device vibration value.

7. The method according to claim 6, It is characterized in that The preset reference value corresponding to the vibration value of the device is a vibration threshold; Determining whether the vibration value of the device matches the vibration threshold includes: Obtain multi-axis motion parameters collected according to the sampling period; Obtaining the sum of the variances of the motion parameters of each axis in each sampling period, and determining the absolute value of the difference between the sums of the variances of two adjacent sampling periods as the vibration value of the device; When the vibration value of the device is greater than or equal to the vibration threshold, determining that the vibration value of the device does not match the vibration threshold; The fault prompt information is used to indicate that the device is in a vibrating state.

8. The method according to claim 7, It is characterized in that The method further comprises: An average of a plurality of consecutive vibration values ​​of the device is obtained, and a preset multiple of the average is used as the vibration threshold.

9. The method according to claim 3, It is characterized in that Each piece of software status information corresponds to a plurality of functional logics of the device one by one; the plurality of functional logics are obtained by dividing the operation logic of the device according to the functions; The processing of the device status information based on the detection strategy includes: Performing status monitoring on each of the software status information one by one or in parallel; If an abnormal state is detected, a fault recovery operation is performed and a fault error code is output; the fault error code is used to instruct the server to display a corresponding prompt message in the user interface.

10. The method according to claim 9, It is characterized in that Each of the software status information includes working information and running information; The performing status monitoring on each piece of software status information one by one or in parallel includes performing the following operations one by one or in parallel: Determining whether the device meets the operating conditions according to the operating information; It is determined whether the device meets working requirements based on the working information.

11. The method according to claim 10, It is characterized in that The operation information includes at least one of heartbeat information, front-end configuration parameters, system configuration parameters and thread operation information; The determining whether the device meets the operating condition according to the operating information includes: Determining whether the device sends the heartbeat information to the server according to the heartbeat interval; Determining whether the device transmits a response feedback; the response feedback is used to indicate that the front-end configuration parameters are configured successfully; Determining whether the device successfully verifies the system configuration parameters; It is determined whether the device thread is set to a running state regularly according to the thread running information.

12. The method according to claim 10, It is characterized in that The working information includes source data input by the device; The confirming whether the device meets the working requirements based on the working information includes: The data quality of the source data is determined according to a reference threshold, and whether the device outputs result data is confirmed based on the source data.

13. A device detection device, It is characterized in that The device comprises: An information acquisition module, used to acquire device status information; the device status information includes first status information and second status information of a status type different from that of the first status information; A detection module is used to process the device status information based on a detection strategy to obtain a device detection result; wherein the detection strategy includes a first processing order for indicating the first status information and the second status information, and a second processing order for each of the first status information.

14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

16. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.