CN115453955A - Automatic identification and distribution method for message identifiers of motor controllers of distributed drive vehicles - Google Patents
Automatic identification and distribution method for message identifiers of motor controllers of distributed drive vehicles Download PDFInfo
- Publication number
- CN115453955A CN115453955A CN202211291029.0A CN202211291029A CN115453955A CN 115453955 A CN115453955 A CN 115453955A CN 202211291029 A CN202211291029 A CN 202211291029A CN 115453955 A CN115453955 A CN 115453955A
- Authority
- CN
- China
- Prior art keywords
- motor
- identification
- motor controllers
- motor controller
- message identifiers
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001680 brushing effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electric Propulsion And Braking For Vehicles (AREA)
Abstract
The invention discloses a distributed automatic identification and distribution method for message identifiers of a motor controller of a driving vehicle. Wherein, the method comprises the following steps: according to the number of the motor controllers, adding a corresponding number of hard-wire signal wires on the motor controllers; connecting corresponding pins of the hardware signal lines with high and low level signals, and using different numbers obtained through high and low level signal combination processing as identification signals corresponding to message identifiers of the motor controllers at different positions; and identifying message identifiers required to be sent by the motor controllers at different positions according to the identification signals. According to the technical scheme, the hard wire identification signal wire is applied to the bottom layer software of the motor controller as the message identifier identification signal, so that the purposes of automatically controlling motors installed at different positions and automatically identifying and distributing CAN ID (controller area network ID) are achieved by only writing one set of motor control software, and the working efficiency of engineers is greatly improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of distributed driving vehicles, in particular to an automatic identification and distribution method for message identifiers of a motor controller of a distributed driving vehicle.
Background
With the rise of popularity of the chassis of the skateboard, more and more enterprises recognize the advantages of the distributed driving and develop corresponding products compared with the centralized driving.
At present, the number of motor controllers carried by most distributed drive vehicles is more than 1, so that different software flashing or calibration needs to be carried out on different motor electronic controls to allocate corresponding CAN IDs in order to prevent message identifiers (CAN IDs) sent by different motor controllers from being repeated. Especially, after a distributed vehicle carries more electric motors for electric control, if different software is refreshed or calibrated for different electric motors for electric control, an engineer is required to consume more time to complete the work in the real vehicle debugging process, and software refreshing or calibration errors are easily caused by negligence or forgetting of CAN IDs corresponding to the electric motors at different positions, so that more time is wasted, and the real vehicle debugging difficulty is increased.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an automatic identification and distribution method for message identifiers of a motor controller of a distributed driving vehicle, so that the aim of automatically identifying and distributing CAN IDs (controller area network IDs) by writing a set of motor control software and electrically controlling motors arranged at different positions is fulfilled.
The embodiment of the invention provides a distributed driving vehicle motor controller message identifier automatic identification and distribution method, which comprises the following steps:
increasing a corresponding number of hard-wire signal wires on the motor controllers according to the number of the motor controllers;
connecting corresponding pins of the hardware signal lines with high and low level signals, and using different numbers obtained through high and low level signal combination processing as identification signals corresponding to message identifiers of the motor controllers at different positions;
and identifying message identifiers required to be sent by the motor controllers at different positions according to the identification signals.
Optionally, the correspondence between the number of the motor controllers and the number of the hard line identification signal lines to be added is as follows:
N mcu =2 n
wherein N is mcu The number of the motor controllers is carried for the distributed driving vehicle, and n is the number of hard wire identification signal wires which need to be added on the motor controllers.
Optionally, the motor controller controls one or more motors correspondingly.
Optionally, the identification signal is applied to the bottom software of the motor controller.
Optionally, the identification signal is applied to the bottom layer software of the motor controller, and includes:
and adding a message identifier identification variable in bottom software of the motor controller, wherein the message identifier identification variable is used for storing different numbers obtained by the hard wire identification signal so as to call the message identifiers of the motor controller at different positions.
Optionally, the method further includes: and adding all motor message identifiers required by the vehicle during the bottom-layer design of the motor controller according to the requirements of the distributed driving vehicle.
The invention has the beneficial effects that:
according to the invention, according to the number of motor controllers carried by a distributed driving vehicle, a corresponding number of hard wire identification signal wires are added on the motor controllers, the hard wire identification signal wires are used as message identifier (CAN ID) identification signals to be applied to bottom layer software of the motor controllers, high and low level signals are connected with corresponding pins of the hard wire signals, corresponding numbers are obtained through high and low level signal combination processing, and then the message identifier (CAN ID) required to be sent by the motor controllers is identified, so that the CAN ID identification and distribution CAN be automatically carried out through brushing one set of motor control software according to the electric control of motors arranged at different positions.
In addition, the invention CAN avoid the problem that different motor software needs to be refreshed or calibrated aiming at different motor electric control positions for the same distributed driving vehicle, thereby greatly improving the working efficiency of an engineer, and CAN avoid the unexpected problem caused by software refreshing or calibration error due to the fact that the engineer neglects or forgets CAN IDs corresponding to the motor electric control positions.
Drawings
Fig. 1 is a flowchart of a distributed drive vehicle motor controller message identifier automatic identification and distribution method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an automatic distributed identification and distribution method for message identifiers of a distributed drive vehicle motor controller according to an embodiment of the present invention;
fig. 3 is a diagram illustrating a connection example of a hard-wired identification signal line according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Examples
Fig. 1 is a flowchart of a method for automatically identifying and allocating a message identifier of a motor controller of a distributed drive vehicle according to an embodiment of the present invention, which specifically includes:
s1, increasing a corresponding number of hard-wire signal wires on the motor controllers according to the number of the motor controllers.
And S2, connecting corresponding pins of the hardware signal lines with high and low level signals, and taking different numbers obtained through high and low level signal combination processing as identification signals corresponding to message identifiers of the motor controller at different positions.
And S3, identifying message identifiers required to be sent by the motor controllers at different positions according to the identification signals.
Specifically, the corresponding relationship between the number of the motor controllers and the number of the hard wire identification signal wires which need to be added is as follows:
N mcu =2 n
wherein, N mcu The number of the motor controllers is mounted on the distributed driving vehicle, and n is the number of hard wire identification signal wires which need to be added on the motor controllers.
Further, the motor controller is not limited to one motor controller for one motor, and may be one motor controller for two motors, and so on.
For example, distributed drive vehicles having different numbers of motor controllers may be accommodated for different numbers of hard-wired identification signal lines. For 1 hard wire identification signal wire, the method can be applied to a distributed driving vehicle with no more than two motor controllers; for 2 hard wire identification signal wires, the method can be applied to distributed driving vehicles with no more than 4 motor controllers; for 3 hard wire identification signal wires, the method can be applied to distributed driving vehicles with no more than 8 motor controllers, and the like.
Further referring to fig. 2, in this embodiment, the number of hard wire identification signal harnesses is determined according to the message identifier identification requirement of the motor control, and corresponding wiring design is performed; all motor message identifiers required by the vehicle are added when the motor controller is designed on the bottom layer according to the requirements of the distributed driving vehicle, CAN ID identification variables are added on the bottom layer of the motor controller and used for storing different numbers obtained by the hard wire identification signals, the CAN ID identification variables are used for automatically identifying the CAN IDs of the motors at different positions of the distributed driving vehicle, and the CAN IDs of the motor controllers at corresponding different positions are called.
For example, and with further reference to fig. 3, if the motor controller has three hard-wire identification signal wires, the hard-wire identification signal wire connection method is shown for three hard-wire signals: setting the high level to 1 and the low level signal to 0, eight combination methods (000, 001, 010, 011, 100, 101, 110, 111) can be obtained, and 000 can correspond to the motor controller 1;001 corresponds to the motor controller 2;010 corresponds to the motor controller 3;011 corresponds to the motor controller 4;100 corresponds to the motor controller 5;101 corresponds to the motor controller 6;110 corresponds to the motor controller 7;111 corresponds to the motor controller 8, and further identifies the message identifier (CAN ID) that the motor controller needs to send out according to the identification variable value.
After the CAN communication protocol of the distributed driving vehicle is determined, CAN IDs sent by motor controllers at different positions are also determined, the hard wire wiring method of the message identifier identification signals of the motor controllers at different positions is determined comprehensively according to the CAN IDs corresponding to the motor controllers at different positions and different CAN ID information corresponding to different numerical values of CAN ID identification variables, and the hard wire identification signal wiring harness is designed according to the hard wire wiring method when the whole vehicle wiring harness is designed.
In this embodiment, by adding the method for automatically identifying and allocating the message identifiers by using the hard wire identification signal wire, an engineer CAN write all the motor controllers on the distributed vehicle into the same version of motor controller software, the motor controllers automatically identify and allocate the CAN IDs according to different installed positions, and send and receive the required CAN IDs, and the engineer is not required to write different motor controller software according to different positions, so that the working efficiency is greatly improved, and meanwhile, a program writing error is avoided.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.
Claims (6)
1. A distributed drive vehicle motor controller message identifier automatic identification and distribution method is characterized by comprising the following steps:
increasing a corresponding number of hard-wire signal wires on the motor controllers according to the number of the motor controllers;
connecting corresponding pins of the hardware signal lines with high and low level signals, and using different numbers obtained through high and low level signal combination processing as identification signals corresponding to message identifiers of the motor controllers at different positions;
and identifying message identifiers required to be sent by the motor controllers at different positions according to the identification signals.
2. The method of claim 1, wherein the number of motor controllers corresponding to the number of hard-line identification signal lines to be added is:
N mcu =2 n
wherein, N mcu The number of the motor controllers is carried for the distributed driving vehicle, and n is the number of hard wire identification signal wires which need to be added on the motor controllers.
3. The method of claim 1, wherein the one motor controller controls one or more motors accordingly.
4. The method of claim 1, wherein the identification signal is applied in underlying software of a motor controller.
5. The method of claim 4, wherein the identification signal is applied in underlying software of a motor controller, comprising:
and adding message identifier identification variables in bottom software of the motor controller, wherein the message identifier identification variables are used for storing different numbers obtained by the hard wire identification signals, and then calling the message identifiers of the motor controller at different positions.
6. The method of claim 1, further comprising: and adding all motor message identifiers required by the vehicle during the bottom-layer design of the motor controller according to the requirements of the distributed driving vehicle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211291029.0A CN115453955A (en) | 2022-10-21 | 2022-10-21 | Automatic identification and distribution method for message identifiers of motor controllers of distributed drive vehicles |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211291029.0A CN115453955A (en) | 2022-10-21 | 2022-10-21 | Automatic identification and distribution method for message identifiers of motor controllers of distributed drive vehicles |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115453955A true CN115453955A (en) | 2022-12-09 |
Family
ID=84311447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211291029.0A Pending CN115453955A (en) | 2022-10-21 | 2022-10-21 | Automatic identification and distribution method for message identifiers of motor controllers of distributed drive vehicles |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115453955A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101767542A (en) * | 2008-12-26 | 2010-07-07 | 常州麦科卡电动车辆科技有限公司 | Intelligent drive platform for four wheels of electric automobile |
CN103465750A (en) * | 2013-09-12 | 2013-12-25 | 南京奥特佳冷机有限公司 | Dynamic-ID-based (dynamic identity based) automobile multi-temperature-zone electric compressor operation intelligent control method |
-
2022
- 2022-10-21 CN CN202211291029.0A patent/CN115453955A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101767542A (en) * | 2008-12-26 | 2010-07-07 | 常州麦科卡电动车辆科技有限公司 | Intelligent drive platform for four wheels of electric automobile |
CN103465750A (en) * | 2013-09-12 | 2013-12-25 | 南京奥特佳冷机有限公司 | Dynamic-ID-based (dynamic identity based) automobile multi-temperature-zone electric compressor operation intelligent control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032173B (en) | Automatic matching method for automobile diagnosis system and related equipment | |
US5615106A (en) | Control device | |
EP4155119A1 (en) | Method for controlling charging of vehicle, and device, program, medium, and vehicle | |
CN108989478B (en) | Automatic identification method for communication address of wired connection multi-module measurement and control system | |
US6085259A (en) | Addressing apparatus and method | |
US20240086175A1 (en) | Update control system, update control method, non-transitory storage medium, and in-vehicle control device | |
CN115453955A (en) | Automatic identification and distribution method for message identifiers of motor controllers of distributed drive vehicles | |
CN112817888B (en) | OBD device state setting method and device, OBD device and storage medium | |
CN115079669A (en) | Vehicle diagnosis method and system, electronic device and readable storage medium | |
CN112783549A (en) | Method for upgrading data version number of automobile electric control element | |
CN112003774B (en) | Method, system and storage medium for checking error frame of automobile CAN bus | |
US20040199703A1 (en) | Bus system and method for assigning addresses to peripheral units | |
US20110222433A1 (en) | Automatic address configuration of vehicle network devices during installation | |
CN112243042B (en) | Distribution method, secure communication method, detection device, gateway module and system | |
US20150134872A1 (en) | Bus subscriber for a bus system, bus system for a motor vehicle, and method for allocating addresses in a bus system | |
CN115865866B (en) | Address allocation method and device | |
CN115904437A (en) | Parallel flash system and method for automobile electronic control unit | |
CN112290346B (en) | Wire harness assembly control method and device, electronic equipment and connector installation device | |
CN108803582B (en) | Automatic bus switching system and method suitable for remote fault diagnosis | |
CN115309679A (en) | BMS slave control address allocation method, BMS master control module and BMS slave control module | |
CN211236643U (en) | Engine controller flash device | |
CN111361826A (en) | Production line control method and device for mobile equipment nameplate and production line equipment | |
WO2024214234A1 (en) | Electronic control device | |
CN114185297B (en) | Control method and device for vehicle-mounted software upgrading | |
KR102709503B1 (en) | Control apparatus and method for monitoring state of vehicle using multicore processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |