Operation method of motor driving module, motor driving control system and vehicle

By receiving preset configuration information in the motor drive module to build the motor drive map, the problem of lack of universality of the existing motor drive control system is solved, and multifunctional adaptation of the same version of software and hardware is realized, reducing the construction cost and realizing closed-loop control.

CN119911131APending Publication Date: 2025-05-02CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510100435.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing motor drive control system corresponds one by one to the preset functions, and lacks universality, resulting in increased construction costs.

Method used

By receiving preset configuration information in the motor drive module, building a motor drive map, the motor drive module of the same version of software and hardware can be connected to different functional positions, and the motor operation in the corresponding functional positions can be controlled to realize the functions of different systems/components.

Benefits of technology

Without modifying the domain controller software, the universality of the motor drive module is improved, the construction cost is reduced, and closed-loop control is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119911131A_ABST
    Figure CN119911131A_ABST
Patent Text Reader

Abstract

The invention relates to an operation method of a motor driving module, a motor driving control system and a vehicle, and the method comprises the steps: receiving and constructing motor driving mapping based on preset configuration information, so as to complete the initialization operation of the motor driving module; in response to a target control signal, determining a target motor, a target control algorithm and a target hardware driving unit based on the target control signal and the motor driving mapping; and generating a target driving instruction based on the target control signal and the target control algorithm, so as to drive the target hardware driving unit to control the target motor according to the target driving instruction. On the premise that domain controller software is not modified, motor driving modules of software and hardware of the same version are connected to different function positions by writing in the preset configuration information, and functions of different systems / parts are achieved by controlling motors at the corresponding function positions to operate. And the universality of the motor driving module is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor control technology, and in particular to an operation method of a motor drive module, a computer-readable storage medium and a motor drive control system. Background Art

[0002] With the continuous deepening of the development of the "new four modernizations" in the automotive industry, the degree of automotive electrification, intelligence, and networking is becoming higher and higher, and there is more and more attention and understanding of user needs. The ICT (Information and Communications Technology) industry and the Internet industry technology continue to penetrate into the automotive industry, promoting the development of automotive electronic and electrical software and hardware technology and related standards, injecting new development momentum and bringing a huge impact on traditional functions.

[0003] In the related art, during the vehicle production process, motor connections and drive software are written according to the functional configuration of different vehicles to build a motor drive control system. After the vehicle leaves the factory, users can implement functions based on the built motor drive control system. However, the motor drive control system corresponds to the preset functions one by one and is not universal, which increases the construction cost of the motor drive control system. Summary of the invention

[0004] One of the objects of the present invention is to provide an operation method of a motor drive module, which can realize the connection of motor drive modules of the same version of software and hardware to different functional positions by writing preset configuration information without modifying the domain controller software, and achieve the functional realization of different systems / components by controlling the operation of the motors at the corresponding functional positions, thereby greatly improving the versatility of the motor drive module; the second object is to provide a computer-readable storage medium; the third object is to provide a motor drive control system; and the fourth object is to provide a vehicle.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A method for operating a motor drive module, wherein the motor drive module is connected to a motor, and the method comprises: receiving preset configuration information, and constructing a motor drive mapping based on the preset configuration information to complete the initialization operation of the motor drive module, wherein the motor drive mapping is used to characterize the mapping relationship between the motor, the control algorithm and the hardware driver; in response to a target control signal, determining a target motor, a target control algorithm and a target hardware drive unit based on the target control signal and the motor drive mapping; and generating a target drive instruction based on the target control signal and the target control algorithm, so as to drive the target hardware drive unit to control the target motor according to the target drive instruction.

[0007] According to the above technical means, during the initialization process of the motor drive module, by receiving the preset configuration information and establishing the motor drive mapping of the motor-control algorithm-hardware drive unit in the motor drive module based on the preset configuration information, the initialization operation of the motor drive module is completed. After the initialization is completed, the target control signal is received, and the target control signal is responded to, and the target motor, target control algorithm and target hardware drive unit corresponding to the target control signal are determined, so as to generate the target drive instruction according to the control instruction in the target control signal based on the target control algorithm, thereby driving the target hardware drive unit to control the target motor. Therefore, through this method, the motor drive module of the same version of software and hardware can be connected to different functional positions by writing the preset configuration information without modifying the domain controller software, and the function of different systems / components can be realized by controlling the operation of the motor at the corresponding functional position, which greatly improves the versatility of the motor drive module.

[0008] Further, the motor drive mapping includes a mapping relationship between a motor ID (Identity Document), a control algorithm ID and a hardware drive ID, and determining a target motor, a target control algorithm and a target hardware drive unit based on the target control signal and the motor drive mapping includes: determining a current motor ID according to the target control signal; determining a current control algorithm ID and a current hardware drive ID corresponding to the current motor ID according to the motor drive mapping, taking the motor corresponding to the current motor ID as the target motor, taking the control algorithm corresponding to the current control algorithm ID as the target control algorithm, and taking the hardware drive unit corresponding to the current hardware drive unit ID as the target hardware drive unit.

[0009] Furthermore, the operation method of the motor driving module further includes: acquiring operation parameters of the target motor; and generating a feedback signal based on the operation parameters of the target motor, wherein the feedback signal includes an ID of the target motor.

[0010] Furthermore, the operation method of the motor drive module also includes: the preset configuration information is determined based on the vehicle model configuration.

[0011] A computer-readable storage medium stores an operating program of a motor drive module, and when the operating program of the motor drive module is executed by a processor, the operating method of the motor drive module is implemented.

[0012] A motor drive control system, the system comprising: a centralized domain controller, for generating preset configuration information and a target control signal; at least one motor drive module, the motor drive module being connected to a motor and for receiving the preset configuration information, and constructing a motor drive mapping based on the preset configuration information to complete an initialization operation of the motor drive module, wherein the motor drive mapping is used to characterize a mapping relationship between a motor, a control algorithm and a hardware driver, and in response to the target control signal, determine a target motor, a target control algorithm and a target hardware drive unit based on the target control signal and the motor drive mapping, and generate a target drive instruction based on the target control signal and the target control algorithm, so as to drive the target hardware drive unit to control the target motor according to the target drive instruction.

[0013] Furthermore, the centralized domain controller communicates with the motor drive module via a CAN (Controller Area Network) bus.

[0014] Furthermore, the centralized domain controller includes: an APP (Application) application unit, used to generate the preset configuration information according to the vehicle model configuration, and to generate the target control signal according to the control instruction; a first CAN bus communication unit, used to perform CAN bus communication with the motor drive module.

[0015] Furthermore, the motor drive module includes: a second CAN bus communication unit, connected to the first CAN bus communication unit, and used to establish CAN bus communication with the first CAN bus communication unit; a control algorithm unit, the control algorithm unit pre-stores multiple control algorithms, and is used to determine the target motor, target control algorithm and target hardware drive unit based on the target control signal and the motor drive mapping, and generate a target drive instruction based on the target control signal and the target control algorithm, and send the target drive instruction to the target hardware drive unit; multiple hardware drive units, the multiple hardware drive units are connected to the motor through corresponding IO (Input / Output) ports, and the target hardware drive unit among the multiple hardware drive units responds to the target drive instruction and controls the target motor based on the target drive instruction.

[0016] A vehicle comprises the above-mentioned motor drive control system.

[0017] Beneficial effects of the present invention:

[0018] (1) The present invention can realize the connection of motor drive modules of the same version of software and hardware to different functional positions by writing preset configuration information without modifying the domain controller software, and realize the functions of different systems / components by controlling the operation of the motors at the corresponding functional positions, thereby greatly improving the versatility of the motor drive module;

[0019] (2) The motor drive module sends the status or result of the corresponding motor based on the motor ID. When the centralized domain controller receives the feedback result, it distributes the data to the corresponding software modules of each system in the APP layer based on the motor ID to complete the closed-loop control of the entire motor drive. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of the operating method of the motor drive module of the present invention;

[0021] Figure 2 A flowchart of an operating method of a motor drive module according to a specific embodiment of the present invention;

[0022] Figure 3 It is a connection diagram of the motor drive control system of the present invention;

[0023] Figure 4 A connection diagram of a motor drive control system according to a specific embodiment of the present invention;

[0024] Figure 5 A block diagram of a vehicle according to a specific embodiment of the present invention.

[0025] Among them, 100-motor drive control system; 10-centralized domain controller; 11-APP application unit; 12-first CAN bus communication unit; 20-motor drive module; 21-second CAN bus communication unit; 22-control algorithm unit; 23-hardware drive unit; 1000-vehicle. DETAILED DESCRIPTION

[0026] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0027] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0028] Combination Figure 1 As shown, this embodiment proposes an operation method of a motor drive module, the motor drive module is connected to the motor, and the method includes:

[0029] S1, receiving preset configuration information, and constructing a motor drive mapping based on the preset configuration information to complete the initialization operation of the motor drive module, wherein the motor drive mapping is used to characterize the mapping relationship between the motor, the control algorithm, and the hardware driver;

[0030] S2, in response to the target control signal, determining a target motor, a target control algorithm, and a target hardware drive unit based on the target control signal and the motor drive mapping;

[0031] S3, generating a target drive instruction based on the target control signal and the target control algorithm, so as to drive the target hardware drive unit to control the target motor according to the target drive instruction.

[0032] Specifically, taking the motor drive control system including a centralized domain controller and multiple motor drive modules as an example, the centralized domain controller controls the motor through the multiple motor drive modules. Each motor drive module pre-stores multiple control algorithms and is provided with multiple hardware drive units, and the multiple hardware drive units are respectively connected to the corresponding motors through corresponding IO ports. The centralized domain controller is used to send preset configuration information and target control signals to the motor drive modules.

[0033] During the initialization process of the motor drive module, the motor drive module receives the preset configuration information sent by the centralized domain controller, and establishes a mapping relationship between the motor-control algorithm-hardware drive unit in the motor drive module based on the preset configuration information to complete the initialization operation of the motor drive module.

[0034] After initialization is completed, the target control signal is received, and the target motor, target control algorithm and target hardware drive unit corresponding to the target control signal are determined, so as to generate a target drive instruction based on the target control algorithm according to the control command in the target control signal, thereby driving the target hardware drive unit to control the target motor.

[0035] Therefore, this method can realize the connection of motor drive modules of the same version of software and hardware to different functional positions by writing preset configuration information without modifying the domain controller software, and achieve the functions of different systems / components by controlling the operation of the motors at the corresponding functional positions, thereby greatly improving the versatility of the motor drive module.

[0036] In one embodiment of the present application, the operating method of the motor drive module also includes: the preset configuration information is determined based on the vehicle model configuration.

[0037] Specifically, the vehicle configuration may include the type and number of systems controlled by the motor installed on the vehicle. The preset configuration information is determined according to the vehicle configuration. The preset configuration information may reflect the type and number of systems controlled by the motor configured for the vehicle, the number of motor drive modules and other parameters, without specific restrictions. The following is an example of the method for setting the preset configuration information:

[0038] Taking the seat system as an example, apply for a configuration word storage space with an ID of 0x1234, with a maximum of 64 bytes. According to the principle of maximization, all motors are listed, and then their values ​​are set according to the actual configuration of the vehicle model to obtain the preset configuration information. For details, please refer to Table 1.

[0039] Table 1

[0040]

[0041] Table 1

[0042] In Table 1, byte0 is used to define the function of moving the seat forward and backward: 0x00: no such configuration, so there is no corresponding motor to be controlled; non-0x00 value: represents this configuration, and its value corresponds to the ID of the motor controlled by the configuration; 0xFF: invalid value / initial value.

[0043] After the configuration word excel sheet is filled in, it is exported as a cfg (Configuration File) file, stored in the centralized domain controller, and written to the corresponding motor drive module through the centralized domain controller during the vehicle offline electrical inspection process, so that the motor drive module matches XDU_ID, MOT_ID, ALG_ID, and IO_ID (hardware drive unit) based on the configuration word, as shown in Table 2. The motor drive module completes the initialization operation according to the configuration word for use in the execution of the control algorithm and hardware drive software.

[0044] Table 2

[0045]

[0046] Among them, XDU_ID: motor drive module number is the motor drive module ID. Each vehicle may be equipped with one or more motor drive modules according to different vehicle model planning, and they need to be numbered. This number matches the CAN bus application message ID to identify the uniqueness of the motor drive module.

[0047] MOT_ID: Motor number is the motor ID. A motor driver module can control one or more motors, which need to be numbered. When the centralized domain controller sends a command to a motor in normal working state, MOT_ID is also needed.

[0048] ALG_ID: Control algorithm number, i.e., control algorithm ID. In the motor drive module, one or more control algorithms are pre-stored according to the characteristics of the controlled object. The centralized domain controller informs the motor drive module which motor is suitable for a certain control algorithm based on the vehicle configuration plan.

[0049] IO_ID: Hardware driver unit number is the hardware driver ID. The hardware driver on the motor driver module is divided into several groups according to the wiring harness pin definition, and each group is assigned an ID. The wiring harness pin definition order of the motor driver module in different positions may be adjusted, and the wiring harness pin definition positions used by the same system / component may be different, so an ID needs to be defined for matching.

[0050] Thus, the motor drive module completes the initialization setting based on the preset configuration information, specifically by writing the type and quantity of the motor to be controlled by the motor drive module and the corresponding control algorithm and underlying drive module of the corresponding motor on the motor drive module to a certain motor drive module. The app (Application) software in the centralized domain controller and the cdd (Complex Device Driver) software in the motor drive module are matched through the preset configuration information. The initialization process can be implemented in the vehicle offline electrical inspection process through the diagnostic message in the CAN bus protocol.

[0051] In one embodiment of the present application, the motor drive mapping includes a mapping relationship between a motor ID, a control algorithm ID, and a hardware drive ID, and determines a target motor, a target control algorithm, and a target hardware drive unit based on a target control signal and the motor drive mapping, including: determining a current motor ID according to the target control signal; determining a current control algorithm ID and a current hardware drive ID corresponding to the current motor ID according to the motor drive mapping, taking the motor corresponding to the current motor ID as the target motor, and taking the control algorithm corresponding to the current control algorithm ID as the target control algorithm, and taking the hardware drive unit corresponding to the current hardware drive unit ID as the target hardware drive unit.

[0052] Specifically, continuing to take Table 1 and Table 2 as examples, the motor drive mapping is used to match XDU_ID, MOT_ID, ALG_ID, and IO_ID (hardware drive unit). In the vehicle offline electrical inspection process, the preset configuration information is written into the motor drive module of the corresponding ID, and the motor drive module saves it, and establishes a mapping relationship between the motor ID, control algorithm ID, and hardware drive ID inside the module, thereby completing the initialization operation.

[0053] In addition, the preset configuration information is also used in the subsequent control process. For example: the control command issued by the centralized domain controller after software processing is framed according to the framing rules of the CAN bus protocol application message. The data frame includes the ID of the motor drive module, the motor ID, the command and other information. Thus, the control command, i.e., the target control signal, is sent to a motor on a motor drive module through this application message data frame, as shown in Table 3 below. In addition, if the CAN bus communication method is adopted, then when the centralized domain controller sends a control command to the motor drive module, the CAN bus application message is used. The ID of the CAN application message has been matched with the XDU_ID, so only the MOT_ID needs to be included in the control message.

[0054] Table 3

[0055]

[0056] When the motor drive module receives the target control signal including the MOT_ID, it matches the ALG_ID and IO_ID according to the initialization configuration, and executes the algorithm corresponding to the ALG_ID and the hardware drive unit of the IO_ID, and finally completes the control command.

[0057] In one embodiment of the present application, the operating method of the motor driving module further includes: acquiring operating parameters of the target motor; generating a feedback signal based on the operating parameters of the target motor, wherein the feedback signal includes an ID of the target motor.

[0058] That is to say, the motor drive module must continuously feed back the motor's operating status or results to the centralized domain controller during the command execution process. Specifically, the motor drive module sends the status or results of the corresponding motor through MOT_ID. After receiving the CAN application message, the centralized domain controller will call the signal conversion service software module, obtain the actual operating status of the control object through MOT_ID according to the configuration word, and distribute the data to the corresponding software modules of each system in the APP layer to complete the closed-loop control of the entire motor drive.

[0059] As a specific embodiment of the present application, Figure 2 As shown, the operation method of the motor drive module may include the following steps:

[0060] S101, determining preset configuration information according to the vehicle model configuration.

[0061] S102, receiving preset configuration information, and constructing a motor drive mapping based on the preset configuration information to complete the initialization operation of the motor drive module. The motor drive mapping includes a mapping relationship between a motor ID, a control algorithm ID, and a hardware driver ID.

[0062] S103, receiving a target control signal.

[0063] S104, determining a current motor ID according to the target control signal.

[0064] S105, determine the current control algorithm ID and the current hardware driver ID corresponding to the current motor ID according to the motor drive mapping, take the motor corresponding to the current motor ID as the target motor, and take the control algorithm corresponding to the current control algorithm ID as the target control algorithm, and take the hardware driver unit corresponding to the current hardware driver unit ID as the target hardware driver unit.

[0065] S106, generating a target drive instruction based on the target control signal and the target control algorithm, so as to drive a target hardware drive unit to control the target motor according to the target drive instruction.

[0066] S107, obtaining operating parameters of the target motor.

[0067] S108: Generate a feedback signal including the target motor ID based on the operating parameters of the target motor. The feedback signal may be sent to the centralized domain controller.

[0068] In summary, the operation method of the motor drive module of the embodiment of the present application, during the initialization process of the motor drive module, establishes a mapping relationship between the motor-control algorithm-hardware drive unit in the motor drive module by writing preset configuration information, completes the initialization operation of the motor drive module, receives the target control signal after the initialization is completed, responds to the target control signal, determines the target motor, target control algorithm and target hardware drive unit corresponding to the target control signal, generates a target drive instruction based on the target control algorithm according to the control instruction in the target control signal, thereby driving the target hardware drive unit to control the target motor. Therefore, through this method, the motor drive module of the same version of software and hardware can be connected to different functional positions by writing preset configuration information without modifying the domain controller software, and the function of different systems / components can be realized by controlling the operation of the motor at the corresponding functional position, which greatly improves the versatility of the motor drive module.

[0069] Corresponding to the above embodiments, the present application also proposes a computer-readable storage medium.

[0070] The computer-readable storage medium of the embodiment of the present application stores an operating program of the motor drive module, and when the operating program of the motor drive module is executed by the processor, the operating method of the motor drive module is implemented.

[0071] According to the computer-readable storage medium of the embodiment of the present application, the operating method of the motor drive module is implemented when the operating program of the motor drive module is executed by the processor. Based on the operating method of the motor drive module, the motor drive modules of the same version of software and hardware can be connected to different functional positions by writing preset configuration information without modifying the domain controller software. The functions of different systems / components can be realized by controlling the operation of the motors at the corresponding functional positions, which greatly improves the versatility of the motor drive module.

[0072] Corresponding to the above embodiments, the present application also proposes a motor drive control system.

[0073] Combination Figure 3 As shown, the motor drive control system of the embodiment of the present application may include: a centralized domain controller 10 and at least one motor drive module 20.

[0074] Among them, the centralized domain controller 10 is used to generate preset configuration information and target control signals; the motor drive module 20 is connected to the motor, and the motor drive module 20 is used to receive the preset configuration information, and build a motor drive mapping based on the preset configuration information to complete the initialization operation of the motor drive module, wherein the motor drive mapping is used to characterize the mapping relationship between the motor, the control algorithm and the hardware driver, and in response to the target control signal, determine the target motor, the target control algorithm and the target hardware drive unit based on the target control signal and the motor drive mapping, and generate a target drive instruction based on the target control signal and the target control algorithm, so as to drive the target hardware drive unit to control the target motor according to the target drive instruction.

[0075] In one embodiment of the present application, CAN bus communication is performed between the centralized domain controller 10 and the motor drive module 20 .

[0076] Combination Figure 4 As shown, in one embodiment of the present application, the centralized domain controller 10 includes: an APP application unit 11, used to generate preset configuration information according to the vehicle model configuration, and to generate a target control signal according to the control instruction; a first CAN bus communication unit 12, used to perform CAN bus communication with the motor drive module 20.

[0077] In one embodiment of the present application, the motor drive module 20 includes: a second CAN bus communication unit 21, connected to the first CAN bus communication unit 12, and used to establish CAN bus communication with the first CAN bus communication unit 12; a control algorithm unit 22, the control algorithm unit 22 pre-stores multiple control algorithms, and is used to determine the target motor, the target control algorithm, and the target hardware drive unit based on the target control signal and the motor drive mapping, and generate a target drive instruction based on the target control signal and the target control algorithm, and send the target drive instruction to the target hardware drive unit; multiple hardware drive units 23, multiple hardware drive units 23 are connected to the motor through corresponding IO ports, and the target hardware drive unit among the multiple hardware drive units 23 responds to the target drive instruction and controls the target motor based on the target drive instruction.

[0078] That is to say, the motor drive control system is composed of a centralized domain controller 10 and a motor drive module 20, and the centralized domain controller 10 and the motor drive module 20 communicate based on the CAN bus protocol to solve the problem that the motor drive module 20 with the same software and hardware version can adapt to different drive objects.

[0079] The APP application unit 11 includes various planned functional modules, the first CAN bus communication unit 12 & CAN bus protocol & the second CAN bus communication unit 21 are designed as a universal protocol, the control algorithm unit 22 includes various planned algorithm modules corresponding to the controlled objects, and the hardware driver unit 23 includes the interface functions required for the electronic and electrical characteristics of various planned actuators.

[0080] Among them, the APP application unit 11 on the centralized domain controller 10 is mainly responsible for the implementation of the functions defined by the scene. The control signal calculated by the APP application unit 11 is sent to the motor drive module 20 through the CAN bus. The motor drive module 20 is responsible for executing the control signal, the control algorithm unit 22 realizes the motion process control, anti-pinch judgment, and position management, and the hardware driver is responsible for the final output and feedback signal collection and calculation and other operations.

[0081] Therefore, the control command is initiated from the APP application unit 11, passed downward layer by layer, and finally reaches the hardware driver unit 23 for execution, while the state feedback, that is, the feedback signal, is initiated from the hardware driver, passed upward layer by layer, and finally reaches the APP application unit 11 for use. The APP application unit 11 can send the feedback signal to the cloud or an external terminal, or generate a control signal based on the feedback signal to complete closed-loop control.

[0082] As a specific embodiment of the present application, the motor drive control system includes a centralized domain controller 10 and at least one motor drive module 20, and the centralized domain controller 10 and at least one motor drive module 20 communicate using a CAN bus. The software design method for the motor drive control is deployed on the centralized domain controller 10 and the motor drive module 20, respectively, and uses CAN bus diagnostic messages and application messages to send / receive data.

[0083] The centralized domain controller 10 can implement the following functions:

[0084] (1) Set and store configuration words according to vehicle model configuration (mainly referring to the type and number of systems controlled by motors on a certain vehicle). The configuration word reflects the type of system, the number of motors, and the number of XDUs. This configuration information has been determined in the early vehicle model planning. By importing the vehicle model planning, the configuration word can be generated.

[0085] (2) Initialize the motor drive module 20 according to the configuration word. The setting content mainly writes the type and quantity of the motor to be controlled by a motor drive module and the corresponding underlying drive module on the motor drive module 20 to a motor drive module. Through the configuration word, the app application in the centralized domain controller software and the cdd (Component Driven Development) software in the motor drive module 20 are matched. The setting method is implemented in the vehicle offline electrical inspection process through the diagnostic message in the CAN bus protocol.

[0086] (3) Based on the configuration word, the control command issued after being processed by the app layer software is framed according to the framing rules of the CAN bus protocol application message. The data frame includes information such as the ID of the motor driver module, the motor ID, and the command. Through this application message data frame, a control command is sent to a motor on a motor driver module.

[0087] (4) According to the configuration word, the real-time motion status of the controlled object is obtained from the CAN bus to form a closed-loop control at the functional logic level.

[0088] The functions of the motor drive module 20 may include:

[0089] (1) Receive the initialization configuration command, i.e., preset configuration information, sent by the centralized domain controller 10, and save the matching relationship among MOT_ID, ALG_ID, and IO_ID.

[0090] (2) Receive the control command sent by the centralized domain controller 10, that is, the target control signal, and match the corresponding control algorithm and hardware driver to complete the execution of the command.

[0091] (3) Feedback the motor operation status or command execution results to the centralized domain controller 10.

[0092] Therefore, the motor drive control system arranges software in the centralized domain controller 10 and the motor drive module 20 respectively, and realizes the matching of the APP layer control command to the control algorithm and then to the hardware drive module through the ID identification of each layer, so as to realize the universalization of the motor drive module 20. Among them, the centralized domain controller 10 is mainly responsible for initialization configuration, and the motor drive module 20 is mainly responsible for ID matching and execution, so as to realize the use of the same software and hardware version of the motor drive module 20 at different positions on a vehicle. Therefore, under the premise of not modifying the domain controller software, the motor drive module of the same version of software and hardware can be connected to different functional positions by writing preset configuration information, and the functions of different systems / components can be realized by controlling the operation of the motors at the corresponding functional positions, which greatly improves the universality of the system.

[0093] Corresponding to the above real-time stream, the present application also proposes a vehicle.

[0094] like Figure 5 As shown, the vehicle 1000 of the embodiment of the present application includes the above-mentioned motor drive control system 100.

[0095] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art on the basis of the present invention is within the protection scope of the present invention.

Claims

1. A method for operating a motor drive module, characterized in that: The motor drive module is connected to the motor, and the method includes: Receiving preset configuration information, and constructing a motor drive mapping based on the preset configuration information to complete the initialization operation of the motor drive module, wherein the motor drive mapping is used to characterize the mapping relationship between the motor, the control algorithm, and the hardware driver; In response to a target control signal, determining a target motor, a target control algorithm, and a target hardware drive unit based on the target control signal and the motor drive map; A target driving instruction is generated based on the target control signal and the target control algorithm, so as to drive the target hardware driving unit to control the target motor according to the target driving instruction.

2. The operating method of the motor drive module according to claim 1, characterized in that: The motor drive mapping includes a mapping relationship between a motor ID, a control algorithm ID, and a hardware drive ID. The determining of a target motor, a target control algorithm, and a target hardware drive unit based on the target control signal and the motor drive mapping includes: Determine the current motor ID according to the target control signal; Determine the current control algorithm ID and the current hardware driver ID corresponding to the current motor ID according to the motor drive mapping, take the motor corresponding to the current motor ID as the target motor, take the control algorithm corresponding to the current control algorithm ID as the target control algorithm, and take the hardware driver unit corresponding to the current hardware driver unit ID as the target hardware driver unit.

3. The operating method of the motor drive module according to claim 2, characterized in that: The method further comprises: Acquiring operating parameters of the target motor; A feedback signal is generated based on the operating parameters of the target motor, wherein the feedback signal includes an ID of the target motor.

4. The operating method of the motor drive module according to claim 1, characterized in that: The method further comprises: The preset configuration information is determined based on the vehicle model configuration.

5. A computer-readable storage medium, characterized in that: An operating program of the motor driving module is stored thereon, and when the operating program of the motor driving module is executed by the processor, an operating method of the motor driving module according to any one of claims 1-4 is implemented.

6. A motor drive control system, characterized in that: The system comprises: A centralized domain controller for generating preset configuration information and target control signals; At least one motor drive module, the motor drive module is connected to the motor, and is used to receive the preset configuration information and construct a motor drive mapping based on the preset configuration information to complete the initialization operation of the motor drive module, wherein the motor drive mapping is used to characterize the mapping relationship between the motor, the control algorithm and the hardware driver, and in response to the target control signal, determine the target motor, the target control algorithm and the target hardware drive unit based on the target control signal and the motor drive mapping, and generate a target drive instruction based on the target control signal and the target control algorithm to drive the target hardware drive unit to control the target motor according to the target drive instruction.

7. The motor drive control system according to claim 6, characterized in that: The centralized domain controller communicates with the motor drive module via CAN bus.

8. The motor drive control system according to claim 7, characterized in that: The centralized domain controller includes: An APP application unit, used to generate the preset configuration information according to the vehicle model configuration, and to generate the target control signal according to the control instruction; The first CAN bus communication unit is used for performing CAN bus communication with the motor drive module.

9. The motor drive control system according to claim 8, characterized in that: The motor drive module comprises: a second CAN bus communication unit, connected to the first CAN bus communication unit, and used to establish CAN bus communication with the first CAN bus communication unit; A control algorithm unit, wherein the control algorithm unit pre-stores a plurality of control algorithms, and is used to determine a target motor, a target control algorithm, and a target hardware drive unit based on the target control signal and the motor drive mapping, and to generate a target drive instruction based on the target control signal and the target control algorithm, and to send the target drive instruction to the target hardware drive unit; A plurality of hardware drive units are connected to the motor through corresponding IO ports, and a target hardware drive unit among the plurality of hardware drive units responds to the target drive instruction and controls the target motor based on the target drive instruction.

10. A vehicle, characterized in that: Comprising a motor drive control system according to any one of claims 6-9.