Electric vehicle controller multi-interface normalization chip and method

By designing a normalized chip for multiple interfaces of electric vehicle controllers, the problem of many components and poor reliability of electric vehicle controllers is solved, and the compatibility of multiple interfaces is achieved, and the reliability and scope of application is improved.

CN120370795APending Publication Date: 2025-07-25CHENGDU XINOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510457275.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The existing electric vehicle controller products have many components, poor reliability, high failure rate, and small scope of application, so they are not compatible with mainline plug-in ports of different brands.

Method used

Design a variety of interface normalized chips for electric vehicle controllers, including voltage output modules, switch modules, 24-choice analog channel, 24-choice digital output channel, 1-choice digital input channel, 1-choice 24 simultaneous digital output channel, communication module and control module, and realize compatibility of 5557-8 and 5557-16 standard sockets through software configuration.

Benefits of technology

It achieves 99% of the controller interface compatibility, reduces components, improves reliability, reduces failure rate, and expands the scope of application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120370795A_ABST
    Figure CN120370795A_ABST
Patent Text Reader

Abstract

The invention discloses a chip and method for normalizing multiple interfaces of an electric vehicle controller, and relates to the field of interfaces, and the chip comprises a voltage output module which is used for supplying power to a DCDC module of an external MCU when any PIN from PIN1-PIN24 has battery voltage, and enabling the external MCU to work; the switch module is used for controlling the PIN to be connected to the pull-up resistor, the pull-down resistor, + 5V voltage or the negative electrode of the power supply according to whether a switch is closed or not; a one-out-of-24 analog channel, a one-out-of-24 digital output channel and a one-out-of-24 digital input channel are controlled; compared with the prior art, the invention has the beneficial effects that 99% of controller interfaces on the market of 5557-8 and 5557-16 standard sockets can be compatible only through different configurations of software, and compared with the prior art, the controller has the advantages of few components, high reliability, low failure rate and wide application range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of interfaces, and specifically to a chip and method for normalizing multiple interfaces of an electric vehicle controller. Background Art

[0002] The electric vehicle controller is a core component in an electric vehicle. Currently, more than 90% of the controller products on the market use standard outlet interfaces, the standard sockets of 5557-8 and 5557-16, as the connection to the main functional line of the electric vehicle. Although the interface socket models are unified, the functions of each electric vehicle manufacturer are different, and the function definitions of the lead positions of the main line plug-in ports are different. This makes it necessary to use controller products with multiple hardware versions for the main lines of each brand of electric vehicle, which is not conducive to the production and stocking of controller products and the matching of the maintenance market.

[0003] In response to this situation, the 5-in-1 controller products have begun to appear on the market. Please refer to Figure 1 , which are built with some diodes, triodes and logic circuits. They have many components, poor reliability and high failure rates. In addition, this kind of product only targets the 5 mainstream hardware products on the market and is not applicable to those outside the 5 mainstream hardware versions.

[0004] Therefore, the existing electric vehicle controller products have many components, poor reliability, high failure rates, and a small applicable range, and need to be improved. Summary of the Invention

[0005] The purpose of the present invention is to provide a chip and method for normalizing multiple interfaces of an electric vehicle controller to solve the problems raised in the above background art.

[0006] To achieve the above purpose, the present invention provides the following technical solutions: A chip for normalizing multiple interfaces of an electric vehicle controller includes: A voltage output module, which is used to supply power to the DCDC module of the external MCU when there is battery voltage on any PIN of PIN1-PIN24, and the external MCU works; A switch module, which is used to control whether the PIN is connected to a pull-up resistor, a pull-down resistor, +5V voltage or the power supply negative pole by closing or opening the switch; control the operation of the 24-to-1 analog channel, the 24-to-1 digital output channel, the 1-to-24 digital input channel, the 1-to-24 simultaneous digital output channel, and the multi-selection voltage threshold judgment circuit; A 24-to-1 analog channel, which is used to connect to the external MCU to complete AD sampling during operation; A 24-to-1 digital output channel, which is used to connect to the external MCU to complete the reading of digital signals during operation; 1 select 24 digital input channels, used to receive digital signals from the external MCU during operation and output from any PIN of the selected PIN1 - PIN24; 1 pair of 24 simultaneous digital output channels, used to receive the one - line - through signal from the external MCU during operation and output from multiple PINs of the selected PIN1 - PIN24; Communication module, used to establish communication between the external MCU and the control module; Control module, used to receive the control from the external MCU and control the opening and closing of the switch module; Multiple - selection voltage threshold judgment circuit, used to configure the threshold voltage during operation and feedback the configured threshold voltage and the judgment results of 24 PINs to the external MCU through the control module and the communication module; PIN1 - PIN24 are connected to the voltage output module and the switch module. The switch module is connected to the 24 - to - 1 analog channel, the 24 - to - 1 digital output channel, the 1 - select - 24 digital input channel, the 1 - pair - of - 24 simultaneous digital output channels, and the multiple - selection voltage threshold judgment circuit. The multiple - selection voltage threshold judgment circuit is connected to the control module, and the control module is connected to the communication module.

[0007] As a further solution of the present invention: The voltage output module includes diode D1. The positive pole of diode D1 is connected to PIN1 - PIN24, and the negative pole of diode D1 is connected to the DCDC module.

[0008] As a further solution of the present invention: The switch module includes switches K1, K2, K3, K4, K5, K6, K7, K8, K9, resistors R1, R2. One end of switch K1 is connected to one end of switch K2, one end of switch K3, one end of switch K4, one end of switch K5, one end of switch K6, one end of switch K7, one end of switch K8, one end of switch K9, and PIN1 - PIN24. The other end of switch K1 is connected to one end of resistor R1. The other end of resistor R1 is connected to + 5V voltage and the other end of switch K3. The other end of switch K2 is connected to one end of resistor R2. The other end of resistor R2 is connected to the negative power supply and the other end of switch K4. The other end of switch K5 is connected to the 24 - to - 1 analog channel. The other end of switch K6 is connected to the 24 - to - 1 digital output channel. The other end of switch K7 is connected to the 1 - select - 24 digital input channel. The other end of switch K8 is connected to the 1 - pair - of - 24 simultaneous digital output channels. The other end of switch K9 is connected to the multiple - selection voltage threshold judgment circuit.

[0009] A method for normalizing multiple interfaces of an electric vehicle controller includes the following steps: Step 1: After the power key is turned on, the battery voltage (48V) is supplied to the DCDC module of the external MCU through any one of the 24 PINs of the interface normalization chip and the voltage output module. Step 2: The DCDC module outputs a +5V voltage to supply power to the external MCU and the interface normalization chip. Step 3: The external MCU configures the threshold voltage of the multi-select voltage threshold judgment circuit multiple times through the communication module and the control module, polls the judgment results of the 24 PINs, and judges the voltage conditions of the 24 PINs, which are divided into small signal voltage, converter voltage, and battery voltage. The PINs with converter voltage and battery voltage are marked as high-voltage ports. Step 4: The external MCU further judges the remaining PINs except the high-voltage port PINs, and further judges the ground voltage from the small signal voltage. The PINs with ground voltage are marked as ground ports. Step 5: The external MCU judges the controller model according to the PINs where the battery voltage, converter voltage, small signal voltage, and ground voltage are located. Step 6: The external MCU connects to Bluetooth and enters the applet learning mode, and the external MCU configures each PIN. Step 7: The external MCU writes the configuration scheme into the flash for storage. Step 8: After the power key is turned off and then turned on again, repeat the operations in Step 1, Step 2, and Step 3 to judge whether the high-voltage position is consistent with the stored high-voltage position. When they are consistent, directly write the configuration file stored in the flash into the interface normalization chip; when they are inconsistent and at least one of the PINs of the battery voltage (48V) can be matched, continue with Step 4 and Step 5. If the throttle position judgment is the same as before, directly write the configuration file stored in the flash into the interface normalization chip; if they are inconsistent, report an error and reconfigure Bluetooth.

[0010] As a further solution of the present invention: In step 3, the external MCU configures the threshold voltage of the multi-select voltage threshold judgment circuit as the first voltage (15V) through the communication module and the control module, polls the voltage magnitude judgment results of 24 PIN pins, and transmits this result to the external MCU through the control module and the communication module (0 for lower than 15V, 1 for higher than 15V); then configures the threshold voltage of the multi-select voltage threshold judgment circuit as the second voltage (6V), polls the voltage magnitude judgment results of 24 PIN pins, and transmits this result to the external MCU through the control module and the communication module (0 for lower than 6V, 1 for higher than 6V); the external MCU judges based on this: The small signal voltage is less than the second voltage (6V), the converter voltage (12V) is between the second voltage (6V) and the first voltage (15V), and the battery voltage (48V) is higher than the first voltage (15V); the external MCU respectively marks the voltage conditions of 24 PIN pins, and marks the PIN pins with converter voltage and battery voltage as high-voltage ports (for example, mark PIN1 = 48V; PIN2 = 12V).

[0011] As a further solution of the present invention: In step S4, the external MCU configures the threshold voltage of the multi-select voltage threshold judgment circuit as the third voltage (1.5V) through the communication module and the control module, polls the voltage magnitude judgment results of the remaining PIN pins except the high-voltage port PIN pins, and the small signal voltage less than the third voltage is the ground voltage, and marks the PIN pins with the polling result of 0 as the ground ports (for example: mark PIN3 and PIN4 as externally connected to the main line ground).

[0012] As a further solution of the present invention: In step S5: Step S51: The external MCU compares the position where the battery voltage (48V) PIN pin is located (the position of PIN1) with the controller model table, and preliminarily judges it as the port with the controller version of X1; Step 52: According to the port definition of version X1, mark the three PIN pins of the throttle 5V (PIN5), throttle ground (PIN6), and throttle signal (PIN7), and configure these three PIN pins through the external MCU. PIN5 is configured to output 5V, PIN6 is configured to output ground, and PIN7 is configured to enter the 24-to-1 analog channel (at the same time, it is necessary to configure the pull-down resistor R2 to be turned on), and the analog signal output port of the chip outputs to the AD port of the external MCU for sampling; when the AD port reads a voltage of about 0.8V, it is confirmed that the throttle configuration is successful, and it is confirmed that the main line of the entire vehicle corresponds to version X1 correctly; otherwise, an error is reported and the matching is unsuccessful.

[0013] As a further solution of the present invention: In step S6: Step 61: According to the port definition of the X1 version, mark the positions of the PINs for the clearly defined functional ground (PIN8), anti-theft (PIN9), and rotation (PIN10) functions; the external MCU performs corresponding function configurations through the communication module and the control module (e.g., using the SPI communication method). Step 62: The controller connects to Bluetooth and enters the mini-program learning mode: The external MCU configures PIN2, PIN3, PIN4, PIN11 - PIN24 as input modes. It is necessary to configure and turn on the pull-up resistors R1 on each PIN. After closing K9, in the first step, configure the threshold of the multi-selection voltage threshold judgment circuit to 9V and transmit the judgment result to the external MCU; in the second step, configure the threshold of the multi-selection voltage threshold judgment circuit to 1.5V and then transmit the judgment result to the external MCU. After the mini-program or APP gives a voice prompt 'Please squeeze the brake', repeat the setting of the threshold values in the first and second steps and the transmission of the results; clearly mark the brake position PIN2 (the brake is connected to 12V or 48V voltage). Step 63: The external MCU configures PIN3, PIN4, PIN11 - P24 as input modes. It is necessary to configure and turn on the pull-up resistor R1. After closing the switch K9, configure the threshold of the multi-selection voltage threshold judgment circuit to 1.5V and transmit the judgment result to the external MCU; give a voice prompt 'Please press the high-speed switch', and then transmit the judgment result to the external MCU; the external MCU compares for high and low level flips and marks the high-speed gear position (e.g., PIN3). Step 64: The external MCU configures PIN4, PIN11 - PIN24 as input modes. It is necessary to configure and turn on the pull-up resistor R1. After closing the switch K9, configure the threshold of the multi-selection voltage threshold judgment circuit to 1.5V and transmit the judgment result to the external MCU; give a voice prompt 'Please press the low-speed switch', and then transmit the judgment result to the external MCU; the external MCU compares for high and low level flips and marks the low-speed gear position (e.g., PIN4). Step 65: The external MCU configures PIN11 - P24 as digital output modes. Close the switch K8. The one-line communication signal output of the external MCU is input from the one-line communication input port of the interface normalization chip, and after passing through 1 pair of 24 simultaneous digital output channels, digital pulse signals in the same phase as the one-line communication signal are simultaneously output from PIN11 - PIN24. Observe the display changes of the one-line communication instrument at the front of the vehicle. If the display is normal, confirm that the communication protocol is correct, the communication is successful, and the configuration is completed.

[0014] Compared with the prior art, the beneficial effects of the present invention are: The present invention can achieve compatibility with 99% of the controller interfaces of the standard sockets of 5557 - 8 and 5557 - 16 only through different software configurations. Compared with the prior art, it has fewer components, strong reliability, low failure rate, and a wide range of applications. Description of the Drawings

[0015] Figure 1 These are the five mainstream port definition diagrams on the current market.

[0016] Figure 2 This is a schematic diagram of a chip for normalizing multiple interfaces of an electric vehicle controller.

[0017] Figure 3 This is an application schematic diagram of a chip for normalizing multiple interfaces of an electric vehicle controller. Detailed Implementation Manner

[0018] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0019] Please refer to Figure 2 and Figure 3 A chip for normalizing multiple interfaces of an electric vehicle controller includes: A voltage output module, which is used to supply power to the DCDC module of the external MCU when there is battery voltage on any PIN from PIN1 to PIN24, and the external MCU works; A switch module, which is used to control whether to connect a pull-up resistor, a pull-down resistor, +5V voltage or the power supply negative pole to the PIN through the closing or opening of the switch; control the operation of the 24-to-1 analog channel, the 24-to-1 digital output channel, the 1-to-24 digital input channel, the 1-to-24 simultaneous digital output channel, and the multi-selection voltage threshold judgment circuit; A 24-to-1 analog channel, which is used to connect to the external MCU to complete AD sampling during operation; A 24-to-1 digital output channel, which is used to connect to the external MCU to complete the reading of digital signals during operation; A 1-to-24 digital input channel, which is used to receive the digital signal of the external MCU during operation and output it from any one PIN selected from PIN1 to PIN24; A 1-to-24 simultaneous digital output channel, which is used to receive the one-line communication signal of the external MCU during operation and output it from multiple PINs selected from PIN1 to PIN24; A communication module, which is used to establish communication between the external MCU and the control module; A control module, which is used to receive the control of the external MCU and control the closing or opening of the switch of the switch module; The multiple - selection voltage threshold judgment circuit is used to configure the threshold voltage during operation, and feedback the configured threshold voltage and the judgment results of 24 PINs to the external MCU through the control module and the communication module; PIN1 - PIN24 are connected to the voltage output module and the switch module. The switch module is connected to the 24 - to - 1 analog channel, the 24 - to - 1 digital output channel, the 1 - to - 24 digital input channel, the 1 - to - 24 simultaneous digital output channel, and the multiple - selection voltage threshold judgment circuit. The multiple - selection voltage threshold judgment circuit is connected to the control module, and the control module is connected to the communication module.

[0020] In a specific embodiment: Please refer to Figure 1 , the current mainstream 5 types of port definitions on the market are shown in the figure. It can be seen from the figure that VCC is the ignition switch wire, which is used to supply power to the controller by the high - voltage input of the battery. The positions of the VCC voltages of various board types are different, which puts forward the requirement of high - voltage resistance for the interface normalization chip.

[0021] Starting from the application scenario of the chip in electric vehicles, the following requirements are put forward for the functions of the chip: Requirement 1: It has communication and configuration functions, communicates with the external MCU through communication methods such as SPI, and is configured and data - read by the external MCU; Requirement 2: The interface normalization chip has 24 PINs for external connection, and can withstand a high voltage of more than 150V before operation; and can output the input voltage on these 24 PINs through a fixed PIN through a bypass diode network or other means; at the same time, it can identify the positions of the PINs where the external voltage enters, and the external voltage recognition can set n thresholds: voltage 1, voltage 2, voltage 3... voltage n, and transmit the external voltage port position and voltage range to the external MCU; Requirement 3: All 24 PINs for external connection can be arbitrarily configured with pull - up resistors or pull - down resistors by the external MCU; Requirement 4: All 24 PINs for external connection can be arbitrarily configured to output 5V voltage by the external MCU to supply power to external devices such as the throttle; Requirement 5: All 24 PINs for external connection can be arbitrarily configured as the power ground by the external MCU to provide the power negative pole for external devices such as the throttle; Requirement 6: All 24 PINs for external connection can be configured by the external MCU to construct a 24 - to - 1 analog input channel, and the fixed PIN of the interface normalization chip outputs to the AD port of the external MCU for voltage sampling; Requirement 7: All 24 PINs for external connection can be configured by the external MCU to construct 1 24 - to - 1 digital input channel, and the fixed 1 PIN of the interface normalization chip outputs to the IO port of the external MCU for signal recognition; Requirement 8: All the PINs for external connection of the 8-pin and 24-pin should be able to configure a 1-out-of-24 digital output channel through an external MCU. One PIN of the interface normalization chip is fixed to input the digital signal of the external MCU, and the selected PIN of the 24-pin outputs in phase. Requirement 9: All the PINs for external connection of the 24-pin should be able to configure a 1-to-24 digital output channel through an external MCU. One PIN of the interface normalization chip is fixed to input the digital signal (one-line-through signal) of the external MCU, and multiple selected PINs of the 24-pin output in phase. Requirement 10: All the PINs for external connection of the 24-pin should be able to arbitrarily configure different voltage thresholds (Voltage 1, Voltage 2, Voltage 3... Voltage n) on any PIN through an external MCU, and be able to recognize the high and low level input states corresponding to different threshold voltages, and transmit this state to the external MCU.

[0022] In this embodiment: Please refer to Figure 2 , the voltage output module includes a diode D1. The positive electrode of the diode D1 is connected to PIN1 - PIN24, and the negative electrode of the diode D1 is connected to the DCDC module.

[0023] When the electric vehicle ignition switch is turned on, the battery voltage is input to the controller. When there is battery voltage on any PIN of PIN1 - PIN24, it will be output from VK_OUT through the diode D1 to supply power to the DCDC module of the external MCU, and the external MCU starts to work. Through program control, it communicates with the interface normalization chip via the communication bus to meet the above 10 requirements: To meet Requirement 1: Have a communication module to communicate with the external MCU interactively, and configure and read the registers of the interface normalization chip. To meet Requirement 2: Select devices and switch circuits that can withstand voltages above 150V; the PIN voltage is output from VK_OUT through the diode D1 to supply power to the DCDC module; at the same time, close the switch K9. This voltage passes through the multi-selection voltage threshold judgment circuit and communicates with the external MCU, and outputs the judgment results of the PIN with high voltage and the voltage range to the external MCU. To meet Requirement 3: The external MCU configures the control module of the interface normalization chip to separately control the closing of switch K1 or switch K2, so that this PIN is connected to the pull-up resistor R1 or the pull-down resistor R2. To meet Requirement 4: The external MCU configures the control module to control the closing of switch K3, so that this PIN is connected to the +5V output. To meet Requirement 5: The external MCU configures the control module to control the closing of switch K4, so that this PIN is connected to the negative power supply. Requirement 6 implementation: The external MCU configuration control module controls switch K5 to close. The analog voltage on this PIN is output to the outside of the chip through the 1-of-24 analog channel from the analog output port and connected to the external MCU to complete AD sampling; Requirement 7 implementation: The external MCU configuration control module controls switch K6 to close. The digital level signal on this PIN is output to the outside of the chip through the 1-of-24 digital output channel from the digital output port and connected to the external MCU to complete the reading of the digital signal; Requirement 8 implementation: The external MCU configuration control module controls switch K7 to close. The digital signal output by the external MCU is input from the digital input port and output from any selected PIN through the 1-of-24 digital input channel; Requirement 9 implementation: The external MCU configuration control module controls switch K8 to close. The one-line-through signal output by the external MCU is input from the one-line-through input port and output from any selected multiple PINs through the 1-to-24 simultaneous digital output channel; Requirement 10 implementation: The external MCU configuration control module controls switch K9 to close and configures the threshold voltage of the multiple-selection voltage threshold judgment circuit to N, and the judgment result is read by the external MCU through the communication module; In this embodiment: Please refer to Figure 2 , the switch module includes switches K1, K2, K3, K4, K5, K6, K7, K8, K9, resistors R1, R2. One end of switch K1 is connected to one end of switch K2, one end of switch K3, one end of switch K4, one end of switch K5, one end of switch K6, one end of switch K7, one end of switch K8, one end of switch K9, and PIN1 - PIN24 pins. The other end of switch K1 is connected to one end of resistor R1. The other end of resistor R1 is connected to +5V voltage and the other end of switch K3. The other end of switch K2 is connected to one end of resistor R2. The other end of resistor R2 is connected to the negative power supply and the other end of switch K4. The other end of switch K5 is connected to the 1-of-24 analog channel. The other end of switch K6 is connected to the 1-of-24 digital output channel. The other end of switch K7 is connected to the 1-of-24 digital input channel. The other end of switch K8 is connected to the 1-to-24 simultaneous digital output channel. The other end of switch K9 is connected to the multiple-selection voltage threshold judgment circuit.

[0024] The control module receives the control of the external MCU through the communication module. The communication method can be SPI communication to control the conduction or non-conduction of switches K1 to K9.

[0025] In this embodiment: Please refer to Figure 3, there are currently only three voltage values on the electric vehicle as a whole, namely the battery voltage, the converter voltage of 12V, and the voltage less than or equal to +5V; since the functional sequences of the main line interfaces of the vehicle vary greatly among different manufacturers, when this normalization product is used for the first time on a vehicle with uncertain functions, it is necessary to cooperate with a Bluetooth mini-program or APP for learning and confirmation. For example, the battery voltage of the vehicle is 48V.

[0026] A method for normalizing multiple interfaces of an electric vehicle controller includes the following steps: Step 1, after the ignition switch is turned on, the battery voltage (48V) is supplied to the DCDC module of the external MCU through any one of the 24 PINs of the interface normalization chip, and the voltage output module supplies power to the DCDC module of the external MCU. Step 2, the DCDC module outputs +5V voltage to supply power to the external MCU and the interface normalization chip. Step 3, the external MCU configures the threshold voltage of the multiple-selection voltage threshold judgment circuit through the communication module and the control module for multiple times, polls the judgment results of the 24 PINs, and judges the voltage conditions of the 24 PINs, which are divided into small-signal voltage, converter voltage, and battery voltage. The PINs with converter voltage and battery voltage are marked as high-voltage ports. Step 4, the external MCU further judges the remaining PINs except the high-voltage port PINs, and further judges the ground voltage from the small-signal voltage. The PINs with ground voltage are marked as ground ports. Step 5, the external MCU judges the controller model according to the PINs where the battery voltage, converter voltage, small-signal voltage, and ground voltage are located. Step 6, the external MCU connects to Bluetooth and enters the mini-program learning mode, and the external MCU configures each PIN. Step 7, the external MCU writes the configuration scheme into the flash for storage. Step 8, after the ignition switch is turned off and then turned on again, repeat the operations of Step 1, Step 2, and Step 3 to judge whether the high-voltage position is consistent with the stored high-voltage position. When they are consistent, directly write the configuration file stored in the flash into the interface normalization chip; when they are inconsistent and at least one of the PINs with battery voltage (48V) can be matched, continue with Step 4 and Step 5. If the throttle position judgment is the same as before, directly write the configuration file stored in the flash into the interface normalization chip; if they are inconsistent, report an error and reconfigure via Bluetooth.

[0027] In this embodiment: Please refer to Figure 3, in step 3, the external MCU configures the threshold voltage of the multi - select voltage threshold judgment circuit as the first voltage (15V) through the communication module and the control module, polls the voltage magnitude judgment results of 24 PINs, and transmits this result to the external MCU through the control module and the communication module (0 for lower than 15V, 1 for higher than 15V); then configures the threshold voltage of the multi - select voltage threshold judgment circuit as the second voltage (6V), polls the voltage magnitude judgment results of 24 PINs, and transmits this result to the external MCU through the control module and the communication module (0 for lower than 6V, 1 for higher than 6V); the external MCU then judges based on this: voltages less than the second voltage (6V) are small - signal voltages, voltages between the second voltage (6V) and the first voltage (15V) are converter voltages (12V), and voltages greater than the first voltage (15V) are battery voltages (48V); the external MCU marks the voltage conditions of 24 PINs respectively, and marks the PINs with converter voltages and battery voltages as high - voltage ports (for example, mark PIN1 = 48V; PIN2 = 12V).

[0028] In this embodiment: Please refer to Figure 3 , in step S4, the external MCU configures the threshold voltage of the multi - select voltage threshold judgment circuit as the third voltage (1.5V) through the communication module and the control module, polls the voltage magnitude judgment results of the remaining PINs except the high - voltage - port PINs, determines that voltages less than the third voltage in the small - signal voltages are ground voltages, and marks the PINs with polling results of 0 as ground ports (for example: mark PIN3 and PIN4 as externally connected to the main - line ground).

[0029] In this embodiment: Please refer to Figure 3 , in step S5: Step S51: The external MCU compares the position of the battery - voltage (48V) PIN (the position of PIN1) with the controller - model table to preliminarily judge as the port of controller version X1; Step 52: According to the port definition of version X1, mark the three PINs of the throttle 5V (PIN5), throttle ground (PIN6), and throttle signal (PIN7), and configure these three PINs through the external MCU. PIN5 is configured to output 5V, PIN6 is configured to output ground, and PIN7 is configured to enter the 24 - to - 1 analog channel (and at the same time, it is necessary to configure the pull - down resistor R2 to be turned on), and the analog signal output port of the chip outputs to the AD port of the external MCU for sampling; when the AD port reads a voltage of about 0.8V, it is confirmed that the throttle configuration is successful, and it is confirmed that the main vehicle wire corresponds correctly to version X1; otherwise, an error is reported and the matching is unsuccessful.

[0030] In this embodiment: Please refer to Figure 3 , in step S6: Step 61: According to the port definition of the X1 version, mark the positions of the PINs for the clearly defined functional ground (PIN8), anti-theft (PIN9), and rotation (PIN10) functions; the external MCU performs corresponding function configurations through the communication module and the control module (e.g., using the SPI communication method). Step 62: The controller connects to Bluetooth and enters the mini-program learning mode: The external MCU configures PIN2, PIN3, PIN4, PIN11 - PIN24 as input modes. It is necessary to configure and turn on the pull-up resistors R1 on each PIN. After closing K9, in the first step, configure the threshold of the multi-select voltage threshold judgment circuit to 9V and transmit the judgment result to the external MCU; in the second step, configure the threshold of the multi-select voltage threshold judgment circuit to 1.5V and then transmit the judgment result to the external MCU. After the mini-program or APP gives a voice prompt 'Please squeeze the brake', repeat the setting of the threshold values in the first and second steps and the transmission of the results; clearly mark the brake position PIN2 (the brake is connected to 12V or 48V voltage). Step 63: The external MCU configures PIN3, PIN4, PIN11 - P24 as input modes. It is necessary to configure and turn on the pull-up resistor R1. After closing the switch K9, configure the threshold of the multi-select voltage threshold judgment circuit to 1.5V and transmit the judgment result to the external MCU; give a voice prompt 'Please press the high-speed switch' and then transmit the judgment result to the external MCU; the external MCU compares for high and low level flips and marks the high-speed gear position (e.g., PIN3). Step 64: The external MCU configures PIN4, PIN11 - PIN24 as input modes. It is necessary to configure and turn on the pull-up resistor R1. After closing the switch K9, configure the threshold of the multi-select voltage threshold judgment circuit to 1.5V and transmit the judgment result to the external MCU; give a voice prompt 'Please press the low-speed switch' and then transmit the judgment result to the external MCU; the external MCU compares for high and low level flips and marks the low-speed gear position (e.g., PIN4). Step 65: The external MCU configures PIN11 - P24 as digital output modes. Close the switch K8. The one-line communication signal output of the external MCU is input from the one-line communication input port of the interface normalization chip, and after passing through 1 pair of 24 simultaneous digital output channels, it outputs digital pulse signals in phase with the one-line communication signal from PIN11 - PIN24 simultaneously. Observe the display changes of the one-line communication instrument at the front of the vehicle. If the display is normal, confirm that the communication protocol is correct and the communication is successful, and the configuration is completed.

[0031] Through the operations in steps S1 to S8, the controller products of various hardware versions (with different port definitions) on the market can be replaced with the interface normalization chip of this application.

[0032] The electric vehicle controller product using the interface normalization chip is a normalization controller product, which can also be used in the primary electric vehicle market. It can configure the definitions of each PIN according to the main line drawing of the vehicle manufacturer, and can configure input functions, one-line-through output functions, serial port TX and RX communications, etc.

[0033] The present invention can achieve compatibility with 99% of the controller interfaces of the standard sockets of 5557-8 and 5557-16 only through different software configurations. Compared with the prior art, it has fewer components, stronger reliability, lower failure rate, and a wider scope of application.

[0034] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting.

[0035] In addition, it should be understood that although this specification is described according to embodiments, not every embodiment only contains an independent technical solution. This narrative way of the specification is only for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A normalization chip for multiple interfaces of an electric vehicle controller, characterized in that, The multi-interface normalization chip for the electric vehicle controller includes: A voltage output module, which is used to supply power to the DCDC module of the external MCU when there is battery voltage on any PIN from PIN1 to PIN24, and the external MCU works. A switch module, which is used to control whether to connect a pull-up resistor, a pull-down resistor, +5V voltage or the power supply negative pole to the PIN through the closing or opening of the switch; control the operation of the 24-to-1 analog channel, the 24-to-1 digital output channel, the 1-to-24 digital input channel, the 1-to-24 simultaneous digital output channel, and the multi-selection voltage threshold judgment circuit. A 24-to-1 analog channel, which is used to connect to the external MCU to complete AD sampling during operation. A 24-to-1 digital output channel, which is used to connect to the external MCU to complete the reading of digital signals during operation. A 1-to-24 digital input channel, which is used to receive the digital signal of the external MCU during operation and output it from any one of the selected PINs from PIN1 to PIN24. A 1-to-24 simultaneous digital output channel, which is used to receive the one-line communication signal of the external MCU during operation and output it from multiple selected PINs from PIN1 to PIN24. A communication module, which is used to establish communication between the external MCU and the control module. A control module, which is used to receive the control of the external MCU and control whether the switch of the switch module is closed or opened. A multi-selection voltage threshold judgment circuit, which is used to configure the threshold voltage during operation and feedback the configured threshold voltage and the judgment results of the 24 PINs to the external MCU through the control module and the communication module. The PINs from PIN1 to PIN24 are connected to the voltage output module and the switch module. The switch module is connected to the 24-to-1 analog channel, the 24-to-1 digital output channel, the 1-to-24 digital input channel, the 1-to-24 simultaneous digital output channel, and the multi-selection voltage threshold judgment circuit. The multi-selection voltage threshold judgment circuit is connected to the control module, and the control module is connected to the communication module.

2. The normalization chip for multiple interfaces of an electric vehicle controller according to claim 1, wherein The voltage output module includes a diode D1. The positive pole of the diode D1 is connected to the PINs from PIN1 to PIN24, and the negative pole of the diode D1 is connected to the DCDC module.

3. The normalization chip for multiple interfaces of an electric vehicle controller according to claim 1, characterized in that The switch module includes switches K1, K2, K3, K4, K5, K6, K7, K8, K9, resistors R1, R2. One end of switch K1 is connected to one end of switch K2, one end of switch K3, one end of switch K4, one end of switch K5, one end of switch K6, one end of switch K7, one end of switch K8, one end of switch K9, and the PINs from PIN1 to PIN24. The other end of switch K1 is connected to one end of resistor R1. The other end of resistor R1 is connected to +5V voltage and the other end of switch K3. The other end of switch K2 is connected to one end of resistor R2. The other end of resistor R2 is connected to the power supply negative pole and the other end of switch K4. The other end of switch K5 is connected to the 24-to-1 analog channel. The other end of switch K6 is connected to the 24-to-1 digital output channel. The other end of switch K7 is connected to the 1-to-24 digital input channel. The other end of switch K8 is connected to the 1-to-24 simultaneous digital output channel. The other end of switch K9 is connected to the multi-selection voltage threshold judgment circuit.

4. A method for normalizing multiple interfaces of an electric vehicle controller, which is applied to the chip for normalizing multiple interfaces of the electric vehicle controller described in any one of claims 1 to 3, and is characterized in that, The method for normalizing multiple interfaces of an electric vehicle controller includes the following steps: Step 1, after the ignition switch is turned on, the battery voltage is supplied to the DCDC module of the external MCU through any one of the 24 PINs of the interface normalization chip, and the voltage output module supplies power to the DCDC module of the external MCU; Step 2, the DCDC module outputs a +5V voltage to supply power to the external MCU and the interface normalization chip; Step 3, the external MCU configures the threshold voltage of the multiple-selection voltage threshold judgment circuit multiple times through the communication module and the control module, polls the judgment results of the 24 PINs, judges the voltage conditions of the 24 PINs, which are divided into small-signal voltage, converter voltage, and battery voltage. The PINs with converter voltage and battery voltage are marked as high-voltage ports; Step 4, the external MCU further judges the remaining PINs except the high-voltage port PINs, and further judges the ground voltage from the small-signal voltage. The PINs with ground voltage are marked as ground ports; Step 5, the external MCU judges the controller model according to the PINs where the battery voltage, converter voltage, small-signal voltage, and ground voltage are located; Step 6, the external MCU connects to Bluetooth and enters the mini-program learning mode, and the external MCU configures each PIN; Step 7, the external MCU writes the configuration scheme into the flash for storage; Step 8, after the ignition switch is turned off and then turned on again, repeat the operations of Step 1, Step 2, and Step 3 to judge whether the high-voltage position is consistent with the stored high-voltage position. If they are consistent, directly write the configuration file stored in the flash into the interface normalization chip; if they are inconsistent and at least one of the PINs of the battery voltage can be matched, continue with Step 4 and Step 5. If the throttle position judgment is the same as before, directly write the configuration file stored in the flash into the interface normalization chip; if they are inconsistent, report an error and reconfigure Bluetooth.

5. The method for normalizing multiple interfaces of an electric vehicle controller according to claim 4, characterized in that In Step 3, the external MCU configures the threshold voltage of the multiple-selection voltage threshold judgment circuit as the first voltage through the communication module and the control module, polls the voltage magnitude judgment results of the 24 PINs, and transmits this result to the external MCU through the control module and the communication module; then configures the threshold voltage of the multiple-selection voltage threshold judgment circuit as the second voltage, polls the voltage magnitude judgment results of the 24 PINs, and transmits this result to the external MCU through the control module and the communication module; the external MCU judges accordingly: the voltage less than the second voltage is the small-signal voltage, the voltage between the second voltage and the first voltage is the converter voltage, and the voltage greater than the first voltage is the battery voltage; the external MCU marks the voltage conditions of the 24 PINs respectively, and marks the PINs with converter voltage and battery voltage as high-voltage ports.

6. The method for normalizing multiple interfaces of an electric vehicle controller according to claim 4, characterized in that In Step S4, the external MCU configures the threshold voltage of the multiple-selection voltage threshold judgment circuit as the third voltage through the communication module and the control module, polls the voltage magnitude judgment results of the remaining PINs except the high-voltage port PINs, and the voltage in the small-signal voltage that is less than the third voltage is the ground voltage, and marks the PINs with the polling result of 0 as ground ports.

7. The method for normalizing multiple interfaces of an electric vehicle controller according to claim 4, characterized in that, In Step S5: Step S51: The external MCU compares the controller model table according to the position of the battery voltage PIN, and preliminarily determines the port with the controller version of X1; Step 52: According to the port definition of version X1, mark the three PINs of throttle 5V, throttle ground, and throttle signal, and configure these three PINs through the external MCU. PIN5 is configured to output 5V, PIN6 is configured to output ground, and PIN7 is configured to enter the 24-to-1 analog channel, and the analog signal output port of the chip outputs to the AD port of the external MCU for sampling; when the voltage read by the AD port is about 0.8V, it is confirmed that the throttle configuration is successful, and it is confirmed that the main vehicle wire corresponds to version X1 correctly; otherwise, an error is reported and the matching is unsuccessful.

8. The method for normalizing multiple interfaces of an electric vehicle controller according to claim 7, wherein In step S6: Step 61: According to the port definition of version X1, mark the positions of the clearly defined functional ground, anti-theft, and wheel movement function PINs; the external MCU performs corresponding function configurations through the communication module and the control module; Step 62: The controller connects to Bluetooth and enters the mini-program learning mode: The external MCU configures PIN2, PIN3, PIN4, PIN11-PIN24 as input modes. It is necessary to configure the pull-up resistors R1 on each PIN to be turned on. At the same time, after closing K9, in the first step, configure the threshold of the multi-select voltage threshold judgment circuit to 9V and transmit the judgment result to the external MCU; in the second step, configure the threshold of the multi-select voltage threshold judgment circuit to 1.5V, and then transmit the judgment result to the external MCU; after the mini-program or APP voice prompts 'Please squeeze the brake', repeat the first step and the second step to set the threshold value and transmit the result; clearly mark the brake position PIN2; Step 63: The external MCU configures PIN3, PIN4, PIN11-P24 as input modes. It is necessary to configure the pull-up resistor R1 to be turned on. At the same time, after closing the switch K9, configure the threshold of the multi-select voltage threshold judgment circuit to 1.5V and transmit the judgment result to the external MCU; the voice prompts 'Please press the high-speed switch', and then transmit the judgment result to the external MCU; the external MCU compares the high and low level flips and marks the high-speed gear position; Step 64: The external MCU configures PIN4, PIN11-PIN24 as input modes. It is necessary to configure the pull-up resistor R1 to be turned on. At the same time, after closing the switch K9, configure the threshold of the multi-select voltage threshold judgment circuit to 1.5V and transmit the judgment result to the external MCU; the voice prompts 'Please press the low-speed switch', and then transmit the judgment result to the external MCU; the external MCU compares the high and low level flips and marks the low-speed gear position; Step 65: The external MCU configures PIN11-P24 as the digital output mode, closes the switch K8, and the one-line communication signal output of the external MCU is input from the one-line communication input port of the interface normalization chip. After passing through the 1-to-24 simultaneous digital output channel, it outputs digital pulse signals in phase with the one-line communication signal from PIN11-PIN24 at the same time. Observe the display change of the one-line communication instrument on the front of the vehicle. If the display is normal, it is confirmed that the communication protocol is correct, the communication is successful, and the configuration is completed.