Data protection module and method and communication equipment
Through the switching device and logic circuit in the data protection module, the power on and off process of the communication module is actively controlled, which solves the problem of data corruption when the communication module is shut down and realizes data protection and stable operation.
Patent Information
- Application Number
- CN202510821826.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-09-19
AI Technical Summary
When the communication module is shut down, a storage device such as a NAND flash memory or an eMMC may be writing data, causing data corruption or loss, and affecting the normal operation of the communication module.
A data protection module is used, including a switch device, a logic circuit and a communication module. By switching the state of the switch device and using the logic circuit to output a level signal, the communication module is triggered to start or shut down, actively stop the write operation and call the shutdown program to ensure data security.
It effectively avoids data damage or loss, ensures the stable and reliable operation of the communication module, reduces costs and saves storage space.
Smart Images

Figure CN120670342A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a data protection module, method and communication device. Background Art
[0002] The communication module, as a carrier for wireless transmission, is embedded in the communication device as a slave device. For complete product models, there's a risk that when the device is powered off, the NAND Flash Memory or embedded Multi Media Card (eMMC) used within the communication module might be writing data. This could lead to data corruption or loss if the entire device is powered off, causing the communication module to malfunction, forcing it to shut down or failing to boot.
[0003] Therefore, how to avoid data damage or loss and protect the data in the storage device is a technical problem that those skilled in the art urgently need to solve. Summary of the Invention
[0004] The purpose of the present invention is to provide a data protection module, method and communication device to solve the technical problem of data damage or loss caused by writing data to the communication module when conventional products are shut down.
[0005] To solve the above technical problems, the present invention provides a data protection module, which includes a switch device, a logic circuit and a communication module;
[0006] The first end of the switch device is connected to the power signal, the second end is connected to the first input end of the logic circuit and is connected to the interrupt signal of the communication module; and the third end is grounded;
[0007] The second input terminal of the logic circuit is connected to the power enable terminal of the communication module, and the output terminal is connected to the power management unit of the communication module;
[0008] The controller of the communication module is connected to a storage device; when the switching device is turned on, the logic circuit outputs a first level to trigger the communication module to turn on; when the switching device is turned off, the controller receives the interrupt signal, stops the write operation to the storage device, calls the shutdown program of the communication module to shut down the communication module, and the logic circuit outputs a second level to turn off the power supply to shut down the external power supply.
[0009] On the one hand, the logic circuit is an OR gate logic circuit;
[0010] When the switch device is switched to the on state, the first input end of the OR gate logic circuit is at the first level, and the output end of the OR gate logic circuit is at the first level;
[0011] When the switch device is switched to the off state, the first input end of the OR gate logic circuit is at the second level, the second input end of the OR gate logic circuit is at the second level, and the output end of the OR gate logic circuit is at the second level.
[0012] On the other hand, the OR gate logic circuit includes a first diode, a second diode and a first resistor;
[0013] The anode of the first diode is connected to the second end of the switch device and receives the interrupt signal of the communication module;
[0014] The anode of the second diode is connected to the power enable terminal of the communication module;
[0015] The cathodes of the first diode and the second diode are connected, and the first end of the first resistor is connected to the power management unit of the communication module;
[0016] A second end of the first resistor is grounded.
[0017] On the other hand, the OR gate logic circuit includes a first transistor, a second transistor, a second resistor, a third resistor and a fourth resistor;
[0018] The first end of the second resistor is connected to the second end of the switch device and receives the interrupt signal of the communication module; the second end of the second resistor is connected to the control end of the first transistor;
[0019] A first end of the third resistor is connected to the power enable terminal of the communication module; a second end of the third resistor is connected to the control terminal of the second transistor;
[0020] The first end of the first transistor is connected to the first end of the second transistor and is connected to the power supply voltage; the second end of the first transistor is connected to the second end of the second transistor and is connected to the first end of the fourth resistor and the power management unit of the communication module;
[0021] A second end of the fourth resistor is grounded.
[0022] On the other hand, it also includes DCDC converters;
[0023] A first end of the DCDC converter is connected to an output end of the logic circuit, and a second end of the DCDC converter is connected to a power enable end of the communication module.
[0024] On the other hand, a fifth resistor is also included;
[0025] A first end of the fifth resistor is connected to the first end of the DCDC converter and to the output end of the logic circuit;
[0026] A second end of the fifth resistor is grounded.
[0027] On the other hand, the switching device is a double-pole double-throw device;
[0028] The first throwing end of the first pole of the double-pole double-throw and the first throwing end of the second pole of the double-pole double-throw are both connected to the power signal;
[0029] The common ends of the first and second blades are both connected to the first input end of the logic circuit;
[0030] The second throwing end of the first knife and the second throwing end of the second knife are both grounded.
[0031] On the other hand, the switch device is a self-locking switch or a dial switch.
[0032] To solve the above technical problems, the present invention further provides a data protection method, which is applied to the above-mentioned data protection module, and the method includes:
[0033] When the switch device is turned on, the logic circuit outputs a first level to trigger the communication module to turn on;
[0034] When the switch device is shut down, the interrupt signal is received, the write operation to the storage device is stopped, the shutdown program of the communication module is called to shut down the communication module, the logic circuit outputs the second level, and the power is turned off to shut down the external power supply.
[0035] In order to solve the above technical problems, the present invention further provides a communication device, comprising the above-mentioned data protection module.
[0036] The present invention provides a data protection module, comprising a switch device having a first end connected to a power signal, a second end connected to a first input end of a logic circuit and an interrupt signal from a communication module; a third end connected to ground; a second input end of the logic circuit connected to a power enable end of the communication module, and an output end connected to a power management unit of the communication module; a controller of the communication module connected to a storage device; and a control circuit configured to output a first level when the switch device is powered on, triggering the communication module to power on; and when the switch device is powered off, receiving an interrupt signal, stopping write operations to the storage device, invoking a shutdown program of the communication module to shut down the communication module, and outputting a second level to shut down the power supply to shut down the external power supply. The present invention utilizes a power-on / off detection circuit of the switch device to generate an interrupt signal to notify the controller of the communication module when the switch device is powered off. Due to the design of the logic circuit, the communication module does not shut down immediately. When the module receives the interrupt signal, it actively stops write operations to the storage device through software control, thereby implementing a system solution for protecting the communication module data. The shutdown program is then invoked to shut down the module and shut down the module power supply. The present invention actively stops the write operation when shutting down to avoid data damage or loss, thereby achieving the technical effect of data protection.
[0037] In addition, the present invention also provides a data protection method and a communication device, which have the same beneficial effects as the above-mentioned data protection module. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention, the following is a brief introduction to the drawings required for use in 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 any creative work.
[0039] Figure 1 A structural diagram of a data protection module provided in an embodiment of the present invention;
[0040] Figure 2 A structural diagram of an OR gate logic circuit provided by an embodiment of the present invention;
[0041] Figure 3 A structural diagram of another OR gate logic circuit provided by an embodiment of the present invention;
[0042] Figure 4 A flowchart of a data protection method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0044] The core of the present invention is to provide a data protection module, method and communication device to solve the technical problem of data damage or loss caused by writing data to the communication module when conventional products are shut down.
[0045] In order to enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0046] Communication modules are widely used in the Internet of Things (IoT) industry, including point-of-sale terminals (POS), power grids, and connected vehicles. They are also used in the mobile broadband (MBB) market, including personal computers (PCs) and customer premises equipment (CPE). As the connecting link in the IoT industry, communication modules facilitate the interconnection of everything. As a wireless transmission carrier, communication modules are typically embedded within communication devices as slave devices. Some communication modules based on system-on-chips (SoCs) or enhanced access points (APs) can even function directly as hosts in product designs without the need for an external AP. For complete devices, the NAND or eMMC storage devices used within the communication module may be writing data when the device is powered off. This can easily lead to data corruption or loss, causing malfunction or startup failures. Therefore, as middleware, the data stability and reliability of the NAND or eMMC storage devices in the communication module are of particular concern to downstream device manufacturers.
[0047] Taking eMMC devices as an example, to address the issue of device data loss during shutdown, the following technologies are currently used: internal firmware backup (dual mirroring) of the eMMC device, mirror and data integrity checks during startup, and restoration of the backup image file if any data anomalies occur. This requires double the eMMC device storage space, increasing eMMC device costs. Even if some critical data is backed up, additional eMMC device storage space is used, increasing costs, and the reliability of all data cannot be guaranteed. The data protection module provided in this application can address these technical issues.
[0048] Figure 1 A structural diagram of a data protection module provided by an embodiment of the present invention, such as Figure 1 As shown, the data protection module includes a switch device 1, a logic circuit 2 and a communication module 3;
[0049] The first end of the switch device 1 is connected to the power signal, the second end is connected to the first input end of the logic circuit 2 and is connected to the interrupt signal of the communication module 3; the third end is grounded;
[0050] The second input terminal of the logic circuit 2 is connected to the power enable terminal of the communication module 3, and the output terminal is connected to the power management unit 4 of the communication module 3;
[0051] The controller 6 of the communication module 3 is connected to the storage device 5; it is used to output a first level from the logic circuit 2 when the switch device 1 is turned on, triggering the communication module 3 to turn on; when the switch device 1 is turned off, it receives an interrupt signal, stops the write operation to the storage device 5, calls the shutdown program of the communication module 3 to shut down the communication module 3, and the logic circuit 2 outputs a second level to turn off the power supply to turn off the external power supply.
[0052] Specifically, the switch device of this embodiment corresponds to two states, one is the power-on state of the host, and the other is the power-off state of the host. The type of specific switch device is not limited, but a push-button switch is excluded because a push-button switch usually consists of a button and an internal switch mechanism. When the button is pressed, the internal switch is turned on, and when the button is released, the switch is turned off. The user operates the switch by pressing the button, and each press causes the switch state to change once (usually from on to off or from off to on). The present application corresponds to a sliding switch of the type of dip switch. The dip switch consists of a series of small sliding switches arranged in one or more rows and usually packaged in a standard dual in-line package (DIP). The user can change the state of each small switch by manually toggling it, usually switching between "on" and "off".
[0053] The first terminal of the switch device receives the power signal, that is, the front-end power supply of the entire device is DC_IN, whose voltage is usually 12V or 5V DC power supply. The second terminal is connected to the first input terminal of the logic circuit and the interrupt signal of the communication module. The third terminal is grounded.
[0054] The logic circuit has two inputs. As mentioned above, the first input is connected to the second terminal of the switching device. Furthermore, the second input is connected to the power enable terminal (PWR_EN) of the communication module, and the output terminal is connected to the communication module's power management unit (PWU). The power enable terminal (PWR_EN) indicates whether a module, circuit, or device is receiving power. When the PWR_EN signal is high, it means that the corresponding component has sufficient power to start operating; conversely, a low signal indicates that the component is shut down or in hibernation to conserve energy. For example, in embedded system design, you might see PWR_EN used to control the power supply status of the processor, RAM, or peripherals, or to activate the overall power supply of a circuit board. At the software level, controlling PWR_EN can be a key operation to enable or disable a hardware module.
[0055] A power management unit (PMU) is a device that converts the voltage, frequency, and form of input power to produce output power that meets the requirements of the target device. It can convert AC to DC or between different voltage levels. A power converter typically consists of a transformer, rectifier, filter, and voltage regulator, all of which complete the power conversion and regulation.
[0056] The communication module's controller is connected to the memory device and is used to write to the memory device. The controller's main function is to cause the logic circuit to output a first level when the switch device is turned on, triggering the communication module to turn on. When the switch device is turned off, the controller receives an interrupt signal, stops writing to the memory device, invokes the communication module's shutdown program to shut down the communication module, and then outputs a second level to shut down the power supply, effectively shutting down the external power supply.
[0057] An embodiment of the present invention provides a data protection module, comprising a switch device having a first end connected to a power signal, a second end connected to a first input end of a logic circuit and connected to an interrupt signal from a communication module; a third end connected to ground; a second input end of the logic circuit connected to a power enable end of the communication module, and an output end connected to a power management unit of the communication module; a controller of the communication module connected to a storage device; and a control circuit configured to output a first level when the switch device is powered on, triggering the communication module to power on; and when the switch device is powered off, receiving an interrupt signal, stopping write operations to the storage device, invoking a shutdown program of the communication module to shut down the communication module, and outputting a second level to shut down the power supply to shut down the external power supply. The present invention utilizes a power-on / off detection circuit of the switch device to generate an interrupt signal to notify the controller of the communication module when the switch device is powered off. Due to the design of the logic circuit, the communication module does not immediately shut down. When the module receives the interrupt signal, it actively stops write operations to the storage device through software control, thereby implementing a system solution for protecting the communication module data. The shutdown program is then invoked to shut down the module and shut down the module power supply. The present invention actively stops the write operation when shutting down to avoid data damage or loss, thereby achieving the technical effect of data protection.
[0058] In some embodiments, the logic circuit is an OR gate logic circuit;
[0059] When the switch device is switched to the on state, the first input end of the OR gate logic circuit is at the first level, and the output end of the OR gate logic circuit is at the first level;
[0060] When the switch device is switched to the off state, the first input end of the OR gate logic circuit is at the second level, the second input end of the OR gate logic circuit is at the second level, and the output end of the OR gate logic circuit is at the second level.
[0061] Specifically, the output of the OR logic circuit is high when at least one input is high, and the output is low only when all inputs are low.
[0062] Switching to the power-on state means pulling up to the VCC power supply. At this time, the OR gate output is high, that is, the first level, and the PS_ON signal is pulled high to serve as the DCDC enable pin, controlling the DCDC to output the VBAT power supply. Then, the power-on signal CBL_PWR is pulled low to trigger automatic power-on, thereby realizing power-on of the module.
[0063] Switching to the shutdown state means pulling it down to GND. The module receives the EINT interrupt signal, thereby notifying the central processing unit (CPU) of the communication module to stop writing to the eMMC. The software control actively stops the writing to the eMMC. After the operation is completed, the module shutdown program is called to shut down the module. At this time, the output of the OR gate is low, that is, the second level. At the same time, PS_ON is in a low level state due to the presence of the pull-down resistor R1, and then the DCDC power supply is turned off, thereby shutting down the module and the external power supply.
[0064] The OR logic circuit provided in this embodiment ensures that the communication module will not shut down immediately when in the shutdown state, so that the CPU of the communication module can actively call the shutdown program, and while completing data protection, it can calmly complete the deinitialization of the module, thereby ensuring stable and reliable operation of the module.
[0065] In some embodiments, Figure 2 A structural diagram of an OR gate logic circuit provided by an embodiment of the present invention, such as Figure 2 As shown, the OR gate logic circuit includes a first diode D1, a second diode D2 and a first resistor R1;
[0066] The anode of the first diode D1 is connected to the second end of the switch device and receives the interrupt signal of the communication module;
[0067] The anode of the second diode D2 is connected to the power enable terminal of the communication module;
[0068] The cathodes of the first diode D1 and the second diode D2 are connected, and are connected to the first end of the first resistor R1 and the power management unit of the communication module;
[0069] A second end of the first resistor R1 is grounded.
[0070] Specifically, a circuit composed of a diode and a resistor is configured such that when at least one input is at a high level, the diode is turned on and the output is at a high level; when all inputs are at a low level, the diode is turned off and the output is at a low level.
[0071] The OR logic circuit provided by the embodiments of the present invention, consisting of a first diode, a second diode, and a first resistor, has low power consumption in the static state (i.e., when all inputs are low) because the diodes are in the off state and no current flows. The diodes have high input impedance, minimizing the impact on the preceding circuitry and improving signal integrity. This facilitates the implementation of wired-OR logic, reducing circuit costs. It also generally offers high reliability, a long service life, and reduced circuit failure rates.
[0072] In other embodiments, Figure 3A structural diagram of another OR gate logic circuit provided by an embodiment of the present invention, such as Figure 3 As shown, the OR gate logic circuit includes a first transistor T1, a second transistor T2, a second resistor R2, a third resistor R3 and a fourth resistor R4;
[0073] The first end of the second resistor R2 is connected to the second end of the switch device and receives the interrupt signal of the communication module; the second end of the second resistor R2 is connected to the control end of the first transistor T1;
[0074] A first end of the third resistor R3 is connected to the power enable terminal of the communication module; a second end of the third resistor R3 is connected to the control terminal of the second transistor T2;
[0075] The first end of the first transistor T1 is connected to the first end of the second transistor T2 and is connected to the power supply voltage; the second end of the first transistor T1 is connected to the second end of the second transistor T2 and is connected to the first end of the fourth resistor R4 and the power management unit of the communication module;
[0076] The second end of the fourth resistor R4 is grounded. Specifically, when a high level is input to either the first input or the second input, the first ends of the first and second transistors are connected to the power supply voltage and their second ends are grounded. The first and second transistors are turned on, and the voltage drop Uce after conduction is 0.3V. The voltage at the output end is 4.7V, indicating a high level. When both the first and second input ends are low, Ube < 0.7V, the first and second transistors cannot conduct, the output end is pulled to ground, and the output is a low level. The first input, the second input, and the output form an OR logic.
[0077] The OR gate logic circuit provided in this embodiment, consisting of two diodes and a transistor, has low power consumption in its static state (i.e., when both inputs are low) because the diodes are in the off state and no current flows. Diodes and transistors are generally cheaper than complex integrated circuits, and using these components to implement an OR gate can reduce circuit costs. It can also be easily integrated with other digital circuits to implement more complex logic functions.
[0078] In some embodiments, a DCDC converter 7 is further included;
[0079] A first end of the DCDC converter 7 is connected to the output end of the logic circuit 2 , and a second end of the DCDC converter 7 is connected to the power enable end of the communication module 3 .
[0080] Combined with the above embodiments Figure 1 As can be seen, the DC power supply DC_IN is converted to VBAT after DCDC, which is usually 3.8V voltage and is used to power the wireless communication module. The DCDC enable signal is PS_ON.
[0081] The connection relationship of adding a DCDC converter provided in this embodiment uses a switching device (such as a MOSFET / transistor) to periodically control the on and off of the switch to achieve pulse modulation of the input voltage, thereby realizing voltage conversion and automatic voltage stabilization functions.
[0082] In some embodiments, a fifth resistor R5 is further included;
[0083] A first end of the fifth resistor R5 is connected to a first end of the DCDC converter 7 and to an output end of the logic circuit 2;
[0084] A second terminal of the fifth resistor R5 is grounded.
[0085] Specifically, the fifth resistor acts as a pull-down resistor, which helps stabilize the input voltage and prevent voltage fluctuations or overshoots at the input, thereby protecting the DCDC converter from voltage spikes. In circuit design, if the input terminal is not connected to any device or is left floating, an uncertain voltage may appear at the input terminal, affecting the normal operation of the DCDC converter. The pull-down resistor can pull the input voltage down to a certain level to prevent the input terminal from floating.
[0086] Pull-down resistors can reduce noise interference at the input, improve the DC-DC converter's anti-interference ability, and thus enhance the stability and reliability of the power supply system. Pull-down resistors can also improve compatibility between different modules, ensuring that each module can function properly under different operating conditions.
[0087] In some embodiments, the switching device is a double-pole double-throw;
[0088] The first throw end of the first pole and the first throw end of the second pole of the double-pole double-throw are both connected to the power signal;
[0089] The common ends of the first and second blades are both connected to the first input end of the logic circuit;
[0090] The second throwing end of the first knife and the second throwing end of the second knife are both grounded.
[0091] Specifically, a double-pole double-throw switch is used in the embodiment of the present invention, which has the ability to control two independent circuits simultaneously and switch between two positions, switching the device between power sources and realizing two states of the switch.
[0092] In other embodiments, the switch device is a self-locking switch or a dip switch.
[0093] Combined with the above Figure 1 , S1 is a self-locking switch, used to trigger the power on / off operation of the entire machine. The power on / off process is described as follows:
[0094] Power on: When the self-locking switch is switched to the power on state, it is pulled high to the VCC power supply. At this time, the OR gate output is high, the PS_ON signal is pulled high, and as the DCDC enable pin, it controls the DCDC output VBAT power supply, and then triggers the automatic power on by pulling the power on signal CBL_PWR signal low, thus the module is powered on.
[0095] Shutdown: When the self-locking switch is switched to the shutdown state, that is, pulled low to GND, the module receives the EINT interrupt signal, thereby notifying the communication module CPU to stop writing to the eMMC. The software control actively stops the writing to the eMMC. After the operation is completed, the module shutdown program is called to shut down the module. At this time, the output of the OR gate is low. At the same time, PS_ON is in a low level state due to the presence of the pull-down resistor R1, and then the DCDC power supply is turned off, thereby shutting down the module and the external power supply.
[0096] The switch device provided by the present invention effectively utilizes the power-on / off detection circuit in combination with the self-locking switch and uses it for shutdown detection. At the same time, it is combined with an OR gate design so that when the S1 switch is in the shutdown state, the communication module will not shut down immediately, thereby enabling the CPU of the communication module to actively call the shutdown program. While completing data protection, it can calmly complete the deinitialization action of the module, thereby ensuring the stable and reliable operation of the module.
[0097] In addition, software has been added to automatically stop writing to the eMMC when the module is shut down. This significantly reduces costs compared to using an eMMC image backup or adding a backup power supply circuit for eMMC power supply. The detection circuit is located outside the module, so it does not occupy any internal space, thus saving space inside the communication module.
[0098] Furthermore, the present invention also provides a data protection method, which is applied to the above-mentioned data protection module, and the method includes:
[0099] When the switch device is turned on, the logic circuit outputs a first level to trigger the communication module to turn on;
[0100] When the switch device is shut down, it receives an interrupt signal, stops writing to the storage device, calls the shutdown program of the communication module to shut down the communication module, and the logic circuit outputs a second level to turn off the power supply to shut down the external power supply.
[0101] Specifically, Figure 4 A flowchart of a data protection method provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, including:
[0102] S11: Write data into eMMC;
[0103] S12: Determine whether the self-locking switch state is off, if so, proceed to step S13, if not, proceed to step S14;
[0104] S13: Stop eMMC subsequent page writing;
[0105] S15: Call the shutdown program;
[0106] S16: Control the DCDC converter to power off;
[0107] S17: Shut down;
[0108] S14: Complete eMMC subsequent page writing;
[0109] S18: Turn on the device.
[0110] The communication module monitors the S1 self-locking switch status through the EINT pin. When the S1 self-locking switch is in the off state, the writing of subsequent eMMC pages is stopped. If the S1 self-locking switch is in the on state, the writing of eMMC pages is completed.
[0111] The present invention provides a data protection method. When the switching device is turned on, the logic circuit outputs a first level, triggering the communication module to turn on. When the switching device is turned off, an interrupt signal is received, the write operation to the storage device is stopped, and the shutdown program of the communication module is called to shut down the communication module. The logic circuit outputs a second level, and the power is turned off to shut down the external power supply. The present invention utilizes the power on / off detection circuit of the switching device product. When in the shutdown state, an interrupt signal is generated to notify the controller of the communication module. Due to the design of the logic circuit, the communication module will not shut down immediately. When the module receives the interrupt signal, it will actively stop the write operation to the storage device through software control, thereby realizing a system solution for protecting the communication module data. Then, the shutdown program is called to shut down the module and shut down the power supply to the module. The present invention actively stops the write operation when shutting down to avoid data damage or loss, thereby achieving the technical effect of data protection.
[0112] Furthermore, the present invention also provides a communication device, including the above-mentioned data protection module.
[0113] For an introduction to a communication device provided by the present invention, please refer to the above method embodiment, and the present invention will not be described in detail here. It has the same beneficial effects as the above data protection module.
[0114] The above is a detailed introduction to a data protection module, method and communication device provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in several ways, and these improvements and modifications also fall within the scope of protection of the present invention.
[0115] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A data protection module, characterized in that: The data protection module includes a switch device, a logic circuit and a communication module; The first end of the switch device is connected to the power signal, the second end is connected to the first input end of the logic circuit and is connected to the interrupt signal of the communication module; and the third end is grounded; The second input terminal of the logic circuit is connected to the power enable terminal of the communication module, and the output terminal is connected to the power management unit of the communication module; The controller of the communication module is connected to the storage device; configured to output a first level from the logic circuit when the switch device is turned on, triggering the communication module to turn on; When the switch device is shut down, the interrupt signal is received, the write operation to the storage device is stopped, the shutdown program of the communication module is called to shut down the communication module, the logic circuit outputs the second level, and the power is turned off to shut down the external power supply.
2. The data protection module according to claim 1, wherein: The logic circuit is an OR gate logic circuit; When the switch device is switched to the on state, the first input end of the OR gate logic circuit is at the first level, and the output end of the OR gate logic circuit is at the first level; When the switch device is switched to the off state, the first input end of the OR gate logic circuit is at the second level, the second input end of the OR gate logic circuit is at the second level, and the output end of the OR gate logic circuit is at the second level.
3. The data protection module according to claim 2, wherein: The OR gate logic circuit includes a first diode, a second diode and a first resistor; The anode of the first diode is connected to the second end of the switch device and receives the interrupt signal of the communication module; The anode of the second diode is connected to the power enable terminal of the communication module; The cathodes of the first diode and the second diode are connected, and the first end of the first resistor is connected to the power management unit of the communication module; A second end of the first resistor is grounded.
4. The data protection module according to claim 2, wherein: The OR gate logic circuit includes a first transistor, a second transistor, a second resistor, a third resistor and a fourth resistor; The first end of the second resistor is connected to the second end of the switch device and receives the interrupt signal of the communication module; the second end of the second resistor is connected to the control end of the first transistor; A first end of the third resistor is connected to the power enable terminal of the communication module; a second end of the third resistor is connected to the control terminal of the second transistor; The first end of the first transistor is connected to the first end of the second transistor and is connected to the power supply voltage; the second end of the first transistor is connected to the second end of the second transistor and is connected to the first end of the fourth resistor and the power management unit of the communication module; A second end of the fourth resistor is grounded.
5. The data protection module according to claim 1, wherein: Also includes DCDC converter; A first end of the DCDC converter is connected to an output end of the logic circuit, and a second end of the DCDC converter is connected to a power enable end of the communication module.
6. The data protection module according to claim 5, wherein: Also including a fifth resistor; A first end of the fifth resistor is connected to the first end of the DCDC converter and to the output end of the logic circuit; A second end of the fifth resistor is grounded.
7. The data protection module according to claim 1, wherein: The switch device is a double-pole double-throw device; The first throwing end of the first pole of the double-pole double-throw and the first throwing end of the second pole of the double-pole double-throw are both connected to the power signal; The common ends of the first and second blades are both connected to the first input end of the logic circuit; The second throwing end of the first knife and the second throwing end of the second knife are both grounded.
8. The data protection module according to claim 1, wherein: The switch device is a self-locking switch or a dial switch.
9. A data protection method, characterized in that: Applied to the data protection module according to any one of claims 1 to 8, the method comprises: When the switch device is turned on, the logic circuit outputs a first level to trigger the communication module to turn on; When the switch device is shut down, the interrupt signal is received, the write operation to the storage device is stopped, the shutdown program of the communication module is called to shut down the communication module, the logic circuit outputs the second level, and the power is turned off to shut down the external power supply.
10. A communication device, characterized in that: The data protection module includes any one of claims 1 to 8.
Citation Information
Patent Citations
Flash memory protection module and closing method thereof
CN101174246A
Data protection circuit, method and device, electronic equipment and storage medium
CN115631779A
Signal protection circuit, server system, power failure restarting method and device and medium
CN118585053A
Power failure protection system, method and device for embedded multimedia card
CN118732806A
Data protection circuit, method and apparatus, and electronic device and storage medium
WO2024078231A1