Charge and discharge identification method, charge and discharge interface device, charge and discharge equipment and charge and discharge system

By detecting the communication status and power supply voltage of the charging and discharging interface device, the problem that the handheld controller cannot automatically end discharging and charging in the discharging state is solved, and the convenience of use of the product is improved.

CN118713259APending Publication Date: 2024-09-27GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410966254.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The handheld controller cannot automatically end the discharge in the discharge state, and cannot perform the charging operation after being inserted into the charging device, making it inconvenient to use.

Method used

By continuously detecting the communication status of the charge and discharge interface device, if the connection is disconnected, the discharge will be stopped and the power supply voltage will be obtained, and the charging or shutdown state will be controlled based on the power supply voltage.

Benefits of technology

It avoids the inability to automatically end the discharge state after the electrical equipment is disconnected, improves the convenience of product use, and ensures normal charging and discharging operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713259A
    Figure CN118713259A
Patent Text Reader

Abstract

The invention relates to a charging and discharging identification method, a charging and discharging interface device, a charging and discharging device and a system, under the condition that the charging and discharging device is in a discharging state, the communication state of the charging and discharging interface device of the charging and discharging device is continuously detected, and if it is judged that the charging and discharging device is disconnected with an electric device according to the communication state of the charging and discharging interface device, the charging and discharging device is started. If yes, discharging is stopped, the power voltage of the charging and discharging interface device is obtained, and the charging and discharging equipment is controlled to enter a charging state or a shutdown state based on the power voltage of the charging and discharging interface device, so that the technical problems that after the electric equipment is disconnected, the discharging state cannot be automatically ended, and charging operation cannot be executed even if the charging device is inserted are solved; and the use convenience of the product is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of radio frequency identification technology, and in particular to a charge and discharge identification method, a charge and discharge interface device, a charge and discharge device and a system. Background Art

[0002] At present, most electronic devices are generally equipped with handheld controllers for easy operation. For example, photon mask products used for facial beauty usually include a mask body and a handheld controller. In addition to the built-in controller, the handheld controller also includes a power supply and a charge and discharge management chip. When the mask body is connected to the handheld controller, it can not only communicate with the mask body to control the operation of the mask body, but also supply power to the mask body. Correspondingly, the handheld controller can also be connected to a charging device to charge the power supply inside it.

[0003] In the related art, for the sake of convenience, the charging and discharging of the handheld controller are usually designed to share a common interface, and the switching of the charging state or the discharging state is realized from the hardware circuit or software logic, so that the handheld controller performs charging or discharging behavior. However, at present, when the handheld controller is in the discharging state and the mask is directly cut off, it cannot automatically end the discharging state, and even if the charging device is inserted, the charging operation cannot be performed, which is very inconvenient to use. Summary of the invention

[0004] Based on this, it is necessary to provide a charging and discharging identification method, charging and discharging interface device, charging and discharging equipment and system that can improve the convenience of product use in response to the above technical problems.

[0005] In a first aspect, the present application provides a charge and discharge identification method, the method comprising:

[0006] When the charging and discharging device is in a discharging state, continuously detecting the communication state of the charging and discharging interface device of the charging and discharging device;

[0007] If it is determined according to the communication state of the charge-discharge interface device that the charge-discharge device is disconnected from the power-consuming device, the charge-discharge device is controlled to stop discharging and the power supply voltage of the charge-discharge interface device is obtained;

[0008] The charging and discharging device is controlled to enter a charging state or a shutdown state based on the power supply voltage of the charging and discharging interface device.

[0009] In one of the embodiments, the communication state of the charge-discharge interface device is the level state of the communication sending port of the charge-discharge interface device;

[0010] Determining the disconnection between the charging and discharging device and the power-consuming device according to the communication state of the charging and discharging interface device includes:

[0011] The level state of the communication sending port of the charging and discharging interface device is a low level state.

[0012] In one embodiment, controlling the charging and discharging device to enter a charging state or a shutdown state based on the power supply voltage of the charging and discharging interface device includes:

[0013] If the power supply voltage of the charging and discharging interface device is non-zero, controlling the charging and discharging device to enter a charging state;

[0014] If the power supply voltage of the charging and discharging interface device is zero, the charging and discharging device is controlled to enter a shutdown state.

[0015] In one embodiment, controlling the charging and discharging device to stop discharging and obtaining the power supply voltage of the charging and discharging interface device includes:

[0016] The charging and discharging device is controlled to stop discharging, and the power supply voltage of the charging and discharging interface device is obtained after a preset time.

[0017] In one embodiment, the method further comprises:

[0018] If it is determined according to the communication status of the charge-discharge interface device that the charge-discharge device and the power-consuming device are not disconnected, the charge-discharge device is controlled to maintain the discharge state, and the process returns to the step of continuously detecting the communication status of the charge-discharge interface device of the charge-discharge device.

[0019] In a second aspect, the present application further provides a charge-discharge interface device, the charge-discharge interface device comprising a communication port, a power port, and a pull-down circuit;

[0020] The communication port is used to realize the communication connection between the charging and discharging device and the power-consuming device, and the communication port is also grounded through the pull-down circuit;

[0021] The power port is used to enable the charging and discharging device to supply power to the power-consuming device, and is also used to enable the charging device to charge the charging and discharging device.

[0022] In one embodiment, the communication port includes a first communication port and a second communication port, and the first communication port or the second communication port is grounded through the pull-down circuit.

[0023] In one embodiment, the first communication port is a communication sending port, the second communication port is a communication receiving port, and the communication sending port is grounded through the pull-down circuit.

[0024] In one embodiment, the pull-down circuit includes a pull-down resistor, and the communication sending port is grounded through the pull-down resistor.

[0025] In a third aspect, the present application also provides a charging and discharging device, which includes a controller, a power supply, and a charging and discharging interface device as described in any one of the above embodiments, wherein the controller is connected to the power supply, the controller and the power supply are connected to an electrical device through the charging and discharging interface device, and the charging device is connected to the power supply through the charging and discharging interface device.

[0026] In one of the embodiments, the charging and discharging device further includes a charging management chip, and the charging management chip connects the controller and the power supply.

[0027] In a fourth aspect, the present application also provides a charging and discharging system, including an electrical device, a charging device, and the charging and discharging device as described in the above embodiment.

[0028] The above-mentioned charge and discharge identification method, charge and discharge interface device, charge and discharge equipment and system continuously detect the communication status of the charge and discharge interface device of the charge and discharge equipment when the charge and discharge equipment is in a discharge state. If it is determined that the charge and discharge equipment is disconnected from the power-consuming equipment based on the communication status of the charge and discharge interface device, the discharge is stopped and the power supply voltage of the charge and discharge interface device is obtained. Based on the power supply voltage of the charge and discharge interface device, the charge and discharge equipment is controlled to enter a charging state or a shutdown state, so as to avoid the technical problem that the discharge state cannot be automatically ended after the power-consuming equipment is disconnected and the charging operation cannot be performed even if a charging device is inserted, thereby improving the convenience of product use. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 A partial schematic diagram of a charging and discharging system in one embodiment;

[0031] Figure 2 is a partial schematic diagram of a charging and discharging system in another embodiment;

[0032] Figure 3 A schematic diagram of the structure of a charging and discharging system in one embodiment;

[0033] Figure 4 A schematic diagram of the structure of a charging and discharging system in another embodiment;

[0034] Figure 5 A schematic diagram of a flow chart of a charge and discharge identification method in one embodiment;

[0035] Figure 6 is a flow chart of a charge and discharge identification method in another embodiment;

[0036] Figure 7 It is a flowchart of a charge and discharge identification method in another embodiment;

[0037] Figure 8 Schematic diagram of the circuit structure of a charge-discharge interface device on the charge-discharge device side in one embodiment;

[0038] Fig. 9 A schematic diagram of a flow chart of a charge and discharge identification method in yet another embodiment;

[0039] Fig.10 The figure is a schematic diagram of the circuit structure of a charging and discharging interface device on the electrical equipment side in one embodiment. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. The embodiments of the present application are given in the accompanying drawings, but the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0041] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0042] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0043] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.

[0044] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0045] 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 in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0046] At present, in order to improve user convenience and operability, most electronic devices are equipped with handheld controllers. Take home beauty instrument products as an example. Figure 1 The facial mask products shown in the figure for facial beauty usually include a mask body and a handheld controller. The mask body can cover the user's face to generate steam containing medicinal ingredients or light of a specific wavelength (such as a photon skin rejuvenation device) to maintain the user's facial skin. The handheld controller has a built-in controller that can communicate with the mask body to control the operation of the mask body. In addition, in order to facilitate power supply, the handheld controller generally also includes a power supply and a charge and discharge management chip, which can power the mask body when the mask body is connected to the handheld controller. Correspondingly, if Figure 2 As shown, the handheld controller can also be connected to a charging device to charge its own power supply.

[0047] In the related art, for the sake of ease of use, the charging and discharging of the handheld controller is usually designed to share a common interface, and the switching of the charging state or the discharging state is implemented from the hardware circuit or the software logic, so that the handheld controller performs charging or discharging behavior. Taking the switching of the charging state or the discharging state implemented in the software logic as an example, it can be implemented by judging the level state of the interface power port. Specifically, when the handheld controller is awakened by an external interrupt, the level state of the power port is judged. When the level state of the power port is a high level, it is judged that a charging device is connected for charging, and the handheld controller is controlled to enter the charging state accordingly. When the level state of the power port is a low level, it is judged that it can be discharged to provide power to the mask, and the handheld controller is controlled to enter the discharging state accordingly.

[0048] However, currently when the handheld controller is in the discharge state, its power port will continue to maintain a high level state, and the user needs to manually terminate the discharge state, such as using the shutdown button to control the product to enter the shutdown state. This design is to avoid interrupting the discharge state rashly in the low-power situation where the mask is online but the load is not started, which may cause the mask to be interrupted. However, if the handheld controller is in the discharge state and directly cuts off the mask, and the user does not shut it down, it cannot automatically end the discharge state, and the charging operation cannot be performed even if the charging device is inserted, which is very inconvenient to use.

[0049] Based on this, the present application provides a charging and discharging identification method and a charging and discharging interface device. By improving the communication port of the charging and discharging interface device of the charging and discharging device, the state of the charging and discharging interface device changes after being disconnected from the power-consuming device, and is detected by the controller, thereby correctly identifying whether the power-consuming device is online. At the same time, it can also further identify whether a charging device is inserted based on the voltage value of the power port of the charging and discharging interface device, and accurately realize the switching of the charging state or the discharging state, thereby avoiding the technical problem that the discharging state cannot be automatically ended after the power-consuming device is disconnected, and the charging operation cannot be performed even if a charging device is inserted, thereby improving the convenience of product use.

[0050] The charge and discharge identification method provided in the embodiment of the present application can be applied to various separate control electronic devices. Such electronic devices may set the power supply and control functions in a separate handheld controller for ease of operation or quality restrictions. As a charge and discharge device that can charge and discharge, the handheld controller needs to provide a common charge and discharge interface device to connect with external devices. Figure 3 and Figure 4 As shown, the charging and discharging device 10 provided in the present application includes a controller 110, a power supply 120 and a charging and discharging interface device 130. The controller 110 is connected to the power supply 120. The controller 110 and the power supply 120 are connected to the power-consuming device 20 in the charging and discharging system through the charging and discharging interface device 130. The charging device 30 in the charging and discharging system is connected to the power supply 120 through the charging and discharging interface device 130.

[0051] In an exemplary embodiment, Figure 5 As shown, a charge and discharge identification method is provided, which is applied to Figure 3 The controller 110 in FIG. 1 is used as an example to illustrate the process, which includes the following steps 200 to 600. Among them:

[0052] Step 200: When the charging and discharging device is in a discharging state, continuously detect the communication state of the charging and discharging interface device of the charging and discharging device.

[0053] Among them, the charging and discharging device is in the discharging state, which indicates that it can be connected to the power-consuming device and provide power supply for the power-consuming device. The charging and discharging device can enter the discharging state according to the user's operation of the interactive device, or it can be automatically controlled to enter the discharging state according to the level state of the power port of the charging and discharging interface device, or it can be controlled to enter the discharging state by other hardware or software logic methods, without limitation.

[0054] Specifically, when the charging and discharging device is in the discharging state, it can continuously monitor whether the power-consuming device remains connected, and timely control the charging and discharging device to exit the discharging state, which can not only ensure the safety of electricity use, but also achieve the purpose of saving electricity. In addition, when the charging and discharging device is connected to the charging device, the charging and discharging device can also be normally switched into the charging state to charge the internal power supply.

[0055] It can be understood that in addition to power supply, the charging and discharging device may also include a controller for controlling the operation of the power-consuming device, and the corresponding charging and discharging device needs to be communicated with the power-consuming device. Taking a mask product for facial beauty as an example, a handheld controller as a charging and discharging device can be communicated with the mask body as a power-consuming device, and send a control signal to control the mask body to achieve the corresponding facial beauty function. It should be noted that the communication connection between the charging and discharging device and the power-consuming device can be achieved by adding a communication interface device in addition to the charging and discharging interface device. It can also be implemented based on the charging and discharging interface device. For example, the charging and discharging interface device can be implemented using an interface including multiple transmission lines, such as a TYPE-C interface. In this embodiment, the communication connection between the charging and discharging device and the power-consuming device is implemented based on the communication port of the charging and discharging interface device. Based on this, the present application can monitor whether the power-consuming device remains connected by continuously detecting the communication status of the communication port of the charging and discharging interface device of the charging and discharging device.

[0056] Exemplarily, the communication status of the communication port of the charge-discharge interface device can be detected by sending a heartbeat packet to the power-consuming device through the communication port, and then detecting according to whether the power-consuming device receives a message feedback on the heartbeat packet. A pull-down circuit can also be added to the communication port on the charge-discharge interface device side, and then detecting according to the level state of the communication port on the charge-discharge interface device side.

[0057] It can be understood that after adding a pull-down circuit to the communication port on the charge-discharge interface device side, the first time the electrical device side is disconnected, the level state of the communication port on the charge-discharge interface device side will change due to the pull-down circuit, and the controller can also promptly know that the electrical device has been disconnected. Relatively speaking, the method of detecting through heartbeat packets not only has high requirements on the signal transmission method and quality, but also requires a certain delay to know whether the electrical device is disconnected. The method used in this application to realize detection based on the level state of the communication port on the charge-discharge interface device side is obviously more accurate and timely.

[0058] It can be understood that the communication between the charging and discharging device and the electric device can be in the form of a two-way port, that is, both the charging and discharging device and the electric device have a communication sending port and a communication receiving port. The communication sending port of the charging and discharging device is connected to the communication receiving port of the electric device, and the communication sending port of the electric device is connected to the communication receiving port of the charging and discharging device. Exemplarily, adding a pull-down circuit to the communication port on the charging and discharging interface device side can be done by adding a communication sending port to the charging and discharging device or by adding a communication receiving port to the charging and discharging device. Correspondingly, detection can be achieved based on the level state of the communication sending port on the charging and discharging interface device side, or it can be achieved based on the level state of the communication receiving port on the charging and discharging interface device side.

[0059] In view of the current hardware structure of the communication port of the charge-discharge interface device, a pull-up design is generally performed on the communication receiving port side. Therefore, in order to adapt to the existing hardware structure, the embodiment of the present application adopts the method of adding a pull-down circuit to the communication sending port of the charge-discharge device to realize detection. Correspondingly, in an exemplary embodiment, the communication state of the charge-discharge interface device is the level state of the communication sending port of the charge-discharge interface device.

[0060] Further, taking the communication state of the charging and discharging interface device as the level state of the communication sending port of the charging and discharging interface device as an example, when the level state of the communication sending port of the charging and discharging interface device is a low level state, it is determined that the charging and discharging device is disconnected from the power-consuming device; when the level state of the communication sending port of the charging and discharging interface device is a high level state, it is determined that the charging and discharging device is not disconnected from the power-consuming device.

[0061] Step 400: If it is determined that the charging and discharging device is disconnected from the power-consuming device according to the communication state of the charging and discharging interface device, the charging and discharging device is controlled to stop discharging and the power supply voltage of the charging and discharging interface device is obtained.

[0062] Specifically, after determining that the charging and discharging device is disconnected from the power-consuming device, which indicates that the power-consuming device no longer needs electricity, the charging and discharging device can be controlled to stop discharging and exit the discharge state. It can be understood that after the charging and discharging device stops discharging, the level state of its power port can jump from the high level maintained in the discharge state to the low level.

[0063] Furthermore, after the charging and discharging device stops discharging, it can be determined whether there is a charging device connected to charge the charging and discharging device by obtaining the power supply voltage of the power port of the charging and discharging interface device.

[0064] Exemplarily, the method of obtaining the power supply voltage of the power port of the charging and discharging interface device is not fixed and can be implemented by any voltage detection device or circuit known to those skilled in the art, which will not be elaborated in this application.

[0065] In an exemplary embodiment, step 400 includes: if it is determined that the charging and discharging device is disconnected from the power-consuming device according to the communication status of the charging and discharging interface device, controlling the charging and discharging device to stop discharging, and obtaining the power supply voltage of the charging and discharging interface device after a preset time.

[0066] It can be understood that due to the presence of a filter circuit or energy storage element in the circuit, after the charging and discharging device is controlled to stop discharging, the level state of the power port cannot suddenly change to a low level, and will stabilize after fluctuations. Correspondingly, in this embodiment, after the charging and discharging device is controlled to stop discharging, the power supply voltage of the charging and discharging interface device can be obtained after a preset time T to ensure that the obtained power supply voltage is accurate and stable.

[0067] The value of the preset time length T is not unique and can be set according to actual technical requirements. For example, in this embodiment, the preset time length T can be obtained by taking a value between 100ms and 1000ms, such as 100ms, 500ms or 1000ms.

[0068] Step 600: Control the charging and discharging device to enter a charging state or a shutdown state based on the power supply voltage of the charging and discharging interface device.

[0069] Specifically, if it is determined based on the power supply voltage that a charging device is connected to the charging and discharging interface device, the charging and discharging device is controlled to enter a charging state so as to use the charging device to charge the internal power supply. Furthermore, if it is determined based on the power supply voltage that the charging and discharging interface device is not connected to any device, the charging and discharging device is controlled to enter a shutdown state and remain in a low power consumption mode waiting to be awakened.

[0070] In an exemplary embodiment, Figure 6 As shown, step 600 includes the following steps 620 to 640, wherein:

[0071] Step 620: If the power supply voltage of the charge-discharge interface device is non-zero, control the charge-discharge device to enter the charging state. It can be understood that when a charging device is connected, the power supply voltage of the power port of the charge-discharge interface device should be consistent with the charging voltage. Furthermore, if the power supply voltage of the charge-discharge interface device is non-zero, it indicates that a charging device is connected to the charge-discharge interface device, and the charge-discharge device is controlled to enter the charging state.

[0072] In step 640, if the power supply voltage of the charge-discharge interface device is zero, the charge-discharge device is controlled to enter the shutdown state. It can be understood that when the power supply voltage of the charge-discharge interface device is zero, it indicates that the charge-discharge interface device is not connected to any device, and the charge-discharge device is controlled to enter the shutdown state and maintain the low power consumption mode waiting for wake-up.

[0073] In an exemplary embodiment, Figure 7 As shown, the method further includes step 300: if it is determined according to the communication state of the charge-discharge interface device that the charge-discharge device and the power-consuming device are not disconnected, the charge-discharge device is controlled to maintain the discharge state, and the method returns to step 200.

[0074] Specifically, when the level state of the communication transmission port of the charge-discharge interface device is in a high level state, it is determined that the charge-discharge device and the power-consuming device are not disconnected, and the charge-discharge device needs to be controlled to maintain the discharge state to avoid interruption of the power-consuming device. At the same time, it is still necessary to continuously detect the communication state of the charge-discharge interface device of the charge-discharge device to know whether the power-consuming device is still online.

[0075] The above-mentioned charge and discharge identification method continuously detects the communication status of the charge and discharge interface device of the charge and discharge device when the charge and discharge device is in the discharge state. If it is determined that the charge and discharge device is disconnected from the power-consuming device based on the communication status of the charge and discharge interface device, the discharge is stopped and the power supply voltage of the charge and discharge interface device is obtained. The charge and discharge device is controlled to enter the charging state or the shutdown state based on the power supply voltage of the charge and discharge interface device, so as to avoid the technical problem that the discharge state cannot be automatically ended after the power-consuming device is disconnected and the charging operation cannot be performed even if the charging device is inserted, thereby improving the convenience of product use.

[0076] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0077] In an exemplary embodiment, Figure 4 and Figure 8 As shown, the present application also provides a charging and discharging interface device 130, which includes a communication port 131, a power port 132 and a pull-down circuit 133; the communication port 131 is used to realize the communication connection between the charging and discharging device 10 and the power-consuming device 20, and the communication port 131 is also grounded through the pull-down circuit 133; the power port 132 is used to realize the charging and discharging device 10 to supply power to the power-consuming device 20, and is also used to realize the charging device 30 to charge the charging and discharging device 10.

[0078] It should be noted that when the charging and discharging device 10 is in a discharging state, the charging and discharging interface device 130 is used to connect to the power-consuming device 20 in the charging and discharging system, provide the power in the charging and discharging device 10 to the power-consuming device 20, and also to communicate with the power-consuming device 20. In addition, when the charging and discharging device 10 is in a charging state, the charging and discharging interface device 130 is also used to connect to the charging device 30 in the charging and discharging system, and charge the power supply 120 in the charging and discharging device through the charging device 30.

[0079] Specifically, the communication port 131 of the charge and discharge interface device 130 is used to communicate with the electrical equipment, and the power port 132 of the charge and discharge interface device 130 is used to enable the charge and discharge device to supply power to the electrical equipment, and the charging device to charge the charge and discharge device.

[0080] Among them, when the charging and discharging equipment is in the discharging state, it can continuously monitor whether the power-consuming equipment remains connected, and timely control the charging and discharging equipment to exit the discharging state, which can not only ensure the safety of electricity use, but also achieve the purpose of saving electricity. In addition, when the charging and discharging equipment is connected to the charging equipment, the charging and discharging equipment can also be normally switched into the charging state to charge the internal power supply.

[0081] Furthermore, the communication port 131 is grounded via the pull-down circuit 133 , so as to detect the communication state of the charge-discharge interface device 110 of the charge-discharge device 10 according to the level state of the communication port 131 , and further monitor whether the electrical device remains connected.

[0082] It can be understood that after the pull-down circuit 133 is added to the communication port 131, the first time the electrical device side is disconnected, the level state of the communication port 131 will jump due to the pull-down circuit 133, and the controller can also know in time that the electrical device has been disconnected. Relatively speaking, the method of detecting through the heartbeat packet not only has high requirements on the signal transmission method and quality, but also requires a certain delay to know whether the electrical device is disconnected. The method used in this application to realize detection based on the level state of the communication port on the charging and discharging interface device side is obviously more accurate and timely.

[0083] It can be understood that the communication between the charging and discharging device 10 and the power-consuming device 20 can be in the form of a two-way port, that is, both the charging and discharging device 10 and the power-consuming device 20 have a communication sending port and a communication receiving port.

[0084] In an exemplary embodiment, the communication port 131 includes a first communication port and a second communication port, and the first communication port or the second communication port is grounded through a pull-down circuit. Specifically, the first communication port can be a communication sending port or a communication receiving port, and the second communication port can also be a communication sending port or a communication receiving port. Furthermore, exemplarily, adding a pull-down circuit to the communication port 131 can be added to the communication sending port of the charging and discharging device, or it can be added to the communication receiving port of the charging and discharging device, that is, the first communication port or the second communication port is grounded through a pull-down circuit.

[0085] In an exemplary embodiment, Figure 8 As shown, the first communication port is the communication sending port MCU_TX, the second communication port is the communication receiving port MCU_RX, and the communication sending port MCU_TX is grounded through the pull-down circuit 133 .

[0086] Specifically, for the current hardware structure of the communication port of the charge-discharge interface device, a pull-up design is generally performed on the communication receiving port MCU_RX side. Therefore, in order to adapt to the existing hardware structure, the embodiment of the present application selects to add a pull-down circuit 133 to the communication sending port MCU_TX of the charge-discharge device to achieve detection.

[0087] In an exemplary embodiment, Figure 8 As shown, the pull-down circuit 133 includes a pull-down resistor R4, and the communication sending port MCU_TX is grounded through the pull-down resistor R4.

[0088] Specifically, when the electric device 20 is disconnected, the communication transmission port MCU_TX will be grounded through the pull-down resistor R4, and then its level state will be low, and it can be determined that the charging and discharging device 10 is disconnected from the electric device 20. On the contrary, when the level state of the communication transmission port MCU_TX is high, it is determined that the charging and discharging device 10 is not disconnected from the electric device 20.

[0089] It can be understood that the implementation solution provided by the charge and discharge interface device to solve the problem is similar to the implementation solution recorded in the above-mentioned charge and discharge identification method. Therefore, the specific limitations in the embodiment of the charge and discharge interface device can refer to the limitations on the charge and discharge identification method in the above text, and will not be repeated here.

[0090] In an exemplary embodiment, Figure 3 and Figure 4 , a charging and discharging device 10 is provided, including a controller 110, a power supply 120 and a charging and discharging interface device 130, the controller 110 is connected to the power supply 120, the controller 110 and the power supply 120 are connected to the power-consuming device 20 in the charging and discharging system through the charging and discharging interface device 130, and the charging device 30 in the charging and discharging system is connected to the power supply 120 through the charging and discharging interface device 130.

[0091] In an exemplary embodiment, the charging and discharging device further includes a charging management chip (not shown in the drawings), which connects the controller and the power supply. Specifically, the charging management chip can be used to manage the charging and discharging process of the power supply.

[0092] It can be understood that the implementation solution provided by the charging and discharging device to solve the problem is similar to the implementation solution recorded in the above-mentioned charging and discharging identification method and charging and discharging interface device. Therefore, the specific limitations in the embodiment of the charging and discharging device can refer to the limitations on the charging and discharging identification method and the charging and discharging interface device above, and will not be repeated here.

[0093] In an exemplary embodiment, Figure 3 As shown, a charging and discharging system is provided, including an electrical device 20, a charging device 30 and a charging and discharging device 10. It can be understood that the implementation scheme for solving the problem provided by the charging and discharging system is similar to the implementation scheme recorded in the above-mentioned charging and discharging identification method and the charging and discharging interface device, so the specific limitations in the embodiment of the charging and discharging system can refer to the limitations of the charging and discharging identification method and the charging and discharging interface device above, which will not be repeated here.

[0094] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and a specific embodiment. It should be understood that the specific embodiment described here is only used to explain the present application and is not used to limit the present application.

[0095] In a specific embodiment, Figure 1 and Figure 2 As shown, taking a mask product used for facial beauty as an example, the charging and discharging device is a handheld controller, and the power-consuming device is the mask body.

[0096] Specifically, this embodiment is a control method proposed based on a controller having a built-in battery and a charge and discharge power management chip, and a TYPE-C interface as a bidirectional interface.

[0097] like Figure 8 and Fig.10 As shown, the communication sending port MCU_TX of the TYPE-C interface on the handheld controller side is connected to the communication receiving port MCU_RX of the TYPE-C interface on the mask body side, and the communication sending port MCU_TX of the TYPE-C interface on the mask body side is connected to the communication receiving port MCU_RX of the TYPE-C interface on the handheld controller side. In order to ensure that the level during communication meets the chip requirements, the resistance value of the pull-down resistor R4 will be designed to be much larger than the resistance value of the resistor R5 (R4 > (R5*10), and the following two states can be obtained:

[0098] State 1: When the handheld controller is connected to the mask body online, after the communication sending port MCU_TX of the TYPE-C interface on the handheld controller side completes sending the message, it will be pulled up by the mask body side (pull-up by resistor R5) to a high level in the idle state.

[0099] State 2: When the handheld controller is disconnected from the mask body, when the communication sending port MCU_TX of the TYPE-C interface on the handheld controller side is idle, it will be pulled down to a low level by its own pull-down resistor R4. At this time, it can be determined that the handheld controller is disconnected from the mask body.

[0100] Furthermore, if Fig. 9 As shown in the flow chart, the control process includes the following steps:

[0101] Step 1: When the handheld controller is working in the discharge state, when the communication transmission port MCU_TX of the TYPE-C interface on the handheld controller side is idle, determine the level state of the communication transmission port MCU_TX. If it is high level, maintain step 1; if it is low level, go to step 2.

[0102] Step 2: The handheld controller stops the discharge state, and after a delay of 100 to 1000 ms, the divided voltage of the power port MCU_AD of the TYPE-C interface on the handheld controller side is determined. If it is non-zero, it is determined that a charging device is inserted and the charging state is switched; otherwise, it returns to the shutdown state and enters low power consumption waiting to be woken up.

[0103] In this embodiment, by improving the communication port of the charging and discharging interface device of the charging and discharging equipment, the state of the charging and discharging interface device changes after being disconnected from the power-consuming equipment, and is detected by the controller, thereby correctly identifying whether the power-consuming equipment is online. At the same time, it is also possible to further identify whether the charging device is inserted based on the voltage value of the power port of the charging and discharging interface device, and accurately realize the switching of the charging state or the discharging state, thereby avoiding the technical problem that the discharging state cannot be automatically terminated after the power-consuming equipment is disconnected and the charging operation cannot be performed even if the charging device is inserted, thereby improving the convenience of product use.

[0104] Based on the same inventive concept, the embodiment of the present application also provides a charge and discharge identification device for implementing the charge and discharge identification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more charge and discharge identification device embodiments provided below can refer to the limitations of the charge and discharge identification method above, and will not be repeated here.

[0105] In an exemplary embodiment, a charge and discharge identification device is provided, comprising: a detection module, an acquisition module and a control module, wherein:

[0106] A detection module, used for continuously detecting the communication status of the charge-discharge interface device of the charge-discharge device when the charge-discharge device is in a discharge state;

[0107] An acquisition module, used to control the charging and discharging device to stop discharging and acquire the power supply voltage of the charging and discharging interface device when it is determined that the charging and discharging device is disconnected from the power-consuming device according to the communication state of the charging and discharging interface device;

[0108] The control module is used to control the charging and discharging device to enter a charging state or a shutdown state based on the power supply voltage of the charging and discharging interface device.

[0109] In an exemplary embodiment, the communication state of the charge-discharge interface device is the level state of the communication sending port of the charge-discharge interface device;

[0110] The acquisition module is used to control the charge-discharge device to stop discharging and acquire the power supply voltage of the charge-discharge interface device when the level state of the communication sending port of the charge-discharge interface device is a low level state.

[0111] In an exemplary embodiment, the control module is used to control the charging and discharging device to enter a charging state when the power supply voltage of the charging and discharging interface device is non-zero; and to control the charging and discharging device to enter a shutdown state when the power supply voltage of the charging and discharging interface device is zero.

[0112] In an exemplary embodiment, the acquisition module is further used to control the charging and discharging device to stop discharging, and acquire the power supply voltage of the charging and discharging interface device after a preset time.

[0113] In an exemplary embodiment, the charge and discharge identification device further includes:

[0114] The maintaining module is used to control the charging and discharging device to maintain the discharging state when it is determined that the charging and discharging device and the power-consuming device are not disconnected according to the communication state of the charging and discharging interface device, and call the detection module to execute the step of continuously detecting the communication state of the charging and discharging interface device of the charging and discharging device.

[0115] Each module in the above-mentioned charge and discharge identification device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0116] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned charge and discharge identification method when executing the computer program.

[0117] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned charge and discharge identification method is implemented.

[0118] In one embodiment, a computer program product is provided, including a computer program, which implements the above-mentioned charge and discharge identification method when executed by a processor.

[0119] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0120] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0122] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A charge and discharge identification method, characterized in that: The method comprises: When the charging and discharging device is in a discharging state, continuously detecting the communication state of the charging and discharging interface device of the charging and discharging device; If it is determined according to the communication state of the charge-discharge interface device that the charge-discharge device is disconnected from the power-consuming device, the charge-discharge device is controlled to stop discharging and the power supply voltage of the charge-discharge interface device is obtained; The charging and discharging device is controlled to enter a charging state or a shutdown state based on the power supply voltage of the charging and discharging interface device.

2. The method according to claim 1, characterized in that The communication state of the charge-discharge interface device is the level state of the communication sending port of the charge-discharge interface device; Determining the disconnection between the charging and discharging device and the power-consuming device according to the communication state of the charging and discharging interface device includes: The level state of the communication sending port of the charging and discharging interface device is a low level state.

3. The method according to claim 1, characterized in that The controlling the charging and discharging device to enter a charging state or a shutdown state based on the power supply voltage of the charging and discharging interface device comprises: If the power supply voltage of the charging and discharging interface device is non-zero, controlling the charging and discharging device to enter a charging state; If the power supply voltage of the charging and discharging interface device is zero, the charging and discharging device is controlled to enter a shutdown state.

4. The method according to claim 1, characterized in that: Controlling the charging and discharging device to stop discharging and obtaining the power supply voltage of the charging and discharging interface device includes: The charging and discharging device is controlled to stop discharging, and the power supply voltage of the charging and discharging interface device is obtained after a preset time.

5. The method according to claim 1, characterized in that The method further comprises: If it is determined according to the communication status of the charge-discharge interface device that the charge-discharge device and the power-consuming device are not disconnected, the charge-discharge device is controlled to maintain the discharge state, and the process returns to the step of continuously detecting the communication status of the charge-discharge interface device of the charge-discharge device.

6. A charge and discharge interface device, characterized in that: The charging and discharging interface device includes a communication port, a power port and a pull-down circuit; The communication port is used to realize the communication connection between the charging and discharging device and the power-consuming device, and the communication port is also grounded through the pull-down circuit; The power port is used to enable the charging and discharging device to supply power to the power-consuming device, and is also used to enable the charging device to charge the charging and discharging device.

7. The charge and discharge interface device according to claim 6, characterized in that: The communication port includes a first communication port and a second communication port, and the first communication port or the second communication port is grounded through the pull-down circuit.

8. The charge and discharge interface device according to claim 7, characterized in that: The first communication port is a communication sending port, the second communication port is a communication receiving port, and the communication sending port is grounded through the pull-down circuit.

9. The charge and discharge interface device according to claim 8, characterized in that: The pull-down circuit includes a pull-down resistor, and the communication sending port is grounded through the pull-down resistor.

10. A charging and discharging device, characterized in that: The charging and discharging device includes a controller, a power supply, and a charging and discharging interface device as described in any one of claims 6 to 9, the controller is connected to the power supply, the controller and the power supply are connected to an electrical device through the charging and discharging interface device, and the charging device is connected to the power supply through the charging and discharging interface device.

11. The charging and discharging device according to claim 10, characterized in that: The charging and discharging device also includes a charging management chip, and the charging management chip connects the controller and the power supply.

12. A charging and discharging system, characterized in that: It comprises an electrical device, a charging device and a charging and discharging device as claimed in claim 10 or 11.