CN106555743B - A kind of motor compressor drive firmware update method and system - Google Patents

A kind of motor compressor drive firmware update method and system Download PDF

Info

Publication number
CN106555743B
CN106555743B CN201510639238.3A CN201510639238A CN106555743B CN 106555743 B CN106555743 B CN 106555743B CN 201510639238 A CN201510639238 A CN 201510639238A CN 106555743 B CN106555743 B CN 106555743B
Authority
CN
China
Prior art keywords
controlling terminal
memory module
firmware update
data
motor compressor
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.)
Expired - Fee Related
Application number
CN201510639238.3A
Other languages
Chinese (zh)
Other versions
CN106555743A (en
Inventor
林敏鑫
林彬
刘燕林
陈家伟
林楚佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN SYSLAB ELECTRONICS Co Ltd
Original Assignee
SHENZHEN SYSLAB ELECTRONICS Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN SYSLAB ELECTRONICS Co Ltd filed Critical SHENZHEN SYSLAB ELECTRONICS Co Ltd
Priority to CN201510639238.3A priority Critical patent/CN106555743B/en
Publication of CN106555743A publication Critical patent/CN106555743A/en
Application granted granted Critical
Publication of CN106555743B publication Critical patent/CN106555743B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of motor compressor drive firmware update method and systems, this method realizes the firmware update to motor compressor driver by controlling terminal, motor compressor driver includes the first memory module and the second memory module, this method comprises: S1, controlling terminal and the first memory module establish communication connection;S2, controlling terminal send firmware update and instruct to the second memory module;S3, the second memory module send the first feedback information to controlling terminal;S4, controlling terminal send firmware update data to the second memory module, and the second memory module is updated according to the firmware update data received.The beneficial effects of the practice of the present invention is, after compressor installation, controlling terminal is according to different compressor models, customer information etc. obtains corresponding more new procedures, and after by the first memory module in CAN bus and driver establishing communication connection, corresponding firmware update data are loaded into the second memory module to carry out firmware update.

Description

A kind of motor compressor drive firmware update method and system
Technical field
The present invention relates to electric car fields, more specifically to a kind of electricity applied to electric automobile air-conditioning system Dynamic compressor drive firmware update method and system.
Background technique
The problems such as global warming, surging atmosphere pollution and energy cost, is increasingly severe, and automobile is as environmental pollution One of with the main source of energy consumption, energy-saving and emission-reduction problem receives more and more extensive attention, national governments and automobile The direction that enterprise develops energy conservation and environmental protection as future automobile technology, electronic also just meet the tendency of energy-saving and environment-friendly in this way and It is raw.But with the raising of the rise of new-energy automobile industry and people's quality of life, people to the reliability of new-energy automobile, relax More stringent requirements are proposed for the performances such as adaptive and energy conservation and environmental protection, and the quality of electric automobile air-conditioning system is to determine ride comfort One of an important factor for.
In existing electric automobile air-conditioning system, the driver of kernel component motor compressor is in production, just Driver is had cured, and the controller of motor compressor driver is mounted on inside motor compressor, it is not easy to disassemble, therefore make It obtains and the update of motor compressor driver is had the following disadvantages:
1) because different manufacturers, different model compressor corresponding to driver it is different, therefore motor compressor exists Before installation, it is necessary to which the producer's communication protocol and parameter of clear this type compressor cause product type excessive, is unfavorable for company The management of product;
If 2) motor compressor is after mounting, need to change the communication protocol or driving ginseng of motor compressor driver Number, then need to disassemble motor compressor driver inside motor compressor, and will using the burning chip device of profession Other version softwares are burnt in this drive control device.
Summary of the invention
The technical problem to be solved in the present invention is that need to be by motor compressor driver from electricity for the above-mentioned of the prior art It disassembles inside dynamic compressor to carry out the defect of firmware update, a kind of motor compressor drive firmware update method is provided And system.
The technical solution adopted by the present invention to solve the technical problems is: constructing a kind of motor compressor drive firmware more New method, the method realize the firmware update to motor compressor driver by controlling terminal, and the motor compressor drives Dynamic device includes the first memory module stored to execute driver functions program and stores to execute firmware update program Second memory module, the controlling terminal are connect with first memory module and the second memory module by CAN bus respectively, It the described method comprises the following steps:
S1, the controlling terminal and first memory module establish communication connection;
S2, the controlling terminal send firmware update and instruct to second memory module;
S3, second memory module send the first feedback information to the control according to the firmware update instruction received Terminal;
S4, the controlling terminal send firmware update data to described second according to first feedback information received Memory module, second memory module are updated according to the firmware update data received.
In above-mentioned motor compressor drive firmware update method, the method also includes:
The firmware update data are generated a frame check Data Concurrent by pre-defined rule and give institute by S5, the controlling terminal The second memory module is stated, simultaneously feedback check result gives the controlling terminal to the second memory module verification verification data, If verifying successfully, send to verify and successfully instruct to the controlling terminal, if verification failure, repeats step S4, if the Continuously verification fails in one pre-determined number, then return step S1.In above-mentioned motor compressor drive firmware update method, institute The method of stating further includes;
The controlling terminal sends the first update after the firmware update data are sent completely and completes instruction to described the Two memory modules.
In above-mentioned motor compressor drive firmware update method, the method also includes;
If the second memory module firmware update is completed, sends the second update and completes to instruct to the controlling terminal, If connection updates failure in the second pre-determined number, firmware update failure command is sent to the controlling terminal.
In above-mentioned motor compressor drive firmware update method, the controlling terminal is built with first memory module The step of vertical communication connection includes:
S11, the controlling terminal continuously transmit communication connection information to first memory module by third pre-determined number;
After S12, first memory module receive the communication connection information, the second feedback information is sent to the control Terminal processed, the controlling terminal execute the step S2 according to second feedback information received.
The present invention also provides a kind of motor compressor drive firmware more new systems, comprising: controlling terminal and with the control The motor compressor driver that terminal processed is connected by CAN bus;
Wherein: the motor compressor driver includes:
First memory module stores the program to execute driver functions;And
Second memory module stores the program to execute firmware update;
Second memory module includes instruction receiving unit, signal feedback unit and data receipt unit, in the control After terminal processed and first memory module establish communication connection, the controlling terminal sends firmware update and instructs to described instruction Receiving unit, the signal feedback unit send first after described instruction receiving unit receives the firmware update instruction Feedback information gives the controlling terminal, and the controlling terminal sends firmware update number according to first feedback information received According to the data receipt unit is given, the data receipt unit carries out firmware more according to the firmware update data received Newly.
In above-mentioned motor compressor drive firmware more new system, second memory module further includes verification unit, The verification unit is for verifying the verification data sent by the controlling terminal and check results being fed back to the control eventually End.
Implement motor compressor drive firmware update method and system of the invention, has the advantages that and be not necessarily to Drive model is distinguished before compressor assembling, as long as controlling terminal is according to different compressions after compressor installation Type number, customer information etc. obtains corresponding more new procedures, and is established by the first memory module in CAN bus and driver After communication connection, corresponding firmware update data are loaded into the second memory module to carry out firmware update, to the assembling of compressor Production brings great convenience.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of flow chart of motor compressor drive firmware update method embodiment of the present invention;
Fig. 2 is the data for the first feedback information that the firmware update instruction that controlling terminal is sent is sent with the second memory module Format;
Fig. 3 is the format for the firmware update data that controlling terminal is sent;
Fig. 4 is controlling terminal after firmware update data are sent completely, send update complete instruction data format and The format for the verification data that controlling terminal is sent;
Fig. 5 is the data format for verifying successfully instruction and verification failure command and be updated to that the second memory module is sent Function instruction and the data format for updating failure command;
Fig. 6 is the data format for the communication connection information that controlling terminal is sent;
Fig. 7 is the data of the first memory module is sent respectively to controlling terminal before reception feedback information when 3 frame data Format;
Fig. 8 is the data for the second feedback information that the first memory module is sent to controlling terminal when receiving 4 frame data Format.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail A specific embodiment of the invention.
As shown in Figure 1, for a kind of flow chart of motor compressor drive firmware update method embodiment of the present invention, the party Method directlys adopt the communication link CAN bus of motor compressor standard configuration, is realized by controlling terminal to motor compressor driver Firmware update.In the present embodiment, motor compressor driver includes the first memory module and the second memory module, and first deposits Storage module is used to store the program for being responsible for executing driver functions, and the second memory module is responsible for executing firmware update for storing Program, and the first memory module and the second memory module support CAN bus agreement, communicate to connect with controlling terminal.Such as Fig. 1 Shown, which includes:
S1, controlling terminal and the first memory module establish communication connection.In this step, driver is run under normal circumstances Instruction and online updating in the first memory module, and in order to avoid controlling terminal, the effects of overlapping such as memory read-write, controlling terminal It needs after first establishing communication connection with the first memory module, then firmware update is carried out to the second memory module.
S2, controlling terminal send firmware update and instruct to the second memory module;
S3, the second memory module send the first feedback information to controlling terminal according to the firmware update instruction received;
S4, controlling terminal send firmware update data to the second memory module according to the first feedback information for receiving, the Two memory modules are updated according to the firmware update data.
In above-mentioned steps, after controlling terminal establishes communication connection with the first memory module, controlling terminal sends firmware more New command gives the second memory module, and hence into firmware update mode, and the second memory module refers to receiving the firmware update After order, also can feedback information to controlling terminal, in the present embodiment, as shown in Fig. 2, for controlling terminal send firmware update refer to Enable the data format of the first feedback information sent with the second memory module.
After the first feedback information that controlling terminal receives the transmission of the second memory module, the second memory module has been indicated Firmware update instruction is had received, hence into firmware update mode.Controlling terminal retransmits firmware update data and deposits to second Store up module.In the present embodiment, controlling terminal sends a frame more new data to the second storage mould every a predetermined time (such as 2ms) Block, continuously transmits 64 frame data, and data format is as shown in Figure 3.After firmware update data are sent completely, controlling terminal can be sent out It send the first update to complete instruction to the second memory module, indicates that firmware update data have been sent, as shown in Figure 4.Frame in the figure Length indicates the length of the frame sent, in last frame, if 64 frame of curtailment, is calculated with physical length, and all data After the completion of all updating, indicate that more new data has been sent transmission instruction 0D 0A.
Above-mentioned update method further include:
Firmware update data are generated a frame check Data Concurrent by pre-defined rule and give the second storage mould by S6, controlling terminal Block, the second memory module verify the verification data and feedback check result to controlling terminal, if verify successfully, send verify at Function is instructed to controlling terminal, if verification failure, repeats step S4, if the continuously verification failure in the first pre-determined number, Return step S1.Specifically, controlling terminal can also send a frame check data to second when sending firmware update data simultaneously Memory module (the verification data format is as shown in Figure 4), verification data are that controlling terminal passes through pre-defined rule (by all firmwares More new data is added, and is negated plus 1) is generated, meanwhile, the second memory module, also will be all solid after having received firmware update data Part more new data be added, negate plus 1 generate verification data, if with controlling terminal send verification data match, verification at Function, and send to verify and successfully instruct to controlling terminal, as shown in Figure 5.If the verification data generated inside the second memory module with The inspection data that controlling terminal is sent mismatches, then it represents that verification failure repeats step S4, i.e. retransmission firmware update Data and verification data, if (can be set as in the present embodiment 3 times, but specific number is not intended to be limited in any) in the first pre-determined number Interior connection verification failure then sends verification failure command (as shown in Figure 5) to controlling terminal and return step S1 restarts to add It carries.
In above-mentioned steps, if the second memory module firmware update is completed, sends second and update completion instruction to control Terminal (as shown in Figure 5) indicates that data update and completes (i.e. completion firmware upgrade);If (in this implementation in the second pre-determined number Can be set as 3 times in example, but specific number is not intended to be limited in any) failure is continuously updated, the second memory module then sends update failure Instruction is (as shown in Figure 5) to give controlling terminal, indicates firmware update failure, exits this update.
In above-mentioned steps S1, it includes two steps that controlling terminal, which establishes communication connection again with the first memory module:
S11, controlling terminal continuously transmit communication connection information to the first memory module by third preset times;
After S12, the first memory module receive communication connection information, the second feedback information is sent to controlling terminal, control Terminal executes step S2 according to second feedback information received.In step sl, third preset times can be set as 4, but specific number is not intended to be limited in any, i.e. and controlling terminal connection sends 4 frame data to the first memory module, and data format is such as Shown in Fig. 6, the first memory module receives preceding 3 frame data, and sends data as shown in Figure 7 to control after one frame data of every reception Terminal processed, after controlling terminal has sent the 4th frame data, the first memory module the second feedback information of transmission to controlling terminal, the The data format of two feedback informations as shown in figure 8, indicate that controlling terminal and the first memory module establish communication connection, control at this time Terminal processed initially enters normal work.Specifically, the above-mentioned length for being related to sending every frame data can be other numbers Amount and specific instruction are also possible to other data, in practical application and are not intended to be limited in any.
In above-mentioned steps, firmware update data can download corresponding liter by connection upgrade server, official website The approach such as grade packet obtain and (download corresponding driver according to different compressors, different manufacturers by controlling terminal), and control Terminal can be PC (PC) etc..
The present invention also provides a kind of motor compressor drive firmware more new system, which includes: control Terminal and the motor compressor driver being connect with controlling terminal by CAN bus;And motor compressor driver includes One memory module stores the program to execute driver functions;And second memory module, it stores to execute firmware update Program.
Second memory module includes instruction receiving unit, signal feedback unit and data receipt unit again, is being controlled eventually After communication connection is established with the first memory module in end, controlling terminal sends firmware update and instructs to instruction receiving unit, and signal is anti- Feedback unit sends the first feedback information to controlling terminal, controlling terminal after instruction receiving unit receives firmware update instruction Firmware update data are sent to data receipt unit according to the first feedback information for receiving, and data receipt unit is according to receiving Firmware update data carry out firmware update.
Above-mentioned second memory module further includes verification unit, and verification unit is used to verify the check number sent by controlling terminal Controlling terminal is fed back to according to and by check results.
Therefore, implement motor compressor drive firmware update method and system of the present invention, without before compressor assembling Drive model is distinguished, as long as controlling terminal is according to different compressor models, customer information after compressor installation Deng obtaining corresponding more new procedures, and after establishing communication connection by the first memory module in CAN bus and driver, loading Corresponding firmware update data, to carry out firmware update, are brought greatly to the second memory module to the assembling production of compressor It is convenient.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (4)

1. a kind of motor compressor drive firmware update method, which is characterized in that the method passes through controlling terminal realization pair The firmware update of motor compressor driver, the motor compressor driver include storage to execute driver functions program The first memory module and store the second memory module to execute firmware update program, the controlling terminal respectively with it is described First memory module is connected with the second memory module by CAN bus, the described method comprises the following steps:
S1, the controlling terminal and first memory module establish communication connection;
The step of controlling terminal establishes communication connection with first memory module include:
S11, the controlling terminal continuously transmit communication connection information to first memory module by third pre-determined number;
After S12, first memory module receive the communication connection information, it is whole to the control to send the second feedback information End, the controlling terminal execute step S2 according to second feedback information received;
S2, the controlling terminal send firmware update and instruct to second memory module;
S3, second memory module are whole to the control according to firmware update instruction the first feedback information of transmission received End;
S4, the controlling terminal send firmware update data to second storage according to first feedback information received Module, second memory module are updated according to the firmware update data received;The controlling terminal is every one Predetermined time sends a frame more new data to second memory module, continuously transmits 64 frame data;
The firmware update data are generated a frame check Data Concurrent by pre-defined rule and give described the by S5, the controlling terminal Two memory modules, second memory module verify the verification data and feedback check result to the controlling terminal, if school Success is tested, then sends to verify and successfully instructs to the controlling terminal, if verification failure, repeats step S4, if pre- first Determine continuously verification failure in number, then return step S1;The controlling terminal can also be sent out simultaneously when sending firmware update data Send a frame check data to second memory module, verification data are that the controlling terminal is generated by pre-defined rule, institute Stating pre-defined rule is to be added all firmware update data, is negated plus 1, meanwhile, second memory module is receiving firmware After more new data, also all firmware update data are added, negates plus 1 generates verification data, if being sent with the controlling terminal Verification data match, then verify success, and send to verify and successfully instruct to the controlling terminal, if it is described second storage mould The inspection data that the verification data and the controlling terminal generated inside block are sent mismatches, then it represents that verification failure, repetition are held Row step S4, i.e. retransmission firmware update data and verification data, if the connection verification failure in the first pre-determined number, sends out It send verification failure command to the controlling terminal and return step S1 restarts to load.
2. motor compressor drive firmware update method according to claim 1, which is characterized in that
The method also includes;
The controlling terminal sends the first update completion instruction after the firmware update data are sent completely and deposits to described second Store up module.
3. motor compressor drive firmware update method according to claim 2, which is characterized in that
The method also includes;
If the second memory module firmware update is completed, sends second and update completion instruction to the controlling terminal, if Connection updates failure in second pre-determined number, then sends firmware update failure command to the controlling terminal.
4. a kind of motor compressor drive firmware more new system characterized by comprising controlling terminal and with the control eventually Hold the motor compressor driver connected by CAN bus;
Wherein: the motor compressor driver includes:
First memory module stores the program to execute driver functions;And
Second memory module stores the program to execute firmware update;
Second memory module includes instruction receiving unit, signal feedback unit and data receipt unit, at the control end After communication connection is established with first memory module in end, the controlling terminal transmission firmware update is instructed to be received to described instruction Unit, the signal feedback unit send the first feedback after described instruction receiving unit receives the firmware update instruction Information give the controlling terminal, the controlling terminal according to receive first feedback information transmission firmware update data to The data receipt unit, the data receipt unit carry out firmware update according to the firmware update data received;
Second memory module further includes verification unit, and the verification unit is for verifying the school sent by the controlling terminal It tests data and check results is fed back into the controlling terminal.
CN201510639238.3A 2015-09-30 2015-09-30 A kind of motor compressor drive firmware update method and system Expired - Fee Related CN106555743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510639238.3A CN106555743B (en) 2015-09-30 2015-09-30 A kind of motor compressor drive firmware update method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510639238.3A CN106555743B (en) 2015-09-30 2015-09-30 A kind of motor compressor drive firmware update method and system

Publications (2)

Publication Number Publication Date
CN106555743A CN106555743A (en) 2017-04-05
CN106555743B true CN106555743B (en) 2019-01-15

Family

ID=58417258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510639238.3A Expired - Fee Related CN106555743B (en) 2015-09-30 2015-09-30 A kind of motor compressor drive firmware update method and system

Country Status (1)

Country Link
CN (1) CN106555743B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563459B (en) * 2018-02-05 2021-10-19 宁波海迈克动力科技有限公司 System and method for updating firmware of motor driver of electric forklift
CN108870859B (en) * 2018-07-12 2020-09-22 四川虹美智能科技有限公司 Compressor driving parameter configuration method and system
CN110262822B (en) * 2019-06-17 2020-11-24 珠海格力电器股份有限公司 Multi-split system and upgrading method and device thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3372822B2 (en) * 1997-04-24 2003-02-04 キヤノン株式会社 Data compression apparatus, method and system, and storage medium
JP2005258562A (en) * 2004-03-09 2005-09-22 Matsushita Electric Ind Co Ltd Data updating device and data updating method
US7669046B2 (en) * 2004-08-03 2010-02-23 Panasonic Corporation Data processing apparatus and firmware update method
CN102185754B (en) * 2011-01-30 2014-03-12 广东佳和通信技术有限公司 Method for upgrading board card in switch system
CN103916299B (en) * 2013-01-02 2018-04-13 Lg电子株式会社 Household electrical appliance and its operating method
CN104363274A (en) * 2014-11-03 2015-02-18 九阳股份有限公司 Network household appliance with updating function
CN104618442A (en) * 2014-12-30 2015-05-13 珠海格力电器股份有限公司 Remote control method, equipment and system of air conditioner

Also Published As

Publication number Publication date
CN106555743A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN110069053B (en) Remote vehicle detection system and method based on TSP cloud deck
US9557981B2 (en) Method and apparatus for automatic module upgrade
CN108919778B (en) electric automobile vehicle control unit testing arrangement
CN106555743B (en) A kind of motor compressor drive firmware update method and system
CN107450518A (en) A kind of program upgrade apparatus and its control method based on vehicle-mounted Ethernet framework
CN101241364B (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
CN103761131B (en) A kind of many board part automatic update methods and system based on memory sharing
CN110275721B (en) Multi-connected air conditioning system, upgrading method and device thereof and air conditioning equipment
CN103439961B (en) Automobile electronic control unit diagnostic function test method and system
CN207424668U (en) A kind of HIL real-time testing systems suitable for car body controller
CN103067445A (en) Method and device of software upgrading of distributed system
US20150277891A1 (en) Electronic controller software coding system and method for vehicle control
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
CN111796844B (en) Firmware upgrading method and device based on Bluetooth network topology and Bluetooth network topology
CN105824653A (en) Automobile CAN bus data brush-writing method and device
CN111427602A (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
US10659536B2 (en) Method of controlling inverters
CN108769241B (en) Operation method, device and system for remote control of heat pump unit
CN114675855A (en) Vehicle software remote upgrading method and device and platform equipment
CN113805918A (en) Data interaction system and method for upgrading TBOX and obtaining TBOX logs
CN113625690A (en) Intelligent diagnosis method and system for automobile and mobile terminal
CN103264668A (en) Vehicle body controller, burning system utilizing vehicle body controller and burning method
CN109144550A (en) Data processing method, device and system
CN106648726A (en) Software online upgrading method for variable-air-volume air conditioning terminal devices
CN111290557A (en) Method and system for controlling power-on time sequence of GPU (graphics processing Unit) based on OAM (operation administration and maintenance) specification

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190115