Intelligent power distributor control method and terminal
Through the intelligent power distributor control method, the control circuit is used to receive communication commands and detect the output status to realize intelligent control of the power distributor, solve the problem of power waste and large current impact, improve the accuracy and precision of the output control, and protect the equipment.
Patent Information
- Application Number
- CN202210482750.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-05
AI Technical Summary
Existing power distributors cannot achieve intelligent control, resulting in a waste of power at the output end that is not connected to a load, and may produce an instantaneous large current surge when the equipment is connected, affecting or damaging electrical equipment.
Design an intelligent power distributor control method. It receives host computer communication commands or external switch status through the control circuit, detects the status of each power output unit, determines whether it is abnormal, and outputs a protection signal under abnormal conditions, disconnecting the output to save money. energy. The control circuit includes a power drive circuit and a current-limiting drive circuit. It detects the current and disconnects it if it exceeds the set value. It determines short circuit or overcurrent and performs corresponding protection.
It realizes remote intelligent control of the power distributor, avoids power waste and large current impact, improves the accuracy and precision of output control, and protects equipment.
Smart Images

Figure CN114844003B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power supply, and in particular to a control method and terminal of an intelligent power distributor. Background Art
[0002] When applying power supply, a power supply is usually required to have no less than one output terminal to form a power distributor for providing power to different devices. Generally, multiple outputs are realized by hardware circuits to detect the electrical parameters of each output terminal and adjust the output of each output terminal. At this time, the output terminal that is not connected to the load will also have power output, which will cause a waste of power. This hardware circuit cannot be controlled intelligently, and when devices are connected to each output terminal at the same time, a momentary large current shock will be generated when the power is turned on, or when the load is capacitive, a momentary large current shock will also be generated when the power is turned on, causing an impact or damage to the electrical equipment.
[0003] Therefore, realizing intelligent control of power distributor is an urgent problem to be solved. Summary of the invention
[0004] The purpose of the present invention is to provide a control method and terminal for an intelligent power distributor, which receives communication commands from a host computer or the status of an external switch, controls the intelligent power distributor, detects the output of each power output unit, selects a range based on the detection data, judges the status of the power output unit, outputs a protection signal for protection when the output is abnormal, realizes remote intelligent control of power distribution, disconnects the output when there is no load or the output is abnormal, and saves energy.
[0005] In the first aspect, the above-mentioned invention object of the present invention is achieved through the following technical solutions:
[0006] A control method for an intelligent power distributor, the intelligent power distributor comprises a control circuit and at least one power output unit, each power output unit is respectively connected to the control circuit, the control circuit is used to receive a communication signal from a host computer or a status signal from an external switch, control the output of each power output unit, detect the output status of each power output unit, select a range and judge whether the output is normal according to the detection data, regularly check whether an output abnormality occurs, output a protection signal for protection when the output is abnormal, and calculate the working time.
[0007] The present invention is further configured as follows: the power output unit includes a power drive circuit and a current limiting drive circuit, and the current when the power output unit is connected to the load is detected. If the output current is greater than the current setting value, the power drive circuit of the power output unit is disconnected, and the current limiting drive circuit continues to be connected. After a first set time, the output current is continued to be detected. If the output current continues to be greater than the current setting value, it is determined that a short circuit occurs, short circuit protection is triggered, and the power drive circuit and the current limiting drive circuit are disconnected; if the output current is less than or equal to the current setting value, it is determined whether an overcurrent occurs. If an overcurrent occurs, an inverse time overcurrent protection is performed. If no overcurrent occurs, the power drive circuit and the current limiting drive circuit are connected.
[0008] The present invention is further configured as follows: the control circuit periodically detects whether an abnormality occurs in the output of each power output unit in an interrupt manner; at each interrupt access, when it is detected that no short circuit occurs, the ratio of the real-time output current to the rated output current is calculated to determine whether each power output unit is overloaded; if the ratio is greater than a protection threshold, the duration of the ratio being greater than the protection threshold is recorded; if the duration is greater than a second set time, the output of the power output unit is disconnected to perform inverse time overcurrent protection; if the duration is less than or equal to the second set time, the interrupt is ended.
[0009] The present invention is further configured such that the protection thresholds of the power output units are the same or different.
[0010] The present invention is further configured as follows: the control circuit determines whether to drive a certain channel power output unit, and when it is necessary to drive a certain channel power output unit, detects the output parameters of the channel power output unit, performs analog-to-digital conversion on the detection data, first calculates a first average value of M detection data, then accumulates N first average values to calculate a second average value, and uses the second average value as the detection real-time value, wherein M and N are positive integers greater than or equal to 1 respectively.
[0011] The present invention is further configured as follows: a numerical value is set as both the maximum value and the minimum value, a first average value of M detection data is calculated, the first average value is assigned to the minimum value, and then the first average value is compared with the maximum value and the minimum value respectively; when the first average value is greater than the maximum value, the first average value is taken as the maximum value; when the first average value is less than the minimum value, the first average value is taken as the minimum value, to form a data set including the maximum value, the first average value, and the minimum value; the maximum value and the minimum value are removed, the first average value in the data set is accumulated, and when the number of accumulations reaches the set number of times N, the accumulated values of the first average value are averaged to obtain the real-time value of the detection.
[0012] The present invention is further configured as follows: the control circuit receives detection data, and when the detection data is greater than the output setting value, the first measurement range is adopted, and when the detection data is greater than the voltage setting value, the second measurement range is adopted.
[0013] The present invention is further configured as follows: the control circuit receives and detects communication data, the communication data includes K bits, and compares the logic operation result of the first K-1 bits of the communication data with the Kth bit to determine whether the communication data is correct. When the communication data is correct, the data is received and corresponding operations and responses are performed, and the communication data includes a self-test command, a power-on command, a command to report accumulated working time, a query command, and a reset command.
[0014] The present invention is further configured as follows: the control circuit receives an external switch state control signal of each power output unit, determines whether the external switch state control signal is valid, and when the external switch state control signal is valid, changes the state of the power output unit of the channel, changing the on state to the off state, or changing the off state to the on state.
[0015] In a second aspect, the above-mentioned object of the present invention is achieved through the following technical solutions:
[0016] An intelligent power distributor control terminal comprises a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method described in the present application is implemented.
[0017] Compared with the prior art, the beneficial technical effects of this application are:
[0018] 1. This application realizes intelligent control of the power distributor by setting a control circuit to receive communication signals to control the output of each power output unit;
[0019] 2. Furthermore, the control circuit of the present application adjusts the measuring range according to the detection data to improve the measurement accuracy;
[0020] 3. Furthermore, when a large current is detected, the present application first disconnects the power drive circuit, and determines whether the large current is caused by the load or a short circuit based on the duration of the large current, and performs corresponding control, thereby improving the accuracy of output control. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural schematic diagram of an intelligent power distributor of a specific embodiment of the present application;
[0022] Figure 2 is a schematic diagram of the microprocessor structure of a specific embodiment of the present application;
[0023] Figure 3a It is a schematic diagram of the structure of a test circuit of a specific embodiment of the present application;
[0024] Figure 3b It is a schematic diagram of the structure of a test circuit of a specific embodiment of the present application;
[0025] Figure 3c It is a schematic diagram of the structure of a test circuit of a specific embodiment of the present application;
[0026] Figure 4 is a schematic diagram of the structure of a range amplification circuit of a specific embodiment of the present application;
[0027] Figure 5 It is a schematic diagram of the structure of a power driving circuit and a current limiting driving circuit of a specific embodiment of the present application;
[0028] Figure 6 It is a schematic diagram of the main control flow of a specific embodiment of the present application;
[0029] Figure 7 is a schematic diagram of an interrupt control flow of a specific embodiment of the present application;
[0030] Figure 8 It is a schematic diagram of the detection calculation process of a specific embodiment of the present application;
[0031] Fig. 9 It is a schematic diagram of the average value calculation process of a specific embodiment of the present application. DETAILED DESCRIPTION
[0032] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0033] An intelligent power distributor circuit of the present application, such as Figure 1 As shown, it includes a power processing circuit, a communication isolation circuit, a control circuit, an analog quantity selection and range amplification circuit, and n power output units. Each power output unit, power processing circuit, communication isolation circuit, analog quantity selection and range amplification circuit is connected to the control circuit respectively, where n is a positive integer greater than or equal to 1.
[0034] The power processing circuit includes at least one power conversion circuit, which is used to convert the input voltage into a required voltage to provide the required voltage for the intelligent power distributor.
[0035] In a specific embodiment of the present application, a first isolated power supply circuit, a step-down circuit, a step-up circuit, and a second isolated power supply circuit are included, and the step-down circuit, the step-up circuit, and the second isolated power supply circuit are respectively connected to the first isolated power supply circuit.
[0036] The first isolated power supply circuit is used to suppress and filter the supply voltage spikes, including self-recovery insurance, filter circuit, protection circuit and DC-DC power conversion. Varistors and transient suppression diodes are used to suppress the supply voltage spikes to improve the reliability of the circuit; filter circuits are used to ensure the purity of the power supply and enhance the internal anti-interference ability, and the microprocessor in the control circuit is used to sample and process tiny signals.
[0037] The +5V power supply after primary isolation is provided to the control power step-down circuit, the drive boost circuit and the CAN bus secondary isolation power circuit respectively.
[0038] The step-down circuit is used to step down the output of the first isolation power supply circuit, and is used to step down the +5V power supply to the second voltage VDD2. The second step-down circuit is used to step down the +5V power supply to the third voltage VDD3.
[0039] The boost circuit is used to boost the output of the first isolated power supply circuit, boosting the +5V power supply to a fourth voltage VDD4, which is used to provide power for the power drive circuit and the current limiting drive circuit of each power output unit.
[0040] The second isolated power supply circuit is used for DC-DC isolation and generates a secondary isolated power supply VDD1.
[0041] In a specific embodiment of the present application, VDD1 is equal to 5V, VDD2 is equal to 3.3V, VDD3 is equal to 1.8V, and VDD4 is equal to 12V.
[0042] In order to improve the accuracy of the tiny signal test and the anti-interference capability of the distributor, after the first LC filtering is performed on VDD2 and the second LC filtering is performed on VDD3, the ADC circuit of the control circuit is powered.
[0043] The analog power ground and digital power ground are connected at a single point through an inductor to avoid mutual interference.
[0044] The communication isolation circuit is used for isolation between the control circuit and the external communication circuit, and includes an anti-interference circuit, an interface signal conversion circuit and a digital isolation circuit connected in sequence. The anti-interference circuit is connected to the input of the interface signal conversion circuit to resist interference, so as to reduce damage caused by surge impact and protect the back-end interface signal conversion circuit chip; the input of the interface signal conversion circuit is also used to connect to the external communication circuit, and its output is connected to the input of the digital isolation circuit. The output of the digital isolation circuit is connected to the control circuit for digital isolation between the external communication circuit and the control circuit.
[0045] In a specific embodiment of the present application, a CAN bus is used to communicate with the intelligent distributor.
[0046] An anti-interference circuit is connected between the two bus input terminals CANL and CANH of the communication isolation circuit to improve the anti-interference capability and ensure the accuracy of the transmitted data.
[0047] The control circuit controls the output of each power output unit, selects one of the power output units for testing in turn, switches the range according to the test data, determines whether the output is normal, and performs protection when the output is abnormal. The control circuit includes a microprocessor, a power management circuit and a logic circuit. The logic circuit is connected to the microprocessor and the power output unit, and is used to control the connection or shutdown of each power output unit according to the control signal of the microcontroller, resist instantaneous impact current, and trigger short-circuit protection; the power management circuit is connected to the microprocessor, and resets the microcontroller within the set time when power is on, so that each power output circuit is in a disconnected state; the microcontroller is used to output the control signal of the on and off of each power output unit, detect the on and off of each power output unit, select a power output unit for measurement, automatically switch the range according to the measurement data, and communicate with the external communication circuit.
[0048] like Figure 2 As shown, the microprocessor has the functions of intelligent control, analog quantity test, discrete quantity detection and information storage and reading, and communication with the external bus. The ports are as follows: DR1~DR8 are used to output the control signal for controlling the on-off of the power drive circuit; DRI_11~DRI_88 are used to output the control signal for controlling the on-off of the current limiting branch; RDR1~RDR8 are used to input the status signal of the on-off of the current limiting branch; BH_D1~BH_D8 are used to control the fault indicator light; BH_D9 is the control signal of the running indicator light; PA, PB and PC are the control signals for selecting the measurement channel; BH1~BH8 are used to input the key status signal; OVER1~OVER8 are the read signals of the short-circuit latch; CANTXB, CANRXB, CANTXA and CANRXA are two groups of CAN interfaces of the microprocessor; IM1, IM2, IM3, VM and IM4 are ADC analog input signals, IM1 and IM2 are the current sampling values of each channel of the two ranges, and the range is automatically selected by the microprocessor calculation. IM3 is the short circuit judgment voltage value, IM4 is the analog ground wire, and the microprocessor can detect whether the internal power supply of the intelligent distributor is normal and whether the ground wire is stable by reading these two voltages. VM is the load voltage value of each channel. N29 is an external storage chip used to store data.
[0049] The complex programmable logic device (CPLD) is programmed to obtain a logic circuit that triggers short-circuit protection when a large current occurs in the power output unit. Through multiple signal combinations, including RESET / DRm / DRI_m / IOVERm / OVERm / DRIm / DRI_m, the on-off control, short-circuit protection and current shock resistance of the m-th channel power output unit are realized.
[0050] When a capacitive load is connected to the output end of a channel, there is a large output surge current at the moment of connection, which triggers the first short-circuit protection mechanism and disconnects the power drive circuit, but the current limiting drive circuit is still in the on state. After a short-circuit setting time, the power drive circuit is connected again. Since the capacitive load has been charged, no surge current will be generated, and the short-circuit protection will not be triggered again, and the channel will return to the normal on state.
[0051] When the load at the output end of a channel is short-circuited, there is a large output impact current at the moment of connection, triggering the first short-circuit protection mechanism. At this time, the power drive circuit is disconnected, and the current limiting drive circuit is still in the on state. After a short-circuit setting time, the power drive circuit is turned on again. Since the load is still in a short-circuit condition, the short-circuit protection will be triggered again. At this time, the power drive circuit and the current limiting drive circuit are all disconnected. Subsequently, a software reset is performed to control the channel to be turned on again.
[0052] The power management circuit includes a power management chip. When the power is powered on, RESET is always in a stable low-level state. At this time, the driving signals of each channel are low-level, and the power output units of each channel remain disconnected. It will not become a high-level state until a period of time after the power-on voltage exceeds the reset threshold voltage of the power management chip. During this period of time, the microprocessor initialization process has been completed, ensuring that the output of each channel is always in a disconnected state when powered on.
[0053] The test circuit structure is as follows: Figure 3a , Figure 3b , Figure 3c As shown, Figure 3a In the figure, the current detection circuit includes an amplifier N13A. The amplifier N13A and resistors R134, R133, R122, and R114 form a differential proportional circuit. QGNDm and IINm are the voltages across the sampling resistor. The sampling voltage is proportionally amplified by the amplifier N13A to obtain the IMm1 signal, which is selected by the current analog quantity selection circuit and read by the microprocessor for internal calculation to obtain the current channel current value.
[0054] Figure 3a , Figure 3bIn the short circuit detection circuit, the comparator N13B is used. VDD2 is divided by resistors R104 and R105 to obtain a short circuit determination voltage. The short circuit determination voltage is output after passing through the voltage follower N7B to obtain an IM3 signal, which is compared with the current sampling voltage by the comparator N13B to determine whether a short circuit occurs.
[0055] Figure 3c In the figure, the voltage detection circuit includes an amplifier N9B. The amplifier N9B and resistors R87, R93, R99, and R103 form a differential proportional circuit for voltage detection. OUTm is the output voltage value of channel m, and FGND1 is the power ground. Through the differential proportional circuit, the channel output voltage is proportionally reduced to meet the measurement voltage range allowed by the microprocessor ADC. The signal VMm passes through the voltage analog quantity selection circuit, is read by the microprocessor and internally calculated to obtain the current channel voltage value.
[0056] The analog quantity selection and range amplification circuits are respectively connected to the power supply output circuit and the control circuit of each channel. The analog quantity selection circuit is used to select one of the channels for detection and transmit the calculation processing result of the test circuit to the range amplification circuit. The control circuit selects a suitable range according to the voltage value at the input or output end of the range amplification circuit.
[0057] When the voltage value at the output end of the detection range amplifier circuit is greater than the first voltage range setting value, the control circuit automatically switches to use the voltage value at the input end of the range amplifier circuit as the sampling value to achieve range adjustment.
[0058] The analog quantity selection circuit includes an analog switch. After passing through the analog switch, the IMm1 signal becomes an IM signal and is connected to the range amplifier circuit for range selection.
[0059] Range amplifier circuit, such as Figure 4 As shown, the amplifier N7A is included, and the amplifier N7A and resistors R95 / R96 / R88 form an amplifying circuit.
[0060] The output signal IM of the analog quantity selection circuit is used as the positive input signal of the range amplifier circuit. After passing through the circuit R106, it becomes the IM1 signal. After passing through the amplifier circuit, the IM1 signal is output as the IM2 signal.
[0061] The control circuit first detects the size of the IM2 signal, and when the IM2 signal is greater than the first voltage range setting value, it automatically switches and selects the IM1 signal as the detection data to achieve automatic switching of the range.
[0062] The power supply output unit includes a driving circuit, a test circuit, and an output unit. The driving circuit is respectively connected to the control circuit and the output unit. The test circuit is respectively connected to the analog quantity selection and range amplification circuit and the output unit. The driving circuit outputs a driving signal to the output unit according to the control signal given by the control circuit; the test circuit is used to detect the output size of the output unit and transmit it to the analog quantity selection and range amplification circuit.
[0063] The driving circuit includes a power driving circuit and a current limiting driving circuit, the output unit includes a power output unit and a current limiting output unit, the power driving circuit is respectively connected to the control circuit and the power output unit, the power driving circuit includes a power isolation circuit, a sampling circuit, and a power circuit, the power isolation circuit is used to isolate the control circuit signal from the power output signal, the sampling circuit is connected to the power output unit, and is used to sample the current flowing through the power output unit, the power circuit is connected to the power isolation circuit and the power output unit, and is used to timely open or close the power output unit; the current limiting driving circuit is respectively connected to the control circuit and the current limiting output unit, the current limiting driving circuit includes a current limiting isolation circuit, a sampling circuit, and a current limiting circuit, the current limiting isolation circuit is used to isolate the control circuit signal from the current limiting output signal, the sampling circuit is connected to the current limiting output unit, and is used to sample the current flowing through the current limiting output unit, the current limiting circuit is connected to the current limiting isolation circuit and the current limiting output unit, and is used to timely open or close the current limiting output.
[0064] Power drive circuits, such as Figure 5 As shown, the sampling circuit includes a resistor R200, the power output unit includes a power tube V15 and a power tube V34, and the power circuit includes a circuit for setting the control electrode voltage of the power tubes V15 and V34 and providing the output terminal current.
[0065] The DRIm signal output end of the control circuit is connected to the control electrode of the power tube V15 through the resistor R201; the other end is connected to the control electrode of the power tube V34 through the resistor R242.
[0066] The input ends of the power tubes V15 and V34 are connected together as the output end of the IINm signal, and are connected to the power bus through the sampling circuit. The output ends of the power tubes V15 and V34 are connected together as the output end of the OUTm signal.
[0067] The OUTm signal terminal is connected to the PGND terminal through the parallel connection of the resistor R248 and the diode V19.
[0068] When DRIm is at a high level, the high level is applied to the control end of the power tubes V15 and V34, the power tubes V15 and V34 are turned on, and the OUTm signal is output; when DRIm is at a low level, the control end of the power tubes V15 and V34 is directly discharged through resistors R201 and R242, the power tubes are quickly disconnected, the power tubes V15 and V34 are turned off, and the OUTm signal is at a low level, which can avoid damage to the power tubes by instantaneous high power.
[0069] The structure of the current limiting drive circuit is similar to that of the power drive circuit.
[0070] The current limiting output unit includes a power tube V11, and the current limiting circuit includes a circuit for setting a control electrode voltage of the power tube V11 and providing an output terminal current.
[0071] The DRI_m signal output terminal of the control circuit is connected to the control electrode of the power tube V11 through the resistor R195.
[0072] The input end of the power tube V11 serves as the output end of the IINm signal and is connected to the power bus through the sampling circuit. The output end of the power tube V11 serves as the output end of the OUTm signal.
[0073] The power bus is connected to the control ground, and the OUTm signal terminal is connected to the PGND terminal through the resistor R248 and the light emitting diode VD5 of R255. R255 is used to limit the current of the light emitting diode VD5.
[0074] When DRI_m is at a high level, the power tube V11 is turned on and outputs the OUTm signal; when DRI_m is at a low level, the control end of the power tube V11 is at a low potential, the power tube V11 is turned off, and the OUTm signal is at a low level.
[0075] The present application discloses a control method for an intelligent power distributor, including counting the working time of the intelligent power distributor, controlling and detecting the output of each channel, performing inverse time overcurrent protection or short circuit protection when a large current is generated, communicating with a host computer through a bus, resetting each channel, reading the identity information of each channel, and indicating operation and faults.
[0076] The control process includes accumulating working time, detecting the status of external switches, controlling the on and off of each channel, detecting the output of each channel, setting the parameters of the first timer, detecting the interruption of the second timer, and executing the corresponding program when an interruption event occurs.
[0077] like Figure 6 As shown, the following steps are included:
[0078] S1, start;
[0079] S2, initialization;
[0080] S3, read the working time and start accumulating and storing it at the same time;
[0081] S4, extract the external switch signal and connect or disconnect the corresponding channel;
[0082] S5, detecting the output parameters of each channel;
[0083] S6. When an overcurrent occurs, calculate the overcurrent protection time;
[0084] S7, set the first timer to the first timing time, and go to S3.
[0085] In this control process, at intervals of the second set time, the second timer accesses the main program in an interrupt mode to check whether an interrupt occurs, and if an interrupt occurs, the interrupt is executed.
[0086] Each power output unit is provided with an external switch. The control circuit detects the state of the external switch of each power output unit and determines whether the power output unit of the channel needs to be connected or disconnected according to the state of the external switch.
[0087] like Figure 7 As shown, during an interruption process, the operation of the second timer includes the following steps:
[0088] A1. Start;
[0089] A2. Accumulate the working time and send the accumulated result to the main program for storage;
[0090] A3, setting a first timing time of a first timer;
[0091] A4, check whether a short circuit fault occurs, if not, go to A7, if yes, start short circuit state timing;
[0092] A5, determine whether the set short circuit state time has been reached, if yes, go to the next step, if not, go to A7;
[0093] A6. Disconnect the corresponding channel and give instructions;
[0094] A7, check whether an over-current fault occurs, if not, go to A10, if yes, perform over-current state timing;
[0095] A8, determine whether the set overcurrent state time has been reached, if yes, go to the next step, if not, go to A10;
[0096] A9, disconnect the corresponding channel and give instructions;
[0097] A10, detect the external switch status, determine whether to switch the channel status, if yes, go to the next step, if not, go to
[0098] A11, switch the external switch to the corresponding power output unit channel state;
[0099] A12. End this interruption.
[0100] The first timer acts as a watchdog, and performs a watchdog feeding operation in step S7 and step A3. Within the first timing time, a value is assigned to the first timer to ensure that the first timer is always in a working state.
[0101] The communication between the communication bus and the control circuit is also carried out in an interrupt manner. When data is detected at the communication end, the communication data is detected. Assuming that the communication data includes K bits, an XOR logic operation is performed on the first K-1 bits of the communication data, and the logic operation result is compared with the Kth bit value. If the XOR operation result is different from the Kth bit value, the communication data is judged to be abnormal and the data is not received. If the XOR operation result is the same as the Kth bit value, the communication data is judged to be correct, the communication data is received, and corresponding operations are performed according to the content of the communication data. After the operation is completed, a response signal is sent to the bus and transmitted to the host computer through the bus.
[0102] The communication data includes self-test command, power-on command, report cumulative working time command, query command and reset command.
[0103] The communication data sends a command to read the identity information to the control circuit, and the control circuit performs a self-check and reports the identity information.
[0104] The communication data sends a query command to query the on or off status of a power output unit, or to query the cumulative working time of a power output unit, or to query the channel status of each power output unit. After the control circuit queries, it responds with various information of the power output unit.
[0105] The communication data sends a reset command to a power output unit. After the control circuit executes the command, the power output unit is reset and a response is given to the host computer.
[0106] Program upgrade is performed via CAN bus.
[0107] The intelligent distributor has a node number, which is combined with the node number of the host computer as a single module receiving mailbox ID to ensure one-to-one control between the host computer and the intelligent distributor.
[0108] Through broadcast commands, the host computer controls the intelligent distributors on all nodes.
[0109] The control circuit detects the output parameters of each power output unit in turn, and determines whether each power output unit is working normally based on the detection data. When an abnormality occurs, the output is disconnected for alarm and protection.
[0110] The control circuit detects the output current of a power output unit, calculates a first average value for multiple detection data, and then calculates an average for multiple first average values, and the obtained data is used as the detection real-time data.
[0111] In a specific embodiment of the present application, when calculating the average value, the maximum value and the minimum value are removed, and the remaining data are accumulated and averaged.
[0112] like Figure 8 As shown, the detection and calculation of each power output unit by the control circuit includes the following steps:
[0113] B1. Start;
[0114] B2, whether to drive the current limiting driving circuit of the i-th power output unit channel, if yes, go to the next step, if no, record the output data of the i-th power output unit channel as 0, go to B11;
[0115] B3, detecting the output of the i-th power output unit channel;
[0116] B4, perform AD conversion on the detected analog quantity to obtain a digital quantity;
[0117] B5, j = 1;
[0118] B6. Calculate the first average value of M detection data;
[0119] B7, accumulating the first average value to obtain an accumulated value;
[0120] B8, determine whether j reaches the accumulated set value, if yes, go to B10, if no, go to the next step;
[0121] B9, j = j + 1, go to B6;
[0122] B10, perform a second average on the accumulated value to obtain a second average value as the real-time value;
[0123] B11. End.
[0124] In a specific embodiment of the present application, the process of calculating the average value is as follows: Fig. 9 As shown, the following steps are included:
[0125] D1, set the maximum value to be the same as the minimum value;
[0126] D2, j = 1;
[0127] D3, calculating the first average value of M detection data;
[0128] D4, assigning the first average value to the minimum value;
[0129] D5. Determine whether the first average value is greater than the maximum value. If so, take the first average value as the maximum value. If not, proceed to the next step.
[0130] D6. Determine whether the first average value is less than the minimum value. If so, take the first average value as the minimum value. If not, proceed to the next step.
[0131] D7, remove the maximum value and the minimum value, and accumulate the remaining first average values to obtain the accumulated value;
[0132] D8, determine whether the cumulative number reaches the cumulative setting value, if yes, go to D11, if not, go to the next step;
[0133] D9, j = j + 1;
[0134] D10, calculate the first average value of the next M detection data, and go to D5;
[0135] D11, the accumulated value is averaged for the second time to obtain the second average value as the real-time value;
[0136] D12, end.
[0137] The control circuit detects the detection data of each power output unit. When the analog value of the read detection data is greater than the output setting value, the first range is used. When the detection data is less than or equal to the voltage setting value, the second range is used.
[0138] The output voltage and output current are fed back in different multiples, and each power output unit channel is selected through an analog switch. The output voltage is collected and calculated and compared with the over-voltage and under-voltage thresholds to determine whether an over-voltage or under-voltage situation occurs. When a short circuit or transition occurs in the power output channel, protection is performed.
[0139] When detecting each power output unit channel, the detected real-time output current is compared with the current setting value. When the real-time output current is greater than the current setting value, the power drive circuit of the power output unit is disconnected, and the current limiting drive circuit continues to be connected. After the first set time, the output current continues to be detected. If the output current continues to be greater than the current setting value, it is determined that a short circuit has occurred, the short circuit protection is triggered, and the power drive circuit and the current limiting drive circuit are disconnected; if the output current is less than or equal to the current setting value, it is determined whether an overcurrent has occurred, the ratio of the real-time output current to the rated output current is calculated, and it is determined whether each power output unit is overloaded. If the ratio is greater than the protection threshold, the duration of the ratio being greater than the protection threshold is recorded. If the duration is greater than the second set time, the output of the power output unit is disconnected and inverse time overcurrent protection is performed; if the duration is less than or equal to the second set time, the power drive circuit and the current limiting drive circuit are connected.
[0140] The protection thresholds of the power output units are the same or different.
[0141] In the event of a short circuit, the overcurrent protection mode is not entered. Specific embodiment 2
[0143] An embodiment of the present invention provides an intelligent power distributor control terminal device, the terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an interrupt program, and the processor implements the method in embodiment 1 when executing the computer program.
[0144] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the intelligent power distributor control terminal device. For example, the computer program may be divided into multiple modules, and the specific functions of each module are as follows:
[0145] 1. Interrupt module, used for CAN bus and timer interrupt control;
[0146] 2. The main program module is used to control the output of each channel, including initialization, acquisition parameter analog-to-digital conversion, overcurrent protection, storage of working time, external switch status, feeding of watchdog, etc.;
[0147] 3.CAN bus sending module, used for CAN bus data transmission.
[0148] The intelligent power distributor control terminal device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The intelligent power distributor control terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above examples are only examples of the intelligent power distributor control terminal device and do not constitute a limitation on the intelligent power distributor control terminal device. It may include more or less components than shown in the figure, or combine certain components, or different components. For example, the intelligent power distributor control terminal device may also include input and output devices, network access devices, buses, etc.
[0149] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the intelligent power distributor control terminal device, and uses various interfaces and lines to connect the various parts of the entire intelligent power distributor control terminal device.
[0150] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the intelligent power distributor controlling the terminal device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0151] The embodiments of this specific implementation method are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A control method for an intelligent power distributor, It is characterized in that The intelligent power distributor includes a control circuit and at least one power output unit. Each power output unit is connected to the control circuit. The control circuit is used to receive a communication signal from a host computer or a status signal from an external switch, control the output of each power output unit, detect the output status of each power output unit, select a range and determine whether the output is normal according to the detection data, check whether an output abnormality occurs at regular intervals, output a protection signal for protection when an output abnormality occurs, and calculate the working time; The power output unit includes a power drive circuit and a current limiting drive circuit, and detects the current when the power output unit is connected to the load. If the output current is greater than the current setting value, the power drive circuit of the power output unit is disconnected, and the current limiting drive circuit continues to be connected. After a first set time, the output current continues to be detected. If the output current continues to be greater than the current setting value, it is determined that a short circuit occurs, the short circuit protection is triggered, and the power drive circuit and the current limiting drive circuit are disconnected; If the output current is less than or equal to the current setting value, determine whether overcurrent occurs. If overcurrent occurs, perform inverse time overcurrent protection. If not, turn on the power drive circuit and the current limiting drive circuit.
2. According to the intelligent power distributor control method of claim 1, It is characterized in that The control circuit periodically detects whether the output of each power output unit is abnormal in an interrupt manner. During each interrupt access, when it is detected that no short circuit occurs, the ratio of the real-time output current to the rated output current is calculated to determine whether each power output unit is overloaded. If the ratio is greater than the protection threshold, the duration of the ratio being greater than the protection threshold is recorded. If the duration is greater than a second set time, the output of the power output unit is disconnected and inverse time overcurrent protection is performed; if the duration is less than or equal to the second set time, the interrupt is ended.
3. According to the intelligent power distributor control method of claim 2, It is characterized in that The protection thresholds of the power output units are the same or different.
4. According to the intelligent power distributor control method of claim 1, It is characterized in that The control circuit determines whether to drive a certain channel power output unit. When a certain channel power output unit needs to be driven, the output parameter of the channel power output unit is detected, and the detection data is converted into analog to digital. The first average value of the M detection data is first calculated, and then the second average value is accumulated for N times of the first average value, and the second average value is used as the detection real-time value, wherein M and N are positive integers greater than or equal to 1 respectively.
5. According to the intelligent power distributor control method of claim 4, It is characterized in that Set a numerical value as both the maximum and minimum value, calculate the first average value of the M detection data, assign the first average value to the minimum value, and then compare the first average value with the maximum and minimum values respectively. When the first average value is greater than the maximum value, take the first average value as the maximum value; when the first average value is less than the minimum value, take the first average value as the minimum value to form a data set including the maximum value, the first average value, and the minimum value. Remove the maximum and minimum values, accumulate the first average value in the data set, and when the accumulated number of times reaches the set number N, average the accumulated values of the first average value to obtain the real-time detection value.
6. According to the intelligent power distributor control method of claim 1, It is characterized in that The control circuit receives the detection data, and when the detection data is greater than the output setting value, the first measurement range is adopted, and when the detection data is greater than the voltage setting value, the second measurement range is adopted.
7. According to the intelligent power distributor control method of claim 1, It is characterized in that The control circuit receives and detects the communication data, which includes K bits. The control circuit compares the logic operation result of the first K-1 bits of the communication data with the Kth bit to determine whether the communication data is correct. When the communication data is correct, the control circuit receives the data and performs corresponding operations and responses. The communication data includes a self-test command, a power-on command, a command to report the accumulated working time, a query command, and a reset command.
8. According to the intelligent power distributor control method of claim 1, It is characterized in that The control circuit receives the external switch state control signal of each power output unit, determines whether the external switch state control signal is valid, and when the external switch state control signal is valid, changes the state of the power output unit of the channel corresponding to the external switch, changing the on state to the off state, or changing the off state to the on state.
9. An intelligent power distributor control terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, Features: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
New-energy automobile lithium battery management system
CN103441538A
Multichannel intelligent power distribution device and operation method thereof
CN106129997A
