Control circuit and electronic equipment

By designing control circuits in the plug-in device, ensuring that the device unlocks the socket only after shutdown is completed, solving the problem of data loss and file corruption caused by users' sudden unplugging of the power plug, and achieving security protection of data and files.

CN119644865APending Publication Date: 2025-03-18VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411806848.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

Users unplug the power plug when the shutdown process of the plug-in device is not completed, resulting in data loss or permanent file damage.

Method used

A control circuit is designed, including a first switch, a second switch, an electromagnetic switch and a control unit. When the user tries to unplug the power plug, the control circuit first disconnects the first switch to ensure that the electronic device is shut down normally before unlocking the plug of the socket and the power supply power supply.

Benefits of technology

By ensuring that the electronic device is allowed to unplug the power plug after the shutdown is completed, data loss and file corruption are avoided, and data and file security of the electronic device are protected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644865A_ABST
    Figure CN119644865A_ABST
Patent Text Reader

Abstract

The invention discloses a control circuit and electronic equipment, and belongs to the technical field of electronic equipment. The control circuit comprises a first switch, a second switch, an electromagnetic switch and a control unit, the control unit is respectively connected with the first switch, the second switch and a system-on-chip of the electronic equipment, the second switch is also respectively connected with the electromagnetic switch and a socket of the electronic equipment, and the electromagnetic switch is also connected with the socket; the system-on-chip is used for controlling the electronic equipment to be shut down under the condition that the first switch is switched off, and sending a shutdown completion instruction to the control unit under the condition that the shutdown of the electronic equipment is finished; the control unit is used for controlling the iron core of the electromagnetic switch to be adjusted from the first position to the second position through the second switch in response to a shutdown completion instruction; wherein the first position is a position for locking the socket and the plug of the power supply, and the second position is a position for unlocking the socket and the plug of the power supply equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control circuit and an electronic equipment. Background Art

[0002] A plug-in device is an electronic device that can only be used when plugged into a power socket. For a plug-in device, a user may perform the following operations: unplugging the power plug when the shutdown process of the plug-in device is not completed, or directly unplugging the power plug to shut down the device.

[0003] If you forcibly unplug the power plug before the shutdown process is completed, or directly unplug the power plug to shut down, it is easy to cause data loss in the plug-in device, or even cause permanent damage to the file. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a control circuit and an electronic device, which can solve the technical problem in the related art that the electronic device is powered off due to the user suddenly unplugging the power plug of the plug-in device, resulting in data loss and file damage.

[0005] In a first aspect, an embodiment of the present application provides a control circuit, comprising: a first switch, a second switch, an electromagnetic switch, and a control unit;

[0006] The control unit is connected to the first switch, the second switch and the system-level chip of the electronic device respectively, the second switch is also connected to the electromagnetic switch and the socket of the electronic device respectively, and the electromagnetic switch is also connected to the socket;

[0007] A system-level chip, used for controlling the electronic device to shut down when the first switch is disconnected, and sending a shutdown completion instruction to the control unit when the electronic device is shut down;

[0008] A control unit, configured to control the iron core of the electromagnetic switch to adjust from the first position to the second position via the second switch in response to the shutdown completion instruction;

[0009] The first position is a position where the socket and the plug of the power supply are locked, and the second position is a position where the socket and the plug of the power supply device are unlocked.

[0010] In a second aspect, an embodiment of the present application provides an electronic device, including a socket, a system-level chip 102, and a control circuit as described in the first aspect.

[0011] In an embodiment of the present application, the control circuit includes: a first switch, a second switch, an electromagnetic switch and a control unit; the control unit is connected to the first switch, the second switch and the system-level chip of the electronic device respectively, the second switch is also connected to the electromagnetic switch and the socket of the electronic device respectively, and the electromagnetic switch is also connected to the socket; the system-level chip is used to control the electronic device to shut down when the first switch is disconnected, and send a shutdown completion instruction to the control unit when the electronic device is shut down; the control unit is used to respond to the shutdown completion instruction, through the second switch, to control the iron core of the electromagnetic switch to adjust from the first position to the second position; wherein the first position is a position for locking the socket and the plug of the power supply, and the second position is a position for unlocking the socket and the plug of the power supply device. In the embodiment of the present application, when the user wants to unplug the power supply plug of the power supply, the first switch can be disconnected first. At this time, the system-level chip of the electronic device can notify the electronic device to execute a normal shutdown process, and when the shutdown process is completed, the electronic device sends a shutdown completion instruction to the control unit. After receiving the shutdown completion instruction, the control unit can control the iron core of the electromagnetic switch to unlock the socket of the electronic device and the plug of the power supply, so that the user can unplug the power supply plug. That is, in the embodiment of the present application, the user can unplug the power supply only when the electronic device is shut down normally, so as to avoid data loss and file damage due to abnormal power failure of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A schematic diagram of the structure of a control circuit provided in an embodiment of the present application;

[0013] Figure 2 A logic schematic diagram of a control circuit provided in an embodiment of the present application;

[0014] Figure 3 A schematic diagram of a process of starting up an electronic device provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of a process of shutting down an electronic device provided in an embodiment of the present application;

[0016] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0018] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0019] For plug-in devices, when the user unplugs the power plug before the shutdown process is completed, or directly unplugs the power plug to shut down, it is easy to cause data loss or even permanent damage to files.

[0020] To this end, the embodiments of the present application provide a control circuit and an electronic device that can solve the technical problem in the related art that the plug-in device is powered off due to the user suddenly unplugging the power plug of the plug-in device, resulting in data loss and file damage.

[0021] The control circuit and the electronic device provided in the embodiments of the present application are described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0022] Figure 1 A schematic diagram of a control circuit provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the control circuit 10 may include a first switch S1 , a second switch Q1 , an electromagnetic switch L1 and a control unit 101 .

[0023] Exemplarily, the first switch S1 may be a manual switch, and the user's intention may be determined based on the state of the first switch S1. For example, when the first switch S1 is closed, it may be determined that the user intends to turn on the power, and when the first switch S1 is open, it may be determined that the user intends to turn off the power.

[0024] The second switch Q1 is used to control the power on or off of the coil of the electromagnetic switch L1. Exemplarily, the second switch Q1 can be a field effect transistor, for example, an N-type field effect transistor or a P-type field effect transistor. Of course, the second switch Q1 can also be a device other than a field effect transistor that can control the power on or off of the coil of the electromagnetic switch L1, as long as the safety of the control circuit 10 and the electronic device can be guaranteed when the coil of the electromagnetic switch L1 is powered on.

[0025] The electromagnetic switch L1 is used to lock or unlock the socket 103 of the electronic device and the plug of the power supply. Exemplarily, the electromagnetic switch L1 may include a coil and an iron core. For example, the electromagnetic switch L1 may adopt an electromagnetic relay. When the coil is energized, the iron core locks the socket 103 of the electronic device and the plug of the power supply. At this time, the user cannot pull the plug out of the socket 103. When the coil is de-energized, the iron core unlocks the socket 103 of the electronic device and the plug of the power supply. At this time, the user can pull the plug out of the socket 103. By controlling whether the coil is energized or not, the position of the iron core can be controlled, and then the state of the socket 103 and the plug can be controlled to prevent the user from suddenly pulling out the plug and causing data loss and file damage of the electronic device. In actual application, the electromagnetic switch L1 may also adopt other components with the above functions.

[0026] The electronic device here may be a plug-in device, for example, may include a plug-in extended display device.

[0027] The control unit 101 is mainly used to communicate with the system on chip (SOC) 102 of the electronic device, the first switch S1 and the second switch Q1 to control the state of the second switch Q1 and the electromagnetic switch L1 to avoid data loss and file damage of the electronic device due to the user suddenly unplugging the plug. Exemplarily, the control unit 101 can be a microcontroller unit (MCU).

[0028] For example, Figure 1 As shown, the control unit 101 is connected to the first switch S1 , the second switch Q1 and the system-level chip 102 of the electronic device respectively. The second switch Q1 is also connected to the electromagnetic switch L1 and the socket 103 of the electronic device respectively. The electromagnetic switch L1 is also connected to the socket 103 .

[0029] based on Figure 1 According to the structure and connection relationship shown, for example, the system-level chip 102 can detect the state of the first switch S1 in real time. When the first switch S1 is disconnected, the system-level chip 102 can control the electronic device to shut down, and when the electronic device is shut down, the system-level chip 102 sends a shutdown completion instruction to the control unit 101.

[0030] After receiving the shutdown completion instruction, the control unit 101 can control the second switch Q1 to adjust the iron core of the electromagnetic switch L1 from the first position to the second position. The first position here can be the position where the socket 103 and the plug of the power supply are locked. When the iron core is in the first position, the socket 103 and the plug of the power supply are locked, and the user cannot pull the plug out of the socket 103. The second position here can be the position where the socket 103 and the plug of the power supply device are unlocked. When the iron core is in the second position, the socket 103 and the plug of the power supply are unlocked, and the user can pull the plug out of the socket 103.

[0031] That is, after receiving the shutdown completion instruction, the control unit 101 of the embodiment of the present application can adjust the position of the iron core by controlling the second switch Q1, thereby controlling the socket 103 and the power supply plug to be locked or unlocked. Especially when the user wants to unplug the plug, the system-level chip 102 can first control the electronic device to shut down. Only after the shutdown is completed, the control unit 101 can adjust the iron core of the electromagnetic switch L1 from the first position to the second position through the second switch Q1, thereby unlocking the socket 103 and the power supply plug, and the user can unplug the plug, thereby protecting the data and files of the electronic device.

[0032] Below Figure 1 The ports of each component are described in detail, such as Figure 2 As shown, the control unit 101 may include a first port GPIO2 , a second port UART and a third port GPIO1 , and the system-on-chip 102 may include a first port GPIO3 and a second port UART.

[0033] The first port GPIO2 and the third port GPIO1 of the control unit 101 and the first port GPIO3 of the system-level chip 102 can be a general input port, a general output port, or a general input and output port. The general input and output port means that the port can be used as a general input port or a general output port.

[0034] For example, in the embodiment of the present application, the first port GPIO2 of the control unit 101 can be a general input port, the third port GPIO1 of the control unit 101 can be a general output port, and the first port GPIO3 of the system-level chip 102 can be a general input and output port.

[0035] The second port UART of the control unit 101 and the second port UART of the system-on-chip 102 are serial ports for receiving or sending serial instructions. Figure 2Taking the example that the control unit 101 and the system-level chip 102 both include two serial ports, illustratively, the control unit 101 may include a second port UART_R and a second port UART_T, and the system-level chip 102 may include a second port UART_R and a second port UART_T, wherein the second port UART_R of the control unit 101 and the second port UART_T of the system-level chip 102 are a pair of serial ports, and the second port UART_T of the control unit 101 and the second port UART_R of the system-level chip 102 are a pair of serial ports.

[0036] One port in each pair of serial ports is used to send serial instructions, and one port is used to receive serial instructions. For example, the SoC 102 can send a first serial instruction to the control unit 101 through the second port UART_T, and the control unit 101 can receive the first serial instruction sent by the SoC 102 through the second port UART_R. For another example, the control unit 101 can send a second serial instruction to the SoC 102 through the second port UART_T, and the SoC 102 can receive the second serial instruction sent by the control unit 101 through the second port UART_R. In this way, accurate transmission of information can be guaranteed.

[0037] like Figure 2 As shown, the first port GPIO2 of the control unit 101 is connected to the first port GPIO3 of the system-level chip 102. At the same time, the first port GPIO2 of the control unit 101 and the first port GPIO3 of the system-level chip 102 are also connected to one end of the first switch S1, and one end of the first switch S1 is also connected to the power supply VCC through the resistor R1. The other end of the first switch S1 is grounded. In this way, the first port GPIO2 of the control unit 101 and the first port GPIO3 of the system-level chip 102 can both detect the state of the first switch S1 in real time.

[0038] The second port UART_T of the control unit 101 is connected to the second port UART_R of the SoC 102 , and the second port UART_R of the control unit 101 is connected to the second port UART_T of the SoC 102 .

[0039] The third port GPIO1 of the control unit 101 is connected to the second switch Q1 , and the control unit 101 controls the state of the electromagnetic switch L1 by controlling the level state of the third port GPIO1 .

[0040] Through the above-mentioned specific connection relationship, the embodiment of the present application can control the socket and the plug to be unlocked when the first switch is disconnected, so that the user can unplug the plug, meet the user's power-off needs, and protect the data and file security of the electronic device.

[0041] exist Figure 2 Based on the above, illustratively, the system-level chip 102 is specifically used for:

[0042] When the first switch S1 is disconnected and it is detected that the first port GPIO3 of the system-level chip 102 is switched from the first level to the second level, the electronic device is controlled to execute a shutdown process;

[0043] When the shutdown process is completed, a shutdown completion instruction is sent to the second port UART_R of the control unit 101 through the second port UART_T of the system-on-chip 102 .

[0044] Under normal circumstances, when the first switch S1 is disconnected, the level of the first port GPIO3 of the system-level chip 102 will change. For example, when the system-level chip 102 detects that the level of the first port GPIO3 switches from the first level to the second level, it is considered that the user has the intention to shut down. At this time, the system-level chip 102 can control the electronic device to execute the shutdown process.

[0045] Exemplarily, the first level may be a high level, and the second level may be a low level, that is, when the system-level chip 102 detects that the first port GPIO3 switches from a high level to a low level, the electronic device may be controlled to execute a shutdown process. The shutdown process here may be to save data first, and then close the corresponding application. In this way, data loss and file damage may be avoided. Of course, the first level may also be a low level, and correspondingly, the second level may also be a high level, which may be set specifically according to actual conditions.

[0046] After the shutdown process is completed, the system-level chip 102 can send a shutdown completion instruction to the second port UART_R of the control unit 101 through the second port UART_T. Considering that there is a certain delay in the actual execution of the control circuit, the system-level chip 102 can also send a shutdown completion instruction to the second port UART_R of the control unit 101 through the second port UART_T when the execution progress of the shutdown process of the electronic device is greater than or equal to the set progress threshold, so as to speed up the response. The progress threshold can be set to a value greater than or equal to 98%, for example.

[0047] After receiving the shutdown completion instruction, the control unit 101 can control the second switch Q1 to be disconnected through the third port GPIO1, thereby controlling the coil of the electromagnetic switch L1 to be powered off, so that the iron core is adjusted from the first position to the second position. At this time, the user can unplug the plug to safely power off.

[0048] The embodiment of the present application can detect the state of the first switch in real time through the system-level chip, and when the system-level chip detects that the first switch is disconnected and the first port is switched from the first level to the second level, the electronic device is controlled to execute a normal shutdown process. At the end of the shutdown process, the control unit is notified to unlock the plug and the socket. At this time, the user can safely cut off the power, effectively protecting the integrity of data and files.

[0049] Take the second switch Q1 as an N-type field effect transistor as an example. Figure 2 As shown, the gate G of the field effect tube is connected to the third port GPIO1 of the control unit 101, the source S of the field effect tube is connected to one end of the electromagnetic switch L1, the drain D of the field effect tube is connected to one end (positive pole) of the socket 103, and the other end (negative pole) of the socket 103 is connected to the other end of the electromagnetic switch L1.

[0050] Exemplarily, the control unit 101 is specifically configured to:

[0051] In response to the shutdown completion instruction, the third port GPIO1 of the control unit 101 is switched from the second level to the first level to disconnect the second switch Q1; wherein, when the second switch Q1 is disconnected, the coil of the electromagnetic switch L1 is de-energized, and the iron core of the electromagnetic switch L1 is adjusted from the first position to the second position.

[0052] Exemplarily, after the electronic device is shut down normally, the control unit 101 can control the third port GPIO1 to switch from a high level to a low level. At this time, the second switch Q1 is disconnected, the coil of the electromagnetic switch L1 is powered off, and the iron core of the electromagnetic switch L1 rebounds from the plug, that is, it is adjusted from the first position to the second position. In this way, the plug and the socket are unlocked, ensuring the security of data and files.

[0053] In some embodiments, when a user uses an electronic device, the user can insert a plug into the socket 103, at which time the system power is turned on, VCC is powered on, and the control unit 101 operates. When the user presses the first switch S1, that is, the first switch S1 is closed, the control unit 101 detects the level state of the first port GPIO2, and dynamically controls the second switch Q1 and the electromagnetic switch L1 according to the level state of the first port GPIO2, thereby adjusting the position of the iron core.

[0054] Based on this, in some embodiments, the control unit 101 is further configured to control the iron core of the electromagnetic switch L1 to be adjusted from the second position to the first position through the second switch Q1 when the first switch S1 is closed.

[0055] For example, Figure 2As shown, the control unit 101 can detect the level state of the first port GPIO2 in real time. When the first switch S1 is closed, the level of the first port GPIO2 will change from high to low. When the control unit 101 detects that the level state of the first port GPIO2 is the first level state, the third port GPIO1 can be controlled to switch from the first level to the second level. That is, when the control unit 101 detects that the first port GPIO2 is at a low level, the third port GPIO1 can be controlled to switch from a low level to a high level, so that the second switch Q1 is turned on.

[0056] When the second switch Q1 is turned on, the coil of the electromagnetic switch L1 is energized, and the iron core of the electromagnetic switch L1 springs into the plug, locking the plug and the socket. That is, in the embodiment of the present application, when the user uses the electronic device, the plug can be locked through the above solution to prevent the user from unplugging it, thereby preventing the electronic device from losing data and damaging files due to sudden power failure.

[0057] It is understandable that only when the user inserts the plug into the socket 103 and closes the first switch S1, the electronic device can execute the complete startup process and the user can use the electronic device. Otherwise, the startup fails and the user cannot use the electronic device.

[0058] Based on this, in some embodiments, the system-level chip 102 is further used to control the electronic device to execute the power-on process when the first switch S1 is closed, and detect the level state of the first port GPIO3 of the system-level chip 102 when the electronic device executes the power-on process;

[0059] When the level state of the first port GPIO3 of the system-on-chip 102 is the first level state, the boot process continues to be executed until the electronic device is completely booted;

[0060] When the level state of the first port GPIO3 of the system-on-chip 102 is the second level state, the electronic device is controlled to shut down.

[0061] Exemplarily, the system-level chip 102 can verify whether the first switch S1 is closed according to the level state of the first port GPIO3. For example, when the first port GPIO3 is at a low level, it can be determined that the first switch S1 is closed, and when the first port GPIO3 is at a high level, it can be determined that the first switch S1 is open.

[0062] When the state of the first switch S1 is different, even if the user inserts the plug into the socket, the electronic device will execute different strategies. For example, when the first switch S1 is closed, that is, the first port GPIO3 is at a low level, the system-level chip 102 can control the electronic device to continue to execute the boot process until the boot is successful. When the first switch S1 is disconnected, that is, the first port GPIO3 is at a high level, the system-level chip 102 can control the electronic device to stop executing the boot process and shut down directly.

[0063] In the embodiment of the present application, when the user inserts the plug into the socket, it can further determine whether the electronic device meets the power-on conditions according to the state of the first switch, thereby ensuring the accuracy of the power-on and providing an accurate basis for the subsequent power-off.

[0064] Combine the following Figure 2 and Figure 3 The power-on process of electronic equipment is described. Figure 3 As shown, the power-on process of the electronic device includes the following steps:

[0065] S310: The user inserts the plug into the socket of the electronic device, and the MCU runs and detects the level status of GPIO2.

[0066] S320, the user presses S1 to close S1, and GPIO2 switches from high level to low level. At this time, MCU sets GPIO1 to high level, Q1 is turned on, the coil of L1 is energized, and the iron core bounces into the plug to lock the plug.

[0067] S330: The electronic device executes a power-on process.

[0068] S340. During the execution of the power-on process, the SOC detects the level state of GPIO3. If GPIO3 is at a low level, the SOC controls the electronic device to continue to power on. If GPIO3 is at a high level, the SOC controls the electronic device to shut down.

[0069] Combine the following Figure 2 and Figure 4 Describe the shutdown process of electronic equipment. Figure 4 As shown, the shutdown process of the electronic device includes the following steps:

[0070] S410: The user presses S1 to disconnect S1.

[0071] S420. The SOC detects the level state of GPIO3.

[0072] S430, SOC detects that GPIO3 is at a high level, controls the electronic device to execute a shutdown process, saves data, and closes the application. At the same time, SOC sends a shutdown completion instruction to MCU.

[0073] S440, after receiving the shutdown completion command, MCU sets GPIO1 to a low level, Q1 is disconnected, the coil of L1 is de-energized, and the iron core of L1 bounces back to its original position from the plug.

[0074] After this, the user can unplug it.

[0075] In the actual use of the embodiment of the present application, the user is required to press the manual switch as a power-on condition. At this time, the MCU will control the iron core of the electromagnetic switch to lock the power plug. At the same time, after the power is turned on, the SOC can dynamically detect the level state of the GPIO associated with the manual switch to determine whether the electronic device meets the power-on condition, so as to ensure the accuracy of the power-on. In addition, by detecting the level state of the GPIO associated with the manual switch, it is possible to know in advance whether the user wants to unplug the power plug, so that the electronic device can be shut down in advance. In this way, it can be ensured that the normal shutdown process is completed before the power is turned off to prevent data loss and file damage. Finally, the MCU controls the iron core of the electromagnetic switch to return to its original position according to the conditions, and the user can safely unplug the power plug.

[0076] An embodiment of the present application also provides an electronic device, including a socket, a system-level chip, and the control circuit as described in the above embodiment.

[0077] In some embodiments, the electronic device is a plug-in device.

[0078] like Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are executed by the processor 501, each step of the above-mentioned startup process or shutdown process is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0079] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile terminals and non-mobile terminals.

[0080] An embodiment of the present application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement each step of the startup process or shutdown process in the above embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0081] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0082] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various steps of the startup process or the shutdown process in the above embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0083] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0084] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0085] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control circuit, characterized in that: include: A first switch, a second switch, an electromagnetic switch and a control unit; The control unit is connected to the first switch, the second switch and the system-level chip of the electronic device respectively, the second switch is also connected to the electromagnetic switch and the socket of the electronic device respectively, and the electromagnetic switch is also connected to the socket; The system-level chip is used to control the electronic device to shut down when the first switch is turned off, and send a shutdown completion instruction to the control unit when the shutdown of the electronic device is completed; The control unit is used to control the iron core of the electromagnetic switch to adjust from the first position to the second position through the second switch in response to the shutdown completion instruction; The first position is a position where the socket and the plug of the power supply are locked, and the second position is a position where the socket and the plug of the power supply device are unlocked.

2. The control circuit according to claim 1, characterized in that: The control unit includes a first port, a second port and a third port, and the system-level chip includes a first port and a second port; The first port of the control unit is connected to the first port of the system-level chip, the second port of the control unit is connected to the second port of the system-level chip, the third port of the control unit is connected to the second switch, the first port of the control unit and the first port of the system-level chip are also respectively connected to one end of the first switch, and the other end of the first switch is grounded.

3. The control circuit according to claim 2, characterized in that: The system-level chip is specifically used for: When the first switch is disconnected and it is detected that the first port of the system-level chip is switched from the first level to the second level, controlling the electronic device to execute a shutdown process; When the shutdown process is completed, a shutdown completion instruction is sent to the second port of the control unit through the second port of the system-level chip.

4. The control circuit according to claim 2, characterized in that: The second switch comprises a field effect tube, a gate of the field effect tube is connected to the third port of the control unit, a source of the field effect tube is connected to one end of the electromagnetic switch, a drain of the field effect tube is connected to one end of the socket, and the other end of the socket is connected to the other end of the electromagnetic switch; The control unit is specifically used for: In response to the shutdown completion instruction, the third end of the control unit is controlled to switch from the second level to the first level so that the second switch is disconnected; wherein, when the second switch is disconnected, the coil of the electromagnetic switch is de-energized, and the iron core of the electromagnetic switch is adjusted from the first position to the second position.

5. The control circuit according to any one of claims 2 to 4, characterized in that: The control unit is further configured to control the iron core of the electromagnetic switch to adjust from the second position to the first position through the second switch when the first switch is closed.

6. The control circuit according to claim 5, characterized in that: The system-level chip is further used to control the electronic device to execute a power-on process when the first switch is closed, and to detect a level state of the first port of the system-level chip when the electronic device executes the power-on process; When the level state of the first port of the system-level chip is the first level state, continue to execute the startup process until the electronic device is completely started; When the level state of the first port of the system-on-chip is the second level state, the electronic device is controlled to shut down.

7. The control circuit according to claim 5, characterized in that: The control unit is further specifically used for: When the first switch is closed, detecting a level state of a first port of the control unit; When the level state is the first level state, the third port of the control unit is controlled to switch from the first level to the second level; wherein, when the third port of the control unit is switched from the first level to the second level, the second switch is turned on, the coil of the electromagnetic switch is energized, and the iron core of the electromagnetic switch is adjusted from the second position to the first position.

8. The control circuit according to any one of claims 1 to 4, characterized in that: The electromagnetic switch includes an electromagnetic relay.

9. An electronic device, characterized in that: The invention comprises a socket, a system-level chip and a control circuit as claimed in any one of claims 1 to 8.

10. The electronic device according to claim 9, characterized in that: The electronic device is a plug-in device.

Citation Information

Patent Citations

  • Socket, remote controller and control method of socket

    CN104377513A

  • Power socket and power on-off control method and device thereof

    CN105955082A

  • Startup and shutdown control circuit and method and electronic equipment

    CN114362733A

  • Startup and shutdown control circuit

    CN216697198U

  • Locking structure and electronic equipment

    CN221407842U