4G camera troubleshooting method and 4G camera

By saving the repair firmware in the 4G module of the 4G camera and using the multiplexer to realize the storage area switching, the automated self-repair problem caused by the unstable power of the network camera is solved, and the rapid self-repair and efficient troubleshooting of the device are achieved.

CN119767128APending Publication Date: 2025-04-04TOPSEE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411881481.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

During the firmware upgrade process of existing network cameras in outdoor environments, the equipment is prone to power outage due to unstable power supply, and it will become dead and cannot start normally. The traditional repair methods are cumbersome and cannot respond to power failures in time, which affects monitoring continuity and data integrity.

Method used

A fault repair method for 4G cameras is designed, by saving repair firmware in the second storage area of ​​the 4G module, using a multiplexer to realize hardware switching of the storage area, automatically detect and switch to the repair firmware, and realize automatic self-repair of the device.

Benefits of technology

It realizes automatic self-repair of the equipment when encountering power failures, reduces maintenance complexity and time costs, improves fault detection and response capabilities, shortens firmware recovery time, and ensures the normal operation and user experience of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767128A_ABST
    Figure CN119767128A_ABST
Patent Text Reader

Abstract

The present invention discloses a fault repair method for a 4G camera and a 4G camera, comprising: detecting a first CPU output signal through a second CPU, if abnormal, the second CPU changes the on-off state of a multiplexer, the multiplexer connects the first CPU to a second storage area and reads a repair boot program in the second storage area, and obtains a repair firmware from a server; the second CPU changes the on-off state of the multiplexer, the multiplexer connects the first CPU to a first storage area; the first CPU writes the repair firmware into the first storage area, then reads the first storage area, and runs the repair firmware to complete the repair. The fault repair method for a 4G camera and the 4G camera of the present invention can realize automatic repair of equipment, enhance the equipment's ability to cope with power failures, improve the equipment's fault detection and response capabilities, reduce equipment failure downtime, and ensure user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network cameras, and in particular to a fault repair method of a 4G camera and a 4G camera. Background Art

[0002] In 4G IP Camera (IPC) applications, the device is usually installed in an outdoor environment for monitoring and data collection. However, the power supply in the outdoor environment is often not stable enough, especially when using solar power. Voltage fluctuations may cause the device to unexpectedly lose power during firmware upgrades. This power outage will cause the device to enter a hung state and cannot start normally, which will seriously affect the device's availability and user experience.

[0003] Traditional methods of repairing network cameras usually rely on manual intervention. For devices distributed in remote areas, the repair process is not only cumbersome, but also causes prolonged equipment downtime, which in turn affects the continuity of monitoring and the integrity of data. In addition, due to unstable power supply in outdoor environments, the existing dual backup firmware mechanism and automatic restart mechanism may encounter power outages during the firmware upgrade process, resulting in firmware damage or the device failing to start normally, and cannot effectively deal with sudden power problems. In addition, the existing technology is relatively simple in fault detection, usually relying on device self-test or scheduled startup, and lacks real-time monitoring and judgment of system status, and cannot promptly detect and handle serious problems such as device hangs; in addition, in existing recovery solutions, the firmware recovery process often takes a long time, especially when restarting or re-downloading firmware from the backup firmware, which may cause long service interruptions.

[0004] Therefore, developing an automated self-repair solution for network cameras that can automatically restore functions stably and quickly when a device fails has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a fault repair method for a 4G camera, which can realize automatic self-repair of the 4G camera device, enhance the ability to cope with power failures, improve fault detection and response capabilities, and shorten the firmware recovery time.

[0006] The present invention also provides a 4G camera applied to the fault repair method of the above-mentioned 4G camera.

[0007] The present invention also proposes an electronic device applied to the fault repair method of the above-mentioned 4G camera.

[0008] The present invention also proposes a computer-readable storage medium applied to the fault repair method of the above-mentioned 4G camera.

[0009] According to the first aspect of the present invention, the fault repair method of the 4G camera is applied to the 4G camera, wherein the 4G camera comprises: a network camera, a 4G module and a server; the network camera comprises a first CPU, a first storage area and a multiplexer; the 4G module comprises a second storage area and a second CPU, the second storage area stores a repair boot program, and the server stores a repair firmware; the first CPU is electrically connected to the input end of the multiplexer, the first storage area is electrically connected to the first output end of the multiplexer, the second storage area is electrically connected to the second output end of the multiplexer, the second CPU is electrically connected to the control end of the multiplexer, the first CPU is electrically connected to the second CPU, and the second CPU is communicatively connected to the server;

[0010] The fault repair method of the 4G camera includes:

[0011] If the second CPU detects that the output signal of the first CPU is abnormal, the second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the second storage area;

[0012] The first CPU reads the repair boot program in the second storage area and obtains the repair firmware from the server;

[0013] The second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the first storage area;

[0014] The first CPU writes the repair firmware into the first storage area;

[0015] The first CPU reads the first storage area and runs the repair firmware to complete the repair.

[0016] According to some embodiments of the present invention, the first CPU reads the repair program in the second storage area and obtains the repair firmware from the server, including:

[0017] The network camera is powered on again;

[0018] The second storage area determines the model of the current control chip;

[0019] If the second storage area identifies that the current control chip is the first CPU, allowing the first CPU to run the repair boot program in the second storage area;

[0020] According to the repair boot program, the first CPU obtains the repair firmware from the server.

[0021] According to some embodiments of the present invention, the 4G module further includes a wireless cellular chip, the second CPU is electrically connected to the wireless cellular chip, and the wireless cellular chip is communicatively connected to the server; the first CPU is electrically connected to the second CPU via a USB port;

[0022] The first CPU obtaining the repair firmware from the server according to the repair boot program includes:

[0023] The first CPU controls the second CPU through the USB port according to the repair boot program, so that the second CPU controls the wireless cellular chip to download the repair firmware from the server;

[0024] The first CPU controls the second CPU to obtain the repair firmware from the wireless cellular chip according to the repair boot program;

[0025] The first CPU controls the first CPU to obtain the repair firmware from the second CPU according to the repair boot program.

[0026] According to some embodiments of the present invention, the first CPU controls the second CPU to obtain the repair firmware from the wireless cellular chip according to the repair boot program, including:

[0027] The first CPU controls the second CPU to obtain the repair firmware from the wireless cellular chip according to the repair boot program, and downloads the repair firmware to the RAM of the second CPU.

[0028] According to some embodiments of the present invention, the first CPU controls the first CPU to obtain the repair firmware from the second CPU according to the repair boot program, including:

[0029] The first CPU controls the first CPU and the second CPU to perform serial port communication according to the repair boot program;

[0030] The first CPU downloads the repair firmware in the RAM of the second CPU to the RAM of the first CPU through the serial port communication.

[0031] According to some embodiments of the present invention, if the second CPU detects that the PWM signal is abnormal, the second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the second storage area, including:

[0032] The second CPU performs continuous detection on the PWM signal. If the second CPU detects that the PWM signal is lost, the second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the second storage area.

[0033] According to some embodiments of the present invention, the first CPU reads the first storage area and runs the repair firmware to complete the repair, including:

[0034] The network camera is powered on again;

[0035] The first CPU reads and runs the repair firmware in the first storage area to complete the repair.

[0036] A 4G camera according to an embodiment of the second aspect of the present invention includes: a network camera, a 4G module and a server; the network camera includes a first CPU, a first storage area and a multiplexer; the 4G module includes a second storage area and a second CPU, the second storage area stores a repair boot program, and the server stores a repair firmware; the first CPU is electrically connected to the input end of the multiplexer, the first storage area is electrically connected to the first output end of the multiplexer, the second storage area is electrically connected to the second output end of the multiplexer, the second CPU is electrically connected to the control end of the multiplexer, the first CPU is electrically connected to the second CPU, and the second CPU is communicatively connected to the server; the 4G camera is used to implement the steps of the fault repair method of the 4G camera as described in any one of the above embodiments.

[0037] An electronic device according to an embodiment of a third aspect of the present invention includes:

[0038] one or more processors;

[0039] Memory;

[0040] One or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the fault repair method of the 4G camera as described in any one of claims 1-7 are implemented.

[0041] According to the computer-readable storage medium of the fourth aspect of the present invention, a computer program is stored thereon, and it is characterized in that when the computer program is executed by a processor, the steps of the fault repair method of a 4G camera as described in any one of the above embodiments are implemented.

[0042] According to the 4G camera fault repair method of the embodiment of the present invention, at least the following beneficial effects are achieved: by saving the repair firmware in the second storage area of ​​the 4G module of the 4G camera, and when the 4G camera device is hung, powered off or malfunctions, the storage area read by the first CPU is automatically switched to read the repair firmware saved in the second storage area, and the entire process does not require manual intervention, thereby realizing the automatic self-repair function of the device, significantly reducing the complexity and time cost of device maintenance. By connecting the input port of the multiplexer to the first CPU, and the two output ports are respectively connected to the first storage area and the second storage area, a hardware switching mechanism of the storage area is implemented based on the multiplexer, so that when the device encounters a voltage instability, it can still perform self-repair through the repair firmware in the second storage area of ​​the 4G module, thereby reducing the risk of firmware damage that may be caused by power failure, and enhancing the ability to cope with power failures. The output signal state of the first CPU of the network camera is detected by the second CPU of the 4G module, so as to determine whether the device is in a hung state, so that the self-repair program can be started accurately and quickly, the fault can be solved in time, the normal operation of the device can be ensured, and the fault detection and response capabilities of the device are improved. This method also optimizes the overall firmware recovery process to make the firmware update and recovery process more efficient, which can minimize the firmware recovery time and reduce device downtime, thereby ensuring user experience.

[0043] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The present invention will be further described below with reference to the accompanying drawings and embodiments, wherein:

[0045] Figure 1 This is a flowchart of the overall steps of the fault repair method of the 4G camera according to an embodiment of the present invention;

[0046] Figure 2 This is a module connection diagram of a 4G camera according to an embodiment of the present invention;

[0047] Figure 3 The figure is a detailed flow chart of a fault repair method for a 4G camera according to an embodiment of the present invention.

[0048] Reference numerals: network camera 100 , first CPU 110 , first storage area 120 , multiplexer 130 , 4G module 200 , second CPU 210 , second storage area 220 , wireless cellular chip 230 , server 300 . DETAILED DESCRIPTION

[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0050] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0051] In the description of the present invention, "several" means more than one, "many" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0052] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0053] In the description of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0054] The following is combined with Figure 1-3 , a 4G camera fault repair method and a 4G camera according to an embodiment of the present invention are described in detail.

[0055] Reference Figure 1 and Figure 2The present invention proposes a fault repair method for a 4G camera, which is applied to the 4G camera, wherein the 4G camera includes: a network camera 100 (IPC), a 4G module 200 and a server 300; the network camera 100 includes a first CPU 110 (CPU1), a first storage area 120 (FLASH A) and a multiplexer 130 (MUX); the 4G module includes a second storage area 220 (FLASH B) and a second CPU 210 (CPU2), the second storage area 220 stores a repair boot program, and the server 300 stores a repair firmware; the first CPU 110 is electrically connected to an input end of the multiplexer 130, the first storage area 120 is electrically connected to a first output end of the multiplexer 130, the second storage area 220 is electrically connected to a second output end of the multiplexer 130, the second CPU 210 is electrically connected to a control end of the multiplexer 130, the first CPU 110 is electrically connected to the second CPU 210, and the second CPU 210 is connected to the server 300 for communication;

[0056] The troubleshooting methods for 4G cameras include:

[0057] S100: If the second CPU 210 detects that the output signal of the first CPU 110 is abnormal, the second CPU 210 changes the on-off state of the multiplexer 130, and the multiplexer 130 connects the first CPU 110 to the second storage area 220;

[0058] S200: The first CPU 110 reads the repair boot program in the second storage area 220 and obtains the repair firmware from the server 300;

[0059] S300: the second CPU 210 changes the on / off state of the multiplexer 130, and the multiplexer 130 connects the first CPU 110 to the first storage area 120;

[0060] S400: The first CPU 110 writes the repair firmware into the first storage area 120;

[0061] S500: The first CPU 110 reads the first storage area 120 and runs the repair firmware to complete the repair.

[0062] Specifically, in this embodiment, the 4G camera fault repair method proposed by the present invention is applied to Figure 2The 4G camera shown in the figure is composed of a network camera 100, a 4G module 200 and a remote server 300, wherein the network camera 100 includes a first CPU 110 (CPU1), a first storage area 120 (FLASH A) and a multiplexer 130 (MUX); the 4G module includes a second storage area 220 (FLASH B) and a second CPU 210 (CPU2), the second storage area 220 stores a repair boot program, and the server 300 stores a repair firmware; the first CPU 110 is electrically connected to the input end of the multiplexer 130 through an IO port, the first storage area 120 is electrically connected to the first output end of the multiplexer 130, the second storage area 220 is electrically connected to the second output end of the multiplexer 130, the second CPU 210 is electrically connected to the control end of the multiplexer 130 through the IO port, the first CPU 110 and the second CPU 210 are electrically connected using a USB data cable, and the second CPU 210 is connected to the server 300 by wireless communication via the wireless cellular chip 230 inside the 4G module 200 .

[0063] Reference Figure 3, is a specific process of the fault repair method of the 4G camera of this embodiment, wherein the left side is the operation process of the network camera 100, and the right side is the operation process of the 4G module 200. When the network camera 100 is powered on normally, the initial on-off state of the multiplexer 130 is to connect the first CPU 110 with the first storage area 120, that is, CPU1 connects the data line and the control line of FLASH A, and reads the firmware of the first storage area 120FLASH A to run, and at the same time outputs a PWM signal to the second CPU 210 (CPU2) in the 4G module. The second CPU 210 detects the PWM signal output by the first CPU 110 in real time. If the second CPU 210 detects that the PWM signal is abnormal, for example, the PWM pulse in the signal is lost for more than one minute, it is determined that the working state of the first CPU 110 is abnormal, that is, the network camera 100 is hung, and then the second CPU outputs a control signal to the multiplexer 130MUX in the network camera 100 to change the on-off state of the multiplexer 130, so that the first CPU 110 is connected to the second storage area 220, that is, CPU1 connects the data line and the control line of FLASH B, which is step S100; after the first CPU 110 and the second storage area 220 are connected, the first CPU 110 is powered on and reset again, and the first CPU 110 reads the firmware of the second storage area 220 FLASH B to run, and the second storage area 220 uses an internal program to determine whether the current main control chip is the chip of the network camera 100, that is, the first CPU 110. If the judgment is correct, the first CPU 110 that currently controls the second storage area 220 is allowed to start calling and running the repair boot program stored in the second storage area 220. The repair boot program can guide the first CPU 110 to output a control signal to the second CPU 210, control the second CPU 210 to download and obtain the repair firmware from the remote server 300 through the wireless cellular 230, and transmit the repair firmware to the first CPU 110. After the first CPU 110 obtains the complete repair firmware from the second CPU 210, it stores it in the first CPU 110, the above is step S200; then the second CPU 210 controls the multiplexer 130 again, changes its on-off state, and makes the first CPU restore the connection with the first storage area 120, the above is step S300; then the first CPU 110 transfers the repair firmware in its own internal RAM to the first storage area 120, that is, step S400; finally, the first CPU 110 is powered on again, and runs normally to read the repair firmware and other working programs in the first storage area 120, thereby completing the repair of the device, that is, step S500, the device runs normally until the failure occurs again, and all the above steps are executed again.

[0064] By saving the repair firmware in the second storage area of ​​the 4G module of the 4G camera, and automatically switching the storage area read by the first CPU to read the repair firmware saved in the second storage area when the 4G camera device is hung, powered off or malfunctions, the entire process does not require manual intervention, thereby realizing the automatic self-repair function of the device, significantly reducing the complexity and time cost of equipment maintenance. By connecting the input port of the multiplexer to the first CPU, and the two output ports to the first storage area and the second storage area respectively, a hardware switching mechanism of the storage area is realized based on the multiplexer, so that when the device encounters voltage instability, it can still self-repair through the repair firmware in the second storage area of ​​the 4G module, thereby reducing the risk of firmware damage caused by power failure and enhancing the ability to cope with power failure. The output signal state of the first CPU of the network camera is detected by the second CPU of the 4G module, so as to determine whether the device is in a hung state, so that the self-repair program can be started accurately and quickly, the fault can be solved in time, the normal operation of the device can be ensured, and the fault detection and response capabilities of the device are improved. This method also optimizes the overall firmware recovery process to make the firmware update and recovery process more efficient, which can minimize the firmware recovery time and reduce device downtime, thereby ensuring user experience.

[0065] Reference Figure 1 and Figure 3 Further, in some embodiments of the present invention, step S200: the first CPU 110 reads the repair program in the second storage area 220 and obtains the repair firmware from the server 300, including:

[0066] (2.1) The network camera 100 is powered on again;

[0067] (2.2) The second storage area 220 determines the model of the current control chip;

[0068] (2.3) If the second storage area 220 identifies that the current control chip is the first CPU 110, the first CPU 110 is allowed to run the repair boot program in the second storage area 220;

[0069] (2.4) According to the repair boot program, the first CPU 110 obtains the repair firmware from the server 300 .

[0070] Specifically, in this embodiment, after the first CPU 110 is connected to the second storage area 220, the first CPU 110 is powered on again and reset, and the first CPU 110 reads the firmware of the second storage area 220 FLASH B to run. The second storage area 220 uses an internal program to determine whether the current main control chip is the chip of the network camera 100, that is, the first CPU 110. If the judgment is correct, the first CPU 110 that currently controls the second storage area 220 is allowed to start calling and running the repair boot program stored in the second storage area 220. The repair boot program can guide the first CPU 110 to output a control signal to the second CPU 210, control the second CPU 210 to download and obtain the repair firmware from the remote server 300 through the wireless cell 230, and transmit the repair firmware to the first CPU 110. After the first CPU 110 obtains the complete repair firmware from the second CPU 210, it stores it in the RAM inside the first CPU 110. By first determining whether the main control chip of the current second storage area 220 is the chip of the network camera 100, and then determining whether the chip is allowed to run the repair boot program, it is prevented that when the second CPU 210 of the 4G module 200 reads the second storage area normally, the repair boot program in the second storage area 220 is erroneously run, causing program errors and other problems. That is, the second storage area 220 includes both the 4G module program used when the second CPU 210 operates normally, and the repair boot program that needs to be called and run when an abnormality occurs in the device. When the device operates normally, the repair boot program cannot be erroneously called by the second CPU 210, and the repair boot program can only be called and run by the first CPU 110 when an abnormality occurs in the device.

[0071] Reference Figure 1 and Figure 2 , further, in some embodiments of the present invention, the 4G module 200 further includes a wireless cellular chip 230, the second CPU 210 is electrically connected to the wireless cellular chip 230, and the wireless cellular chip 230 is communicatively connected to the server 300; the first CPU 110 is electrically connected to the second CPU 210 via a USB port;

[0072] Step (2.4) According to the repair boot program, the first CPU 110 obtains the repair firmware from the server 300, including:

[0073] (2.4.1) The first CPU 110 controls the second CPU 210 through the USB port according to the repair boot program, so that the second CPU 210 controls the wireless cellular chip 230 to download the repair firmware from the server 300;

[0074] (2.4.2) The first CPU 110 controls the second CPU 210 to obtain the repair firmware from the wireless cellular chip 230 according to the repair boot program;

[0075] (2.4.3) The first CPU 110 controls the first CPU 110 to obtain the repair firmware from the second CPU 210 according to the repair boot program.

[0076] Further, in some embodiments of the present invention, step (2.4.2) the first CPU 110 controls the second CPU 210 to obtain the repair firmware from the wireless cellular chip 230 according to the repair boot program, including:

[0077] The first CPU 110 controls the second CPU 210 to obtain the repair firmware from the wireless cellular chip 230 according to the repair boot program, and downloads the repair firmware to the RAM of the second CPU 210 .

[0078] Further, in some embodiments of the present invention, step (2.4.3) the first CPU 110 controls the first CPU 110 to obtain the repair firmware from the second CPU 210 according to the repair boot program, including:

[0079] The first CPU 110 controls the first CPU 110 and the second CPU 210 to perform serial port communication according to the repair boot program;

[0080] The first CPU 110 downloads the repair firmware in the RAM of the second CPU 210 to the RAM of the first CPU 110 through serial port communication.

[0081] Further, in some embodiments of the present invention, step S100: if the second CPU 210 detects that the output signal of the first CPU 110 is abnormal, the second CPU 210 changes the on-off state of the multiplexer 130, and the multiplexer 130 connects the first CPU 110 to the second storage area 220, including:

[0082] The second CPU 210 continuously detects the output signal of the first CPU 110 . If the second CPU 210 detects that the output signal of the first CPU 110 is lost, the second CPU 210 changes the on / off state of the multiplexer 130 , and the multiplexer 130 connects the first CPU 110 to the second storage area 220 .

[0083] Specifically, in this embodiment, the second CPU 210 can continuously detect the PWM signal or other signal output by the first CPU 110. If the pulse of the PWM signal is lost for more than one minute, it is determined that the working state of the first CPU 110 is abnormal, and the second CPU 210 changes the on-off state of the multiplexer 130. The multiplexer 130 connects the first CPU 110 to the second storage area 220. When the 4G camera device is hung, powered off or malfunctions, the storage area read by the first CPU is automatically switched to read the repair firmware stored in the second storage area. The entire process does not require human intervention, thereby realizing the automatic self-repair function of the device and significantly reducing the complexity and time cost of equipment maintenance.

[0084] Further, in some embodiments of the present invention, step S500: the first CPU 110 reads the first storage area 120 and runs the repair firmware to complete the repair, including:

[0085] (5.1) The network camera 100 is powered on again;

[0086] (5.2) The first CPU 110 reads and runs the repair firmware in the first storage area 120 to complete the repair.

[0087] Reference Figure 2 The present invention also proposes a 4G camera, comprising: a network camera 100, a 4G module 200 and a server 300; the network camera 100 comprises a first CPU 110, a first storage area 120 and a multiplexer 130; the 4G module 200 comprises a second storage area 220 and a second CPU 210, the second storage area 220 stores a repair boot program, and the server 300 stores a repair firmware; the first CPU 110 is electrically connected to the input end of the multiplexer 130, the first storage area 120 is electrically connected to the first output end of the multiplexer 130, the second storage area 220 is electrically connected to the second output end of the multiplexer 130, the second CPU 210 is electrically connected to the control end of the multiplexer 130, the first CPU 110 is electrically connected to the second CPU 210, and the second CPU 210 is communicatively connected to the server 300; the 4G camera is used to implement the steps of the fault repair method of the 4G camera as in any one of the above embodiments.

[0088] The present invention also provides an electronic device, comprising:

[0089] one or more processors;

[0090] Memory;

[0091] One or more programs, wherein the one or more programs are stored in a memory and are configured to be executed by one or more processors, and when the programs are executed by the processors, the steps of the fault repair method for a 4G camera as in any one of the above embodiments are implemented.

[0092] The present invention also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the fault repair method for a 4G camera as described in any one of the above embodiments are implemented.

[0093] It will be appreciated by those skilled in the art that all or part of the steps for implementing the above-mentioned embodiments can be accomplished by hardware, or by a program to instruct the relevant hardware to accomplish, and the program can be stored in a computer-readable storage medium. In the context of the present invention, the computer-readable medium can be considered to be tangible and non-temporary. Non-limiting examples of non-temporary tangible computer-readable media include non-volatile memory circuits (e.g., flash memory circuits, erasable programmable read-only memory circuits, or mask read-only memory circuits), volatile memory circuits (e.g., static random access memory circuits or dynamic random access memory circuits), magnetic storage media (e.g., analog or digital tapes or hard disk drives), and optical storage media (e.g., CDs, DVDs, or Blu-ray discs), etc. The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0094] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0095] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

Claims

1. A method for repairing a 4G camera fault, characterized in that: Applied to a 4G camera, wherein the 4G camera comprises: a network camera, a 4G module and a server; the network camera comprises a first CPU, a first storage area and a multiplexer; the 4G module comprises a second storage area and a second CPU, the second storage area stores a repair boot program, and the server stores a repair firmware; the first CPU is electrically connected to an input end of the multiplexer, the first storage area is electrically connected to a first output end of the multiplexer, the second storage area is electrically connected to a second output end of the multiplexer, the second CPU is electrically connected to a control end of the multiplexer, the first CPU is electrically connected to the second CPU, and the second CPU is communicatively connected to the server; The fault repair method of the 4G camera includes: If the second CPU detects that the output signal of the first CPU is abnormal, the second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the second storage area; The first CPU reads the repair boot program in the second storage area and obtains the repair firmware from the server; The second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the first storage area; The first CPU writes the repair firmware into the first storage area; The first CPU reads the first storage area and runs the repair firmware to complete the repair.

2. The fault repair method of the 4G camera according to claim 1, characterized in that: The first CPU reads the repair program in the second storage area and obtains the repair firmware from the server, including: The network camera is powered on again; The second storage area determines the model of the current control chip; If the second storage area identifies that the current control chip is the first CPU, allowing the first CPU to run the repair boot program in the second storage area; According to the repair boot program, the first CPU obtains the repair firmware from the server.

3. The fault repair method of the 4G camera according to claim 2, characterized in that: The 4G module further includes a wireless cellular chip, the second CPU is electrically connected to the wireless cellular chip, and the wireless cellular chip is communicatively connected to the server; the first CPU is electrically connected to the second CPU via a USB port; The first CPU obtaining the repair firmware from the server according to the repair boot program includes: The first CPU controls the second CPU through the USB port according to the repair boot program, so that the second CPU controls the wireless cellular chip to download the repair firmware from the server; The first CPU controls the second CPU to obtain the repair firmware from the wireless cellular chip according to the repair boot program; The first CPU controls the first CPU to obtain the repair firmware from the second CPU according to the repair boot program.

4. The fault repair method of a 4G camera according to claim 3, characterized in that: The first CPU controls the second CPU to obtain the repair firmware from the wireless cellular chip according to the repair boot program, including: The first CPU controls the second CPU to obtain the repair firmware from the wireless cellular chip according to the repair boot program, and downloads the repair firmware to the RAM of the second CPU.

5. The 4G camera fault repair method according to claim 4, characterized in that: The first CPU controls the first CPU to obtain the repair firmware from the second CPU according to the repair boot program, including: The first CPU controls the first CPU and the second CPU to perform serial port communication according to the repair boot program; The first CPU downloads the repair firmware in the RAM of the second CPU to the RAM of the first CPU through the serial port communication.

6. The fault repair method of a 4G camera according to claim 1, characterized in that: If the second CPU detects that the output signal of the first CPU is abnormal, the second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the second storage area, including: The second CPU continuously detects the output signal of the first CPU. If the second CPU detects that the output signal of the first CPU is lost, the second CPU changes the on-off state of the multiplexer, and the multiplexer connects the first CPU to the second storage area.

7. The fault repair method of a 4G camera according to claim 1, characterized in that: The first CPU reads the first storage area and runs the repair firmware to complete the repair, including: The network camera is powered on again; The first CPU reads and runs the repair firmware in the first storage area to complete the repair.

8. A 4G camera, characterized in that: The 4G camera includes: a network camera, a 4G module and a server; the network camera includes a first CPU, a first storage area and a multiplexer; the 4G module includes a second storage area and a second CPU, the second storage area stores a repair boot program, and the server stores a repair firmware; the first CPU is electrically connected to the input end of the multiplexer, the first storage area is electrically connected to the first output end of the multiplexer, the second storage area is electrically connected to the second output end of the multiplexer, the second CPU is electrically connected to the control end of the multiplexer, the first CPU is electrically connected to the second CPU, and the second CPU is communicatively connected to the server; the 4G camera is used to implement the steps of the fault repair method of the 4G camera as described in any one of claims 1-7.

9. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the fault repair method of the 4G camera as described in any one of claims 1-7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the fault repair method for a 4G camera according to any one of claims 1 to 7 are implemented.