Method, device and equipment for processing operation fault of Internet of Things system
By obtaining and parsing the detection information of the IoT system, running the automatic recovery mechanism, recording and uploading fault logs, the problem of running faults in the low-power embedded IoT system is solved, the reliability and self-healing ability of the system are improved, and the system is ensured Stable operation and failure analysis support.
Patent Information
- Application Number
- CN202411011694.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Frequent operating failures in low-power embedded IoT systems increase maintenance costs and affect the normal operation of the system. The reliability and self-healing capabilities of the system need to be improved.
By obtaining the preset time period detection information of the IoT system, parsing the fault information, running the automatic recovery mechanism, recording and uploading fault logs, and using asynchronous log recording to achieve fault detection and automatic recovery.
It improves the reliability and stability of low-power embedded IoT systems, ensures stable operation under complex and unexpected situations, records and reports fault information in a timely manner, and provides support for subsequent fault analysis and maintenance.
Smart Images

Figure CN118740607A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things operation technology, and in particular to an Internet of Things system operation fault processing method, device and equipment. Background Art
[0002] In the operation of low-power embedded Internet of Things, operational failures may occur, which directly affect the normal operation of the Internet of Things system. At the same time, frequent operational failures increase maintenance costs. How to reduce the impact of operational failures on the operation of low-power embedded Internet of Things and ensure the normal operation of low-power embedded Internet of Things is urgently needed. Summary of the invention
[0003] The present invention provides an Internet of Things system operation fault processing method, device and equipment, which can realize fault detection and automatic recovery, improve the reliability, stability and self-healing ability of low-power embedded Internet of Things gateways; ensure that the system maintains stable operation under various complex and sudden situations, and timely records and reports fault information, providing important support for subsequent fault analysis and maintenance.
[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0005] A method for handling operation failures of an Internet of Things system, comprising:
[0006] Obtain at least one kind of detection information of a preset time period of the Internet of Things system;
[0007] Analyze the at least one detection information to obtain fault information;
[0008] According to the fault information, an automatic recovery mechanism is run to record a fault log and upload the fault log; wherein the fault log is recorded through an asynchronous log.
[0009] Optionally, obtaining at least one detection information of a preset time period of the Internet of Things system includes:
[0010] Obtaining first detection information of a network connection status detection of the Internet of Things system during a preset time period;
[0011] Acquire second detection information of storage medium status detection in a preset time period of the Internet of Things system;
[0012] The third detection information of the sensor data detection in the preset time period of the Internet of Things system is obtained.
[0013] Optionally, parsing the at least one detection information to obtain fault information includes:
[0014] Parsing the first detection information to obtain network fault information as first fault information;
[0015] Parsing the second detection information to obtain stored fault information as second fault information;
[0016] The third detection information is parsed to obtain sensor fault information as third fault information.
[0017] Optionally, according to the fault information, an automatic recovery mechanism is run, a fault log is recorded and the fault log is uploaded, including:
[0018] According to the first fault information, a network fault automatic recovery mechanism is run.
[0019] Optionally, according to the fault information, an automatic recovery mechanism is run, a fault log is recorded and the fault log is uploaded, further comprising:
[0020] According to the second fault information, an automatic storage medium switching mechanism is executed.
[0021] Optionally, according to the fault information, an automatic recovery mechanism is run, a fault log is recorded and the fault log is uploaded, further comprising:
[0022] A sensor recovery mechanism is executed according to the third fault information.
[0023] Optionally, according to the fault information, running an automatic recovery mechanism, recording a fault log and uploading the fault log, further comprising:
[0024] The fault log is uploaded using the first network transmission protocol or the second network transmission protocol.
[0025] The present invention also provides an Internet of Things system operation fault processing device, comprising:
[0026] An acquisition module, used to acquire at least one detection information of a preset time period of the Internet of Things system;
[0027] The processing module is used to parse the at least one detection information to obtain fault information; according to the fault information, run the automatic recovery mechanism, record the fault log and upload the fault log; wherein the fault log is recorded through asynchronous logging.
[0028] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed.
[0029] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above.
[0030] The above solution of the present invention includes at least the following beneficial effects:
[0031] The above scheme of the present invention obtains at least one kind of detection information of the Internet of Things system in a preset time period; parses the at least one kind of detection information to obtain fault information; runs an automatic recovery mechanism according to the fault information, records a fault log and uploads the fault log; wherein the fault log is recorded through an asynchronous log; it is capable of realizing fault detection and automatic recovery, thereby improving the reliability, stability and self-healing ability of the low-power embedded Internet of Things gateway; ensuring that the system maintains stable operation under various complex and sudden situations, and timely records and reports fault information, providing important support for subsequent fault analysis and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flow chart of a method for handling an operation failure of an Internet of Things system provided by an embodiment of the present invention;
[0033] Figure 2 is a circuit diagram of a target micro control unit provided by an embodiment of the present invention;
[0034] Figure 3 is a circuit diagram of a power supply circuit provided by an embodiment of the present invention;
[0035] Figure 4 is a circuit diagram of a first power control circuit provided by an embodiment of the present invention;
[0036] Figure 5 is a circuit diagram of a second power supply control circuit provided by an embodiment of the present invention;
[0037] Figure 6 is a circuit diagram of a network connection circuit provided by an embodiment of the present invention;
[0038] Figure 7 is a circuit diagram of a third power supply control circuit provided by an embodiment of the present invention;
[0039] Figure 8 is a circuit diagram of a first storage circuit provided by an embodiment of the present invention;
[0040] Fig. 9 is a circuit diagram of a second storage circuit provided by an embodiment of the present invention;
[0041] Fig.10 is a circuit diagram of a fourth power control circuit provided by an embodiment of the present invention;
[0042] Fig.11 is a circuit diagram of a sensor data acquisition circuit provided by an embodiment of the present invention;
[0043] Fig.12 A module diagram of a device for handling operation failures of an Internet of Things system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0045] like Figure 1 As shown, an embodiment of the present invention provides a method for handling an operation failure of an Internet of Things system, comprising:
[0046] Step 11, obtaining at least one detection information of a preset time period of the Internet of Things system;
[0047] Step 12, parsing the at least one detection information to obtain fault information;
[0048] Step 13: according to the fault information, run the automatic recovery mechanism, record the fault log and upload the fault log; wherein the fault log is recorded through asynchronous logging.
[0049] In this embodiment, at least one kind of detection information of a preset time period of the Internet of Things system is obtained; the at least one kind of detection information is parsed to obtain fault information; according to the fault information, an automatic recovery mechanism is run to record a fault log and upload the fault log; wherein the fault log is recorded through an asynchronous log; fault detection and automatic recovery can be achieved, thereby improving the reliability, stability and self-healing ability of the low-power embedded Internet of Things gateway; ensuring that the system maintains stable operation under various complex and sudden situations, and timely records and reports fault information, providing important support for subsequent fault analysis and maintenance.
[0050] In an optional embodiment of the present invention, step 11 includes:
[0051] Step 111, obtaining first detection information of a network connection status detection of a preset time period of the Internet of Things system;
[0052] Step 112, obtaining second detection information of storage medium status detection in a preset time period of the Internet of Things system;
[0053] Step 113, obtaining third detection information of sensor data detection in a preset time period of the Internet of Things system.
[0054] In this embodiment, in step 111, the network connection status of the Internet of Things system is detected in a preset time period, and detection information of the network connection status of the Internet of Things system is obtained as the first detection information;
[0055] Specifically, based on the network connection circuit, the network connection is performed, and the target micro control unit U5 obtains detection information of whether the Internet of Things system network is connected as the first detection information;
[0056] Among them, Figure 2 As shown, the VDD_1 pin, VDD_2 pin, VDD_3 pin, VDD_4 pin and VDD_5 pin of the target micro control unit U5 are grounded through the fourteenth capacitor C14, the eighteenth capacitor C18, the nineteenth capacitor C19, the twentieth capacitor C20, the twenty-first capacitor C21 and the fifteenth capacitor C15 are all connected in parallel with the fourteenth capacitor C14; the VSSA pin and VREF- pin of the target micro control unit U5 are connected to the analog ground, the VREF+ pin and the VDDA pin of the target micro control unit U5 are connected to the analog ground through the sixteenth capacitor C16, and the tenth capacitor C17 is connected to the analog ground. The seventh capacitor C17 is connected in parallel with the sixteenth capacitor C16; the VSS_1 pin, VSS_2 pin, VSS_3 pin, VSS_4 pin and VSS_5 pin of the target micro control unit U5 are all grounded; the BOOT0 pin of the target micro control unit U5 is grounded through the twenty-ninth resistor R29, and the PB2-BOOT1 pin of the target micro control unit U5 is grounded through the thirty-first resistor R31; the VBAT pin of the target micro control unit U5 is electrically connected to the third pin of the semiconductor diode U2, and the first pin of the semiconductor diode U2 is electrically connected to the backup battery BT1 Connection; a first crystal oscillator Y1 is electrically connected between the PC14-OSC32_IN pin and the PC15-OSC32_OUT pin of the target microcontroller unit U5, the PC14-OSC32_IN pin of the target microcontroller unit U5 is grounded through the twenty-fifth capacitor C25, and the PC15-OSC32_OUT pin of the target microcontroller unit U5 is grounded through the twenty-sixth capacitor C26; a second crystal oscillator Y2 is electrically connected between the OSC_IN pin and the OSC_OUT pin of the target microcontroller unit U5, and the OSC_I The N pin is grounded through the twenty-seventh capacitor C27, and the OSC_OUT pin of the target micro-control unit U5 is grounded through the twenty-eighth capacitor C28; the NRST pin of the target micro-control unit U5 is electrically connected to the second pin of the monitoring circuit U3, the NRST pin of the target micro-control unit U5 is grounded through the twenty-third capacitor C23, and the NRST pin of the target micro-control unit U5 is electrically connected to the third pin of the monitoring circuit U3 through the thirtieth resistor R30; the first pin of the monitoring circuit U3 is grounded, and the second pin of the monitoring circuit U3 is grounded through the thirty-third resistor R33;
[0057] The power supply circuit is electrically connected to the target micro control unit U5, such as Figure 3As shown, the power supply circuit includes: a first common-mode inductor L2, a first input pin of the first common-mode inductor L2 is electrically connected to the P+ pin of the power interface P15 through a fuse F1, a second input pin of the first common-mode inductor L2 is electrically connected to the P- pin of the power interface P15, and a varistor MOV1 is electrically connected between the P+ pin and the P- pin of the power interface P15; a first output pin of the first common-mode inductor L2 is electrically connected to the positive electrode of the fourth diode D4, a second output pin of the first common-mode inductor L2 is electrically connected to the positive electrode of the fifth diode D5, a negative electrode of the fourth diode D4 is electrically connected to the negative electrode of the fifth diode D5, a negative electrode of the fifth diode D5 is electrically connected to the positive electrode of the thirty-third capacitor C33, a positive electrode of the fifth diode D5 is electrically connected to the negative electrode of the thirty-third capacitor C33, a negative electrode of the fourth diode D4 is electrically connected to the input end of the fifty-sixth resistor R56, and an output end of the fifty-sixth resistor R56 is electrically connected to the positive electrode of the thirty-fourth capacitor C34. The negative electrode of the thirty-fourth capacitor C34 is electrically connected to the negative electrode of the thirty-third capacitor C33; a low voltage difference linear regulator U8, the second pin of the low voltage difference linear regulator U8 is electrically connected to the output end of the fifty-sixth resistor R56, the first pin of the low voltage difference linear regulator U8 is grounded, the fifty-first capacitor C51 is electrically connected between the second pin and the first pin of the low voltage difference linear regulator U8, the third pin of the low voltage difference linear regulator U8 is grounded through the forty-ninth capacitor C49, the third pin of the low voltage difference linear regulator U8 is connected to the analog ground through the fiftieth capacitor C50 and the fifth magnetic bead L5, the fifty-second capacitor C52 is connected in parallel with the fiftieth capacitor C50, the third pin of the low voltage difference linear regulator U8 is electrically connected to the VREF+ pin and the VDDA pin of the target micro control unit U5 through the fourth magnetic bead L4; the third pin of the low voltage difference linear regulator U8 is electrically connected to the VDD_1 pin of the target micro control unit U5 and the third pin of the monitoring circuit U3;
[0058] like Figure 6 As shown, the network connection circuit includes:
[0059] The network connection circuit includes: a bus interface J1, a VBAT pin of the bus interface J1 is electrically connected to the output end of the sixth inductor L6, the VBAT pin of the bus interface J1 is grounded through a first capacitor C1, the GND pin of the bus interface J1 is grounded, a first resistor R1 is electrically connected between the USIM_VDD pin and the USIM_DATA pin of the bus interface J1, the USIM_VDD pin of the bus interface J1 is electrically connected to the first pin of the first three-pin Schottky diode Z1, the third pin of the first three-pin Schottky diode Z1 is grounded, the second pin of the first three-pin Schottky diode Z1 is electrically connected to the USIM_DATA pin of the bus interface J1, and the USIM_DATA pin of the bus interface J1 is electrically connected to the USIM_DATA pin of the bus interface J1 through the third resistor R1. The capacitor C3 is grounded, the USIM_CLK pin of the bus interface J1 is grounded through the fourth capacitor C4, the USIM_CLK pin of the bus interface J1 is electrically connected to the first pin of the second three-pin Schottky diode Z2, the third pin of the second three-pin Schottky diode Z2 is grounded, the second pin of the second three-pin Schottky diode Z2 is electrically connected to the USIM_RST pin of the bus interface J1, the USIM_RST pin of the bus interface J1 is grounded through the fifth capacitor C5, the WAKEUP_OUT pin of the bus interface J1 is electrically connected to the emitter of the third triode Q3, the collector of the third triode Q3 is electrically connected to the PB3 pin of the target micro control unit U5, and the collector of the third triode Q3 is electrically connected to the first pin of the second three-pin Schottky diode Z2 through the eighth resistor R8. The output end of the sixty-second resistor R62 is electrically connected, the base of the third transistor Q3 is electrically connected to the VDD_EXT pin of the bus interface J1 through the ninth resistor R9, the seventh capacitor C7 is connected in parallel with the ninth resistor R9, the USB_DM pin of the bus interface J1 is electrically connected to the first pin of the third three-pin Schottky diode Z3 through the fifth resistor R5, the third pin of the third three-pin Schottky diode Z3 is grounded, the USB_DP pin of the bus interface J1 is electrically connected to the second pin of the third three-pin Schottky diode Z3 through the seventh resistor R7, the two output ends of the second common-mode inductor T1 are electrically connected to the fifth resistor R5 and the seventh resistor R7 respectively, and the two input ends of the second common-mode inductor T1 are electrically connected to the PA11 pin of the target micro control unit U5 respectively. The WAKEUP_IN pin of the bus interface J1 is electrically connected to the collector of the first transistor Q1, the collector of the first transistor Q1 is electrically connected to the VDD_EXT pin of the bus interface J1 through the second resistor R2, the emitter of the first transistor Q1 is electrically connected to the PB5 pin of the target micro control unit U5, the base of the first transistor Q1 is electrically connected to the VDD_EXT pin of the bus interface J1 through the third resistor R3, the second capacitor C2 is connected in parallel with the third resistor R3, the UART_RXD pin of the bus interface J1 is electrically connected to the collector of the fourth transistor Q4, the collector of the fourth transistor Q4 is electrically connected to the VDD_EXT pin of the bus interface J1 through the twelfth resistor R12,The emitter of the fourth transistor Q4 is electrically connected to the PD5 pin of the target micro control unit U5, the base of the fourth transistor Q4 is electrically connected to the VDD_EXT pin of the bus interface J1 through the fourteenth resistor R14, the eighth capacitor C8 is connected in parallel with the fourteenth resistor R14, the UART_RTS pin of the bus interface J1 is electrically connected to the collector of the fifth transistor Q5, the collector of the fifth transistor Q5 is electrically connected to the input end of the thirteenth resistor R13, the output end of the thirteenth resistor R13 is electrically connected to the VDD_EXT pin of the bus interface J1 through the tenth resistor R10, the output end of the thirteenth resistor R13 is electrically connected to the output end of the sixth inductor L6 through the eleventh resistor R11, the emitter of the fifth transistor Q5 is electrically connected to the PD4 pin of the target micro control unit U5, the base of the fifth transistor Q5 is electrically connected to the output end of the thirteenth resistor R13 through the fifteenth resistor R15, the ninth capacitor C9 is connected in parallel with the fifteenth resistor R15, and the bus interface J1 is electrically connected to the VDD_EXT pin of the bus interface J1 through the tenth resistor R10. The UART_TXD pin of the bus interface J1 is electrically connected to the emitter of the seventh transistor Q7, the collector of the seventh transistor Q7 is electrically connected to the PD6 pin of the target micro control unit U5, the collector of the seventh transistor Q7 is electrically connected to the output end of the sixty-second resistor R62 through the sixteenth resistor R16, the base of the seventh transistor Q7 is electrically connected to the VDD_EXT pin of the bus interface J1 through the twenty-first resistor R21, the tenth capacitor C10 is connected in parallel with the twenty-first resistor R21, the PERST# pin of the bus interface J1 is electrically connected to the collector of the second transistor Q2, the collector of the second transistor Q2 is electrically connected to the VDD_EXT pin of the bus interface J1 through the fourth resistor R4, the emitter of the second transistor Q2 is electrically connected to the PB4 pin of the target micro control unit U5, the base of the second transistor Q2 is electrically connected to the VDD_EXT pin of the bus interface J1 through the sixth resistor R6, and the sixth capacitor C6 is connected in parallel with the sixth resistor R6;
[0060] In step 112, based on the first storage circuit and the second storage circuit, the storage medium status of the Internet of Things system is detected in a preset time period to obtain detection information of the storage medium status of the Internet of Things system as second detection information;
[0061] Specifically, a write test is performed on a storage medium in the first storage circuit or the second storage circuit, and a test file is written into the storage medium in the first storage circuit or the second storage circuit to obtain write test information;
[0062] Perform a read test on the storage medium in the first storage circuit or the second storage circuit, read the test file of the storage medium in the first storage circuit or the second storage circuit, and obtain read test information:
[0063] Verify the read test file, compare the read test file with the written test file, and obtain verification test information;
[0064] Performing a deletion test on the storage medium in the first storage circuit or the second storage circuit, deleting the test file in the storage medium in the first storage circuit or the second storage circuit, and obtaining deletion test information;
[0065] Writing test information, reading test information, verifying test information and deleting test information as second detection information;
[0066] Among them, Figure 8 As shown, the first storage circuit includes:
[0067] The first storage circuit includes: a memory card socket P12, a first pin of the memory card socket P12 is electrically connected to the output end of the sixty-second resistor R62 through the fortieth resistor R40, and the first pin of the memory card socket P12 is electrically connected to the PC10 pin of the target micro control unit U5 through the forty-second resistor R42; a second pin of the memory card socket P12 is electrically connected to the output end of the sixty-second resistor R62 through the thirty-ninth resistor R39, and a second pin of the memory card socket P12 is electrically connected to the PC11 pin of the target micro control unit U5 through the forty-third resistor R43; a third pin of the memory card socket P12 is electrically connected to the output end of the sixty-second resistor R62 through the thirty-eighth resistor R38, and a third pin of the memory card socket P12 is electrically connected to the PD2 pin of the target micro control unit U5 through the forty-fourth resistor R44; a fourth pin of the memory card socket P12 is electrically connected to the output end of the sixty-second resistor R62; a fifth pin of the memory card socket P12 is electrically connected to the sixty-second resistor R62 through the thirty-seventh resistor R37 The output end of R62 is electrically connected, the fifth pin of the memory card holder P12 is electrically connected to the PC12 pin of the target micro control unit U5 through the forty-fifth resistor R45, and the fifth pin of the memory card holder P12 is grounded through the thirty-second capacitor C32; the sixth pin of the memory card holder P12 is grounded; the seventh pin of the memory card holder P12 is electrically connected to the output end of the sixty-second resistor R62 through the thirty-sixth resistor R36, and the seventh pin of the memory card holder P12 is electrically connected to the PC8 pin of the target micro control unit U5 through the forty-sixth resistor R46; the eighth pin of the memory card holder P12 is electrically connected to the output end of the sixty-second resistor R62 through the thirty-fifth resistor R35, and the eighth pin of the memory card holder P12 is electrically connected to the PC9 pin of the target micro control unit U5 through the forty-ninth resistor R49; the ninth pin of the memory card holder P12 is grounded through the thirty-first capacitor C31, and the ninth pin of the memory card holder P12 is grounded through the first diode D1; the tenth pin of the memory card holder P12 is grounded;
[0068] like Fig. 9 As shown, the second storage circuit includes:
[0069] The second storage circuit includes: a memory chip U4, a first pin of the memory chip U4 is electrically connected to a PD8 pin of a target micro control unit U5, a second pin of the memory chip U4 is electrically connected to a PD11 pin of the target micro control unit U5, a third pin of the memory chip U4 is electrically connected to an output end of a sixty-second resistor R62 through a thirty-fourth resistor R34, a fourth pin of the memory chip U4 is grounded, a fifth pin of the memory chip U4 is electrically connected to a PD12 pin of the target micro control unit U5, a sixth pin of the memory chip U4 is electrically connected to a PD9 pin of the target micro control unit U5, a seventh pin of the memory chip U4 is grounded through a twenty-fourth capacitor C24, a seventh pin of the memory chip U4 is electrically connected to an output end of a sixty-second resistor R62 through a thirty-second resistor R32, an eighth pin of the memory chip U4 is electrically connected to an output end of the sixty-second resistor R62, and an eighth pin of the memory chip U4 is grounded through a twenty-second capacitor C22;
[0070] In step 113, based on the sensor data acquisition circuit, the sensor data of the Internet of Things system is detected in a preset time period to obtain the detection information of the sensor state of the Internet of Things system as the second detection information;
[0071] Specifically, the data collected by the sensor is read through the sensor data acquisition circuit to obtain the collected test information;
[0072] Compare the data collected by the sensor with the preset value range to obtain data test information;
[0073] Using the collected test information and the data test information as the third test information;
[0074] like Fig.10 As shown, the sensor data acquisition circuit includes:
[0075] The twelfth digital isolator chip U12, the first pin of the twelfth digital isolator chip U12 is electrically connected to the output end of the sixty-second resistor R63, the first pin of the twelfth digital isolator chip U12 is grounded through the sixty-second capacitor C62, the second pin and the eighth pin of the twelfth digital isolator chip U12 are grounded, the fourth pin of the twelfth digital isolator chip U12 is electrically connected to the PD0 pin of the target micro control unit U5, the sixth pin of the twelfth digital isolator chip U12 is electrically connected to the PD1 pin of the target micro control unit U5, the ninth pin of the twelfth digital isolator chip U12 is connected to the voltage ground, and the The fifteenth pin of the twelfth digital isolator chip U12 is connected to the voltage ground, the sixteenth pin of the twelfth digital isolator chip U12 is connected to the voltage ground through the sixty-third capacitor C63, and the sixteenth pin of the twelfth digital isolator chip U12 is electrically connected to the sixth pin of the isolated buck power supply module U10; the emitter of the twelfth transistor Q12 is connected to the voltage ground, the base of the twelfth transistor Q12 is electrically connected to the thirteenth pin of the twelfth digital isolator chip U12 through the seventy-sixth resistor R76, and the collector of the twelfth transistor Q12 is electrically connected to the sixth pin of the isolated buck power supply module U10 through the seventy-first resistor R71;The emitter of the eleventh transistor Q11 is connected to the voltage ground through the seventy-fifth resistor R75, the emitter of the eleventh transistor Q11 is electrically connected to the eleventh pin of the twelfth digital isolator chip U12, the collector of the eleventh transistor Q11 is electrically connected to the sixth pin of the isolated step-down power supply module U10, the base of the eleventh transistor Q11 is electrically connected to the first pin of the eleventh low-power transceiver U11 through the seventy-fifth resistor R70, and the first pin and the eighth pin of the eleventh low-power transceiver U11 are connected. The sixty-seventh resistor R67, the second pin and the third pin of the eleventh low-power transceiver U11 are electrically connected to the collector of the twelfth transistor Q12, the fourth pin and the fifth pin of the eleventh low-power transceiver U11 are connected to the voltage ground, the seventy-seventh resistor R77 is electrically connected between the sixth pin and the eighth pin of the eleventh low-power transceiver U11, the sixth pin of the eleventh low-power transceiver U11 is connected to the chassis ground through the ninth inductor L9 and the ninth ceramic discharge tube D9, and the connection point of the ninth inductor L9 and the ninth ceramic discharge tube D9 is connected to the first The eighth transient suppression diode D8 is connected between the fifth pins of the eleventh low-power transceiver U11, the seventh pin of the eleventh low-power transceiver U11 is connected to the chassis ground through the seventh inductor L7 and the tenth ceramic discharge tube D10, the seventh pin of the eleventh low-power transceiver U11 is connected to the voltage ground through the sixty-eighth resistor R68, the seventh transient suppression diode D7 is electrically connected between the connection point of the seventh inductor L7 and the tenth ceramic discharge tube D10 and the grounding point of the sixty-eighth resistor R68, and the seventh transient suppression diode D7 and the eighth transient suppression diode D8 are connected to each other. The seventy-second resistor R72 is electrically connected between the suppression diode D8, the eighth pin of the eleventh low-power transceiver U11 is connected to the voltage ground through the fifty-eighth capacitor C58, the eighth pin of the eleventh low-power transceiver U11 is electrically connected to the sixth pin of the isolated step-down power supply module U10, the connection point of the ninth inductor L9 and the ninth ceramic discharge tube D9 is electrically connected to the second pin of the sixteenth connector P16, and the connection point of the seventh inductor L7 and the tenth ceramic discharge tube D10 is electrically connected to the third pin of the sixteenth connector P16.;
[0076] In an optional embodiment of the present invention, step 12 includes:
[0077] Step 121, parsing the first detection information to obtain network fault information as first fault information;
[0078] Step 122, parsing the second detection information to obtain stored fault information as second fault information;
[0079] Step 123: parse the third detection information to obtain sensor fault information as third fault information.
[0080] In this embodiment, in step 121: the detection information of whether the Internet of Things system network is connected is used as the first detection information;
[0081] Parsing the first detection information of whether the Internet of Things system network is connected, if the first detection information is that the network is connected, then the Internet of Things system network has no fault, and if the first detection information is that the network cannot be connected, then there is a fault in the Internet of Things system network, and obtaining network fault information as the first fault information;
[0082] In step 122: write test information, read test information, verify test information and delete test information are used as second detection information; the second fault information may include: a plurality of storage fault information;
[0083] Parsing the write test information, if the write test information is written normally, there is no storage fault information, and if the write test information is unable to be written, there is write fault information, and obtaining first storage fault information;
[0084] Parse the read test information. If the read test information is a normal read, there is no storage fault information. If the read test information is unreadable, there is a read fault information, and obtain the second storage fault information.
[0085] Parsing the verification test information, if the contents of the read test file are the same as the written test file, there is no storage fault information, if the read test file is different from the written test file, third storage fault information is obtained;
[0086] Parse the deletion test information. If the deletion test information is normal, there is no storage fault information. If the deletion test information is unable to be deleted, fourth storage fault information is obtained.
[0087] In step 123: the collection test information and the data test information are used as the third detection information; the third fault information may include: multiple sensor fault information;
[0088] The collected test information is parsed. If the collected test information is normal, there is no sensor fault information. If the collected test information is unable to be collected, the first sensor fault information is obtained.
[0089] The data test information is parsed. If the data collected by the read sensor is within the preset value range, there is no sensor fault information. If the data collected by the read sensor is not within the preset value range, the second sensor fault information is obtained.
[0090] In an optional embodiment of the present invention, step 13 includes:
[0091] Step 131: Run a network fault automatic recovery mechanism according to the first fault information.
[0092] In this embodiment, when the first fault information is obtained, it indicates that there is a fault in the Internet of Things system network, and the network fault automatic recovery mechanism is run;
[0093] Specifically, the network connection circuit is powered by the cooperation of the first power control circuit and the second power control circuit. When there is a fault in the network connection, the target micro control unit U5 controls the on and off of the second power circuit to restart the network connection circuit. After completing one restart, the network connection is performed through the network connection circuit. The target micro control unit U5 obtains detection information of whether the Internet of Things system network is connected. When the detection information is that the network is connected, it indicates that the Internet of Things system network has returned to normal. If the detection information is that the network cannot be connected, the network connection circuit continues to be restarted until the detection information is that the network is connected.
[0094] When the number of restarts of the network connection circuit reaches a preset number, the target micro control unit U5 realizes the overall restart by controlling the on and off of the first power control circuit, and performs network connection through the network connection circuit. The target micro control unit U5 obtains the detection information of whether the Internet of Things system network is connected. When the detection information is that the network is connected, it indicates that the Internet of Things system network has returned to normal. If the detection information is that the network cannot be connected, wait for manual intervention;
[0095] Among them, Figure 4 As shown, the first power control circuit includes:
[0096] A synchronous buck voltage stabilizing chip U6, wherein the second pin of the synchronous buck voltage stabilizing chip U6 is electrically connected to the output end of the fifty-sixth resistor R56, the second pin of the synchronous buck voltage stabilizing chip U6 is grounded through the thirty-sixth capacitor C36, and the thirty-seventh capacitor C37 is connected in parallel with the thirty-sixth capacitor C36; a thirty-fifth capacitor C35 is electrically connected between the first pin and the third pin of the synchronous buck voltage stabilizing chip U6, the third pin of the synchronous buck voltage stabilizing chip U6 is electrically connected to the input end of the third inductor L3, the output end of the third inductor L3 is grounded through the thirty-eighth capacitor C38, the thirty-ninth capacitor C39, the fortieth capacitor C40 and the forty-first capacitor C41 are connected in parallel with the thirty-eighth capacitor C38, the output end of the third inductor L3 is electrically connected to the positive electrode of the forty-second capacitor C42, and the negative electrode of the forty-second capacitor C42 is grounded; the synchronous buck voltage stabilizing chip U6 The fifth pin of the synchronous buck voltage stabilizing chip U6 is electrically connected to the output end of the third inductor L3 through the fifty-seventh resistor R57, and the fifth pin of the synchronous buck voltage stabilizing chip U6 is grounded through the fifty-eighth resistor R58; the sixth pin of the synchronous buck voltage stabilizing chip U6 is grounded through the forty-third capacitor C43 and the sixtieth resistor R60; the fourth pin and the ninth pin of the synchronous buck voltage stabilizing chip U6 are grounded; the eighth pin of the synchronous buck voltage stabilizing chip U6 is grounded through the forty-fourth capacitor C44; the seventh pin of the synchronous buck voltage stabilizing chip U6 is grounded through the sixty-first resistor R61, and the seventh pin of the synchronous buck voltage stabilizing chip U6 is electrically connected to the PB6 pin of the target micro control unit U5 through the fifty-ninth resistor R59; the target micro control unit U5 realizes the on-off of the first power supply control circuit and realizes the overall restart by controlling the state of its PB6 pin;
[0097] like Figure 5 As shown, the second power control circuit includes:
[0098] The first pin of the synchronous buck converter U9 is grounded through the sixty-sixth resistor R66, the first pin of the synchronous buck converter U9 is electrically connected to the PB7 pin of the target micro control unit U5 through the sixty-fifth resistor R65, the second pin of the synchronous buck converter U9 is grounded, the third pin of the synchronous buck converter U9 is electrically connected to the input end of the sixth inductor L6, the output end of the sixth inductor L6 is grounded through the fifty-fourth capacitor C54, the fifty-fifth capacitor C55 is connected in parallel with the fifty-fourth capacitor C54, and the fourth pin of the synchronous buck converter U9 is connected to the fifty-sixth resistor R66. Capacitor C56 is grounded, the fifty-seventh capacitor C57 is connected in parallel with the fifty-sixth capacitor C56, the fourth pin of the synchronous buck converter U9 is electrically connected to the output end of the third inductor L3, the fifth pin of the synchronous buck converter U9 is electrically connected to the output end of the sixth inductor L6 through the sixty-third resistor R63, the fifty-third capacitor C53 is connected in parallel with the sixty-third resistor R63, and the fifth pin of the synchronous buck converter U9 is grounded through the sixty-fourth resistor R64; the target micro control unit U5 realizes the on and off of the second power supply control circuit and the restart of the network connection circuit through the state of the controller PB7 pin.
[0099] In an optional embodiment of the present invention, step 13 further includes:
[0100] Step 132: Execute an automatic storage medium switching mechanism according to the second fault information.
[0101] In this embodiment, when the second fault information is obtained, it indicates that the storage medium of the Internet of Things system has a fault, and the automatic storage medium switching mechanism is operated; wherein, when any one of the first storage fault information, the second storage fault information, the third storage fault information, and the fourth storage fault information is obtained, it indicates that the second fault information is obtained, and the storage medium of the Internet of Things system has a fault;
[0102] Specifically, the first storage circuit and the second storage circuit are powered by the first power control circuit and the third power control circuit;
[0103] First, the storage medium in the first storage circuit is used. When the storage medium in the first storage circuit fails and the storage medium in the second storage circuit is normal, the storage medium in the first storage circuit is remounted and the storage medium in the first storage circuit is tested. If there is no second fault information, the storage medium in the first storage circuit is restored to normal. If the second fault information is still obtained, the storage medium in the second storage circuit is switched to be used.
[0104] When both the storage medium in the first storage circuit and the storage medium in the second storage circuit fail, the target micro control unit U5 controls the on and off of the first power control circuit to achieve overall restart. After the overall restart is completed, the status of the storage medium in the first storage circuit and the storage medium in the second storage circuit are detected. If at least one of the storage medium in the first storage circuit and the storage medium in the second storage circuit is normal, the storage medium of the normal storage circuit is used; if both the storage medium in the first storage circuit and the storage medium in the second storage circuit fail, wait for manual intervention;
[0105] Among them, Figure 7 As shown, the third power control circuit includes:
[0106] The seventh linear regulator U7, the third pin of the seventh linear regulator U7 is electrically connected to the output end of the third inductor L3, the third pin of the seventh linear regulator U7 is grounded through the forty-fifth capacitor C45, the third pin of the seventh linear regulator U7 is electrically connected to the positive electrode of the forty-eighth capacitor C48, and the negative electrode of the forty-eighth capacitor C48 is grounded; the first pin of the seventh linear regulator U7 is grounded; the second pin and the fourth pin of the seventh linear regulator U7 are grounded through the forty-sixth capacitor C46, the second pin and the fourth pin of the seventh linear regulator U7 are electrically connected to the positive electrode of the forty-seventh capacitor C47, and the negative electrode of the forty-seventh capacitor C47 is grounded, the second pin and the fourth pin of the seventh linear regulator U7 are electrically connected to the positive electrode of the sixth diode D6, the negative electrode of the sixth diode D6 is electrically connected to the third pin of the low voltage difference linear regulator U8, and the second pin and the fourth pin of the seventh linear regulator U7 are electrically connected to the input end of the sixty-second resistor R62.
[0107] In an optional embodiment of the present invention, step 13 further includes:
[0108] Step 133: Execute a sensor recovery mechanism according to the third fault information.
[0109] In this embodiment, when the third fault information is obtained, it indicates that a sensor of the Internet of Things system is faulty, and a sensor recovery mechanism is run; wherein, obtaining any one of the first sensor fault information and the second sensor fault information indicates that the third fault information is obtained, and a sensor of the Internet of Things system is faulty;
[0110] Specifically, the sensor data acquisition circuit is powered by the cooperation of the first power control circuit and the fourth power control circuit. When the sensor of the Internet of Things system fails, the target micro control unit U5 restarts the sensor data acquisition circuit by controlling the on and off of the fourth power control circuit. After completing one restart, the sensor data of the Internet of Things system is detected by the sensor data acquisition circuit. When the data can be collected normally and the collected data is within the preset value range, it indicates that the sensor of the Internet of Things system has returned to normal. If the data cannot be collected normally or the collected data is not within the preset value range, it indicates that the sensor of the Internet of Things system has failed. Then the sensor data acquisition circuit continues to be restarted until the data can be collected normally and the collected data is within the preset value range.
[0111] When the restart times of the sensor data acquisition circuit reaches the preset times, the target microcontroller unit U5 realizes the overall restart by controlling the on and off of the first power supply control circuit, and detects the sensor data of the Internet of Things system through the sensor data acquisition circuit. When the data can be collected normally and the collected data is within the preset value range, it indicates that the sensor of the Internet of Things system has returned to normal. If the data cannot be collected normally or the collected data is not within the preset value range, it indicates that the sensor of the Internet of Things system has a fault and waits for manual intervention.
[0112] Among them, Fig.10 As shown, the fourth power control circuit includes:
[0113] The thirteenth transistor Q13, the emitter of the thirteenth transistor Q13 is grounded, the base of the thirteenth transistor Q13 is electrically connected to the PC0 pin of the target micro control unit U5 through the seventy-eighth resistor R78, the base of the thirteenth transistor Q13 is grounded through the seventy-ninth resistor R79, the collector of the thirteenth transistor Q13 is electrically connected to the output end of the third inductor L3 through the seventy-third resistor R73, the collector of the thirteenth transistor Q13 is electrically connected to the G pin of the tenth field effect transistor Q10 through the seventy-fourth resistor R74, the S pin of the tenth field effect transistor Q10 is electrically connected to the output end of the third inductor L3, and the A sixty-ninth resistor R69 is electrically connected between the S pin and the D pin, the D pin of the tenth field effect transistor Q10 is grounded through the fifty-ninth capacitor C59, the D pin of the tenth field effect transistor Q10 is electrically connected to the first pin of the isolated step-down power supply module U10 through the eighth inductor L8, the second pin of the isolated step-down power supply module U10 is grounded, the fourth pin of the isolated step-down power supply module U10 is connected to the voltage ground, and the sixth pin of the isolated step-down power supply module U10 is connected to the voltage ground through the sixtieth capacitor C60; the target micro control unit U5 realizes the on and off of the fourth power supply control circuit through the state of the controller PC0 pin, and realizes the restart of the sensor data acquisition circuit.
[0114] In an optional embodiment of the present invention, step 13 further includes:
[0115] Step 134: Upload the fault log using the first network transmission protocol or the second network transmission protocol.
[0116] In this embodiment, when the Internet of Things system network is normal, the fault log is uploaded through the Hypertext Transfer Protocol (HTTP) according to the preset upload time. If the upload fails, the fault log is uploaded through the File Transfer Protocol (FTP), and the local log file is deleted after success.
[0117] Uploading logs in the above manner can adapt to different network environments and application requirements, ensuring that logs can be uploaded and backed up in a timely manner.
[0118] Failure logging via asynchronous logging:
[0119] The implementation process of asynchronous logging:
[0120] Create a new registry: define the backend registry structure, define a structure to store the name, directory path, maximum number, maximum size and buffer size of the log file; define macro constants, define the log file root directory, define the size of a single log file, and define the log file buffer size; create a backend registry, the array contains the configuration information of the system log and motion log, including the name, directory path, maximum number, maximum size and buffer size of the log file;
[0121] File backend initialization: system log file backend initialization, define the system log file backend structure, define the system log file backend structure, initialize the system log file backend, including obtaining the file backend pointer, setting the parent backend, obtaining the filter, initializing the file backend and enabling it; motion log file backend initialization, define the motion log backend structure, define the motion log file backend structure, initialize the motion log file backend, including obtaining the file backend pointer, setting the parent backend, obtaining the filter, initializing the file backend and enabling it;
[0122] Define a log writing function: define a function to write log messages to the corresponding log file backend;
[0123] Define the background thread processing function: create a background thread for asynchronously writing logs;
[0124] Define a log closing function: define a function to close the log file backend when the program exits or logging needs to be stopped;
[0125] Asynchronous logging is implemented in the above manner, so that fault logs can be recorded through asynchronous logging, and log information can be recorded and stored without blocking the main application process; it can improve the performance of the IoT system, reduce latency, improve reliability, increase flexibility, and facilitate maintenance and expansion;
[0126] Specifically, the buffer is a ring buffer, which contains an array and three pointers (head pointer, tail pointer, number of elements). The ring buffer is used to temporarily store logs to avoid excessive memory consumption by log records.
[0127] Use log level filtering mode: define log levels, including DEBUG, INFO, WARN, ERROR, and FATAL, and record logs according to the log levels to ensure normal logging;
[0128] When storing logs, the storage medium of the first storage circuit (SD memory card) is used first. If the storage medium of the first storage circuit is not available, the storage medium of the second storage circuit (flash memory) is used; the available storage space of the storage medium is checked regularly, the log directory is scanned, a list of all log files is obtained, and a check is made as to whether the number of log files exceeds the set maximum number of files. If so, the files are sorted by modification time, and the oldest files are deleted until the number of log files does not exceed the set maximum number of files; the available storage space of the storage medium is checked regularly, and old logs are cleaned up to avoid exhaustion of storage space.
[0129] IoT system operation troubleshooting process:
[0130] Internet of Things system network function failure handling process:
[0131] Detecting the network connection status of the Internet of Things system in a preset time period, and obtaining detection information of whether the Internet of Things system network is connected as first detection information;
[0132] Parsing the first detection information of whether the Internet of Things system network is connected, if the first detection information is that the network is connected, then the Internet of Things system network has no fault, and if the first detection information is that the network cannot be connected, then there is a fault in the Internet of Things system network, and obtaining network fault information as the first fault information;
[0133] When the first fault information is obtained, it indicates that there is a fault in the Internet of Things system network, and the network fault automatic recovery mechanism is run. The target micro-control unit U5 restarts the network connection circuit by controlling the on and off of the second power supply circuit. After completing one restart, the network connection is performed through the network connection circuit. The target micro-control unit U5 obtains detection information on whether the Internet of Things system network is connected. When the detection information is that the network is connected, it indicates that the Internet of Things system network has returned to normal. If the detection information is that the network cannot be connected, the network connection circuit continues to be restarted until the detection information is that the network is connected;
[0134] When the number of restarts of the network connection circuit reaches a preset number, the target micro control unit U5 realizes the overall restart by controlling the on and off of the first power control circuit, and performs network connection through the network connection circuit. The target micro control unit U5 obtains the detection information of whether the Internet of Things system network is connected. When the detection information is that the network is connected, it indicates that the Internet of Things system network has returned to normal. If the detection information is that the network cannot be connected, wait for manual intervention;
[0135] By adopting the above process, the detection and automatic recovery of network failures of the IoT system can be realized, the network stability and self-healing ability of the IoT system can be improved, and the downtime of the IoT system caused by network failures can be reduced;
[0136] IoT system storage media failure handling process:
[0137] Performing a storage medium status detection on the Internet of Things system in a preset time period, performing a read test on the storage medium in the first storage circuit or the second storage circuit, reading a test file of the storage medium in the first storage circuit or the second storage circuit, and obtaining read test information; verifying the read test file, comparing the read test file with the written test file, and obtaining verification test information; performing a deletion test on the storage medium in the first storage circuit or the second storage circuit, deleting the test file in the storage medium in the first storage circuit or the second storage circuit, and obtaining deletion test information; using the write test information, the read test information, the verification test information, and the deletion test information as the second detection information;
[0138] The write test information is parsed. If the write test information is written normally, there is no storage fault information. If the write test information cannot be written, there is write fault information, and the first storage fault information is obtained; the read test information is parsed. If the read test information is read normally, there is no storage fault information. If the read test information cannot be read, there is read fault information, and the second storage fault information is obtained; the verification test information is parsed. If the content of the read test file is the same as the content of the written test file, there is no storage fault information. If the read test file is different from the written test file, the third storage fault information is obtained; the deletion test information is parsed. If the deletion test information is deleted normally, there is no storage fault information. If the deletion test information cannot be deleted, the fourth storage fault information is obtained; if any one of the first storage fault information, the second storage fault information, the third storage fault information and the fourth storage fault information is obtained, the second fault information is obtained, and the storage medium of the Internet of Things system has a fault;
[0139] When the storage medium in the first storage circuit fails and the storage medium in the second storage circuit is normal, the storage medium in the first storage circuit is remounted and the storage medium in the first storage circuit is detected. If there is no second fault information, the storage medium in the first storage circuit returns to normal. If the second fault information is still obtained, the storage medium in the second storage circuit is switched to be used. When both the storage medium in the first storage circuit and the storage medium in the second storage circuit fail, the target microcontroller unit U5 controls the on and off of the first power supply control circuit to achieve overall restart. After the overall restart is completed, the status of the storage medium in the first storage circuit and the storage medium in the second storage circuit are detected. If at least one of the storage medium in the first storage circuit and the storage medium in the second storage circuit is normal, the storage medium of the normal storage circuit is used. If both the storage medium in the first storage circuit and the storage medium in the second storage circuit fail, wait for manual intervention.
[0140] By adopting the above process, the storage medium failure detection and automatic recovery of the IoT system can be realized, and the reliability of the storage medium of the IoT system can be ensured. When the storage medium failure of the IoT system is detected, it can quickly switch to other storage media to avoid data loss.
[0141] IoT system sensor fault handling process:
[0142] Performing sensor data detection on the Internet of Things system in a preset time period, reading the data collected by the sensor through the sensor data acquisition circuit to obtain acquisition test information, comparing the read data collected by the sensor with a preset value range to obtain data test information, and using the acquisition test information and the data test information as third detection information;
[0143] The collected test information is parsed. If the collected test information is collected normally, there is no sensor fault information. If the collected test information is unable to be collected, the first sensor fault information is obtained. The data test information is parsed. If the data collected by the read sensor is within a preset value range, there is no sensor fault information. If the data collected by the read sensor is not within the preset value range, the second sensor fault information is obtained.
[0144] The first sensor fault information and the second sensor fault information are used as the third fault information; when the third fault information is obtained, it indicates that the sensor of the Internet of Things system has a fault, and the sensor recovery mechanism is run; the target micro-control unit U5 controls the on-off of the fourth power supply control circuit to restart the sensor data acquisition circuit. After completing one restart, the sensor data of the Internet of Things system is detected through the sensor data acquisition circuit. When the data can be collected normally and the collected data is within the preset value range, it indicates that the sensor of the Internet of Things system has recovered to normal. If the data cannot be collected normally or the collected data is not within the preset value range, it indicates that the sensor of the Internet of Things system has a fault, and the sensor data acquisition circuit is restarted continuously until the data can be collected normally and the collected data is within the preset value range; when the number of restarts of the sensor data acquisition circuit reaches the preset number, the target micro-control unit U5 controls the on-off of the first power supply control circuit to restart the whole system, and detects the sensor data of the Internet of Things system through the sensor data acquisition circuit. When the data can be collected normally and the collected data is within the preset value range, it indicates that the sensor of the Internet of Things system has recovered to normal. If the data cannot be collected normally or the collected data is not within the preset value range, it indicates that the sensor of the Internet of Things system has a fault and waits for manual intervention;
[0145] The above process can realize the detection and automatic recovery of sensor failures in the IoT system, improve the accuracy and stability of sensor data collection in the IoT system, ensure timely recovery when data is abnormal, and improve the overall reliability of the IoT system.
[0146] Asynchronous logging records fault logs and records and stores log information without blocking the main application process. This can improve the performance of the IoT system, reduce latency, increase reliability, improve flexibility, and facilitate maintenance and expansion.
[0147] When the Internet of Things system network is normal, the fault log is uploaded through the Hypertext Transfer Protocol (HTTP) according to the preset upload time. If the upload fails, the fault log is uploaded through the File Transfer Protocol (FTP). After success, the local log file is deleted; it can adapt to different network environments and application requirements to ensure that the log can be uploaded and backed up in time;
[0148] The method for handling faults in the operation of the Internet of Things system of the present application improves the fault handling capability of the Internet of Things system. When a serious fault occurs, it can quickly respond and record fault information to facilitate subsequent analysis and maintenance.
[0149] like Fig.12 As shown, an embodiment of the present invention further provides an Internet of Things system operation fault processing device 200, comprising:
[0150] An acquisition module 201 is used to acquire at least one detection information of a preset time period of the Internet of Things system;
[0151] The processing module 202 is used to parse the at least one detection information to obtain fault information; according to the fault information, run the automatic recovery mechanism, record the fault log and upload the fault log; wherein the fault log is recorded through asynchronous logging.
[0152] Optionally, obtaining at least one detection information of a preset time period of the Internet of Things system includes:
[0153] Obtaining first detection information of a network connection status detection of the Internet of Things system during a preset time period;
[0154] Acquire second detection information of storage medium status detection in a preset time period of the Internet of Things system;
[0155] The third detection information of the sensor data detection in the preset time period of the Internet of Things system is obtained.
[0156] Optionally, parsing the at least one detection information to obtain fault information includes:
[0157] Parsing the first detection information to obtain network fault information as first fault information;
[0158] parsing the second detection information to obtain stored fault information as second fault information;
[0159] The third detection information is parsed to obtain sensor fault information as third fault information.
[0160] Optionally, according to the fault information, an automatic recovery mechanism is run, a fault log is recorded and the fault log is uploaded, including:
[0161] According to the first fault information, a network fault automatic recovery mechanism is run.
[0162] Optionally, according to the fault information, an automatic recovery mechanism is run, a fault log is recorded and the fault log is uploaded, further comprising:
[0163] According to the second fault information, an automatic storage medium switching mechanism is executed.
[0164] Optionally, according to the fault information, an automatic recovery mechanism is run, a fault log is recorded and the fault log is uploaded, further comprising:
[0165] A sensor recovery mechanism is executed according to the third fault information.
[0166] Optionally, according to the fault information, running an automatic recovery mechanism, recording a fault log and uploading the fault log, further comprising:
[0167] The fault log is uploaded using the first network transmission protocol or the second network transmission protocol.
[0168] The embodiment of the present invention further provides a computing device, including: a processor, a memory storing a computer program, and when the computer program is executed by the processor, the method described in the above embodiment is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0169] In an embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions, and when the instructions are executed on a computer, the computer executes the method described in the above embodiment. All implementations in the above method embodiment are applicable to this embodiment, and can also achieve the same technical effect.
[0170] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0171] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0172] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0173] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0174] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0175] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0176] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
[0177] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0178] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for handling operation failures of an Internet of Things system, characterized in that: include: Obtain at least one kind of detection information of a preset time period of the Internet of Things system; Analyze the at least one detection information to obtain fault information; According to the fault information, an automatic recovery mechanism is run to record a fault log and upload the fault log; wherein the fault log is recorded through an asynchronous log.
2. The method for handling operation failure of the Internet of Things system according to claim 1, characterized in that: Obtain at least one detection information of the IoT system in a preset time period, including: Obtaining first detection information of a network connection status detection of the Internet of Things system during a preset time period; Acquire second detection information of storage medium status detection in a preset time period of the Internet of Things system; The third detection information of the sensor data detection in the preset time period of the Internet of Things system is obtained.
3. The method for handling operation failure of the Internet of Things system according to claim 2, characterized in that: Parsing the at least one detection information to obtain fault information includes: Parsing the first detection information to obtain network fault information as first fault information; parsing the second detection information to obtain stored fault information as second fault information; The third detection information is parsed to obtain sensor fault information as third fault information.
4. The method for handling operation failure of the Internet of Things system according to claim 3 is characterized in that: According to the fault information, an automatic recovery mechanism is run, a fault log is recorded and uploaded, including: According to the first fault information, a network fault automatic recovery mechanism is run.
5. The method for handling operation failure of the Internet of Things system according to claim 3 is characterized in that: According to the fault information, an automatic recovery mechanism is run, a fault log is recorded and uploaded, and the method further includes: According to the second fault information, an automatic storage medium switching mechanism is executed.
6. The method for handling operation failure of the Internet of Things system according to claim 3, characterized in that: According to the fault information, an automatic recovery mechanism is run, a fault log is recorded and uploaded, and the method further includes: A sensor recovery mechanism is executed according to the third fault information.
7. The method for handling operation failure of the Internet of Things system according to claim 1, characterized in that: According to the fault information, an automatic recovery mechanism is run, a fault log is recorded and uploaded, and the method further includes: The fault log is uploaded using the first network transmission protocol or the second network transmission protocol.
8. An Internet of Things system operation fault processing device, characterized in that: include: An acquisition module, used to acquire at least one detection information of a preset time period of the Internet of Things system; A processing module, used for analyzing the at least one detection information to obtain fault information; According to the fault information, an automatic recovery mechanism is run to record a fault log and upload the fault log; wherein the fault log is recorded through an asynchronous log.
9. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is performed.
10. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Fault recovery method and device of cloud computing server and management system
CN108632057A
Method and apparatus for handling server failure
CN109062723A
System fault repairing method and device, electronic equipment and storage medium
CN115098298A
Fault identification method and device, monitoring terminal and readable storage medium
CN116132935A
RTU fault log generation and storage method
CN117792881A
