Interface separation detection method of connection equipment, connection equipment, system and medium

By setting short and long needles at the interface of the connecting device, a detection signal is generated in response to interface disengagement, simultaneous protection of devices connected to both ends of the equipment in the mobile energy storage field is achieved, and arc and electrical ablation caused by interface disengagement is solved. Problem, improving the safety and service life of the equipment.

CN119024232AInactive Publication Date: 2024-11-26ENERGYWAVE TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310612447.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the field of mobile energy storage, the interface may be accidentally disconnected during long-term use of the connected equipment, resulting in current interruption, arcing and electrical ablation, affecting the normal use and safety of the equipment. The existing technology cannot simultaneously perform interfaces on both ends of the connected equipment. Instant protection.

Method used

Design a connection device, wherein the two interfaces connect the host device and the slave device respectively, and set a first short pin and a second short pin at the interface to generate a host disengagement detection signal and a slave disengagement detection when the interface is disengaged. The signals, the host device and the slave device respectively trigger device protection operations in response to these signals, including cutting off current or switching the battery state to prevent arcing.

Benefits of technology

It realizes simultaneous protection of devices connected to both ends of the device when the interface is disconnected, reducing or closing the interface current, extending the interface life and improving the security of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024232A_ABST
    Figure CN119024232A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of interface detection, and provides an interface disconnection detection method of a connecting device, the connecting device, a system and a medium, a first interface of the connecting device is connected with a host device, and a second interface of the connecting device is connected with a slave device. Each of the first interface and the second interface is provided with a first short pin, a second short pin and at least one long pin, the first short pin is used for generating a host separation detection signal when the interface is separated, and the second short pin is used for generating a slave separation detection signal when the interface is separated; the interface disconnection detection method comprises the steps that under the condition that any interface of the connecting equipment is disconnected, the host equipment responds to a host disconnection detection signal to determine that the interface of the connecting equipment is disconnected so as to trigger equipment protection operation of the host equipment; and the slave equipment determines that the interface of the connecting equipment is separated in response to the slave separation detection signal so as to trigger equipment protection operation of the slave equipment. When the interface is separated, the equipment connected with the two ends of the connecting equipment can be protected at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of interface detection technology, and in particular, relates to a method for detecting interface detachment of a connection device, a connection device, a system and a medium. Background Art

[0002] Connectors are usually connected to different electronic components and circuit boards, for example, they can be used to connect power supplies and load devices to achieve signal transmission and power supply. However, during long-term use, the connector may accidentally detach from the interface, which may cause a sudden interruption of the current and generate an arc. High temperature and high pressure may be generated at the arc contact point, causing electrical erosion at the connector interface, affecting the normal use and safety of the device.

[0003] In the field of mobile energy storage, as the method of using external battery packs to expand the capacity of mobile portable energy storage has been widely adopted, connection devices have become indispensable as key components. Therefore, the risk of accidental interface detachment causing electrical erosion of the connection device and thus damaging the battery pack and energy storage device has become more significant. Summary of the invention

[0004] The embodiments of the present application provide a method for detecting interface detachment of a connection device, a connection device, a system and a medium, which can simultaneously protect devices connected to the interfaces at both ends of the connection device when interface detachment is detected.

[0005] In a first aspect, an embodiment of the present application provides an interface detachment detection method for a connection device, wherein a first interface of the connection device is connected to a host device, and a second interface of the connection device is connected to a slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, the first short pin is used to generate a host detachment detection signal when the interface is detached, and the second short pin is used to generate a slave detachment detection signal when the interface is detached, and the interface detachment detection method includes:

[0006] In the case where any interface of the connection device is disconnected, the host device determines, in response to the host disconnection detection signal, that the interface of the connection device is disconnected, so as to trigger a device protection operation of the host device;

[0007] The slave device determines that the interface of the connected device is disconnected in response to the slave disconnection detection signal, so as to trigger a device protection operation of the slave device.

[0008] Optionally, the situation where any interface of the connected device is disconnected includes:

[0009] The first short pin and the second short pin on the first interface are disconnected from the interface of the host device, and at least one long pin on the first interface is not disconnected from the interface of the host device; and / or

[0010] The first short pin and the second short pin on the second interface are disconnected from the interface of the slave device, and at least one long pin on the second interface is not disconnected from the interface of the slave device.

[0011] Optionally, the host separation detection signal is a first interface level signal at the connection between the host device and the first short pin; the slave separation detection signal is a second interface level signal at the connection between the slave device and the second short pin;

[0012] The host device determines, in response to the host detachment detection signal, that the interface of the connection device is detached, including:

[0013] In the case where any interface of the connection device is disconnected, the host device determines that the interface of the connection device is disconnected in response to the first interface level signal being a high level signal;

[0014] The slave device determines, in response to the slave detachment detection signal, that the interface of the connection device is detached, including:

[0015] In the case that any interface of the connecting device is disconnected, the slave device determines that the interface of the connecting device is disconnected in response to the second interface level signal being a high level signal.

[0016] Optionally, the slave device is in a discharging state, at least one long pin is a power pin, and disconnection of any interface of the connected device includes simultaneous disconnection of a first short pin and a second short pin of any interface;

[0017] Trigger device protection actions on the host device, including:

[0018] When the first short pin of any interface of the connection device is disconnected and the power pin is not disconnected, triggering the battery device in the host device to cut off the input current, so as to switch the battery device in the host device to a discharge state;

[0019] Triggering device protection operations of slave devices, including:

[0020] When the second short pin of any interface of the connecting device is disconnected and the power pin is not disconnected, the battery device in the slave device is triggered to cut off the output current, so as to switch the battery device in the slave device to a stop operation state.

[0021] Optionally, the slave device is in a charging state, at least one long pin is a power pin, and disconnection of any interface of the connected device includes simultaneous disconnection of a first short pin and a second short pin of any interface;

[0022] Trigger device protection actions on the host device, including:

[0023] When the first short pin of any interface of the connection device is disconnected and the power pin is not disconnected, triggering the battery device in the host device to cut off the output of the output current;

[0024] Triggering device protection operations of slave devices, including:

[0025] When the second short pin of any interface of the connected device is disconnected and the power pin is not disconnected, the battery device in the slave device is triggered to cut off the input current.

[0026] Optionally, temperature detection devices are respectively installed at interfaces of the host device and the slave device; and the interface separation detection method further includes:

[0027] The host device and the slave device respectively detect the first interface temperature and the second interface temperature of the connected device through the temperature detection device;

[0028] If it is detected that the first interface temperature and / or the second interface temperature is greater than the temperature threshold, the host device and the slave device are triggered to cut off the input or output of the current.

[0029] Optionally, the first short pin is also used to transmit a power supply signal when the connecting device and the host device are in a connected state.

[0030] In a second aspect, an embodiment of the present application provides a connection device, the connection device comprising at least a first interface and a second interface; the first interface is connected to a host device, and the second interface is connected to a slave device;

[0031] The first interface and the second short pin are both provided with a first short pin, a second short pin and at least one long pin;

[0032] The first short pin is used to generate a host detachment detection signal when the interface is detached, so that the host device triggers a device protection operation;

[0033] The second short pin is used to generate a slave detachment detection signal when the interface is detached, so that the slave device triggers a device protection operation.

[0034] In a third aspect, an embodiment of the present application provides an interface detachment detection system for a connection device, the interface detachment detection system comprising a connection device, a host device, and a slave device;

[0035] The first interface of the connecting device is connected to the host device, and the second interface of the connecting device is connected to the slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, the first short pin is used to generate a host separation detection signal when the interface is separated, and the second short pin is used to generate a slave separation detection signal when the interface is separated;

[0036] In the case where any interface of the connection device is disconnected, the host device determines, in response to the host disconnection detection signal, that the interface of the connection device is disconnected, so as to trigger a device protection operation of the host device;

[0037] The slave device determines that the interface of the connected device is disconnected in response to the slave disconnection detection signal, so as to trigger a device protection operation of the slave device.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the interface detachment detection method of the connection device of the first aspect mentioned above is implemented.

[0039] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the device in the first aspect executes the interface detachment detection method of the connection device in the first aspect.

[0040] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0041] In an embodiment of the present application, the two interfaces included in the connection device are respectively connected to the host device and the slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, wherein the first short pin is used to generate a host detachment detection signal when the interface is detached, and the second short pin is used to generate a slave detachment detection signal when the interface is detached. In the case where any interface of the connection device is disconnected, the host device responds to the main detachment detection signal to determine that the interface of the connection device is detached, thereby triggering the device protection operation of the host device. The slave device responds to the slave detachment detection signal to determine that the interface of the connection device is detached, thereby triggering the device protection operation of the slave device. In the above scheme, after determining that the interface of the connection device is detached, both the host device and the slave device can be triggered to perform the device protection operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1 It is a structural schematic diagram of an interface disconnection detection system for a connection device provided in an embodiment of the present application;

[0044] Figure 2 It is a flow chart of a method for detecting interface disconnection of a connection device provided in an embodiment of the present application;

[0045] Figure 3 It is a flowchart of another method for detecting interface disconnection of a connection device provided in an embodiment of the present application;

[0046] Figure 4 It is a structural diagram of a connection device interface provided in an embodiment of the present application;

[0047] Figure 5 It is a structural diagram of a host device or a slave device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0049] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0052] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0054] In the field of mobile energy storage, the method of expanding mobile portable capacity through external battery packs is widely adopted, so the use of connection devices such as high-power DC connectors has become indispensable. However, during the long-term use of the connection device, the interface may be accidentally disconnected, which will lead to a sudden interruption of the current and the generation of an arc. In addition, factors such as high temperature and high pressure will be generated at the arc contact point, causing electrical ablation of the connection device interface, affecting the normal use and safety of the device.

[0055] In the related art, single-ended interface disconnection detection is usually performed at the power supply end, i.e., the host end. When the interface disconnection is detected, the power supply is cut off at the power supply end to protect the host from damage. However, in the field of mobile energy storage, as an external battery pack interface, charging and discharging are bidirectional, that is, the interface of the external battery pack can be both a charging interface and a discharging interface. The above method cannot provide immediate protection for the host end and the external battery pack, resulting in one end being burned by a large current.

[0056] Based on the above problems, the present application provides a method for detecting interface detachment of a connection device, wherein the connection device includes two interfaces that are respectively connected to a host device and a slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, wherein the first short pin is used to generate a host detachment detection signal when the interface is detached, and the second short pin is used to generate a slave detachment detection signal when the interface is detached. In the case where any interface of the connection device is disconnected, the host device can determine that the interface of the connection device is detached in response to the main detachment detection signal, thereby triggering a device protection operation of the host device. The slave device can determine that the interface of the connection device is detached in response to the slave detachment detection signal, thereby triggering a device protection operation of the slave device. In the above scheme, after determining that the interface of the connection device is detached, both the host device and the slave device can be triggered to perform device protection operations.

[0057] It should be understood that the above-mentioned external expansion battery pack can be considered as a slave device to which the connection device is connected.

[0058] It should also be understood that the size of the serial numbers of the steps in this embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0059] In order to illustrate the technical solution of the present application, specific embodiments are provided below.

[0060] See also Figure 1 , shows a schematic diagram of the structure of a connection device interface disconnection detection system provided in an embodiment of the present application. Figure 1 As shown, the interface separation detection system of the connection device includes: a connection device, a host device and a slave device, wherein the first interface of the connection device is connected to the host device, and its connection structure is as shown in Figure 1 The first interface in the connection structure is connected to the host device; the second interface of the connection device is connected to the slave device, and its connection structure is as follows Figure 1 The connection structure between the second interface and the slave device.

[0061] In the interface detachment detection system, the connection device may include multiple interfaces, wherein the first interface may be connected to a host device, and the second interface may be connected to a slave device, wherein the slave device may refer to a power supply device that supplies power to the host device, such as a high-power DC power supply. In the field of mobile energy storage, the slave device may refer to an external battery pack, that is, a rechargeable battery assembly that can be connected to a device. It is typically used to provide additional power supply to the device to extend the use time of the device or provide backup power. The external battery pack typically has a higher capacity and output power, and can be connected to the host device through an interface to provide it with electrical energy. Since it is a battery pack, it can not only be discharged, but also can be charged using other power devices. The interface of the external battery pack can have both charging and discharging functions.

[0062] The host device may refer to any electronic device that requires power, such as a computer, a server switch, an industrial control device, etc., and this application does not limit this.

[0063] In the embodiments of the present application, if any interface of the connecting device is disconnected during actual application, it is easy to cause electrical burning of the connecting device, thereby damaging the connected host device and slave device. If the slave device is a high-power DC power supply with only a discharge function, then the disconnection of the interface of the connecting device will usually cause greater damage to the host device. If the slave device is an external battery pack or other battery pack with a charge and discharge function, then the disconnection of the interface of the connecting device will cause greater damage to both the host device and the slave device.

[0064] Therefore, in order to solve the problem in the prior art that the devices connected to the interfaces at both ends of the connecting device cannot be protected at the same time when the interface is detected to be detached, the interface of the connecting device provided in the present application is provided with a first short pin and a second short pin, wherein the first short pin is used to generate a host detachment detection signal when the interface is detached, that is, the host device can respond to the host detachment detection signal to determine that the interface of the connecting device is detached; the second short pin is used to generate a slave detachment detection signal when the interface is detached, that is, the slave device can respond to the slave detachment detection signal to determine that the interface of the connecting device is detached.

[0065] In an embodiment of the present application, when any interface of a connected device is disconnected, the first short pin and the second short pin can respectively generate a host disconnection detection signal and a slave disconnection detection signal at the same time, and the host device and the slave device can respectively respond to the corresponding detection signals to trigger their own device protection operations to perform device protection, thereby achieving simultaneous protection of the devices connected at both ends of the connected device when the interface is disconnected.

[0066] See also Figure 2 , shows a schematic flow chart of a method for detecting interface disconnection of a connection device provided in an embodiment of the present application, wherein the connection device is Figure 1 The host device is shown in the connected device Figure 1 The master device shown in the figure, the slave device is Figure 1 Specifically, the interface separation detection method may include the following steps:

[0067] Step 201 : When any interface of a connected device is disconnected, the host device determines that the interface of the connected device is disconnected in response to a host disconnection detection signal, so as to trigger a device protection operation of the host device.

[0068] Step 202: The slave device determines that the interface of the connected device is disconnected in response to the slave disconnection detection signal, so as to trigger a device protection operation of the slave device.

[0069] It should be understood that the order of execution of the above steps does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0070] In an embodiment of the present application, the connecting device may include multiple interfaces, wherein the first interface is connected to a host device, and the second interface is connected to a slave device, and both the first interface and the second interface are provided with a first short pin, a second short pin and at least one long pin, wherein the short pin and the long pin are relative.

[0071] Among them, short needles and long needles are essentially a type of probe, and the specific definitions of short needles and long needles may vary depending on the specific connection device type and application. It should be noted that probes can be used to contact specific locations of electronic devices, circuit boards or connection devices in order to obtain electrical signals, measure voltage, check circuit connectivity or perform other types of electronic tests. Probes usually have an elongated shape, and the ends may be sharp needle tips or flat heads. They can be used to measure points, test points or connection pins, and obtain relevant electrical signals or parameters by connecting to test instruments (such as multimeters, oscilloscopes).

[0072] In the embodiment of the present application, the first short pin can be used to generate a host detachment detection signal when the interface of the connection device is detached, and the host detachment detection signal is mainly applied to the host device, that is, in the interface of the connection device, the first short pin plays a role in detecting the connection signal of the host device. The second short pin can be used to generate a slave detachment detection signal when the interface of the connection device is detached, and the slave detachment detection signal is mainly applied to the slave device, that is, in the interface of the connection device, the second short pin plays a role in detecting the connection signal of the slave device.

[0073] Exemplarily, if the first interface connecting the connecting device to the host device is abnormally disconnected, the first short pin and the second short pin at the first interface will be disconnected first. When disconnected, the host device determines that the connecting device is disconnected by detecting the host disconnection detection signal, and the slave device determines that the connecting device is disconnected by detecting the slave disconnection detection signal, thereby achieving the purpose of both ends detecting that the interface is disconnected at the same time. Similarly, if the second interface connecting the connecting device to the slave device is abnormally disconnected, the first short pin and the second short pin at the second interface will be disconnected first. When disconnected, the host device determines that the connecting device is disconnected by detecting the host disconnection detection signal, and the slave device determines that the connecting device is disconnected by detecting the slave disconnection detection signal, thereby also achieving the purpose of both ends detecting that the interface is disconnected at the same time.

[0074] In an embodiment of the present application, if both ends can detect that the interface is disconnected at the same time, then the device protection operation can be started at the same time to achieve the purpose of reducing or shutting down the interface current.

[0075] It should be understood that at least one long pin is set at the interface in order to start the equipment protection operation when the short pin is disconnected first but the long pin has not yet been disconnected. When the long pin is disconnected, the interface current has been reduced or closed, which can protect the interface, extend the interface life, and achieve the purpose of electrical safety.

[0076] In an embodiment of the present application, the connection device may include multiple interfaces, and the first interface and the second interface are only examples. The present application does not limit the number of interfaces set on the connection device.

[0077] In an embodiment of the present application, the two interfaces included in the connection device are respectively connected to the host device and the slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, wherein the first short pin is used to generate a host detachment detection signal when the interface is detached, and the second short pin is used to generate a slave detachment detection signal when the interface is detached. In the case where any interface of the connection device is disconnected, the host device responds to the main detachment detection signal to determine that the interface of the connection device is detached, thereby triggering the device protection operation of the host device. The slave device responds to the slave detachment detection signal to determine that the interface of the connection device is detached, thereby triggering the device protection operation of the slave device. In the above scheme, after determining that the interface of the connection device is detached, both the host device and the slave device can be triggered to perform the device protection operation.

[0078] In a possible implementation, the situation where any interface of the connected device is disconnected includes:

[0079] The first short pin and the second short pin on the first interface are disconnected from the interface of the host device, and at least one long pin on the first interface is not disconnected from the interface of the host device; and / or

[0080] The first short pin and the second short pin on the second interface are disconnected from the interface of the slave device, and at least one long pin on the second interface is not disconnected from the interface of the slave device.

[0081] In an embodiment of the present application, in order to enable the host device and the slave device to start the device protection operation in advance, the situation where any interface of the connected device is disconnected includes the first short pin and the second short pin on the first interface being disconnected from the interface of the host device, and at least one long pin on the first interface being not disconnected from the interface of the host device; the first short pin and the second short pin on the second interface being disconnected from the interface of the slave device, and at least one long pin on the second interface being not disconnected from the interface of the slave device.

[0082] That is, the above situation may also refer to a situation where any interface of the connecting device is disconnected, and any interface of the connecting device is disconnected, and all probes in the interface may be disconnected at the same time.

[0083] Among them, if other interfaces in the connection device are also connected to other devices, then when the interface is disconnected, the other devices can also start the device protection operation to protect the device in response to the signal generated by the short pin.

[0084] In a possible implementation, the first short pin can be used as a signal pin to generate an interface disconnection detection signal, and can also reuse a power supply signal line, that is, the power supply signal pin is used as the first short pin, and the number of signal lines is reduced by pin multiplexing. That is, the first short pin is also used to transmit a power supply signal when the connection device and the host device are in a connected state.

[0085] In a possible implementation, the purpose of the device protection operations of the host device and the slave device is to reduce or shut down the interface current, but the corresponding operations are different.

[0086] When the slave device is in a discharging state, at least one long pin is a power pin, and any interface of the connected device is disconnected, including the first short pin and the second short pin of any interface being disconnected at the same time;

[0087] In the above step 201, triggering the device protection operation of the host device includes:

[0088] When the first short pin of any interface of the connection device is disconnected and the power pin is not disconnected, triggering the battery device in the host device to cut off the input current, so as to switch the battery device in the host device to a discharge state;

[0089] In an embodiment of the present application, when connected to a connection device, the power supply device used by the host device is an external power supply provided by the slave device. Then, when it is detected that the connection device interface is disconnected, the battery device in the host device will first cut off the input current, and the battery device in the host device will switch to a discharge state. That is, at this time, the power supply device used by the host device is its own battery device, and its own battery device switches from an unused state to a discharged state to power the host device.

[0090] In the above step 202, triggering the device protection operation of the slave device includes:

[0091] When the second short pin of any interface of the connecting device is disconnected and the power pin is not disconnected, the battery device in the slave device is triggered to cut off the output current, so as to switch the battery device in the slave device to a stop operation state.

[0092] In an embodiment of the present application, when connected to a connecting device, the operating state of the slave device is a discharging state, that is, it supplies power to the host device. Then, when it is detected that the connecting device interface is disconnected, the battery device in the slave device will first cut off the output current, and the battery device in the slave device will switch to a stop operating state, that is, the slave device stops working at this time, neither discharging nor charging.

[0093] In a possible implementation, when the slave device is in a charging state, at least one long pin is a power pin, and any interface of the connecting device is disconnected, including a first short pin and a second short pin of any interface being disconnected simultaneously;

[0094] In the above step 201, triggering the device protection operation of the host device includes:

[0095] When the first short pin of any interface of the connection device is disconnected and the power pin is not disconnected, triggering the battery device in the host device to cut off the output of the output current;

[0096] In an embodiment of the present application, if the slave device is in a charging state, then when it is connected to a connecting device, the battery device in the host device is in a discharging state. When it is detected that the connecting device interface is disconnected, the host device will first cut off the output current to shut down the output of the interface current to avoid the danger of electric arc.

[0097] In the above step 202, triggering the device protection operation of the slave device includes:

[0098] When the second short pin of any interface of the connected device is disconnected and the power pin is not disconnected, the battery device in the slave device is triggered to cut off the input current.

[0099] In an embodiment of the present application, if the slave device is in a charging state, then when connected to a connecting device, the battery device in the slave device is in a charging state. If it is detected that the connecting device interface is disconnected, the slave device will cut off the input current to shut down the receiving current to avoid the danger of electric arc.

[0100] It should be understood that the above device protection operations can be performed by processors in the host device and the slave device issuing responsive instructions.

[0101] It should also be understood that the above-mentioned equipment protection operation can cut off the current before causing danger to avoid irreversible danger, but if the equipment protection operation cannot be performed, the following remedial measures can also be used to extend the service life of the interface.

[0102] In a possible implementation, temperature detection devices are respectively installed at interfaces of the host device and the slave device; and the interface separation detection method further includes:

[0103] The host device and the slave device respectively detect the first interface temperature and the second interface temperature of the connected device through the temperature detection device;

[0104] If it is detected that the first interface temperature and / or the second interface temperature is greater than the temperature threshold, the host device and the slave device are triggered to cut off the input or output of the current.

[0105] In an embodiment of the present application, if the input or output of the current cannot be cut off according to the host detachment detection signal and the slave detachment detection signal, the device protection operation can be performed by detecting the temperature at the interface. That is, when the interface is accidentally detached, an electric arc is likely to be generated, which in turn causes the interface temperature at the interface to rise sharply, causing danger. Therefore, the host device and the slave device can respectively detect the first interface temperature and the second interface temperature of the connected device. When the first interface temperature and / or the second interface temperature is detected to be greater than the temperature threshold, it indicates that an accident has occurred at the interface. At this time, the host device and the slave device can be triggered to perform corresponding device protection operations, that is, to cut off the input or output of the current.

[0106] See also Figure 3 , shows a flow chart of another interface disconnection detection method for connecting devices provided by an embodiment of the present application, wherein the host disconnection detection signal in the embodiment of the present application is a first interface level signal at the connection between the host device and the first short pin; the slave disconnection detection signal is a second interface level signal at the connection between the slave device and the second short pin. Specifically, the interface disconnection detection method may include the following steps:

[0107] Step 301: When any interface of a connection device is disconnected, the host device determines that the interface of the connection device is disconnected in response to the first interface level signal being a high level signal.

[0108] In the embodiment of the present application, the host disconnection detection signal can be a first interface level signal at the connection pin between the host device and the first short pin, that is, in the case of normal connection, the first interface level signal is a low level signal, and when the connection device is disconnected, the first interface level signal at the first short pin connection pin will become a high level signal. This is because under normal circumstances, the first short pin of the connection device is connected to the circuit of the host device, forming a closed circuit, and the signal can flow, and when the interface of the connection device is disconnected, the closed circuit is disconnected, and the disconnected pin is not driven by the signal source, and will drift to a high level state. Therefore, the host device can determine that the interface of the connection device is disconnected in response to the first interface level signal being a high level signal, and can trigger the device protection operation.

[0109] Step 302: When any interface of the connecting device is disconnected, the slave device determines that the interface of the connecting device is disconnected in response to the second interface level signal being a high level signal.

[0110] In an embodiment of the present application, the slave detachment detection signal can be a second interface level signal at the connection pin between the slave device and the second short pin, that is, in the case of normal connection, the second interface level signal is a low level signal, and when the connection device is disconnected, the second interface level signal at the second short pin connection pin will become a high level signal. This is because under normal circumstances, the second short pin of the connection device is connected to the circuit of the slave device, forming a closed circuit, and the signal can flow, and when the interface of the connection device is detached, the closed circuit is disconnected, and the disconnected pin is not driven by the signal source, and will drift to a high level state. Therefore, the slave device can determine that the interface of the connection device is detached in response to the second interface level signal being a high level signal, and can trigger the device protection operation.

[0111] In the embodiment of the present application, whether the interface is detached can be determined by detecting a specific host detachment detection signal and a slave detachment detection signal.

[0112] See also Figure 4 , shows a schematic diagram of the structure of a connection device provided in an embodiment of the present application, wherein the connection device includes at least a first interface and a second interface 40, the first interface is connected to a host device, and the second interface 40 is connected to a slave device;

[0113] The first interface and the second interface 40 are both provided with a first short pin 401, a second short pin 402 and at least one long pin 403;

[0114] The first short pin 401 is used to generate a host detachment detection signal when the interface is detached, so that the host device triggers a device protection operation;

[0115] The second short pin 402 is used to generate a slave detachment detection signal when the interface is detached, so that the slave device triggers a device protection operation.

[0116] In the embodiment of the present application, at least one long pin may include a power supply VCC pin, a ground GND pin, a communication data transmission pin, an identity information transmission pin, etc. The communication data transmission pin is used to transmit communication data through a signal line connected to the pin, such as through a CAN bus, and the communication data transmission pin may include CAN_H and CAN_L, and the identity information transmission pin may be used to transmit an identity ID.

[0117] It should be understood that CAN_L refers to the low voltage in the dominant state, and the data signal transmission speed is generally 250K / S. CAN_H refers to the high voltage of the network cable in the dominant state, and the data signal generally refers to 500K / S.

[0118] See also Figure 5 , shows a schematic diagram of the structure of a host device or a slave device provided in an embodiment of the present application. Figure 5As shown, the host device or slave device 500 of this embodiment includes: at least one processor 510 ( Figure 5 Only one is shown in the figure) a processor, a memory 520, and a computer program 521 stored in the memory 520 and executable on at least one processor 510, and when the processor 510 executes the computer program 521, the steps in the embodiment of the method for detecting interface detachment of the above-mentioned connection device are implemented.

[0119] The host device or the slave device 500 may be an electronic device including a corresponding functional chip. The host device or the slave device may include, but is not limited to, a processor 510 and a memory 520. Those skilled in the art will appreciate that Figure 5 It is merely an example of a host device or a slave device 500 and does not constitute a limitation on the host device or the slave device 500. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0120] The processor 510 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0121] In some embodiments, the memory 520 may be an internal storage unit of the host device or the slave device 500, such as a hard disk or memory of the host device or the slave device 500. In other embodiments, the memory 520 may also be an external storage device of the host device or the slave device 500, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the host device or the slave device 500. Further, the memory 520 may also include both the internal storage unit of the host device or the slave device 500 and the external storage device. The memory 520 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory 520 may also be used to temporarily store data that has been output or is to be output.

[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0127] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0128] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0129] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing.

[0130] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method for detecting interface disconnection of a connection device, characterized in that: The first interface of the connecting device is connected to the host device, the second interface of the connecting device is connected to the slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, the first short pin is used to generate a host detachment detection signal when the interface is detached, and the second short pin is used to generate a slave detachment detection signal when the interface is detached, and the interface detachment detection method includes: In the case where any interface of the connection device is disconnected, the host device determines, in response to the host disconnection detection signal, that the interface of the connection device is disconnected, so as to trigger a device protection operation of the host device; The slave device determines, in response to the slave detachment detection signal, that the interface of the connection device is detached, so as to trigger a device protection operation of the slave device.

2. The interface detachment detection method according to claim 1, characterized in that: The situation where any interface of the connection device is disconnected includes: The first short pin and the second short pin on the first interface are disconnected from the interface of the host device, and at least one long pin on the first interface is not disconnected from the interface of the host device; and / or The first short pin and the second short pin on the second interface are disconnected from the interface of the slave device, and at least one long pin on the second interface is not disconnected from the interface of the slave device.

3. The interface detachment detection method according to claim 2, characterized in that: The host separation detection signal is a first interface level signal at the connection between the host device and the first short pin; the slave separation detection signal is a second interface level signal at the connection between the slave device and the second short pin; The host device determines, in response to the host detachment detection signal, that the interface of the connection device is detached, including: In the case where any interface of the connection device is disconnected, the host device determines that the interface of the connection device is disconnected in response to the first interface level signal being a high level signal; The slave device determines, in response to the slave detachment detection signal, that the interface of the connection device is detached, including: In the case that any interface of the connecting device is disconnected, the slave device determines that the interface of the connecting device is disconnected in response to the second interface level signal being a high level signal.

4. The interface detachment detection method according to claim 1, characterized in that: The slave device is in a discharging state, the at least one long pin is a power pin, and the disconnection of any interface of the connecting device includes the simultaneous disconnection of the first short pin and the second short pin of any interface; The triggering of the device protection operation of the host device includes: When the first short pin of any interface of the connection device is disconnected and the power pin is not disconnected, triggering the battery device in the host device to cut off the input current, so as to switch the battery device in the host device to a discharge state; The triggering of the device protection operation of the slave device includes: When the second short pin of any interface of the connecting device is disconnected and the power pin is not disconnected, the battery device in the slave device is triggered to cut off the output current to switch the battery device in the slave device to a stop running state.

5. The interface detachment detection method according to claim 1, characterized in that: The slave device is in a charging state, the at least one long pin is a power pin, and the disconnection of any interface of the connecting device includes the simultaneous disconnection of the first short pin and the second short pin of any interface; The triggering of the device protection operation of the host device includes: When the first short pin of any interface of the connection device is disconnected and the power pin is not disconnected, triggering the battery device in the host device to cut off the output of the output current; The triggering of the device protection operation of the slave device includes: When the second short pin of any interface of the connection device is disconnected and the power pin is not disconnected, the battery device in the slave device is triggered to cut off the input current.

6. The interface detachment detection method according to claim 1, characterized in that: Temperature detection devices are respectively installed at the interfaces of the host device and the slave device; The interface detachment detection method further comprises: The host device and the slave device respectively detect the first interface temperature and the second interface temperature of the connection device through the temperature detection device; If it is detected that the first interface temperature and / or the second interface temperature is greater than a temperature threshold, the host device and the slave device are triggered to cut off the input or output of current.

7. The interface detachment detection method according to claim 1, characterized in that: The first short pin is also used to transmit a power supply signal when the connecting device and the host device are in a connected state.

8. A connection device, characterized in that: The connection device at least includes a first interface and a second interface; the first interface is connected to a host device, and the second interface is connected to a slave device; The first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin; The first short pin is used to generate a host detachment detection signal when the interface is detached, so that the host device triggers a device protection operation; The second short pin is used to generate a slave detachment detection signal when the interface is detached, so that the slave device triggers a device protection operation.

9. A connection device interface disconnection detection system, characterized in that: The interface detachment detection system comprises a connection device, a host device and a slave device; The first interface of the connecting device is connected to a host device, and the second interface of the connecting device is connected to a slave device, and the first interface and the second interface are both provided with a first short pin, a second short pin and at least one long pin, the first short pin is used to generate a host detachment detection signal when the interface is detached, and the second short pin is used to generate a slave detachment detection signal when the interface is detached; In the case where any interface of the connection device is disconnected, the host device determines, in response to the host disconnection detection signal, that the interface of the connection device is disconnected, so as to trigger a device protection operation of the host device; The slave device determines, in response to the slave detachment detection signal, that the interface of the connection device is detached, so as to trigger a device protection operation of the slave device.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.