Fault recovery method, device, equipment and computer readable storage medium

By analyzing the last reset operation type in the wireless communication module and transferring the fault information to the appropriate memory according to the type, the problem of insufficient accuracy and safety and reliability of the wireless communication module failure recovery is solved, and more efficient failure recovery and information storage is achieved.

CN114048071BActive Publication Date: 2025-04-11ROLLING WIRELESS COMM TECH (SHENZHEN) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111326959.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2025-04-11
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

After the wireless communication module fails, there may still be a failure after a hot reset or a cold reset, resulting in poor safety and reliability and insufficient accuracy in fault recovery.

Method used

After the wireless communication module runs the boot program, the last reset operation type is resolved. If it is a hot reset, the fault information in the volatile memory is written to the nonvolatile memory for cold reset. If it is a cold reset, a thermal reset is performed after a fault is detected.

Benefits of technology

By transferring fault information from volatile memory to nonvolatile memory, the integrity and reliability of fault information is ensured, and the accuracy and safety and reliability of fault recovery of wireless communication modules are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114048071B_ABST
    Figure CN114048071B_ABST
Patent Text Reader

Abstract

The present application discloses a wireless communication module and a fault recovery method, device, and computer medium, which are applied to the wireless communication module. After running the boot program, the type of reset operation last performed by the wireless communication module is parsed; if the reset operation type is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset; if the reset operation type is a cold reset, a hot reset is performed after the fault is detected. In the present application, the first type of fault information recorded after the last hot reset can be completely preserved, which is convenient for subsequent fault tracing, and after the cold reset, the power management chip that cannot be restarted during the hot reset process is also restarted, ensuring the safety and reliability of the power management chip; and the validity of the newly detected fault information after the last cold reset can be guaranteed; the fault recovery accuracy of the wireless communication module is improved, thereby ensuring the safety and reliability of the wireless communication module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and more specifically, to a fault recovery method, apparatus, device, and computer-readable storage medium. Background Art

[0002] With the development of smart cars and smart homes, the demand for wireless communication modules is increasing, and correspondingly, the performance requirements for wireless communication modules are also getting higher and higher. During the use of wireless communication modules, when a wireless communication module fails, the wireless communication module can be reset by hot reset to solve the failure problem of the wireless communication module. However, after hot reset or cold reset, the wireless communication module may still have a fault after restart, making the safety and reliability of the wireless communication module poor.

[0003] In summary, how to improve the fault recovery accuracy of the wireless communication module is a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of this application is to provide a fault recovery method, which can solve the technical problem of how to improve the accuracy of fault recovery of wireless communication modules to a certain extent. This application also provides a fault recovery device, an electronic device, and a computer-readable storage medium.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A fault recovery method, applied to a wireless communication module, comprising:

[0007] After running the boot program, parsing the type of reset operation last performed by the wireless communication module;

[0008] If the reset operation type is a hot reset, the first type of fault information existing only in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset;

[0009] If the reset operation type is a cold reset, a warm reset is performed after a fault is detected.

[0010] Preferably, performing a thermal reset after a fault is detected includes:

[0011] Performing fault processing based on the fault information in the volatile memory and running a fault detection program;

[0012] If a fault is detected, a warm reset is performed.

[0013] Preferably, before performing fault processing based on the fault information in the volatile memory, the method further includes:

[0014] The second type of fault information that has not been restored in the non-volatile memory of the wireless communication module is written into the volatile memory.

[0015] Preferably, the step of writing the unrecovered second type fault information in the non-volatile memory of the wireless communication module into the volatile memory comprises:

[0016] The second type of fault information that has not been restored in the non-volatile memory and meets the valid verification condition is written into the volatile memory.

[0017] Preferably, after a fault is detected and before the hot reset is performed, the method further includes:

[0018] The detected third type of fault information is recorded in the volatile memory.

[0019] Preferably, after running the fault detection program, the method further includes:

[0020] If no fault is detected, the step of returning to the step of executing the running fault detection program is returned. Preferably, the fault processing based on the fault information in the volatile memory includes:

[0021] Switch to and run the preset backup system.

[0022] A fault recovery device, comprising:

[0023] A parsing module, used for parsing the type of reset operation last performed by the wireless communication module after running the boot program;

[0024] A hot reset processing module, configured to write the first type of fault information existing only in the volatile memory of the wireless communication module into the non-volatile memory to perform a cold reset if the reset operation type is a hot reset;

[0025] The cold reset processing module is used to perform a hot reset after a fault is detected if the reset operation type is a cold reset.

[0026] An electronic device, comprising:

[0027] Memory for storing computer programs;

[0028] A processor is used to implement the steps of any of the above fault recovery methods when executing the computer program.

[0029] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above-mentioned fault recovery methods.

[0030] A fault recovery method provided by the present application is applied to a wireless communication module. After running a boot program, the type of reset operation last performed by the wireless communication module is parsed; if the reset operation type is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset; if the reset operation type is a cold reset, a hot reset is performed after a fault is detected. In the present application, after the wireless communication module runs the boot program, it is necessary to parse the type of reset operation performed by the wireless communication module last time, and when the type of the last reset operation is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory. Because the fault information in the non-volatile memory will not be lost, the first type of fault information recorded after the last hot reset can be completely saved, which is convenient for subsequent fault tracing, and a cold reset is required after that, so that the power management chip that cannot be restarted during the hot reset process can also be restarted, ensuring the safety and reliability of the power management chip; and when the type of the last reset operation is a cold reset, a hot reset is performed after the fault is detected, because the hot reset will not invalidate the newly saved fault information in the volatile memory, so the validity of the newly detected fault information can be guaranteed, which is convenient for subsequent fault tracing; improve the fault recovery accuracy of the wireless communication module, and ensure the safety and reliability of the wireless communication module. A fault recovery device, electronic device, and computer-readable storage medium provided by the present application also solve corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0032] Figure 1 A first flow chart of a fault recovery method provided in an embodiment of the present application;

[0033] Figure 2 It is a schematic diagram of the hardware structure of the wireless communication module;

[0034] Figure 3 A second flow chart of a fault recovery method provided in an embodiment of the present application;

[0035] Figure 4 A schematic diagram of the structure of a wireless communication module provided in an embodiment of the present application;

[0036] Figure 5 is a structural diagram of an electronic device 20 according to an exemplary embodiment. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] See also Figure 1 , Figure 1 A first flow chart of a fault recovery method provided in an embodiment of the present application.

[0039] A fault recovery method provided in an embodiment of the present application is applied to a wireless communication module and may include the following steps:

[0040] Step S101: After running the boot program, analyze the type of reset operation last performed by the wireless communication module.

[0041] In the present application, after the wireless communication module starts and runs the boot program, in the process of tracing back the fault record, it is necessary to perform corresponding operations based on the last reset operation type of the wireless communication module, so the wireless communication module needs to first parse the last reset operation type performed by itself.

[0042] It should be noted that the types of reset operations performed by the wireless communication module include hot reset and cold reset, where hot reset refers to a reset performed by a reset signal, and cold reset refers to a reset performed by powering on and off. In actual application scenarios, after the wireless communication module is started, it can run the boot program and then execute the fault recovery method provided in this application. In addition, the type of wireless communication module can be determined according to actual needs, for example, it can be a cellular wireless communication module, etc.

[0043] Step S102: If the reset operation type is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset.

[0044] In this application, please refer to Figure 2 , Figure 2The hardware structure diagram of the wireless communication module includes a non-volatile memory, a volatile memory, a baseband chip, a radio frequency front end, a power management chip and an antenna, etc. The applicant found that after the wireless communication module performs a hot reset, the baseband chip, the radio frequency front end, etc. in the wireless communication module will be restarted, while the volatile memory and the power management chip are not restarted. Therefore, on the one hand, the fault information recorded in the volatile memory is true and valid. Considering that a redundant system will be set up in the wireless communication module to ensure system reliability, the redundant system can perform fault detection, fault recording, restarting the system, backtracking fault records, switching to the backup system and then starting normally, and the startup process of the wireless communication module includes the boot program stage and the operating system startup stage, and fault detection and fault recording occur after the operating system of the wireless communication module is started, and backtracking fault records and switching to the backup system occur in the boot program stage of the wireless communication module. Therefore, in order to facilitate the subsequent backtracking of fault information by the wireless communication module, this application needs to write the first type of fault information that only exists in the volatile memory of the wireless communication module into the non-volatile memory, so as to use the data in the non-volatile memory to The validity of the first type of fault information is protected by the feature that it is not lost when the system is restarted; on the other hand, if there is a fault in the power management chip, the wireless communication module cannot solve the fault in the power management chip by simply performing a hot reset operation. In order to ensure the safety and reliability of the power management chip, the present application needs to write the first type of fault information that only exists in the volatile memory of the wireless communication module into the non-volatile memory and perform a cold reset. In this way, the power management chip will perform a restart operation to eliminate the risk of itself. At this point, there is no risk in the wireless communication module, and the safety and reliability are high. In the cold reset process, the wireless communication module needs to power on and off the volatile memory, and the data in the volatile memory becomes unreliable data after the power-on and power-off process. However, before performing the cold reset, the present application pre-writes the first type of fault information that only exists in the volatile memory of the wireless communication module into the non-volatile memory, eliminating the risk that the cold reset makes the fault information in the volatile memory unreliable, improving the backtracking accuracy of the fault information in the wireless communication module, and correspondingly, improving the accuracy of fault recovery in the wireless communication module.

[0045] It should be noted that the wireless communication module can perform a restart operation after a cold reset, and after starting and running the boot program, the fault recovery method provided in this application can be executed again, and this application does not make specific limitations here.

[0046] Step S103: If the reset operation type is a cold reset, a hot reset is performed after a fault is detected.

[0047] In the present application, the wireless communication module needs to perform fault detection after the last reset operation type is a cold reset, and perform a hot reset after the fault is detected. Because the hot reset will not cause the volatile memory to be powered on or off, the newly saved fault information in the volatile memory will not be invalidated. Therefore, the validity of the newly detected fault information can be guaranteed, which is convenient for subsequent fault tracing.

[0048] A fault recovery method provided by the present application is applied to a wireless communication module. After running a boot program, the type of reset operation last performed by the wireless communication module is parsed; if the reset operation type is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset; if the reset operation type is a cold reset, a hot reset is performed after a fault is detected. In the present application, after the wireless communication module runs the boot program, it is necessary to parse the type of reset operation last performed by the wireless communication module, and in the case where the last reset operation type is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory. Because the fault information in the non-volatile memory will not be lost, the first type of fault information recorded after the last hot reset can be completely saved, which is convenient for subsequent fault tracing, and a cold reset is required thereafter, so that the power management chip that cannot be restarted during the hot reset process can also be restarted, thereby ensuring the safety and reliability of the power management chip; and in the case where the last reset operation type is a cold reset, a hot reset is performed after a fault is detected, because the hot reset will not invalidate the newly saved fault information in the volatile memory, so the validity of the newly detected fault information can be guaranteed, which is convenient for subsequent fault tracing; the fault recovery accuracy of the wireless communication module is improved, and the safety and reliability of the wireless communication module is ensured.

[0049] See also Figure 3 , Figure 3 A second flow chart of a fault recovery method provided in an embodiment of the present application.

[0050] A fault recovery method provided in an embodiment of the present application is applied to a wireless communication module and may include the following steps:

[0051] Step S201: After running the boot program, analyze the type of reset operation last performed by the wireless communication module.

[0052] Step S202: If the reset operation type is a hot reset, the first type of fault information that only exists in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset.

[0053] Step S203: If the reset operation type is a cold reset, the second type of fault information that has not been restored in the non-volatile memory of the wireless communication module is written into the volatile memory, fault processing is performed based on the fault information in the volatile memory, and a fault detection program is run. If a fault is detected, the detected third type of fault information is recorded in the volatile memory for a hot reset.

[0054] In the present application, if the reset operation type last performed by the wireless communication module is a cold reset, because the cold reset will make the fault information in the volatile memory unreliable, and the fault information in the non-volatile memory will not become unreliable due to the cold reset operation, in order to trace back to the accurate fault information, the wireless communication module needs to write the unrecovered second-type fault information in its own non-volatile memory into the volatile memory after the last cold reset operation, so that the fault processing can be quickly performed based on the fault information in the volatile memory, and the fault detection program can be run afterwards. If a fault is detected, the detected third-type fault information is recorded in the volatile memory for hot reset. Because the hot reset will not cause the third-type fault information in the volatile memory to become invalid, the newly recorded third-type fault information in the volatile memory will be effectively recorded, which is convenient for the subsequent accurate tracing of the third-type fault information.

[0055] It should be noted that after the wireless communication module is hot reset, it can perform a restart operation, and after starting and running the boot program, it can execute the fault recovery method provided in this application again, etc. This application does not make specific limitations here.

[0056] In a fault recovery method provided in an embodiment of the present application, during the process of writing the second-category fault information that has not been recovered in the non-volatile memory of the wireless communication module into the volatile memory, the wireless communication module may only write the second-category fault information that has not been recovered in the non-volatile memory and meets the validity check condition into the volatile memory to process the valid second-category fault information. The validity check condition may be determined according to actual needs, such as including CRC (Cyclic Redundancy Check) check, etc.

[0057] In a fault recovery method provided in an embodiment of the present application, the wireless communication module can switch and run a preset backup system, etc. during fault processing based on fault information in a volatile memory, so as to run directly based on a fault-free backup system.

[0058] See also Figure 4 , Figure 4 A schematic diagram of the structure of a wireless communication module provided in an embodiment of the present application.

[0059] A wireless communication module provided in an embodiment of the present application may include:

[0060] The parsing module 101 is used to parse the type of reset operation last performed by the wireless communication module after running the boot program;

[0061] The hot reset processing module 102 is used to write the first type of fault information that only exists in the volatile memory of the wireless communication module into the non-volatile memory to perform a cold reset if the reset operation type is a hot reset;

[0062] The cold reset processing module 103 is used to perform a hot reset after a fault is detected if the reset operation type is a cold reset.

[0063] In a wireless communication module provided in an embodiment of the present application, the cold reset processing module may further include:

[0064] The fault detection unit is used to perform fault processing based on the fault information in the volatile memory and run the fault detection program. If a fault is detected, a hot reset is performed.

[0065] In a wireless communication module provided in an embodiment of the present application, a cold reset processing module may include:

[0066] The writing unit is used to write the unrecovered second type fault information in the non-volatile memory of the wireless communication module into the volatile memory before the fault detection unit performs fault processing based on the fault information in the volatile memory.

[0067] In a wireless communication module provided by an embodiment of the present application, the writing unit can be specifically used to write the second type of fault information that has not been restored in the non-volatile memory and meets the valid inspection conditions into the volatile memory.

[0068] In a wireless communication module provided in an embodiment of the present application, a cold reset processing module may include:

[0069] The recording unit is used to record the detected third type of fault information into the volatile memory after the fault detection unit detects the fault and before performing a hot reset.

[0070] In a wireless communication module provided by an embodiment of the present application, the fault detection unit can be specifically used to: switch and run a preset backup system.

[0071] Furthermore, an embodiment of the present application also provides a computer device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0072] Figure 5A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the fault recovery method disclosed in any of the aforementioned embodiments. In addition, the computer device 20 in this embodiment may specifically be a server.

[0073] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the computer device 20; the communication interface 24 can create a data transmission channel between the computer device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0074] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and video data 223, etc. The storage method can be temporary storage or permanent storage.

[0075] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the computer device 20, so as to realize the operation and processing of the massive video data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the fault recovery method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. The data 223 can include various data collected by the computer device 20.

[0076] It should be noted that the electronic device may specifically be a module that can realize the positioning communication function or a terminal device including a module, etc. The terminal device may specifically be a mobile terminal and / or a smart device, etc. The mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The smart device may specifically be at least one of a smart watch, a smart refrigerator, a smart speaker, a smart washing machine, a smart TV, etc. The module may specifically be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, an NB-IOT communication module, etc.

[0077] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the fault recovery method disclosed in any of the aforementioned embodiments are implemented.

[0078] For the description of the relevant parts of a fault recovery device, electronic device, and computer-readable storage medium provided in the embodiment of the present application, please refer to the detailed description of the corresponding parts in a fault recovery method provided in the embodiment of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiment of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0079] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0080] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A fault recovery method, characterized in that: Applied to wireless communication modules, including: After running the boot program, parsing the type of reset operation last performed by the wireless communication module; If the reset operation type is a hot reset, the first type of fault information existing only in the volatile memory of the wireless communication module is written into the non-volatile memory to perform a cold reset; If the reset operation type is a cold reset, a warm reset is performed after a fault is detected.

2. The method according to claim 1, characterized in that The hot reset after detecting a fault comprises: Performing fault processing based on the fault information in the volatile memory and running a fault detection program; If a fault is detected, a warm reset is performed.

3. The method according to claim 2, characterized in that Before performing fault processing based on the fault information in the volatile memory, the method further includes: The second type of fault information that has not been restored in the non-volatile memory of the wireless communication module is written into the volatile memory.

4. The method according to claim 3, characterized in that The step of writing the unrecovered second type fault information in the non-volatile memory of the wireless communication module into the volatile memory includes: The second type of fault information that has not been restored in the non-volatile memory and meets the valid verification condition is written into the volatile memory.

5. The method according to claim 2, characterized in that: After the fault is detected and before the hot reset is performed, the method further includes: The detected third type of fault information is recorded in the volatile memory.

6. The method according to claim 2, characterized in that After the fault detection program is run, the method further includes: If no fault is detected, the process returns to the step of executing the fault detection program.

7. The method according to any one of claims 2 to 6, characterized in that: The performing fault processing based on the fault information in the volatile memory includes: Switch to and run the preset backup system.

8. A fault recovery device, characterized in that: Applied to wireless communication modules, including: A parsing module, used for parsing the type of reset operation last performed by the wireless communication module after running the boot program; A hot reset processing module, for writing the first type of fault information existing only in the volatile memory of the wireless communication module into the non-volatile memory to perform a cold reset if the reset operation type is a hot reset; The cold reset processing module is used to perform a hot reset after a fault is detected if the reset operation type is a cold reset.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the fault recovery method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault recovery method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Reset information saving method for communication equipment

    CN1770106A