CN-121979352-A - Multifunctional automobile voltage regulator based on CAN bus
Abstract
The invention discloses a multifunctional automobile voltage regulator based on a CAN bus, which comprises an MCU, a DC-DC converter, a B+ voltage analog-to-digital converter, an ADC channel and an LRC function, wherein the MCU is internally integrated with a Bootloader function module, a CAN communication baud rate self-adaptive regulation module and a load response control module, the DC-DC converter is connected with a rectifier bridge of a generator and is used for processing the voltage of the generator and supplying power to other hardware in the regulator, the B+ voltage analog-to-digital converter is connected with the rectifier bridge of the generator and is used for dividing the voltage of the generator and inputting the voltage into the ADC channel of the MCU, so that the MCU calculates the current voltage of the B+ end, and the LRC function is provided, and when the load suddenly changes from light load to heavy load, the regulator slowly lifts the output voltage, and the voltage fluctuation is minimized. Parameters CAN be set in real time, and the vehicle system CAN set parameters in the regulator, such as target voltage, maximum exciting current limit and the like, in real time through the CAN bus.
Inventors
- FU KANGWEI
- BAI NAN
- LI MENGYANG
- WANG KAI
Assignees
- 江苏云意电气股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260129
Claims (5)
- 1. A CAN bus-based multi-function automotive voltage regulator, comprising: The MCU is integrated with a Bootloader function module, a CAN communication baud rate self-adaptive adjustment module and a load response control module; the DC-DC converter is connected to the rectifier bridge of the generator and is used for processing the voltage of the generator and supplying power to other hardware in the regulator; The B+ voltage analog-to-digital converter is connected to the rectifier bridge of the generator and is used for dividing the voltage of the generator and inputting the divided voltage into an ADC channel of the MCU so that the MCU calculates the current voltage of the B+ end; the CAN transceiver is used for connecting a CAN bus on the automobile and communicating with the automobile machine system; the phase frequency/voltage detection module is connected to the three-phase end of the generator, and is used for processing the voltage of the generator and inputting the voltage into the MCU, calculating the current rotating speed of the generator and judging whether the phase voltage is in a normal state or not; The MOS tube driver is connected to the F end of the generator and controls the exciting current of the F end through the on-off of the MOS tube so as to control the voltage output by the generator; the current analog-to-digital converter is connected to the F end of the generator, and the current exciting current of the F end is obtained through the current sampling circuit.
- 2. The multifunctional automobile voltage regulator based on the CAN bus of claim 1, wherein the Bootloader function module uses the Ymodem protocol to transfer the new version firmware into the regulator in blocks to replace the old firmware through the CAN bus, and the specific method is as follows: The upper computer splits the 128-byte firmware data into sub-data blocks of every 5 bytes, transmits the sub-data blocks to the regulator through the CAN bus, and the regulator receives the sub-data blocks and then recombines the sub-data blocks into complete 128-byte data frames so as to replace old firmware.
- 3. The multifunctional automobile voltage regulator based on the CAN bus according to claim 1, wherein the CAN communication baud rate self-adaptive adjustment module is used for automatically adjusting the CAN communication baud rate of the controller according to the currently connected CAN bus so that the controller CAN communicate with other ECUs on the CAN bus, and the specific working method comprises the following steps: S1, powering up a regulator, and reading historical baud rate configuration stored in an EEPROM; S2, if historical baud rate configuration exists, setting the CAN communication baud rate to the value, and if the historical baud rate configuration does not exist, setting the CAN communication baud rate to be 250Kbps by default; S3, sending a test data packet to the CAN bus; s4, reading a CAN state register, and judging whether the communication state is STATUS_SUCCESS; s5, if the success is judged, accumulating 1 by the success_counter, clearing the fail_counter, and if the failure is judged, accumulating 1 by the fail_counter, clearing the success_counter; S6, when success_counter is more than or equal to 10, confirming that the current baud rate is matched, jumping to an APP program, when fail_counter is more than or equal to 10, switching to another baud rate, and writing the baud rate configuration into the EEPROM.
- 4. The Controller Area Network (CAN) bus-based multifunctional automobile voltage regulator of claim 1, wherein the load response control module is used for slowly raising the output voltage of the regulator to minimize the fluctuation of the voltage when the voltage of the generator suddenly drops from light load jump to heavy load, and the specific working method comprises the following steps: s1, when the voltage of the B+ terminal suddenly decreases, entering an LRC state, and recording the voltage of the B+ terminal at the moment ; S2, assuming the time of LRC is Second, then calculate the voltage to be increased every 5ms I.e. ; S3, setting the target voltage to be The current voltage is then adjusted to using a PI control algorithm ; S4, when reaching When the target voltage is set to Continuing to use the control algorithm to adjust the present voltage to ; S5, until the current voltage reaches The LRC control is exited.
- 5. The multifunctional automobile voltage regulator based on the CAN bus of claim 1, wherein the automobile system CAN set regulator parameters in real time through a CAN transceiver, wherein the parameters comprise target voltage and maximum exciting current limit.
Description
Multifunctional automobile voltage regulator based on CAN bus Technical Field The invention relates to the technical field of automobile regulators, in particular to a multifunctional automobile voltage regulator based on a CAN bus. Background The automobile voltage regulator is used for stabilizing the output voltage of the vehicle-mounted generator so as to achieve the purposes of protecting the storage battery and the vehicle-mounted electric appliance and ensuring the stable operation of an automobile electric system. The voltage regulators of the automobile on the market at present mainly comprise the following two types: 1. An electronic automotive voltage regulator. Which is a regulator based on a transistor or integrated circuit implementation. Such regulators have the disadvantage of a single function, with only a pressure regulating function. The controller cannot communicate, has no CAN or LIN communication capability, cannot feed back the current state of the regulator to the vehicle-mounted system, and cannot receive control instructions from the vehicle-mounted system. The target voltage cannot be set freely, and the regulator has only one target voltage. If the target voltage needs to be set to other values, the hardware circuit needs to be changed, and the cost is very high. The software cannot be upgraded, and such a regulator uses hardware to implement all functions without using any software, and thus cannot add or modify functions according to the needs of customers. 2. Automobile voltage regulator based on LIN bus. The regulator has the advantages that the LIN communication function is added on the basis of the electronic automobile voltage regulator, so that the state feedback function is realized, the current state can be fed back to an automobile machine system through the LIN bus, and the fault diagnosis is facilitated. The target voltage can be set, and the regulator can receive and set the target voltage from the vehicle-to-machine system through the LIN bus, so that a hardware circuit does not need to be modified, and the cost is greatly reduced. However, the LIN bus-based voltage regulator for the automobile has a problem that software cannot be updated, and the current LIN bus-based regulator on the market has no Bootloader function, so that the software cannot be updated. The LIN bus is a single bus communication mode, and is easy to interfere in the complex electromagnetic environment of the automobile, so that communication abnormality is caused. For this purpose, a multifunctional automobile voltage regulator based on a CAN bus is proposed. Disclosure of Invention The invention aims to provide a multifunctional automobile voltage regulator based on a CAN bus so as to solve the problems in the background technology. In order to achieve the purpose, the invention provides the following technical scheme that the multifunctional automobile voltage regulator based on the CAN bus comprises: The MCU is integrated with a Bootloader function module, a CAN communication baud rate self-adaptive adjustment module and a load response control module; the DC-DC converter is connected to the rectifier bridge of the generator and is used for processing the voltage of the generator and supplying power to other hardware in the regulator; The B+ voltage analog-to-digital converter is connected to the rectifier bridge of the generator and is used for dividing the voltage of the generator and inputting the divided voltage into an ADC channel of the MCU so that the MCU calculates the current voltage of the B+ end; the CAN transceiver is used for connecting a CAN bus on the automobile and communicating with the automobile machine system; the phase frequency/voltage detection module is connected to the three-phase end of the generator, and is used for processing the voltage of the generator and inputting the voltage into the MCU, calculating the current rotating speed of the generator and judging whether the phase voltage is in a normal state or not; The MOS tube driver is connected to the F end of the generator and controls the exciting current of the F end through the on-off of the MOS tube so as to control the voltage output by the generator; the current analog-to-digital converter is connected to the F end of the generator, and the current exciting current of the F end is obtained through the current sampling circuit. Preferably, the Bootloader function module uses the yomem protocol to transmit the new version firmware into the regulator in blocks through the CAN bus to replace the old firmware, and the specific mode is as follows: The upper computer splits the 128-byte firmware data into sub-data blocks of every 5 bytes, transmits the sub-data blocks to the regulator through the CAN bus, and the regulator receives the sub-data blocks and then recombines the sub-data blocks into complete 128-byte data frames so as to replace old firmware. Preferably, the CAN communication baud rate self-adapti