Equipment state detection method and device, storage medium and electronic equipment

By acquiring and analyzing the output level signal of the charging device and adjusting the output voltage to detect the positive and reverse connection state between the electrical equipment and the charging device, the problem of high detection costs in the prior art is solved, and a safe and economical charging effect is achieved.

CN119758180AActive Publication Date: 2025-04-04ZHEJIANG HUAFEI INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202510261693.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-04-04
Estimated Expiration
2045-03-06

AI Technical Summary

Technical Problem

In the prior art, the forward and reverse connection detection between the electrical equipment and the charging equipment requires the addition of additional power components at the end of the electrical equipment, resulting in high detection costs.

Method used

By acquiring the main control output level signal of the charging device, including the positive level signal and the negative level signal, the output voltage of the charging device is adjusted to determine whether the devices are in a reverse connection state, and an alarm message is issued when a reverse connection is detected and the output voltage is disabled.

Benefits of technology

It has achieved simplification of the charging system structure, reduced detection costs, ensured charging safety, reduced equipment costs and improved charging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119758180A_ABST
    Figure CN119758180A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment state detection method and device, a storage medium and electronic equipment. The method comprises the following steps: under the condition that a positive electrode level signal and a negative electrode level signal are both high level signals, adjusting the output voltage of the charging equipment to be a preset detection voltage so as to determine whether the charging equipment and the electrical equipment are in a reverse connection state or not; under the condition that the positive electrode level signal and the negative electrode level signal are different, whether the charging equipment and the electrical equipment are in a reverse connection state or not is determined according to the level combination value of the master control output level signal; and under the condition that the charging equipment and the electrical equipment are in the reverse connection state, controlling the charging equipment to send out a target alarm message, and forbidding the charging equipment to output voltage. According to the invention, the technical problem of high detection cost caused by the need of adding an additional power part at the electrical equipment end in the positive and negative connection detection between the electrical equipment and the charging equipment in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular, to a method and apparatus for detecting a device status, a storage medium, and an electronic device. Background Art

[0002] In the related art, the forward and reverse connection detection between the electrical device and the charging device usually relies on integrating additional power components, such as rectifier diodes or MOS tubes, on the electrical device end to achieve the anti-reverse connection function. In other words, the prior art relies on power components for forward and reverse connection detection, which requires additional equipment materials, resulting in a high cost technical problem for the forward and reverse connection detection between the electrical device and the charging device.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a method and apparatus for detecting the status of an equipment, a storage medium, and an electronic device, so as to at least solve the technical problem in the related art that the forward and reverse connection detection between the electrical equipment and the charging equipment requires the addition of additional power components at the electrical equipment end, resulting in high detection costs.

[0005] According to one aspect of an embodiment of the present application, a method for detecting a device state is provided, comprising: in response to a charging device and an electrical device establishing a connection, obtaining a master control output level signal of the charging device, wherein the master control output level signal comprises a positive level signal and a negative level signal; when both the positive level signal and the negative level signal are high level signals, adjusting the output voltage of the charging device to a preset detection voltage to determine whether the charging device and the electrical device are in a reverse connection state; when the positive level signal and the negative level signal are different, determining whether the charging device and the electrical device are in the reverse connection state according to a level combination value of the master control output level signal, wherein the level combination value indicates that the value of the positive level signal is a first value, and the value of the negative level signal is a second value, and the first value and the second value are different; when the charging device and the electrical device are in the reverse connection state, controlling the charging device to issue a target alarm message and prohibiting the charging device from outputting a voltage, wherein the target alarm message is used to indicate that the electrical device cannot be charged normally.

[0006] According to another aspect of the embodiment of the present application, a device status detection apparatus is also provided, including: an acquisition module, for acquiring a main control output level signal of the charging device in response to a charging device and an electrical device establishing a connection, wherein the main control output level signal includes a positive level signal and a negative level signal; a first determination module, for adjusting the output voltage of the charging device to a preset detection voltage when both the positive level signal and the negative level signal are high level signals, so as to determine whether the charging device and the electrical device are in a reverse connection state; a second determination module, for determining whether the positive level signal and the negative level signal are in a reverse connection state when both the positive level signal and the negative level signal are high level signals; When the polar level signals are different, whether the charging device and the electrical device are in the reverse connection state is determined according to the level combination value of the main control output level signal, wherein the level combination value indicates that the value of the positive polarity level signal is a first value, and the value of the negative polarity level signal is a second value, and the first value is different from the second value; a processing module is used to control the charging device to issue a target alarm message and prohibit the charging device from outputting a voltage when the charging device and the electrical device are in the reverse connection state, wherein the target alarm message is used to indicate that the electrical device cannot be charged normally.

[0007] Optionally, the device is used to determine whether the charging device and the electrical device are in the reverse connection state according to the level combination value of the main control output level signal when the positive level signal and the negative level signal are different in the following manner: when the positive level signal is a low level signal and the negative level signal is a high level signal, the output voltage of the charging device is adjusted to a charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device, and the first value is 0 and the second value is 1; when the positive level signal is the high level signal and the negative level signal is the low level signal, it is determined that the charging device and the electrical device are in the reverse connection state, wherein the first value is 1 and the second value is 0.

[0008] Optionally, the device is used to adjust the output voltage of the charging device to a preset detection voltage when the positive level signal and the negative level signal are both high level signals, so as to determine whether the charging device and the electrical device are in a reverse connection state in the following manner: when the positive level signal and the negative level signal are both high level signals, adjust the output voltage of the charging device to a preset detection voltage, and reacquire the main control output level signal; obtain an updated positive level signal and an updated negative level signal in the main control output level signal; when the updated positive level signal is a low level signal and the updated negative level signal is a high level signal, adjust the output voltage of the charging device to a charging voltage, wherein the charging voltage represents the voltage required during the normal charging process of the electrical device; when the updated positive level signal and the updated negative level signal are both high level signals, determine that the charging device and the electrical device are in the reverse connection state.

[0009] Optionally, the device is also used to: when the positive level signal and the negative level signal are both the high level signals, control the signal metal oxide semiconductor field effect transistor in the charging device to receive a target control signal with a value of 1, so that the power metal oxide semiconductor field effect transistor on the first branch stops working, wherein the first branch is the main branch for the charging device to output the charging voltage; control the charging device to output the detection voltage through the second branch, and determine the updated main control output level signal, wherein the power metal oxide semiconductor field effect transistor is not deployed in the second branch, and the first branch and the second branch work alternately.

[0010] Optionally, the device is also used to: when the updated positive level signal is the low level signal and the updated negative level signal is the high level signal, control the signal metal oxide semiconductor field effect transistor to receive the target control signal with a value of 0, so that the power metal oxide semiconductor field effect transistor starts working; control the charging device to output a charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device.

[0011] Optionally, the device is also used to: when the charging device and the electrical device are in the reverse connection state, determine the positive electrode level signal and the negative electrode level signal through a first optocoupler branch, wherein the charging device includes the first optocoupler branch, and the first optocoupler branch is deployed with a first optocoupler device; when the charging device and the electrical device are not in the reverse connection state, determine the negative electrode level signal through the first optocoupler branch, and determine the positive electrode level signal through a second optocoupler branch, wherein the charging device includes the second optocoupler branch, the second optocoupler branch is deployed with a second optocoupler device, and the first optocoupler device and the second optocoupler device are different.

[0012] Optionally, the device is also used for: when the charging device and the electrical device are in the reverse connection state, the current loop between the electrical device and the charging device is a clamped freewheeling loop, wherein the clamped freewheeling loop includes a diode inside the electrical device, but does not include an energy storage unit inside the electrical device; when the charging device and the electrical device are not in the reverse connection state, the current loop is a power supply loop, wherein the power supply loop includes the energy storage unit, but does not include the diode.

[0013] Optionally, the device is also used to: when the electrical device cannot obtain the charging voltage from the charging device, obtain the main control output level signal, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device; when the positive level signal in the main control output level signal is the high level signal and the negative level signal is the low level signal, control the charging device to issue an application alarm message and prohibit the charging device from outputting voltage, wherein the application alarm message indicates that the charging bus between the charging device and the electrical device is connected reversely.

[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned device status detection method when running.

[0015] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above device status detection method.

[0016] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the device status detection method through the computer program.

[0017] In an embodiment of the present application, in response to the charging device and the electrical device establishing a connection, the main control output level signal of the charging device is automatically obtained, including the positive level signal and the negative level signal. In the abnormal case where both the positive level signal and the negative level signal are high-level signals, the output voltage of the charging device is automatically adjusted to a preset lower detection voltage (such as 30V), so as to safely detect the connection status of the battery interface of the electrical device and avoid outputting high voltage in an uncertain connection state to cause damage to the device. When the values ​​of the positive level signal and the negative level signal are different, that is, the level combination value is a high level and a low level, it is possible to directly judge whether the charging device and the electrical device are in a correct connection state based on this level combination.

[0018] In general, the purpose of simplifying the charging system structure and reducing detection costs is achieved through the intelligent judgment and control of the charging device itself, rather than relying on additional power components added to the electrical equipment end, thereby achieving the technical effect of reducing equipment costs and improving charging efficiency while ensuring charging safety. This solves the technical problem in related technologies that the positive and reverse connection detection between electrical equipment and charging equipment requires the addition of additional power components on the electrical equipment end, resulting in high detection costs, and significantly improves its charging safety and economy. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 is a schematic diagram of an application environment of an optional device status detection method according to an embodiment of the present application;

[0021] Figure 2 is a flow chart of an optional device status detection method according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of an optional device status detection method according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0024] Figure 5is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0026] Figure 7 is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0027] Figure 8 is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0028] Fig. 9 is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0029] Fig.10 is a schematic diagram of another optional device status detection method according to an embodiment of the present application;

[0030] Fig.11 is a schematic structural diagram of an optional device status detection apparatus according to an embodiment of the present application;

[0031] Fig.12 is a schematic structural diagram of an optional device status detection product according to an embodiment of the present application;

[0032] Fig.13 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] The present application is described below in conjunction with embodiments:

[0036] According to one aspect of an embodiment of the present application, a method for detecting a device state is provided. Optionally, in this embodiment, the method for detecting a device state can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1 As shown, the server 101 is connected to the terminal device 103 via a network, and can be used to provide services for the terminal device or an application 107 installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The terminal device 103 may be a terminal configured with an application, and may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (Virtual Reality, VR for short) terminal, an augmented reality (Augmented Reality, AR for short) terminal, a mixed reality (Mixed Reality, MR for short) terminal and other computer devices. The above-mentioned server may be a single server, or a server cluster consisting of multiple servers, or a cloud server.

[0037] Combination Figure 1As shown, the above-mentioned device status detection method can be executed by an electronic device, which can be a terminal device or a server. The above-mentioned device status detection method can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.

[0038] The above is only an example and is not specifically limited in this embodiment.

[0039] Optionally, as an optional implementation, as Figure 2 As shown, the above device status detection method includes:

[0040] S202, in response to the charging device and the electrical device establishing a connection, obtaining a main control output level signal of the charging device, wherein the main control output level signal includes a positive level signal and a negative level signal;

[0041] Optionally, in the embodiment of the present application, the positive electrode level signal and the negative electrode level signal refer to the level state of the positive and negative electrodes of the charging device detected by the electrical device when the charging device is connected to the electrical device, and can be represented by different level values, for example, a high level represents 1 or existence, and a low level represents 0 or non-existence. Including but not limited to using 3.3V to represent a high level, 0V to represent a low level, or other voltage values ​​to distinguish the two states.

[0042] It should be noted that there are many ways to obtain the master output level signal of the above charging device, such as through a dedicated detection pin or directly monitoring the level state of the charging interface. At the same time, the logic state (such as 1 or 0) represented by the high and low levels of the positive and negative level signals can also be determined according to the specific design, and this application does not limit this.

[0043] S204, when both the positive level signal and the negative level signal are high level signals, adjusting the output voltage of the charging device to a preset detection voltage to determine whether the charging device and the electrical device are in a reverse connection state;

[0044] Optionally, in an embodiment of the present application, the situation where both the positive level signal and the negative level signal are high level signals refers to a special state in which, when the charging device is connected to the electrical device, the electrical device detects that there are high level signals on the positive and negative interfaces of the charging device at the same time, that is, the battery management system (BMS) of the electrical device is in a closed or non-responsive state.

[0045] It should be noted that in practical applications, there are many options for the specific voltage value of the high-level signal, such as the common 5V, 3.3V, etc., all of which are intended to determine the connection status of the charging interface by identifying the level. The pre-set detection voltage can be adjusted according to the specific needs of the electrical device and the capabilities of the charging device, including but not limited to 30V, 12V, etc., mainly used to safely detect whether the interface between the electrical device and the charging device is reversely connected in an uncertain connection state, to avoid damage to the device due to direct high voltage input caused by misoperation, and this application does not limit this.

[0046] S206, when the positive level signal and the negative level signal are different, determining whether the charging device and the electrical device are in a reverse connection state according to a level combination value of the master control output level signal, wherein the level combination value indicates that the value of the positive level signal is a first value, and the value of the negative level signal is a second value, and the first value and the second value are different;

[0047] Optionally, in the embodiment of the present application, the above-mentioned case where the positive level signal and the negative level signal are different refers to the situation where the positive and negative level signals detected by the electrical device are inconsistent when the charging device and the electrical device establish a connection. The level combination value of the master control output level signal, that is, the combination of the first value of the positive level signal and the second value of the negative level signal, is used to determine whether the charging device and the electrical device are correctly connected, including but not limited to high and low level combinations (such as 1 / 0 or 0 / 1).

[0048] It should be noted that the specific level states of the first value and the second value can be diversified, and the logic of level detection can also be adjusted according to actual needs. For example, the positive level signal can be set to be the first value when it is at a high level, and the negative level signal can be set to be the second value when it is at a low level, and vice versa. The implementation of this application is not limited to a specific level value or logic combination, but is more focused on quickly and accurately determining whether the charging interface is reversely connected through the difference in level signals, so as to take timely measures before charging to avoid potential damage. This application does not limit this.

[0049] S208, when the charging device and the electrical device are in a reverse connection state, control the charging device to send a target alarm message and prohibit the charging device from outputting a voltage, wherein the target alarm message is used to indicate that the electrical device cannot be charged normally.

[0050] Optionally, in an embodiment of the present application, when the charging device and the electrical device are in a reverse connection state, it means that the electrical device detects that the connection between the positive and negative interfaces of the charging device and its own interface is incorrect, that is, the positive and negative interfaces are connected in reverse. The above-mentioned target alarm message includes but is not limited to intuitive warning methods such as sound alarm, LED flashing, and display prompts. At the same time, when the reverse connection state is detected, the charging device will immediately cut off the output to prevent the wrong voltage from being input into the electrical device, thereby avoiding damage to the equipment.

[0051] It should be noted that the specific form of the above-mentioned target alarm message can be designed according to different application scenarios and device characteristics. For example, for automatic charging devices such as drones or robots, remote alarms can be issued through wireless signals or specific flashing patterns of LED lights, while for desktop or car chargers, users may be directly notified through sound signals or error messages on the display. In addition, the control mechanism for cutting off the output voltage can also be diversified, including but not limited to directly controlling the switch of the charging output circuit through the main controller, or through the control of power components such as power MOS tubes. The implementation of this application is not limited to a specific alarm method or voltage output control mechanism, but is more concerned with being able to promptly and effectively prevent voltage output and issue a warning when a reverse connection state is detected to ensure charging safety. This application does not limit this.

[0052] In an exemplary embodiment, Figure 3 is a schematic diagram of an optional device status detection method according to an embodiment of the present application. The circuit connection diagram between the charging device and the electrical device can be as follows: Figure 3 As shown, further, MCU_BAT_DET+ is used to represent a positive level signal, and MCU_BAT_DET- is used to represent a negative level signal. The detection process includes but is not limited to:

[0053] S1, connect the charging device and the electrical device;

[0054] S2, determine whether the electrical device is powered on through MCU_BAT_DET+ and MCU_BAT_DET- of the charging device (when MCU_BAT_DET+ / - is 1 / 0 or 0 / 1, it is determined that the electrical device is powered on, and when MCU_BAT_DET+ / - is 1 / 1, it is determined that the electrical device is not powered on);

[0055] S3-a, when the electrical device is powered on, determine whether the electrical device and the charging device are in reverse connection according to the specific values ​​of MCU_BAT_DET+ and MCU_BAT_DET-, specifically:

[0056] S3-a-1, MCU_BAT_DET+ is high level 1, MCU_BAT_DET- is low level 0, the electrical device and the charging device are in reverse connection, the charging device emits an alarm tone, the current flows from BAT_DET+ through the first optocoupler device U118, MCU_BAT_DET+ is 1, and MCU_BAT_DET- is 0;

[0057] S3-a-2, MCU_BAT_DET+ is 0, MCU_BAT_DET- is 1, the electrical device and the charging device are in non-reverse connection state, the charging device is controlled to supply power to the electrical device, BAT_DET+ passes through the second optocoupler device U117, MCU_BAT_DET+ is 0, MCU_BAT_DET- is 1;

[0058] S4, when the electrical device is not powered on, the target control signal MCU_CHARG_CTR is controlled to output 1, so that the power metal oxide semiconductor field effect transistor MOS26 of the charging device is turned off, and a 30V voltage (the above detection voltage) is output, and the current MCU_BAT_DET+ and MCU_BAT_DET- are obtained again to determine whether the electrical device and the charging device are in a reverse connection state. Specifically:

[0059] S4-b-1, when the output level values ​​of MCU_BAT_DET+ and MCU_BAT_DET- are both high level 1, the electrical device and the charging device are in reverse connection state, the charging device emits an alarm prompt sound, and the current flows from the signal metal oxide semiconductor field effect transistor MOS28 to R17, and then flows to BAT+, PAC+, and D19 diodes, and does not pass through the power storage unit inside the electrical device, and then passes through PAC- and BAT-. At this time, BAT_DET+ / BAT_DET- has no current input, and MCU_BAT_DET+ and MCU_BAT_DET- are 1 and 1 respectively;

[0060] S4-b-2, when MCU_BAT_DET+ and MCU_BAT_DET- are 0 and 1 respectively, the electrical device and the charging device are in non-reverse connection state, the charging device is controlled to power the electrical device, the current flows from BAT+ to PAC+, passes through the battery inside the charging device, flows to PAC-, and then flows from PAC- to BAT-, BAT_DET+ passes through U117 to reach MCU_BAT_DET+ is 0, MCU_BAT_DET- is 1.

[0061] S5: If it is found that the electrical device cannot be charged during actual application, MCU_BAT_DET+ and MCU_BAT_DET- are detected. If MCU_BAT_DET+ is 1 and MCU_BAT_DET- is 0, it means that the charging device recognizes that the electrical device is connected incorrectly and further troubleshooting is required.

[0062] Through the embodiment of the present application, in response to the charging device and the electrical device establishing a connection, the main control output level signal of the charging device is automatically obtained, including the positive level signal and the negative level signal. In the abnormal case where the positive level signal and the negative level signal are both high-level signals, the output voltage of the charging device is automatically adjusted to a preset lower detection voltage (such as 30V), so as to safely detect the connection status of the battery interface of the electrical device and avoid outputting high voltage in an uncertain connection state to cause damage to the device. When the values ​​of the positive level signal and the negative level signal are different, that is, the level combination value is a high level and a low level, it is possible to directly judge whether the charging device and the electrical device are in a correct connection state based on this level combination.

[0063] In general, the purpose of simplifying the charging system structure and reducing detection costs is achieved through the intelligent judgment and control of the charging device itself, rather than relying on additional power components added to the electrical equipment end, thereby achieving the technical effect of reducing equipment costs and improving charging efficiency while ensuring charging safety. This solves the technical problem in related technologies that the positive and reverse connection detection between electrical equipment and charging equipment requires the addition of additional power components on the electrical equipment end, resulting in high detection costs, and significantly improves its charging safety and economy.

[0064] As an optional scheme, when the positive level signal and the negative level signal are different, determining whether the charging device and the electrical device are in the reverse connection state according to the level combination value of the main control output level signal includes: when the positive level signal is a low level signal and the negative level signal is a high level signal, adjusting the output voltage of the charging device to a charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device, the first value is 0, and the second value is 1; when the positive level signal is the high level signal and the negative level signal is the low level signal, determining that the charging device and the electrical device are in the reverse connection state, wherein the first value is 1, and the second value is 0.

[0065] Optionally, in the embodiment of the present application, when the positive level signal and the negative level signal are different, it refers to the state in which the positive and negative level signals detected are inconsistent when the charging device and the electrical device establish a connection. Determining the reverse connection state between the charging device and the electrical device according to the level combination value of the main control output level signal involves judging whether the connection is reversed or vice versa (the first value is 1 and the second value is 0) based on the first value (0) of the positive level signal and the second value (1) of the negative level signal, including but not limited to using the level combination of 0 / 1 to intelligently judge the connection mode of the charging interface.

[0066] It should be noted that in actual applications, the specific voltage values ​​of low-level signals and high-level signals can be diversified, and the setting of the charging voltage will also vary according to different electrical equipment and charging requirements, including but not limited to 12V, 24V, 48V, etc. This application does not limit this.

[0067] In an exemplary embodiment, assuming a charging process of a drone, when the drone is connected to a charging device, the charging device detects that the positive level signal of the electrical device is low level (0) and the negative level signal is high level (1), then the main controller determines that the interface connection is correct based on the value of this level combination, and then adjusts the output voltage of the charging device to the charging voltage required by the drone, such as 48V, to allow normal charging. On the contrary, if the positive level signal is detected to be high level (1) and the negative level signal is low level (0), it is determined that the interface is reversely connected, and the charging device will immediately cut off the output and send a target alarm message to remind the user or system that the interface is reversely connected to avoid possible damage caused by subsequent charging operations.

[0068] Through the embodiment of the present application, an intelligent level detection and response mechanism is adopted to achieve the technical effect of accurately judging the positive and negative of the interface when establishing a connection between the electrical device and the charging device, achieving the purpose of improving charging efficiency and user experience while ensuring charging safety. It avoids the complexity and high cost of additional power components required in traditional solutions, making reverse connection detection simpler and more reliable, and is suitable for various automatic charging scenarios, such as fast and safe charging of drones, robots, etc.

[0069] As an optional scheme, when the positive level signal and the negative level signal are both high level signals, the output voltage of the charging device is adjusted to a preset detection voltage to determine whether the charging device and the electrical device are in a reverse connection state, including: when the positive level signal and the negative level signal are both high level signals, the output voltage of the charging device is adjusted to a preset detection voltage, and the main control output level signal is reacquired; an updated positive level signal and an updated negative level signal are acquired from the main control output level signal; when the updated positive level signal is a low level signal and the updated negative level signal is a high level signal, the output voltage of the charging device is adjusted to a charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device; when the updated positive level signal and the updated negative level signal are both high level signals, it is determined that the charging device and the electrical device are in the reverse connection state.

[0070] Optionally, in an embodiment of the present application, when both the positive level signal and the negative level signal are high level signals, it refers to the interface level state detected by the charging device when the battery management system of the electrical device is turned off or unresponsive. The output voltage of the charging device is adjusted to a preset detection voltage in order to safely perform further positive and reverse connection state judgments under uncertain interface states (i.e., interface detection in the BMS off state). The main control output level signal is reacquired, that is, after adjusting the output voltage, the level state of the interface is detected again to verify the actual positive and reverse connection of the interface.

[0071] It should be noted that in actual applications, the specific value of the detection voltage can be diversified, for example, it can be 12V, 24V, etc., and its setting should be within the safe voltage range that will not cause damage to electrical equipment. The acquisition of the updated positive level signal and the updated negative level signal can be achieved through a special detection circuit, or through software logic by the microprocessor inside the charging device. The setting of the charging voltage will vary depending on different electrical equipment and charging requirements, and can be 12V, 24V, 48V, etc., and this application does not limit this.

[0072] In an exemplary embodiment, assume that a drone has its battery management system turned off before charging. When the charging device is connected to the drone, it detects that both the positive and negative electrode level signals are high. At this time, the charging device will automatically adjust the output voltage to the preset safety detection voltage, such as 12V, and detect the interface level status again. If the updated positive electrode level signal is low (0) and the negative electrode level signal is high (1), it indicates that the interface connection is correct. The charging device then adjusts the output voltage to the charging voltage required by the drone, such as 48V, allowing normal charging to begin. On the contrary, if the updated positive and negative electrode level signals are still both high, it is determined that the interface is reversed. The charging device will immediately cut off the output and send a target alarm message to remind the user or the automatic system to take measures to avoid possible charging accidents.

[0073] Through the embodiments of the present application, an intelligent mechanism of adjusting the detection voltage and re-detecting the level signal is adopted to achieve the technical effect of accurately judging the reverse connection state of the interface when the battery management system of the electrical equipment is not responding or is turned off, thereby achieving the purpose of ensuring the safety of the electrical equipment and the charging equipment while ensuring the smooth progress of the charging process.

[0074] As an optional scheme, the above method also includes: when the above positive level signal and the above negative level signal are both the above high level signals, controlling the signal metal oxide semiconductor field effect transistor in the above charging device to receive the target control signal with a value of 1, so that the power metal oxide semiconductor field effect transistor on the first branch stops working, wherein the above first branch is the main branch for the above charging device to output the above charging voltage; controlling the above charging device to output the above detection voltage through the second branch, determining the above updated main control output level signal, wherein the above second branch does not deploy the above power metal oxide semiconductor field effect transistor, and the above first branch and the above second branch work alternately.

[0075] Optionally, in an embodiment of the present application, when both the positive level signal and the negative level signal are high level signals, it refers to the interface level state detected by the charging device when the battery management system of the electrical device is turned off or not responding. The signal metal oxide semiconductor field effect transistor (signal MOS) is used to receive the target control signal to turn on or off the above-mentioned power metal oxide semiconductor field effect transistor. The power metal oxide semiconductor field effect transistor on the first branch refers to the power MOS used to control current and voltage on the main charging branch. The receipt of control signal 1 causes the power MOS to stop working, that is, to cut off the main charging branch, including but not limited to implementing this operation through a microprocessor or a control circuit.

[0076] It should be noted that, in practical applications, the specific types and parameters of the signal MOS and the power MOS can be selected according to the specific circuit design and working conditions. The output of the detection voltage can be achieved through the second branch, and there are many possibilities for the construction and control of the second branch, including but not limited to the use of diodes, resistors or other switching elements to construct, which is not limited in this application. The alternating working mode of the first branch and the second branch can be controlled by the main controller of the charging device through preset logic or program to ensure that the charging device does not output dangerous voltage or current to the electrical device when performing reverse connection state detection.

[0077] In an exemplary embodiment, when the charging device attempts to connect to a drone in the BMS off state, it detects that the positive and negative levels of the interface are both high. At this time, the main controller in the charging device will send a target control signal 1 to the signal MOS to control its conduction, and at the same time stop the power MOS on the first branch and cut off the output of the main charging branch. At the same time, the charging device outputs a preset detection voltage, such as 12V, through the second branch where the power MOS is not deployed, and detects the level state of the interface again. If the updated level state shows a low level for the positive pole and a high level for the negative pole, it is determined that the interface is connected correctly, and then the operation of the first branch is restored and the normal charging voltage is output; if the updated level state is still a high level for both the positive and negative poles, it is judged to be a reverse connection state, and the charging device immediately stops the voltage output and issues an alarm.

[0078] Through the embodiment of the present application, the control of the signal MOS and the power MOS and the detection voltage output mechanism of the second branch are adopted to achieve the technical effect of accurately detecting the reverse connection state of the charging interface when the battery management system of the electrical equipment does not respond, and achieve the purpose of intelligently identifying and handling interface connection problems in the automatic charging process under the premise of ensuring safety. It effectively avoids high power output under uncertain conditions, reduces the risk of damage to electrical equipment and charging equipment, is suitable for a variety of automatic charging scenarios including drones and robots, and improves the safety and reliability of charging operations.

[0079] As an optional solution, the above method also includes: when the above updated positive level signal is the above low level signal and the above updated negative level signal is the above high level signal, controlling the above signal metal oxide semiconductor field effect transistor to receive the above target control signal with a value of 0, so that the above power metal oxide semiconductor field effect transistor starts to work; controlling the above charging device to output a charging voltage, wherein the above charging voltage represents the voltage required for the normal charging process of the above electrical device.

[0080] In an exemplary embodiment, when the charging device is connected to a robot, the positive and negative electrode level signals initially detected are both high, indicating that the BMS system of the robot battery may be in a closed state. The charging device then outputs a detection voltage and detects the interface level state again. If the updated positive electrode level signal is low and the negative electrode level signal is high, it is determined that the interface connection is correct. At this time, the main controller of the charging device sends a target control signal with a value of 0 to the signal MOS to turn it off, and the power MOS starts working and opens the first branch. Subsequently, the charging device outputs a corresponding charging voltage (such as 24V) according to the charging requirements of the robot, starts the normal charging process, and ensures that the battery is charged safely and effectively.

[0081] Through the embodiments of the present application, the state control of the signal MOS and the start-stop mechanism of the power MOS are adopted to achieve the technical effect of confirming the interface connection state by detecting the voltage output and the level signal feedback when the battery management system of the electrical equipment does not respond. This achieves the purpose of intelligently adjusting the output of the charging equipment while ensuring the charging safety to ensure that the electrical equipment can start charging normally, effectively improving the safety and intelligence level of charging, and avoiding equipment damage caused by interface connection errors.

[0082] As an optional scheme, the above method also includes: when the above charging device and the above electrical device are in the above reverse connection state, determining the above positive electrode level signal and the above negative electrode level signal through the first optocoupler branch, wherein the above charging device includes the above first optocoupler branch, and the above first optocoupler branch is deployed with a first optocoupler device; when the above charging device and the above electrical device are not in the above reverse connection state, determining the above negative electrode level signal through the above first optocoupler branch, and determining the above positive electrode level signal through the second optocoupler branch, wherein the above charging device includes the above second optocoupler branch, and the above second optocoupler branch is deployed with a second optocoupler device, and the first optocoupler device and the second optocoupler device are different.

[0083] Optionally, in an embodiment of the present application, when the charging device and the electrical device are in a reverse connection state, the positive level signal and the negative level signal are determined by the first optocoupler branch, which means that when the interface between the electrical device and the charging device is reversely connected, the charging device uses the built-in first optocoupler branch to detect the level state of the interface to ensure that the correct level information can be obtained even in the reverse connection state. The first optocoupler branch is deployed with a first optocoupler device, which may include but is not limited to a photocoupler, which is used to isolate and transmit the level signal of the electrical device interface to the control circuit of the charging device. When the charging device and the electrical device are not in a reverse connection state, the negative level signal is determined by the first optocoupler branch, and the positive level signal is determined by the second optocoupler branch. The second optocoupler branch is deployed with a second optocoupler device, and the first optocoupler device and the second optocoupler device are different, and may be photocouplers of different types or parameters, which are used to detect the positive and negative level signals respectively in a normal connection state.

[0084] It should be noted that in actual applications, the specific construction and working logic of the first optocoupler branch and the second optocoupler branch can be diversified, including but not limited to using signal sources of different frequencies, adopting different circuit designs, or using software algorithms to distinguish the signals received by the optocoupler. The charging device may include a variety of optocouplers to adapt to different electrical equipment interface standards and charging scenario requirements, which is not limited in this application.

[0085] In an exemplary embodiment, assume that a charging station is trying to charge a robot, and during the connection process, the interface between the robot and the charging station is reversed. At this time, the main control system of the charging station will use the first optocoupler branch, that is, the branch deployed with a specific first optocoupler device, to detect the level signals of the positive and negative poles at the same time to confirm the reverse connection state. If the charging station knows through detection that the interface is not reversed, that is, it is normally connected, it will switch the working mode, only detect the negative pole level signal through the first optocoupler branch, and enable the second optocoupler branch to detect the positive pole level signal. The second optocoupler branch is deployed with a second optocoupler device different from the first optocoupler device to ensure accurate identification and processing of the signal. In this way, the charging station can be unaffected by the reverse connection of the interface and always obtain accurate level signal information for subsequent charging control.

[0086] Through the embodiments of the present application, the first optocoupler branch and the second optocoupler branch are flexibly coordinated to achieve the technical effect of accurate level signal detection under the forward and reverse connection states of the electrical equipment interface, thereby achieving the purpose of intelligently judging and processing the charging process in any connection state.

[0087] As an optional scheme, the above method also includes: when the above charging device and the above electrical device are in the above reverse connection state, the current loop between the above electrical device and the above charging device is a clamped freewheeling loop, wherein the above clamped freewheeling loop includes the diode inside the above electrical device, but does not include the electric energy storage unit inside the above electrical device; when the above charging device and the above electrical device are not in the above reverse connection state, the above current loop is a power supply loop, wherein the above power supply loop includes the above electric energy storage unit, but does not include the above diode.

[0088] Optionally, in an embodiment of the present application, the reverse connection state between the charging device and the electrical device refers to the situation when the interface of the electrical device and the charging device is incorrectly connected, resulting in the reversal of the positive and negative poles. The clamping freewheeling circuit means that in the reverse connection state, the diode inside the electrical device will be forward-conducted to form a current loop. The loop does not contain the energy storage unit in the electrical device, such as a battery, but uses the diode to provide freewheeling and clamping to ensure that the electrical device will not be damaged when reversed. The power supply circuit refers to when the positive and negative poles are correctly connected, the energy storage unit inside the electrical device participates in the work to form the current loop required for normal charging. At this time, the diode will not participate in the circuit.

[0089] In an exemplary embodiment, assume that a drone is reversely connected to the charging station interface before charging, that is, the positive pole of the charging station is mistakenly connected to the negative pole of the drone, and the negative pole of the charging station is mistakenly connected to the positive pole of the drone. At this time, the diode inside the drone will be forward-conducted to form a clamped freewheeling loop, ensuring that even in the reverse connection state, no current will pass directly through the battery, avoiding battery damage or safety risks. On the contrary, if the drone is correctly connected to the charging station interface, that is, the positive and negative poles are aligned, the diode will not be involved in the work, and the current of the charging station will directly pass through the power storage unit inside the drone to form a power supply loop and start the normal charging process, ensuring that the battery can be charged efficiently and safely.

[0090] Through the embodiments of the present application, a clamping freewheeling circuit is formed by a diode inside the electrical equipment, and a power supply circuit is formed by using an energy storage unit in the forward connection state. This achieves the technical effect of ensuring that the electrical equipment will not be damaged due to incorrect connection regardless of the forward or reverse connection between the charging equipment and the electrical equipment. This achieves the purpose of intelligently protecting the electrical equipment, preventing charging accidents, and ensuring charging safety and equipment service life in various connection conditions.

[0091] As an optional scheme, the above method also includes: when the above electrical equipment cannot obtain the charging voltage from the above charging equipment, obtaining the above master control output level signal, wherein the above charging voltage represents the voltage required for the normal charging process of the above electrical equipment; when the above positive level signal in the above master control output level signal is the above high level signal, and the above negative level signal is the low level signal, controlling the above charging equipment to issue an application alarm message and prohibiting the above charging equipment from outputting voltage, wherein the above application alarm message indicates that the charging bus between the above charging equipment and the above electrical equipment is connected reversely.

[0092] Optionally, in an embodiment of the present application, the situation in which the electrical device cannot obtain the charging voltage from the charging device refers to the situation in which the electrical device fails to detect the expected charging voltage input after being connected to the charging device, which may be caused by various reasons such as reverse connection of the interface, failure of the charging device, and problems in the internal circuit of the electrical device. The main control output level signal refers to a level signal output by the main controller of the electrical device that reflects the positive and negative states of the charging interface, including but not limited to signals detected by components such as diodes and optocouplers. When the positive level signal is a high level signal and the negative level signal is a low level signal, it indicates that the detection circuit of the electrical device is working normally and the positive and negative poles of the interface are connected correctly, but the voltage cannot be obtained from the charging device, so it is necessary to trigger an alarm mechanism to prevent potential equipment damage.

[0093] It should be noted that in actual applications, the specific value of the charging voltage may vary depending on the type of electrical equipment and the charging requirements, and this application does not limit this. The detection and judgment logic of the main control output level signal can be implemented by the microprocessor of the electrical equipment through a preset program or algorithm, and the issuance of the application alarm message can be in the form of sound and light alarm, wireless signal transmission, etc., to remind the user or automatic control system to pay attention to the abnormal state of the charging interface and take timely measures to avoid possible equipment damage.

[0094] In an exemplary embodiment, it is assumed that a drone fails to detect the voltage input of the charging station due to an operation error or equipment failure when trying to obtain a charging voltage from a charging station. At this time, the main controller of the drone detects the level signal of the charging interface. If the positive level signal detected is high (e.g., 5V) and the negative level signal is low (e.g., 0V), it indicates that the positive and negative poles of the charging interface of the drone are connected correctly, but the voltage cannot be obtained from the charging station. In this case, the drone will send an application alarm message to the charging station, indicating that the charging bus between the charging station and the drone may be connected in reverse. At the same time, the main controller of the drone will prohibit the charging station from continuing to output voltage to prevent charging when the interface status is unclear and avoid potential safety risks. Once the alarm message is received, the charging station will stop the voltage output and send an alarm prompt to the user or the automatic control system, requiring the user or the automatic control system to check and confirm the connection status of the charging interface.

[0095] Through the embodiments of the present application, a detection mechanism for the main control output level signal and a strategy for sending an application alarm message are adopted to achieve the technical effect of intelligently judging the connection status of the charging interface when the electrical device fails to obtain the charging voltage from the charging device. This achieves the purpose of actively alarming and preventing unsafe charging behaviors in the event of an abnormal interface, thereby ensuring the safety of the electrical device and the charging device.

[0096] In an exemplary embodiment, a method for preventing reverse connection of battery charging is implemented, which includes two modules: charging equipment and electrical equipment. It is mainly used in automatic charging scenarios of drones, robots and other related products.

[0097] It should be noted that with the popularization of robots, drones, and various charging devices, battery charging safety accidents occur frequently, and charging safety is particularly important; in the production process, due to process production and negligence in quality inspection, wire connections are often wrong, such as the charging cable is connected reversely, resulting in accidents during function testing and damage to the equipment; in the use of equipment, many devices with lithium batteries, such as robots, drones and other equipment, will be connected reversely when charged, and the end result is damage to the equipment and significant losses.

[0098] To solve the above problems, the prior art often adds a rectifier diode or MOS to prevent reverse connection at the device end. However, in high-power charging devices, the temperature rise of the device, the installation space, and the cost all need to be considered. The embodiment of the present application realizes a simple reverse connection protection circuit, which is low-cost, safe, and has no heating risk.

[0099] For example, Figure 4 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, wherein the charging device and the charging power control part are as follows. Figure 4 shown.

[0100] For example, Figure 5 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, wherein a charging device detects a forward and reverse connection detection module of an electrical device such as Figure 5 shown.

[0101] For example, Figure 6 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, wherein the reverse connection clamping freewheeling module of the electrical device is as follows Figure 6 shown.

[0102] For example, Figure 7 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, such as Figure 7 As shown, including but not limited to:

[0103] When the charging device and the electrical device are connected, when the battery BMS of the electrical device is turned on, that is, the electrical device is energized: at this time, the electrical device and the charging device are connected, and the positive and reverse connection detection module starts to work. When the positive level signal MCU_BAT_DET+ and the negative level signal MCU_BAT_DET- are 0 and 1 respectively, the charging device recognizes that the electrical device is correctly connected, and will establish communication with the electrical device and charge as required; when MCU_BAT_DET+ and MCU_BAT_DET- are 1 and 0 respectively, the charging device recognizes that the electrical device is incorrectly connected, and the charging device alarms to prompt reverse connection; when the battery BMS of the electrical device is turned off, that is, the electrical device is not energized: MCU_BAT_DET+ and MCU_BAT_DET- are 1 and 1 respectively. Since the battery of the electrical device is not energized at this time, it is necessary to further determine whether it is reversely connected.

[0104] Furthermore, MCU_CHARG_CTR outputs 1, the power MOS of the charging device turns off the charger to output 30V voltage, and performs a secondary judgment. When MCU_BAT_DET+ and MCU_BAT_DET- are 0 and 1 respectively, the charging device recognizes that the electrical device is connected correctly. The charging device outputs MCU_CHARG_CTR 0, establishes communication with the electrical device, and charges as required.

[0105] On the one hand, when MCU_BAT_DET+ and MCU_BAT_DET- are 1 and 0 respectively, the clamping freewheeling diode of the electrical equipment is forward-conducted, providing a loop. The charging device recognizes that the electrical equipment is connected incorrectly, and the charging device alarms to prompt reverse connection.

[0106] On the other hand, when the charging device and the charging bus are connected reversely, the clamping freewheeling diode of the battery device is forward-conducted, providing a loop, MCU_BAT_DET+ and MCU_BAT_DET- are 1 and 0 respectively, the charging device recognizes that the electrical device is connected incorrectly, and the charging device alarms to prompt reverse connection, thereby protecting the charging device and the electrical equipment.

[0107] Through the embodiment of the present application, when the charging port of the electrical device is charged (that is, the battery BMS battery management system BMS can control the charging and discharging process of the battery, including starting and stopping charging, and adjusting the charging current and voltage), Figure 8 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, a simplified schematic diagram of an electrical device and a charging device is shown in FIG. Figure 8 As shown, it automatically determines whether the charging interface of the charging device and the charging interface of the electrical device are reversely connected, and charges on demand; when the charging interface of the electrical device is not charged (that is, the battery BMS is turned off), Fig. 9 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, a simplified schematic diagram of an electrical device and a charging device is shown in FIG. Fig. 9 As shown, it automatically determines whether the charging interface of the charging device and the charging interface of the electrical device are reversed, and wakes up the BMS system of the electrical device to charge on demand; when the charging cable of the charging device is connected reversely (when charging the device, the positive and negative poles of the charging cable are not correctly matched with the charging interface of the device, that is, the negative pole (-) is connected to the positive pole (+) where it should be connected, or the positive pole (+) is connected to the negative pole (-) where it should be connected). Fig.10 is a schematic diagram of another optional device status detection method according to an embodiment of the present application, a simplified schematic diagram of an electrical device and a charging device is shown in FIG. Fig.10 As shown, electrical equipment will not be damaged when charging, the detection cost required for reverse connection detection is lower and more reliable, high-power charging can be adopted, there are no power devices in the busbar part, and there is no heat dissipation risk. In automatic charging equipment such as drones or robots, it is safer and more reliable in complex application scenarios.

[0108] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0109] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0110] According to another aspect of the embodiments of the present application, there is also provided a device status detection apparatus for implementing the above device status detection method. Fig.11 As shown, the device comprises:

[0111] An acquisition module 1102 is used to acquire a main control output level signal of the charging device in response to the charging device and the electrical device establishing a connection, wherein the main control output level signal includes a positive level signal and a negative level signal;

[0112] The first determination module 1104 is used to adjust the output voltage of the charging device to a preset detection voltage when both the positive level signal and the negative level signal are high level signals, so as to determine whether the charging device and the electrical device are in a reverse connection state;

[0113] A second determination module 1106, configured to determine whether the charging device and the electrical device are in a reverse connection state according to a level combination value of the master control output level signal when the positive level signal and the negative level signal are different, wherein the level combination value indicates that the value of the positive level signal is a first value, and the value of the negative level signal is a second value, and the first value and the second value are different;

[0114] The processing module 808 is used to control the charging device to send a target alarm message and prohibit the charging device from outputting voltage when the charging device and the electrical device are in a reverse connection state, wherein the target alarm message is used to indicate that the electrical device cannot be charged normally.

[0115] As an optional solution, the above-mentioned device is used to determine whether the charging device and the electrical device are in a reverse connection state according to the level combination value of the main control output level signal when the positive level signal and the negative level signal are different in the following manner: when the positive level signal is a low level signal and the negative level signal is a high level signal, the output voltage of the charging device is adjusted to the charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device, and the first value is 0 and the second value is 1; when the positive level signal is a high level signal and the negative level signal is a low level signal, it is determined that the charging device and the electrical device are in a reverse connection state, wherein the first value is 1 and the second value is 0.

[0116] As an optional solution, the above-mentioned device is used to adjust the output voltage of the charging device to a preset detection voltage when both the positive level signal and the negative level signal are high level signals, so as to determine whether the charging device and the electrical device are in a reverse connection state in the following manner: when both the positive level signal and the negative level signal are high level signals, adjust the output voltage of the charging device to a preset detection voltage, and re-acquire the main control output level signal; obtain the updated positive level signal and the updated negative level signal in the main control output level signal; when the updated positive level signal is a low level signal and the updated negative level signal is a high level signal, adjust the output voltage of the charging device to the charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical device; when both the updated positive level signal and the updated negative level signal are high level signals, determine that the charging device and the electrical device are in a reverse connection state.

[0117] As an optional solution, the above-mentioned device is also used to: when the positive level signal and the negative level signal are both high-level signals, control the signal metal oxide semiconductor field effect transistor in the charging device to receive the target control signal with a value of 1, so that the power metal oxide semiconductor field effect transistor on the first branch stops working, wherein the first branch is the main branch for the charging device to output the charging voltage; control the charging device to output the detection voltage through the second branch, determine to update the main control output level signal, wherein the second branch does not deploy the power metal oxide semiconductor field effect transistor, and the first branch and the second branch work alternately.

[0118] As an optional solution, the above-mentioned device is also used to: when the positive level signal is updated to a low level signal and the negative level signal is updated to a high level signal, the control signal metal oxide semiconductor field effect transistor receives a target control signal with a value of 0, so that the power metal oxide semiconductor field effect transistor starts working; control the charging device to output a charging voltage, wherein the charging voltage represents the voltage required for the normal charging process of the electrical equipment.

[0119] As an optional solution, the above-mentioned device is also used to: when the charging device and the electrical device are in a reverse connection state, determine the positive level signal and the negative level signal through the first optocoupler branch, wherein the charging device includes a first optocoupler branch, and the first optocoupler branch is deployed with a first optocoupler device; when the charging device and the electrical device are not in a reverse connection state, determine the negative level signal through the first optocoupler branch, and determine the positive level signal through the second optocoupler branch, wherein the charging device includes a second optocoupler branch, and the second optocoupler branch is deployed with a second optocoupler device, and the first optocoupler device and the second optocoupler device are different.

[0120] As an optional solution, the above-mentioned device is also used for: when the charging device and the electrical device are in a reverse connection state, the current loop between the electrical device and the charging device is a clamped freewheeling loop, wherein the clamped freewheeling loop includes a diode inside the electrical device but does not include an energy storage unit inside the electrical device; when the charging device and the electrical device are not in a reverse connection state, the current loop is a power supply loop, wherein the power supply loop includes an energy storage unit but does not include a diode.

[0121] As an optional solution, the above-mentioned device is also used to: when the electrical equipment cannot obtain the charging voltage from the charging equipment, obtain the main control output level signal, wherein the charging voltage represents the voltage required for the normal charging process of the electrical equipment; when the positive level signal in the main control output level signal is a high level signal and the negative level signal is a low level signal, control the charging equipment to issue an application alarm message and prohibit the charging equipment from outputting voltage, wherein the application alarm message indicates that the charging bus between the charging equipment and the electrical equipment is connected reversely.

[0122] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0123] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0124] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.

[0125] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0126] Fig.12 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0127] It should be noted that Fig.12 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0128] like Fig.12As shown, the computer system 1200 includes a central processing unit 1201 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1202 (ROM) or the program loaded from the storage part 1208 to the random access memory 1203 (RAM). Various programs and data required for system operation are also stored in the random access memory 1203. The central processing unit 1201, the read-only memory 1202 and the random access memory 1203 are connected to each other through a bus 1204. The input / output interface 1205 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1204.

[0129] The following components are connected to the input / output interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the input / output interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.

[0130] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the central processor 1201, various functions defined in the system of the present application are executed.

[0131] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and / or installed from the removable medium 1211. When the computer program is executed by the central processor 1201, various functions provided by the embodiments of the present application are performed.

[0132] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned device status detection method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.

[0133] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0134] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.

[0135] Alternatively, a person skilled in the art may understand that: Fig.13 The structure shown is for illustration only. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations are shown.

[0136] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the device status detection method and device in the embodiment of the present application. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, realizing the above-mentioned device status detection method. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely located relative to the processor 1304, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 can be specifically, but not limited to, used to store target alarm messages and other information. As an example, such as Fig.13 As shown, the memory 1302 may include, but is not limited to, the acquisition module 1102, the first determination module 1104, the second determination module 1106, and the processing module 11011 in the device status detection device. In addition, other module units in the device status detection device may also be included but are not limited to, which will not be repeated in this example.

[0137] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0138] In addition, the electronic device further includes: a display 13011 for displaying the target alarm message; and a connection bus 1313 for connecting various module components in the electronic device.

[0139] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0140] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the device status detection method provided in various optional implementations of the above-mentioned device status detection aspect.

[0141] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.

[0142] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0143] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0144] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.

[0145] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0146] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.

[0147] 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.

[0148] 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.

[0149] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for detecting a device status, characterized in that: include: In response to the charging device and the electrical device establishing a connection, obtaining a main control output level signal of the charging device, wherein the main control output level signal includes a positive level signal and a negative level signal; When both the positive level signal and the negative level signal are high level signals, the output voltage of the charging device is adjusted to a preset detection voltage to determine whether the charging device and the electrical device are in a reverse connection state; In the case where the positive level signal and the negative level signal are different, determining whether the charging device and the electrical device are in the reverse connection state according to the level combination value of the master control output level signal, wherein the level combination value indicates that the value of the positive level signal is a first value, and the value of the negative level signal is a second value, and the first value and the second value are different; When the charging device and the electrical device are in the reverse connection state, the charging device is controlled to issue a target alarm message and the charging device is prohibited from outputting a voltage, wherein the target alarm message is used to indicate that the electrical device cannot be charged normally.

2. The method according to claim 1, characterized in that In the case where the positive level signal and the negative level signal are different, determining whether the charging device and the electrical device are in the reverse connection state according to the level combination value of the main control output level signal includes: When the positive electrode level signal is a low level signal and the negative electrode level signal is a high level signal, the output voltage of the charging device is adjusted to a charging voltage, wherein the charging voltage represents a voltage required during normal charging of the electrical device, the first value is 0, and the second value is 1; When the positive level signal is the high level signal and the negative level signal is the low level signal, it is determined that the charging device and the electrical device are in the reverse connection state, wherein the first value is 1 and the second value is 0.

3. The method according to claim 1, characterized in that When both the positive level signal and the negative level signal are high level signals, adjusting the output voltage of the charging device to a preset detection voltage to determine whether the charging device and the electrical device are in a reverse connection state comprises: When both the positive level signal and the negative level signal are high level signals, the output voltage of the charging device is adjusted to a preset detection voltage, and the main control output level signal is re-acquired; Acquire an updated positive level signal and an updated negative level signal in the master control output level signal; When the updated positive electrode level signal is a low level signal and the updated negative electrode level signal is the high level signal, the output voltage of the charging device is adjusted to a charging voltage, wherein the charging voltage represents a voltage required during normal charging of the electrical device; When the updated positive level signal and the updated negative level signal are both the high level signals, it is determined that the charging device and the electrical device are in the reverse connection state.

4. The method according to claim 3, characterized in that The method further comprises: When both the positive electrode level signal and the negative electrode level signal are the high level signals, controlling the signal metal oxide semiconductor field effect transistor in the charging device to receive a target control signal with a value of 1, so that the power metal oxide semiconductor field effect transistor on the first branch stops working, wherein the first branch is a main branch for the charging device to output the charging voltage; The charging device is controlled to output the detection voltage through a second branch, and the update main control output level signal is determined, wherein the power metal oxide semiconductor field effect transistor is not deployed in the second branch, and the first branch and the second branch work alternately.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When the updated positive level signal is the low level signal and the updated negative level signal is the high level signal, controlling the signal metal oxide semiconductor field effect transistor to receive the target control signal with a value of 0, so that the power metal oxide semiconductor field effect transistor starts to work; The charging device is controlled to output a charging voltage, wherein the charging voltage represents a voltage required during normal charging of the electrical device.

6. The method according to claim 1, characterized in that The method further comprises: In the case where the charging device and the electrical device are in the reverse connection state, the positive electrode level signal and the negative electrode level signal are determined by a first optocoupler branch, wherein the charging device includes the first optocoupler branch, and the first optocoupler branch is equipped with a first optocoupler device; When the charging device and the electrical device are not in the reverse connection state, the negative electrode level signal is determined by the first optocoupler branch, and the positive electrode level signal is determined by the second optocoupler branch, wherein the charging device includes the second optocoupler branch, the second optocoupler branch is disposed with a second optocoupler device, and the first optocoupler device and the second optocoupler device are different.

7. The method according to claim 1, characterized in that The method further comprises: When the charging device and the electrical device are in the reverse connection state, the current loop between the electrical device and the charging device is a clamped freewheeling loop, wherein the clamped freewheeling loop includes a diode inside the electrical device but does not include an electric energy storage unit inside the electrical device; When the charging device and the electrical device are not in the reverse connection state, the current loop is a power supply loop, wherein the power supply loop includes the electric energy storage unit but does not include the diode.

8. The method according to claim 1, characterized in that The method further comprises: In the case where the electrical device cannot obtain the charging voltage from the charging device, obtaining the main control output level signal, wherein the charging voltage represents the voltage required by the electrical device during normal charging; When the positive level signal in the main control output level signal is the high level signal and the negative level signal is the low level signal, the charging device is controlled to issue an application alarm message and prohibit the charging device from outputting voltage, wherein the application alarm message indicates that the charging bus between the charging device and the electrical device is connected reversely.

9. A device for detecting a device status, characterized in that: include: an acquisition module, configured to acquire a main control output level signal of the charging device in response to the charging device and the electrical device establishing a connection, wherein the main control output level signal includes a positive level signal and a negative level signal; A first determination module, configured to adjust the output voltage of the charging device to a preset detection voltage when both the positive electrode level signal and the negative electrode level signal are high level signals, so as to determine whether the charging device and the electrical device are in a reverse connection state; a second determination module, configured to determine whether the charging device and the electrical device are in the reverse connection state according to a level combination value of the main control output level signal when the positive level signal and the negative level signal are different, wherein the level combination value indicates that the value of the positive level signal is a first value, and the value of the negative level signal is a second value, and the first value and the second value are different; A processing module is used to control the charging device to send a target alarm message and prohibit the charging device from outputting a voltage when the charging device and the electrical device are in the reverse connection state, wherein the target alarm message is used to indicate that the electrical device cannot be charged normally.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 8.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.

12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.

Citation Information

Patent Citations

  • Detection circuitry that rechargeable battery positive and negative electrode joins conversely

    CN204631181U

  • Charging reverse connection detection circuit

    CN217689353U

  • Charging circuit and method for preventing reversal of charging power supply

    WO2014190513A1

  • Charging method and terminal device

    WO2025030848A1

Cited By

  • Unmanned aerial vehicle parking charging system and unmanned aerial vehicle parking charging method

    CN120573313A

  • Unmanned aerial vehicle docking and charging system and unmanned aerial vehicle docking and charging method

    CN120573313B