CN101655707A - Configuration method of host computer to electric motor car controller parameter - Google Patents
Configuration method of host computer to electric motor car controller parameter Download PDFInfo
- Publication number
- CN101655707A CN101655707A CN200810054196A CN200810054196A CN101655707A CN 101655707 A CN101655707 A CN 101655707A CN 200810054196 A CN200810054196 A CN 200810054196A CN 200810054196 A CN200810054196 A CN 200810054196A CN 101655707 A CN101655707 A CN 101655707A
- Authority
- CN
- China
- Prior art keywords
- host computer
- packet
- controller
- electric motor
- motor car
- 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
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Electric Propulsion And Braking For Vehicles (AREA)
Abstract
The present invention relates to a configuration method of host computer to electric motor car controller parameter, having the technical characteristic of: the host computer sending command data package to a riser card; the card receiving the package and transmitting to the electric motor car controller; the controller processing according to the command of the package and sending reply data package to the card; the card receiving the replay package and transmitting to the host computer. The invention carries out data transmission and exchange between the host computer and the electric motorcar controller through the riser card in half-duplex communication mode, the host computer may flexibly set or adjust performance parameter and function of the electric motor car controller, and may upgrade the controller, thereby improving standardized level and scaled productivity of the electric motor car controller, simplifying production process, and improving productivity and being convenient to maintain products.
Description
Technical field
The present invention relates to the collocation method of electric motor car controller parameter, especially relate to a kind of collocation method that utilizes host computer to electric motor car controller parameter.
Background technology
Electric motor car is light, quick with it, environmental protection, advantage such as energy-conservation, cheap and enjoy consumer's favor.Controller for electric vehicle is one of core component of electric motor car, task such as electric motor car is normally finished the travelling of electric motor car, turned under the control of controller for electric vehicle, braking.At present, when manufacturer produced controller for electric vehicle in design, normally performance parameter and the function needs according to different electric motor cars designed the controller for electric vehicle that production adapts with it, and this design mode of production can produce following problems:
1. the controller for electric vehicle product is once producing, and its performance parameter and function are just fixing, can not be neatly performance or function is made amendment or is upgraded;
2. owing to adopt the Custom Design mode of production, make that the controller for electric vehicle standardization of products is poor, be difficult to carry out large-scale production, production efficiency can not effectively improve;
3. need formulate corresponding production technology at each controller product, make complex manufacturing and cause the difficulty of maintenance.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, the collocation method of a kind of host computer to electric motor car controller parameter is provided, this method adopts the half-duplex operation mode between host computer and controller for electric vehicle, can to the performance parameter of controller for electric vehicle and function is provided with flexibly or function upgrading satisfying the needs of dissimilar electric motor cars, thereby improve controller for electric vehicle standardization, simplify production technology, enhance productivity and be convenient to maintenance.
The present invention solves its technical matters and takes following technical scheme to realize:
A kind of host computer is by realizing in the system that is constituted that is linked in sequence by host computer, adapter and controller for electric vehicle, comprising the steps: to the collocation method of electric motor car controller parameter
(1). host computer sends command packet to adapter;
(2). adapter checks whether this command packet is correct, is then to carry out following step after receiving the command packet of host computer, otherwise adapter sends bag error in data information to host computer;
(3). adapter sends to controller for electric vehicle with the command packet that receives, and sends the order of request confirmation to controller for electric vehicle then;
(4). controller for electric vehicle receives command packet, handles according to the content of command packet, and sends a reply packet to adapter;
(5). after adapter receives the answer packet of controller for electric vehicle, check whether the answer packet is correct, is then to carry out following step, otherwise send the order of request confirmation to controller for electric vehicle once more;
(6). adapter sends the answer packet of controller for electric vehicle to host computer;
(7). host computer receives the answer packet of controller for electric vehicle and handles.
And described command packet is made of in proper order packet header, command word, parameter, check word and bag tail, and its middle wrapping head, command word, check word and bag tail are a byte data, and parameter is the nybble data.
And described answer packet is made of in proper order packet header, answer data, check word and bag tail, and its middle wrapping head, check word and bag tail are a byte data, and replying data is five byte datas.
And described packet header is hexadecimal value 5A, and the bag tail is hexadecimal value A5.
And the order of described request confirmation is that command word is to want the command packet of return information order.
And described adapter checks whether correct method is this command packet after receiving the command packet of host computer: whether odd, packet header, the bag tail of checking command packet be correct.
And described controller for electric vehicle receives command packet, handles according to the content of command packet to comprise to E
2The PROM write data, from E
2Reading of data among the PROM.
And, after described adapter receives the answer packet of controller for electric vehicle, check that replying packet adopts odd.
And the command word in the described command packet comprises the order that connects, obtains confirming commands in return, send and under-voltage benchmark order is set, sends and under-voltagely be ready to order, want the return information order, send and the order of zero current benchmark is set, sends and be provided with that the order of current limliting benchmark, the order of received current return signal, controller have been ready to order, transmission can sample command.
And the answer data in the described answer packet comprise data parameters, successful information, the information that goes beyond the scope, write E
2The PROM failure information.
Advantage of the present invention and good effect are:
1. this host computer adopts half-duplex communication mode to carry out data transmission and exchange between host computer and controller for electric vehicle to the collocation method of electric motor car controller parameter, host computer can be neatly be provided with or adjusts and can upgrade to controller for electric vehicle the performance parameter of controller for electric vehicle and function, on the basis that does not change controller for electric vehicle hardware, can satisfy the needs of different electric motor cars, therefore the dirigibility that has improved the controller for electric vehicle product.
2. this host computer is adjusted by performance parameter and function to controller for electric vehicle flexibly to the collocation method of electric motor car controller parameter; controller for electric vehicle that can hardware is identical is adjusted into performance parameter and the different controller for electric vehicle of function by software approach; thereby improved the standardization of controller for electric vehicle, be convenient to large-scale production, reduced production cost.
3. this host computer is adjusted the performance parameter and the function of controller by software to the collocation method of electric motor car controller parameter, make identical controller for electric vehicle hardware satisfy the function and the performance need of different electric motor cars, thereby reduced the kind of controller, simplified production technology, improve production efficiency, be convenient to the product maintenance simultaneously.
4. the present invention can be neatly be provided with or adjusts and can upgrade to controller for electric vehicle the performance parameter and the function of controller for electric vehicle; thereby improved the standardization of controller for electric vehicle and the productive capacity of scale, simplified production technology, improved the maintenance that production efficiency is convenient to product simultaneously.
Description of drawings
Fig. 1 is a treatment scheme block scheme of the present invention;
Fig. 2 is a communication system square frame connection diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is further described.
Fig. 2 is that this host computer is to the employed communication system connection diagram of the collocation method of electric motor car controller parameter, this communication system is connected and composed by host computer, adapter and controller for electric vehicle, wherein, host computer is connected by the USB mode with adapter, and this adapter is connected by an order wire and ground wire with controller for electric vehicle.Host computer is made up of a computing machine that communications control software has been installed, USB interface and the USB interface on the adapter on the computing machine link together by the USB connecting line, and host computer sends various command as upper dictating machine and is used for controller for electric vehicle is carried out the parameter setting and receives the answer data of controller for electric vehicle; Adapter is made of a single-chip microcomputer and UART-USB bridging chip, the USB interface end of UART-USB bridging chip is connected with the USB interface of host computer, the transmission of UART-USB bridging chip, reception pin are connected with the communication port of single-chip microcomputer, an I/O interface of single-chip microcomputer is connected with an input interface of controller for electric vehicle, adapter receives command packet that host computer sends on the one hand and transmits this command packet to controller for electric vehicle, on the other hand, adapter receives the answer packet of controller for electric vehicle and transmits this answer packet to host computer; Controller for electric vehicle receives command packet that adapter sends and according to the corresponding read-write operation of command execution wherein, and execution result formed replys packet and send to adapter.Adopt an order wire to carry out half-duplex operation between adapter and the controller for electric vehicle.
The present invention realizes (as shown in Figure 1) by following step in above-mentioned communication system:
1. host computer sends command packet to adapter.
Command packet is by packet header, command word, parameter, check word and bag tail constitute in proper order, described packet header, command word, check word and bag tail are a byte data, parameter is the nybble data, its middle wrapping head is hexadecimal value 5A, the bag tail is hexadecimal value A5, command word in the command packet comprises the order that connects, obtain confirming commands in return, transmission is provided with under-voltage benchmark order, send the under-voltage order that has been ready to, want the return information order, transmission is provided with the order of zero current benchmark, transmission is provided with the order of current limliting benchmark, the order of received current return signal, controller has been ready to order, transmission can sample command, and the mentioned order word is encoded according to hexadecimal value and formed a byte data.
2. after adapter receives the command packet of host computer, check whether this command packet is correct, need check when checking command packet whether packet header, bag tail correctly carry out parity checking to this packet simultaneously, present embodiment adopts odd, think that the command packet that receives is correct if packet header, bag tail and odd are all correct, and execution in step 3, otherwise adapter sends bag error in data information to host computer, and the data content of its error message is: 5A, 00,00,00,00,00,01, A5.
3. adapter sends to controller for electric vehicle with the command packet that receives, and sends the order of request confirmation to controller for electric vehicle then, and this request confirmation order is similarly command packet, and its command word is for wanting the return information order.
4. controller for electric vehicle receives command packet; content according to command packet is handled; as current value, magnitude of voltage, speed limit, power-assisted value, turning value, soft start value, ABS value are set, when sliding reverse charge value, handle voltage protection value, procedure Selection value, parameter of electric machine value, manufacturing parameter value, fault diagnosis value, constant speed value, temperature protection value, antitheft value etc., the E that controller for electric vehicle will be in controller for electric vehicle
2Write above-mentioned data value among the PROM; Controller for electric vehicle also can be according to the order in the command packet, from E
2Read above-mentioned data parameters among the PROM; Controller for electric vehicle carries out forming the answer packet and sending a reply packet to adapter after the above-mentioned processing, described answer packet is made of in proper order packet header, answer data, check word and bag tail, described packet header, check word and bag tail are a byte data, replying data is five byte datas, its middle wrapping head is hexadecimal value 5A, the bag tail is hexadecimal value A5, replys answer data in the packet and comprises data parameters, the successful information, the information that goes beyond the scope that read, writes E
2The PROM failure information.
5. after adapter receives the answer packet of controller for electric vehicle, check whether the answer packet is correct, need this moment to check whether the odd of replying packet is correct, if reply packet correct execution step 6, otherwise send the order of request confirmation to controller for electric vehicle once more, adapter can be set as required to the number of times of electric motor car control transmission confirmation order once more, in the present embodiment, set point number is three times, if surpass three times prompting is made mistakes, this handles failure.
6. adapter sends the answer packet of controller for electric vehicle to host computer.
7. host computer receives the answer packet of controller for electric vehicle and handles, and according to the answer data of replying packet the result of this processing is shown during processing or prints, and for example shows successful information, the data value that reads or error message are set.
Can be implemented in the function of carrying out data transmission and exchange between host computer and the controller for electric vehicle by the half-duplex operation method by said method, thereby the performance parameter and the function of controller for electric vehicle is provided with or adjusts and can upgrade to controller for electric vehicle.
It is emphasized that; embodiment of the present invention is illustrative; rather than it is determinate; therefore the present invention is not limited to the embodiment described in the embodiment; every other embodiments that draw by those skilled in the art's technical scheme according to the present invention; for example, adapter and host computer are designed to integrated device, belong to the scope of protection of the invention equally.
Claims (10)
1. a host computer is characterized in that: be by realizing in the system that is constituted that is linked in sequence by host computer, adapter and controller for electric vehicle, comprising the steps: the collocation method of electric motor car controller parameter
(1). host computer sends command packet to adapter;
(2). adapter checks whether this command packet is correct, is then to carry out following step after receiving the command packet of host computer, otherwise adapter sends packet error information to host computer;
(3). adapter sends to controller for electric vehicle with the command packet that receives, and sends the order of request confirmation to controller for electric vehicle then;
(4). controller for electric vehicle receives command packet, handles according to the content of command packet, and sends a reply packet to adapter;
(5). after adapter receives the answer packet of controller for electric vehicle, check whether the answer packet is correct, is then to carry out following step, otherwise send the order of request confirmation to controller for electric vehicle once more;
(6). adapter sends the answer packet of controller for electric vehicle to host computer;
(7). host computer receives the answer packet of controller for electric vehicle and handles.
2. host computer according to claim 1 is to the collocation method of electric motor car controller parameter, it is characterized in that: described command packet is made of in proper order packet header, command word, parameter, check word and bag tail, its middle wrapping head, command word, check word and bag tail are a byte data, and parameter is the nybble data.
3. host computer according to claim 1 is to the collocation method of electric motor car controller parameter, it is characterized in that: described answer packet is made of in proper order packet header, answer data, check word and bag tail, its middle wrapping head, check word and bag tail are a byte data, and replying data is five byte datas.
According to claim 2 or 3 described host computers to the collocation method of electric motor car controller parameter, it is characterized in that: described packet header is hexadecimal value 5A, the bag tail is hexadecimal value A5.
5. host computer according to claim 1 is characterized in that the collocation method of electric motor car controller parameter: the order of described request confirmation is that command word is to want the command packet of return information order.
6. host computer according to claim 1 is to the collocation method of electric motor car controller parameter, it is characterized in that: described adapter checks whether correct method is this command packet after receiving the command packet of host computer: whether odd, packet header, the bag tail of checking command packet be correct.
7. host computer according to claim 1 is characterized in that the collocation method of electric motor car controller parameter: described controller for electric vehicle receives command packet, handles according to the content of command packet to comprise to E
2The PROM write data, from E
2Reading of data among the PROM.
8. host computer according to claim 1 is characterized in that the collocation method of electric motor car controller parameter: after described adapter receives the answer packet of controller for electric vehicle, check that replying packet adopts odd.
9. host computer according to claim 2 is characterized in that the collocation method of electric motor car controller parameter: the command word in the described command packet comprises the order that connects, obtains confirming commands in return, send and under-voltage benchmark order is set, sends and under-voltagely be ready to order, want the return information order, send and the order of zero current benchmark is set, sends and be provided with that the order of current limliting benchmark, the order of received current return signal, controller have been ready to order, transmission can sample command.
10. host computer according to claim 3 is characterized in that the collocation method of electric motor car controller parameter: the answer data in the described answer packet comprise data parameters, successful information, the information that goes beyond the scope, write E
2The PROM failure information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810054196A CN101655707A (en) | 2008-08-19 | 2008-08-19 | Configuration method of host computer to electric motor car controller parameter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810054196A CN101655707A (en) | 2008-08-19 | 2008-08-19 | Configuration method of host computer to electric motor car controller parameter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101655707A true CN101655707A (en) | 2010-02-24 |
Family
ID=41710020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810054196A Pending CN101655707A (en) | 2008-08-19 | 2008-08-19 | Configuration method of host computer to electric motor car controller parameter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101655707A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810334A (en) * | 2012-08-11 | 2012-12-05 | 无锡市晶汇电子有限公司 | Setting method for functional states in chip of single chip computer of controller of electric vehicle |
CN103529829A (en) * | 2013-10-31 | 2014-01-22 | 无锡市矽成微电子有限公司 | Test system for electric vehicle controller |
CN105607515A (en) * | 2015-12-31 | 2016-05-25 | 天津金米特电子有限公司 | Intelligent upgrading method for electric moped |
CN105865801A (en) * | 2016-04-05 | 2016-08-17 | 无锡锐祺通讯技术有限公司 | Electric vehicle parameter automatic configuration and test system and automatic configuration and test method |
CN106483875A (en) * | 2015-08-31 | 2017-03-08 | 比亚迪股份有限公司 | Automobile controller, system and method used in automobile controller |
CN107145144A (en) * | 2017-07-05 | 2017-09-08 | 四川东方电气自动控制工程有限公司 | A kind of auto-collation of blower fan main controller controls parameter |
-
2008
- 2008-08-19 CN CN200810054196A patent/CN101655707A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810334A (en) * | 2012-08-11 | 2012-12-05 | 无锡市晶汇电子有限公司 | Setting method for functional states in chip of single chip computer of controller of electric vehicle |
CN102810334B (en) * | 2012-08-11 | 2016-04-13 | 无锡市晶汇电子有限公司 | Functional status method to set up in controller for electric vehicle singlechip chip |
CN103529829A (en) * | 2013-10-31 | 2014-01-22 | 无锡市矽成微电子有限公司 | Test system for electric vehicle controller |
CN106483875A (en) * | 2015-08-31 | 2017-03-08 | 比亚迪股份有限公司 | Automobile controller, system and method used in automobile controller |
CN105607515A (en) * | 2015-12-31 | 2016-05-25 | 天津金米特电子有限公司 | Intelligent upgrading method for electric moped |
CN105607515B (en) * | 2015-12-31 | 2018-05-25 | 天津金米特科技股份有限公司 | A kind of Moped Scooter intelligent upgrade method |
CN105865801A (en) * | 2016-04-05 | 2016-08-17 | 无锡锐祺通讯技术有限公司 | Electric vehicle parameter automatic configuration and test system and automatic configuration and test method |
CN107145144A (en) * | 2017-07-05 | 2017-09-08 | 四川东方电气自动控制工程有限公司 | A kind of auto-collation of blower fan main controller controls parameter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101655707A (en) | Configuration method of host computer to electric motor car controller parameter | |
US11995921B2 (en) | Scanning method for electronic control unit in vehicle and vehicle diagnostic device | |
CN111488165B (en) | Method and system for upgrading vehicle ECU through script | |
CN101458525B (en) | Automatic identification method for electric-controlled unit collocation | |
CN103838189B (en) | CAN communication monitoring protector and vehicle | |
US5875350A (en) | Compressed message exchange initiated by basic command accompanied by enhancement code | |
CN111443688B (en) | Automobile diagnosis service network layer test system and method based on CAN bus | |
US8996248B2 (en) | Virtual sensor network system and method for convergence of heterogeneous sensors | |
CN113805918A (en) | Data interaction system and method for upgrading TBOX and obtaining TBOX logs | |
JP2007088775A (en) | Radio communication system, device, and method | |
CN114124669B (en) | Method and system for interconnection and intercommunication of CTC and on-vehicle system | |
CN114879633A (en) | Diagnostic instrument, fault diagnosis method of electric control system and readable storage medium | |
CN113778739B (en) | System repair method, system, equipment and storage medium of all-in-one machine | |
CN117349208A (en) | Isolated serial interface bidirectional communication method, system, medium and master controller based on daisy chain frame structure | |
CN111355778B (en) | Diagnostic device, vehicle-end device and diagnostic method | |
CN107632793B (en) | Data flow control method for SSD rear end | |
CN101419438B (en) | Method for refreshing hybrid vehicle controller chip | |
CN103731330A (en) | Calibration data communication device and communication method | |
CN113918187A (en) | Automobile instrument multi-chip upgrading system and method based on CAN bus | |
CN111506333B (en) | double-DSP program online upgrading method and system | |
CN114613042A (en) | Software configuration method and device for universal automobile key | |
CN112241279A (en) | Self-adaptive electronic control unit software upgrading method and system and automobile | |
CN111586548A (en) | Method and system for realizing coding of multiple automobile sound equipment based on CAN bus | |
CN112152753A (en) | Method and device for transmitting data with lower computer | |
CN113986807B (en) | Protocol conversion method and protocol converter for USB bus and PC104 bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20100224 |