Pure electric vehicle body controller and electric vehicle
By using the general-purpose chip STM32 as the main controller of the body controller, combined with the on-board sensor and network communication module, the problem of high cost and inconvenient development of the special chip is solved, and a low-cost and highly intelligent body control system of the vehicle is realized.
Patent Information
- Application Number
- CN202420583017.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2034-03-25
AI Technical Summary
In the prior art, dedicated body controller chips are costly, high integration, and inconvenient development, which is not conducive to large-scale low-cost applications of car companies.
The general-purpose chip STM32 is used as the main controller, combining the on-board sensor and network communication module to realize the lighting, door and window control functions of the body control system.
It reduces the cost of the body controller, simplifies the development process, and improves the electrification and intelligence of the vehicle.
Smart Images

Figure CN222859384U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of new energy vehicles, and in particular to a pure electric vehicle body controller and an electric vehicle. Background Art
[0002] As a core component of the vehicle, the body controller plays a core role in the door lock control, window control, and various lighting controls of the vehicle. For example, the patent application number is 201520858024.0, which is an automatic warning system for electric vehicles and an electric vehicle having the same. The automatic warning system includes: a body controller, an instrument controller, a drive motor controller, a battery manager, and a lighting module. When the battery manager determines that the power system of the electric vehicle fails, it obtains the fault type of the power system, generates a control instruction according to the fault type, and sends the control instruction to the body controller, the instrument controller, and the drive motor controller respectively. The drive motor controller controls the drive motor in the electric vehicle according to the control instruction. At the same time, the body controller controls the light module to issue a warning message according to the control instruction, and the instrument controller controls the instrument to synchronously display the warning message according to the control instruction.
[0003] The patent discloses the vehicle lighting control function of the body controller, and forms a body control system by combining the body controller with other components on the vehicle to control the vehicle. However, it still uses a dedicated body controller. Although the existing technology uses a dedicated body controller to quickly realize various functions of the body control system and is simple and fast to develop, the dedicated body controller chip has high cost, high integration, and inconvenient development, which is not conducive to large-scale and low-cost application by car companies. Utility Model Content
[0004] The utility model aims to overcome the deficiencies of the prior art and provide a pure electric vehicle body controller, which adopts a general chip STM32 as a main controller to realize the body control system and realize the lighting, door and window control functions of the body controller.
[0005] In order to achieve the above purpose, the technical solution adopted by the utility model is:
[0006] A pure electric vehicle body controller comprises an STM32 chip, an on-board sensor, and a network communication module. The on-board sensor is used to collect status data of the vehicle, and its output end is connected to the input end of the STM32 chip. The output end of the STM32 chip is connected to a function execution module of the vehicle. The communication end of the STM32 chip is connected to a server through the network communication module, so as to upload vehicle data to realize remote data interaction and remote control.
[0007] The vehicle-mounted sensors include a temperature and humidity sensor, a human body sensor, and a photoresistor sensor, which are used to collect environmental data inside and outside the vehicle; the temperature and humidity sensor, the human body sensor, and the photoresistor sensor are all connected to the pins of the STM32 chip.
[0008] The network communication module includes a zigbee unit, a wi fi unit, an IPv4 unit or any other combination.
[0009] The function execution module includes a door and window relay, the output pin of the STM32 chip is connected to the driving end of the door and window relay, and the door and window relay is arranged in series in the power supply circuit of the door and window motor.
[0010] The function execution module includes an automatic car light module, the output end of the STM32 chip is connected to the automatic car light module, and the automatic car light module is used to drive and control the opening and closing of the vehicle.
[0011] The control system also includes a manual button, which is configured to turn on and off the car lights. The manual button is integrated into a mobile phone app or into a central control screen or into a center console.
[0012] The function execution module also includes a door locking state detection module and a buzzer, and the STM32 chip is connected to the door locking state detection module and the buzzer respectively.
[0013] The function execution module also includes a vehicle air-conditioning module. The output end of the STM32 chip is connected to the vehicle air-conditioning module, which is used to control the start-up of the vehicle air-conditioning according to the temperature and humidity data of the vehicle.
[0014] An electric vehicle comprises the above-mentioned pure electric vehicle body control system.
[0015] The utility model has the advantages of using a universal chip STM32 to implement the main controller of the vehicle body controller, which is low in cost and simple and convenient to develop; automatic control and remote control functions of windows, doors and lights of the vehicle body controller are realized based on STM32, thereby improving the electrification and intelligence of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The following is a brief description of the contents expressed in the drawings of the present invention and the symbols in the drawings:
[0017] Figure 1 This is a schematic diagram of the vehicle body control system of the utility model;
[0018] Figure 2 Signal flow chart for door and window control in the body control system. DETAILED DESCRIPTION
[0019] The specific implementation of the present invention will be further explained in detail below by describing the optimal embodiment with reference to the accompanying drawings.
[0020] This application uses STM32 chips to develop a complete body control function, and uses STM32 series chips as the core main controller to realize the vehicle control function, thereby realizing a pure electric vehicle body control system. The STM32 series chips refer to an assembly of a series of chips provided by STMicroelectronics with a model number starting with STM32. It has the advantages of versatility, multiple resources and low cost. The STM32 chip development board used in this solution integrates the STM32 chip and the corresponding peripheral circuits and power supply circuits on the development board, and the body control system is developed based on this development board.
[0021] This system is a body controller with relatively complete functions developed based on the STM32 chip. It combines the functions of the traditional body controller with those of the T-BOX. Through various sensors and network communication modules, the car and the user can interact. The controller creates the most suitable environment for the user through the data collected by the sensor. First, the data is collected through various controllers, and the collected data is transmitted to the server through the communication module, and the data is stored in the database. The server controls the switches of the relays of various electrical components according to the collected data. In addition, the user can also view the status of the car in real time through the mobile terminal or PC terminal, and can also control the car in real time through the mobile terminal. Realize the interconnection between people and cars, and achieve the function of the in-vehicle Internet of Things. With the improvement in the later stage, it can also achieve the interconnection between cars and cars, and cars and other objects, so as to realize truly safe unmanned driving.
[0022] like Figure 1 As shown, the body control system includes an STM32 chip, an on-board sensor, and a network communication module. The on-board sensor is used to collect the vehicle's status data, and its output end is connected to the input end of the STM32 chip. The output end of the STM32 chip is connected to the vehicle's function execution module; the communication end of the STM32 chip is connected to the server through the network communication module, which is used to upload vehicle data to realize remote data interaction and remote control.
[0023] The network communication module includes any one or any combination of communication units among the zigbee unit, the wifi unit, and the IPv4 unit, which is used to realize the network communication function of the STM32 chip. The network communication module is integrated on the STM32 chip. Due to the adoption of the above-mentioned network communication unit, the STM32 chip has the Internet of Things function, that is, the communication function of TBOX is realized.
[0024] The main function of the body control system is to realize the basic functions of the vehicle such as door and window control, light control, locking control, alarm function and air conditioning. In order to realize these functions, the hardware principles of interaction with the STM32 chip involved in this application are as follows:
[0025] The data of the in-vehicle environment is collected by various sensor modules inside and outside the vehicle. The system configures the modules accordingly according to the different operating principles of each sensor, thereby ensuring the accuracy of the collected data.
[0026] The transmission of environmental data is divided into two stages, from the bottom end to the server end and from the server end to the user end. The communication between the bottom end and the server end mainly includes ZigBee, Wi-Fi, IPv4 and other protocols. Which protocol should be selected? How to send the data and information collected by the bottom layer to the corresponding server location, and how to communicate between the server and the client end. These issues are the main issues and contents of this part of the research.
[0027] The system design of the central control system of this new energy vehicle is divided into three modules, namely the hardware design of the underlying system, the software design of the application layer and the database design.
[0028] The vehicle-mounted sensors include temperature and humidity sensors, human body sensors, and photoresistor sensors, which are used to collect data about the environment inside and outside the vehicle. The temperature and humidity sensors, human body sensors, and photoresistor sensors are all connected to the pins of the STM32 chip. Temperature and humidity, human body signals, light signals, and other vehicle-mounted signals provide basic information for the function realization of the STM32 chip.
[0029] The function execution module includes a door and window relay. The output pin of the STM32 chip is connected to the driving end of the door and window relay. The door and window relay is connected in series in the power supply circuit of the door and window motor to realize the control of the door and window. The door and window control is modified on the basis of the original remote control on the traditional car. When the user forgets to lock the car and the distance is far, the user can close the car door through the client APP. Prevent the loss of user property safety. Intelligent door and window control, users can remotely control the vehicle doors and windows through the mobile client. The user uploads the command of opening and closing the window to the server through the mobile phone APP, and the server sends the command to the data transmission module. The bottom layer receives the signal transmitted by the server and transmits the signal to the execution module. Control the switch of the corresponding relay according to the signal. Thereby achieving the function of remotely opening and closing doors and windows. The STM32 chip can control the door and window relay according to the signal of the mobile phone app sent by the server, or it can control the vehicle's doors and windows automatically or according to the interaction with the key PEPS module.
[0030] The function execution module also includes an automatic car light module, the output end of the STM32 chip is connected to the automatic car light module, and the automatic car light module is used to drive and control the opening and closing of the vehicle. The control system also includes a manual button, which is configured to switch the car light, and the manual button is integrated in the mobile phone app or in the central control screen or in the center console. The opening of the car light includes intelligent automatic opening and manual opening. Manual opening is to press a button, and automatic opening can be achieved by driving the light module after the STM32 chip recognizes the light signal of the environment. The user can choose two modes: manual and automatic. When the user selects the manual mode on the client APP, the control of the light is controlled by the user through the operation button; if the user selects the automatic mode, the light on the car is controlled by the system, and when the external light intensity is lower than the set lower threshold, the module automatically lights up the light. When the external light intensity is higher than the upper threshold, the module turns off the light. When the user selects the manual mode, the user can remotely control the switch of the light on the client APP to illuminate the way for the user to get off the car and go home.
[0031] The function execution module also includes a door lock state detection module and a buzzer, and the STM32 chip is connected to the door lock state detection module and the buzzer respectively. By detecting the vehicle's locking signal and the presence or absence of human signals and door signals in the car, it can be determined whether the vehicle has forgotten to lock. In this way, the alarm reminder function can be expanded and the alarm information can be uploaded to the remote server and mobile phone app. After the user leaves the car, the human body sensor detects whether there is anyone in the car. If the owner leaves the car, there is no one else in the car and the door is not locked, the human body sensor does not detect human activity, and the car lock relay is not closed, the alarm is transmitted to the user's mobile phone APP. And start the buzzer alarm. So as to achieve the purpose of reminding the user. When the car is locked, if the human body sensor in the car detects that there is someone in the car, an alarm is sent to the user's mobile phone.
[0032] The function execution module also includes a vehicle air conditioning module. The output end of the STM32 chip is connected to the vehicle air conditioning module, which is used to control the start of the vehicle air conditioning according to the temperature and humidity data of the vehicle to adjust the temperature in the car. The intelligent temperature control collects temperature and humidity data by the temperature and humidity sensor and sends the data to the master node. The master node compares the collected temperature data with the threshold or default value set by the user. Thereby controlling the heating and cooling of the air conditioning in the car. The air conditioner can also be turned on and off remotely through the user's mobile phone, so that the environment in the car is the most comfortable environment when the user gets in the car. Control the temperature environment in the car within the most comfortable range for the user.
[0033] The present application also provides an electric vehicle, which includes the pure electric vehicle body control system in the above embodiment.
[0034] The design of system hardware includes data acquisition, function execution and data transmission.
[0035] Data acquisition module: Temperature and humidity sensors, human body sensors, and photoresistor sensors are connected to the STM32 development board to collect data about the environment inside and outside the vehicle. In the data acquisition module, the STM32 development board pins connected to the sensor data pins need to be configured according to the different principles of the sensors.
[0036] The DHT11 temperature and humidity sensor outputs digital signals and according to the working principle of the DHT11 temperature and humidity module, its DATA pin is connected to the GPIOB10 pin of the STM32 development board and the working mode is set to pull-up output mode. The HC-SR501 human body sensor module outputs digital signals. According to the working principle, we use the library function GPIO_READ I NPUTDATABI T() to read whether the IDR of the GPIOB pin is 0 or 1. If it is 0, it means no person is detected, and if it is 1, it means human activity is detected.
[0037] The photoresistor module is actually a photoresistor. As the light intensity increases, the resistance increases. The light intensity displayed by the system is the voltage value read by the development board using AD, and the resistance value can also be calculated. This system uses the AD of the STM32 development board to read the voltage value of the module. As the light intensity increases, the voltage value increases, so the relationship between the light intensity can be mapped through the voltage value.
[0038] Function execution module: The corresponding interfaces are brought out on the STM32 development board to connect hardware devices such as relays, LED lights, buzzers, etc. Three relays are used in the system, namely the light control relay, the door and window control relay, and the temperature control relay. These three relays are low-level triggered. The light relay and the door and window relay are designed to be closed when they are pulled in and closed when they are disconnected. The temperature relay is a little different because one relay is used to control four situations. Therefore, the temperature control relay not only connects the IN pin to the GPI IO port, but also connects its VCC to the GPIO port. By setting VCC to 1 or 0, it is used to turn on and off the main power of the air conditioner.
[0039] Data transmission module: The ESP8266Wi F i module is integrated on the development board for communication between the underlying hardware and the server. The data transmission module processes the data collected by the data acquisition module and forwards it to the server. It also receives instructions sent by the user in the server through the client; it processes the received instructions and implements different functions according to different instructions. It is used to change the threshold of the sensor or control the relay.
[0040] The three modes of the ESP8266WF I module are controlled by AT+CWMNODE= <mode>Command to set, mode is parameter 1, 2, 3 correspond to three communication modes respectively; this system selects server mode and AP mode. STM32 chip connects to the server through the network communication module and establishes interaction with the mobile app based on the server. The development of mobile app can adopt existing technology development technology. For example, when developing the mobile app in this solution, the requirements are as follows: the software design has PC and Android sides. The PC software is programmed in Python and developed on PyCharm software. The Android side is developed in Java language. The Android stud io software development interface is divided into user login interface, user registration interface, data display interface, management interface, and operation control interface. The user login interface includes the user registration interface. If there is a user account in the database, the password is verified. If the password is correct, it depends on the account type. Ordinary users enter the data display interface, which displays real-time environmental data information in the car.
[0041] There is a button to enter the operation management interface at the bottom of the page. The user clicks the button to enter the operation management interface. There are 7 buttons on the operation management interface, corresponding to the functions of modifying the lighting control mode, modifying the temperature control mode, modifying the temperature threshold, modifying the light threshold, turning on and off the light, turning on and off the lock, and turning on and off the air conditioner. Remotely set the temperature data threshold. When the threshold is set, click the OK button to successfully set it. The threshold is the judgment of the user's intelligent temperature control. If the user does not set the threshold, the system will set the default value as the threshold based on the most suitable temperature for the human body. The user sets the upper and lower limits of temperature and humidity. When the temperature control is in automatic mode. If the temperature collected by the sensor is higher than the upper limit, the air conditioning cooling mode is turned on to lower the temperature in the car, and it is turned off when it reaches the limit. When the temperature is lower than the lower limit, the air conditioning heating mode is turned on. After the temperature in the car rises to the upper limit, the air conditioning is controlled to turn off the heating mode. Remotely set the light intensity threshold. When the threshold is set, click the OK button to successfully set it. The threshold is the judgment of the user's intelligent lighting control. If the user does not set the threshold, the system will set the default value as the threshold based on the most comfortable light intensity for the human body. If the light intensity is lower than the threshold, the system will turn on the lights in the car. Used for user's interior lighting.
[0042] If an administrator account logs in to the system, you can choose to enter the user information management interface to manage user information registration, change passwords, log out of accounts and other functions.
[0043] If the user's account information does not exist in the database, the user is prompted to register an account and enter the account registration interface. The user's added account, password, name, phone number, QQ number, email address and other information are stored in the user database.
[0044] If the user loses the login password, he can retrieve the information by mobile phone verification code, or verify the user's identity by email verification. Used to change the user's new password.
[0045] Obviously, the specific implementation of the present invention is not limited to the above-mentioned methods. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention, they are all within the protection scope of the present invention.< / mode>
Claims
1. A pure electric vehicle body controller, characterized in that: The invention comprises an STM32 chip, an on-board sensor and a network communication module. The on-board sensor is used to collect status data of the vehicle, and its output end is connected to the input end of the STM32 chip. The output end of the STM32 chip is connected to a function execution module of the vehicle. The communication end of the STM32 chip is connected to a server through the network communication module, so as to upload vehicle data to realize remote data interaction and remote control.
2. A pure electric vehicle body controller as claimed in claim 1, characterized in that: The vehicle-mounted sensors include a temperature and humidity sensor, a human body sensor, and a photoresistor sensor, which are used to collect environmental data inside and outside the vehicle; the temperature and humidity sensor, the human body sensor, and the photoresistor sensor are all connected to the pins of the STM32 chip.
3. A pure electric vehicle body controller as claimed in claim 1, characterized in that: The network communication module includes a zigbee unit, a wifi unit and / or an IPv4 unit.
4. A pure electric vehicle body controller as described in any one of claims 1 to 3, characterized in that: The function execution module includes a door and window relay, the output pin of the STM32 chip is connected to the driving end of the door and window relay, and the door and window relay is arranged in series in the power supply circuit of the door and window motor.
5. A pure electric vehicle body controller as described in any one of claims 1 to 3, characterized in that: The function execution module includes an automatic car light module, the output end of the STM32 chip is connected to the automatic car light module, and the automatic car light module is used to drive and control the opening and closing of the vehicle.
6. A pure electric vehicle body controller as claimed in claim 5, characterized in that: The vehicle body controller also includes a manual button, which is configured to turn on and off the vehicle lights. The manual button is integrated into a mobile phone app or into a central control screen or into a center console.
7. A pure electric vehicle body controller as claimed in any one of claims 1 to 3, characterized in that: The function execution module also includes a door locking state detection module and a buzzer, and the STM32 chip is connected to the door locking state detection module and the buzzer respectively.
8. A pure electric vehicle body controller as claimed in any one of claims 1 to 3, characterized in that: The function execution module also includes a vehicle air-conditioning module. The output end of the STM32 chip is connected to the vehicle air-conditioning module, which is used to control the start-up of the vehicle air-conditioning according to the temperature and humidity data of the vehicle.
9. An electric vehicle, characterized in that: The electric vehicle comprises a pure electric vehicle body controller as described in any one of claims 1-8.
Citation Information
Patent Citations
Electric automobile and be used for electric automobile's automatic warning system
CN205097961U