Electronic equipment data protection method and system and nonvolatile storage medium
By detecting the housing status of the electronic device through detection circuits and micro switches, backing up data and destroying the chip, the problems of high data protection cost and low applicability in the existing technology are solved, and more efficient and secure data protection is achieved.
Patent Information
- Application Number
- CN202411587215.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-14
AI Technical Summary
Existing electronic equipment data protection methods are costly, low applicability and incomplete protection measures, resulting in low data security.
By receiving the level signal transmitted by the detection circuit, the micro switch is used to detect the housing status of the electronic device, and back up the data to the cloud when the housing is disassembled, and the chips in the circuit board are damaged.
It reduces data protection costs, improves adaptability, improves protection measures, improves data security, and avoids the risk of data leakage and instructions being tampered with.
Smart Images

Figure CN119442354A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular, to a method and system for protecting data of an electronic device and a non-volatile storage medium. Background Art
[0002] With the development of communication technologies such as 5G, the Internet, and the Internet of Things, there are more and more types of electronic devices, and the number is growing exponentially. For enterprises, with the trend of digitalization, enterprises are increasingly dependent on information systems for daily operations and decision-making support. These digital products store a large amount of business secrets and core data, such as customer information, R&D results, and company strategies. Once this information is leaked or obtained by competitors, it will seriously damage the business interests and market competitiveness of the enterprise. Therefore, it is crucial for enterprises to protect the data security of electronic devices and prevent the leakage of business secrets. For individual users, more and more electronic devices are appearing in people's field of vision. These products store a large amount of personal information and sensitive data such as bank accounts. If this information is illegally obtained or abused, it will pose a great threat to personal privacy and even cause serious consequences such as property loss. Protecting the data security in electronic devices is a basic requirement for safeguarding user rights.
[0003] Protecting the data security of electronic devices is not only related to the confidentiality of information and preventing sensitive information from being obtained and accessed without authorization, but also to the stability and reliability of the system. When the internal data of a product is maliciously attacked or damaged, the function of the product is greatly affected, which may lead to service interruption or system crash. In serious cases, it may also cause abnormal operation or even damage of the product, endangering personal safety and industrial production, and causing great safety risks.
[0004] Therefore, it is crucial to ensure the data security of electronic devices, and it is necessary to conduct in-depth research on anti-cracking technical solutions for electronic devices. Current data protection methods for electronic devices generally have problems of high cost and low applicability.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present application provide a method, system and non-volatile storage medium for protecting data of an electronic device, so as to at least solve the technical problem of low security caused by high cost, low adaptability and imperfect protection measures of existing protection technologies.
[0007] According to one aspect of an embodiment of the present application, a method for protecting data of an electronic device is provided, comprising: receiving a level signal transmitted by a detection circuit, wherein the level signal comprises a first signal and a second signal, the first signal being used to indicate that a shell of the electronic device has not been disassembled, and the second signal being a level signal different from the first signal, the detection circuit being connected to a micro switch, and being used to convert a switch signal of the micro switch into a level signal, and when the shell of the electronic device is disassembled, the micro switch is closed, and the level signal is changed from the first signal to the second signal; in the case where the level signal changes, the level signal is collected multiple times after a delay of a preset time, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state comprises whether the shell is disassembled or not; in the case where the shell state is that the shell is disassembled, the data in the electronic device is backed up to the cloud; after backing up the data in the electronic device to the cloud, a destructive operation is performed on the chip in the circuit board, wherein the circuit board is arranged in the electronic device.
[0008] Optionally, the detection circuit is provided with a low-pass filter, a gate resistor, a capacitor, a discharge circuit and a field effect transistor. The low-pass filter is used to filter out high-frequency components in the signal, the field effect transistor is used to convert the level signal, the gate resistor is used to reduce the oscillation caused when the field effect transistor is turned on, the capacitor is used to reduce the Miller effect of the field effect transistor, and the discharge circuit is used to reduce the voltage between the gate and the source of the field effect transistor.
[0009] Optionally, the low-pass filter has a micro switch connected to the first end and a gate resistor connected to the second end; the gate resistor has a low-pass filter connected to the first end and a capacitor connected to the second end; the capacitor has a gate resistor connected to the first end and a discharge circuit connected to the second end; the discharge circuit has a capacitor connected to the first end and a field effect transistor connected to the second end; the field effect transistor has one end connected to the discharge circuit.
[0010] Optionally, collecting the level signal multiple times after a preset delay, and determining the shell state according to the proportion of the first signal in the multiple level signals includes: starting to collect the level signal in the detection circuit after a preset delay, wherein the preset time length is greater than the duration of the level signal jitter; collecting the level signal at preset time intervals, obtaining a level signal set, and determining the shell state according to the level signal set.
[0011] Optionally, determining the state of the shell based on the level signal set includes: determining a proportion of the first signal in the level signal set to the total number of the level signal set, and a proportion of the second signal in the total number of the level signal set; when the proportion of the first signal to the total number of the level signal set exceeds a preset threshold, determining that the state of the shell is that the shell is not disassembled; when the proportion of the second signal to the total number of the level signal set exceeds a preset threshold, determining that the state of the shell is that the shell is disassembled.
[0012] Optionally, after backing up the data in the electronic device to the cloud, the method also includes clearing the data in the memory.
[0013] Optionally, the circuit board is connected to a self-destruct circuit. After backing up the data in the electronic device to the cloud, the chip in the circuit board is destroyed, including: turning on the self-destruct circuit to burn the processing chip in the circuit board, wherein the self-destruct circuit is used to provide a voltage exceeding the voltage threshold of the circuit board.
[0014] According to another aspect of an embodiment of the present application, a protection system for electronic device data is also provided, including a micro switch, a detection circuit, a controller and a self-destruction circuit, wherein: the controller receives a level signal transmitted by the detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the shell of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal. When the level signal changes, the level signal is collected multiple times after a preset delay, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state includes whether the shell is disassembled and whether the shell is not disassembled; when the shell state is that the shell is disassembled, the data in the electronic device is backed up to the cloud; the detection circuit is used to convert the switch signal of the micro switch into a level signal, and is connected to the micro switch. When the shell of the electronic device is disassembled, the micro switch is closed, and the level signal changes from the first signal to the second signal; after the data in the electronic device is backed up to the cloud, the self-destruction circuit is turned on to burn the processing chip in the circuit board, wherein the self-destruction circuit is used to provide a voltage exceeding the circuit board voltage threshold.
[0015] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, in which a program is stored, wherein when the program is running, a device where the non-volatile storage medium is located is controlled to execute a method for protecting electronic device data.
[0016] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, a method for protecting data of an electronic device is implemented.
[0017] In an embodiment of the present application, a level signal transmitted by a receiving detection circuit is used, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the shell of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal, and the detection circuit is connected to a micro switch, and is used to convert the switch signal of the micro switch into a level signal. When the shell of the electronic device is disassembled, the micro switch is closed, and the level signal changes from the first signal to the second signal; when the level signal changes, the level signal is collected multiple times after a preset delay, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state includes the shell being disassembled. The outer shell is open and the outer shell is not disassembled; when the outer shell is in the state of being disassembled, the data in the electronic device is backed up to the cloud; after the data in the electronic device is backed up to the cloud, the chip in the circuit board is destroyed, wherein the circuit board is arranged in the electronic device, the outer shell state is detected by a micro switch, and the data is backed up and destroyed when it is detected that the outer shell is disassembled, thereby achieving the purpose of reducing data protection costs, improving adaptability, and improving protection measures, thereby achieving the technical effect of improving data security, and further solving the technical problem of low security caused by the high cost, low adaptability and imperfect protection measures of existing protection technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 It is a structural schematic diagram of a computer terminal (mobile device) provided according to an embodiment of the present application;
[0020] Figure 2 It is a flowchart of a method for protecting data of an electronic device provided according to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of the construction principle of a micro switch provided according to an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of a contact resistance-contact force relationship curve of a micro switch provided according to an embodiment of the present application;
[0023] Figure 5 It is a schematic diagram of a switching time-speed relationship curve of a micro switch transmission mechanism provided according to an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of a micro switch state switching jitter condition provided according to an embodiment of the present application;
[0025] Figure 7 is a schematic diagram of a detection circuit provided according to an embodiment of the present application;
[0026] Figure 8 is a schematic diagram of an action process of a micro switch provided according to an embodiment of the present application;
[0027] Fig. 9 is a schematic diagram of a self-destruct circuit provided according to an embodiment of the present application;
[0028] Fig.10 This is a schematic diagram of a protection process of electronic device data provided according to an embodiment of the present application;
[0029] Fig.11 This is a physical diagram of a device for protecting data of an electronic device provided according to an embodiment of the present application;
[0030] Fig.12 is a schematic diagram of a switch in a pressed state provided according to an embodiment of the present application;
[0031] Fig.13 It is a schematic diagram of a switch pop-up state provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising 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.
[0034] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0035] Interrupt: When a computer is running and some unexpected situation occurs, requiring host intervention, the machine can automatically stop the running program and switch to a program to handle the new situation. After the processing is completed, it returns to the originally paused program to continue running.
[0036] Interrupt service routine: refers to the program that the processor uses to handle "urgent matters". It is completed by executing a specific program that has been programmed in advance. Once the CPU receives an interrupt request, the CPU will temporarily stop executing the running program and call the interrupt service routine. After the interrupt is processed by the CPU, the execution of the previously interrupted program will be resumed.
[0037] In the related art, common data protection schemes for electronic devices are as follows:
[0038] 1. Determine whether the housing has been disassembled by judging whether the characteristic parameters of the antenna have changed. The specific method is to place the detection antenna on the anti-disassembly part. When the anti-disassembly part is disassembled, the antenna is damaged, the current antenna characteristic parameters change, and are inconsistent with the initial antenna characteristic parameters, and it is determined that the anti-disassembly part has been disassembled.
[0039] The problem with this solution is that the antenna design is relatively complex and the layout requires high precision. A slight change in the shape of the antenna will also cause changes in the characteristic parameters of the antenna. At the same time, the layout is greatly affected by the structure and the antenna can only be arranged in specific suitable locations.
[0040] 2. Determine whether the shell is disassembled by detecting the value of the parasitic capacitance formed between the metal shell and the copper foil on the circuit board. The specific method is to reserve blank copper foil as an electrode at the corresponding position when designing the circuit board. At the same time, the shell shares a ground with the printed circuit board through a conductive copper column, thereby forming a parasitic capacitor. At the same time, a capacitance detection function is designed on the circuit board to detect the parasitic capacitance value. When the shell is disassembled, the distance between the electrodes changes, which in turn causes the parasitic capacitance value to change. If it is different from the initial capacitance value, it is determined that the shell is disassembled.
[0041] The problem with this method is that when the device is disassembled, it only issues a warning but does not take any countermeasures to prevent data leakage, posing a risk of data theft.
[0042] In summary, the existing electronic device data protection methods have limited scope of application and are not universal. At the same time, the existing anti-cracking protection scheme does not propose effective countermeasures after the device is disassembled. Therefore, in view of the shortcomings of the existing device protection scheme, the embodiments of the present application provide relevant solutions, which are described in detail below.
[0043] According to an embodiment of the present application, a method embodiment of a method for protecting data of an electronic device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for protecting electronic device data is shown. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0045] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0046] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the method for protecting electronic device data in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned method for protecting electronic device data is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0047] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0048] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0049] In the above operating environment, the present application embodiment provides a method for protecting data of an electronic device, such as Figure 2 As shown, the method comprises the following steps:
[0050] Step S202, receiving a level signal transmitted by a detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the housing of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal, the detection circuit is connected to a micro switch, and is used to convert a switch signal of the micro switch into a level signal, when the housing of the electronic device is disassembled, the micro switch is closed, and the level signal is changed from the first signal to the second signal;
[0051] Optionally, the anti-disassembly detection of electronic products is mainly achieved through the application of micro switches. When the outer shell is disassembled due to external force, the micro switch is closed, and the detection circuit converts the switch signal of the micro switch into an electrical signal and transmits it to the processor. The voltage of the relevant pin of the processor changes, the interrupt is triggered, and the interrupt service program is started. Figure 3The diagram shows the construction principle of a micro switch. A micro switch is a switch with a small contact spacing and a snap-action mechanism. It has an external drive rod and can perform a switch action with a specified stroke and a specified force. Since the contact spacing of the switch is small, it can more sensitively feedback the stroke status. Micro switches have the characteristics of small size, simple structure, high reliability and long service life. They are widely used in the circuits of modern electronic equipment, such as electronic instruments, household appliances and mechanical equipment. The micro switch is composed of components such as contacts, springs, contact rods and housings. The structure is as follows Figure 3 As shown in the figure, the contact is the core component of the micro switch, which is divided into normally closed contact and normally open contact. When external force is applied to the contact rod, the contact undergoes elastic deformation, resulting in separation or contact, thereby changing the state of the switch.
[0052] The working principle of the micro switch mainly depends on the elastic deformation of the spring and the contact and separation of the contacts. The contact and separation of the contacts are achieved by the displacement of the touch rod. The magnitude and direction of the external force will affect the displacement of the touch rod. According to the change of the state of the contact, the micro switch can realize the on-off function of the circuit. The whole process can be simply summarized as the following steps:
[0053] ① Initial state: When there is no external force, the normally closed contacts are in a closed state and the circuit remains connected.
[0054] ② Apply external force: When external force acts on the micro switch, the contact rod will be displaced, which will lead to elastic deformation of the contact.
[0055] ③Contact separation: Under the action of external force, the spring is compressed to a certain extent, the contacts separate, the circuit is disconnected, and the relevant level state changes.
[0056] ④Contact contact: When the external force disappears or decreases to a certain level, under the action of the spring, the contacts will re-contact and the circuit will be connected.
[0057] Since the micro switch has the characteristic of converting travel into electrical signals, this characteristic can be used to detect the shell status of electronic products. Through a specific mechanical structure and detection circuit design, the change of the shell status is fed back to the circuit signal, and then the signal is detected, identified and processed by algorithms to accurately reflect the status of the electronic product shell.
[0058] When applying micro switches, the circuit signal is mainly affected by the following two factors:
[0059] ①Contact resistance: The contact resistance changes according to the change of contact force, such as Figure 4 As shown, when the contact force of the contact point increases, the contact resistance decreases, and conversely, when the contact force of the contact point decreases, the contact resistance increases.
[0060] ②Contact switching time: The relationship between the operating speed of the transmission mechanism and the contact switching time is as follows: Figure 5 As shown. As the operating speed of the transmission mechanism gradually slows down, the contact switching time will gradually become longer. The contact switching time of a general micro switch is 5 to 10 milliseconds. Among them, the change in contact force and the friction of the contact lead to the change in contact resistance, which in turn produces jitter. Figure 6 A state switching jitter situation is shown. This jitter may cause malfunction of the electronic circuit after being connected to the electronic circuit. According to the subsequent processing of this application, the influence of the malfunction on the state detection can be avoided.
[0061] In some optional embodiments of the present application, a low-pass filter, a gate resistor, a capacitor, a discharge circuit and a field effect tube are provided in the detection circuit, the low-pass filter is used to filter out high-frequency components in the signal, the field effect tube is used to convert the level signal, the gate resistor is used to reduce the oscillation caused when the field effect tube is turned on, the capacitor is used to reduce the Miller effect of the field effect tube, and the discharge circuit is used to reduce the voltage between the gate and the source of the field effect tube. The low-pass filter is connected to a micro switch at the first end and the gate resistor at the second end; the gate resistor is connected to the low-pass filter at the first end and the capacitor at the second end; the capacitor is connected to the gate resistor at the first end and the discharge circuit at the second end; the discharge circuit is connected to the capacitor at the first end and the field effect tube at the second end; the field effect tube is connected to the discharge circuit at one end.
[0062] Optionally, in order to solve the misjudgment problem caused by the jitter of the micro switch, when designing the micro switch detection circuit, the jitter time should be reduced as much as possible and the level should be kept in a stable state as much as possible. Figure 7The schematic diagram of a detection circuit is shown. First, a low-pass filter composed of resistor R4 and capacitor C1 processes the signal transmitted by the micro switch and filters out the high-frequency components in the signal. In order to realize the rapid detection of the micro switch signal, the MOS tube (field effect tube) Q1 needs to be turned on quickly, but the turning-on speed is too fast and it is easy to cause oscillation. Therefore, the gate resistor R5 is added to reduce the Q value of the circuit and make the oscillation decay quickly. Capacitor C2 can reduce the influence of the Miller effect of the MOS tube: by providing a bypass path to reduce the feedback effect of the Miller capacitance between the gate and the drain on the gate voltage. Due to the effect of static electricity, it is easy to accumulate charge between GS (gate, source) to cause the MOS tube to be mis-conducted, so R6 provides a discharge circuit for the GS pole to reduce the voltage between the GS poles. So far, the de-jittering process has been preliminarily completed, and then the high and low level conversion process is carried out. When the product leaves the factory normally, the micro switch is in the off state. At this time, the gate of the MOS tube Q1 is high level, Q1 is turned on, so that the gate voltage of Q2 changes to low level, Q2 is turned off, and under the action of the R2 pull-up resistor, the detection pin of the controller is high level, and the interrupt is not triggered, which conforms to the logic that only low level can be triggered. When the shell is disassembled, the micro switch is turned on, so that the gate voltage of the MOS tube Q1 becomes low level, Q1 is turned off, and under the action of the R1 pull-up resistor, the gate voltage of Q2 is high level, Q2 is turned on, so that the detection pin is low level, thereby triggering the interrupt. The processor is set with relevant interrupts and interrupt service programs. The voltage change of the detection pin causes the interrupt to be triggered, and then the interrupt service program performs further status confirmation and data clearing operations.
[0063] Step S204, when the level signal changes, the level signal is collected multiple times after a preset delay, and the housing state is determined according to the proportion of the first signal in the multiple level signals, wherein the housing state includes whether the housing is disassembled or not;
[0064] Optionally, the shell status confirmation and data clearing of electronic products are mainly realized through the application of interrupt service programs. After the interrupt of the processor is triggered, the main program jumps to the interrupt service program, in which the shell status confirmation program is first executed to further confirm the status of the product shell. According to the confirmation result of the shell status, the corresponding program algorithm is selected to execute. If it is confirmed that the shell is disassembled, the data is backed up to the cloud and the data clearing program is executed; if the shell is not disassembled, the interrupt is jumped.
[0065] Optionally, the principle of the interrupt service routine is:
[0066] An interrupt is a process in which a program is suspended and another program is started due to a hardware or software trigger signal received during the program running. Interrupts improve the system's ability to handle emergencies and improve the processor's efficiency in multitasking.
[0067] The Interrupt Service Routine (ISR) is a specific program used to respond to an interrupt request after the interrupt is recognized by the system. When the interrupt service routine completes the interrupt processing, the processor will resume executing the main program. Its main functions are as follows:
[0068] ① Implement asynchronous event processing: The interrupt service routine is used to handle asynchronous events generated by peripherals or within the system. These events may occur at any time and the processing time is usually short. Through the interrupt service routine, these events can be processed in a timely manner without affecting the operation of the main program.
[0069] ②Simplify program design: Using interrupt service routines can separate interrupt processing logic from the main program logic, making the program structure clearer, easier to understand and maintain. At the same time, since the interrupt service routine is specifically used to handle interrupts, it can be customized and optimized for specific interrupt types.
[0070] ③ Improve system response speed: Since the interrupt service program is executed immediately when an interrupt occurs, it can respond to and process external events in the first place, thereby improving the system response speed. This is especially important for application scenarios that require real-time response.
[0071] Since the interrupt can be directly triggered by an external voltage signal without the need for internal program intervention, the interrupt method can efficiently detect the shell status. At the same time, when using a micro switch to detect the shell status of an electronic product, the biggest difficulty is how to confirm whether the shell is actually opened. In actual normal use, the product may fall, etc. These objective reasons are likely to cause the internal micro switch to vibrate and thus lead to misjudgment, and the shell is actually not opened.
[0072] Based on this, the present application designs a shell status confirmation program and a data clearing program in the interrupt service program. The shell status confirmation program is first executed to further confirm the shell status and avoid misjudgment caused by the jitter of the micro switch, and then decides whether to execute the corresponding data clearing program according to the confirmation result of the shell status.
[0073] In some optional embodiments of the present application, collecting level signals multiple times after a preset delay, and determining the shell state according to the proportion of the first signal in the multiple level signals includes: starting to collect the level signal in the detection circuit after a preset delay, wherein the preset time length is greater than the duration of the level signal jitter; collecting the level signal at preset time intervals, obtaining a level signal set, and determining the shell state according to the level signal set.
[0074] Optionally, in order to quickly and accurately confirm the true status of the product shell, while using the detection circuit to process the jitter, this step uses a program algorithm for auxiliary processing, that is, setting a shell status confirmation program in the interrupt service program, mainly adding a delay during detection to eliminate the impact of jitter, and using a multiple detection algorithm to improve the recognition accuracy.
[0075] The delay debounce is mainly designed based on the mechanical characteristics of the micro switch. The mechanical characteristics of the micro switch determine that the jitter time of the key is generally 5ms to 10ms. Figure 8 A schematic diagram of a micro switch operation process is shown, such as Figure 8 As shown in the figure, after 10ms of jitter when the button is pressed, the button signal level tends to be stable. After the button is released, after 10ms of release jitter, the button level returns to its original state. Therefore, in the shell status confirmation program, a 10ms delay algorithm is first added to eliminate the jitter effect, filter out the 10ms of pressing jitter, and start collecting signals after the button signal level is stable.
[0076] In some optional embodiments of the present application, determining the state of the shell based on the level signal set includes: determining the proportion of the first signal in the level signal set to the total number of the level signal set, and the proportion of the second signal to the total number of the level signal set; when the proportion of the first signal to the total number of the level signal set exceeds a preset threshold, determining that the state of the shell is that the shell is not disassembled; when the proportion of the second signal to the total number of the level signal set exceeds a preset threshold, determining that the state of the shell is that the shell is disassembled.
[0077] Optionally, a multiple detection algorithm is used to collect the signal level every 10ms during the key signal level collection process, and the total number of detections during the level transition from one state to another and the number of high and low levels respectively appear are counted, and the state corresponding to more than 2 / 3 of the total number of detections is determined as the state of the signal level. Through this multiple detection algorithm, the real state of the key can be identified more accurately, avoiding misjudgment caused by looseness during the key pressing process.
[0078] Step S206, when the shell state is that the shell is disassembled, backing up the data in the electronic device to the cloud;
[0079] In some optional embodiments of the present application, after backing up the data in the electronic device to the cloud, the method also includes clearing the data in the memory.
[0080] Optionally, when it is confirmed that the shell of the electronic product has been disassembled, the processor backs up the data to the cloud and executes the corresponding data clearing program. Since the product is equipped with a FLASH memory for storing data during operation, this solution uses the flash_eraseall command to clear the data in the entire FLASH memory to prevent data leakage caused by the shell being disassembled.
[0081] Step S208, after backing up the data in the electronic device to the cloud, performing a destruction operation on the chip in the circuit board, wherein the circuit board is arranged in the electronic device.
[0082] Optionally, the destruction is irreversible burning destruction.
[0083] In some optional embodiments of the present application, the circuit board is connected to a self-destruct circuit. After the data in the electronic device is backed up to the cloud, the chip in the circuit board is destroyed, including: turning on the self-destruct circuit to burn the processing chip in the circuit board, wherein the self-destruct circuit is used to provide a voltage exceeding the voltage threshold of the circuit board.
[0084] Optionally, after completing the data clearing work in the previous step, in order to fundamentally avoid data leakage, this solution designs a self-destruct circuit to physically destroy the disassembled electronic products. The core of the self-destruct circuit is to increase the working voltage of the circuit to a higher voltage. After confirming that the shell is disassembled, this voltage will be applied to the processor chip. Since this voltage far exceeds the threshold voltage of the chip, the application of this voltage will directly cause the chip to be completely broken down and damaged, and all internal data will be destroyed. The designed circuit schematic is shown in the figure below. Fig. 9 As shown. The designed self-destruct circuit was verified using simulation software, and the output result is shown in the figure. The principle of the self-destruct circuit is mainly to increase the 12V working voltage of the circuit to 24V, and store the electrical energy in a larger electrolytic capacitor, which is connected to the 3.3V power supply pin of the processor through a switch. When it is confirmed that the shell is disassembled, the switch will be turned on, and the 24V voltage will be directly applied to the processor chip. The power supply voltage exceeding the threshold will directly burn the processor chip. The irreversible physical damage fundamentally prevents data leakage, thereby achieving the purpose of product anti-cracking and data protection.
[0085] Through the above steps, it is possible to effectively identify that the shell of an electronic product has been disassembled during use, and to take perfect countermeasures after the shell has been disassembled, thereby achieving the technical effect of improving data security, thereby solving the technical problem of low security caused by the high cost, low adaptability and imperfect protection measures of existing protection technologies, ensuring the data security of electronic products during actual use, avoiding the risk of data leakage and instruction tampering, and maintaining the safety, reliability and stability of the product. The electronic device data protection method proposed in this application mainly includes three parts: anti-dismantling detection, shell status confirmation and data clearing, and self-destruction settings. This technical solution combining software and hardware can greatly improve the security of electronic products and related systems and reduce the risk of data leakage. Specifically, this application has the following advantages:
[0086] (1) Anti-disassembly detection: The micro switch and the housing are linked through structural design, and the state change of the micro switch is used to reflect the state change of the housing. In view of the problem of misjudgment of the state caused by the jitter of the micro switch in the application, the optimized circuit design can filter out the jitter interference to a great extent, reduce the possibility of misjudgment of the action signal, and improve the accuracy of recognition. Compared with the solutions such as arranging antennas and circuit board parasitic capacitance, this solution is more universal and can meet most usage scenarios. At the same time, only micro switches and a small number of components are added to the hardware, and the cost is also lower.
[0087] (2) Shell status confirmation and data clearing: Existing technical solutions do not propose effective countermeasures for electronic products that have been disassembled, and there is a risk of data leakage. In response to the above problems, this solution designs a shell status confirmation program and a data clearing program, and innovatively applies them to the anti-cracking of electronic products. First, the accuracy of status recognition is further improved by combining software and hardware. Then, after confirming that the shell has been disassembled, the data during the operation of the electronic product is backed up to the cloud and all data is cleared. In this way, the possibility of illegal reading of product data is effectively reduced.
[0088] (3) Self-destruction setting: In order to fundamentally ensure the data security after the shell is removed, this solution has specially added a self-destruction circuit. When it is confirmed that the shell of the electronic product has been removed, the self-destruction circuit is connected and starts working, directly burning the processor chip of the product. This irreversible physical damage fundamentally eliminates the occurrence of illegal acquisition of product data.
[0089] In some optional embodiments of the present application, the protection process of electronic device data is as follows: Fig.10As shown in the figure, when the product shell is disassembled, the shape change of the shell triggers the action of the micro switch, so that the terminal contacts of the micro switch are closed. Under the action of the detection circuit, the mechanical signal of the micro switch contact is converted into a level change of the electrical signal. This level change can trigger the processor to enter an interrupt, and then the designed interrupt service program starts working. The interrupt service program mainly uses algorithms to further determine the state of the shell and perform data backup and clear operations. After confirming that the product shell has been disassembled, the data is backed up to the cloud and all internal data is cleared. Then the processor will output a control signal to turn on the switch of the self-destruct circuit, and a voltage exceeding the threshold will be applied to the processor chip, which will completely break down and damage the processor, fundamentally destroying all internal data, thereby achieving the purpose of data protection for electronic products.
[0090] Under the action of the detection circuit, the mechanical signal of the micro switch is converted into an electrical signal, and the signal is transmitted to the processor at the same time. The level change of this electrical signal can timely trigger the processor to enter an interrupt, realizing the rapid detection of the shell status, and the interrupt method can efficiently respond to the event. Finally, after the program clears the internal data, the processor outputs a control signal to turn on the switch of the self-destruct circuit, so that the self-destruct circuit can work, avoiding the problem of equipment self-destruction caused by the micro switch being accidentally touched and the self-destruct circuit starting to work.
[0091] In some optional embodiments of the present application, corresponding circuit boards and housing structures are also designed and assembled according to the above process. Fig.11 Shown is a physical picture, Fig.12 A schematic diagram of the pressed state is shown. Fig.13 The schematic diagram of the pop-up state is shown, 3 is the front panel, the circuit board 4 and the housing 5 are designed in a drawer style, and the circuit board 4 is installed inside through the guide groove. When the electronic product is in normal use, the entire circuit board 4 is completely covered by the housing 5, and the button 1 of the micro switch 2 is pressed and in a stable state. When the product housing 5 is disassembled, the terminal contacts of the micro switch 2 are closed, the processor interrupt is triggered, and then a specific interrupt service program is started. After confirming that the product housing 5 is disassembled, the data is backed up to the cloud and all data is cleared. At the same time, the self-destruct circuit burns the processor chip, thereby achieving the purpose of data protection of electronic products.
[0092] To this end, the above technical solution was actually verified. Several scenarios were tested, including normal use, use in a bumpy environment, falling during use, and illegal shell disassembly. The misjudgment caused by the jitter of the micro switch and the accuracy of the shell status confirmation program were tested. The test results are as follows:
[0093] Test content Number of tests Number of correct results Recognition accuracy Normal use 100 100 100% Use in bumpy environments 100 100 100% Dropped during use 100 99 99% Illegal disassembly of the casing 50 50 100%
[0094] Among them, use in a bumpy environment and falling during use are situations where the shell is not disassembled but can cause the micro switch to vibrate, which can easily cause misjudgment of the micro switch. Through the test of the above technical solution, it is shown that the shell status confirmation program can more accurately filter out the interference of the micro switch jitter signal, thereby avoiding misjudgment and more accurately reflecting the actual status of the shell.
[0095] The embodiment of the present application provides a data protection system for an electronic device, including a micro switch, a detection circuit, a controller and a self-destruction circuit, wherein: the controller receives a level signal transmitted by the detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the shell of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal. When the level signal changes, the level signal is collected multiple times after a preset delay, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state includes whether the shell is disassembled and whether the shell is not disassembled; when the shell state is that the shell is disassembled, the data in the electronic device is backed up to the cloud; the detection circuit is used to convert the switch signal of the micro switch into a level signal, and is connected to the micro switch. When the shell of the electronic device is disassembled, the micro switch is closed, and the level signal changes from the first signal to the second signal; after the data in the electronic device is backed up to the cloud, the self-destruction circuit is turned on to burn the processing chip in the circuit board, wherein the self-destruction circuit is used to provide a voltage exceeding the voltage threshold of the circuit board.
[0096] The embodiment of the present application provides a non-volatile storage medium, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the following electronic device data protection method, including: receiving a level signal transmitted by a detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the shell of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal, the detection circuit is connected to a micro switch, and is used to convert the switch signal of the micro switch into a level signal, when the shell of the electronic device is disassembled, the micro switch is closed, and the level signal changes from the first signal to the second signal; when the level signal changes, the level signal is collected multiple times after a preset delay, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state includes whether the shell is disassembled and whether the shell is not disassembled; when the shell state is that the shell is disassembled, the data in the electronic device is backed up to the cloud; after the data in the electronic device is backed up to the cloud, a chip in the circuit board is destroyed, wherein the circuit board is arranged in the electronic device.
[0097] The embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the following method for protecting data of an electronic device, including: receiving a level signal transmitted by a detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the shell of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal, the detection circuit is connected to a micro switch, and is used to convert the switch signal of the micro switch into a level signal, when the shell of the electronic device is disassembled, the micro switch is closed, and the level signal changes from the first signal to the second signal; when the level signal changes, the level signal is collected multiple times after a preset delay, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state includes whether the shell is disassembled and whether the shell is not disassembled; when the shell state is that the shell is disassembled, the data in the electronic device is backed up to the cloud; after the data in the electronic device is backed up to the cloud, a destructive operation is performed on the chip in the circuit board, wherein the circuit board is arranged in the electronic device.
[0098] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0100] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0101] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0103] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for protecting data of an electronic device, characterized in that: include: Receive a level signal transmitted by a detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the housing of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal, the detection circuit is connected to a micro switch, and is used to convert a switch signal of the micro switch into a level signal, when the housing of the electronic device is disassembled, the micro switch is closed, and the level signal is changed from the first signal to the second signal; In the case where the level signal changes, the level signal is collected multiple times after a preset delay, and the housing state is determined according to the proportion of the first signal in the multiple level signals, wherein the housing state includes whether the housing is disassembled or not; When the shell is in the disassembled state, backing up the data in the electronic device to the cloud; After backing up the data in the electronic device to the cloud, a chip in a circuit board is destroyed, wherein the circuit board is arranged in the electronic device.
2. The method for protecting electronic device data according to claim 1, characterized in that: The detection circuit is provided with a low-pass filter, a gate resistor, a capacitor, a discharge circuit and a field effect transistor. The low-pass filter is used to filter out high-frequency components in the signal, the field effect transistor is used to convert the level signal, the gate resistor is used to reduce the oscillation caused when the field effect transistor is turned on, the capacitor is used to reduce the Miller effect of the field effect transistor, and the discharge circuit is used to reduce the voltage between the gate and the source of the field effect transistor.
3. The method for protecting electronic device data according to claim 2, characterized in that: The low-pass filter has a first end connected to the micro switch and a second end connected to the gate resistor; The gate resistor has a first end connected to the low-pass filter and a second end connected to the capacitor; The capacitor has a first end connected to the gate resistor and a second end connected to the discharge circuit; The discharge circuit has a first end connected to the capacitor and a second end connected to the field effect transistor; One end of the field effect tube is connected to the discharge circuit.
4. The method for protecting electronic device data according to claim 1, characterized in that: Collecting the level signal multiple times after a preset delay, and determining the housing state according to the proportion of the first signal in the multiple level signals includes: After a delay of a preset time length, the level signal in the detection circuit is started to be collected, wherein the preset time length is greater than the duration of the jitter of the level signal; The level signal is collected at a preset time interval to obtain a level signal set, and the housing state is determined according to the level signal set.
5. The method for protecting electronic device data according to claim 4, characterized in that: Determining the housing state according to the level signal set includes: Determine a ratio of the first signal in the level signal set to the total number of the level signal set, and a ratio of the second signal in the total number of the level signal set; When the proportion of the first signal to the total number of the level signal set exceeds a preset threshold, determining that the housing state is that the housing is not disassembled; When the proportion of the second signal to the total number of the level signal set exceeds the preset threshold, it is determined that the housing state is that the housing is disassembled.
6. The method for protecting electronic device data according to claim 1, characterized in that: After backing up the data in the electronic device to the cloud, the method further includes clearing the data in the memory.
7. The method for protecting electronic device data according to claim 1, characterized in that: The circuit board is connected to a self-destruct circuit. After backing up the data in the electronic device to the cloud, the chip in the circuit board is destroyed, including: The self-destruct circuit is turned on to burn out the processing chip in the circuit board, wherein the self-destruct circuit is used to provide a voltage exceeding a voltage threshold of the circuit board.
8. A system for protecting data of an electronic device, characterized in that: It includes a micro switch, a detection circuit, a controller and a self-destruct circuit, wherein: The controller receives a level signal transmitted by a detection circuit, wherein the level signal includes a first signal and a second signal, the first signal is used to indicate that the shell of the electronic device has not been disassembled, and the second signal is a level signal different from the first signal, and in the case where the level signal changes, the level signal is collected multiple times after a preset time delay, and the shell state is determined according to the proportion of the first signal in the multiple level signals, wherein the shell state includes whether the shell is disassembled and whether the shell is not disassembled; when the shell state is that the shell is disassembled, the data in the electronic device is backed up to the cloud; The detection circuit is used to convert the switch signal of the micro switch into a level signal, and is connected to the micro switch. When the housing of the electronic device is disassembled, the micro switch is closed, and the level signal is changed from the first signal to the second signal; After backing up the data in the electronic device to the cloud, the self-destruct circuit is turned on to burn the processing chip in the circuit board, wherein the self-destruct circuit is used to provide a voltage exceeding the voltage threshold of the circuit board.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the method for protecting electronic device data as claimed in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for protecting electronic device data according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Shake elimination method for mechanical microswitch, switch and control device
CN120165670A
A debounce method for a mechanical micro switch, a switch and a control device
CN120165670B