Device, method and medium for preventing accidental unplugging of power cord

By setting a clamp ring at the server power handle and using the BMC controller and display alarm device, the problem of accidentally unplugging the power cord in a dense server cluster is solved, and the accuracy and safety of power cord plugging and unplugging are achieved.

CN114756909BActive Publication Date: 2025-09-30INSPUR BUSINESS MACHINE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210569553.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2025-09-30
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

In dense server clusters, existing technologies make it difficult to accurately avoid accidentally unplugging power cords, leading to potential risks of system and data loss.

Method used

A clamping ring device is located at the power handle. The BMC controller controls the power sensor to lock or release the clamping ring. Combined with the display screen and alarm device, it ensures accurate plugging and unplugging of the power cord.

Benefits of technology

It reduces the possibility of accidentally unplugging the power cord, improves the protection of the system and data, and ensures the accuracy and safety of power cord plugging and unplugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114756909B_ABST
    Figure CN114756909B_ABST
Patent Text Reader

Abstract

The present application discloses a device, method and medium for preventing the power cord from being pulled out by mistake, and relates to the field of servers. The device for preventing the power cord from being pulled out by mistake includes a controller, a clamp, and a power sensor; the clamp is located at the power handle position and is used to fix the power cord; the clamp is connected to the power sensor; the controller is used to send a command to control the clamp to the power sensor; and the clamp is controlled to lock or release by the power sensor. The previous device that used the whole machine indicator light to locate the machine that needs to unplug the power cord is prone to accidental unplugging of the power cord in a dense server cluster. In the device provided by the present application, since the clamp is located at the power handle position, it can more accurately determine the machine that needs to unplug the power cord according to whether the clamp is locked or released, thereby reducing the occurrence of accidental unplugging of the power cord and improving the protection capability of the system and data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of servers, and in particular to a device, method, and medium for preventing accidental unplugging of a power cord. Background Art

[0002] With the continuous development of the information age and the rise of new industries such as cloud computing, artificial intelligence, and big data, servers have entered a period of rapid development. As customer application scenarios continue to expand, the demand for server computing power continues to increase, especially for AI computing power. This has led to a continuous increase in demand for servers, resulting in an increasing number of servers in many computer rooms. When manual power plugging and unplugging is required, there is a risk of error, unplugging the wrong server, resulting in unknown risks and immeasurable losses.

[0003] Different servers from various existing server manufacturers may provide a machine positioning prompt based on the indicator lights on the entire machine. Some indicator lights are on the same side as the power supply and some are on the opposite side. Regardless of whether the indicator lights on the entire machine are on the same side as the power supply or on the opposite side, in a dense server cluster, there is no guarantee that personnel will make mistakes or errors, and there is no fundamental guarantee that the wrong power cord will be unplugged.

[0004] Therefore, how to reduce the occurrence of accidental unplugging of the power cord is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a device, method and medium for preventing accidental unplugging of power cords, which are used to reduce the occurrence of accidental unplugging of power cords and improve the protection capabilities of systems and data.

[0006] In order to solve the above technical problems, the present application provides a device for preventing accidental unplugging of a power cord, comprising a controller, a clamp, and a power sensor;

[0007] The clamping ring is located at the power handle position and is used to fix the power cord;

[0008] The clamping ring is connected to the power sensor;

[0009] The controller is used to send an instruction to control the clamping ring to the power sensor; and the clamping ring is controlled to be locked or released through the power sensor.

[0010] Preferably, the controller is a BMC controller.

[0011] Preferably, the metal ring in the collar is made of silver or copper.

[0012] Preferably, it also includes: a display screen;

[0013] The display screen is connected to the BMC controller and is used to display the plug-in and unplug-out status of the power cord.

[0014] Preferably, it also includes: an alarm device;

[0015] The alarm device is connected to the BMC controller and is used to give a prompt when the power sensor controls the clamping ring to be locked or released.

[0016] In order to solve the above technical problems, the present application also provides a method for preventing accidental unplugging of a power cord, which is applied to the above-mentioned device for preventing accidental unplugging of a power cord, and the method comprises:

[0017] Sending a command to control the clamp ring to the power sensor;

[0018] The locking or releasing of the collar is controlled by the power sensor.

[0019] Preferably, it also includes:

[0020] If the power sensor is not used to control the collar to be locked or released within a preset time after the instruction to control the collar is issued, the process returns to the step of issuing the instruction to control the collar to the power sensor.

[0021] In order to solve the above technical problems, the present application also provides a device for preventing accidental unplugging of a power cord, which is applied to the above-mentioned device for preventing accidental unplugging of a power cord, and the device includes:

[0022] The sending module is used to send a command to control the clamp ring to the power sensor;

[0023] A control module is used to control the locking or releasing of the collar through the power sensor.

[0024] In order to solve the above technical problems, the present application also provides a device for preventing accidental unplugging of a power cord, comprising:

[0025] memory for storing computer programs;

[0026] The processor is configured to implement the steps of the above-mentioned method for preventing accidental unplugging of the power cord when executing the computer program.

[0027] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for preventing accidental unplugging of the power cord are implemented.

[0028] The device provided in the present application for preventing the power cord from being unplugged by mistake includes a controller, a clamp, and a power sensor; the clamp is located at the power handle and is used to fix the power cord; the clamp is connected to the power sensor; the controller is used to send a command to control the clamp to the power sensor; and the clamp is controlled to lock or release by the power sensor. The previous method of using the whole machine indicator light to locate the machine that needs to unplug the power cord is prone to accidental unplugging of the power cord in a dense server cluster. However, in the device provided in the present application, since the clamp is located at the power handle, it can more accurately determine the machine that needs to be unplugged based on whether the clamp is locked or released, thereby reducing the occurrence of accidental unplugging of the power cord and improving the protection of the system and data.

[0029] In addition, the present application also provides a method, device and computer-readable storage medium for preventing accidental unplugging of a power cord, which have the same or corresponding technical features as the above-mentioned device for preventing accidental unplugging of a power cord and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] Figure 1 A device for preventing accidental unplugging of a power cord provided in an embodiment of the present application;

[0032] Figure 2 A flowchart of a method for preventing accidental unplugging of a power cord provided by this application;

[0033] Figure 3 A structural diagram of a device for preventing accidental unplugging of a power cord provided in one embodiment of the present application;

[0034] Figure 4 A structural diagram of a device for preventing accidental unplugging of a power cord provided in another embodiment of the present application;

[0035] Figure 5 Schematic diagram of an application scenario for preventing accidental unplugging of a power cord provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0037] The core of this application is to provide a device, method and medium for preventing accidental unplugging of power cords, which are used to reduce the occurrence of accidental unplugging of power cords and improve the protection capabilities of systems and data.

[0038] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods. Figure 1 The present invention provides a device for preventing accidental unplugging of a power cord, such as Figure 1 As shown, the device includes a controller 1, a power sensor 2, and a clamp 3;

[0039] The clamp 3 is located at the power handle and is used to fix the power cord;

[0040] The clamping ring 3 is connected to the power sensor 2;

[0041] The controller 1 is used to send a command to control the collar 3 to the power sensor 2 ; the collar 3 is controlled to be locked or released via the power sensor 2 .

[0042] The current method of using the machine indicator light to locate the machine that needs to unplug the power cord is prone to accidental unplugging of the power cord in a dense server cluster. Therefore, in the embodiment of the present application, the locked or open state of the clamp is used to determine whether the power cord on the corresponding machine needs to be unplugged.

[0043] The clamp is located on the power handle and is used to secure the power cord. The clamp consists of an outer ring and an inner ring. The outer ring is usually made of an insulating material, such as plastic. Since the locking or release of the clamp is controlled by a power sensor, the inner ring is made of a metal ring. In practice, there is no restriction on the material of the metal ring. Preferably, in order to achieve more sensitive control of the clamp, a highly conductive metal can be selected as the inner ring of the clamp. The diameter of the clamp depends on the thickness of the power cord. In practice, the diameter of the clamp is usually slightly larger than the diameter of the power cord.

[0044] The clamp is connected to the power sensor, which is located on the power mainboard. There is a control module for the power sensor on the controller. The controller can send instructions to the power sensor, and then the magnetic attraction on the clamp is locked or opened through the power sensor.

[0045] When there are a large number of servers, all of them are controlled by a controller. Each server's power cord is equipped with a collar, and each collar is connected to a corresponding power sensor. When the controller needs to unplug the corresponding server, it usually uses the static IP address of each server to issue the command to the server that needs to be unplugged.

[0046] The device provided in this embodiment includes a controller, a clamp, and a power sensor. The clamp is located at the power handle and is used to secure the power cord. The clamp is connected to the power sensor. The controller is used to send a command to control the clamp to the power sensor. The power sensor controls the clamp to lock or release. Previous devices that used an indicator light on the entire machine to locate the machine requiring power cord unplugging were prone to accidental unplugging in dense server clusters. However, in the device provided in this embodiment, since the clamp is located at the power handle, it can more accurately determine the machine requiring power cord unplugging based on whether the clamp is locked or released, reducing the occurrence of accidental power cord unplugging and improving system and data protection.

[0047] As the demand for servers continues to increase, the number of servers in many computer rooms is getting larger and larger. Therefore, in order to facilitate the control of a large number of servers, the preferred implementation method is that the controller is a baseboard management controller (BMC).

[0048] The BMC controller supports the industry-standard Intelligent Platform Management Interface (IPMI) specification and is primarily used for remote management. Since a large number of servers need to be controlled, all servers can be controlled remotely through the BMC. When a BMC controller is used, the BMC controller has a remote control module for unlocking and locking the power sensor. This module sends a command to the power sensor to control the locking ring. The power sensor then performs the corresponding action according to the corresponding command, thereby locking or unlocking the locking ring.

[0049] The controller provided in this embodiment is a BMC controller, which enables remote control of each server and facilitates control of each server.

[0050] In practice, in order to achieve more sensitive control of the clamping ring, a preferred embodiment is that the metal ring in the clamping ring is made of silver or copper.

[0051] The material of the metal ring is not limited. If the metal ring has low conductivity, it may prevent the power sensor from locking or unlocking the clamp. Therefore, a highly conductive metal is used as the material for the metal ring in the clamp. The highly conductive metal is not limited. Since silver and copper have strong conductivity, the metal ring of the clamp used in this embodiment is made of silver or copper.

[0052] The metal ring in the clamp provided in this embodiment is made of silver or copper. Since silver or copper has good electrical conductivity, the clamp can be controlled more sensitively through the power sensor.

[0053] In order to be able to timely understand the plugging and unplugging status of the power cord and quickly find the server that needs to be plugged and unplugged, in implementation, as a preferred embodiment, the device for preventing accidental unplugging of the power cord also includes: a display screen;

[0054] The display is connected to the BMC controller and is used to display the plug-in and unplug-out status of the power cable.

[0055] The display screen is connected to the BMC controller to display the plug-in and unplug-out status of the power cord. There is no limitation on the way to display the plug-in and unplug-out status of the power cord on the display screen. For example, the plug-in and unplug-out status of each server can be displayed in the form of a list on the display screen. When the power cord is plugged in, it can be represented by 1; when the power cord is unplugged, it can be represented by 0. The plug-in and unplug-out status data of the power cord can be updated in real time on the display screen. When there is a server that is unplugging the power cord, the plug-in and unplug-out status data of the server will be marked on the display screen. According to the mark, the user can quickly find the server that needs to plug in and unplug the power cord.

[0056] The embodiment provides a display screen connected to the BMC controller to display the plug-in and unplug-out status of the power cord, so that the user can understand the plug-in and unplug-out status of the power cord through the display screen and quickly find the server that needs to plug-in and unplug the power cord.

[0057] Similarly, in order to facilitate users to find the server that needs to plug or unplug the power cord, the device for preventing accidental unplugging of the power cord also includes: an alarm device;

[0058] The alarm device is connected to the BMC controller and is used to give a prompt when the power sensor control collar is locked or released.

[0059] There are no restrictions on the specific alarm device and its corresponding alarm method, and it can be, for example, an indicator light, a buzzer, etc. When the power sensor control collar is locked or released, it indicates that the power cord has been unplugged or plugged in, and a prompt is displayed for the power cord that needs to be plugged in or out. The user can then find the corresponding server that needs to be plugged in or out according to the prompt information and plug or unplug the power cord of the corresponding server.

[0060] The embodiment provides a prompting device to notify the server that needs to plug or unplug the power cord, so that the user can quickly find the server that needs to plug or unplug the power cord.

[0061] On the basis of the above embodiments, the present application further provides a method for preventing the power cord from being unplugged by mistake, which is applied to the above-mentioned device for preventing the power cord from being unplugged by mistake. Figure 2This is a flow chart of a method for preventing accidental unplugging of a power cord provided by this application, such as Figure 2 As shown, the method includes:

[0062] S10: Sending a command to control the clamp ring to the power sensor;

[0063] S12: The power sensor controls the locking or release of the clamping ring.

[0064] The method for preventing the power cord from being unplugged accidentally provided in this embodiment has corresponding technical features to the device for preventing the power cord from being unplugged accidentally described above. The device for preventing the power cord from being unplugged accidentally has been described in detail above. Therefore, the method for preventing the power cord from being unplugged accidentally will not be described in detail here.

[0065] The method for preventing accidental power cord unplugging provided in this embodiment is applicable to the aforementioned device for preventing accidental power cord unplugging. The method includes sending a control collar instruction to a power sensor; and controlling the collar to lock or release via the power sensor. Previous methods that used indicator lights on the entire machine to locate the machine requiring power cord unplugging were prone to accidental power cord unplugging in dense server clusters. However, in the method provided in this embodiment, since the collar is located at the power handle, the locking or releasing of the collar can more accurately determine the machine requiring power cord unplugging, thereby reducing the occurrence of accidental power cord unplugging and improving system and data protection capabilities.

[0066] In practice, it is common that when the controller sends a command to control the collar to the power sensor, the power sensor is unable to control the collar. A preferred embodiment further includes:

[0067] If the clamping ring is not locked or released by the power sensor within a preset time after the command to control the clamping ring is issued, the process returns to the step of issuing the command to control the clamping ring to the power sensor.

[0068] There is no limit on the preset time. From the time the collar control command is issued, if the collar is not locked or released by the power sensor within the preset time, there is no need to wait and the collar control command is directly reissued to the power sensor, and the collar is subsequently locked or released by the power sensor.

[0069] The method provided in this embodiment can improve the control efficiency of the clamping ring by setting a preset time.

[0070] In the above embodiments, a method for preventing accidental unplugging of a power cord is described in detail. This application also provides corresponding embodiments of a device for preventing accidental unplugging of a power cord. It should be noted that this application describes the embodiments of the device from two perspectives: one is based on the functional module perspective, and the other is based on the hardware perspective.

[0071] Figure 3 This is a structural diagram of a device for preventing accidental unplugging of a power cord provided in one embodiment of the present application. This embodiment, based on the perspective of functional modules, includes:

[0072] The sending module 10 is used to send a command to control the collar to the power sensor;

[0073] The control module 11 is used to control the locking or releasing of the collar through a power sensor.

[0074] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.

[0075] The device provided in this embodiment uses a signaling module to send a control collar instruction to a power sensor; the control module then controls the collar to lock or release via the power sensor. Previous devices that used system-wide indicator lights to locate the machine requiring power cord unplugging were prone to accidental unplugging in dense server clusters. However, in the device provided in this embodiment, since the collar is located at the power handle, it can more accurately determine the machine requiring power cord unplugging based on whether the collar is locked or released, reducing the likelihood of accidental unplugging and improving system and data protection.

[0076] Figure 4 This is a structural diagram of a device for preventing accidental unplugging of a power cord provided by another embodiment of the present application. This embodiment is based on the hardware perspective, such as Figure 4 As shown, the device for preventing the power cord from being accidentally unplugged includes:

[0077] Memory 20, for storing computer programs;

[0078] The processor 21 is configured to implement the steps of the method for preventing accidental unplugging of the power cord as described in the above embodiment when executing a computer program.

[0079] The device for preventing accidental unplugging of a power cord provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0080] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0081] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the method for preventing the power cord from being accidentally unplugged disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to the data involved in the above-mentioned method for preventing the power cord from being accidentally unplugged.

[0082] In some embodiments, the device for preventing accidental unplugging of the power cord may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0083] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the device for preventing the power cord from being accidentally unplugged, and may include more or fewer components than shown in the figure.

[0084] The device for preventing the power cord from being unplugged by mistake provided in an embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: the method for preventing the power cord from being unplugged by mistake, the effect is the same as above.

[0085] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiment.

[0086] It is understandable that if the method in the above embodiment 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 prior art, 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 executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0087] The computer-readable storage medium provided in this application includes the above-mentioned method for preventing accidental unplugging of the power cord, and the effect is the same as above.

[0088] In order to enable those skilled in the art to better understand the technical solution of this application, Figure 5 Further details of the above application are given below. Figure 5 This is a schematic diagram of an application scenario for preventing accidental unplugging of the power cord provided in an embodiment of the present application. Figure 5 As shown in the figure, the process includes: the BMC controller issues a lock or unlock command, which is transmitted to the power sensor control module to execute the corresponding action, and finally reaches the terminal power cord clamp to lock or release the action. For example, when the unlock command is executed, the clamp is released, indicating that the power cord can be unplugged; when the lock command is executed, the clamp is locked, indicating that the power cord cannot be unplugged. This minimizes the occurrence of accidental unplugging of the power cord and improves the protection of the system and data.

[0089] The above is a detailed introduction to the device, method and medium for preventing the power cord from being accidentally unplugged provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

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

Claims

1. A device for preventing accidental unplugging of a power cord, characterized in that: Including controller, clamp ring, power sensor; The clamping ring is located at the power handle position and is used to fix the power cord; The collar is connected to the power sensor; The controller is used to send an instruction to control the collar to the power sensor; the collar is controlled to be locked or released by the power sensor, so as to determine whether the power cord of the corresponding machine needs to be unplugged by using the locked or unlocked state of the collar; Among them, when there are a large number of servers, all servers are controlled by a controller; a clamp is provided on the power cord of each server, and each clamp is connected to the corresponding power sensor. When the controller needs to control the corresponding server to unplug the power, it is usually based on the static IP of each server, so that instructions can be accurately issued to the server that needs to be unplugged.

2. The device for preventing accidental unplugging of the power cord according to claim 1, characterized in that: The controller is a BMC controller.

3. The device for preventing accidental unplugging of the power cord according to claim 2, characterized in that: The metal ring in the clamping ring is made of silver or copper.

4. The device for preventing accidental unplugging of the power cord according to claim 2, characterized in that: Also includes: Display screen; The display screen is connected to the BMC controller and is used to display the plug-in and unplug-out status of the power cord.

5. The device for preventing accidental unplugging of a power cord according to claim 2, characterized in that: Also includes: alarm device; The alarm device is connected to the BMC controller and is used to give a prompt when the power sensor controls the clamping ring to be locked or released.

6. A method for preventing accidental unplugging of a power cord, characterized in that: The device for preventing accidental unplugging of a power cord according to any one of claims 1 to 5, the method comprising: Sending a command to control the clamp ring to the power sensor; The locking or releasing of the collar is controlled by the power sensor.

7. The method according to claim 6, characterized in that Also includes: If the power sensor is not used to control the collar to be locked or released within a preset time after the instruction to control the collar is issued, the process returns to the step of issuing the instruction to control the collar to the power sensor.

8. A device for preventing accidental unplugging of a power cord, characterized in that: The device for preventing accidental unplugging of a power cord according to any one of claims 1 to 5 comprises: The sending module is used to send a command to control the clamp ring to the power sensor; A control module is used to control the locking or releasing of the collar through the power sensor.

9. A device for preventing accidental unplugging of a power cord, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the method for preventing accidental unplugging of a power cord as claimed in claim 6 or 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for preventing accidental unplugging of a power cord according to any one of claims 6 or 7 are implemented.