Power distribution state detection circuit, method and equipment
By designing a distribution state detection circuit, using the combination of a voltage divider circuit and a load access circuit, simultaneous detection of multiple distribution ports of the area controller is achieved, solving the problem of low detection efficiency in the prior art, and improving detection efficiency and accuracy.
Patent Information
- Application Number
- CN202510020962.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, the detection efficiency of the distribution port of the regional controller is low, and it is necessary to manually build a power circuit for testing, and it is impossible to detect the status of multiple distribution ports at the same time.
A distribution state detection circuit is designed, including a voltage divider circuit, a plurality of load access circuits and voltage detection control components. Through the combination of the voltage divider circuit and the load access circuit, the detection circuit can simultaneously determine the power-on and power-off status of multiple distribution ports during one detection process.
This detection circuit can significantly improve the detection efficiency of multiple distribution ports of the area controller, reduce test time and labor costs, and provide more accurate judgment of the distribution status.
Smart Images

Figure CN119780574A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and more specifically, to a power distribution state detection circuit, method and device. Background Art
[0002] The zone controller (ZCU) is an important component of modern automotive electronic systems. It is mainly responsible for managing and controlling multiple electronic modules in the vehicle to ensure the normal operation of various functions of the vehicle. In the application of the automotive body domain and the automotive entertainment domain, each zone controller is usually equipped with multiple distribution ports, which are responsible for providing power to different loads. The power output of each distribution port is directly related to whether the load connected to it can work normally. Therefore, the test of each distribution channel, especially the detection of electrical information, is crucial to ensure the reliability and safety of the entire distribution subsystem.
[0003] However, the current detection of the power distribution port of the regional controller usually adopts the method of manually building an electrical circuit for a single power distribution channel for testing. For example, the power distribution channel is connected in series with a fixed value resistor and an LED light and then grounded. When the power distribution channel is powered on, the LED light lights up, indicating that the power distribution channel is powered on successfully; when the power distribution channel is de-energized, the LED light goes out, indicating that the power distribution channel is de-energized successfully. Although the above-mentioned detection method of the power distribution port can basically meet the test requirements, there is a problem of low detection efficiency in the related technology. Summary of the invention
[0004] In view of this, the embodiments of the present application propose a power distribution status detection circuit, method and device, which can simultaneously detect the power distribution status of multiple power distribution ports of the regional controller in one detection process, thereby effectively improving the power distribution status detection efficiency of multiple power distribution ports of the regional controller.
[0005] In the first aspect, an embodiment of the present application provides a power distribution status detection circuit, comprising: a voltage divider circuit; a plurality of load access circuits, wherein the input end of each load access circuit is used to be connected to a power distribution port of a regional controller, and the output end is respectively connected to the input end of the voltage divider circuit, the output end of the voltage divider circuit is grounded, and the load size corresponding to each load access circuit and the load size of a new load formed by connecting any at least two of the plurality of load access circuits in parallel are all different; a voltage detection control component, wherein the voltage detection control component is connected to both ends of the voltage divider circuit, and is used to detect the voltage across the voltage divider circuit to obtain a detection voltage, and is used to determine the power distribution state of the power distribution port corresponding to each load access circuit according to the detection voltage and the power-on voltage of the regional controller, and the power distribution state of each distribution port includes a power-on state or a power-off state.
[0006] In one possible implementation mode, the voltage detection control component stores a plurality of load access circuit sets and voltage division ratio values corresponding to each load access circuit set, each load access circuit set includes at least one load access circuit, and the voltage division ratio value corresponding to the load access circuit set is used to indicate the ratio of the load of the voltage division circuit to the sum of the load formed by connecting each load access circuit in the load access circuit set in parallel and the load of the voltage division circuit; the voltage detection control component is also used to determine the reference voltage corresponding to each load access circuit set according to the power-on voltage and the voltage division ratio value corresponding to each load access circuit set; determine the load access circuit set corresponding to the reference voltage having the smallest difference with the detection voltage as the target load access circuit set; determine the power distribution state of the distribution port connected to each load access circuit in the target load access circuit set as the power-on state, and determine the power distribution state of the distribution port connected to other load access circuits among the multiple load access circuits except the load access circuit in the target load access circuit set as the power-off state.
[0007] In one possible implementation, the voltage detection control component detects multiple detection voltages, and the voltage detection control component is also used to determine a target detection voltage based on the multiple detection voltages, and determine a load access circuit set corresponding to a reference voltage having a minimum difference with the target detection voltage as a target load access circuit set.
[0008] In one possible implementation manner, the voltage-dividing circuit includes a voltage-dividing resistor, one end of the voltage-dividing resistor is connected to the output end of each load access circuit, and the other end of the voltage-dividing resistor is grounded.
[0009] In one possible implementation, the load access circuit includes a load resistor, a first end of the load resistor is used to be connected to a power distribution port of the regional controller, and a second end of the load resistor is connected to an input end of the voltage divider circuit.
[0010] In one possible implementation manner, the multiple load access circuits include a first load access circuit, a second load access circuit and a third load access circuit; the load size of the first load access circuit is the same as the load size of the voltage divider circuit, the load size of the second load access circuit is twice the load size of the first load access circuit, and the load size of the third load access circuit is three times the load size of the first load access circuit.
[0011] In one possible implementation manner, the plurality of load connection circuits further include a fourth load connection circuit, and a load size of the fourth load connection circuit is four times that of the first load connection circuit.
[0012] In one possible implementation, the voltage detection control component includes a CAN development environment hardware interface card, and the CAN development environment hardware interface card is used to collect the voltage across the voltage divider circuit at intervals of a preset time length to obtain the detection voltage.
[0013] In one possible implementation, the voltage detection control component includes a controller and a voltage detector connected to the controller, the voltage detector being respectively connected to the input and output ends of the voltage divider circuit, and being used to collect the voltage across the voltage divider circuit at every preset time interval to obtain a detection voltage, the controller being used to determine the power distribution state of the distribution port corresponding to each load access circuit based on the detection voltage and the power-on voltage when the distribution port is powered on, the power distribution state of the distribution port including whether the distribution port is in a power-on state or a power-off state.
[0014] In the second aspect, an embodiment of the present application provides a power distribution status detection method, which is applied to the voltage detection control component in the aforementioned power distribution status detection circuit, and the method includes: obtaining the power-on voltage of the regional controller and the detection voltage obtained by the power distribution status detection circuit performing voltage detection on the voltage divider circuit in the power distribution status detection circuit; determining the power distribution status of the power distribution port corresponding to each load access circuit based on the power-on voltage of the regional controller and the detection voltage, and the power distribution status of each of the distribution ports includes a power-on state or a power-off state.
[0015] In one possible implementation, the voltage detection control component stores a plurality of load access circuit sets and voltage division ratio values corresponding to each load access circuit set, each load access circuit set includes at least one load access circuit, and the voltage division ratio value corresponding to the load access circuit set is used to indicate the ratio of the load of the voltage division circuit to the sum of the load formed by connecting each load access circuit in parallel in the load access circuit set and the load of the voltage division circuit; the determining of the power distribution state of the distribution port corresponding to each load access circuit connected according to the power-on voltage of the regional controller and the detection voltage comprises: determining a reference voltage corresponding to each load access circuit set according to the power-on voltage and the voltage division ratio value corresponding to each load access circuit set; determining the load access circuit set corresponding to the reference voltage having the smallest difference with the detection voltage as the target load access circuit set; determining the power distribution state of the distribution port connected to each load access circuit in the target load access circuit set as a power-on state, and determining the power distribution state of the distribution port connected to other load access circuits among the multiple load access circuits except the load access circuits in the target load access circuit set as a de-powered state.
[0016] In one possible implementation, obtaining the detection voltage obtained by the power distribution status detection circuit performing voltage detection on the voltage divider circuit in the power distribution status detection circuit includes: obtaining multiple voltages obtained by the power distribution status detection circuit performing voltage detection on the voltage divider circuit in the power distribution status detection circuit within a preset time period; eliminating K voltages with the largest voltage values and K voltages with the smallest voltage values from the multiple voltages to obtain multiple candidate voltages, where K is a positive integer; and averaging the multiple candidate voltages to obtain the detection voltage.
[0017] In the third aspect, an embodiment of the present application provides a power distribution status detection device, including a display device and the above-mentioned power distribution status detection circuit, wherein the display device is connected to the power distribution status detection circuit and is used to display the power distribution status of the distribution port connected to each load access circuit in the power distribution status detection circuit.
[0018] In one possible implementation, the power distribution status detection device further includes a box, the power distribution status detection circuit is disposed in the box, and the display device is disposed on an outer surface of the box.
[0019] The embodiment of the present application provides a power distribution state detection circuit, method and device. The power distribution state detection circuit is provided by setting a voltage divider circuit, multiple load access circuits and a voltage detection control component, and the input end of each load access circuit is used to connect to a power distribution port of a regional controller, and the output end is respectively connected to the input end of the voltage divider circuit, and the output end of the voltage divider circuit is grounded. The load size corresponding to each load access circuit and the load size of the new load formed by any at least two load access circuits in the multiple load access circuits connected in parallel are all different. The voltage detection control component is connected to the two ends of the voltage divider circuit, and is used to detect the voltage at the two ends of the voltage divider circuit to obtain the detection voltage, and is used to determine the power distribution state of the power distribution port corresponding to each load access circuit according to the detection voltage and the power-on voltage of the regional controller. The power distribution state of each power distribution port includes a power-on state or a power-off state. By adopting the above-mentioned settings, the power distribution state detection circuit can simultaneously detect and determine the power-on and power-off states of multiple power distribution ports in a single detection process, thereby greatly reducing the time and labor costs required for testing and improving detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A principle block diagram of a power distribution state detection circuit proposed in an embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram of a zone controller provided in an embodiment of the present application is shown;
[0023] Figure 3 A circuit schematic diagram of a power distribution state detection circuit proposed in an embodiment of the present application is shown;
[0024] Figure 4 A schematic diagram of the structure of a voltage detection control component provided in an embodiment of the present application is shown;
[0025] Figure 5 A schematic diagram of a flow chart of a power distribution state detection method proposed in an embodiment of the present application is shown;
[0026] Figure 6 A schematic diagram of a process of performing power distribution state detection using a power distribution state detection device proposed in an embodiment of the present application is shown;
[0027] Figure 7 A schematic diagram of a display interface of a display device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0029] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0032] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0033] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0034] Please refer to Figure 1 and Figure 2 , Figure 1 The present application also provides a power distribution state detection circuit 100, which may include a voltage divider circuit 110, multiple load access circuits 120, and a voltage detection control component 130. Figure 1 FIG. 4 shows a case where the number of load access circuits 120 is 4. It should be understood that Figure 1 This is for illustration only, and more or fewer loads may be connected to the circuit 120, which can be set according to actual needs.
[0035] Among them, the input end of each load access circuit 120 is used to connect to a distribution port of the regional controller, and the output end is respectively connected to the input end of the voltage divider circuit 110, the output end of the voltage divider circuit 110 is grounded, the load size corresponding to each load access circuit 120 and the load size of the new load formed by connecting any at least two load access circuits 120 in parallel among the multiple load access circuits 120 are all different, the voltage detection control component 130 is connected to the two ends of the voltage divider circuit 110, and is used to detect the voltage at both ends of the voltage divider circuit 110 to obtain the detection voltage, and is used to determine the distribution state of the distribution port corresponding to each load access circuit 120 according to the detection voltage and the power-on voltage of the regional controller, and the power distribution state of each distribution port includes a power-on state or a power-off state.
[0036] By adopting the above-mentioned power distribution state detection circuit 100, since the load size of each load access circuit 120 is different, and the load size of each load access circuit 120 is different from the load size of the new load formed by connecting any at least two load access circuits 120 in parallel among the multiple load access circuits 120, this means that when different power distribution ports are powered on, the voltage values generated by the voltage divider circuit 110 will also be different. Therefore, by detecting the voltage across the voltage divider circuit 110, it is possible to uniquely determine whether the power distribution state of the power distribution port connected to each load access circuit 120 is a power-on state or a power-off state. Thus, in one detection process, the power distribution state of multiple power distribution ports of the regional controller is detected at the same time, and the power distribution state of each power distribution port is obtained, which greatly improves the detection efficiency of multiple power distribution ports of the regional controller.
[0037] Among them, the voltage detection control component 130 can store the load size corresponding to the voltage divider circuit 110 and the load size corresponding to each load access circuit 120. The voltage detection control component 130 can determine multiple load access circuit sets and the voltage division ratio value corresponding to each load access circuit set based on the load size corresponding to the voltage divider circuit 110 and the load size corresponding to each load access circuit 120. Among them, a load access circuit set includes at least one load access circuit 120, and the voltage division ratio value corresponding to the load access circuit set is used to indicate the ratio of the load of the voltage divider circuit 110 to the sum of the load formed by connecting each load access circuit 120 in parallel in the load access circuit set and the load of the voltage divider circuit 110.
[0038] It is worth mentioning that if the number of the multiple load access circuits 120 is n, the number of the load access circuit set composed of the multiple load access circuits 120 is 2. n -1 pc.
[0039] Exemplarily, if the plurality of load access circuits 120 include a first load access circuit, a second load access circuit, and a third load access circuit, the plurality of load access circuit sets include set 1 (consisting of the first load access circuit), set 2 (consisting of the second load access circuit), set 3 (consisting of the third load access circuit), set 4 (consisting of the first load access circuit and the second load access circuit), set 5 (consisting of the first load access circuit and the third load access circuit), set 6 (consisting of the second load access circuit and the third load access circuit), and set 7 (consisting of the first load access circuit, the second load access circuit, and the third load access circuit).
[0040] If the load size corresponding to the voltage divider circuit 110 is r0, the load size corresponding to the first load access circuit is r1, the load size corresponding to the second load access circuit is r2, and the load size corresponding to the third load access circuit is r3, then the voltage divider ratio value corresponding to set 1 is r0 / (r0+r1); the voltage divider ratio value corresponding to set 2 is r0 / (r0+r2); the voltage divider ratio value corresponding to set 3 is r0 / (r0+r3); the voltage divider ratio value corresponding to set 4 is r0 / (r0+r4), where r4 is the voltage divider ratio value between the first load access circuit and the third load access circuit. The load obtained after the two load access circuits are connected in parallel; the voltage division ratio value corresponding to set 5 is r0 / (r0+r5), and r5 is the load obtained after the first load access circuit and the third load access circuit are connected in parallel; the voltage division ratio value corresponding to set 6 is r0 / (r0+r6), and r6 is the load obtained after the second load access circuit and the third load access circuit are connected in parallel; the voltage division ratio corresponding to set 7 is r0 / (r0+r7), and r7 is the load obtained after the first load access circuit, the second load access circuit and the third load access circuit are connected in parallel.
[0041] The voltage detection control component 130 is also used to determine the reference voltage corresponding to each load connection circuit set based on the power-on voltage and the voltage division ratio value corresponding to each load connection circuit set; determine the load connection circuit set corresponding to the reference voltage with the smallest difference from the detection voltage as the target load connection circuit set; determine the power distribution state of the distribution port connected to each load connection circuit 120 in the target load connection circuit set to be a power-on state, and determine the power distribution state of the distribution port connected to other load connection circuits 120 among the multiple load connection circuits 120 except the load connection circuits 120 in the target load connection circuit set to be a power-off state.
[0042] For example, if the power-on voltage is 12V, the voltage division ratio value corresponding to each load connection circuit set can be multiplied by the power-on voltage 12V to obtain the reference voltage corresponding to each load connection circuit set. The reference voltage indicates the reference voltage drop across the voltage divider circuit 110 when the power distribution status of each load connection circuit 120 in the load connection circuit set is powered on.
[0043] By precalculating and storing the voltage division ratio values corresponding to different load access circuit sets, the computational burden at runtime can be significantly reduced. Subsequently, only the detection voltage needs to be compared with the reference voltage of each load access circuit set to automatically match the closest reference voltage, thereby determining the target load access circuit set, and determining that the power distribution state of the power distribution port connected to each load access circuit 120 in the target load access circuit set is the power-on state, and determining that the power distribution state of the power distribution port connected to other load access circuits 120 is the power-off state. This enables the voltage detection control component 130 to quickly and accurately identify the power distribution state of the power distribution interface currently connected to each load access state, thereby realizing the simultaneous detection of the power distribution states of multiple power distribution ports of the regional controller during one detection process.
[0044] In one embodiment, the plurality of load access circuits 120 include a first load access circuit, a second load access circuit, and a third load access circuit. The load size of the first load access circuit is the same as the load size of the voltage divider circuit 110, the load size of the second load access circuit is twice the load size of the first load access circuit, and the load size of the third load access circuit is three times the load size of the first load access circuit.
[0045] By adopting the above-mentioned settings, the loads corresponding to the different load access circuit sets can be significantly distinguished, so that the detection voltages obtained by detecting the voltage divider circuit 110 after connecting to different load access circuit sets have significant differences, thereby helping to more accurately identify the power distribution status of the distribution port as a power-on state or a power-off state.
[0046] In one possible implementation, the plurality of load connection circuits 120 further include a fourth load connection circuit, wherein the load size of the fourth load connection circuit is four times the load size of the first load connection circuit.
[0047] Among them, the load size of the first load access circuit can be 5 ohms, 10 ohms, 20 ohms or 50 ohms, etc., which can be set according to actual needs.
[0048] For example, Figure 3 As shown, the first load access circuit includes a first resistor R1, the second load access circuit includes a second resistor R2, the third load circuit includes a third resistor R3, the fourth load access circuit includes a fourth resistor R4, and the voltage divider circuit includes a voltage divider resistor R0, wherein the first resistor R1 has the same resistance as the voltage divider resistor R0 (that is, the load size is the same), the resistance of the second resistor R2 is twice the resistance of the first resistor R1, the resistance of the third resistor R3 is three times the resistance of the first resistor R1, and the resistance of the fourth resistor R4 is four times the resistance of the first resistor R1.
[0049] By adopting the above-mentioned settings, the detection efficiency of the power distribution status detection circuit 100 can be further improved, so that the power distribution status of the four distribution ports of the regional controller can be detected simultaneously during one detection process. In addition, during the detection process, the voltage division ratios corresponding to different load access circuit sets can be significantly distinguished, thereby improving the detection accuracy.
[0050] As shown in Table 1, when the load size corresponding to the voltage divider circuit 110 is 10Ω, and the number of the multiple load access circuits 120 is 4, specifically including the first load access circuit (the load size is 10Ω, and the corresponding distribution channel is a), the second load access circuit (the load size is 20Ω, and the corresponding distribution channel is b), the third load access circuit (the load size is 30Ω, and the corresponding distribution channel is c), and the fourth load access circuit (the load size is 40Ω, and the corresponding distribution channel is c), 2 4 -1 load access circuit set (the serial numbers of each load access circuit set are 1 to 15 in sequence), the power distribution channel information of each load access circuit set is the information of the load access circuit 120 included in each load access circuit set, and exemplarily, the load access circuit set with serial number 1 includes the first load access circuit a, and the load access circuit set with serial number 15 includes the first load access circuit a, the second load access circuit b, the third load access circuit c and the fourth load access circuit d. Table 1 also shows the load generated by the load access circuits 120 in each load access circuit set being connected in parallel and the voltage divider ratio of the voltage divider circuit 110, and Table 1 is as follows:
[0051]
[0052] According to Table 1, when the load access circuits 120 in different load access circuit sets are powered on, the loads generated after the load access circuits 120 in each load access circuit set are connected in parallel are different, and their corresponding voltage division ratios are also different. The reference voltages obtained by multiplying the voltage division ratios corresponding to each load access circuit set by the power-on voltage are also different, and the difference in the reference voltages corresponding to different load access circuit sets is large. Therefore, the detection voltage is compared with the reference voltages corresponding to different load access circuit sets, and the load access circuit set corresponding to the reference voltage with the smallest difference with the detection voltage is determined as the target load access circuit set, and the power distribution state of the distribution port connected to each load access circuit 120 in the target load access circuit set is determined to be the power-on state, and the power distribution state of the distribution port connected to other load access circuits 120 in multiple load access circuits 120 except the load access circuit 120 in the target load access circuit set is determined to be the power-off state, thereby ensuring the accuracy of the determination of the power distribution state of each load access circuit 120.
[0053] Among them, the voltage divider circuit 110 can be any circuit that can be used to divide the voltage of the distribution port to generate a voltage signal suitable for detection by the voltage detection control component 130. It can include voltage divider resistors, and can also include one or more electrical components such as capacitors, voltage regulator diodes and voltage regulators.
[0054] In one possible implementation of the present application, the voltage divider circuit 110 includes a voltage divider resistor, one end of the voltage divider resistor is connected to the output end of each load access circuit 120, and the other end is grounded.
[0055] If the voltage divider circuit 110 further includes a voltage regulator diode or a voltage regulator, the voltage divider resistor can be connected to the output end of each load access circuit 120 through the voltage regulator diode or the voltage regulator. Specifically, when the voltage divider circuit 110 includes a voltage regulator diode, the anode of the voltage regulator diode is connected to the output end of each load access circuit 120, and the cathode is connected to the voltage divider resistor.
[0056] By properly selecting the resistance value of the voltage divider resistor, the voltage of the power distribution port can be divided according to a certain ratio, thereby generating a voltage value suitable for detection. The resistance value of the voltage divider resistor should be selected to ensure that when different power distribution ports are powered on and off, the voltage change across the voltage divider circuit 110 is sufficiently obvious so that the voltage detection control component 130 can accurately determine the state of each power distribution port.
[0057] The load access circuit 120 may be any circuit that can be connected to the power distribution port of the regional controller and the voltage divider circuit 110, respectively, and provide a load of a specific size to cause the voltage divider circuit 110 to produce a unique voltage change, so that the voltage detection control component 130 can accurately determine the power-on or power-off state of each power distribution port. Specifically, the load access circuit 120 may include a load resistor.
[0058] When the load access circuit 120 includes a load resistor, a first end of the load resistor is used to be connected to a power distribution port of the regional controller, and a second end of the load resistor is connected to an input end of the voltage divider circuit 110 .
[0059] It should be understood that the number of load resistors connected to each load access circuit 120 can be the same or different, and can be set according to actual needs, as long as the load size of each load access circuit 120 is different and the voltage change generated by each power distribution port during power-on and power-off is unique.
[0060] In some embodiments, the load access circuit 120 may further include a connector for connecting to a power distribution port of a regional controller to facilitate installation and maintenance.
[0061] In some embodiments, the load access circuit 120 may further include a diode, wherein the load resistor is connected to the distribution port through the diode, and the anode of the diode is used to connect to the distribution port, and the cathode is connected to the load resistor to prevent reverse voltage or isolate different distribution ports to prevent current backflow.
[0062] The voltage detection control component 130 can be any device that can detect the voltage across the voltage-collecting voltage-dividing circuit 110 and determine the power distribution status of each power distribution port connected to each load access circuit 120 according to the detected voltage. Exemplarily, the voltage detection control component 130 includes a voltage detection component and a controller; Exemplarily, the voltage detection control component 130 can also be a CAN development environment hardware interface card.
[0063] In one possible implementation, if the voltage detection control component 130 includes a controller and a voltage detector connected to the controller, the voltage detector is respectively connected to the input and output ends of the voltage divider circuit 110, and is used to collect the voltage across the voltage divider circuit 110 at every preset time interval to obtain a detection voltage, and the controller is used to determine the power distribution state of the distribution port corresponding to each load access circuit 120 based on the detection voltage and the power-on voltage when the distribution port is powered on, and the power distribution state of the distribution port includes whether the distribution port is in a power-on state or a power-off state.
[0064] The voltage detector is used to collect the voltage at both ends of the voltage divider circuit 110. It can be a high-precision ADC (analog-to-digital converter) and can be integrated in a microcontroller or a dedicated voltage detection chip. The voltage detection end of the voltage detector is connected to both ends of the voltage divider circuit 110, and the detection output end is connected to the controller. The controller can be a microcontroller, a single-chip microcomputer or an embedded system, which is used to receive the voltage value collected by the voltage detector, perform data processing, and determine the power distribution status of the power distribution port connected to each load access circuit 120 according to the processing result.
[0065] It is worth mentioning that when the voltage detector collects the voltage across the voltage divider circuit 110, it can collect the voltage once every preset time interval to collect multiple voltages. After that, the controller can remove the K maximum values and K minimum values from the multiple voltages to obtain multiple candidate voltages, and average the multiple candidate voltages to obtain the final detection voltage for subsequent calculations, where K is a positive integer. The controller can also directly extract the median or mean from the multiple detection voltages as the final detection voltage for subsequent calculations.
[0066] In another possible implementation, the voltage detection control component 130 includes a CAN development environment hardware interface card, and the CAN development environment hardware interface card is used to collect the voltage across the voltage divider circuit 110 at intervals of a preset duration to obtain a detection voltage.
[0067] like Figure 4 As shown, a schematic diagram of the voltage detection control component 130 is shown when it is a CAN development environment hardware interface card, wherein CAN (Controller Area Network) is a serial communication protocol for real-time applications, which is widely used in the fields of automobiles, industrial automation, etc., and includes a ground port and a detection port, wherein the detection port is connected to the input end of the voltage divider circuit, and the ground port is connected to the ground to detect the voltage at both ends of the voltage divider circuit.
[0068] The CAN development environment hardware interface card usually includes the following parts: a CAN controller, a CAN transceiver, a microcontroller, an analog input channel and a communication interface, wherein the CAN controller is responsible for processing the physical layer and the data link layer of the CAN protocol; the CAN transceiver is used to convert the digital signal of the CAN controller into a differential signal of the physical layer, and vice versa; the microcontroller is used for data acquisition and processing; the analog input channel: used to acquire the voltage signal of the voltage divider circuit 110; the USB interface: used to communicate with a PC or other devices.
[0069] Among them, the main function of the CAN development environment hardware interface card is: using the analog input channel of the CAN development environment hardware interface card to collect the voltage across the voltage divider circuit 110 at preset intervals, and transmitting the data to the controller of the CAN development environment hardware interface card through the CAN bus. The controller removes the maximum and minimum values from the collected multiple voltages to reduce the impact of noise, and calculates the average of the remaining voltages (candidate voltages) after removing K maximum values and K minimum values from the multiple voltages to obtain the final detection voltage.
[0070] It is worth mentioning that the CAN development environment hardware interface card runs in the CAN development environment. The CAN development environment hardware interface card can collect the voltage division value of the voltage division circuit 110 through the analog input channel and transmit the data to the microcontroller through the CAN bus. The microcontroller can run the CAPL script (CAN Access Programming Language) to achieve multiple voltages collected through the analog input channel, remove K maximum values and K minimum values from the multiple voltages, and obtain multiple candidate voltages to reduce the influence of noise. Thereafter, the multiple candidate voltages are averaged to obtain the detection voltage. Thereafter, a reference voltage with the smallest difference with the detection voltage is determined from the reference voltages corresponding to the multiple load access circuit sets, and the load access circuit set corresponding to the reference voltage with the smallest difference with the detection voltage is determined as the target load access circuit set, and the power distribution state of the power distribution port connected to each load access circuit 120 in the target load access circuit set is determined to be a power-on state, and the power distribution state of the power distribution port connected to other load access circuits 120 in the multiple load access circuits 120 except the load access circuit 120 in the target load access circuit set is determined to be a power-off state.
[0071] Since the CAN development environment hardware interface card has a high integration effect and a simple structure that is easy to connect and use, in addition, the analog input channel it includes has high accuracy and can provide high-resolution voltage measurement to improve detection accuracy, and its microcontroller can run CAPL scripts to realize power distribution status detection of the power distribution port. Therefore, the use of the CAN development environment hardware interface card through the voltage detection control component 130 can effectively improve the convenience of using the power distribution status detection circuit 100 and reduce the circuit structure complexity of the power status detection circuit.
[0072] See also Figure 5 As shown, an embodiment of the present application further provides a power distribution state detection method, which is applied to the voltage detection control component 130 in the power distribution state detection circuit 100 of the aforementioned embodiment, and the method includes step S210 and step S220.
[0073] Step S210 : acquiring the power-on voltage of the zone controller and the detection voltage obtained by the power distribution state detection circuit 100 performing voltage detection on the voltage divider circuit 110 in the power distribution state detection circuit 100 .
[0074] Step S220: Determine the power distribution state of the power distribution port corresponding to each load access circuit 120 according to the power-on voltage of the regional controller and the detection voltage.
[0075] The power distribution state of each of the power distribution ports includes a power-on state or a power-off state.
[0076] For the detailed description of the above step S210 and step S220, please refer to the detailed description of the above embodiment, which will not be repeated here.
[0077] In one possible implementation, the above-mentioned step S210 includes: obtaining multiple voltages obtained by the power distribution status detection circuit 100 performing voltage detection on the voltage divider circuit 110 in the power distribution status detection circuit 100 within a preset time length; eliminating K voltages with the largest voltage values and K voltages with the smallest voltage values from the multiple voltages to obtain multiple candidate voltages, where K is a positive integer; and averaging the multiple candidate voltages to obtain a detection voltage.
[0078] In one possible implementation, the voltage detection control component 130 stores a plurality of load access circuit sets and voltage division ratio values corresponding to each load access circuit set, each load access circuit set including at least one load access circuit 120, and the voltage division ratio value corresponding to the load access circuit set is used to indicate the ratio of the load of the voltage division circuit 110 to the sum of the load formed by connecting each load access circuit 120 in the load access circuit set in parallel and the load of the voltage division circuit 110; the above-mentioned step S220 includes: determining the reference voltage corresponding to each load access circuit set according to the power-on voltage and the voltage division ratio value corresponding to each load access circuit set; determining the load access circuit set corresponding to the reference voltage having the smallest difference with the detection voltage as the target load access circuit set; determining that the power distribution state of the distribution port connected to each load access circuit 120 in the target load access circuit set is a power-on state, and determining that the power distribution state of the distribution port connected to other load access circuits 120 among the multiple load access circuits 120 except the load access circuit 120 in the target load access circuit set is a power-off state.
[0079] It should be understood that, unless otherwise specified herein, the execution of these steps is not strictly limited in order, and these steps may be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0080] An embodiment of the present application also provides a power distribution status detection device, including a display device and the above-mentioned power distribution status detection circuit 100, wherein the display device is connected to the power distribution status detection circuit 100 and is used to display the power distribution status of the distribution port connected to each load access circuit 120 in the power distribution status detection circuit 100.
[0081] The display device may be a liquid crystal display, an LED display, or any terminal device with a display function, which is not specifically limited here. The display device may be connected to the power distribution state detection circuit 100 in a specific manner such that the display device is connected to the voltage detection control component 130 in the power distribution state detection circuit 100 by wire or wireless means, as long as the display device can display the power distribution state of the power distribution port connected to each load access circuit 120 in the power distribution state detection circuit 100.
[0082] By adopting the above configuration, the user can intuitively understand the power distribution status of the power distribution port connected to each load access circuit 120 through the display device.
[0083] In one possible implementation, the power distribution state detection device further includes a box, the power distribution state detection circuit 100 is disposed in the box, and the display device is disposed on an outer surface of the box.
[0084] The box structure can be any, such as a regular shape such as a cuboid, a cube, or any irregular shape, and can be set according to actual needs.
[0085] By integrating the power distribution state detection circuit 100 and the display device into one box, the volume of the power distribution state detection device can be reduced, making it easier for users to carry and use the power distribution state detection device.
[0086] For example, Figure 6 As shown, if the aforementioned power distribution state detection device is used to detect the power distribution state of the power distribution port of the regional controller, the power-on voltage (such as 12V) of the regional controller can be obtained first and stored in the power distribution state detection device. Afterwards, multiple load access circuits 120 of the power distribution state detection device can be connected to multiple power distribution ports of the regional controller, and each power distribution port is connected to a load access circuit 120. Specifically, the multiple load access circuits 120 are 4, and the load size of each load access circuit 120 and the voltage divider circuit 110 can refer to Table 1. Afterwards, the voltage detection control component 130 (such as the CAN development environment hardware interface card) collects the voltage of the voltage divider circuit 110 at every preset time interval to obtain multiple groups of voltages, and the voltage detection control component 130 determines the reference voltage corresponding to each load access circuit set according to the power-on voltage and the voltage divider ratio value corresponding to each load access circuit set; and determines the power distribution state of the distribution port connected to each load access circuit 120 based on the reference voltage corresponding to each load access circuit set and the collected voltage.
[0087] The specific process of determining the power distribution state of the power distribution port connected to each load access circuit 120 is as follows: determine the load access circuit set corresponding to the reference voltage with the smallest detection voltage difference as the target load access circuit set; determine the power distribution state of the power distribution port connected to each load access circuit 120 in the target load access circuit set as the power-on state, and determine the power distribution state of the power distribution port connected to other load access circuits 120 in the multiple load access circuits 120 except the load access circuits 120 in the target load access circuit set as the power-off state. If the difference between the detection voltage and the product of the voltage division ratio corresponding to the load access circuit set numbered 14 and the power-on voltage is the smallest, then it can be displayed on the display as follows: Figure 7 That is, the power distribution state of the power distribution port connected to the first load access circuit is the power-off state, and the power distribution state of the power distribution port connected to the second load access circuit, the third load access circuit and the fourth load access circuit is the power-on state.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A power distribution state detection circuit, characterized in that: include: Voltage divider circuit; A plurality of load access circuits, wherein the input end of each load access circuit is used to be connected to a power distribution port of the regional controller, and the output end is respectively connected to the input end of the voltage divider circuit, and the output end of the voltage divider circuit is grounded, and the load size corresponding to each load access circuit and the load size of a new load formed by connecting any at least two load access circuits in parallel among the plurality of load access circuits are all different; A voltage detection control component is connected to the two ends of the voltage divider circuit, and is used to detect the voltage at the two ends of the voltage divider circuit to obtain a detection voltage, and is used to determine the power distribution state of the distribution port corresponding to each load access circuit based on the detection voltage and the power-on voltage of the regional controller, and the power distribution state of each distribution port includes a power-on state or a power-off state.
2. The circuit according to claim 1, characterized in that The voltage detection control component stores a plurality of load access circuit sets and a voltage division ratio value corresponding to each load access circuit set, each load access circuit set includes at least one load access circuit, and the voltage division ratio value corresponding to the load access circuit set is used to indicate the ratio of the load of the voltage division circuit to the sum of the load formed by connecting each load access circuit in the load access circuit set in parallel and the load of the voltage division circuit; The voltage detection control component is also used to determine the reference voltage corresponding to each load connection circuit set according to the power-on voltage and the voltage division ratio value corresponding to each load connection circuit set; Determine a load access circuit set corresponding to a reference voltage having a minimum detection voltage difference as a target load access circuit set; Determine that the power distribution state of the distribution port connected to each load access circuit in the target load access circuit set is a power-on state, and determine that the power distribution state of the distribution port connected to other load access circuits in the multiple load access circuits except the load access circuits in the target load access circuit set is a power-off state.
3. The circuit according to claim 2, characterized in that The voltage detection control component detects multiple detection voltages, and the voltage detection control component is also used to determine a target detection voltage based on the multiple detection voltages, and determine the load access circuit set corresponding to the reference voltage with the smallest difference from the target detection voltage as the target load access circuit set.
4. The circuit according to claim 1, characterized in that The voltage divider circuit comprises a voltage divider resistor, one end of which is connected to the output end of each load access circuit, and the other end of which is grounded.
5. The circuit according to claim 1, characterized in that The load access circuit comprises a load resistor, a first end of which is used to be connected to a power distribution port of the regional controller, and a second end of which is connected to an input end of the voltage divider circuit.
6. The circuit according to claim 1, characterized in that The multiple load access circuits include a first load access circuit, a second load access circuit and a third load access circuit; The load size of the first load access circuit is the same as the load size of the voltage divider circuit, the load size of the second load access circuit is twice the load size of the first load access circuit, and the load size of the third load access circuit is three times the load size of the first load access circuit.
7. The circuit according to claim 6, characterized in that The multiple load connection circuits further include a fourth load connection circuit, and a load size of the fourth load connection circuit is four times the load size of the first load connection circuit.
8. The circuit according to claim 1, characterized in that The voltage detection control component includes a CAN development environment hardware interface card, and the CAN development environment hardware interface card is used to collect the voltage across the voltage divider circuit at each preset time interval to obtain a detection voltage.
9. The circuit according to claim 1, characterized in that The voltage detection control component includes a controller and a voltage detector connected to the controller, the voltage detector is respectively connected to the input end and the output end of the voltage divider circuit, and is used to collect the voltage across the voltage divider circuit at every preset time interval to obtain a detection voltage. The controller is used to determine the power distribution state of the distribution port corresponding to each load access circuit based on the detection voltage and the power-on voltage when the distribution port is powered on, and the power distribution state of the distribution port includes whether the distribution port is in a power-on state or a power-off state.
10. A method for detecting a power distribution state, characterized in that: A voltage detection control component used in a power distribution state detection circuit according to any one of claims 1 to 9, the method comprising: Acquire the power-on voltage of the regional controller and the detection voltage obtained by the power distribution state detection circuit performing voltage detection on the voltage divider circuit in the power distribution state detection circuit; The power distribution state of the power distribution port corresponding to each load access circuit is determined according to the power-on voltage of the regional controller and the detection voltage, and the power distribution state of each power distribution port includes a power-on state or a power-off state.
11. The method according to claim 10, characterized in that The voltage detection control component stores a plurality of load access circuit sets and a voltage division ratio value corresponding to each load access circuit set, each load access circuit set includes at least one load access circuit, and the voltage division ratio value corresponding to the load access circuit set is used to indicate the ratio of the load of the voltage division circuit to the sum of the load formed by connecting each load access circuit in the load access circuit set in parallel and the load of the voltage division circuit; The step of determining the power distribution state of the power distribution port corresponding to each load access circuit according to the power-on voltage of the regional controller and the detection voltage includes: Determine a reference voltage corresponding to each load connection circuit set according to the power-on voltage and the voltage division ratio value corresponding to each load connection circuit set; Determine a load access circuit set corresponding to a reference voltage having a minimum detection voltage difference as a target load access circuit set; Determine that the power distribution state of the distribution port connected to each load access circuit in the target load access circuit set is a power-on state, and determine that the power distribution state of the distribution port connected to other load access circuits in the multiple load access circuits except the load access circuits in the target load access circuit set is a power-off state.
12. The method according to claim 10, characterized in that The obtaining of the detection voltage obtained by the power distribution state detection circuit performing voltage detection on a voltage divider circuit in the power distribution state detection circuit comprises: Acquire multiple voltages obtained by the power distribution state detection circuit performing voltage detection on a voltage divider circuit in the power distribution state detection circuit within a preset time period; Eliminate K voltages with the largest voltage values and K voltages with the smallest voltage values from the multiple voltages to obtain multiple candidate voltages, where K is a positive integer; An average value is calculated for the multiple candidate voltages to obtain a detection voltage.
13. A power distribution status detection device, characterized in that: It comprises a display device and a power distribution status detection circuit as described in any one of claims 1 to 9, wherein the display device is connected to the power distribution status detection circuit and is used to display the power distribution status of the distribution port connected to each load access circuit in the power distribution status detection circuit.
14. The power distribution state detection device according to claim 13, characterized in that: The power distribution state detection device further includes a box body, the power distribution state detection circuit is arranged in the box body, and the display device is arranged on the outer surface of the box body.