Firmware program monitoring method and device based on embedded Linux system

By adopting the firmware program monitoring method based on embedded Linux system in network surveillance camera equipment, the full monitoring and fault handling of subsystem modules are achieved, and the problems of equipment firmware stability and fault recovery are solved, and unattended operation is achieved Maintenance protection and stable operation of equipment.

CN119473679APending Publication Date: 2025-02-18E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411558750.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

After the network surveillance camera equipment integrates and enriches business functions, firmware stability faces challenges, resulting in device failure and inactivation of functions, which cannot be restored on its own, affecting the continuous and stable operation of the equipment.

Method used

Adopt the firmware program monitoring method based on embedded Linux system, and by creating a software guarding main thread module and adding a new firmware program guarding processing module, the full monitoring of the network monitoring camera system subsystem module is realized, faults are discovered, recorded and processed, and faults are reduced. Manual intervention needs.

Benefits of technology

It realizes unmanned operation and maintenance protection of the network surveillance camera system subsystem module, reduces the failure recovery time, and improves the overall stability and reliability of the equipment firmware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473679A_ABST
    Figure CN119473679A_ABST
Patent Text Reader

Abstract

The invention relates to a firmware program monitoring method and device based on an embedded Linux system, and belongs to the technical field of program monitoring, the method comprises the following steps: creating a network monitoring camera system software nursing main thread module, and adding a firmware program nursing processing module; starting a network monitoring camera system, initially executing the initialization of the development suite, and starting a newly added firmware program nursing processing module; a subsystem module in the network monitoring camera system is registered to a software nursing main thread module of the network monitoring camera system through a registration interface of the firmware program nursing processing module; the monitoring module checks whether a fault module exists in subsystem modules in the network monitoring camera system; and if a fault module exists, the firmware program nursing processing module obtains and records fault information of the fault module, and executes an abnormal fault processing task to complete fault recovery. According to the invention, whole-process monitoring can be carried out on the operation of the subsystem modules in the network monitoring camera system, and faults can be found and processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of program monitoring, and in particular relates to a method and a device for monitoring a firmware program based on an embedded Linux system. Background Art

[0002] With the continuous development and growth of the home security business, the functions and scenarios that need to be supported by the software are also increasing. The visual network terminal access middleware that provides terminal manufacturers with docking has integrated more and more functions, and the amount of software code and the business processed have also increased accordingly. The docking firmware is uneven, and the stability faces serious challenges. All software on the network surveillance camera needs to run uninterruptedly 24 hours a day and ensure the normal operation of all functions or core functions. The current device has a random function problem, but the device cannot be restored in time or cannot be restored to normal operation, resulting in serious stability problems such as equipment failure. In order to ensure that the network surveillance camera device has integrated a wealth of business functions, the system firmware can work normally, continuously and stably, the device functions can run stably, and can recover and record faults by itself, provide customers with continuous and stable product services, and improve the overall stability of the device firmware, the software must be improved, and targeted optimization solutions need to be studied. Summary of the invention

[0003] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a method and device for monitoring firmware programs based on an embedded Linux system, which can monitor the entire operation of subsystem modules in a network surveillance camera system, discover, record and handle faults, reduce the need for manual intervention, and realize unattended operation and maintenance protection.

[0004] The first aspect of the present invention provides a method for monitoring a firmware program based on an embedded Linux system, comprising:

[0005] Create the main thread module for network surveillance camera system software maintenance and add the firmware program maintenance processing module;

[0006] Start the network surveillance camera system, perform the initialization of the development kit, and start the newly added firmware program care processing module;

[0007] The subsystem module in the network monitoring camera system is registered to the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module;

[0008] The monitoring module based on the message queue checks whether there is a faulty module in the subsystem modules in the network monitoring camera system;

[0009] If the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the fault information interface and the fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

[0010] Furthermore, the above method based on embedded Linux system firmware program monitoring also includes:

[0011] Receive the user's operation of exiting the subsystem module;

[0012] The corresponding subsystem module is deregistered in the network monitoring camera system software maintenance main thread module through the deregistration maintenance interface of the firmware program maintenance processing module.

[0013] Furthermore, the above method based on embedded Linux system firmware program monitoring also includes:

[0014] Receive the user's operation of adding a subsystem module;

[0015] The corresponding subsystem module is added in the network monitoring camera system software monitoring main thread module through the firmware program monitoring processing module's add monitoring interface.

[0016] Furthermore, in the above method based on embedded Linux system firmware program monitoring, a network surveillance camera system software monitoring main thread module is created, including:

[0017] Based on thread structured data communication to monitor all functions and applications in the network surveillance camera system firmware, create a network surveillance camera system software monitoring main thread module;

[0018] Among them, the network monitoring camera system software care main thread module is used to care for the threads and processes of the subsystem modules in the network monitoring camera system.

[0019] Furthermore, in the above-mentioned method based on embedded Linux system firmware program monitoring, the subsystem module in the network monitoring camera system is registered to the subsystem module in the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module, and at least includes:

[0020] Real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module;

[0021] The registration interface includes: subsystem module name, subsystem module maximum inactivation time, and subsystem module exception handling function.

[0022] Furthermore, in the above-mentioned method based on embedded Linux system firmware program monitoring, the monitoring module based on the message queue checks whether there is a faulty module in the subsystem module in the network monitoring camera system, including:

[0023] The monitoring module based on the message queue performs thread structured data inspection on the subsystem modules in the network monitoring camera system one by one;

[0024] The subsystem module in the network surveillance camera system sends thread structured data communication information to the network surveillance camera system software care main thread module within a preset time interval;

[0025] Check whether the subsystem module has exceeded the set maximum inactivation time and has not sent the thread structured data communication information to the network surveillance camera system software care main thread module;

[0026] If the check result is that the subsystem module has exceeded the set maximum inactivation time and has not sent thread structured data communication information to the network surveillance camera system software care main thread module, it is determined that there is a faulty module.

[0027] Furthermore, in the above-mentioned method based on embedded Linux system firmware program monitoring, the subsystem module in the network monitoring camera system sends thread structured data communication information on demand to the multiple optional Linux system communication methods used in the network monitoring camera system software care main thread module.

[0028] The second aspect of the present invention further proposes a device for monitoring a firmware program based on an embedded Linux system, comprising:

[0029] Creation module: used to create the network surveillance camera system software care main thread module, and add a firmware program care processing module;

[0030] Startup module: used to start the network surveillance camera system, perform initialization of the development kit, and start the new firmware program care processing module;

[0031] Registration module: used for the subsystem module in the network monitoring camera system to register with the network monitoring camera system software care main thread module through the registration interface of the firmware program care processing module;

[0032] Check module: a monitoring module based on a message queue is used to check whether there is a faulty module in the subsystem modules in the network monitoring camera system;

[0033] Execution module: If the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the fault information interface and fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

[0034] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor and a memory;

[0035] The processor is used to execute any of the above methods for monitoring embedded Linux system firmware programs by calling programs or instructions stored in the memory.

[0036] In a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any of the above methods for monitoring a firmware program based on an embedded Linux system.

[0037] The beneficial effects of the present invention are as follows: the present invention creates a network surveillance camera system software care main thread module, adds a firmware program care processing module; starts the network surveillance camera system, initially executes the development kit initialization, and starts the newly added firmware program care processing module; the subsystem module in the network surveillance camera system is registered to the network surveillance camera system software care main thread module through the registration interface of the firmware program care processing module; the monitoring module based on the message queue checks whether there is a faulty module in the subsystem module in the network surveillance camera system; if the inspection result is that there is a faulty module in the subsystem module in the network surveillance camera system, the fault information interface and the fault processing interface in the firmware program care processing module obtain the fault information of the faulty module and record it, execute the abnormal fault processing task, and complete the fault recovery. The present invention can monitor the subsystem modules in the network surveillance camera system throughout the operation, discover faults, record faults and handle faults, reduce the need for manual intervention, and realize unattended operation and maintenance protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0039] Figure 1 A method for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention Figure 1 ;

[0040] Figure 2A method for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention Figure 2 ;

[0041] Figure 3 A method for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention Figure 3 ;

[0042] Figure 4 A method diagram for checking whether there is a faulty module in a subsystem module provided by an embodiment of the present invention;

[0043] Figure 5 A diagram of a device for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention;

[0044] Figure 6 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0046] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0047] In the description of the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be internal communication between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0049] The present invention proposes a method, device, electronic device and storage medium based on embedded Linux system firmware program monitoring, which can monitor the operation of subsystem modules in a network monitoring camera system throughout the entire process, discover faults, record faults and handle faults, reduce the need for manual intervention, and realize unattended operation and maintenance protection.

[0050] Before introducing the embodiments of the present invention, professional terms involved in the present invention are first introduced.

[0051] "Network Camera" or "Network Surveillance Camera": is a digital video camera that uses Internet Protocol (IP) for data transmission and monitoring.

[0052] Linux: is an open source, Unix-based operating system that was first released by Linus Torvalds in 1991 and quickly developed into a powerful community-driven operating system.

[0053] Method Embodiment

[0054] Figure 1 A method for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention Figure 1 .

[0055] The first aspect of the present invention proposes a method for monitoring firmware programs based on an embedded Linux system, combining Figure 1 , including five steps from S1 to S5:

[0056] S1: Create the network surveillance camera system software maintenance main thread module and add a firmware program maintenance processing module.

[0057] Specifically, in the embodiment of the present invention, the creation of a network surveillance camera system software care main thread module is based on thread-structured data communication to care for all functions and applications in the network surveillance camera system firmware; wherein the network surveillance camera system software care main thread module is used to care for the threads and processes of the subsystem modules in the network surveillance camera system, and the firmware program care processing module is used to provide a registration interface, a fault information interface, a fault handling interface, a deregistration care interface, and an addition care interface, etc.

[0058] S2: Start the network surveillance camera system, perform the initialization of the development kit, and start the newly added firmware program care processing module.

[0059] Specifically, in the embodiment of the present invention, after the network monitoring camera system is started, the development kit initialization is initially executed, and the newly added firmware program care processing module is started along with the initial execution of the development kit initialization.

[0060] S3: The subsystem module in the network monitoring camera system is registered in the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module.

[0061] Specifically, in the embodiment of the present invention, the subsystem modules at least include: real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module; the registration interface includes: subsystem module name, subsystem module maximum inactivation time and subsystem module exception handling function. The subsystem modules such as real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module are registered to the network surveillance camera system software care main thread module through the registration interface, so that the network surveillance camera system software care main thread module has the name of each subsystem module, the maximum inactivation time and the exception handling function.

[0062] S4: The monitoring module based on the message queue checks whether there is a faulty module in the subsystem modules in the network monitoring camera system.

[0063] Specifically, in the embodiment of the present invention, the monitoring module based on the message queue can quickly check the fault conditions of the subsystem modules in the network monitoring camera system and reduce the impact range of the fault.

[0064] S5: If the inspection result shows that there is a faulty module in the subsystem modules in the network surveillance camera system, the fault information interface and the fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

[0065] Specifically, in the embodiment of the present invention, if the inspection result shows that there is a faulty module in the subsystem modules in the network surveillance camera system, the fault can be discovered, recorded and processed, reducing the need for manual intervention and achieving unattended operation and maintenance protection.

[0066] Figure 2 A method for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention Figure 2 .

[0067] Furthermore, the above method based on embedded Linux system firmware program monitoring, combined with Figure 2 , and also includes two steps S21 to S22:

[0068] S21: receiving an operation of exiting a subsystem module from a user;

[0069] S22: deregistering the corresponding subsystem module in the network surveillance camera system software maintenance main thread module through the deregistration maintenance interface of the firmware program maintenance processing module.

[0070] Specifically, in the embodiment of the present invention, the care of the subsystem module can be flexibly cancelled through the deregistration care interface of the firmware program care processing module.

[0071] Figure 3 A method for monitoring firmware programs based on an embedded Linux system provided by an embodiment of the present invention Figure 3 .

[0072] Furthermore, the above method based on embedded Linux system firmware program monitoring, combined with Figure 3 , and also includes two steps S31 to S32:

[0073] S31: receiving an operation of adding a subsystem module by a user;

[0074] S32: adding a corresponding subsystem module in the network surveillance camera system software maintenance main thread module through the adding maintenance interface of the firmware program maintenance processing module.

[0075] Specifically, in the embodiment of the present invention, the supervision of the subsystem module can be flexibly added through the added supervision interface of the firmware program supervision processing module, and the firmware stability can be flexibly and autonomously guaranteed without increasing the system CPU and hardware resources.

[0076] In some embodiments, the system firmware process in a different process from the main thread module of the network surveillance camera system software uses the Linux system inter-process communication interface to implement structured data communication and transmit relevant information corresponding to adding and canceling monitoring.

[0077] Furthermore, in the above method based on embedded Linux system firmware program monitoring, a network surveillance camera system software monitoring main thread module is created, including:

[0078] Based on thread structured data communication to monitor all functions and applications in the network surveillance camera system firmware, create a network surveillance camera system software monitoring main thread module;

[0079] Among them, the network monitoring camera system software care main thread module is used to care for the threads and processes of the subsystem modules in the network monitoring camera system.

[0080] Specifically, in the embodiment of the present invention, thread structured data communication can be based on Linux system communication between threads and processes, and multiple thread subsystem modules in the main thread module can use thread structured data communication.

[0081] Furthermore, in the above-mentioned method based on embedded Linux system firmware program monitoring, the subsystem module in the network monitoring camera system is registered to the subsystem module in the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module, and at least includes:

[0082] Real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module;

[0083] The registration interface includes: subsystem module name, subsystem module maximum inactivation time, and subsystem module exception handling function.

[0084] Specifically, in the embodiment of the present invention, the maximum deactivation time can be flexibly set through the registration interface, so as to flexibly and autonomously ensure the stability of the firmware.

[0085] In some embodiments, the firmware program care processing module also includes: an active thread structured data information packet interface, which can flexibly update the subsystem module active information, and further flexibly and autonomously ensure the stability of the firmware.

[0086] Figure 4 A diagram of a method for checking whether there is a faulty module in a subsystem module provided by an embodiment of the present invention.

[0087] Furthermore, in the above-mentioned method for monitoring the firmware program of the embedded Linux system, the monitoring module based on the message queue checks whether there is a faulty module in the subsystem module of the network monitoring camera system, and combines Figure 4 , including four steps from S41 to S44:

[0088] S41: The monitoring module based on the message queue performs thread structured data inspection on the subsystem modules in the network monitoring camera system one by one;

[0089] S42: The subsystem module in the network surveillance camera system sends the thread structured data communication information to the network surveillance camera system software care main thread module within a preset time interval;

[0090] S43: Check whether there is a subsystem module that has not sent thread structured data communication information to the network surveillance camera system software care main thread module for a period exceeding the set maximum inactivation time;

[0091] S44: If the check result shows that a subsystem module has exceeded the set maximum inactivation time and has not sent thread structured data communication information to the network surveillance camera system software care main thread module, it is determined that there is a faulty module.

[0092] Specifically, in the embodiment of the present invention, under normal circumstances, the subsystem module in the network surveillance camera system sends thread structured data communication information to the network surveillance camera system software care main thread module within a preset time interval. If the subsystem module has not sent the thread structured data communication information to the network surveillance camera system software care main thread module after exceeding the set maximum inactivation time, the corresponding module that has not sent the thread structured data communication information to the network surveillance camera system software care main thread module is determined to be a faulty module.

[0093] Furthermore, in the above-mentioned method based on embedded Linux system firmware program monitoring, the subsystem module in the network monitoring camera system sends thread structured data communication information on demand to the multiple optional Linux system communication methods used in the network monitoring camera system software care main thread module.

[0094] Specifically, in the embodiment of the present invention, the multiple optional Linux system communication modes may be unnamed pipes, named pipes, message queues, sockets and the like.

[0095] Device Embodiment

[0096] Figure 5 A diagram of a device for monitoring firmware programs based on an embedded Linux system provided in an embodiment of the present invention.

[0097] The second aspect of the present invention also proposes a device based on embedded Linux system firmware program monitoring, combined with Figure 5 ,include:

[0098] Creation module 51: used to create a network surveillance camera system software care main thread module, and add a firmware program care processing module.

[0099] Specifically, in the embodiment of the present invention, the creation module 51 creates the network surveillance camera system software care main thread module based on thread-structured data communication to care for all functions and applications in the network surveillance camera system firmware; wherein, the network surveillance camera system software care main thread module is used to care for the threads and processes of the subsystem modules in the network surveillance camera system, and the firmware program care processing module is used to provide a registration interface, a fault information interface, a fault handling interface, a deregistration care interface, and an addition care interface, etc.

[0100] The startup module 52 is used to start the network surveillance camera system, initially execute the development kit initialization, and start the newly added firmware program care processing module.

[0101] Specifically, in the embodiment of the present invention, the startup module 52 is used to initially execute the development kit initialization after the network monitoring camera system is started, and the newly added firmware program care processing module is started along with the initial execution of the development kit initialization.

[0102] Registration module 53: used for the subsystem module in the network monitoring camera system to register with the network monitoring camera system software care main thread module through the registration interface of the firmware program care processing module.

[0103] Specifically, in the embodiment of the present invention, the subsystem modules at least include: real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module; the registration interface includes: subsystem module name, subsystem module maximum inactivation time and subsystem module exception handling function. The subsystem modules such as real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module are registered in the network surveillance camera system software care main thread module through the registration interface of the registration module 53, so that the network surveillance camera system software care main thread module has the name of each subsystem module, the maximum inactivation time and the exception handling function.

[0104] Checking module 54: a monitoring module for checking whether there is a faulty module in the subsystem modules in the network monitoring camera system based on the message queue.

[0105] Specifically, in the embodiment of the present invention, the checking module 54 of the monitoring module based on the message queue can quickly check the fault conditions of the subsystem modules in the network monitoring camera system and reduce the impact range of the fault.

[0106] Execution module 55: if the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the fault information interface and fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

[0107] Specifically, in the embodiment of the present invention, if the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the execution module 55 obtains the fault information, records the fault information and handles the fault, which reduces the need for manual intervention and realizes unattended operation and maintenance protection.

[0108] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor and a memory;

[0109] The processor is used to execute any of the above methods for monitoring embedded Linux system firmware programs by calling programs or instructions stored in the memory.

[0110] In a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any of the above methods for monitoring firmware programs based on an embedded Linux system.

[0111] Figure 6 It is a schematic block diagram of an electronic device provided by an embodiment of the present invention.

[0112] like Figure 6 As shown, the electronic device includes: at least one processor 601, at least one memory 602 and at least one communication interface 603. The various components in the electronic device are coupled together through a bus system 604. The communication interface 603 is used to transmit information between external devices. It can be understood that the bus system 604 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 604 .

[0113] It can be understood that the memory 602 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.

[0114] In some implementations, the memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.

[0115] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program that implements any method of the method for monitoring embedded Linux system firmware program provided in the embodiment of the present invention can be included in the application.

[0116] In an embodiment of the present invention, the processor 601 calls a program or instruction stored in the memory 602, specifically, a program or instruction stored in an application, and the processor 601 is used to execute the steps of each embodiment of the method for embedded Linux system firmware program monitoring provided in an embodiment of the present invention.

[0117] Create the main thread module for network surveillance camera system software maintenance and add the firmware program maintenance processing module;

[0118] Start the network surveillance camera system, perform the initialization of the development kit, and start the newly added firmware program care processing module;

[0119] The subsystem module in the network monitoring camera system is registered to the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module;

[0120] The monitoring module based on the message queue checks whether there is a faulty module in the subsystem modules in the network monitoring camera system;

[0121] If the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the fault information interface and the fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

[0122] Any of the methods for monitoring the firmware program of an embedded Linux system provided in an embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in the form of software. The above processor 601 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, 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 devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0123] The steps of any method in the method for monitoring the firmware program of the embedded Linux system provided by the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software units in the decoding processor. The software unit can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with its hardware.

[0124] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.

[0125] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0126] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

[0127] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for monitoring firmware programs based on an embedded Linux system, characterized in that: include: Create the main thread module for network surveillance camera system software maintenance and add the firmware program maintenance processing module; Start the network surveillance camera system, perform the initialization of the development kit, and start the newly added firmware program care processing module; The subsystem module in the network monitoring camera system is registered to the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module; The monitoring module based on the message queue checks whether there is a faulty module in the subsystem modules in the network monitoring camera system; If the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the fault information interface and the fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

2. The method for monitoring firmware program based on embedded Linux system according to claim 1, characterized in that: The method further comprises: Receive the user's operation of exiting the subsystem module; The corresponding subsystem module is deregistered in the network monitoring camera system software maintenance main thread module through the deregistration maintenance interface of the firmware program maintenance processing module.

3. The method for monitoring firmware program based on embedded Linux system according to claim 1, characterized in that: The method further comprises: Receive the user's operation of adding a subsystem module; The corresponding subsystem module is added in the network monitoring camera system software monitoring main thread module through the firmware program monitoring processing module's add monitoring interface.

4. The method for monitoring firmware program based on embedded Linux system according to claim 1, characterized in that: The method of creating a network surveillance camera system software care main thread module includes: Based on thread structured data communication to monitor all functions and applications in the network surveillance camera system firmware, create a network surveillance camera system software monitoring main thread module; Among them, the network monitoring camera system software care main thread module is used to care for the threads and processes of the subsystem modules in the network monitoring camera system.

5. The method for monitoring firmware program based on embedded Linux system according to claim 1, characterized in that: The subsystem modules in the network monitoring camera system are registered to the network monitoring camera system software monitoring main thread module through the registration interface of the firmware program monitoring processing module. The subsystem modules at least include: Real-time video preview module, TF card video recording and playback module, cloud storage video module, remote device control module, platform interaction module and AI algorithm module; The registration interface includes: subsystem module name, subsystem module maximum inactivation time, and subsystem module exception handling function.

6. The method for monitoring firmware program based on embedded Linux system according to claim 1, characterized in that: The monitoring module based on the message queue checks whether there are any faulty modules in the subsystem modules in the network surveillance camera system, including: The monitoring module based on the message queue performs thread structured data inspection on the subsystem modules in the network monitoring camera system one by one; The subsystem module in the network surveillance camera system sends thread structured data communication information to the network surveillance camera system software care main thread module within a preset time interval; Check whether the subsystem module has exceeded the set maximum inactivation time and has not sent the thread structured data communication information to the network surveillance camera system software care main thread module; If the check result is that the subsystem module has exceeded the set maximum inactivation time and has not sent thread structured data communication information to the network surveillance camera system software care main thread module, it is determined that there is a faulty module.

7. The method for monitoring embedded Linux system firmware program according to claim 6, characterized in that: The subsystem modules in the network monitoring camera system send thread structured data communication information on demand to the network monitoring camera system software to take care of multiple optional Linux system communication methods used in the main thread module.

8. A device for monitoring firmware programs based on an embedded Linux system, characterized in that: include: Creation module: used to create the network surveillance camera system software care main thread module, and add a firmware program care processing module; Startup module: used to start the network surveillance camera system, perform initialization of the development kit, and start the new firmware program care processing module; Registration module: used for the subsystem module in the network monitoring camera system to register with the network monitoring camera system software care main thread module through the registration interface of the firmware program care processing module; Check module: a monitoring module based on a message queue is used to check whether there is a faulty module in the subsystem modules in the network monitoring camera system; Execution module: If the inspection result shows that there is a faulty module in the subsystem module of the network surveillance camera system, the fault information interface and fault processing interface in the firmware program care processing module obtain and record the fault information of the faulty module, execute the abnormal fault processing task, and complete the fault recovery.

9. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute the method for monitoring embedded Linux system firmware program according to any one of claims 1 to 7 by calling the program or instruction stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the method for monitoring embedded Linux system firmware program according to any one of claims 1 to 7.