Motor control apparatus and control method thereof, motor system, storage medium, and vehicle
By pre-storing multiple motor control programs in the motor control device and executing the corresponding programs according to the configuration information, the problem of too many part numbers between the motor and the controller is solved, improving the management and control capabilities of the automotive control system and reducing development costs.
Patent Information
- Application Number
- CN202410887448.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-10
AI Technical Summary
With the development of the automobile industry, when automobile companies manufacture new models, the number of controller part numbers between the motor and the controller increases, resulting in a decrease in the management and control capabilities of the automobile control system and an increase in development costs.
Provide a motor control device and a control method thereof. By pre-saving multiple motor control programs, the configuration information of the motor is obtained and the corresponding motor control program is executed based on the information, thereby realizing the effect of a single motor control device driving different motors and reducing the cost of automobile development. cost.
It improves the management and control capabilities of the automobile control system, simplifies the automobile development process, and reduces development costs. By storing multiple motor control programs and matching corresponding programs according to configuration information, the effect of a single motor control device driving different motors is achieved.
Smart Images

Figure CN118631097A
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor control technology, and in particular to a motor control device and a control method thereof, a motor system, a storage medium and a vehicle. Background Art
[0002] With the development of the automotive industry, when manufacturing new models, automobile companies will consider many suppliers for vehicle development. Between motors and controllers, one controller is often matched with one motor. When the number of motors increases, the number of controller part numbers also increases accordingly. When the number of controller part numbers is too large, it is not only not conducive to the management and control of the vehicle control system, but also increases the development cost of the vehicle. Summary of the invention
[0003] The main purpose of the present application is to provide a motor control device and a control method thereof, a motor system, a storage medium and a vehicle, aiming to solve the technical problem of low automobile development cost.
[0004] The present invention provides a control method for a motor control device. A plurality of motor control programs are pre-stored in the motor control device. The method comprises: acquiring configuration information of the motor; and executing the corresponding motor control program based on the configuration information.
[0005] In one embodiment, the step of acquiring the configuration information of the motor includes: acquiring motor information of the connected motor, and determining or generating corresponding configuration information of the motor according to the motor information.
[0006] In one embodiment, the step of obtaining the configuration information of the motor includes: obtaining vehicle type information connected to the motor, and determining or generating corresponding configuration information of the motor according to the vehicle type information.
[0007] In one embodiment, the step of executing the corresponding motor control program based on the configuration information includes: calling a pre-stored configuration information-motor control program database; based on the configuration information and the configuration information-motor control program database, determining and executing a motor control program matching the configuration information.
[0008] In one embodiment, the method further includes: acquiring a motor control program and configuration information corresponding to the motor control program; and storing the motor control program and the corresponding configuration information in a preset configuration information-motor control program database after matching the motor control program and the corresponding configuration information.
[0009] In one implementation, the step of acquiring configuration information corresponding to the motor control program specifically includes: generating corresponding configuration information corresponding to the acquired motor control program.
[0010] In one embodiment, after the step of executing the corresponding motor control program, the step further includes: deleting the motor control program that does not correspond to the configuration information.
[0011] In one embodiment, the step of deleting the motor control program that does not correspond to the configuration information includes: calling a pre-stored configuration information-motor control program database; based on the configuration information and the configuration information-motor control program database, determining and deleting the motor control program that does not match the configuration information.
[0012] The present invention also proposes a motor control device, which includes: a program module for storing multiple motor control programs; an identification module, which is used to access the motor and obtain the configuration information of the motor; a control module, which is electrically connected to the identification module and the program module respectively; and the control module is used to execute the corresponding motor control program based on the configuration information.
[0013] In one embodiment, the identification module is specifically used to obtain motor information of a connected motor, and determine or generate corresponding configuration information of the motor based on the motor information; or obtain vehicle model information of a connected motor, and determine or generate corresponding configuration information of the motor based on the vehicle model information.
[0014] In one embodiment, the motor control device also includes: a storage module, which is electrically connected to the control module; the storage module is used to store configuration information-motor control program database; the control module is specifically used to call the configuration information-motor control program database of the storage module, and based on the configuration information and the configuration information-motor control program database, determine the motor control program that matches the configuration information and execute it.
[0015] In one embodiment, the control module is further used to obtain the motor control program of the program module and configuration information corresponding to the motor control program, match the motor control program and the corresponding configuration information, and store them in the configuration information-motor control program database of the storage module.
[0016] In one implementation, the control module is further configured to delete the motor control program that does not correspond to the configuration information.
[0017] The present invention further provides a motor system, comprising a memory, a processor and a motor control program stored in the memory, wherein the processor executes the motor control program to implement the control method of the motor control device.
[0018] The present invention also provides a storage medium on which a motor control program is stored. When the motor control program is executed by a processor, the steps of the control method of the motor control device are implemented.
[0019] The present invention also provides a vehicle, comprising the motor control device.
[0020] The present invention proposes a motor control device and a control method thereof, a motor system, a storage medium and a vehicle, and relates to the field of motor control technology, wherein a plurality of motor control programs are pre-stored in the motor control device, and the control method of the motor control device comprises: obtaining configuration information of the motor; and based on the configuration information, controlling the motor to execute the corresponding motor control program. The present invention stores the plurality of motor control programs in the motor control device, and generates independent configuration information according to the plurality of motor control programs, and controls the motor to execute the corresponding motor control program when the configuration information is obtained, so as to achieve the effect of a single motor control device driving different motors, thereby improving the management and control capability of the automobile control system and reducing the automobile development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0023] Figure 1 A flow chart of a control method for a motor control device according to the present application; Figure 2 A flow chart of a control method for a motor control device according to a second embodiment of the present invention; Figure 3 A flowchart diagram of a third embodiment of a control method for a motor control device of the present application; Figure 4 A flowchart diagram of a fourth embodiment of a control method for a motor control device of the present application; Figure 5 A flowchart diagram of a fifth embodiment of a control method for a motor control device of the present application; Figure 6 A flowchart diagram of a sixth embodiment of a control method for a motor control device of the present application; Figure 7 A flow chart of a seventh embodiment of the control method for a motor control device of the present application; Figure 8 A flow chart of an eighth embodiment of the control method for a motor control device of the present application is provided.
[0024] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0027] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0028] With the development of the automotive industry, when manufacturing new models, automobile companies will consider many suppliers for vehicle development. Between motors and controllers, one controller is often matched with one motor. When the number of motors increases, the number of controller part numbers also increases accordingly. When the number of controller part numbers is too large, it is not only not conducive to the management and control of the vehicle control system, but also increases the development cost of the vehicle.
[0029] In order to strengthen the control of automobile control systems and reduce the development cost of automobiles, the present invention proposes a control method for a motor control device, wherein a plurality of motor control programs are pre-stored in the motor control device, and a plurality of motor control programs are pre-stored in the motor control device. Figure 1, the control method of the motor control device includes: Get the configuration information of the motor; Based on the configuration information, the corresponding motor control program is executed.
[0030] It is understandable that the controller, as one of the core components of new energy vehicles, is used to drive the operation of each motor of the vehicle. Usually, there are differences in the hardware configuration of the controllers of different vehicles, and there are differences in the configuration of the motors, resulting in differences in the motor control programs of the controllers of different vehicles. In addition, there are also differences in the configuration between multiple motors of the same vehicle, resulting in that between the motor and the controller, one controller is often matched with one motor. When the number of motors increases, the number of controllers also increases accordingly, and the number of controller part numbers also increases accordingly. When the number of controller part numbers is too large, it is not only not conducive to the management and control of the automobile control system, but also increases the development cost of the automobile. In order to simplify the automobile control system and reduce the development cost of the automobile, the present invention writes multiple motor control programs into the motor control device, so that the motor control device matches the corresponding motor control program according to the acquired configuration information, and realizes the effect of a single motor control device controlling the operation of different motors.
[0031] In this embodiment, before executing the control program on the access motor, the motor control program of each motor in the car is obtained, and the motor control program of each motor in the car is stored, and independent configuration information is generated according to the motor control program of each motor, so that one motor control program matches one configuration information. Among them, the configuration information is composed of uppercase and lowercase letters and numbers, which can be multi-bit, can be effectively identified and unique, and cannot be reused, for example, S01, S02, S03, etc. In practical applications, the configuration information of the access motor is obtained, the corresponding motor control program is matched according to the configuration information, and the access motor is controlled to execute the motor control program corresponding to the configuration information. Among them, the motor can be a DC motor, an asynchronous motor, a permanent magnet synchronous motor, etc. For example, the motor control device stores a motor control program A, a motor control program B, and a motor control program C, the motor control program A corresponds to the configuration information S01, the motor control program B corresponds to the configuration information S02, and the motor control program C corresponds to the configuration information S03. When the configuration information of the access motor is obtained as S01, the motor control device matches the motor control program A according to the configuration information S01, and controls the access motor to execute the motor control program A. This embodiment stores multiple motor control programs in the motor control device to achieve the effect of a single motor control device driving different motors, thereby improving the management and control capabilities of the vehicle control system and reducing the cost of vehicle development.
[0032] The present invention proposes a control method for a motor control device, in which a plurality of motor control programs are pre-stored, and the control method for the motor control device comprises: obtaining configuration information of the motor; and controlling the motor to execute the corresponding motor control program based on the configuration information. The present invention stores the plurality of motor control programs in the motor control device, and generates independent configuration information according to the plurality of motor control programs, and controls the motor to execute the corresponding motor control program when the configuration information is obtained, so as to achieve the effect of a single motor control device driving different motors, thereby improving the management and control capability of the automobile control system and reducing the automobile development cost.
[0033] In one embodiment, referring to Figure 2 , the step of obtaining the configuration information of the motor includes: The motor information of the connected motor is obtained, and the configuration information corresponding to the motor is determined or generated according to the motor information.
[0034] It is understandable that the motor may be a DC motor, an asynchronous motor, a permanent magnet synchronous motor, etc. In this embodiment, the motor information of the connected motor may be obtained by scanning the barcode of the motor or scanning the QR code of the motor, and the corresponding configuration information of the motor may be determined or generated according to the motor information.
[0035] In one embodiment, referring to Figure 3 , the step of obtaining the configuration information of the motor includes: The vehicle type information connected to the motor is obtained, and the corresponding configuration information of the motor is determined or generated according to the vehicle type information.
[0036] It is understandable that the motor may be a DC motor, an asynchronous motor, a permanent magnet synchronous motor, etc. In this embodiment, the vehicle model information of the connected motor may be obtained by scanning the barcode of the motor or scanning the QR code of the motor, and the corresponding configuration information of the motor may be determined or generated according to the vehicle model information.
[0037] In one embodiment, referring to Figure 4 , the step of executing the corresponding motor control program based on the configuration information includes: Calling pre-stored configuration information - motor control program database; Based on the configuration information and the configuration information-motor control program database, a motor control program matching the configuration information is determined and executed.
[0038] It is understandable that, in actual applications, when obtaining the configuration information of the connected motor, the pre-stored configuration information-motor control program database is called to obtain multiple configuration information and motor control programs matching the multiple configuration information. Based on the configuration information and the configuration information-motor control program database, the motor control program matching the configuration information of the connected motor is determined, and the connected motor is controlled to run according to the motor control program matching the configuration information, thereby achieving the effect of a single motor control device controlling the operation of different motors.
[0039] In one embodiment, referring to Figure 5 , the method further comprises: Acquire a motor control program and configuration information corresponding to the motor control program; After the motor control program and the corresponding configuration information are matched, they are stored in a preset configuration information-motor control program database.
[0040] It can be understood that in this embodiment, before executing the control program on the connected motor, the motor control program of each motor in the car is first obtained, and the motor control program of each motor is written into the motor control device. At the same time, the corresponding configuration information is generated according to the motor control program of each motor, and the motor control program and the configuration information corresponding to the motor control program are matched and stored in the configuration information-motor control program database. Among them, the configuration information is composed of uppercase and lowercase letters and numbers, which can be multi-digit, can be effectively identified and unique, and cannot be reused, for example, S01, S02, S03, etc., so that one motor control program matches one configuration information.
[0041] In one embodiment, referring to Figure 6 The step of obtaining configuration information corresponding to the motor control program specifically includes: generating corresponding configuration information corresponding to the obtained motor control program.
[0042] It is understandable that before executing the control program on the connected motor, the motor control program of each motor in the car is first obtained, and corresponding configuration information is generated according to the obtained motor control program. Configuration information is the only way for the motor control device to identify multiple motor control programs. Each configuration information corresponds to each motor control program one-to-one and is unique.
[0043] In one embodiment, referring to Figure 7 , after the step of executing the corresponding motor control program, the step further includes: The motor control program that does not correspond to the configuration information is deleted.
[0044] It can be understood that in this embodiment, after matching the corresponding motor control program according to the configuration information and controlling the connected motor to execute the motor control program corresponding to the configuration information, the motor control program that does not correspond to the configuration information is deleted, thereby saving the storage space of the motor control device. For example, the motor control device stores motor control program A, motor control program B, and motor control program C, and after controlling the connected motor to execute motor control program A, motor control program B and motor control program C are deleted.
[0045] In one embodiment, referring to Figure 8 , the step of deleting the motor control program that does not correspond to the configuration information includes: Calling pre-stored configuration information - motor control program database; Based on the configuration information and the configuration information-motor control program database, the motor control program that does not match the configuration information is determined and deleted.
[0046] It is understandable that, in actual applications, when obtaining the configuration information of the connected motor, the pre-stored configuration information-motor control program database is called to obtain multiple configuration information and motor control programs that match the multiple configuration information. Based on the configuration information and the configuration information-motor control program database, the motor control program that matches the configuration information of the connected motor and the motor control program that does not match the configuration information of the connected motor are determined. After the connected motor is controlled to run according to the motor control program that matches the configuration information, the motor control program that does not match the configuration information of the connected motor is deleted, thereby saving the storage space of the motor control device. For example, the motor control device stores motor control program A, motor control program B and motor control program C. After the connected motor is controlled to execute motor control program A, motor control program B and motor control program C are deleted.
[0047] The present invention also provides a motor control device, which includes: a memory and a processor, wherein the memory stores a control method program of the motor control device, and when the controller controls the motor operation program and the processor executes it, the steps of the motor control method described above are implemented.
[0048] The present invention also provides a vehicle, the vehicle comprising the motor control device as described above. Since the vehicle adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0049] The above description is only an exemplary embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A control method for a motor control device, characterized in that: A plurality of motor control programs are pre-stored in the motor control device, and the method comprises: Get the configuration information of the motor; Based on the configuration information, the corresponding motor control program is executed.
2. The control method of the motor control device according to claim 1, characterized in that: The step of obtaining the configuration information of the motor includes: The motor information of the connected motor is obtained, and the configuration information corresponding to the motor is determined or generated according to the motor information.
3. The control method of the motor control device according to claim 1, characterized in that: The step of obtaining the configuration information of the motor includes: The vehicle type information connected to the motor is obtained, and the corresponding configuration information of the motor is determined or generated according to the vehicle type information.
4. The control method of the motor control device according to claim 1, characterized in that: The step of executing the corresponding motor control program based on the configuration information includes: Calling pre-stored configuration information - motor control program database; Based on the configuration information and the configuration information-motor control program database, a motor control program matching the configuration information is determined and executed.
5. The control method of the motor control device according to any one of claims 1 to 4, characterized in that: The method further comprises: Acquire a motor control program and configuration information corresponding to the motor control program; After the motor control program and the corresponding configuration information are matched, they are stored in a preset configuration information-motor control program database.
6. The control method of the motor control device according to claim 5, characterized in that: The step of obtaining the configuration information corresponding to the motor control program specifically includes: Corresponding to the acquired motor control program, corresponding configuration information is generated.
7. The control method of the motor control device according to claim 1, characterized in that: After the step of executing the corresponding motor control program, the following steps are further included: The motor control program that does not correspond to the configuration information is deleted.
8. The control method of the motor control device according to claim 7, characterized in that: The step of deleting the motor control program that does not correspond to the configuration information includes: Calling pre-stored configuration information - motor control program database; Based on the configuration information and the configuration information-motor control program database, the motor control program that does not match the configuration information is determined and deleted.
9. A motor control device, characterized in that: The motor control device comprises: A program module, used for storing a plurality of motor control programs; An identification module, the identification module is used to access the motor and obtain configuration information of the motor; A control module, the control module is electrically connected to the identification module and the program module respectively; the control module is used to execute the corresponding motor control program based on the configuration information.
10. The motor control device according to claim 9, characterized in that: The identification module is specifically used to obtain motor information connected to the motor, and determine or generate corresponding configuration information of the motor based on the motor information; or obtain vehicle model information connected to the motor, and determine or generate corresponding configuration information of the motor based on the vehicle model information.
11. The motor control device according to claim 9, characterized in that: The motor control device further comprises: A storage module, the storage module is electrically connected to the control module; the storage module is used to store configuration information-motor control program database; The control module is specifically used to call the configuration information-motor control program database of the storage module, and based on the configuration information and the configuration information-motor control program database, determine and execute the motor control program matching the configuration information.
12. The motor control device according to claim 11, characterized in that: The control module is also used to obtain the motor control program of the program module and the configuration information corresponding to the motor control program, and after matching the motor control program and the corresponding configuration information, store them in the configuration information-motor control program database of the storage module.
13. The motor control device according to claim 9, characterized in that: The control module is further used to delete the motor control program that does not correspond to the configuration information.
14. A motor system, comprising a memory, a processor and a motor control program stored in the memory, characterized in that: The processor executes the motor control program to implement the control method of the motor control device as described in any one of claims 1-8.
15. A storage medium having a motor control program stored thereon, characterized in that: When the motor control program is executed by the processor, the steps of the control method of the motor control device as described in any one of claims 1 to 8 are implemented.
16. A vehicle, characterized in that: The vehicle comprises a motor control device as claimed in any one of claims 9 to 13.
