CN116819978A - Fault analysis method, system, device, equipment and storage medium - Google Patents
Fault analysis method, system, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116819978A CN116819978A CN202210288975.3A CN202210288975A CN116819978A CN 116819978 A CN116819978 A CN 116819978A CN 202210288975 A CN202210288975 A CN 202210288975A CN 116819978 A CN116819978 A CN 116819978A
- Authority
- CN
- China
- Prior art keywords
- instruction
- intelligent device
- state mark
- feedback information
- intelligent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 82
- 238000000034 method Methods 0.000 claims abstract description 25
- 238000012544 monitoring process Methods 0.000 claims abstract description 13
- 238000004891 communication Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012360 testing method Methods 0.000 claims description 4
- 230000001360 synchronised effect Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to a fault analysis method, a system, a device, equipment and a storage medium, wherein the method is suitable for a server, and comprises the following steps: acquiring an instruction to be issued; the instruction is sent to the first intelligent device and the second intelligent device simultaneously; the second intelligent device and the first intelligent device are located in the same local area network; monitoring a first state mark of the first intelligent device and a second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction; and carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark. The method and the device are used for solving the technical problem that the reason that the intelligent equipment does not act cannot be analyzed in the prior art.
Description
Technical Field
The application relates to the technical field of intelligent home control, in particular to a fault analysis method, a system, a device, equipment and a storage medium.
Background
Along with the rapid development of technology, smart home is becoming popular. In order to make the life of people more convenient and quicker, various cloud platforms are presented to conform to the trend. The cloud platform is very convenient to control, and when a user wants to control a life electric appliance, the user only needs to send out an instruction on terminal equipment such as a mobile phone and the like, and the instruction is sent to the intelligent equipment through the cloud platform. However, almost all cloud platforms encounter an unavoidable problem when issuing instructions, namely instruction delay, if the instruction delay is within three seconds, the instruction delay is barely acceptable, and even if the instruction delay is greater than three seconds, the instruction delay is even counted in units of minutes, so that the use experience of users is seriously affected.
When the cloud platform issues the control instruction, if the intelligent device does not act, the problem of instruction delay is likely to be caused, and the problem of the intelligent device is also likely to be caused.
Disclosure of Invention
The application provides a fault analysis method, a system, a device, equipment and a storage medium, which are used for solving the technical problem that the cause of the failure of intelligent equipment in the prior art cannot be analyzed.
In a first aspect, an embodiment of the present application provides a fault analysis method, which is applicable to a server, and the method includes:
acquiring an instruction to be issued;
the instruction is sent to the first intelligent device and the second intelligent device simultaneously; the second intelligent device and the first intelligent device are located in the same local area network;
monitoring a first state mark of the first intelligent device and a second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
Optionally, the performing fault analysis on the first intelligent device according to the monitored first status flag and the second status flag includes:
if the monitored first state mark indicates that the first intelligent device receives the instruction and the first time length used for receiving the feedback of the instruction from the first intelligent device exceeds a first preset time length, and the monitored second state mark indicates that the second intelligent device receives the instruction and the second time length used for receiving the feedback of the instruction from the second intelligent device exceeds the first preset time length, judging that the first intelligent device does not execute the instruction in time due to a delay problem;
if the monitored first state mark indicates that the first intelligent device receives the instruction and receives feedback information of the first intelligent device to the instruction, wherein the first time length used by the first intelligent device for receiving the feedback of the instruction is smaller than or equal to the first preset time length, the monitored second state mark indicates that the second intelligent device receives the instruction and receives feedback of the second intelligent device to the instruction, and the second time length used by the second intelligent device for receiving the feedback of the instruction is smaller than or equal to the first preset time length, and in a third preset time length after the instruction is sent, the first intelligent device is judged not to receive feedback information of the first intelligent device to the instruction, and the first intelligent device is judged not to execute the instruction in time due to a self fault reason; or, determining that the monitored second state mark indicates that the second intelligent device receives the instruction, and the second time length used for receiving the feedback of the second intelligent device to the instruction is smaller than or equal to the first preset time length, and determining that the monitored first state mark indicates that the feedback of the first intelligent device to the instruction is not received in the second preset time length after the monitored second state mark indicates that the feedback of the second intelligent device to the instruction is received, and determining that the first intelligent device does not execute the instruction in time due to self fault reasons.
Optionally, after the obtaining the instruction to be issued, before the instruction is sent to the first intelligent device and the second intelligent device simultaneously, the method further includes:
initializing the first status flag and the second status flag.
Optionally, after the fault analysis is performed on the first intelligent device, the method further includes:
sending a fault analysis result to a terminal device controlling the first intelligent device; the terminal equipment is configured with a client for controlling the first intelligent equipment;
or,
displaying a fault analysis result;
or,
controlling the indicator lamp corresponding to the fault analysis result to be lightened; and if the fault reasons indicated by the fault analysis results are different, the corresponding indicator lamps are different in color.
Optionally, the obtaining the instruction to be issued includes:
acquiring a control instruction for controlling the first intelligent device, or generating a control instruction for testing;
and taking the control instruction as the instruction to be issued.
Optionally, before the fault analysis is performed on the first smart device according to the monitored first status flag and the second status flag, the method further includes:
within a third preset time period after the instruction is sent, feedback information of the first intelligent device on the instruction is not received; the third preset duration is smaller than the first preset duration.
In a second aspect, an embodiment of the present application provides a fault analysis system, including: the system comprises a server, a first intelligent device and a second intelligent device;
the server is used for acquiring an instruction to be issued; simultaneously sending the instruction to the first intelligent device and the second intelligent device; the second intelligent device and the first intelligent device are located in the same local area network; monitoring a first state mark of the first intelligent device and a second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction; and carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
In a third aspect, an embodiment of the present application provides a fault analysis apparatus, which is applicable to a server, and the apparatus includes:
the acquisition module is used for acquiring an instruction to be issued;
the sending module is used for simultaneously sending the instruction to the first intelligent device and the second intelligent device; the second intelligent device and the first intelligent device are located in the same local area network;
the monitoring module is used for monitoring the first state mark of the first intelligent device and the second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and the analysis module is used for carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: the device comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the fault analysis method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, where the computer program implements the fault analysis method according to the first aspect when executed by a processor.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, when the instruction is issued, the instruction is issued to the first intelligent device and also issued to the second intelligent device in the same local area network, the second intelligent device is taken as a reference, and the failure reason of the first intelligent device is analyzed according to the feedback information of the first intelligent device and the second intelligent device on the instruction, so that the reason that the user knows that the intelligent device does not act is possible, the user can take measures and deal with the failure reason in time, the problem that the user is bothered in the past is solved, and the user experience is good.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a system architecture to which a fault analysis method according to an embodiment of the present application is applied;
fig. 2 is a schematic flow chart of a fault analysis method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a preferred fault analysis system according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a fault analysis device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to solve the technical problem that the reason that the intelligent device does not act can not be analyzed in the prior art, the fault analysis method provided by the embodiment of the application takes the second intelligent device which is in the same local area network as the first intelligent device as a reference, analyzes the fault reason of the first intelligent device according to the feedback information of the first intelligent device and the second intelligent device to the instruction, and solves the trouble of a user.
Before describing in detail a fault analysis method provided by an embodiment of the present application, a system architecture to which the fault analysis method provided by the embodiment of the present application is applied is first described with reference to fig. 1. As shown in fig. 1, the system architecture mainly includes: a server 101, a first smart device 102 and a second smart device 103; wherein,,
a server 101, configured to obtain an instruction to be issued; simultaneously sending instructions to the first smart device 102 and the second smart device 103; wherein the second smart device 103 is located within the same local area network as the first smart device 102;
monitoring a first state flag of the first smart device 102 and a second state flag of the second smart device 103; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and performing fault analysis on the first intelligent device 102 according to the monitored first state mark and the second state mark.
Wherein the first smart device 102 and the second smart device 103 are different devices located in the same local area network, for example: when the first smart device 102 is an air conditioner, the second smart device 103 is an air purifier; when the first smart device 102 is an air humidifier, the second smart device 103 is a smart sound. The number of the second smart devices 103 may be one, two, or a plurality. Preferably, the second intelligent device 103 is the device with the most stable working state within the preset operation duration. Wherein the server 101 may be a cloud server.
A fault analysis method provided by an embodiment of the present application is described below with reference to fig. 2. As shown in fig. 2, the fault analysis method provided by the embodiment of the application mainly includes the following steps:
step 201, obtaining an instruction to be issued;
the instruction to be issued may be a control instruction for controlling the first intelligent device, or may be a control instruction for testing generated by the server, which is not limited herein.
Step 202, simultaneously sending instructions to a first intelligent device and a second intelligent device; the second intelligent device and the first intelligent device are located in the same local area network;
in specific implementation, between step 201 and step 202, further includes: the first state mark and the second state mark are initialized to avoid interference of each state mark monitored by the history to the fault analysis.
Step 203, monitoring a first state flag of a first intelligent device and a second state flag of a second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
wherein, in a specific implementation, the first status flag includes: the first mark bit is used for indicating whether a first time length used for receiving feedback information of the first intelligent device on the instruction exceeds a first preset time length or whether the first time length exceeds a sum of a second time length used for receiving feedback information of the second intelligent device on the instruction and the second preset time length; the second mark bit is used for indicating whether feedback information of the first intelligent device to the instruction is received or not;
the second status flag includes: a third flag bit and a fourth flag bit; the third flag bit is used for indicating whether a second duration used for receiving feedback information of the instruction from the second intelligent device exceeds a first preset duration; and the fourth mark bit is used for indicating whether feedback information of the second intelligent device to the instruction is received or not.
From this, the status flag reflects mainly two aspects of information: on one hand, whether the intelligent device receives the instruction is reflected, on the other hand, the state mark also reflects the comparison result of the time length used for receiving the feedback information of the intelligent device to the instruction and each preset time length, so that the feedback information of the intelligent device to the instruction is represented.
In a specific implementation, the timer is emptied before the instruction is sent to the first intelligent device and the second intelligent device, and the timer is started while the instruction is simultaneously sent to the first intelligent device and the second intelligent device, and the same clock is used for timing when the first state mark and the second state mark are monitored. Determining a first state mark according to whether feedback information of the first intelligent device to the instruction is received or not and a first duration used for receiving the feedback information of the first intelligent device to the instruction by using a timer for timing; and determining a second state mark according to whether feedback information of the second intelligent device to the instruction is received or not and a second time length used for receiving the feedback information of the second intelligent device to the instruction by using a timer for timing.
In a preferred embodiment, between step 203 and step 204, further comprising: within a third preset time period after the instruction is sent, feedback information of the first intelligent equipment to the instruction is not received; the third preset time period is smaller than the first preset time period.
If the feedback information of the first intelligent device to the instruction is not received within the third preset time period after the instruction is sent, the intelligent device is not timely responded to the instruction, and fault analysis of the first intelligent device is initiated, wherein the fault analysis reasons can be caused by instruction delay and also can be caused by the fault reasons of the first intelligent device.
And 204, performing fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
In the specific implementation, if the monitored first state mark indicates that the first intelligent device receives the instruction and the first time length used for receiving the feedback information of the first intelligent device to the instruction exceeds a first preset time length, and the monitored second state mark indicates that the second intelligent device receives the instruction and the second time length used for receiving the feedback information of the second intelligent device to the instruction exceeds the first preset time length, judging that the first intelligent device does not execute the instruction in time due to the delay problem;
if the two intelligent devices can receive the instruction and the time length for receiving the instruction exceeds the first preset time length, the fact that the network communication condition is not good enough causes instruction delay is indicated, and the devices do not act.
If the monitored first state mark indicates that the first intelligent device receives the instruction and the first time length used for receiving the feedback information of the first intelligent device to the instruction is smaller than or equal to a first preset time length, and the monitored second state mark indicates that the second intelligent device receives the instruction and the second time length used for receiving the feedback information of the second intelligent device to the instruction is smaller than or equal to the first preset time length, and within a third preset time length after the instruction is sent, the fact that the feedback information of the first intelligent device to the instruction is not received is judged, and the first intelligent device does not execute the instruction in time due to the self fault reason.
If the two intelligent devices can receive the instruction and the time length for receiving the instruction does not exceed the first preset time length, the network communication condition is good, but if the intelligent devices do not act yet, the reason for the failure of the intelligent devices is determined.
If the monitored second state mark indicates that the second intelligent device receives the instruction and the second time length used for receiving the feedback information of the second intelligent device to the instruction is smaller than or equal to the first preset time length, and the monitored first state mark indicates that the first intelligent device does not receive the instruction within the second preset time length after the monitored second state mark indicates that the feedback information of the second intelligent device to the instruction is received, the first intelligent device is judged to not execute the instruction in time due to the self fault reason.
If the second intelligent device can receive the instruction within the first preset time period, the network communication condition is good, and if the first intelligent device does not receive the instruction within the preset time period (within the second preset time period after the monitored second state mark indicates that the second intelligent device receives the feedback of the instruction), the first intelligent device determines that the first intelligent device is the cause of the self fault of the first intelligent device.
It should be further noted that if the server does not receive feedback from two intelligent devices after the preset time period (the preset time period is longer than the first preset time period), it indicates that the network is abnormal, and the network abnormality may be detected by other methods, that is, the situation is not in the scope of the present application. In a specific application, each preset time period can be set according to actual conditions.
In the embodiment of the application, when the instruction is issued, the instruction is issued to the first intelligent device and also issued to the second intelligent device in the same local area network, the second intelligent device is taken as a reference, and the failure reason of the first intelligent device is analyzed according to the feedback information of the first intelligent device and the second intelligent device to the instruction, so that the reason that the user knows that the intelligent device does not act is possible, the user can take measures and deal with the failure reason in time, the problem which has plagued the user in the past is solved, and the user experience is good.
In a preferred embodiment, after the fault analysis of the first smart device, the method further comprises: and outputting a fault analysis result.
The way of outputting the fault analysis result may be: sending a fault analysis result to a terminal device for controlling the first intelligent device; the terminal equipment is configured with a client for controlling the first intelligent equipment.
And sending the fault analysis result to a terminal device of the first intelligent device controlled by the user, for example: the mobile phone, the tablet personal computer, the notebook personal computer and the like, and a user can know the reason that the first intelligent device does not execute the instruction in time through the terminal device.
In addition, the way of outputting the fault analysis result may be: displaying a fault analysis result, or controlling an indicator lamp corresponding to the fault analysis result to be lighted; and if the fault reasons indicated by the fault analysis results are different, the corresponding indicator lamps are different in color.
The user can know the reason through the trouble analysis result of visual display output, can also set up the pilot lamp of different colours for the trouble analysis result of difference in advance, can know the result of trouble analysis through the colour of the pilot lamp that lights to know the reason that first smart machine did not in time carry out the instruction.
In order to facilitate understanding of a fault analysis method provided by the embodiment of the present application, a schematic diagram of a preferred fault analysis system provided by the embodiment of the present application is further described below with reference to fig. 3.
As shown in fig. 3, the server mainly includes: the control module and the clock module, the server receives the instruction through the switch, the server simultaneously transmits the instruction to the equipment A and the equipment B, and the corresponding instruction is transmitted through the first module to be synchronized and the second module to be synchronized. The control module is used for simultaneously sending instructions to the first module to be synchronized and the second module to be synchronized and sending opening timing instructions to the first module to be synchronized and the second module to be synchronized. The first module to be synchronized and the second module to be synchronized receive the instruction sent by the control module, and the clock in the first module to be synchronized and the clock in the second module to be synchronized are emptied according to the instruction; the first module to be synchronized and the second module to be synchronized receive the starting timing instruction sent by the control module, and the clock module is used as a clock source to time according to the starting timing instruction. The first module to be synchronized and the second module to be synchronized send the downlink instruction to the device A and the device B. And when the timer reaches the timing threshold, the feedback of the equipment A and the equipment B judges whether the equipment does not act or not act, namely the problem of delay of the issued instruction or the problem of self fault of the equipment.
Based on the same conception, the embodiment of the present application provides a fault analysis device, and the specific implementation of the device may be referred to the description of the embodiment of the method, and the repetition is omitted, as shown in fig. 4, where the device mainly includes:
an obtaining module 401, configured to obtain an instruction to be issued;
a sending module 402, configured to send the instruction to the first smart device and the second smart device simultaneously; the second intelligent device and the first intelligent device are located in the same local area network;
a monitoring module 403, configured to monitor a first status flag of the first intelligent device and a second status flag of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and the analysis module 404 is configured to perform fault analysis on the first intelligent device according to the monitored first status flag and the monitored second status flag.
In a specific embodiment, the analyzing module 404 is configured to determine that the first smart device does not execute the instruction in time due to a delay problem if it is determined that the monitored first status flag indicates that the first smart device receives the instruction and a first time period used for receiving feedback information of the instruction from the first smart device exceeds a first preset time period, and the monitored second status flag indicates that the second smart device receives the instruction and a second time period used for receiving feedback information of the instruction from the second smart device exceeds the first preset time period; if the monitored first state mark indicates that the first intelligent device receives the instruction and receives feedback information of the first intelligent device to the instruction, wherein the first time length used by the first intelligent device for receiving the feedback information of the instruction is smaller than or equal to the first preset time length, the monitored second state mark indicates that the second intelligent device receives the instruction and receives feedback information of the second intelligent device to the instruction, and the second time length used by the second intelligent device for receiving the feedback information of the instruction is smaller than or equal to the first preset time length, and in a third preset time length after the instruction is sent, the first intelligent device is judged not to receive the feedback information of the first intelligent device to the instruction, and the first intelligent device is judged not to execute the instruction in time due to the self fault reason; or, determining that the monitored first state mark indicates that the first intelligent device does not receive the instruction, and determining that the first intelligent device does not execute the instruction in time due to self fault reasons in a second preset time period after the monitored second state mark indicates that the second intelligent device receives the instruction and receives feedback information of the instruction from the second intelligent device, wherein the second time period used for receiving feedback information of the instruction from the second intelligent device is smaller than or equal to the first preset time period.
In a specific embodiment, the fault analysis device provided in the embodiment of the present application further includes: and the initialization module is used for initializing the first state mark and the second state mark.
In a specific embodiment, the fault analysis device provided in the embodiment of the present application further includes: the output module is used for sending a fault analysis result to terminal equipment for controlling the first intelligent equipment; the terminal equipment is configured with a client for controlling the first intelligent equipment; or, displaying a fault analysis result; or, controlling the indication lamp corresponding to the fault analysis result to be lighted; and if the fault reasons indicated by the fault analysis results are different, the corresponding indicator lamps are different in color.
In a specific embodiment, the obtaining module 401 is configured to obtain a control instruction for controlling the first smart device, or generate a control instruction for testing; and taking the control instruction as the instruction to be issued.
In a specific embodiment, the fault analysis device provided in the embodiment of the present application further includes: judging that feedback information of the first intelligent device to the instruction is not received within a third preset duration of sending the instruction before the first intelligent device is subjected to fault analysis according to the monitored first state mark and the second state mark; the third preset duration is smaller than the first preset duration.
Based on the same conception, the embodiment of the application also provides an electronic device, as shown in fig. 5, which mainly comprises: processor 501, memory 502 and communication bus 503, wherein processor 501 and memory 502 accomplish the communication between each other through communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502 to implement the following steps:
acquiring an instruction to be issued;
the instruction is sent to the first intelligent device and the second intelligent device simultaneously; the second intelligent device and the first intelligent device are located in the same local area network;
monitoring a first state mark of the first intelligent device and a second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
The communication bus 503 mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated to PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated to EISA) bus, or the like. The communication bus 503 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
The memory 502 may include random access memory (Random Access Memory, simply RAM) or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor 501.
The processor 501 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform a fault analysis method described in the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, by a wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, microwave, etc.) means from one website, computer, server, or data center to another. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape, etc.), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of fault analysis adapted to a server, the method comprising:
acquiring an instruction to be issued;
the instruction is sent to the first intelligent device and the second intelligent device simultaneously; the second intelligent device and the first intelligent device are located in the same local area network;
monitoring a first state mark of the first intelligent device and a second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
2. The method of claim 1, wherein the performing the fault analysis on the first smart device according to the monitored first status flag and the second status flag comprises:
if the monitored first state mark indicates that the first intelligent device receives the instruction and the first time length used for receiving feedback information of the instruction by the first intelligent device exceeds a first preset time length, and the monitored second state mark indicates that the second intelligent device receives the instruction and the second time length used for receiving feedback information of the instruction by the second intelligent device exceeds the first preset time length, the first intelligent device is judged to not execute the instruction in time due to a delay problem;
if the monitored first state mark indicates that the first intelligent device receives the instruction and receives feedback information of the first intelligent device to the instruction, wherein the first time length used by the first intelligent device for receiving the feedback information of the instruction is smaller than or equal to the first preset time length, the monitored second state mark indicates that the second intelligent device receives the instruction and receives feedback information of the second intelligent device to the instruction, and the second time length used by the second intelligent device for receiving the feedback information of the instruction is smaller than or equal to the first preset time length, and in a third preset time length after the instruction is sent, the first intelligent device is judged not to receive the feedback information of the first intelligent device to the instruction, and the first intelligent device is judged not to execute the instruction in time due to the self fault reason; or, determining that the monitored first state mark indicates that the first intelligent device does not receive the instruction, and determining that the first intelligent device does not execute the instruction in time due to self fault reasons in a second preset time period after the monitored second state mark indicates that the second intelligent device receives the instruction and receives feedback information of the instruction from the second intelligent device, wherein the second time period used for receiving feedback information of the instruction from the second intelligent device is smaller than or equal to the first preset time period.
3. The method for analyzing a fault according to claim 1, wherein after the obtaining the instruction to be issued, before the instruction is sent to the first smart device and the second smart device simultaneously, the method further comprises:
initializing the first status flag and the second status flag.
4. A fault analysis method according to any one of claims 1 to 3, wherein after the fault analysis is performed on the first smart device, the method further comprises:
sending a fault analysis result to a terminal device controlling the first intelligent device; the terminal equipment is configured with a client for controlling the first intelligent equipment;
or,
displaying a fault analysis result;
or,
controlling the indicator lamp corresponding to the fault analysis result to be lightened; and if the fault reasons indicated by the fault analysis results are different, the corresponding indicator lamps are different in color.
5. A fault analysis method according to any one of claims 1 to 3, wherein the obtaining the instruction to be issued includes:
acquiring a control instruction for controlling the first intelligent device, or generating a control instruction for testing;
and taking the control instruction as the instruction to be issued.
6. A method of fault analysis according to any one of claims 1 to 3, wherein before the fault analysis is performed on the first smart device according to the monitored first status flag and the second status flag, the method further comprises:
judging that feedback information of the first intelligent device to the instruction is not received within a third preset time period after the instruction is sent; the third preset duration is smaller than the first preset duration.
7. A fault analysis system, comprising: the system comprises a server, a first intelligent device and a second intelligent device;
the server is used for acquiring an instruction to be issued; simultaneously sending the instruction to the first intelligent device and the second intelligent device; the second intelligent device and the first intelligent device are located in the same local area network; monitoring a first state mark of the first intelligent device and a second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction; and carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
8. A failure analysis apparatus adapted for use with a server, the apparatus comprising:
the acquisition module is used for acquiring an instruction to be issued;
the sending module is used for simultaneously sending the instruction to the first intelligent device and the second intelligent device; the second intelligent device and the first intelligent device are located in the same local area network;
the monitoring module is used for monitoring the first state mark of the first intelligent device and the second state mark of the second intelligent device; the first state mark is used for indicating feedback information of the first intelligent device on the instruction; the second state mark is used for indicating feedback information of the second intelligent device on the instruction;
and the analysis module is used for carrying out fault analysis on the first intelligent equipment according to the monitored first state mark and the second state mark.
9. An electronic device, comprising: the device comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to execute a program stored in the memory, and implement the fault analysis method according to any one of claims 1 to 6.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the fault analysis method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210288975.3A CN116819978A (en) | 2022-03-22 | 2022-03-22 | Fault analysis method, system, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210288975.3A CN116819978A (en) | 2022-03-22 | 2022-03-22 | Fault analysis method, system, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116819978A true CN116819978A (en) | 2023-09-29 |
Family
ID=88122645
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210288975.3A Pending CN116819978A (en) | 2022-03-22 | 2022-03-22 | Fault analysis method, system, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116819978A (en) |
-
2022
- 2022-03-22 CN CN202210288975.3A patent/CN116819978A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113326181B (en) | Fuzz testing method, device and storage medium for stateful network protocol | |
| CN112583617B (en) | Fault determination method, server, control terminal and storage medium | |
| CN114338464B (en) | Fault diagnosis method, device, equipment and computer readable storage medium | |
| CN109240100A (en) | Intelligent home furnishing control method, equipment, system and storage medium | |
| CN104021218A (en) | Information display method and device | |
| CN114266368A (en) | Equipment fault processing method and device, storage medium and electronic device | |
| CN110365558B (en) | Fault processing method, device and system | |
| CN115827111A (en) | Method and device for adjusting server startup items, storage medium and electronic device | |
| CN108645532B (en) | A temperature test device and temperature test method with a test temperature alarm function | |
| CN114328240A (en) | Electronic equipment detection method, system, equipment and storage medium | |
| CN112822073B (en) | Test method, device, system, electronic equipment and readable storage medium | |
| CN113965904B (en) | Device registration method, device and storage medium | |
| CN112230088B (en) | Household appliance power-on self-checking method, system, equipment and storage medium | |
| CN116819978A (en) | Fault analysis method, system, device, equipment and storage medium | |
| CN108882207A (en) | The implementation method and device of near field Trigger Function | |
| CN114882908A (en) | Fault detection method and device, electronic equipment and storage medium | |
| CN109600242A (en) | For the management method of household electrical appliances distribution, household electrical appliances, client and system | |
| CN112887111B (en) | Equipment fault detection method and device and computer readable storage medium | |
| CN109600781B (en) | WiFi module test system and method | |
| CN108344001B (en) | User protection method, device and system based on microwave oven and microwave oven | |
| CN107360065B (en) | Information push method and device | |
| CN118295360A (en) | Vehicle function diagnosis method and device and vehicle | |
| CN112328438A (en) | Self-checking method and device of terminal equipment and computer storage medium | |
| CN114064485A (en) | Software testing method, system, computer equipment and readable storage medium | |
| CN114390436A (en) | Device control method, device, storage medium and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |