Motor controller and control method thereof, new energy vehicle and readable storage medium

Through the local area network and hard-wire connection between the motor controller and the new energy vehicle, the collection and control of vehicle information is realized, which solves the problem of high manufacturing cost of new energy vehicles and realizes function substitution and cost reduction.

CN118665264APending Publication Date: 2024-09-20SHANDONG GEELY LONG-RANGE AUTOMOBILE MANUFACTURING CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410837913.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The manufacturing cost of existing new energy vehicles is relatively high, mainly due to the complexity and high cost of their components.

Method used

Provide a motor controller that communicates with the controller LAN of the new energy vehicle and is hard-wired with the accelerator pedal module and brake pedal module to realize information collection and control of the vehicle, replacing the vehicle controller. Complete functions such as high-voltage power on, power off, braking and torque output adjustment.

Benefits of technology

It effectively reduces the vehicle manufacturing cost of new energy vehicles, ensures the normal operation of the vehicle, and at the same time simplifies the vehicle structure and reduces production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118665264A
    Figure CN118665264A
Patent Text Reader

Abstract

The invention discloses a motor controller and a control method thereof, a new energy vehicle and a readable storage medium, and relates to the technical field of new energy vehicles. The motor controller is in communication connection with a controller local area network of the new energy vehicle; the motor controller is in hard wire connection with an accelerator pedal module and a brake pedal module of the new energy vehicle. The technical problem that the whole vehicle manufacturing cost of an existing new energy vehicle is high is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of new energy vehicles, and in particular to a motor controller and a control method thereof, a new energy vehicle and a readable storage medium. Background Art

[0002] At present, with the technological development of new energy vehicles, more and more people are beginning to use new energy vehicles as their main means of transportation.

[0003] New energy vehicles are vehicles that use electricity as a power source, and are generally composed of multiple components such as batteries, battery management systems, drive motors, motor controllers, and vehicle controllers. As a result, the manufacturing cost of new energy vehicles is relatively higher than that of fuel vehicles of the same level. Therefore, the manufacturing cost of existing new energy vehicles is relatively high. Summary of the invention

[0004] The main purpose of this application is to provide a motor controller, aiming to solve the technical problem of high vehicle manufacturing cost of existing new energy vehicles.

[0005] To achieve the above objectives, in a first aspect, the present application provides a motor controller, wherein the motor controller is communicatively connected to a controller area network of a new energy vehicle;

[0006] The motor controller is hard-wired to the accelerator pedal module and the brake pedal module of the new energy vehicle respectively.

[0007] According to the first aspect, the motor controller is hard-wired to the on-board T-box of the new energy vehicle, and the on-board T-box is electrically connected to the window control module of the new energy vehicle.

[0008] In a second aspect, the present application provides a motor controller control method, which is applied to the motor controller as described above, and the motor controller control method comprises the following steps:

[0009] Controlling the motor controller to perform self-test, obtaining first self-test information, and requesting first status information through the controller area network;

[0010] Determining whether the new energy vehicle is in a power-on ready state according to the first state information and the first self-test information;

[0011] If the new energy vehicle is in a power-on preparation state, a high-voltage power-on signal is sent to the battery management system of the new energy vehicle through the controller local area network, so that the battery management system performs a high-voltage power-on operation until the bus voltage of the motor controller reaches a preset voltage threshold, completing the high-voltage power-on.

[0012] According to the second aspect, the first status information includes battery management system self-test information and a first key signal, and the step of judging whether the new energy vehicle is in a power-on ready state according to the first status information and the first self-test information includes:

[0013] Determine whether the key signal is a valid Key_start signal;

[0014] If the first key signal is a valid Key_start signal, judging whether the battery management system has a fault according to the battery management system self-check information;

[0015] If the battery management system does not have a fault, determining whether the motor controller has a fault according to the first self-test information;

[0016] If there is no fault in the motor controller, it is determined that the new energy vehicle is in a power-on ready state.

[0017] According to the second aspect, or any implementation of the second aspect above, after the step of completing the high voltage power-on step, the method includes:

[0018] In response to a brake signal transmitted by the brake pedal module through a hard line, controlling the braking of the new energy vehicle;

[0019] and / or,

[0020] In response to the acceleration signal transmitted by the accelerator pedal module through hard wire, the new energy vehicle is controlled to output the corresponding torque.

[0021] According to the second aspect, or any implementation of the second aspect above, after the step of completing the high voltage power-on step, the method further includes:

[0022] Controlling the motor controller to perform self-test, obtaining second self-test information, and requesting second status information through the controller area network;

[0023] According to the second state information and the second self-test information, determining whether the new energy vehicle is in a power-off preparation state;

[0024] If the new energy vehicle is in a power-off preparation state, a high-voltage power-off signal is sent to the battery management system through the controller local area network, so that the battery management system performs a high-voltage power-off operation until the motor controller receives a main positive relay disconnection signal, and then actively discharges to complete the high-voltage power-off.

[0025] According to the second aspect, or any implementation of the second aspect above, the second status information includes a second key signal, a working state of a high-voltage device, and a motor speed, and the step of judging whether the new energy vehicle is in a power-off preparation state according to the second status information and the second self-test information includes:

[0026] Determine whether the second key signal is an invalid Key_ON gear signal, whether the working state of the high-voltage device is stopped, and whether the motor speed is less than a preset speed threshold;

[0027] If the second key signal is that the Key_ON gear signal is invalid, the working state of the high-voltage device is stopped, and the motor speed is less than the preset speed threshold, then judging whether the motor controller has a fault according to the second self-test information;

[0028] If there is no fault in the motor controller, it is determined that the new energy vehicle is in a power-off preparation state.

[0029] According to the second aspect, or any implementation of the second aspect above, the motor controller is hard-wired to the on-board T-box of the new energy vehicle, and the on-board T-box is electrically connected to the window control module of the new energy vehicle;

[0030] Receive window control instructions;

[0031] The window control command is sent to the vehicle-mounted T-box via a hard line, so that the vehicle-mounted T-box sends the received window control command to the window control module, and the window control module adjusts the window glass of the new energy vehicle according to the window control command.

[0032] In a third aspect, the present application provides a new energy vehicle, which includes the motor controller as described above.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the motor controller control method as described above.

[0034] In a fifth aspect, an embodiment of the present application provides a computer program, which includes instructions for executing the motor controller control method as described above.

[0035] The present application proposes a motor controller and a control method thereof, a new energy vehicle and a readable storage medium, wherein the motor controller is communicatively connected to the controller area network of the new energy vehicle; the motor controller is hardwired to the accelerator pedal module and the brake pedal module of the new energy vehicle respectively. Therefore, the present application can realize the information collection of other components in the new energy vehicle by means of the interactive communication between the motor controller and the controller area network of the new energy vehicle, and realize the collection of acceleration signals and brake signals by means of the hard wire connected to the accelerator pedal module and the brake pedal module of the new energy vehicle, so that the motor controller can replace the vehicle controller to realize the functions of high voltage power-on, high voltage power-off, braking, acceleration, torque output adjustment, etc. according to the information collected by the above-mentioned controller area network and hard wire. Therefore, the present application can cancel the vehicle controller on the basis of ensuring the normal operation of the new energy vehicle, and effectively reduce the vehicle manufacturing cost of the new energy vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a schematic diagram of the structure of the first embodiment of the motor controller of the present application;

[0037] Figure 2 This is a schematic diagram of the structure of the second embodiment of the motor controller of the present application;

[0038] Figure 3 This is a flow chart of the first embodiment of the motor controller control method of the present application;

[0039] Figure 4 This is a flow chart of a second embodiment of the motor controller control method of the present application;

[0040] Figure 5 This is a flow chart of a third embodiment of the motor controller control method of the present application;

[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0044] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0045] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0046] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] Please refer to Figure 1 , Figure 1 This is a schematic structural diagram of the first embodiment of the motor controller of the present application.

[0048] The present application provides a motor controller 10, which is communicatively connected to a controller area network 20 of a new energy vehicle;

[0049] The motor controller 10 is hard-wired to the accelerator pedal module 30 and the brake pedal module 40 of the new energy vehicle, respectively.

[0050] In this embodiment, it should be noted that the motor controller 10 is electrically connected to the drive motor of the new energy vehicle and is used to control the drive motor. The controller area network 20 is a communication network for exchanging information between various electronic control devices on the vehicle. The accelerator pedal module 30 is a module that outputs a corresponding acceleration signal in response to the driver's pedal stroke of the accelerator pedal, and the brake pedal module 40 is a module that outputs a corresponding brake signal in response to the driver's pedal stroke of the brake pedal.

[0051] like Figure 1 As shown, the motor controller 10 of this embodiment is connected to the controller area network 20 (i.e. Figure 1 The controller area network 20 is connected to each component in the new energy vehicle (such as Figure 1 The motor controller 10 is connected to the accelerator pedal module 30 and the brake pedal module 40 of the new energy vehicle by hard wire (i.e., the battery management system, instrument, etc.) Figure 1The solid line in the figure). Thus, the present embodiment can realize the information collection of other components in the new energy vehicle by means of the interactive communication between the motor controller 10 and the controller area network 20 of the new energy vehicle, and realize the collection of acceleration signal and brake signal by means of the hard line connected to the accelerator pedal module 30 and the brake pedal module 40 of the new energy vehicle. Thus, the motor controller 10 can replace the vehicle controller according to the information collected by the controller area network 20 and the hard line to realize the functions of high voltage power-on, high voltage power-off, braking, acceleration, torque output adjustment, etc. And because the accelerator pedal module 30 and the brake pedal module 40 are connected by means of hard lines, the motor controller 10 can respond to the acceleration signal and the brake signal stably and quickly.

[0052] See also Figure 2 , Figure 2 This is a structural diagram of the second embodiment of the motor controller of the present application. The motor controller 10 is hard-wired to the on-board T-box 50 of the new energy vehicle, and the on-board T-box 50 is electrically connected to the window control module 60 of the new energy vehicle.

[0053] In this embodiment, it should be noted that the vehicle-mounted T-box 50 is an intelligent vehicle-mounted terminal, and the window control module 60 is a module in the body control module (BCM) of the new energy vehicle for controlling the lifting and lowering of the window.

[0054] See also Figure 2 In this embodiment, the motor controller 10 is hard-wired to the vehicle-mounted T-box 50 of the new energy vehicle, so that after the motor controller 10 receives the window control instruction, the window control instruction can be quickly sent to the vehicle-mounted T-box via the hard wire. Since the vehicle-mounted T-box 50 is electrically connected to the window control module 60 of the new energy vehicle. The vehicle-mounted T-box 50 can send the received window control instruction to the window control module 60, and the window control module 60 can adjust the window glass of the new energy vehicle according to the window control instruction.

[0055] Therefore, this embodiment is hard-wired to the on-board T-box of the new energy vehicle through the motor controller, and the on-board T-box is electrically connected to the window control module of the new energy vehicle, so that the window glass of the new energy vehicle can also be controlled through the motor controller.

[0056] Please refer to Figure 3 , Figure 3 This is a flowchart of the first embodiment of the motor controller control method of the present application. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.

[0057] The present application provides a motor controller control method, which is applied to the motor controller as described above, and the motor controller control method comprises the following steps:

[0058] Step S100, controlling the motor controller to perform self-test, obtaining first self-test information, and requesting first status information through the controller local area network;

[0059] In this embodiment, it should be noted that the executor of this embodiment is a motor controller, and the new energy vehicle is a pure electric vehicle or a hybrid vehicle.

[0060] In this embodiment, it should also be noted that the first self-test information is the self-test result of the motor controller and the drive motor electrically connected to the motor controller, and the self-test result can be a first-level fault (a fault that requires cutting off the high voltage), a second-level fault (a fault that prohibits the vehicle from driving), a third-level fault (a fault that reduces power), no fault, etc. The first status information includes at least the battery management system self-test information and the first key signal, and of course can also include the status of the main positive relay, the bus voltage currently input to the motor controller, and other status information of the high-voltage power-on related components in the new energy vehicle.

[0061] In this embodiment, the motor controller can be controlled to perform self-test to obtain the first self-test information, and then the corresponding status information can be requested from the battery management system, the instrument assembly and other components through the controller local area network as the first status information.

[0062] Step S200, judging whether the new energy vehicle is in a power-on preparation state according to the first state information and the first self-test information;

[0063] In this embodiment, it should be noted that the power-on preparation state is a vehicle state that is preset to allow normal high-voltage power-on.

[0064] In this embodiment, after obtaining the first state information and the first self-test information, it is possible to identify through the first state information whether the driver has issued a vehicle start-up command, such as adjusting the vehicle to the "start gear" by using a key or button. And whether there is a fault in the components related to high-voltage power-on. Then, through the first self-test information, it is confirmed whether the vehicle controller has a fault. Therefore, when it is identified through the first state information that the driver has issued a vehicle start-up command, there is no fault in the components related to high-voltage power-on in the new energy vehicle, and it is confirmed through the first self-test information that there is no fault in the vehicle controller, it can be determined that the new energy vehicle is in a power-on ready state. In any of the cases where the driver has not issued a vehicle start-up command, there is a fault in the components related to high-voltage power-on in the new energy vehicle, or there is a fault in the vehicle controller, it can be determined that the new energy vehicle is not in a power-on ready state.

[0065] Wherein, in step S200, the first status information includes battery management system self-test information and a first key signal, and the step of judging whether the new energy vehicle is in a power-on ready state according to the first status information and the first self-test information includes:

[0066] Step S210, determining whether the key signal is a valid Key_start signal;

[0067] Step S220, if the first key signal is a valid Key_start signal, judging whether the battery management system has a fault according to the battery management system self-check information;

[0068] Step S230, if the battery management system does not have a fault, determining whether the motor controller has a fault according to the first self-test information;

[0069] Step S240: If there is no fault in the motor controller, it is determined that the new energy vehicle is in a power-on preparation state.

[0070] In the present embodiment, it should also be noted that the battery management system self-test information is the self-test result of the battery management system. The self-test result of the battery management system can be a level one fault (a fault requiring high voltage to be cut off), a level two fault (a fault prohibiting vehicle driving), a level three fault (a fault requiring power reduction), no fault, etc.

[0071] In this embodiment, by judging whether the key signal is a valid Key_start signal, it is determined whether the driver has issued a vehicle start command (i.e., the vehicle is adjusted to the "start" gear). If the first key signal is a valid Key_start signal, it means that the driver has a power-on demand, and then it can be further judged whether the battery management system has a fault according to the self-test information of the battery management system; if the battery management system does not have a fault, it is judged whether the motor controller has a fault according to the first self-test information; if the motor controller does not have a fault, it is determined that the new energy vehicle is in a power-on ready state. If the first key signal is not a valid Key_start signal, it means that the driver does not expect to start the new energy vehicle, and it is determined that the new energy vehicle is not in a power-on ready state. In addition, if there is a fault in the battery management system or a fault in the motor controller, it can be determined that the new energy vehicle is not in a power-on ready state.

[0072] Step S300, if the new energy vehicle is in a power-on preparation state, a high-voltage power-on signal is sent to the battery management system of the new energy vehicle through the controller local area network, so that the battery management system performs a high-voltage power-on operation until the bus voltage of the motor controller reaches a preset voltage threshold, completing the high-voltage power-on.

[0073] In this embodiment, it should be noted that the high-voltage power-on operation includes the battery management system controlling the main negative relay to close, and then controlling the pre-charging relay to close. After the pre-charging is completed, the main positive relay is controlled to close and the pre-charging relay is disconnected.

[0074] If the new energy vehicle is in a power-on preparation state, indicating that the driver has a power-on demand, and there is no fault in the relevant components of the new energy vehicle, the motor controller can send a high-voltage power-on signal to the battery management system of the new energy vehicle through the controller local area network. The high-voltage power-on signal is a control signal instructing the battery management system to perform high-voltage power-on. After receiving the high-voltage power-on signal, the battery management system can perform the corresponding high-voltage power-on operation until the bus voltage input to the motor controller reaches a preset voltage threshold (such as 60V), completing the high-voltage power-on.

[0075] In some embodiments, after the high voltage power-on step in step S300 is completed, the following steps are included:

[0076] Step A10, controlling the braking of the new energy vehicle in response to the braking signal transmitted by the brake pedal module through hard wire;

[0077] and / or,

[0078] Step A20, in response to the acceleration signal transmitted by the accelerator pedal module through hard wire, controlling the new energy vehicle to output the corresponding torque.

[0079] In this embodiment, it should be noted that the motor controller is hard-wired to the accelerator pedal module and the brake pedal module of the new energy vehicle. The accelerator pedal module is a module that outputs a corresponding acceleration signal in response to the driver's pedal stroke of the accelerator pedal, and the brake pedal module is a module that outputs a corresponding brake signal in response to the driver's pedal stroke of the brake pedal.

[0080] When the driver operates the brake pedal, the brake pedal module can convert the stroke of the brake pedal into a brake signal and send it to the vehicle controller through a hard line. Thus, the vehicle controller controls the new energy vehicle to brake in response to the brake signal transmitted by the brake pedal module through a hard line. When the driver operates the accelerator pedal, the accelerator pedal module can convert the stroke of the accelerator pedal into an acceleration signal and send it to the vehicle controller through a hard line. Thus, the vehicle controller controls the new energy vehicle to output the corresponding torque in response to the acceleration signal transmitted by the accelerator pedal module through a hard line.

[0081] In the first embodiment of the motor controller control method of the present application, the motor controller is controlled to perform self-test, the first self-test information is obtained, and the first state information is requested through the controller local area network; according to the first state information and the first self-test information, it is judged whether the new energy vehicle is in a power-on preparation state; if the new energy vehicle is in a power-on preparation state, a high-voltage power-on signal is sent to the battery management system of the new energy vehicle through the controller local area network, so that the battery management system performs a high-voltage power-on operation until the bus voltage of the motor controller reaches a preset voltage threshold and the high-voltage power-on is completed. Therefore, in this embodiment, the motor controller replaces the vehicle controller to realize the high-voltage power-on function according to the first state information collected by the controller local area network and the first self-test information obtained by self-test. In addition, other components hard-wired to the controller local area network and the motor controller can also realize functions such as high-voltage power-off, braking, acceleration, and torque output adjustment. Therefore, in this embodiment, the vehicle controller can be cancelled on the basis of ensuring the normal operation of the new energy vehicle, effectively reducing the vehicle manufacturing cost of the new energy vehicle.

[0082] Reference Figure 4 , Figure 4 This is a flow chart of a second embodiment of the motor controller control method of the present application.

[0083] In another embodiment of the present application, the same or similar contents as those in the above embodiment can be referred to the above description and will not be described in detail later. The second embodiment of the present application provides a motor controller control method, which, after completing the high voltage power-on step in step S300, further includes:

[0084] Step S400, controlling the motor controller to perform self-test, obtaining second self-test information, and requesting second status information through the controller area network;

[0085] Step S500, judging whether the new energy vehicle is in a power-off preparation state according to the second state information and the second self-test information;

[0086] Step S600, if the new energy vehicle is in a power-off preparation state, a high-voltage power-off signal is sent to the battery management system through the controller local area network, so that the battery management system performs a high-voltage power-off operation until the motor controller receives a main positive relay disconnect signal, and then actively discharges to complete the high-voltage power-off.

[0087] In this embodiment, it should be noted that the power-off preparation state is a vehicle state that is pre-set to allow normal high voltage power-off.

[0088] In this embodiment, it should also be noted that the second self-test information is the self-test result of the motor controller and the drive motor electrically connected to the motor controller after the high voltage is powered on, and the self-test result can be a first-level fault (a fault that requires cutting off the high voltage), a second-level fault (a fault that prohibits the vehicle from driving), a third-level fault (a fault that reduces power), no fault, etc. The second status information includes at least the second key signal after the high voltage is powered on, and of course can also include the status of the main positive relay, the bus voltage currently input to the motor controller, and other status information of the components related to the high voltage power-off in the new energy vehicle.

[0089] In this embodiment, the second self-test information can be obtained by controlling the motor controller to perform a self-test. Then, the corresponding status information is requested from the battery management system, the instrument assembly and other components through the controller local area network as the second status information. In this embodiment, after obtaining the second status information and the second self-test information, the second status information can be used to identify whether the driver has a power-off demand, such as adjusting the vehicle to the "OFF gear" (i.e., monitoring that the Key_ON gear signal is invalid) by pressing a button or a key. And whether there is a fault in the components related to high-voltage power-off. Then, the second self-test information is used to confirm whether the vehicle controller has a fault. Therefore, when the second status information identifies that the driver has a power-off demand, when the new energy vehicle is in a stopped driving condition, the high-voltage components in the new energy vehicle are in a shutdown state, and when the second self-test information confirms that the vehicle controller has no fault, it can be determined that the new energy vehicle is in a power-off preparation state. In any of the following cases, the driver has not issued a vehicle stop command, the new energy vehicle is not in a stopped condition, the high-voltage components in the new energy vehicle are not in a shutdown state, or the vehicle controller has a fault, it can be determined that the new energy vehicle is not in a power-off preparation state. If the new energy vehicle is in a power-off preparation state, the vehicle controller can send a high-voltage power-off signal to the battery management system through the controller area network, wherein the high-voltage power-off signal is a control signal instructing the battery management system to perform high-voltage power-off. The battery management system performs a high-voltage power-off operation, and the battery management system disconnects the main positive relay and the main negative relay in turn. After the main positive relay is normally disconnected, the battery management system can send a main relay disconnection signal to the motor controller. After the motor controller receives the main positive relay disconnection signal, the motor controller can actively discharge and complete the high-voltage power-off.

[0090] In some embodiments, the second state information includes a second key signal, a working state of a high-voltage device, and a motor speed. The step of determining whether the new energy vehicle is in a power-off preparation state according to the second state information and the second self-test information in step S500 includes:

[0091] Step S510, determining whether the second key signal is an invalid Key_ON signal, whether the working state of the high-voltage device is stopped, and whether the motor speed is less than a preset speed threshold;

[0092] Step S520, if the second key signal is that the Key_ON gear signal is invalid, the working state of the high-voltage device is stopped, and the motor speed is less than a preset speed threshold, then judging whether the motor controller has a fault according to the second self-test information;

[0093] Step S530: If there is no fault in the motor controller, it is determined that the new energy vehicle is in a power-off preparation state.

[0094] This embodiment can determine whether the driver has a power-off demand by judging whether the second key signal is an invalid Key_ON gear signal; determine whether the high-voltage devices of the new energy vehicle have all stopped working by judging whether the working state of the high-voltage device is stopped working; and determine whether the new energy vehicle is in a parking state by judging whether the motor speed is less than a preset speed threshold. If the second key signal is an invalid Key_ON gear signal, it means that the driver has a power-off demand; the working state of the high-voltage device is stopped working, which means that the high-voltage devices of the new energy vehicle have all stopped working; the motor speed is less than a preset speed threshold (such as 200rpm, 220rpm, 250rpm, etc.), which means that the new energy vehicle is in a parking state; and then, according to the second self-test information, it can be judged whether the motor controller has a fault; if the motor controller does not have a fault, it is determined that the new energy vehicle is in a power-off preparation state. If the second key signal is not an invalid Key_ON gear signal, or the working state of the high-voltage device is not stopped working, or the motor speed is not less than the preset speed threshold, or the motor controller has a fault, it can be determined that the new energy vehicle is not in a power-off preparation state.

[0095] In the second embodiment of the present application, the motor controller is controlled to perform self-test, the second self-test information is obtained, and the second status information is requested through the controller local area network; according to the second status information and the second self-test information, it is determined whether the new energy vehicle is in a power-off preparation state; if the new energy vehicle is in a power-off preparation state, a high-voltage power-off signal is sent to the battery management system through the controller local area network, so that the battery management system performs a high-voltage power-off operation until the motor controller receives the main positive relay disconnect signal, and then actively discharges to complete the high-voltage power-off. Therefore, in this embodiment, the motor controller replaces the vehicle controller to realize the high-voltage power-off function according to the second status information collected by the controller local area network and the second self-test information obtained by self-test.

[0096] Reference Figure 5 , Figure 5 This is a flow chart of a third embodiment of the motor controller control method of the present application.

[0097] In another embodiment of the present application, the same or similar contents as those in the above embodiment can be referred to the above description and will not be described in detail later. The third embodiment of the present application provides a motor controller control method, wherein the motor controller is hard-wired to the vehicle-mounted T-box of the new energy vehicle, and the vehicle-mounted T-box is electrically connected to the window control module of the new energy vehicle;

[0098] The motor controller control method further includes:

[0099] Step B10, receiving a window control instruction;

[0100] Step B20, sending the window control command to the vehicle-mounted T-box via a hard line, so that the vehicle-mounted T-box sends the received window control command to the window control module, and the window control module adjusts the window glass of the new energy vehicle according to the window control command.

[0101] In this embodiment, it should be noted that the vehicle-mounted T-box is an intelligent vehicle-mounted terminal for realizing information interaction between the vehicle side and the Internet of Vehicles, and the window control module is a module in the body control module (BCM, Body Control Module) of the new energy vehicle for controlling the lifting of windows.

[0102] In this embodiment, the motor controller is hard-wired to the on-board T-box of the new energy vehicle, so that after the motor controller receives the window control instruction, the window control instruction can be quickly sent to the on-board T-box via the hard wire. Since the on-board T-box is electrically connected to the window control module of the new energy vehicle. The on-board T-box can send the received window control instruction to the window control module, and the window control module can adjust the window glass of the new energy vehicle according to the window control instruction. The window control instruction can include at least one of a rising instruction, a falling instruction, and a target height of the window glass. Therefore, the window control module can control the window glass of the new energy vehicle to rise according to the rising instruction, control the window glass of the new energy vehicle to fall according to the falling instruction, and control the window glass of the new energy vehicle to rise or fall to the target height according to the target height.

[0103] In the third embodiment of the present application, the motor controller is hard-wired to the vehicle-mounted T-box of the new energy vehicle, and the vehicle-mounted T-box is electrically connected to the window control module of the new energy vehicle, so that the present embodiment can receive the window control instruction; the window control instruction is sent to the vehicle-mounted T-box via the hard wire, so that the vehicle-mounted T-box sends the received window control instruction to the window control module, and the window control module adjusts the window glass of the new energy vehicle according to the window control instruction. Therefore, the present embodiment can realize the control of the window glass of the new energy vehicle through the motor controller.

[0104] In addition, an embodiment of the present application also proposes a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the operations in the motor controller control method provided in the above embodiment are implemented. The specific steps will not be repeated here.

[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0106] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is only schematic, and the units described as separate components may or may not be physically separated. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present application scheme. Those of ordinary skill in the art can understand and implement it without paying creative work.

[0107] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, TV, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0109] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A motor controller, characterized in that: The motor controller is communicatively connected to a controller area network of a new energy vehicle; The motor controller is hard-wired to the accelerator pedal module and the brake pedal module of the new energy vehicle respectively.

2. The motor controller according to claim 1, characterized in that: The motor controller is hard-wired to the on-board T-box of the new energy vehicle, and the on-board T-box is electrically connected to the window control module of the new energy vehicle.

3. A motor controller control method, characterized in that: Applied to the motor controller according to any one of claims 1 to 2, the motor controller control method comprises the following steps: Controlling the motor controller to perform self-test, obtaining first self-test information, and requesting first status information through the controller area network; Determining whether the new energy vehicle is in a power-on ready state according to the first state information and the first self-test information; If the new energy vehicle is in a power-on preparation state, a high-voltage power-on signal is sent to the battery management system of the new energy vehicle through the controller local area network, so that the battery management system performs a high-voltage power-on operation until the bus voltage of the motor controller reaches a preset voltage threshold, completing the high-voltage power-on.

4. The motor controller control method according to claim 3, characterized in that: The first status information includes battery management system self-test information and a first key signal. The step of judging whether the new energy vehicle is in a power-on preparation state according to the first status information and the first self-test information includes: Determine whether the key signal is a valid Key_start signal; If the first key signal is a valid Key_start signal, judging whether the battery management system has a fault according to the battery management system self-check information; If the battery management system does not have a fault, determining whether the motor controller has a fault according to the first self-test information; If there is no fault in the motor controller, it is determined that the new energy vehicle is in a power-on ready state.

5. The motor controller control method according to claim 3, characterized in that: After the step of completing the high voltage power-on step, the method further comprises: In response to a brake signal transmitted by the brake pedal module through a hard line, controlling the braking of the new energy vehicle; and / or, In response to the acceleration signal transmitted by the accelerator pedal module through hard wire, the new energy vehicle is controlled to output the corresponding torque.

6. The motor controller control method according to claim 3, characterized in that: After completing the step of high voltage power-on, the method further includes: Controlling the motor controller to perform self-test, obtaining second self-test information, and requesting second status information through the controller area network; According to the second state information and the second self-test information, determining whether the new energy vehicle is in a power-off preparation state; If the new energy vehicle is in a power-off preparation state, a high-voltage power-off signal is sent to the battery management system through the controller local area network, so that the battery management system performs a high-voltage power-off operation until the motor controller receives a main positive relay disconnection signal, and then actively discharges to complete the high-voltage power-off.

7. The motor controller control method according to claim 6, characterized in that: The second state information includes a second key signal, a working state of a high-voltage device, and a motor speed. The step of judging whether the new energy vehicle is in a power-off preparation state according to the second state information and the second self-test information includes: Determine whether the second key signal is an invalid Key_ON gear signal, whether the working state of the high-voltage device is stopped, and whether the motor speed is less than a preset speed threshold; If the second key signal is that the Key_ON gear signal is invalid, the working state of the high-voltage device is stopped, and the motor speed is less than the preset speed threshold, then judging whether the motor controller has a fault according to the second self-test information; If there is no fault in the motor controller, it is determined that the new energy vehicle is in a power-off preparation state.

8. The motor controller control method according to claim 3, characterized in that: The motor controller is hard-wired to the vehicle-mounted T-box of the new energy vehicle, and the vehicle-mounted T-box is electrically connected to the window control module of the new energy vehicle; The motor controller control method further includes: Receive window control instructions; The window control command is sent to the vehicle-mounted T-box via a hard line, so that the vehicle-mounted T-box sends the received window control command to the window control module, and the window control module adjusts the window glass of the new energy vehicle according to the window control command.

9. A new energy vehicle, characterized in that: The new energy vehicle comprises a motor controller as claimed in any one of claims 1 to 2.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the motor controller control method according to any one of claims 3 to 8 are implemented.