Video storage system, quick storage card recovery method, equipment and medium
The main control chip directly connects the detection, power supply and standby wake-up signal line of the memory card slot, which realizes rapid and accurate detection and abnormal recovery of the memory card status in the video recording storage device, solves the problem of video recording data loss, and ensures the integrity and real-timeness of the video recording data.
Patent Information
- Application Number
- CN202510587390.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-08-19
AI Technical Summary
It is difficult for existing video recording storage devices to quickly and accurately obtain the memory card status in vibrating or strong interference environments, resulting in failed read and write or loading failure, resulting in lost video recording data.
The main control chip directly connects the detection signal line, power control signal line and standby wake-up control signal line of the memory card slot, independently detects the status of each memory card, and performs rapid recovery processing in case of abnormalities.
Ensure the integrity and real-timeness of the recording data, while not affecting the operation of other downstream equipment.
Smart Images

Figure CN120508447A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video recording technology, and in particular to a video recording storage system, a memory card rapid recovery method, a device and a medium. Background Art
[0002] Currently, the main control chip of video storage devices, such as video recorders, uses a hub to expand and connect to more downstream devices. Under Linux, the main control chip can continuously read the downstream device nodes and load the device status to obtain the status of downstream devices, such as memory cards. However, this lacks real-time performance. Furthermore, when the video storage device is exposed to vibration or strong interference, memory card reading, writing, or loading failures may occur. In such cases, the main control chip cannot quickly and accurately obtain the status of a single memory card. After detecting an anomaly, it cannot immediately respond to and recover the individual card, resulting in loss of recorded data. Summary of the Invention
[0003] The present invention provides a video storage system, a memory card rapid recovery method, a device, and a medium, so as to realize independent and accurate detection of the status of each memory card, and to perform independent and rapid response recovery processing on each memory card after detecting an abnormality in the memory card, thereby effectively ensuring the integrity and real-time performance of the video data without affecting the operation of other downstream devices.
[0004] According to one aspect of the present invention, a video storage system is provided, which includes: a main control chip, a hub and downstream devices; wherein the upstream port of the hub is connected to the main control chip, and the downstream port of the hub is respectively connected to each downstream device, and the downstream devices include at least one of the following types: storage devices, communication devices and peripheral devices; the storage devices include at least one group of interface conversion chips and a memory card slot electrically connected to the interface conversion chip, the detection signal line of the memory card slot is directly connected to the first pin of the main control chip for transmitting the detection signal; the power control signal line of the memory card slot is directly connected to the second pin of the main control chip for transmitting the power control signal; the standby wake-up control signal line of the interface conversion chip is directly connected to the third pin of the main control chip for transmitting the standby wake-up control signal.
[0005] According to another aspect of the present invention, a method for quickly restoring a memory card is provided, the method comprising:
[0006] determining a physical connection state of the corresponding memory card according to the acquired detection signal;
[0007] Determine the device loading status of the memory card according to the device node detection result;
[0008] When it is determined that the physical connection state or the device loading state of the target memory card is abnormal, the target memory card is quickly restored through a power control signal and a standby wake-up control signal.
[0009] According to another aspect of the present invention, a memory card quick recovery device is provided, the device comprising:
[0010] A physical connection status determination module, configured to determine the physical connection status of the corresponding memory card according to the acquired detection signal;
[0011] A device loading state determination module is used to determine the device loading state of the memory card according to the device node detection result;
[0012] The recovery module is used to quickly recover the target memory card through a power control signal and a standby wake-up control signal when it is determined that the physical connection state or the device loading state of the target memory card is abnormal.
[0013] According to another aspect of the present invention, an electronic device is provided, comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the memory card fast recovery method according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the memory card fast recovery method according to any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the memory card fast recovery method according to any embodiment of the present invention is implemented.
[0019] A video storage system provided by an embodiment of the present invention includes: a main control chip, a hub and downstream devices; wherein the upstream port of the hub is connected to the main control chip, and the downstream port of the hub is respectively connected to each downstream device, and the downstream devices include at least one of the following types: storage devices, communication devices and peripheral devices; the storage devices include at least one group of interface conversion chips and a memory card slot electrically connected to the interface conversion chip, the detection signal line of the memory card slot is directly connected to the first pin of the main control chip for transmitting the detection signal; the power control signal line of the memory card slot is directly connected to the second pin of the main control chip for transmitting the power control signal; the standby wake-up control signal line of the interface conversion chip is directly connected to the third pin of the main control chip for transmitting the standby wake-up control signal. This video storage system changes the existing single hysteresis loop control of a single reading USB node and a loaded memory card device, and adds a detection signal line and a power control signal line that are directly connected to the first and second pins of the memory card slot and the main control chip by hardware, as well as a standby wake-up control signal line that is directly connected to the third pin of the interface conversion chip and the main control chip by hardware. The main control chip can independently and accurately detect the status of each memory card through the acquired detection signal, and after detecting an abnormality in the memory card, it can respond to it individually and quickly through the power control signal and the standby wake-up control signal to restore it, effectively ensuring the integrity and real-time nature of the video data, and at the same time will not affect the operation of other downstream devices.
[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a schematic structural diagram of an existing video storage system provided according to an embodiment of the present invention;
[0023] Figure 2 This is a structural diagram of a video storage system provided according to Embodiment 1 of the present invention;
[0024] Figure 3 This is a flowchart of a memory card fast recovery method provided according to the second embodiment of the present invention;
[0025] Figure 4This is a flowchart of a memory card quick recovery method provided in accordance with a third embodiment of the present invention;
[0026] Figure 5 This is a structural diagram of a video storage system provided according to a fourth embodiment of the present invention;
[0027] Figure 6 This is a flowchart of a memory card quick recovery method provided according to a fourth embodiment of the present invention;
[0028] Figure 7 This is a structural diagram of a memory card fast recovery device provided according to a fifth embodiment of the present invention;
[0029] Figure 8 The present invention is a schematic structural diagram of an electronic device for implementing the memory card rapid recovery method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] like Figure 1As shown, due to the insufficient number of USB (Universal Serial Bus) interfaces on the main control chip, current mainstream video storage systems typically use USB hubs to expand more USB interfaces to connect to different downstream devices. For example, a USB hub can be used to expand memory cards, communication modules, cameras, etc., where the memory card implements the corresponding memory card interface through a corresponding interface conversion chip. Under the Linux system, the main control chip can obtain the status of downstream devices such as memory cards by continuously reading the USB nodes of downstream devices and loading the device status. However, this real-time performance is poor, especially when the video storage device (such as a video recorder) is just turned on. After reading the system device node, the system does not automatically update the device node status. In addition, when the video storage device is in an environment such as vibration or strong interference, memory card reading, writing, or loading failures may occur. In this case, the main control chip cannot quickly and accurately obtain the status of a single memory card, and after detecting an abnormality, it cannot immediately respond to and recover the individual memory cards, resulting in loss of video data or failure to switch to backup. In order to solve the above problems, an embodiment of the present invention proposes a video storage system, which changes the existing single hysteresis loop control of the single reading USB node and the loaded memory card device, adds a main control chip to directly detect the independent detection signal of each memory card, and after detecting an abnormality of the memory card, it uses the power control signal and the standby wake-up control signal to perform independent and rapid response and recovery processing on the memory card, effectively ensuring the integrity and real-time performance of the video data without affecting the operation of other downstream devices.
[0033] Example 1
[0034] Figure 2 A schematic diagram of the structure of a video storage system is provided for the first embodiment of the present invention. Figure 2 As shown, the video storage system includes: a main control chip 100, a hub 200 and a downstream device 300. The video storage system proposed in this embodiment is described in detail below.
[0035] The upstream port of the hub 200 is connected to the main control chip 100, and the downstream port of the hub 200 is connected to each downstream device 300 respectively. The downstream devices 300 include at least one of the following types: storage devices 310, communication devices 320 and peripheral devices 330; the storage devices 310 include at least one group of interface conversion chips 311 and a memory card slot 312 electrically connected to the interface conversion chip 311, and the detection signal line of the memory card slot 312 is directly connected to the first pin of the main control chip 100 for transmitting the detection signal; the power control signal line of the memory card slot 312 is directly connected to the second pin of the main control chip 100 for transmitting the power control signal; the standby wake-up control signal line of the interface conversion chip 311 is directly connected to the third pin of the main control chip 100 for transmitting the standby wake-up control signal.
[0036] Among them, the main control chip can be understood as the main CPU (Central Processing Unit) of the video storage device. The main control chip may include a USB interface, such as a USB2.0 interface, and expand more USB interfaces through the USB interface and the hub to connect different downstream devices, and the video storage device may include but is not limited to: video recorders, drone aerial photography equipment, etc.
[0037] Storage devices can be understood as a type of downstream devices used to implement storage functions, and each storage device can be composed of an interface conversion chip and a memory card slot. The memory card slot can realize the video storage function by inserting a memory card, wherein the memory card can at least include SD (Secure Digital) type memory cards, such as SDXC (eXtended Capacity Secure Digital Card, extended capacity secure digital card), SDUC (Ultra Capacity Secure Digital Card, ultra-large capacity secure digital card), etc.; accordingly, the type of interface conversion chip can at least include: USB to SD chip.
[0038] Communication devices can be understood as a type of downstream devices used to implement communication functions, for example, they may include but are not limited to: 4G communication modules, 5G communication modules, WiFi communication modules, etc.
[0039] Peripheral devices can be understood as a type of peripheral devices other than storage devices and communication devices, for example, including but not limited to: cameras, distance sensors, acceleration sensors, display screens, etc.
[0040] The detection signal line can be understood as a signal line that is directly connected by hardware between the memory card slot and the first pin of the main control chip. The detection signal it transmits can be used to independently monitor the in-place status of the memory card corresponding to the memory card slot, that is, the physical connection status. The main control chip can directly and independently detect the physical connection status of each memory card through the detection signal, thereby avoiding the USB protocol stack delay caused by the interface conversion chip.
[0041] The power control signal line can be understood as a signal line that is directly connected by hardware between the memory card slot and the second pin of the main control chip. The power control signal it transmits can be used to independently control the power supply to the memory card corresponding to the memory card slot. The main control chip can use the power control signal to force power off and reset the abnormal card slot, thereby improving reliability.
[0042] The standby wake-up control signal line can be understood as a signal line that is directly connected by hardware between the interface conversion chip and the third pin of the main control chip. The standby wake-up control signal it transmits can be used to independently control the working mode of the interface conversion chip, for example, it may include: entering a low-power standby mode, waking it up, resetting it, etc. The main control chip can independently control the standby wake-up state of each interface conversion chip through the standby wake-up control signal line, thereby reducing the abnormal recovery time.
[0043] In the embodiment of the present invention, Figure 2 As shown, the video storage system includes: a main control chip 100, a hub 200, and downstream devices 300. The upstream port of the hub 200 is electrically connected to the main control chip 100, and the downstream port of the hub 200 is electrically connected to various types of downstream devices 300. The downstream devices 300 may include at least a storage device 310, a communication device 320, and a peripheral device 330 to expand different functions. The storage device 310 may include at least an interface conversion chip 311 and a memory card slot 312 electrically connected thereto. The memory card slot 312 can be inserted with a memory card of a corresponding interface as needed to store video data. At the same time, the video storage system proposed in the embodiment of the present invention changes the existing single hysteresis loop control of a single USB node and a loaded memory card device, and adds a detection signal line and a power control signal line that are directly connected to the first and second pins of the main control chip 100 by hardware, respectively, through the memory card slot 312, and a standby wake-up control signal line that is directly connected to the third pin of the main control chip 100 by hardware. The main control chip 100 can transmit the detection signal, power control signal, and standby wake-up control signal through the above three types of signal lines to achieve at least the following control functions:
[0044] ① When the video storage device is in an environment of vibration or strong interference, the memory card reading and writing may fail. At this time, the main control chip 100 can monitor the physical connection status of the memory card in real time through the detection signal. When it is determined to be abnormal, the corresponding interface conversion chip 311 can be quickly reloaded through the standby wake-up control signal, and the abnormal card slot 312 can be powered off and reset through the power control signal, so as to quickly restore the status of the abnormal memory card. If the recovery fails, a backup switching operation can be performed, such as quickly switching to a spare memory card for storage.
[0045] ② When the video storage device is just turned on or the power supply of the video storage device fluctuates, the memory card loading may fail. At this time, the main control chip 100 can independently and sequentially control the standby state of the interface conversion chip 311 and the power supply of the memory card through the standby wake-up control signal and the power control signal to quickly restore the loading of the memory card.
[0046] ③ When the main control chip 100 detects through the detection signal that the memory card is not in the inserted state for a long time, the interface conversion chip 311 can be put into low-power standby mode through the standby wake-up control signal and the power control signal to save device power, or when it is detected that the memory card is inserted into the card slot 312, the interface conversion chip 311 and the memory card are quickly awakened through the standby wake-up control signal and the power control signal, thereby quickly enabling the video data storage function.
[0047] A video storage system provided by an embodiment of the present invention changes the existing single hysteresis loop control of a single reading USB node and a loaded memory card device, adds a detection signal line and a power control signal line that are directly connected to the first and second pins of the memory card slot and the main control chip by hardware, and a standby wake-up control signal line that is directly connected to the third pin of the interface conversion chip and the main control chip by hardware. The main control chip can independently and accurately detect the status of each memory card through the acquired detection signal, and after detecting a memory card abnormality, it can independently and quickly respond to and recover the memory card through the power control signal and the standby wake-up control signal, effectively ensuring the integrity and real-time performance of the video data, while not affecting the operation of other downstream devices.
[0048] Example 2
[0049] Figure 3 A flowchart of a memory card quick recovery method is provided for the second embodiment of the present invention. This embodiment is applicable to the situation where a memory card with abnormal physical connection status or abnormal device loading status is quickly recovered. The method can be executed by a memory card quick recovery device, which can be implemented in the form of hardware and / or software. The memory card quick recovery device can be configured in electronic devices, such as but not limited to video recorders, drone aerial photography equipment and other video storage devices. Figure 3 As shown, a memory card fast recovery method provided in the second embodiment can be applied to the main control chip in the video storage system provided in any embodiment of the present invention, and specifically includes the following steps:
[0050] S110: Determine the physical connection status of the corresponding memory card according to the acquired detection signal.
[0051] The physical connection status can be used to represent the in-place status of the memory card, that is, whether the memory card is in good contact with the card slot. An abnormal physical connection status may cause a failure in reading and writing the memory card.
[0052] In an embodiment of the present invention, the main control chip can receive a detection signal sent by the memory card slot through the first pin, and determine the physical connection status of the corresponding memory card based on the detection signal. The physical connection status can be determined by: when the detection signal is at a high level, determining that the physical connection status of the memory card is abnormal; or it can be determined by: when the detection signal is at a high level and the power supply voltage of the card slot is less than a preset voltage threshold, determining that the physical connection status of the memory card is abnormal, etc. This embodiment does not impose specific restrictions on this.
[0053] S120 : Determine the device loading status of the memory card according to the device node detection result.
[0054] The device node detection result can be understood as the detection result obtained after the operating system of the video storage device scans the device node, which is used to indicate whether the memory card is recognized and correctly mounted by the operating system. Exemplarily, the device node detection result may include but is not limited to: node existence detection result, node accessibility detection result, node file system mount status detection result, etc. The device loading status can be used to indicate whether the memory card is recognized by the operating system. An abnormal device loading status will cause the memory card to fail to load, that is, the operating system has not effectively recognized the corresponding memory card.
[0055] In an embodiment of the present invention, the main control chip can determine the device loading status corresponding to the memory card by obtaining the device node detection results, such as whether the device node exists, whether the device node can be accessed normally (that is, whether it can be read and written normally), whether the file system of the device node is correctly mounted to the specified directory, etc. For example, when it is detected that the device node detection result is at least one of the following: the device node does not exist, the read and write operation of the device node fails, and the file system of the device node is not correctly mounted, it can be determined that the device loading status of the corresponding memory card is abnormal.
[0056] S130: When it is determined that the physical connection state or the device loading state of the target memory card is abnormal, quickly recover the target memory card through a power control signal and a standby wakeup control signal.
[0057] In an embodiment of the present invention, when the main control chip determines that the physical connection status of the target memory card is abnormal or the device loading status is abnormal, a power control signal and a standby wake-up control signal can be sent to the target memory card slot and the target interface conversion chip corresponding to the target memory card through the second pin and the third pin, respectively, to control the power supply to the target memory card slot, force a hardware reset, and control the target interface conversion chip to re-record, thereby quickly restoring the target memory card and ensuring the integrity and real-time nature of the recorded data. It can be understood that, for the abnormal physical connection status of the target memory card or the abnormal device loading status, corresponding different recovery operations can be adopted respectively. For example, when the physical connection status is abnormal, the main control chip can cut off the power supply of the target memory card by sending a power control signal, and put the target interface conversion chip into standby mode by sending a standby wake-up control signal, and restore the power supply of the target memory card by sending a power control signal after a certain delay, and wake up the target interface conversion chip by sending a standby wake-up control signal, thereby achieving rapid recovery of the target memory card; when the device loading status is abnormal, the main control chip can reset the target interface conversion chip by sending a standby wake-up control signal, and perform a power-off and power-on operation on the target memory card by switching the power control signal, and wake up the target interface conversion chip by sending a standby wake-up control signal after a certain delay, thereby achieving rapid recovery of the target memory card.
[0058] A memory card rapid recovery method provided by an embodiment of the present invention independently and accurately detects the physical connection status of each memory card based on an acquired detection signal, and determines the device loading status of the memory card based on the device node detection result. When it is determined that the physical connection status or device loading status of the target memory card is abnormal, a power control signal and a standby wake-up control signal are used to perform a separate rapid response recovery process on the target memory card, thereby effectively ensuring the integrity and real-time performance of the video data without affecting the operation of other downstream devices.
[0059] Example 3
[0060] Figure 4 The flowchart of a memory card fast recovery method provided in the third embodiment of the present invention is further optimized and expanded based on the above embodiment, and can be combined with various optional technical solutions in the above embodiment. Figure 4 As shown, a memory card fast recovery method provided in the third embodiment can be applied to the main control chip in the video storage system provided in any embodiment of the present invention, and specifically includes the following steps:
[0061] S210: Determine the physical connection status of the corresponding memory card according to the acquired detection signal.
[0062] S220. Scan the device nodes in the preset operating system at a preset time interval to obtain a device node detection result; wherein the device node detection result includes at least one of the following: a node existence detection result, a node accessibility detection result, and a node file system mount status detection result.
[0063] The preset operating system may refer to an operating system used by the video storage device, which may include at least a Linux system. The device node may include at least a memory card.
[0064] The node existence test result can be used to reflect whether the device node exists; the node accessibility test result can be used to reflect whether the device node is accessible, that is, whether reading and writing are normal; the node file system mount status test result can be used to reflect whether the file system of the device node is correctly mounted to the specified directory.
[0065] In an embodiment of the present invention, the main control chip scans the device nodes in the preset operating system according to a pre-configured preset time interval, such as 1 second, for example, it may scan the specified path, and use the detected node existence detection results, node accessibility detection results, and node file system mount status detection results as device node detection results.
[0066] S230. When the device node detection result meets the preset device loading abnormality condition, the device loading status is determined to be abnormal; otherwise, the device loading status is determined to be normal; wherein, the preset device loading abnormality condition includes at least one of the following: whether the node existence detection result is that the device node does not exist, whether the node accessibility detection result is that the read and write operations of the device node fail, and whether the node file system mount status detection result is that the file system of the device node is not mounted correctly.
[0067] In an embodiment of the present invention, after obtaining the device node detection result, the main control chip can match it with the pre-configured preset device loading exception condition, and determine the corresponding device loading status based on the matching situation. Specifically, if the device node detection result meets at least one preset device loading exception condition, the device loading status is determined to be abnormal; otherwise, the device loading status is determined to be normal, wherein the preset device loading exception condition includes at least one of the following: whether the node existence detection result is that the device node does not exist, whether the node accessibility detection result is that the read and write operations of the device node fail, and whether the node file system mount status detection result is that the file system of the device node is not mounted correctly.
[0068] S240: When the physical connection state of the target memory card is abnormal, sending a power control signal through the second pin to cut off the power supply of the target memory card, and sending a standby wake-up control signal through the third pin to enable the target interface conversion chip corresponding to the target memory card to enter a standby mode.
[0069] In an embodiment of the present invention, when the main control chip determines that the physical connection status of the target memory card is abnormal, the abnormal recovery operations S240 to S260 can be executed. Specifically, the main control chip can send a power control signal to the card slot of the target memory card through the second pin to cut off the power supply to the target memory card, and at the same time, can send a standby wake-up control signal to the target interface conversion chip corresponding to the target memory card through the third pin to enable it to enter standby mode.
[0070] S250: After a first preset delay, a power control signal is sent through the second pin to restore power to the target memory card, and a standby wake-up control signal is sent through the third pin to wake up the target interface conversion chip.
[0071] In an embodiment of the present invention, after the first preset delay, the main control chip can restore power to the target memory card and wake up the target interface conversion chip by sending the power control signal and the standby wakeup control signal again.
[0072] S260: Re-detect the target physical connection status of the target memory card. If the target physical connection status is still abnormal, return to the step of sending a power control signal through the second pin to cut off the power supply to the target memory card until the first maximum preset retry number is reached.
[0073] In an embodiment of the present invention, after the above-mentioned abnormality recovery operation (i.e., S240 to S250) is performed on the target memory card, the target physical connection status of the target memory card may be re-detected. If the target physical connection status is normal, it indicates that the target memory card has returned to normal. If the target physical connection status is still abnormal, the above-mentioned abnormality recovery operation (i.e., S240 to S250) is repeatedly performed until the target memory card returns to normal or the first maximum preset retry number is reached.
[0074] S270: When the device loading state of the target memory card is abnormal, send a standby wake-up control signal through the third pin to reset the target interface conversion chip corresponding to the target memory card.
[0075] In an embodiment of the present invention, when the main control chip determines that the device loading status of the target memory card is abnormal, the abnormal recovery operations S270 to S2100 can be executed. Specifically, the main control chip can send a standby wake-up control signal to the target interface conversion chip through the third pin to reset it, that is, reset the protocol stack of the target interface conversion chip.
[0076] S280: Switch the power control signal via the second pin to perform a power-off and power-on operation on the target memory card.
[0077] In an embodiment of the present invention, the main control chip can send a power control signal to the card slot corresponding to the target memory card through the second pin to control the target memory card to first power off and then power on. For example, the target memory card can be powered off for a period of time to fully discharge it, and then the power supply to the target memory card can be restored.
[0078] S290: After a second preset delay, send a standby wake-up control signal through the third pin to wake up the target interface conversion chip.
[0079] In the embodiment of the present invention, after the second preset delay, the main control chip may wake up the target interface conversion chip by sending the standby wake-up control signal again, so that the target interface conversion chip is reloaded.
[0080] S2100, re-detecting the target device loading status of the target memory card. If the target device loading status is still abnormal, return to the step of sending a standby wake-up control signal through the third pin to reset the target interface conversion chip corresponding to the target memory card until the second maximum preset retry number is reached.
[0081] In an embodiment of the present invention, after the above-mentioned abnormality recovery operation (i.e., S270 to S290) is performed on the target memory card, the target device loading status of the target memory card can be re-detected. If the target device loading status is normal, it indicates that the target memory card has returned to normal. If the target device loading status is still abnormal, the above-mentioned abnormality recovery operation (i.e., S270 to S290) is repeatedly performed until the target memory card returns to normal or the second maximum preset retry number is reached.
[0082] Furthermore, based on the above-mentioned embodiments of the invention, the memory card rapid recovery method provided in this embodiment further includes:
[0083] When it is determined that the physical connection status of the target memory card is abnormal, or the target device loading status of the target memory card is still abnormal after the second maximum preset retry number, stop writing video data to the target memory card and switch the video data to the preset backup memory card for storage.
[0084] In an embodiment of the present invention, to further ensure the integrity and real-time performance of recorded data, a backup switching operation can be synchronously initiated upon detecting a memory card anomaly. Specifically, the main control chip can immediately initiate a backup switching operation upon determining that the physical connection status of the target memory card is abnormal, or immediately initiate a backup switching operation upon determining that the device loading status of the target memory card is abnormal and remains abnormal after a second maximum preset number of retries. The backup switching operation can include the following: immediately ceasing writing recorded data to the target memory card, i.e., interrupting I / O (Input / Output) operations on the target memory card; then activating a preset backup memory card and writing recorded data to the preset backup memory card. This embodiment ensures that recorded data is not lost by executing a backup switching operation upon detecting a memory card anomaly.
[0085] Furthermore, based on the above-mentioned embodiments of the invention, the memory card rapid recovery method provided in this embodiment further includes at least one of the following:
[0086] When it is detected through the detection signal that the target storage device is not inserted with a memory card, the target storage device is controlled to enter a standby mode through a power control signal and a standby wake-up control signal;
[0087] When it is detected through the detection signal that the target storage device is inserted into the memory card, the target storage device is awakened through the power control signal and the standby awakening control signal.
[0088] In an embodiment of the present invention, the main control chip can automatically control the working mode of the corresponding target storage class device according to the insertion status of the memory card of the storage class device. Specifically, if the main control chip detects through a detection signal that the target storage class device has not been inserted with a memory card, the main control chip cuts off the power supply of the corresponding card slot in the target storage class device by sending a power control signal, and controls the interface conversion chip in the target storage class device to enter standby mode by sending a standby wake-up control signal; if the detection signal detects that the target storage class device has been reinserted with a memory card, the main control chip restores the power supply of the corresponding card slot in the target storage class device by sending a power control signal, and wakes up the interface conversion chip in the target storage class device after a certain delay (waiting for the power supply to stabilize) by sending a standby wake-up control signal.
[0089] A memory card quick recovery method provided by an embodiment of the present invention obtains the physical connection status and device loading status of the memory card respectively, and when it is determined that the physical connection status or device loading status of the target memory card is abnormal, performs corresponding abnormal recovery operations based on a power control signal and a standby wake-up control signal respectively, thereby achieving independent rapid response recovery processing for the target memory card, effectively ensuring the integrity and real-time performance of the video data, and at the same time will not affect the operation of other downstream devices.
[0090] Example 4
[0091] Figure 5 A structural diagram of a video storage system is provided for the fourth embodiment of the present invention. Figure 5 As shown, the main CPU is connected to the upstream port of the USB HUB via a USB 2.0 interface to expand more USB interfaces. The downstream port of the USB HUB is connected to the USB-to-SD chip, the 4G communication module, and the Wi-Fi communication module, respectively. Each SD card is connected to its corresponding USB-to-SD chip via a memory card slot. Specifically, the detection signal line of the memory card slot is directly connected to the first pin of the main CPU for transmitting detection signals SD_DET1 and SD_DET2; the power control signal line of the memory card slot is directly connected to the second pin of the main CPU for transmitting power control signals SD_POWEN1 and SD_POWEN2; and the standby wake-up control signal line of the USB-to-SD chip is directly connected to the third pin of the main CPU for transmitting standby wake-up control signals SD_RST1 and SD_RST2.
[0092] Based on the above video storage system, Figure 6 This is a flowchart of a memory card fast recovery method provided by the fourth embodiment of the present invention. Based on the above embodiments, this embodiment takes the vehicle recording scenario as an example to provide an implementation of a memory card fast recovery method. It can achieve the purpose of fast detection and recovery of SD card recording by increasing the main CPU to directly detect, read and control the SD card signal and independently controlling the standby wake-up state of the USB to SD chip in the environment of vehicle vibration and strong interference. Figure 6 As shown, a memory card fast recovery method provided by the fourth embodiment of the present invention is applied to the main CPU of the video storage system, and specifically includes the following steps:
[0093] S310: Determine the physical connection status and device loading status corresponding to each SD card according to the acquired detection signal and the device node detection result.
[0094] In an embodiment of the present invention, the main CPU can receive the detection signals SD_DET1 and SD_DET2 sent by each memory card slot through the first pin, and determine the physical connection status of the corresponding memory cards SD_CARD1 and SD_CARD2 based on the detection signals SD_DET1 and SD_DET2; at the same time, based on the device node detection results obtained after scanning the device nodes in the Linux system, the device loading status of the memory cards SD_CARD1 and SD_CARD2 is determined.
[0095] S320: When it is determined that the physical connection state of the target SD card is abnormal, perform a first abnormality recovery operation on the target SD card based on the power control signal and the standby wake-up control signal.
[0096] During vehicle recording, due to the physical contact characteristics of the SD card's spring, if the vehicle is subject to significant vibration, poor contact between the SD card and the card slot may occur, resulting in SD card read / write failures. In an embodiment of the present invention, the main CPU directly reads a detection signal from the target SD card. Upon determining that the physical connection status of the target SD card is abnormal, the CPU performs a first abnormality recovery operation to quickly restore the target SD card, thereby ensuring the integrity and real-time performance of the recorded data. The first abnormality recovery operation may include the following: ① sending a power control signal via the second pin to cut off power to the target SD card, and sending a standby wake-up control signal via the third pin to put the target USB-to-SD chip corresponding to the target SD card into standby mode; ② after a first preset delay, sending a power control signal via the second pin to restore power to the target SD card, and sending a standby wake-up control signal via the third pin to wake up the target USB-to-SD chip; and ③ re-detecting the target physical connection status of the target SD card. If the target physical connection status is normal, the target SD card has recovered. If the target physical connection status is still abnormal, the first abnormality recovery operation is repeated until the target SD card recovers or a first maximum preset number of retries is reached.
[0097] In one embodiment, when the main CPU detects that the physical connection status of the target SD card is abnormal, it can simultaneously start the backup switching operation, that is, immediately stop writing video data to the target SD card, and switch the video data to the preset backup SD card for storage.
[0098] S330: When it is determined that the target SD card has a device loading state abnormality, perform a second abnormality recovery operation on the target SD card based on the power control signal and the standby wakeup control signal.
[0099] When the vehicle is just started or there is a power fluctuation, the SD card reading may fail. At this time, when the main CPU detects that the target SD card has an abnormal device loading status, it can perform a second abnormal recovery operation on it to quickly restore the target SD card, thereby ensuring the integrity and real-time nature of the recorded data. The second abnormal recovery operation may include the following: ① Sending a standby wake-up control signal through the third pin to reset the target USB-to-SD chip corresponding to the target SD card; ② Switching the power control signal through the second pin to perform a power-off and power-on operation on the target SD card; ③ Sending a standby wake-up control signal through the third pin after a second preset delay to wake up the target USB-to-SD chip; ④ Re-detecting the target device loading status of the target SD card. If the target device loading status is still abnormal, repeating the above second abnormal recovery operation until the target SD card returns to normal or the second maximum preset retry count is reached.
[0100] In one embodiment, if the target device loading status of the target SD card is still abnormal after the second maximum preset number of retries, a backup switching operation can be synchronously started to ensure the integrity of the video data.
[0101] It's understandable that since downstream USB devices share a USB hub, to avoid interference that could cause overall anomalies, the main CPU can independently control the operating mode and power on / off of the target USB-to-SD chip corresponding to the target SD card upon detecting an abnormality in the target SD card's physical connection or device loading status, thereby not affecting the operation of other downstream devices connected to the USB hub. Furthermore, if the main CPU detects that the SD card is not inserted or is reinserted, it can control the target USB-to-SD chip to enter low-power standby mode or wake up via power control signals and standby wake-up control signals, increasing device control flexibility.
[0102] An embodiment of the present invention provides a memory card rapid recovery method, which determines the physical connection status and device loading status corresponding to each SD card based on the acquired detection signal and device node detection result; when it is determined that the physical connection status of the target SD card is abnormal, a first abnormal recovery operation is performed on the target SD card based on the power control signal and the standby wake-up control signal; when it is determined that the device loading status of the target SD card is abnormal, a second abnormal recovery operation is performed on the target SD card based on the power control signal and the standby wake-up control signal, thereby realizing independent rapid response recovery processing for the abnormal SD card, effectively ensuring the integrity and real-time nature of the video data, and at the same time will not affect the operation of other downstream devices.
[0103] Example 5
[0104] Figure 7 This is a schematic diagram of the structure of a memory card fast recovery device provided by the fifth embodiment of the present invention. Figure 7 As shown, the device includes:
[0105] A physical connection status determination module 41 is configured to determine the physical connection status of the corresponding memory card according to the acquired detection signal;
[0106] A device loading state determining module 42 is configured to determine a device loading state of the memory card according to a device node detection result;
[0107] The recovery module 43 is configured to quickly recover the target memory card through a power control signal and a standby wakeup control signal when determining that the physical connection state or the device loading state of the target memory card is abnormal.
[0108] Furthermore, based on the above-mentioned embodiment of the invention, the device loading status determination module 42 includes:
[0109] A device node detection result acquisition unit is configured to scan device nodes in a preset operating system at a preset time interval to obtain a device node detection result; wherein the device node detection result includes at least one of the following: a node existence detection result, a node accessibility detection result, and a node file system mount status detection result;
[0110] The device loading status determination unit is used to determine that the device loading status is abnormal when the device node detection result meets the preset device loading abnormality condition, and vice versa, to determine that the device loading status is normal; wherein, the preset device loading abnormality condition includes at least one of the following: whether the node existence detection result is that the device node does not exist, whether the node accessibility detection result is that the read and write operations of the device node fail, and whether the node file system mount status detection result is that the file system of the device node is not mounted correctly.
[0111] Furthermore, based on the above embodiment of the invention, when the physical connection status of the target memory card is abnormal, the recovery module 43 includes:
[0112] a first control unit, configured to send a power control signal through the second pin to cut off power to the target memory card, and send a standby wake-up control signal through the third pin to enable the target interface conversion chip corresponding to the target memory card to enter a standby mode;
[0113] a second control unit, configured to send a power control signal through a second pin to restore power to the target memory card after a first preset delay, and send a standby wake-up control signal through a third pin to wake up the target interface conversion chip;
[0114] The first re-detection unit is configured to re-detect the target physical connection status of the target memory card, and if the target physical connection status is still abnormal, return to the step of sending a power control signal through the second pin to cut off the power supply to the target memory card until a first maximum preset retry number is reached.
[0115] Furthermore, based on the above embodiment of the invention, when the device loading status of the target memory card is abnormal, the recovery module 43 includes:
[0116] a third control unit, configured to send a standby wakeup control signal through a third pin to reset a target interface conversion chip corresponding to the target memory card;
[0117] a fourth control unit, configured to switch a power control signal via the second pin to perform a power-off and power-on operation on the target memory card;
[0118] a fifth control unit, configured to send a standby wake-up control signal through a third pin to wake up the target interface conversion chip after a second preset delay;
[0119] The second re-detection unit is used to re-detect the target device loading status of the target memory card. If the target device loading status is still abnormal, it returns to the step of sending a standby wake-up control signal through the third pin to reset the target interface conversion chip corresponding to the target memory card until a second maximum preset retry number is reached.
[0120] Furthermore, based on the above-mentioned embodiment of the invention, the memory card fast recovery device further includes:
[0121] The backup switching module is used to stop writing video data to the target memory card and switch the video data to the preset backup memory card for storage when it is determined that the physical connection status of the target memory card is abnormal, or the target device loading status of the target memory card is still abnormal after the second maximum preset retry number.
[0122] Furthermore, based on the above-mentioned embodiment of the invention, the memory card fast recovery device further includes:
[0123] A first device control module is configured to control the target storage device to enter a standby mode through a power control signal and a standby wake-up control signal when detecting that no memory card is inserted into the target storage device through a detection signal;
[0124] The second device control module is configured to wake up the target storage device through a power control signal and a standby wake-up control signal when it is detected through a detection signal that a memory card is inserted into the target storage device.
[0125] The memory card rapid recovery device provided in the embodiment of the present invention can execute the memory card rapid recovery method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0126] Example 6
[0127] Figure 8 A schematic diagram of the structure of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0128] like Figure 8 As shown, the electronic device 50 includes at least one processor 51 and a memory, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., which is communicatively connected to the at least one processor 51. The memory stores a computer program that can be executed by the at least one processor. The processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 into the random access memory (RAM) 53. Various programs and data required for the operation of the electronic device 50 can also be stored in the RAM 53. The processor 51, ROM 52, and RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0129] Multiple components in the electronic device 50 are connected to the I / O interface 55, including an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a magnetic disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0130] The processor 51 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as the memory card quick recovery method.
[0131] In some embodiments, the memory card quick recovery method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as the storage unit 58. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the memory card quick recovery method described above can be performed. Alternatively, in other embodiments, the processor 51 can be configured to perform the memory card quick recovery method in any other appropriate manner (e.g., by means of firmware).
[0132] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0133] In some embodiments, the memory card quick recovery method can be implemented as a computer program, which is invisibly included in a computer program product. When the computer program is executed by a processor, it implements the memory card quick recovery method of the present invention. The computer program product can be understood as a software product that mainly implements its solution through a computer program. The computer program used to implement the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0134] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0135] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0136] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0137] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0138] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0139] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A video storage system, characterized in that: The video storage system includes: a main control chip, a hub and downstream devices; wherein, the upstream port of the hub is connected to the main control chip, and the downstream port of the hub is respectively connected to each of the downstream devices, and the downstream devices include at least one of the following types: storage devices, communication devices and peripheral devices; the storage devices include at least one group of interface conversion chips and a memory card slot electrically connected to the interface conversion chip, the detection signal line of the memory card slot is directly connected to the first pin of the main control chip for transmitting the detection signal; the power control signal line of the memory card slot is directly connected to the second pin of the main control chip for transmitting the power control signal; the standby wake-up control signal line of the interface conversion chip is directly connected to the third pin of the main control chip for transmitting the standby wake-up control signal.
2. The system according to claim 1, wherein: For the storage device, the main control chip is configured as follows: independently monitoring the physical connection status of the memory card slot corresponding to the memory card through the detection signal; Independently controlling the power supply on and off of the memory card corresponding to the memory card slot through the power control signal; The working mode of the interface conversion chip is independently controlled by the standby wake-up control signal.
3. A memory card quick recovery method, characterized in that: The method for the main control chip in the video storage system according to any one of claims 1 to 2 comprises: determining a physical connection state of the corresponding memory card according to the acquired detection signal; Determining a device loading state of the memory card according to a device node detection result; When it is determined that the physical connection state or the device loading state of the target memory card is abnormal, the target memory card is quickly restored through a power control signal and a standby wake-up control signal.
4. The method according to claim 3, characterized in that Determining the device loading status of the memory card according to the device node detection result includes: Scanning device nodes in a preset operating system at preset time intervals to obtain the device node detection result; wherein the device node detection result includes at least one of the following: a node existence detection result, a node accessibility detection result, and a node file system mount status detection result; When the device node detection result meets the preset device loading abnormality condition, the device loading status is determined to be abnormal; otherwise, the device loading status is determined to be normal; wherein, the preset device loading abnormality condition includes at least one of the following: whether the node existence detection result is that the device node does not exist, whether the node accessibility detection result is that the read and write operations of the device node fail, and whether the node file system mount status detection result is that the file system of the device node is not mounted correctly.
5. The method according to claim 3, characterized in that When the physical connection state of the target memory card is abnormal, quickly recovering the target memory card through a power control signal and a standby wake-up control signal, including: Sending the power control signal through the second pin to cut off the power supply of the target memory card, and sending the standby wake-up control signal through the third pin to make the target interface conversion chip corresponding to the target memory card enter the standby mode; After a first preset delay, sending the power control signal through the second pin to restore power to the target memory card, and sending the standby wake-up control signal through the third pin to wake up the target interface conversion chip; Re-detecting the target physical connection status of the target memory card; if the target physical connection status is still abnormal, returning to the step of sending the power control signal through the second pin to cut off the power supply to the target memory card, until a first maximum preset retry number is reached.
6. The method according to claim 3, characterized in that When the device loading state of the target memory card is abnormal, quickly recovering the target memory card through a power control signal and a standby wake-up control signal, including: Sending the standby wake-up control signal via the third pin to reset the target interface conversion chip corresponding to the target memory card; Switching the power control signal via the second pin to perform a power-off and power-on operation on the target memory card; After a second preset delay, sending the standby wake-up control signal through the third pin to wake up the target interface conversion chip; Re-detecting the target device loading status of the target memory card; if the target device loading status is still abnormal, returning to the step of sending the standby wake-up control signal through the third pin to reset the target interface conversion chip corresponding to the target memory card, until a second maximum preset retry number is reached.
7. The method according to claim 3, characterized in that Also includes: When it is determined that the physical connection status of the target memory card is abnormal, or when the target device loading status of the target memory card is still abnormal after a second maximum preset retry number, writing video data to the target memory card is stopped, and the video data is switched to a preset backup memory card for storage.
8. The method according to claim 3, characterized in that Also includes at least one of the following: When it is detected through the detection signal that no memory card is inserted into the target storage-type device, controlling the target storage-type device to enter a standby mode through the power control signal and the standby wake-up control signal; When it is detected through the detection signal that a memory card is inserted into the target storage-type device, the target storage-type device is awakened through the power control signal and the standby awakening control signal.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the memory card quick recovery method according to any one of claims 3 to 8.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the memory card fast recovery method according to any one of claims 3 to 8 when executed.