A control method, a control device, and a computer storage medium

By using sensors in chargers and notebooks to detect plugging and unplugging actions and reducing the power of the power supply circuit accordingly, the problem of sparking that may be caused during charging is solved and safety is significantly improved.

CN113885380BActive Publication Date: 2025-01-21LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111152585.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2025-01-21
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

When using an external charger to charge the notebook, the moment when the charger output is plugged and unplugged, a sudden change in voltage will often cause a ignition phenomenon, which will cause serious safety risks.

Method used

By obtaining the detection results of the sensor, if it is determined that there is currently plugging and unplugging of the electronic device by the adapter, the power supply circuit between the adapter and the electronic device is controlled to change from a high power state to a low power state to avoid interruption during the plugging and unplugging process. Fire phenomenon.

Benefits of technology

By identifying and responding to the plugging and unplugging action in advance, the circuit power is reduced, effectively avoiding sparking during the plugging and unplugging process, and improving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113885380B_ABST
    Figure CN113885380B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a control method, the method comprising: obtaining a detection result of a sensor; if it is determined according to the detection result that there is currently an adapter plugging and unplugging action on an electronic device, then controlling the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state. At the same time, the present application also proposes a control device for executing the control method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a control method and a control device, and a computer storage medium. Background Art

[0002] At present, small portable electronic devices, such as laptop computers, are widely used in people's daily work and life due to their advantages of small size, light weight, and easy to carry. In order to facilitate the daily use of the laptop, it is equipped with an external charger, namely an adapter.

[0003] However, when using an external charger to charge a laptop, the moment the laptop is plugged in or out of the charger output terminal, a sudden change in voltage often generates a large instantaneous current, which can cause sparks and pose a serious safety risk. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present application hope to provide a control method and a control device, and a computer storage medium.

[0005] The technical solution of this application is implemented as follows:

[0006] The present application provides a control method, the method comprising:

[0007] Get the detection results of the sensor;

[0008] If it is determined according to the detection result that the adapter is currently plugging or unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state.

[0009] The present application provides a control device, which includes an acquisition unit and a control unit.

[0010] The acquisition unit is used to acquire the detection result of the sensor;

[0011] The control unit is used to control the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state if it is determined according to the detection result that there is currently an operation of plugging or unplugging the adapter to the electronic device; wherein the circuit power in the first working state is greater than the circuit power in the second working state.

[0012] An embodiment of the present application provides a control device, which includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the control method described above is implemented.

[0013] An embodiment of the present application provides a computer-readable storage medium storing a program, and when the program is executed by a processor, the control method described above is implemented.

[0014] The control method provided in the embodiment of the present application is applied to an electronic device or an adapter, and the control method obtains the detection result of the sensor; if it is determined according to the detection result that the adapter is currently plugging or unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from the first working state to the second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state. In this way, by identifying the plugging or unplugging action of the adapter and the electronic device in advance, the sparking phenomenon generated during the plugging or unplugging process can be effectively avoided by reducing the circuit power, thereby enhancing safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 for Figure 1 is a schematic diagram of the adapter structure;

[0016] Figure 2 is the time series corresponding to the exemplary store-level sales management hierarchy;

[0017] Figure 3 Schematic diagram of the implementation process of the control method provided in the embodiment of the present application Figure 1 ;

[0018] Figure 4A Schematic diagram of the implementation process of the control method proposed in the embodiment of the present application Figure 2 ;

[0019] Figure 4B Schematic diagram of the implementation process of the control method provided in the embodiment of the present application Figure 3 ;

[0020] Figure 5 Schematic diagram 4 of the implementation flow of the control method provided in the embodiment of the present application;

[0021] Figure 6 The structure of the control device proposed in the embodiment of the present application is shown in FIG. Figure 1 ;

[0022] Figure 7 The structure of the control device proposed in the embodiment of the present application is shown in FIG. Figure 2 . DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0024] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0025] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0027] At present, small portable electronic devices, such as laptop computers, are widely used in people's daily work and life due to their advantages of small size, light weight, and easy to carry. In order to facilitate the daily use of the laptop, it is equipped with an external charger, namely an adapter.

[0028] For example, Figure 1 is a schematic diagram of the adapter structure, such as Figure 1 As shown, the adapter 100 mainly includes two parts, namely the adapter body 101 and the power output interface 102. Here, a plug can also be configured at the front end of the adapter body to obtain external power; or the body itself can store power, and the adapter body can transmit the power to the rear-end power output interface, and supply power to other electronic devices through the output interface and other electronic devices through wired or wireless connection.

[0029] For example, Figure 2 Schematic diagram of the power supply input interface of an electronic device, such as Figure 2 As shown, assuming that the electronic device 200 is a laptop computer, a power input interface 201 is provided. Furthermore, the power output interface 102 of the adapter can be plugged and connected with the power input interface 201 of the electronic device 200 to supply power to the laptop computer.

[0030] However, when using an adapter to charge a laptop, the moment the charger output terminal is plugged in or out of the laptop, a sudden change in voltage often generates a large instantaneous current, which can cause sparks. It can also cause poor contact between the adapter and the power input interface of the electronic device after long-term use. In severe cases, it can cause the connector of the power input interface of the electronic device to melt or even burn, posing a serious safety risk.

[0031] From the above, it can be seen that in order to solve the potential safety hazard problem in the process of plugging and unplugging the adapter and the electronic device, the present application proposes a control method that can be applied to the electronic device or the adapter, which specifically includes obtaining the detection result of the sensor; if it is determined according to the detection result that the adapter is currently plugging and unplugging the electronic device, then the power supply circuit between the adapter and the electronic device is controlled to change from the first working state to the second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state. In this way, by identifying the plugging and unplugging action of the adapter and the electronic device in advance, and effectively avoiding the sparking phenomenon generated during the plugging and unplugging process by reducing the circuit power, it is achieved that the source of the sparking phenomenon is controlled before the adapter and the electronic device are plugged and unplugged, fundamentally solving the problem and effectively enhancing safety.

[0032] Below, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application.

[0033] An embodiment of the present application provides a control method, Figure 3 Schematic diagram of the implementation process of the control method proposed in the embodiment of the present application Figure 1 ,like Figure 3 As shown, in an embodiment of the present application, the control device executing the control method may include the following steps:

[0034] S301, obtaining the detection result of the sensor.

[0035] S302. If it is determined according to the detection result that the adapter is currently plugging or unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state.

[0036] In an embodiment of the present application, a sensor is provided in the control device, and the control device can obtain the detection result of the sensor and identify whether there is currently an adapter plugging and unplugging action on the electronic device based on the detection result of the sensor.

[0037] It should be noted that, in the embodiments of the present application, the plugging and unplugging actions of the adapter on the electronic device include the plugging action of the user inserting the adapter into the electronic device and the unplugging action of the user unplugging the adapter from the electronic device. Here, the execution of the plugging action can make the adapter and the electronic device change from a separated state to a connected state; the execution of the unplugging action refers to the process of the adapter and the electronic device changing from a connected state to a separated state.

[0038] It should be understood that in the embodiments of the present application, the existence of a plugging and unplugging action refers to the existence of a plugging action of an adapter being inserted into an electronic device or a unplugging action of an adapter being unplugged from an electronic device.

[0039] Specifically, in an embodiment of the present application, a sensor may be installed in the control device, which can detect any dynamic changes of the current adapter itself, such as detecting that the adapter is held by the user's hand, detecting that the user's hand has released the adapter; and even detecting any dynamic changes of the adapter relative to the electronic device, such as the adapter is approaching the electronic device, the user's hand holding the adapter is approaching the electronic device, or the user's hand is approaching the electronic device, etc.

[0040] Optionally, in an embodiment of the present application, the sensor may be a sensor that directly generates a detection result, or may only generate a detection signal, which requires subsequent processing and analysis of the detection signal to generate a detection result.

[0041] Furthermore, in an embodiment of the present application, the control device may obtain the detection result of the sensor, and analyze and judge the detection result to determine whether there is currently an action of plugging or unplugging the adapter to the electronic device.

[0042] It is understandable that the adapter may cause a momentary large current and cause sparks when plugging or unplugging the electronic device. In some embodiments, if the control device determines based on the detection results from the sensor that there is currently an action of plugging the adapter into the electronic device or unplugging the adapter from the electronic device, that is, there is an action of plugging or unplugging the adapter from the electronic device, then in order to avoid the above-mentioned safety hazard, the control device can fundamentally solve this problem by controlling the circuit power of the power supply circuit between the adapter and the electronic device in advance.

[0043] Here, in addition to the sensor, the control device may also be provided with a controller, and the controller and the sensor are connected by wire or wirelessly. The controller can identify the plugging and unplugging actions of the adapter to the electronic device based on the detection results, and adjust the circuit power of the power supply circuit between the adapter and the electronic device after identifying the plugging and unplugging action.

[0044] Specifically, when the control device determines that there is currently an action of plugging the adapter into the electronic device or unplugging the adapter from the electronic device, the control device can convert the power supply circuit between the adapter and the electronic device from a first working state with high circuit power to a second working state with low circuit power in advance, that is, by reducing the circuit power of the power supply circuit between the adapter and the electronic device, it is possible to effectively prevent the high current spark phenomenon generated when the adapter is actually plugged in and out of the electronic device.

[0045] Here, in the second working state of low circuit power, the circuit power may be lower than a preset threshold value for avoiding instantaneous large current sparking, and the circuit power may even be as low as 0.

[0046] In some embodiments, the control device that executes the control method can be an electronic device that needs to be powered by an adapter. The following describes exemplary applications of electronic devices that can implement the control method provided in the embodiments of the present application. The electronic devices provided in the embodiments of the present application can be implemented as mobile phones, laptops, tablet computers, desktop computers, smart TVs, vehicle-mounted devices, wearable devices, industrial equipment, etc., and the present application does not specifically limit this.

[0047] In other embodiments, the control device provided by the present application may be directly an adapter, and the type of the adapter is not limited to an adapter for powering any electronic device.

[0048] Furthermore, in an embodiment of the present application, the sensor detects the dynamic changes between the adapter and the electronic device in real time. If it is determined based on the detection result that there is currently no plugging or unplugging action of the adapter on the electronic device, or the plugging or unplugging action of the adapter on the electronic device is completed, then the control device can control the power supply circuit between the adapter and the electronic device to change from the second working state of low circuit power to the first working state of high circuit power, so as to power the electronic device normally through the adapter.

[0049] The present application proposes a control method, which obtains the detection result of the sensor; if it is determined according to the detection result that the adapter is currently plugging and unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from the first working state to the second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state. In this way, by identifying the plugging and unplugging action of the adapter and the electronic device in advance, and effectively avoiding the sparking phenomenon during the plugging and unplugging process by reducing the circuit power, it is achieved to control the source of the sparking phenomenon before the adapter and the electronic device are plugged and unplugged, fundamentally solve the problem, and effectively enhance safety.

[0050] In another embodiment of the present application, when the control device is an electronic device, the execution subject of the control method proposed in the present application is the electronic device. In this case, the sensor and the controller can both be set on the electronic device. Here, the sensor can be set on Figure 2Any position at the power input interface of the electronic device shown is used to identify the dynamic changes of the adapter relative to the electronic device to determine whether there is a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device; the controller can be the central processing unit (CPU) of the electronic device, which is used to control and adjust the circuit power of the power supply circuit between the adapter and the electronic device.

[0051] Figure 4A Schematic diagram of the implementation process of the control method proposed in the embodiment of the present application Figure 2 ,like Figure 4A As shown, in an embodiment of the present application, the control device executing the control method may include the following steps:

[0052] Step 401: The electronic device obtains the detection result of the sensor.

[0053] Step 402: If the electronic device determines that the detection result is that the distance between the power output interface of the adapter and the power input interface of the electronic device meets the preset threshold range, it is determined that there is currently an action of plugging or unplugging the adapter to the electronic device.

[0054] In the embodiment of the present application, when the control device is an electronic device, the sensor can be arranged at Figure 2 The power input interface of the electronic device shown.

[0055] It should be understood that the adapter is usually plugged in and out of the electronic device by holding it in the hand. When the adapter is inserted into the electronic device or unplugged from the electronic device, the hand needs to be close to the power input interface of the electronic device.

[0056] Therefore, in an embodiment of the present application, a distance sensor and an image sensor capable of sensing distance can be provided at the power input interface of the electronic device, and the distance between the power output interface of the adapter and the power input interface of the electronic device can be determined by determining the distance between a human hand and the power input interface of the electronic device, so as to determine whether there is an action of inserting the adapter into the electronic device by a human hand or an action of unplugging the adapter from the electronic device by a human hand, in other words, to determine an action of inserting the adapter into the electronic device or an action of unplugging the adapter from the electronic device.

[0057] Specifically, when the sensor is a distance sensor, the sensor can be used to detect the distance between the sensor and the user's hand. The distance between the sensor and the user's hand can represent the distance between the power input interface of the electronic device and the power output interface of the adapter.

[0058] Specifically, when the sensor is an image sensor, such as a miniature camera, when the image sensor captures the image of the user's hand, a camera calibration algorithm can be used to determine the distance between the image of the user's hand and the sensor in the actual three-dimensional space. The distance between the sensor and the user's hand can represent the distance between the power input interface of the electronic device and the power output interface of the adapter.

[0059] In an embodiment of the present application, the electronic device can pre-set a distance threshold between the electronic device and the adapter that can be used to determine whether there is a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device, that is, a preset distance threshold. After determining the real-time distance between the power output interface of the adapter and the power input interface of the electronic device based on the detection result of the distance sensor or the image sensor, the real-time distance can be compared with the preset distance threshold, and then based on the comparison result, it can be determined whether there is currently a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device.

[0060] If it is determined that the distance between the power output interface of the adapter and the power input interface of the electronic device is less than or equal to a preset distance threshold, then it is determined that there is a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device; if it is determined that the distance between the power output interface of the adapter and the power input interface of the electronic device is greater than the preset distance threshold, then it is determined that there is currently no plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device.

[0061] Step 403: The electronic device generates a target low-level control signal through a controller.

[0062] Step 404: Use the target low-level control signal to control the circuit at the power input interface of the electronic device to switch from the first working state to the second working state.

[0063] In an embodiment of the present application, if the electronic device determines that there is currently an action of plugging or unplugging the electronic device by the adapter, in order to avoid sparks caused by the large current at the moment of plugging or unplugging, the electronic device can reduce the circuit power of the power supply circuit between the adapter and the electronic device to reduce the current and avoid the occurrence of sparks.

[0064] It should be understood that the power supply circuit between the adapter and the electronic device includes a circuit at the power input interface of the electronic device and a circuit at the power output interface of the adapter. The electronic device can be powered successfully by electrically connecting the circuit at the power input interface of the electronic device and the circuit at the power output interface of the adapter. Here, controlling the circuit power reduction of any circuit part can reduce the circuit power of the entire power supply circuit when the adapter is plugged in or out of the electronic device to avoid large current sparking.

[0065] Specifically, the electronic device can control the circuit power at the power input interface of the electronic device to be reduced in advance, so as to avoid the instantaneous large current sparking phenomenon when the adapter is plugged in or out of the electronic device.

[0066] In detail, the electronic device can generate a low-level control signal through a controller and send the low-level control signal to the circuit at the power input interface of the electronic device, so that the circuit at the power input interface of the electronic device changes from a first working state with high circuit power to a second working state with low circuit power.

[0067] Here, a pulse width modulation (PWM) controller can be set in the circuit at the power input interface of the electronic device. The PWM controller is connected to the CPU, can receive a low-level control signal sent by the CPU, generate a low-level signal, and transmit it to the power input interface circuit of the electronic circuit, thereby controlling the circuit at the power input interface of the electronic device to change from a first working state of high circuit power to a second working state of low circuit power.

[0068] In another embodiment, the low-level control signal sent by the central controller can make the circuit power of the circuit at the power input interface of the electronic device lower than a preset threshold, or even as low as 0, that is, the circuit at the power input interface of the electronic device is controlled to be in an open circuit state. In this way, when the adapter is actually plugged in or out of the electronic device, the circuit power is low at this time, thereby avoiding the sparking phenomenon of instantaneous large current.

[0069] Furthermore, if it is determined based on the detection results of the sensor that the plugging and unplugging action is completed, the CPU generates a high-level control signal and sends it to the PWM controller. The PWM controller generates a high-level signal and transmits it to the power input interface circuit of the electronic device, so that the circuit power is restored from low circuit power to high circuit power. At this time, the power supply circuit between the adapter and the electronic device is powered normally.

[0070] In yet another embodiment of the present application, Figure 4B Schematic diagram of the implementation process of the control method proposed in the embodiment of the present application Figure 3 ,like Figure 4B As shown, after the electronic device generates the target low-level control signal through the controller, that is, after step 403, the electronic device executes the control method including:

[0071] Step 405: Send a target low-level control signal to the adapter to control the circuit in the power supply circuit and at the power output interface of the adapter to change from the first working state to the second working state.

[0072] In the embodiments of the present application, it should be understood that by controlling the reduction of the circuit power of any circuit part in the power supply circuit between the adapter and the electronic device, the circuit at the power input interface of the electronic device, and the circuit at the power output interface of the adapter, the circuit power of the entire power supply circuit can be reduced to avoid large current sparking when the adapter is plugged in or out of the electronic device.

[0073] Specifically, the electronic device can control the circuit power at the power output interface of the adapter to reduce so as to avoid the instantaneous large current sparking phenomenon when the adapter is plugged in or out of the electronic device.

[0074] Here, the electronic device can generate a low-level control signal through a controller such as a CPU and then send the low-level control signal to the adapter, thereby controlling the power output interface circuit of the adapter to change from a first working state with high circuit power to a second working state with low circuit power.

[0075] Here, a pulse width modulation (PWM) controller can be set in the adapter. After the electronic device generates a low-level control signal through the controller, since the adapter and the electronic device have not been plugged in or unplugged at this time and the power supply circuit has not been electrically connected, the low-level control signal can be sent to the PWM controller wirelessly. After receiving the low-level control signal sent by the electronic device, the PWM controller set in the adapter generates a low-level signal, and then controls the circuit at the power output interface of the adapter to change from a first working state with high circuit power to a second working state with low circuit power in advance. When the adapter is actually plugged in or unplugged from the electronic device, the circuit power is low at this time, thereby avoiding the sparking phenomenon of instantaneous large current.

[0076] Furthermore, if the plugging and unplugging action is determined to be completed based on the detection result of the sensor, the electronic device generates a high-level control signal through the CPU and sends it to the adapter, so that the circuit power at the power output interface of the adapter is restored from low circuit power to high circuit power. At this time, the power supply circuit between the adapter and the electronic device is powered normally.

[0077] In other embodiments, when the control device is an electronic device, the sensor and the controller can be separately arranged, the sensor is arranged on the electronic device, and the controller is arranged on the adapter. In this case, the sensor is used to detect the dynamic changes of the adapter relative to the electronic device, and the detection result is wirelessly notified to the adapter, and the controller in the adapter can process and analyze the detection result, and when it is determined that there is currently an insertion action of the adapter to be inserted into the electronic device or an unplugging action of the adapter to be unplugged from the electronic device, a low-level control signal is generated to control the power supply circuit between the adapter and the electronic device and the adapter power output interface circuit in advance from the first working state of high circuit power to the second working state of low circuit power, so that when the adapter is actually plugged in or unplugged from the electronic device, the entire power supply circuit is changed from the first working state of high circuit power to the second working state of low circuit power.

[0078] In other embodiments, when the control device is an electronic device, the sensor and the controller can be set separately, and when the sensor is set on the electronic device and the controller is set on the adapter, the electronic device can also first determine, based on the detection result of the sensor, that there is currently a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device, and then send a message of the plugging and unplugging action to the adapter wirelessly, so that the adapter uses the controller to generate a low-level advance control signal to control the power supply circuit between the adapter and the electronic device, and the adapter power output interface circuit from a first working state with high circuit power to a second working state with low circuit power. In this way, when the adapter is actually plugged in or out of the electronic device, the entire power supply circuit is changed from the first working state with high circuit power to the second working state with low circuit power.

[0079] In another embodiment of the present application, when the control device is an adapter, the execution subject of the control method proposed in the present application is the adapter. In this case, the sensor and the controller can both be arranged on the adapter. Here, the sensor can be arranged on Figure 1 The sensor is used to identify the dynamic changes of the adapter itself to determine whether there is currently an action of plugging or unplugging the adapter to the electronic device; the controller can be set as follows Figure 1 Any position on the power output interface 102 shown may also be any processor provided in the adapter, which is used to control and adjust the circuit power of the power supply circuit between the adapter and the electronic device.

[0080] The control method provided in the embodiment of the present application is applied to an electronic device, by obtaining the detection result of a distance sensor or an image sensor; if it is determined according to the detection result that the distance between the power output interface of the adapter and the power input interface of the electronic device meets the preset threshold range, it is determined that there is currently an action of inserting the adapter into the electronic device or an action of unplugging the adapter from the electronic device, and then the electronic device can directly control the power supply circuit between the adapter and the electronic device, the circuit at the power input interface of the electronic device, or indirectly control the circuit at the power output interface of the adapter from the first working state of high circuit power to the second working state of low circuit power. In this way, by identifying the plugging and unplugging action of the adapter and the electronic device in advance, the sparking phenomenon generated during the plugging and unplugging process can be effectively avoided by reducing the circuit power, thereby enhancing safety.

[0081] Figure 5 Schematic diagram 4 of the implementation flow of the control method proposed in the embodiment of the present application, as shown in Figure 5 As shown, in an embodiment of the present application, the adapter execution control method may include the following steps:

[0082] Step 501: The adapter obtains the detection result of the sensor.

[0083] Step 502: If the adapter determines that the detection result is that the contact time between the target contact object and the adapter is greater than or equal to the preset time threshold, and the contact area is greater than or equal to the preset area threshold, it is determined that the adapter is currently plugging or unplugging the electronic device.

[0084] In the embodiment of the present application, when the control device is an electronic device, the sensor can be arranged at Figure 1 The adapter power output interface is shown.

[0085] It should be understood that it is usually necessary to hold the power output interface of the adapter by hand to perform plugging and unplugging actions with the electronic device. Therefore, in the embodiments of the present application, the target contact object can be the user's hand, and a touch sensor and a pressure sensor that can sense the human hand can be set at the power output interface of the adapter. By determining whether there is contact between the human hand and the electronic device, it can be determined whether there is an action of plugging the adapter into the electronic device or an action of unplugging the adapter from the electronic device, that is, the plugging and unplugging action of the adapter on the electronic device.

[0086] Specifically, when the sensor is a touch sensor or a pressure sensor, the sensor can be used to detect the duration and area of ​​contact between the user's hand and the adapter to determine whether there is an insertion action of the adapter into the electronic device or an unplugging action of the adapter from the electronic device.

[0087] In an embodiment of the present application, the electronic device can pre-set a contact time threshold between the human hand and the adapter, that is, a preset time threshold, and a contact area threshold, that is, a preset area threshold, which can be used to determine whether there is a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device. After determining the contact time and contact area between the user's hand and the power output interface of the adapter based on the detection results of the touch sensor or the pressure sensor, the contact time can be compared with the preset time threshold, and the contact area can be compared with the preset area threshold, and then based on the comparison result, it can be determined whether there is currently a plugging action of the adapter to be inserted into the electronic device or a pulling action of the adapter to be pulled out of the electronic device.

[0088] If it is determined that the contact time between the user's hand and the power output interface of the adapter is greater than or equal to the preset time threshold, and the contact area between the user's hand and the power output interface of the adapter is greater than or equal to the preset area threshold, then it is determined that there is an action of plugging the adapter into the electronic device or an action of unplugging the adapter from the electronic device; otherwise, it is determined that there is currently no action of plugging or unplugging the adapter from the electronic device.

[0089] Step 503: The adapter generates a target low-level control signal through the controller.

[0090] Step 504: Use the target low-level control signal to control the circuit at the power output interface of the adapter to change from the first working state to the second working state.

[0091] In an embodiment of the present application, if the adapter determines that the adapter is currently plugging or unplugging an electronic device, in order to avoid sparks caused by the large current at the moment of plugging or unplugging, the adapter can reduce the circuit power of the power supply circuit between the adapter and the electronic device to reduce the current and avoid the occurrence of sparks.

[0092] It should be understood that by controlling the reduction of the circuit power of any circuit part in the power supply circuit between the adapter and the electronic device, the circuit at the power input interface of the electronic device, and the circuit at the power output interface of the adapter, the circuit power of the entire power supply circuit can be reduced to avoid large current sparking when the adapter is plugged in or out of the electronic device.

[0093] Specifically, the adapter can control the circuit power at the adapter power output interface to reduce in advance, so as to avoid the instantaneous large current sparking phenomenon when the adapter is plugged in or out of the electronic device.

[0094] In detail, the adapter can generate a low-level control signal through the controller and send the low-level control signal to the adapter power output interface circuit to change the circuit at the adapter power output interface from a first working state of high circuit power to a second working state of low circuit power.

[0095] Here, a PWM controller can be set in the circuit at the power output interface of the adapter. The PWM controller is connected to the controller, can receive a low-level control signal sent by the controller, generate a low-level signal, and transmit it to the adapter power output interface circuit, thereby controlling the circuit at the adapter power output interface to change from a first working state of high circuit power to a second working state of low circuit power.

[0096] In another embodiment, the low-level control signal sent by the controller can make the circuit power of the circuit at the power output interface of the adapter lower than a preset threshold, or even as low as 0. In this way, when the adapter is actually plugged in or out of an electronic device, the circuit power is low at this time, thereby avoiding the sparking phenomenon caused by instantaneous large current.

[0097] Furthermore, if it is determined based on the detection results of the sensor that the plugging and unplugging action is completed, the controller generates a high-level control signal and sends it to the PWM controller. The PWM controller generates a high-level signal and transmits it to the power output interface circuit of the adapter, so that the circuit power is restored from low circuit power to high circuit power. At this time, the power supply circuit between the adapter and the electronic device is powered normally.

[0098] The control method provided in the embodiment of the present application is applied to the adapter, by obtaining the detection result of the touch sensor or the pressure sensor; if it is determined according to the detection result that the contact time and contact area between the user's hand and the power output interface of the adapter meet the preset threshold range, it is determined that there is currently an action of the adapter being inserted into the electronic device or the adapter being unplugged from the electronic device, and then the adapter can directly control the power supply circuit between the adapter and the electronic device and the circuit at the adapter power output interface in advance from the first working state of high circuit power to the second working state of low circuit power. In this way, by identifying the plugging and unplugging action of the adapter and the electronic device in advance, the sparking phenomenon generated during the plugging and unplugging process can be effectively avoided by reducing the circuit power, thereby enhancing safety.

[0099] Based on the above embodiments, in one embodiment of the present application, Figure 6 The structure of the control device proposed in the embodiment of the present application is shown in FIG. Figure 1 ,like Figure 6 As shown, the control device 10 includes an acquisition unit 11, a control unit 12 and a determination unit 13.

[0100] The acquisition unit 11 is used to acquire the detection result of the sensor;

[0101] The control unit 12 is used to control the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state if it is determined according to the detection result that the adapter is currently plugging or unplugging the electronic device; wherein the circuit power in the first working state is greater than the circuit power in the second working state.

[0102] In some embodiments, when the control device is an electronic device, the sensor is disposed at a power input interface of the electronic device, and the sensor is a distance sensor or an image sensor;

[0103] The acquisition unit is specifically used to acquire the detection result of the distance sensor, or acquire the detection result of the image sensor.

[0104] In some embodiments, when the control device is an adapter, the sensor is disposed at the power output interface of the adapter, and the sensor is a touch sensor or a pressure sensor.

[0105] The acquisition unit is specifically used to acquire the detection result of the touch sensor, or acquire the detection result of the pressure sensor.

[0106] In some embodiments, when the control device is an electronic device, the determination unit 13 is used to determine that there is currently an action of plugging or unplugging the electronic device by the adapter if the electronic device determines that the detection result is that the distance between the power output interface of the adapter and the power input interface of the electronic device satisfies a preset threshold range before determining that there is currently an action of plugging or unplugging the electronic device by the adapter according to the detection result.

[0107] In some embodiments, when the control device is an electronic device, the control unit 12 is specifically used to generate a target low-level control signal through a controller; send the target low-level control signal to the adapter to control the circuit in the power supply circuit and at the power output interface of the adapter to change from the first working state to the second working state.

[0108] In some embodiments, when the control device is an electronic device, the control unit 12 is further specifically used to generate a target low-level control signal through a controller; and use the target low-level control signal to control the circuit in the power supply circuit and the circuit at the power input interface of the electronic device from the first working state to the second working state.

[0109] In some embodiments, when the control device is an adapter, the determination unit 13 is used to determine that there is currently a plugging and unplugging action between the adapter and the electronic device, if the adapter determines that the detection result is that the contact time between the target contact object and the adapter is greater than or equal to a preset time threshold, and the contact area is greater than or equal to a preset area threshold, before determining that there is currently a plugging and unplugging action between the adapter and the electronic device according to the detection result.

[0110] In some embodiments, when the control device is an adapter, the control unit 12 is specifically used to generate a target low-level control signal through the controller; and use the target low-level control signal to control the circuit in the power supply circuit and the circuit at the power output interface of the adapter to change from the first working state to the second working state.

[0111] In some embodiments, the control unit 12 is also used to control the power supply circuit between the adapter and the electronic device to change from the second working state to the first working state if it is determined according to the detection result that there is currently no plugging or unplugging action of the adapter on the electronic device, or the plugging or unplugging action of the adapter on the electronic device is completed.

[0112] In the embodiments of the present application, further, Figure 7 The structure diagram of the control device proposed in this application is as follows: Figure 2 ,like Figure 7 As shown, the control device 10 proposed in the embodiment of the present application may also include a processor 14, a memory 15 storing executable instructions of the processor 14, and further, the control device 10 may also include a communication interface 16, and a bus 17 for connecting the processor 14, the memory 15 and the communication interface 16, as well as a sensor 18 and a controller 19.

[0113] In the embodiment of the present application, the processor 14 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor can also be other, and the embodiment of the present application is not specifically limited. The prediction device 10 of the time series can also include a memory 15, which can be connected to the processor 14, wherein the memory 15 is used to store executable program code, the program code includes computer operation instructions, and the memory 15 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0114] In the embodiment of the present application, the bus 17 is used to connect the communication interface 16, the processor 14 and the memory 15, and the mutual communication between these devices.

[0115] In the embodiment of the present application, the memory 15 is used to store instructions and data.

[0116] Furthermore, in an embodiment of the present application, the above-mentioned processor 14 is used to obtain the detection result of the sensor; if it is determined according to the detection result that there is currently an action of plugging and unplugging the adapter to the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state.

[0117] In practical applications, the memory 15 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 14.

[0118] In addition, each functional module in this embodiment can be integrated into a recommended unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0119] If the integrated unit is implemented in the form of a software function module and is not 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 this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0120] The embodiment of the present application provides a control device for executing a control method, which can be an electronic device or an adapter. The control device obtains the detection result of the sensor; if it is determined according to the detection result that the adapter is currently plugging or unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state. In this way, by identifying the plugging or unplugging action between the adapter and the electronic device, the sparking phenomenon generated during the plugging or unplugging process can be effectively avoided by reducing the circuit power, thereby enhancing safety.

[0121] An embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the control method described above is implemented.

[0122] Specifically, the program instructions corresponding to a control method in this embodiment can be stored in a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instructions corresponding to a control method in the storage medium are read or executed by an electronic device, the following steps are included:

[0123] Get the detection results of the sensor;

[0124] If it is determined according to the detection result that the adapter is currently plugging or unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state.

[0125] Accordingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions, and the computer executable instructions are used to implement the steps in the control method provided in the embodiment of the present application.

[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0127] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0130] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A control method, characterized in that: The control method is applied to an electronic device, and the method comprises: Get the detection results of the sensor; If it is determined according to the detection result that there is currently an action of plugging or unplugging the adapter from the electronic device, then controlling the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state; wherein the circuit power in the first working state is greater than the circuit power in the second working state; Wherein, controlling the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state includes: The electronic device generates a target low-level control signal through a controller; The target low-level control signal is used to control the circuit in the power supply circuit and the circuit at the power input interface of the electronic device to switch from the first working state to the second working state.

2. The method according to claim 1, characterized in that The control method is applied to the electronic device, the sensor is arranged at the power input interface of the electronic device, and the sensor is a distance sensor or an image sensor; Accordingly, the obtaining of the detection result of the sensor includes: The electronic device obtains the detection result of the distance sensor, or the electronic device obtains the detection result of the image sensor.

3. The method according to claim 1, characterized in that The control method is applied to the adapter, the sensor is arranged at the power output interface of the adapter, and the sensor is a touch sensor or a pressure sensor; Accordingly, the obtaining of the detection result of the sensor includes: The adapter obtains the detection result of the touch sensor, or the adapter obtains the detection result of the pressure sensor.

4. The method according to claim 2, characterized in that: If it is determined according to the detection result that there is currently an action of plugging or unplugging the adapter from the electronic device, the method further includes: If the electronic device determines that the detection result is that the distance between the power output interface of the adapter and the power input interface of the electronic device meets the preset threshold range, it is determined that there is currently an action of plugging and unplugging the adapter to the electronic device.

5. The method according to claim 4, characterized in that The controlling the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state comprises: The electronic device generates a target low-level control signal through a controller; The electronic device sends the target low-level control signal to the adapter to control the circuit in the power supply circuit and at the power output interface of the adapter to change from the first working state to the second working state.

6. The method according to claim 3, characterized in that If it is determined according to the detection result that there is currently a plugging and unplugging action between the adapter and the electronic device, the method further includes: If the adapter determines that the detection result is that the contact time between the target contact object and the adapter is greater than or equal to a preset time threshold, and the contact area is greater than or equal to a preset area threshold, it is determined that the adapter is currently plugging or unplugging the electronic device.

7. The method according to claim 6, characterized in that The controlling the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state comprises: The adapter generates a target low-level control signal through a controller; The target low-level control signal is used to control the circuit in the power supply circuit and at the power output interface of the adapter to change from the first working state to the second working state.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If it is determined according to the detection result that the adapter is not currently plugging or unplugging the electronic device, or the adapter has finished plugging or unplugging the electronic device, the power supply circuit between the adapter and the electronic device is controlled to change from the second working state to the first working state.

9. A control device, characterized in that: The control device is an electronic device, and includes an acquisition unit and a control unit. The acquisition unit is used to acquire the detection result of the sensor; The control unit is used to control the power supply circuit between the adapter and the electronic device to change from a first working state to a second working state if it is determined according to the detection result that there is currently an action of plugging and unplugging the adapter to the electronic device; wherein the circuit power in the first working state is greater than the circuit power in the second working state; The control unit is specifically used for the electronic device to generate a target low-level control signal through a controller; and use the target low-level control signal to control the circuit in the power supply circuit and the circuit at the power input interface of the electronic device to convert from the first working state to the second working state.

Citation Information

Patent Citations

  • Power supply control method, device and terminal

    CN105406588A

  • Charging method and terminal, and storage medium

    CN110380484A