Power supply method of target equipment, controller and storage medium

By introducing a step-down circuit and voltage detection mechanism into the power supply system of the parking space detection equipment, the problem of insufficient cable detection was solved, ensuring power supply safety and equipment stability, and reducing the risk of damage.

CN121863337APending Publication Date: 2026-04-14ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-30
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The lack of testing and verification of network cables in existing technologies may lead to the use of non-standard cables during the on-site installation of parking space detection equipment, increasing the risk of equipment damage and reducing power supply security.

Method used

By introducing step-down circuits, voltage divider resistors, switching diodes, sampling circuits, and voltage comparators into cascaded power receiving equipment, voltage conversion and detection are performed to ensure the compliance of cable and equipment connections, and formal power supply is only provided when the power supply conditions are met.

Benefits of technology

It effectively avoids equipment damage caused by non-standard cables, improves power supply safety and system stability, reduces the risk of equipment damage, and improves power supply efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121863337A_ABST
    Figure CN121863337A_ABST
Patent Text Reader

Abstract

The invention discloses a power supply method of target equipment, a controller and a storage medium. The method is executed by a controller, and the controller is connected with a power supply system. The power supply system comprises N cascaded powered devices; the N cascaded powered devices are connected through cables; under the condition that a first power receiving device in the N cascaded power receiving devices is in power supply connection with the power supply device, controlling the first power receiving device to perform voltage conversion on a power supply voltage input by the power supply device to obtain a detection voltage; and then the detection voltage is transmitted to the second power receiving equipment through the cable so as to receive a feedback voltage fed back by the second power receiving equipment. Therefore, voltage detection can be carried out on the feedback voltage to obtain a voltage detection result. According to the invention, when the voltage detection result indicates that the cable meets the power supply condition, power is supplied to the second power receiving equipment through the cable, so that the problems that the equipment is damaged and the power supply safety of the equipment is influenced due to the fact that power supply is still carried out when the cable is faulty and has a fault are effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply technology, and more specifically, to a power supply method, controller, and storage medium for a target device. Background Technology

[0002] With the widespread deployment of smart parking lots, the demand for parking space detection equipment is increasing. These devices are connected by cables that transmit not only data signals but also power, allowing a single adapter to power multiple devices, significantly reducing construction difficulty and costs.

[0003] In the current power supply process, the parking space detection equipment starts supplying power as soon as it detects the physical connection of its downstream devices, lacking detection and verification of network cables. Due to limitations in on-site conditions, cables are usually fabricated on-site. If errors occur during the fabrication process, the network cable may not meet standard definitions, which increases the risk of equipment damage and reduces the safety of the power supply.

[0004] Therefore, how to reduce the risk of equipment damage and improve the safety of equipment power supply has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a power supply method, controller, and storage medium for a target device, which at least solves the technical problem of lacking detection and verification of network cables, thereby increasing the risk of device damage and reducing the safety of device power supply.

[0006] According to one aspect of the embodiments of this application, a power supply method for a target device is provided, executed by a controller connected to a power supply system; the power supply system includes: N cascaded power receiving devices connected to each other via cables; including: when a first power receiving device among the N cascaded power receiving devices is connected to a power supply device, controlling the first power receiving device to perform voltage conversion on the power supply voltage input to the power supply device to obtain a detection voltage, where N is an integer greater than 1; inputting the detection voltage through the cables to a second power receiving device connected to the first power receiving device; the N cascaded power receiving devices further include: the second power receiving device; receiving a feedback voltage fed back by the second power receiving device after receiving the detection voltage, and performing voltage detection based on the feedback voltage to obtain a voltage detection result; when the voltage detection result indicates that the cable meets the power supply conditions, outputting the power supply voltage through the cables to the second power receiving device to power the second power receiving device.

[0007] In an exemplary embodiment, each of the N cascaded power receiving devices includes a step-down circuit; when the first power receiving device in the N cascaded power receiving devices is connected to a power supply device, controlling the first power receiving device to perform voltage conversion on the power supply voltage input to the power supply device to obtain a detection voltage includes: controlling the step-down circuit included in the first power receiving device to step down the power supply voltage to obtain the detection voltage.

[0008] In an exemplary embodiment, each of the N cascaded power receiving devices includes: a voltage dividing resistor and a switching diode connected to the voltage dividing resistor; inputting the detected voltage to a second power receiving device connected to the first power receiving device via the cable includes: inputting the detected voltage to the voltage dividing resistor of the first power receiving device, adjusting the detected voltage based on the voltage dividing resistor of the first power receiving device to obtain an adjusted voltage, inputting the adjusted voltage to the switching diode of the first power receiving device, and inputting the adjusted voltage to the cable based on the switching diode of the first power receiving device, so as to input the adjusted voltage to the second power receiving device via the cable.

[0009] In an exemplary embodiment, each of the N cascaded power receiving devices includes: a sampling circuit and a voltage comparator connected to the sampling circuit; receiving a feedback voltage fed back by the second power receiving device after receiving the detected voltage, and performing voltage detection based on the feedback voltage to obtain a voltage detection result, including: receiving the feedback voltage fed back by the second power receiving device through the cable via the sampling circuit included in the first power receiving device; inputting the feedback voltage to the voltage comparator via the sampling circuit included in the first power receiving device, and performing voltage detection on the feedback voltage via the voltage comparator included in the first power receiving device to obtain a voltage detection result.

[0010] In an exemplary embodiment, the voltage detection of the feedback voltage by the voltage comparator included in the first powered device to obtain a voltage detection result includes: comparing the feedback voltage with a preset target voltage based on the voltage comparator included in the first powered device to determine a voltage difference; comparing the voltage difference with a set difference threshold to obtain a difference comparison result; and determining the voltage detection result based on the difference comparison result.

[0011] In an exemplary embodiment, each of the N cascaded power receiving devices includes: a power supply circuit; when the voltage detection result indicates that the cable meets the power supply conditions, outputting the power supply voltage to the second power receiving device to power the second power receiving device, including: when the voltage detection result indicates that the voltage difference is less than a difference threshold, generating a power supply voltage through the power supply circuit of the first power receiving device, and outputting the power supply voltage to the second power receiving device through the cable to power the second power receiving device.

[0012] In an exemplary embodiment, each of the N cascaded power receiving devices includes: a switching transistor; the switching transistor is connected to the power supply circuit; outputting the power supply voltage to the second power receiving device through the cable to power the second power receiving device includes: controlling the switching transistor to close through a control circuit, so that the power supply voltage is input to the cable through the switching transistor included in the first power receiving device, and outputting the power supply voltage to the second power receiving device through the cable to power the second power receiving device.

[0013] In an exemplary embodiment, each of the N cascaded powered devices includes a sampling enable circuit, and the method further includes: when power is supplied to the second powered device, outputting a disconnect signal to the sampling enable circuit included in the first powered device; and when the sampling enable circuit included in the first powered device receives the disconnect signal, outputting the disconnect signal to a sampling circuit to shut down the sampling circuit.

[0014] Another aspect of this application provides a power supply device for a target device, comprising: a conversion module, configured to, when a first power receiving device in N cascaded power receiving devices is connected to a power supply device, convert the power supply voltage input to the power supply device through the first power receiving device to obtain a detection voltage, wherein N is an integer greater than 1; a first transmission module, configured to input the detection voltage through the cable to a second power receiving device connected to the first power receiving device; the N cascaded power receiving devices further comprising: the second power receiving device; a receiving module, configured to receive a feedback voltage fed back by the second power receiving device after receiving the detection voltage, and perform voltage detection based on the feedback voltage to obtain a voltage detection result; and a second transmission module, configured to, when the voltage detection result indicates that the cable meets the power supply conditions, output the power supply voltage through the cable to the second power receiving device to power the second power receiving device.

[0015] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the power supply method of the target device described above when it is run.

[0016] According to another aspect of the embodiments of this application, a controller is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the power supply method of the target device described above through the computer program.

[0017] The power supply method for the aforementioned target device is executed by a controller connected to a power supply system. The power supply system includes N cascaded power receiving devices connected via cables. When the first power receiving device in the N cascaded devices is connected to the power supply device, the controller converts the input voltage of the power supply device to obtain a detection voltage. This detection voltage is then transmitted to the second power receiving device via cables to receive feedback voltage. This allows for voltage detection of the feedback voltage, obtaining a voltage detection result. Power is only supplied to the second power receiving device via cables when the voltage detection result indicates that the cable meets the power supply conditions. This effectively avoids supplying power to faulty cables, which could damage the equipment and compromise its power supply safety. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 This is a flowchart of one of the optional power supply methods for a target device according to an embodiment of this application;

[0020] Figure 2 This is a schematic diagram of the connection relationship of a power supply method for a target device according to an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of a power supply method for a target device according to an embodiment of this application;

[0022] Figure 4 This is one of the flowcharts of a power supply method for a target device according to an embodiment of this application;

[0023] Figure 5 This is a second flowchart of a power supply method for a target device according to an embodiment of this application;

[0024] Figures 6(a), 6(b), and 6(c) are schematic diagrams of a power supply method for a target device according to an embodiment of this application;

[0025] Figure 7 This is a second flowchart of a power supply method for a target device according to an embodiment of this application;

[0026] Figure 8 A structural block diagram of a power supply device for an optional target device according to an embodiment of this application;

[0027] Figure 9 A schematic diagram of the structure of a power supply product for an optional target device according to an embodiment of this application;

[0028] Figure 10 A schematic diagram of the structure of an optional controller according to an embodiment of this application. Detailed Implementation

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0031] Alternatively, as an alternative implementation method, such as Figure 1 As shown, the power supply method for the target device described above is executed by a controller connected to a power supply system. The power supply system includes N cascaded power receiving devices; the N cascaded power receiving devices are connected by cables, including steps S102-S108:

[0032] Step S102: When the first power receiving device in the N cascaded power receiving devices is connected to the power supply device, control the first power receiving device to perform voltage conversion on the power supply voltage input by the power supply device to obtain the detection voltage, where N is an integer greater than 1.

[0033] It should be noted that when the first powered device establishes a power connection with the power supply device, the power supply voltage provided by the power supply device is usually higher than the voltage required for detection. For example, the power supply device may provide 24V or 48V PoE (Power over Ethernet), which is too powerful for the detection circuit. Therefore, it is necessary to convert the main power supply voltage to a lower and safer detection voltage to detect the presence of downstream devices of the first powered device and the standardization of the network cable, while avoiding any negative impact on the device circuitry or data transmission.

[0034] In some embodiments, voltage conversion can be performed within the first powered device by using a voltage divider resistor network or an integrated voltage regulation circuit to reduce the supply voltage to a preset lower voltage, such as around a few volts, as the detection voltage. This process ensures that the detection voltage is used only for detection purposes and can be safely transmitted between powered devices via cables.

[0035] Step S104: The detected voltage is input to the second power receiving device connected to the first power receiving device via a cable; the N cascaded power receiving devices also include the second power receiving device.

[0036] Understandably, the powered devices are connected via cables. A detection voltage is input via the cable to a second powered device connected to the first powered device to check the cable's compatibility. Furthermore, this method of inputting the detection voltage to the second powered device connected to the first powered device can also detect the connection status of the downstream device (i.e., the second powered device) of the first powered device.

[0037] It should be noted that cables are physical media used to transmit electrical signals, typically consisting of several pairs of wires, insulation material, and an outer sheath. Specifically, a cable can consist of four pairs of wires used for data transmission and power supply. For example, the first pair (1 / 2 pair): primarily used for transmitting data signals (TX, Transmit); this pair is responsible for transmitting signals when the first powered device sends data. The second pair (3 / 6 pair, green): primarily used for receiving data signals (RX, Receive); this pair is responsible for receiving signals when the first powered device receives data. The third pair (4 / 5 pair, blue): used for transmitting the power supply voltage in power supply applications. The fourth pair (7 / 8 pair, brown): used for receiving the power supply voltage.

[0038] In a specific application, the first receiving device can utilize a signal pair to transmit the detected voltage to the second receiving device via a cable. The signal pair handles data transmission during normal data transmission, while the power pair is typically used for continuous power supply. Using a signal pair to transmit the detected voltage avoids direct interference with the power supply line while ensuring the safe transmission of the detected voltage between devices.

[0039] Step S106: Receive the feedback voltage from the second power receiving device after receiving the detection voltage, and perform voltage detection based on the feedback voltage to obtain the voltage detection result.

[0040] When the first receiving device injects a detection voltage into the cascaded cable, the detection voltage is transmitted along the signal pair of the cable to the second receiving device. Because the detection voltage is low and does not interfere with normal network signals, it can safely propagate along the signal pair.

[0041] Upon receiving the detected voltage, the internal detection circuit of the second powered device performs a series of processes, including sampling, adjusting, or directly forwarding the voltage. The processed voltage, called the feedback voltage, contains the second powered device's presence information and the cable's connection status. The second powered device then transmits the feedback voltage back to the first powered device via a signal pair. This process utilizes the signal pair in the network cable as a loop path for the detected voltage, thus achieving a closed-loop signal transmission from the lower-level device to the upper-level device.

[0042] Step S108: If the voltage detection result indicates that the cable meets the power supply conditions, the power supply voltage is output to the second power receiving device through the cable to supply power to the second power receiving device.

[0043] Specifically, once the first receiving device confirms that the power supply conditions are met—that is, the cable is a standard network cable and the second receiving device is properly connected—it will initiate the formal power supply process. During formal power supply, the power supply voltage will no longer be transmitted through the signal pair, but rather through a dedicated power supply pair to the second receiving device to supply power to it.

[0044] Steps S102-S108 described above are applied to N cascaded power receiving devices. These N cascaded power receiving devices are connected via cables. When the first power receiving device in the N cascaded power receiving devices is connected to a power supply device, the first power receiving device is controlled to convert the input voltage of the power supply device to obtain a detection voltage. This detection voltage is then transmitted to the second power receiving device via cables to receive feedback voltage from the second power receiving device. This allows for voltage detection of the feedback voltage and the acquisition of a voltage detection result. Power is only supplied to the second power receiving device via cables when the voltage detection result indicates that the cable meets the power supply conditions. This effectively avoids the problem of supplying power to faulty cables, which could damage the equipment and affect the safety of the power supply.

[0045] In some embodiments, any one of the N cascaded power receiving devices includes a step-down circuit; when the first power receiving device in the N cascaded power receiving devices is connected to a power supply device, controlling the first power receiving device to perform voltage conversion on the power supply voltage input to the power supply device to obtain a detection voltage includes: controlling the step-down circuit included in the first power receiving device to perform step-down processing on the power supply voltage to obtain a detection voltage.

[0046] As is understood, a buck converter is a DC-DC converter that transforms a high voltage into a low voltage. In the embodiments of this application, the supply voltage is typically high to meet power requirements. However, when performing cable compliance checks, a relatively low voltage that will not interfere with data transmission, i.e., the detection voltage, is required. The buck converter is introduced to achieve this voltage conversion.

[0047] When the first powered device is connected to the power supply device (such as a power adapter), the supply voltage (e.g., 48V) enters the first powered device through the power line. At this time, the buck circuit starts to work, which can use inductors, capacitors, and switching elements (such as MOSFETs) to reduce the input voltage to a safer and more suitable voltage level, such as 5V or 12V, as the sensing voltage.

[0048] In the first powered device, a detection voltage is used in the internal detection circuitry to monitor the physical integrity of the connection between powered devices and the compliance of the network cable. This lower voltage can be safely transmitted to the second powered device through signal pairs (such as 1 / 2 and 3 / 6 pairs) without damaging the network signal or network transformer. Upon receiving the detection voltage, the second powered device sends a signal back through its internal circuitry indicating whether the cable conforms to standards.

[0049] In the above embodiments, this step-down circuit design enables accurate detection of link status while ensuring power supply efficiency, thus guaranteeing the stability and security of the entire cascaded link. It avoids potential damage caused by using non-standard network cables, providing an extra layer of protection for the power supply and operation of cascaded devices.

[0050] In an exemplary embodiment, any one of the N cascaded power receiving devices includes: a voltage dividing resistor and a switching diode connected to the voltage dividing resistor; inputting the detected voltage to a second power receiving device connected to the first power receiving device via a cable includes: inputting the detected voltage to the voltage dividing resistor of the first power receiving device, adjusting the detected voltage based on the voltage dividing resistor of the first power receiving device to obtain an adjusted voltage, inputting the adjusted voltage to the switching diode of the first power receiving device, and inputting the adjusted voltage to the cable based on the switching diode of the first power receiving device, so as to input the adjusted voltage to the second power receiving device via the cable.

[0051] The voltage divider resistor is used to adjust the detection voltage (typically generated by the step-down circuit of the first powered device) to a smaller, safer value. The switching diode is a diode that can selectively turn on or off depending on the polarity of the applied voltage. During the transmission of the detection voltage, the switching diode ensures the forward transmission of the detection voltage while preventing reverse current flow. This means that when the detection voltage, after being regulated by the voltage divider resistor from the first powered device, is input to the signal pair of the cable through the switching diode, the switching diode ensures that the detection voltage can be smoothly transmitted to the second powered device, without allowing current to flow backward to the first powered device or other upstream devices, thus avoiding power supply conflicts and potential circuit damage.

[0052] Specifically, the first powered device generates a detection voltage through its step-down circuit. This detection voltage is further reduced by a voltage divider resistor network to obtain a regulated voltage, ensuring safe transmission over the signal pairs. The regulated voltage is then transmitted through a switching diode in the first powered device. Since the voltage is forward-biased, the switching diode is in a conducting state, allowing the regulated voltage to be transmitted to the second powered device via the signal pairs (e.g., 1 / 2 pair and 3 / 6 pair). The input port of the second powered device receives the regulated voltage from the first powered device.

[0053] In the above embodiments, the combination of voltage divider resistors and switching diodes achieves safe voltage transmission, ensuring the stability and reliability of the entire power supply system.

[0054] In an exemplary embodiment, each of the N cascaded power receiving devices includes: a sampling circuit and a voltage comparator connected to the sampling circuit; receiving a feedback voltage fed back by the second power receiving device after receiving a detection voltage, and performing voltage detection based on the feedback voltage to obtain a voltage detection result, including: receiving the feedback voltage fed back by the second power receiving device through a cable via the sampling circuit included in the first power receiving device; inputting the feedback voltage to the voltage comparator via the sampling circuit included in the first power receiving device, and performing voltage detection on the feedback voltage via the voltage comparator included in the first power receiving device to obtain a voltage detection result.

[0055] It should be noted that after the second receiving device receives the detected voltage, it can feed back a feedback voltage via the signal pair line. At this time, the sampling circuit of the first receiving device can extract the feedback voltage from the signal pair line.

[0056] After the feedback voltage signal is extracted, the sampling circuit inputs the feedback voltage to a voltage comparator for further processing. A voltage comparator is a circuit used to compare an input voltage with a reference voltage; it determines whether the feedback voltage is within the expected window voltage range.

[0057] In some embodiments, the voltage comparator can internally set one or more reference voltages, i.e., window voltages. The window voltages can be preset according to the design requirements of the power supply system to detect the feedback voltage. The voltage comparator can compare the feedback voltage with the preset window voltage. If the feedback voltage falls within the window voltage range, it indicates that the feedback signal is valid and the connection status is normal; conversely, if the feedback voltage exceeds the window voltage range, it indicates a problem with the cable (such as a non-standard network cable) or that the second powered device is not correctly connected. Based on the comparison result between the feedback voltage and the reference voltage, the voltage comparator can output a high-level or low-level signal to indicate the detection result. If the feedback voltage meets expectations, the voltage comparator outputs a high level, indicating that the detection passed; if the feedback voltage is abnormal, the voltage comparator outputs a low level, indicating that the detection failed.

[0058] Once the voltage comparator of the first powered device outputs a voltage detection result, this result can be sent to the controller to determine whether to officially supply power to the second powered device. If the voltage detection result indicates a normal connection, the controller can control the enable circuit to turn on the P-MOS switch, allowing the official supply voltage to be output to the second powered device through the cascaded cable. Conversely, if the detection result is abnormal, the P-MOS switch will remain in the off state to prevent the official supply voltage from being output, thereby protecting the equipment and cables from damage.

[0059] In the above embodiments, the use of sampling circuits and voltage comparators enables effective monitoring of cables, ensuring that cables are in a safe and compliant state before formal power supply, thus providing a solid technical foundation for building a stable and reliable power supply system.

[0060] In some exemplary embodiments, voltage detection of the feedback voltage based on the voltage comparator included in the first powered device to obtain a voltage detection result includes: comparing the feedback voltage with a preset target voltage based on the voltage comparator included in the first powered device to determine a voltage difference; comparing the voltage difference with a set difference threshold to obtain a difference comparison result; and determining a voltage detection result based on the difference comparison result.

[0061] In this process, the sampling circuit inputs the feedback voltage to the voltage comparator, which then compares the feedback voltage with a preset target voltage and calculates the voltage difference between the two. This voltage difference reflects the deviation between the feedback voltage and the system's expected value, and is a key indicator for evaluating the cable's condition.

[0062] A voltage comparator compares a calculated voltage difference with a preset difference threshold. This threshold, set based on the voltage deviation range, defines a reasonable range for voltage variation, allowing for small voltage fluctuations during signal transmission due to cable resistance and environmental factors. If the voltage difference is less than the preset threshold, it indicates that the difference between the feedback voltage and the target voltage is within an acceptable range. In this case, the difference comparison result is normal, and the voltage comparator outputs an indication signal indicating that the detection passed. Conversely, if the voltage difference exceeds the preset threshold, it means there is a problem with the cable (e.g., a non-standard network cable was used) or the downstream device is not properly connected. In this case, the difference comparison result is abnormal, and the voltage comparator outputs another indication signal indicating that the detection failed.

[0063] In the above embodiments, this voltage detection and comparison process can effectively identify abnormal situations, take timely protective measures, prevent power transmission failures caused by non-standard network cables or equipment connection problems, and ensure the normal operation of the power supply system.

[0064] In an exemplary embodiment, any one of the N cascaded power receiving devices includes: a switching transistor; the switching transistor is connected to a power supply circuit; outputting the power supply voltage to a second power receiving device through a cable to power the second power receiving device includes: controlling the switching transistor to close through a control circuit included in the first power receiving device, so that the power supply voltage is input to the cable through the switching transistor included in the first power receiving device, and outputting the power supply voltage to the second power receiving device through the cable to power the second power receiving device.

[0065] Each powered device (e.g., the first powered device) includes a switching transistor directly connected to its power supply circuit. In this embodiment, the switching transistor generally refers to an N-channel MOSFET or a P-channel MOSFET, the specific type depending on the circuit design requirements. Its main function is to act as a switch between the adapter power supply and the cascaded power supply, controlling the direction of power flow.

[0066] One end of the switching transistor (source or drain) is connected to the internal power supply line of the device, which is the power input for the device. The other end (drain or source) is connected to the power input of the next stage device (such as a second powered device) via a cascade cable. The gate of the switching transistor is driven by the internal control circuit of the device, changing its on or off state according to the needs of the circuit.

[0067] When the first powered device needs to supply power to the second powered device, this process is led by the device's internal control circuitry. The control circuitry determines whether the supply voltage should be output through the switching transistor based on power detection results and priority management strategies. After confirming the power source (whether directly from the adapter or through cascaded power) and detecting a normal connection to the downstream device, the control circuitry generates a control signal that closes the switching transistor. If an N-channel MOSFET is used, the control signal will be a high-level signal, causing the MOSFET's gate-source voltage to exceed its threshold voltage, thereby turning on the MOSFET.

[0068] When the switching transistor is closed, it creates a low-resistance path from the power supply circuit to the cable, allowing the supply voltage to be output through this path. The supply voltage first enters the path where the switching transistor is turned on from the internal power supply line of the first powered device, and then is transmitted to the power input terminal of the second powered device through the connected cascaded cable, thus completing the power supply to the second powered device.

[0069] In N cascaded power receiving devices, the above-described supply voltage output process is repeated between each stage of the device. Each device transmits the supply voltage to the next stage of the device through its own switching transistors and control circuits, until the last stage. This cascaded power supply mechanism ensures that power can be transmitted sequentially and efficiently from the power source (adapter or initial power supply device) to every device in the entire cascaded link.

[0070] In the above embodiments, by setting a switching transistor, the powered equipment can achieve intelligent and safe power supply management, which improves the stability and efficiency of the entire power supply system, while also reducing maintenance costs and potential risks.

[0071] In an exemplary embodiment, any one of the N cascaded powered devices includes a sampling enable circuit. The method further includes: when power is supplied to the second powered device, outputting a disconnect signal to the sampling enable circuit included in the first powered device; when the sampling enable circuit included in the first powered device receives the disconnect signal, outputting a disconnect signal to the sampling circuit to shut down the sampling circuit.

[0072] Understandably, during the initial power supply phase, when the first powered device begins providing detection voltage to the second powered device, the sampling enable circuit is enabled. This means that the sampling circuit is activated and can detect the voltage signal fed back from the second powered device. The sampling circuit converts these signals into electrical signals that can be analyzed by the control circuit to determine whether the connection status of the cable and the second powered device is normal.

[0073] Once the first powered device detects that the power supply process is normal—that is, after voltage detection and comparison, it is determined that the connection status of the second powered device meets expectations and that the power supply is normal—the controller generates a disconnect signal and sends it to the sampling enable circuit. The purpose of the disconnect signal is to inform the sampling enable circuit that voltage detection is no longer necessary, as the power supply process has been verified as safe and normal. Upon receiving the disconnect signal, the sampling enable circuit responds immediately, outputting a disconnect signal to the sampling circuit, which shuts down the sampling circuit. Shutting down the sampling circuit reduces unnecessary power consumption and improves the overall system efficiency. Upon receiving the disconnect signal from the sampling enable circuit, the sampling circuit stops operating and ceases detecting voltage signals on the cable. This process ensures that the sampling circuit does not continuously consume power during normal power supply, while also avoiding interference with normal data transmission.

[0074] In the above embodiments, the sampling circuit consumes power during operation, especially when the cascaded power supply link is long and the number of devices is large, this loss will accumulate. Turning off the sampling circuit can significantly reduce this power loss and improve the power utilization efficiency of the entire power supply system.

[0075] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. To better understand the above method, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of this application. Specifically:

[0076] With the development of smart parking systems, multiple parking space detection cameras are typically installed. These cameras use a dual-port cascaded power supply method, where the upstream and downstream cameras are connected by a cable. This cable transmits both network signals and power to the downstream device, allowing one adapter to power multiple cameras. However, when powering the downstream cameras from the upstream cameras, it's crucial to verify the physical connection of the cable between them. Using non-standard cables could damage either the upstream or downstream camera.

[0077] Based on this, this application proposes a power supply method for the target device, referring to... Figure 2 The diagram shown is a structural diagram of the power supply method for the target device provided in an embodiment of this application. Figure 2 As can be seen from the diagram, the power supply system includes: cascaded power receiving device 1, power receiving device 2, and power receiving device N; in the actual installation process, the power supply device (i.e., the adapter) is connected to power receiving device 1, and then power receiving device 1 is connected to power receiving device 2 through a cable, and so on to obtain a power supply system including N cascaded power receiving devices. Figure 2 As can be seen from the diagram, power receiving device 1 is connected to power supply device, so power receiving device 1 is the first power receiving device, and power receiving device 2 is the subordinate device of the first power receiving device, that is, the second power receiving device. Power is supplied to the superior device (i.e., the first power receiving device) through an adapter, and the superior device supplies power to the subordinate device (i.e., the second power receiving device) through a cable, and so on until power receiving device N completes the power supply.

[0078] It should be noted that the reference Figure 3 The diagram shown is a structural schematic of the power receiving equipment. Figure 3 As can be seen from the diagram, each power receiving device includes a power interface, a detection module, a main system module, an input network port, a power supply module, a switch control and a lower-level feedback voltage detection module, and an output network port. Power receiving device 1 and power receiving device 2 are connected by a network cable (i.e., a cable).

[0079] There are two power supply methods when supplying power to electrical equipment, see reference. Figure 4 As shown, the system utilizes both adapter power supply and cascaded power supply. When the adapter is plugged in, the detection MOSFET and transistor are turned on, the cascaded MOSFET switch is turned off, and power is supplied by the adapter. When there is no adapter input, the detection MOSFET and transistor are turned off, the cascaded MOSFET switch is turned on, and power is supplied through the cascaded power supply. This detection circuit avoids the problem of simultaneous power supply conflict between the two, and the adapter input has higher priority than the cascaded power supply.

[0080] refer to Figure 5 The diagram shown is a schematic flowchart of a power supply method for a target device proposed in this application:

[0081] After the device is powered on, it checks whether it is powered by an adapter. If it is powered by an adapter, this device is the first-level device (i.e., the first powered device). The first-level device provides a detection voltage to the power supply line of the cable. This detection voltage is low and the path has voltage divider resistors, so it will not affect the network path or the devices passing through it. When a standard network cable conforming to the network port definition is inserted, the detection voltage enters the input network port of the next-level device (i.e., the second powered device) from the output network port of the first-level device. After passing through the center shaft of the network transformer of the input network port of the next-level device, it is transmitted in reverse from the network signal to the corresponding signal of the network port of the next-level device and then enters the detection module. If it is not powered by an adapter, this device is a cascaded device. It obtains the detection voltage from the next-level device. After passing through the center shaft of the network transformer of the input network port of the next-level device, it is transmitted in reverse from the network signal to the corresponding signal of the network port of the next-level device and then enters the detection module. The detection circuit identifies the voltage value returned by the next-level device and determines whether the voltage value identification is correct. If correct, it supplies power to the next-level circuit.

[0082] Referring to Figure 6(a), the voltage transmission process between the upstream device (i.e., the superior device) and the downstream device (i.e., the subordinate device) involves detection voltage, supply voltage, and feedback voltage. Specifically, the detection voltage can be transmitted through the detection path (i.e., the transmission pair (1 / 2 pair) in 6(a), the supply voltage through the supply path (i.e., the transmission pair (4 / 5 pair) in 6(a), and the feedback voltage through the return path (i.e., the transmission pair (7 / 8 pair) in 6(a)). During the voltage transmission process, some components, such as switching diodes and voltage divider resistors, will be involved. As shown in Figures 6(b) and 6(c), if a non-standard network cable that does not conform to the device's network port pin definitions is used, or if there is no downstream device (i.e., the subordinate device), on the one hand, the detection voltage... If the voltage cannot return to the detection circuit through the established loop, the main power switch is turned off, and no power is supplied to downstream devices. On the other hand, if a non-standard network cable can enable power conduction during the detection stage, and the conducted power flows to the main power supply, which can then flow to the network signal, the detection path has a voltage divider resistor with a large resistance value. The current flowing through the network transformer winding will be very low, and the network transformer will not burn out even after prolonged operation. This effectively avoids the situation where non-standard network cables are used during on-site network cable fabrication, bypassing the existing detection circuit and causing the current path to change from the main path to the network transformer path, thus damaging the network transformer.

[0083] like Figure 7 As shown, the detection module of the upper-level equipment detects the reference voltage and the detection voltage returned after passing through the lower-level equipment. Specifically, it can utilize... Figure 7The voltage sampling circuit shown comprises an enable circuit, a voltage comparator, a soft-start circuit, and a P-MOS transistor, forming a detection module. The enable circuit includes anti-oscillation functionality, ensuring a more stable power supply. The lower-level feedback voltage input, after voltage sampling, enters the voltage comparator. If it matches expectations, the enable circuit turns on, the P-MOS transistor switches on, and the main power switch conducts, allowing the upper-level device to supply power to the lower-level device. After normal power supply, the enable control circuit controls the enable circuit to shut down the voltage sampling circuit, reducing cascaded power supply losses and allowing a single adapter to power more devices. Because the main power supply voltage in the path is higher than the bias output circuit voltage, its built-in switching diode is reverse-biased to turn off, ensuring normal power supply to subsequent stages without affecting network data transmission.

[0084] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0085] According to another aspect of the embodiments of this application, a power supply device for a target device for implementing the power supply method of the above-described target device is also provided. For example... Figure 8 The device includes:

[0086] The conversion module 802 is used to convert the power supply voltage input to the power supply device through the first power receiving device in the N cascaded power receiving devices to obtain the detection voltage when the first power receiving device is connected to the power supply device. The first power receiving device is an integer greater than 1.

[0087] The first transmission module 804 is used to input the detected voltage to a second power receiving device connected to the first power receiving device through the cable; the N cascaded power receiving devices further include: the second power receiving device;

[0088] The receiving module 806 is used to receive the feedback voltage fed back by the second power receiving device after receiving the detection voltage, and to perform voltage detection based on the feedback voltage to obtain the voltage detection result;

[0089] The second transmission module 808 is used to output the power supply voltage through the cable to the second power receiving device when the voltage detection result indicates that the cable meets the power supply conditions, so as to supply power to the second power receiving device.

[0090] With the aforementioned device, when the first power receiving device in an N cascaded power receiving device is connected to the power supply device, the first power receiving device is controlled to convert the power supply voltage input from the power supply device to obtain a detection voltage. This detection voltage is then transmitted to the second power receiving device via a cable to receive the feedback voltage from the second power receiving device. This allows for voltage detection of the feedback voltage, obtaining a voltage detection result. Power is only supplied to the second power receiving device via the cable when the voltage detection result indicates that the cable meets the power supply conditions. This effectively avoids the problem of supplying power to faulty cables, which could damage the equipment and compromise the safety of the power supply.

[0091] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0092] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0093] According to one aspect of this application, a computer program product is provided, the computer program product comprising a computer program.

[0094] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0095] Figure 9 A schematic block diagram of a computer system architecture for implementing the controller of the embodiments of this application is shown.

[0096] It should be noted that, Figure 9 The computer system 900 of the controller shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0097] like Figure 9As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 902 or programs loaded from storage section 908 into random access memory (RAM). The RAM 903 also stores various programs and data required for system operation. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output interface 905 (I / O interface) is also connected to the bus 904.

[0098] The following components are connected to the input / output interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a local area network card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 99 is also connected to the input / output interface 905 as needed. A removable medium 99, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 99 as needed so that computer programs read from it can be installed into the storage section 908 as needed.

[0099] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 99. When the computer program is executed by central processing unit 901, it performs various functions defined in the system of this application.

[0100] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from the removable medium 99. When the computer program is executed by the central processing unit 901, it performs various functions provided in the embodiments of this application.

[0101] According to another aspect of the embodiments of this application, a controller for implementing the power supply method for the above-described target device is also provided. Figure 10 As shown, the controller includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in at least one of the above method embodiments via the computer program.

[0102] Optionally, in this embodiment, the controller may be located in at least one of a plurality of network devices in a computer network.

[0103] Optionally, in this embodiment, the processor may be configured to execute the methods in the embodiments of this application via a computer program.

[0104] Alternatively, as those skilled in the art will understand, Figure 10 The structure shown is for illustrative purposes only. Figure 10 This does not limit the structure of the controller described above. For example, the controller may also include a ratio Figure 10 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 10 The different configurations shown.

[0105] The memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the power supply method and apparatus of the target device in this embodiment. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, thereby realizing the power supply method of the target device described above. The memory 1002 may include high-speed random access memory, and may also include 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 1002 may further include memory remotely located relative to the processor 1004, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1002 may be used, but is not limited to, for device information and other information. As an example, such as... Figure 10 As shown, the memory 1002 may include, but is not limited to, the modules in the power supply device of the target device, which will not be described in detail in this example.

[0106] Optionally, the aforementioned transmission device 1006 is used to receive or send data via a network. Specific examples of the network may include wired and wireless networks. In one example, the transmission device 1006 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1006 is a radio frequency (RF) module used for wireless communication with the Internet.

[0107] In addition, the controller also includes: a display 1008 for displaying data transmitted by the target device; and a connection bus 1010 for connecting the various module components in the controller.

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

[0109] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a controller reads computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the controller to perform a power supply method for the target device provided in various alternative implementations of the power supply aspect of the target device.

[0110] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store methods for performing the embodiments of this application.

[0111] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0112] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0113] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause one or more controllers to execute all or part of the steps of the methods described in the various embodiments of this application.

[0114] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0115] In the several embodiments provided in this application, it should be understood that the disclosed application can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

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

[0117] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0118] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A power supply method for a target device, characterized in that, This is performed by a controller connected to the power supply system; The power supply system includes: N cascaded power receiving devices, which are connected to each other via cables; the method includes: When the first power receiving device in the N cascaded power receiving devices is connected to the power supply device, the first power receiving device is controlled to perform voltage conversion on the power supply voltage input by the power supply device to obtain the detection voltage, where N is an integer greater than 1; The detected voltage is input to a second power receiving device connected to the first power receiving device via the cable; the N cascaded power receiving devices further include: the second power receiving device; receiving the feedback voltage fed back by the second power receiving device after receiving the detected voltage, and performing voltage detection based on the feedback voltage to obtain a voltage detection result; If the voltage detection result indicates that the cable meets the power supply conditions, the power supply voltage is output to the second power receiving device through the cable to supply power to the second power receiving device.

2. The method according to claim 1, characterized in that, Each of the N cascaded power receiving devices includes: a step-down circuit; when the first power receiving device in the N cascaded power receiving devices is connected to a power supply device, controlling the first power receiving device to perform voltage conversion on the power supply voltage input to the power supply device to obtain a detection voltage includes: The step-down circuit included in the first power receiving device is controlled to step down the supply voltage to obtain the detection voltage.

3. The method according to claim 1, characterized in that, Each of the N cascaded power receiving devices includes: a voltage dividing resistor and a switching diode connected to the voltage dividing resistor; inputting the detected voltage to a second power receiving device connected to the first power receiving device via the cable includes: The detected voltage is input to the voltage divider resistor of the first powered device. The detected voltage is adjusted based on the voltage divider resistor of the first powered device to obtain an adjusted voltage. The adjusted voltage is input to the switching diode of the first powered device, and the adjusted voltage is input to the cable based on the switching diode of the first powered device, so as to input the adjusted voltage to the second powered device through the cable.

4. The method according to claim 1, characterized in that, Each of the N cascaded power receiving devices includes: a sampling circuit, and a voltage comparator connected to the sampling circuit; receiving a feedback voltage from the second power receiving device after receiving the detected voltage, and performing voltage detection based on the feedback voltage to obtain a voltage detection result, including: The first power receiving device receives a feedback voltage fed back by the second power receiving device through the cable via the sampling circuit included in the first power receiving device; The feedback voltage is input to the voltage comparator through the sampling circuit included in the first powered device, and the voltage comparator included in the first powered device performs voltage detection on the feedback voltage to obtain a voltage detection result.

5. The method according to claim 4, characterized in that, The feedback voltage is detected by a voltage comparator included in the first power receiving device to obtain a voltage detection result, including: The feedback voltage is compared with a preset target voltage based on the voltage comparator included in the first power receiving device to determine the voltage difference. The voltage difference is compared with a set difference threshold to obtain the difference comparison result; The voltage detection result is determined based on the difference comparison result.

6. The method according to claim 1, characterized in that, Each of the N cascaded power receiving devices includes: a power supply circuit; when the voltage detection result indicates that the cable meets the power supply conditions, outputting the power supply voltage to the second power receiving device to power the second power receiving device, including: When the voltage detection result indicates that the voltage difference is less than the difference threshold, a power supply voltage is generated through the power supply circuit of the first power receiving device, and the power supply voltage is output to the second power receiving device through the cable to power the second power receiving device.

7. The method according to claim 6, characterized in that, Each of the N cascaded power receiving devices includes: a switching transistor; the switching transistor is connected to the power supply circuit; the power supply voltage is output to the second power receiving device through the cable to power the second power receiving device, including: The switch is controlled to close so that the power supply voltage is input to the cable through the switch included in the first power receiving device, and the power supply voltage is output to the second power receiving device through the cable to power the second power receiving device.

8. The method according to claim 1, characterized in that, Each of the N cascaded power receiving devices includes a sampling enable circuit, and the method further includes: When power is supplied to the second powered device, a disconnect signal is output to the sampling enable circuit included in the first powered device. When the sampling enable circuit included in the first powered device receives the disconnect signal, the disconnect signal is output to the sampling circuit to shut down the sampling circuit.

9. 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 a controller to perform the method of at least one of claims 1 to 8.

10. A controller, comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in at least one of claims 1 to 8 through the computer program.