CN105259806B - Controller upgrade method and system and master controller and from controller - Google Patents

Controller upgrade method and system and master controller and from controller Download PDF

Info

Publication number
CN105259806B
CN105259806B CN201510677085.1A CN201510677085A CN105259806B CN 105259806 B CN105259806 B CN 105259806B CN 201510677085 A CN201510677085 A CN 201510677085A CN 105259806 B CN105259806 B CN 105259806B
Authority
CN
China
Prior art keywords
controller
rompaq
upgrade
request order
upgrade request
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.)
Active
Application number
CN201510677085.1A
Other languages
Chinese (zh)
Other versions
CN105259806A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201510677085.1A priority Critical patent/CN105259806B/en
Publication of CN105259806A publication Critical patent/CN105259806A/en
Application granted granted Critical
Publication of CN105259806B publication Critical patent/CN105259806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Abstract

The invention discloses a kind of controller upgrade method and system and master controller and from controller.Wherein, controller includes master controller and included from controller, the controller upgrade method:Master controller receives upgrade request order;Master controller judge upgrade request order whether be two level ROMPaq upgrade request order, wherein, the upgrade request order of two level ROMPaq is for asking the order to upgrading from controller;Master controller will be forwarded to from controller to perform upgrading from controller when it is the upgrade request order of two level ROMPaq to judge upgrade request order from the ROMPaq of controller;And master controller is judging that upgrade request order is not the upgrade request order of two level ROMPaq, and upgrading is performed to itself program.By the present invention, the effect to performing upgrading from controller is reached.

Description

Controller upgrade method and system and master controller and from controller
Technical field
The present invention relates to the communications field, in particular to a kind of controller upgrade method and system and master controller and From controller.
Background technology
Controller is used for the control function for realizing system, by changing the connection status of main circuit according to predefined procedure, or Person realizes the startup of system, operates, stops by changing the resistance of resistance in circuit come the voltage in control circuit or electric current Operation is only waited, can be made up of program counter, command register, command decoder, clock generator and operational control device, Coordinate under the control of program and command whole computer system to realize certain function.Such as the control system of intelligent distribution cabinet Can be realized under the programme-control pre-set intelligent distribution cabinet article is carried out according to the attribute of article classification storage and The function of dispatching.Controller includes master controller and from controller.Master controller is that the main of control system operation realizes part, Control function is realized from controller based on the control of master controller.With the constantly improve to control system function, control system The program of system is constantly updated.In order to meet the upgrade requirement of control system, at present, the upgrade function of controller, especially master control The remote upgrade function of device processed is by the way of directly upgrading, still, existing when needing to performing upgrading from the program of controller There is technology can not meet upgrade requirement, the development of limit product.
The problem of for upgrade requirement can not be met from controller in correlation technique, effective solution party is not yet proposed at present Case.
The content of the invention
It is a primary object of the present invention to provide a kind of controller upgrade method and system and master controller and from controller, At least to solve the problems, such as that from controller upgrade requirement can not be met.
To achieve these goals, according to an aspect of the invention, there is provided a kind of controller upgrade method.Wherein, Controller includes master controller and included from controller, the controller upgrade method:Master controller receives upgrade request order;It is main Controller judge upgrade request order whether be two level ROMPaq upgrade request order, wherein, the liter of two level ROMPaq Level request command is for asking the order to upgrading from controller;Master controller is judging that upgrade request order is two level liter During the upgrade request order of level program, it will be forwarded to from the ROMPaq of controller from controller to perform liter from controller Level;And master controller is judging that upgrade request order is not the upgrade request order of two level ROMPaq, to itself program Perform upgrading.
Further, will be forwarded in master controller from the ROMPaq of controller before controller, the controller liter Level method also includes:Master controller sends the upgrade request order of two level ROMPaq to from controller;Master controller receives The upgrade command acknowledgement frame replied from controller, wherein, it is used to receive the upgrade request of two level ROMPaq from controller Upgrade command acknowledgement frame is replied after order;And master controller sends upgrade command acknowledgement frame to host computer, master controller Include being forwarded to from the ROMPaq of controller from controller:Master controller receives the upgrading from controller that host computer issues Program frame;And master controller will be sent to from controller from the ROMPaq frame of controller.
Further, ROMPaq includes more frame data, and master controller forwarding ROMPaq extremely includes from controller:Master control Device processed successively sends each frame data of more frame data to from controller, and after one frame data of every transmission, receives from control Device processed judges whether the write-in of the frame data succeeds to the upgrade status information of the frame data according to upgrade status information;It is main Controller judges finished from whether all ROMPaqs of controller write.
Further, a master controller corresponds to multiple from controller, and master controller is judging that upgrade request order is During the upgrade request order of two level ROMPaq, the controller upgrade method also includes:Master controller judges upgrade request order Request upgrading from controller;And master controller by ROMPaq send to upgrade request command request upgrade from control Device.
To achieve these goals, according to an aspect of the present invention, a kind of controller upgrade method is additionally provided.Its In, controller includes master controller and included from controller, the controller upgrade method:Carry out autonomous controller from controller reception Two level ROMPaq upgrade request order, wherein, the upgrade request order of two level ROMPaq is for asking to from control The order of device upgrading processed, master controller are used to receive upgrade request order, judge whether upgrade request order is two level upgrading journey The upgrade request order of sequence, and judging that upgrade request order is not the upgrade request order of two level ROMPaq, to itself Program performs upgrading, when it is the upgrade request order of two level ROMPaq to judge upgrade request order, by from controller ROMPaq is forwarded to from controller;And perform upgrading from controller by ROMPaq.
Further, after the upgrade request order of two level ROMPaq of autonomous controller is carried out from controller reception, The controller upgrade method also includes:Upgrade command is generated from controller according to the upgrade request order of two level ROMPaq to confirm Frame;Sent from controller by upgrade command acknowledgement frame to master controller, wherein, master controller is used to forward upgrade command acknowledgement frame To host computer, the ROMPaq that host computer issues is received.
Further, ROMPaq includes more frame data, and performing upgrading by ROMPaq from controller includes:From control Device often receives a frame data of master controller transmission, generates the upgrade status information to the frame data, wherein, upgrade status information For representing whether the write-in to the frame data succeeds;And sent from controller by upgrade status information to master controller.
To achieve these goals, according to an aspect of the present invention, a kind of master controller is additionally provided.The master controller Including:Receiving unit, for receiving upgrade request order;Judging unit, for judging whether upgrade request order is two level liter The upgrade request order of level program, wherein, the upgrade request order of two level ROMPaq is for asking to upgrading from controller Order;Retransmission unit, will be from control for when it is the upgrade request order of two level ROMPaq to judge upgrade request order The ROMPaq of device processed is forwarded to from controller to perform upgrading from controller;And upgrade unit, for judging to rise Level request command is not the upgrade request order of two level ROMPaq, and upgrading is performed to itself program.
To achieve these goals, according to an aspect of the present invention, additionally provide a kind of from controller.Should be from controller Including:Receiving unit, the upgrade request order of the two level ROMPaq of autonomous controller is carried out for receiving, wherein, two level upgrading The upgrade request order of program is for asking the order to upgrading from controller, and master controller is used to receive upgrade request life Order, judges whether upgrade request order is the upgrade request order of two level ROMPaq, and judging upgrade request order not It is the upgrade request order of two level ROMPaq, upgrading is performed to itself program, is judging that upgrade request order is two level liter During the upgrade request order of level program, it will be forwarded to from the ROMPaq of controller from controller;And upgrade unit, for leading to Cross ROMPaq and perform upgrading.
To achieve these goals, according to an aspect of the present invention, a kind of controller upgrade-system is additionally provided.The control Device upgrade-system processed includes:Including host computer, master controller and from controller, wherein, host computer is used to send upgrade request life Order, master controller be used for receive upgrade request order, judge upgrade request order whether be two level ROMPaq upgrade request Order, when it is the upgrade request order of two level ROMPaq to judge upgrade request order, by from the ROMPaq of controller It is forwarded to from controller, is judging that upgrade request order is not the upgrade request order of two level ROMPaq, to itself program Upgrading is performed, wherein, the upgrade request order of two level ROMPaq is for asking the order to upgrading from controller;And from Controller is used to perform upgrading according to from the ROMPaq of controller.
In the present invention, controller includes master controller and from controller, and upgrade request order is received using master controller, Master controller then judge upgrade request order whether be two level ROMPaq upgrade request order, wherein, two level upgrade journey The upgrade request order of sequence is for asking order to upgrading from controller, and master controller is judging that upgrade request order is During the upgrade request order of two level ROMPaq, it will be forwarded to from the ROMPaq of controller from controller to be held from controller Row upgrading, master controller is judging that upgrade request order is not the upgrade request order of two level ROMPaq, to itself program Upgrading is performed, solve the problems, such as that from controller upgrade requirement can not be met, and then to performing upgrading from controller Effect.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of controller upgrade-system according to a first embodiment of the present invention;
Fig. 2 is the schematic diagram of controller upgrade-system according to a second embodiment of the present invention;
Fig. 3 is the flow chart of controller upgrade method according to a first embodiment of the present invention;
Fig. 4 is the flow chart of controller upgrade method according to a second embodiment of the present invention;
Fig. 5 is the flow chart of controller upgrade method according to a third embodiment of the present invention;
Fig. 6 is the flow chart of controller upgrade method according to a fourth embodiment of the present invention;
Fig. 7 is the schematic diagram of master controller according to embodiments of the present invention;And
Fig. 8 is the schematic diagram according to embodiments of the present invention from controller.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiments of the invention provide a kind of controller upgrade-system.
Fig. 1 is the schematic diagram of controller upgrade-system according to a first embodiment of the present invention.As shown in figure 1, the controller Upgrade-system includes host computer 10, master controller 20 and from controller 30.
Host computer 10, for sending upgrade request order.
Controller performs upgrading using ROMPaq.Before controller receives ROMPaq, upgrade request life is received Order, that is, receiving the upgrade request order of ROMPaq.Upgrade request order can be the master controller upgrading of request controller Order to controller from controller upgrading of order or request, that is, the upgrade request life of two level ROMPaq Order.Controller receive upgrade request order after, controller by current working state carry out comprehensive analysis and judge come Determine whether to perform upgrading, prepared so as to carry out response to upgrade request order with determining whether controller enters upgrading. Preferably, the upgrade request order of controller is sent by host computer 10.Host computer 10 be able to will be upgraded by bus mode please Ask order to send to controller, then receive the upgrade command acknowledgement frame to upgrade request order from controller, that is, control Response result of the device processed to upgrade request order.Host computer 10 is analyzed upgrade command acknowledgement frame, when it is determined that controller can When upgrading to perform, the ROMPaq of controller is sent to controller.Preferably, host computer 10 is handled ROMPaq, ROMPaq is divided into more frame data, every time a frame data of transmission ROMPaq to controller.
Master controller 20, for receiving upgrade request order, judge whether upgrade request order is two level ROMPaq Upgrade request order, wherein, the upgrade request order of two level ROMPaq be for asking the order to upgrading from controller, When to judge upgrade request order be the upgrade request order of two level ROMPaq, by from the ROMPaq of controller be forwarded to from Controller is judging that upgrade request order is not the upgrade request life of two level ROMPaq to perform upgrading from controller Order, upgrading is performed to itself program.
Controller includes master controller and from controller.Master controller 20 by from the ROMPaq of controller be forwarded to from Before controller, the master controller 20 of the embodiment receives the upgrade request order that host computer 10 is sent, to upgrade request order Parsed.By the parsing to upgrade request order, master controller 20 judges whether upgrade request order is two level upgrading journey The upgrade request order of sequence.If master controller 20 judges that upgrade request order is the upgrade request life of two level ROMPaq Order, then master controller 20 do not perform upgrading, master controller sends the upgrade request order of two level ROMPaq to from controller, Request upgrades from controller, is utilized from controller from the ROMPaq of controller and performs upgrading.
Preferably, master controller 20 receives the upgrade command acknowledgement frame replied from controller, wherein, it is used for from controller Upgrade command acknowledgement frame is replied in the upgrade request order for receiving two level ROMPaq afterwards.Master controller 20 sends upgrade command Acknowledgement frame is to host computer 10.Host computer 10 sends ROMPaq frame to master controller 20 after upgrade command acknowledgement frame is received, Master controller 20 forwards ROMPaq frame extremely from controller again.
Preferably, ROMPaq includes more frame data, after master controller 20 receives the ROMPaq from host computer, according to It is secondary to send each frame data of more frame data to from controller, and after one frame data of every transmission, receive from controller pair The upgrade status information of the frame data, and judge whether the write-in of the frame data succeeds according to upgrade status information;Master controller 20 judge finished from whether all ROMPaqs of controller write.Alternatively, host computer 10 sends the more of ROMPaq respectively Frame data to master controller 20, master controller 20 forwards respectively to more frame data of ROMPaq.In 20 turns of master controller A frame data of ROMPaq are sent out extremely after controller, forward the upgrade status information to the frame data sent from controller To host computer 10, upgrading is performed from controller according to upgrade status information.Host computer 10 is sent out after upgrade status information is received Next frame data of ROMPaq are sent to master controller 20.Master controller 20 forwards next frame data of ROMPaq extremely from control Device, until being finished from controller using ROMPaq upgrading corresponding to upgrade request order.On if master controller 20 is judged The upgrade request order that position machine 10 is sent is not upgrade request order of the request from the two level ROMPaq of controller upgrading, then leads Controller 20 performs upgrading to itself program.
From controller 30, for performing upgrading according to from the ROMPaq of controller.
From controller 30 after the upgrade request order for the two level ROMPaq that master controller 20 is sent is received, from control Device 30 generates upgrade command acknowledgement frame according to upgrade request order.Specifically, from controller 30 according to upgrade request order pair Current working state carries out comprehensive analysis and judged to determine whether to perform upgrading.If determine to hold from controller 30 Row upgrading, then the upgrade request order from controller 30 to two level ROMPaq are determined, and obtain upgrade command acknowledgement frame, so Upgrade command acknowledgement frame is sent to master controller 20 afterwards, prepared into upgrading.Master controller 20 forwards upgrade command acknowledgement frame To host computer 10, host computer 10 clearly can perform upgrading from controller 30, send the two level ROMPaq from controller upgrading To master controller 20, two level ROMPaq is forwarded to from controller 30 by master controller 20, is upgraded from controller 30 using two level Program is upgraded.
Preferably, ROMPaq includes more frame data, and performing upgrading using two level ROMPaq from controller 30 includes:From Controller often receives a frame data of master controller transmission, generates the upgrade status information to the frame data, that is, from controller 30 pairs of two level ROMPaqs for carrying out autonomous controller 20 respond, and obtain upgrade status information, wherein, upgrade status information is used Whether succeed in write-in of the expression to the frame data.Alternatively, the two level upgrading for carrying out autonomous controller 20 is received from controller 30 One frame data of program, a frame data of two level ROMPaq are responded from controller 30, first according to preset rules pair Two level ROMPaq is judged, obtains judged result, such as, a frame data of the ROMPaq are in the memory block of master controller The position of middle storage and space-consuming size etc..Then one frame data of two level ROMPaq are write from control according to judged result The default memory space of device 30 processed, obtains upgrade status information, and upgrade status information is sent to master controller 20.Wherein, it is main Controller 20 forwards upgrade status information, and to host computer 10, host computer 10 is after upgrade status information is received, to upgrade status Information is determined, and sends next frame data of two level ROMPaq to master controller 20.Received from controller 30 and come from master control Next frame data of the two level ROMPaq of device 20 processed, continue to respond next frame data of two level ROMPaq.From During controller 30 responds each frame data of two level ROMPaq, ensure to receive two level upgrading from controller 30 The correctness of each frame data of program, the correctness of memory space and the correctness of the default memory space of write-in are wiped, until Default memory space from controller 30 by more frame data whole write-in of two level ROMPaq from controller 30, then from controller 30 complete upgrading.
Fig. 2 is controller upgrade-system according to a second embodiment of the present invention.As shown in Fig. 2 the controller upgrade-system Including host computer 10, master controller 20 and from controller 30.
Preferably, a master controller 20 is corresponding multiple from controller, multiple to be included in from controller from controller 30. For master controller 20 when it is the upgrade request order of two level ROMPaq to judge upgrade request order, master controller judges upgrading Request command request upgrading from controller, master controller 20 by ROMPaq send to upgrade request command request upgrade from Controller.Master controller is connected with from controller by connection, connects from controller and between controller also by connection Connect, by certain communications protocol completion master controller and the upgrading from controller, wherein, L represents the live wire of controller, N tables Show the zero line of controller.
The embodiment sends upgrade request order by host computer 10, wherein, upgrade request order is the liter of ROMPaq Level request command, upgrade request order is received by master controller 20, judges whether upgrade request order is two level ROMPaq Upgrade request order, wherein, the upgrade request order of two level ROMPaq is for asking the life to upgrading from controller 30 Order, when it is the upgrade request order of two level ROMPaq to judge upgrade request order, ROMPaq is forwarded to from control Device 30 is judging that upgrade request order is not two level to perform upgrading according to from the ROMPaq of controller from controller 30 The upgrade request order of ROMPaq, upgrading is performed to itself program;By being received from controller 30 come autonomous controller 20 The upgrade request order of two level ROMPaq, the upgrade request order to two level ROMPaq are determined, and obtain upgrade command Acknowledgement frame, upgrade command acknowledgement frame is sent to master controller 20, wherein, master controller 20 forwards upgrade command acknowledgement frame to upper Machine 10, host computer 10 send ROMPaq to master controller 20 after upgrade command acknowledgement frame is received, received from controller 30 Carry out the ROMPaq of autonomous controller 20, upgrading is performed using ROMPaq, so as to reach to performing upgrading from controller 30 Effect.
The embodiment of the present invention additionally provides a kind of controller upgrade method.It should be noted that the controller upgrade method Execution available for controller upgrade-system.
Controller upgrade method provided in an embodiment of the present invention or controller upgrade-system can be used in air conditioner, because And the embodiment of the present invention additionally provides a kind of air conditioner, including master controller provided in an embodiment of the present invention and/or from control Device.
Fig. 3 is the flow chart of controller upgrade method according to a first embodiment of the present invention.As shown in figure 3, the controller Upgrade method comprises the following steps:
Step S302, master controller receive upgrade request order.
Controller includes master controller and connected from controller, master controller and from controller by connection, passes through one Fixed communications protocol transmission data.Controller performs upgrading using ROMPaq, it is preferable that can pass through master control from controller Device processed performs upgrading, and master controller receives upgrade request order.
Master controller detects whether to receive upgrade request order, that is, receiving the upgrade request order of ROMPaq. If what master controller received is not the request command of ROMPaq, master controller does not perform upgrading, is belonging to master controller The task of the normal processing system of main program of system.If the upgrade request order sent for host computer that master controller receives, Upgrading is performed to controller.Upgrade request order can be asked the order of master controller upgrading or ask from control The order of device upgrading, that is, the upgrade request order of two level ROMPaq.When upgrade request order asking for two level ROMPaq When asking order, ROMPaq is used for upgrading from controller, when upgrade request order is not the request command of two level ROMPaq When, ROMPaq is used to upgrade master controller.Preferably, upgrade request order is sent to master by host computer with bus mode Controller, wherein, host computer is handled ROMPaq, and ROMPaq is divided into more frame data, sends ROMPaq every time A frame data, until ROMPaq more frame data all sent.
Step S304, master controller judge upgrade request order whether be two level ROMPaq upgrade request order, its In, the upgrade request order of two level ROMPaq is for asking the order to upgrading from controller.
After master controller receives the upgrade request order from host computer, master controller is carried out to upgrade request order Parsing.Master controller by the parsing to upgrade request order, judge upgrade request order whether be two level ROMPaq liter Level request command.Wherein, the upgrade request order of two level ROMPaq is for asking the order to upgrading from controller.It is optional Ground, master controller have ROMPaq discriminant function, by ROMPaq discriminant function come complete to upgrade request order whether It is the judgement of the upgrade request order of two level ROMPaq.
Step S306, master controller when it is the upgrade request order of two level ROMPaq to judge upgrade request order, It will be forwarded to from the ROMPaq of controller from controller to perform upgrading from controller.
When it is the upgrade request order of two level ROMPaq that master controller, which judges upgrade request order, then master controller Upgrading is not performed, ROMPaq corresponding to upgrade request order is used for upgrading from controller, and master controller is by from controller ROMPaq is forwarded to from controller to perform upgrading from controller.
Preferably, will be forwarded in master controller from the ROMPaq of controller before controller, master controller will rise The upgrade request order of level program is sent to from controller, asks to upgrade from controller, two level ROMPaq is utilized from controller Perform upgrading.Master controller receives the upgrade command acknowledgement frame replied from controller, wherein, it is used to receive two from controller Upgrade command acknowledgement frame is replied after the upgrade request order of level ROMPaq;And master controller sends out upgrade command acknowledgement frame Deliver to host computer.Host computer retransmits ROMPaq frame to master controller, master controller after upgrade command acknowledgement frame is received Forward ROMPaq frame extremely from controller.
Preferably, ROMPaq includes more frame data, and master controller forwarding ROMPaq extremely includes from controller:Main control Device successively sends each frame data of more frame data to from controller, and after one frame data of every transmission, receives controller Judge whether the write-in of the frame data succeeds to the upgrade status information of the frame data, and according to upgrade status information;Main control Device judges finished from whether all ROMPaqs of controller write.Specifically, the one of ROMPaq is sent in master controller Frame data, by the frame data write-in of ROMPaq from the default storage region of controller, are forwarded from control to after controller The upgrade status information that device processed is sent is to host computer.Host computer sends the next of ROMPaq after upgrade status information is received Frame data to master controller, next frame data of master controller forwarding ROMPaq utilize to from controller up to from controller ROMPaq upgrading finishes corresponding to upgrade request order, so as to reach the effect to performing upgrading from controller.
Alternatively, master controller forwarding judges from the upgrade status information that controller is sent to host computer including master controller Upgrade status information whether is received in preset time, if master controller is judged to be not received by liter in preset time Level status information, then master controller forward frame data of ROMPaq to continue waiting for receiving from control to from controller again The upgrade status information that a frame data of the ROMPaq are responded that device is sent.
Alternatively, the upgrade status information that master controller forwarding is sent from controller is connecing to host computer including master controller After receiving the upgrade status information sent from controller, judge whether upgrade status information meets preset rules, such as, upgrading Status information whether be ROMPaq the state that is normally received from controller of a frame data, storage is correctly wiped from controller Whether the state in space, the write-in of a frame data of ROMPaq succeed.If master controller judges that upgrade status information accords with Preset rules are closed, then from the upgrade status information that controller is sent to host computer, host computer is receiving upgrade status letter for forwarding After breath, next frame data of ROMPaq are sent to master controller.If master controller judges upgrade status, information is not inconsistent Preset rules are closed, then master controller forwards the frame for not meeting ROMPaq corresponding to the upgrade status information of preset rules again Data re-start response to it to from controller from controller.
Step S308, master controller are judging that upgrade request order is not the upgrade request order of two level ROMPaq, Upgrading is performed to itself program.
Judge that upgrade request order is not the upgrade request order of two level ROMPaq in master controller, then ROMPaq For upgrading to master controller, master controller performs upgrading to itself program.
Preferably, ROMPaq includes more frame data, and master controller forwarding ROMPaq extremely includes from controller:Main control Device successively sends each frame data of more frame data to from controller, and after one frame data of every transmission, receives controller Judge whether the write-in of the frame data succeeds to the upgrade status information of the frame data, and according to upgrade status information;Main control Device judges finished from whether all ROMPaqs of controller write.
Alternatively, master controller performs upgrading to itself program and includes ROMPaq and be made up of multiframe data, master controller Upgrading is performed using more frame data of ROMPaq.Master controller often receives a frame data of the ROMPaq of host computer transmission, One frame data of ROMPaq are responded, obtain upgrade status information.Specifically, a frame data of ROMPaq are entered Row judges, obtains judged result, such as, position that frame data of the ROMPaq store in the memory block of master controller and Space-consuming size etc..Then default storage that one frame data of ROMPaq are write to master controller according to judged result is empty Between, obtain upgrade status information.The upgrade status information of ROMPaq is sent to host computer, host computer and received by master controller After master controller is to the upgrade status information of ROMPaq, upgrade status information is determined, sent under ROMPaq To master controller, master controller continues to respond next frame data of ROMPaq one frame data.In master controller to rising During each frame data of level program are responded, ensure that master controller receives the correct of each frame data of ROMPaq Property, the correctness of memory space and the correctness of the default memory space of write-in are wiped, until master controller is by the more of ROMPaq Frame data all write the default memory space of master controller, then master controller completes upgrading, so as to reach to master controller Perform the effect of upgrading.
Preferably, a master controller corresponds to multiple is judging that upgrade request order is two from controller, master controller During the upgrade request order of level ROMPaq, upgrading from controller, master controller for upgrade request command request upgrading is judged Program is sent to the upgrading of upgrade request command request from controller, makes being upgraded from controller for needs upgrading.
The embodiment receives upgrade request order by master controller, then whether master controller judges upgrade request order It is the upgrade request order of two level ROMPaq, wherein, the upgrade request order of two level ROMPaq is for asking to from control The order of device upgrading processed, will when it is the upgrade request order of two level ROMPaq that master controller, which judges upgrade request order, It is forwarded to from the ROMPaq of controller from controller to perform upgrading from controller, when master controller is judging that upgrading please The upgrade request order that order is not two level ROMPaq is asked, upgrading is performed to itself program, so as to reach to from controller Perform the effect of upgrading.
Fig. 4 is the flow chart of controller upgrade method according to a second embodiment of the present invention.As shown in figure 4, the controller Upgrade method comprises the following steps:
Step S402, master controller determine whether upgrade request order.
Master controller built-in main controller upgrades function.Specifically, master controller upgrading function can detect master control Whether device processed receives the upgrade request order of ROMPaq.What if master controller received is not the request life of ROMPaq Order, then perform step S414, the main program handling process of master controller, that is, master controller does not perform upgrading, master controller institute The task of the normal processing system of main program of category system.If the upgrade request order for ROMPaq that master controller receives, Then perform step S404, master controller judge upgrade request order whether be two level ROMPaq upgrade request order.
Step S404, master controller determine whether the upgrade request order of two level ROMPaq.
Upgrade request order can be the life for asking the order of master controller upgrading or request to upgrade from controller Order, that is, the upgrade request order of two level ROMPaq.In the upgrade request order for ROMPaq that master controller receives When, master controller upgrading function may determine that upgrade request order whether be two level ROMPaq upgrade request order.If Master controller judges upgrade request order when being the upgrade request order of two level ROMPaq, performs step S406, otherwise, holds Row step S410.
Step S406, main controller controls perform upgrading from controller.
If master controller upgrading function judges the upgrade request order that upgrade request order is two level ROMPaq, The ROMPaq from controller, namely two level ROMPaq is utilized to be upgraded from controller.Specifically, master controller forwards Carry out the upgrade command acknowledgement frame since controller to host computer, wherein, upgrade command acknowledgement frame is to receive two level from controller The frame data replied after the upgrade request order of ROMPaq, host computer send upgrading after upgrade command acknowledgement frame is received Program is to master controller.ROMPaq includes more frame data, and master controller forwarding ROMPaq extremely includes from controller:Main control Device successively sends each frame data of more frame data to from controller, and after one frame data of every transmission, receives controller Judge whether the write-in of the frame data succeeds to the upgrade status information of the frame data, and according to upgrade status information;Main control Device judges finished from whether all ROMPaqs of controller write.Alternatively, a frame number of master controller forwarding ROMPaq According to from controller, a frame data of ROMPaq are forwarded to forward and sent from controller extremely after controller in master controller Upgrade status information to host computer, wherein, upgrade status information is rings from controller to a frame data of ROMPaq The result answered, upgrading is performed from controller according to upgrade status information, host computer is sent after upgrade status information is received to be risen Next frame data of level program are to master controller, and next frame data of master controller forwarding ROMPaq are extremely from controller, from control Device processed responds to next frame data of ROMPaq, and then realizes the upgrading from controller.
Step S408, judge whether complete to upgrade from controller.
Master controller is by from the ROMPaq of controller, that is, the multiframe data forwarding of ROMPaq makes to from controller Responded from more frame data of controller ROMPaq, until being finished from controller upgrading.Judge whether complete from controller Upgrading, if completing to upgrade from controller, etc. new upgrade command request to be received.If do not complete to rise from controller Level, then step S406 is performed, is continued to upgrading from controller, and then to performing the effect of upgrading from controller.
Step S410, master controller perform upgrading.
If it is judged that when upgrade request order is not the upgrade request order of two level ROMPaq, master controller is to itself Program performs upgrading, and specifically, ROMPaq is made up of multiframe data, and master controller is held using more frame data of ROMPaq Row upgrading.Master controller often receives a frame data of the ROMPaq of host computer transmission, and a frame data of ROMPaq are carried out Response, obtains upgrade status information.The upgrade status information of ROMPaq is sent to host computer, host computer and connect by master controller After master controller is received to the upgrade status information of ROMPaq, upgrade status information is determined, sends ROMPaq To master controller, master controller continues to respond next frame data of ROMPaq next frame data.
Step S412, judges whether master controller is completed to upgrade.
During master controller responds to each frame data of ROMPaq, ensure that master controller receives upgrading The correctness of each frame data of program, the correctness of memory space and the correctness of the default memory space of write-in are wiped, until Master controller all writes more frame data of ROMPaq the default memory space of master controller, then master controller is completed to rise Level.If master controller completes upgrading, etc. new upgrade command request to be received.If master controller is not completed to upgrade, Step S410 is then performed, continues to upgrade master controller, so as to reach the effect that upgrading is performed to master controller.
Step S414, the main program handling process of master controller.
What if master controller received is not the request command of ROMPaq, such as, master controller receives interrupt requests, To other processing task dispatchings of system, master controller does not perform upgrading, the normal processing system of main program of master controller said system The task of system.
The embodiment is by judging whether master controller receives upgrade request order, if it is judged that master controller receives To upgrade request order, then judge the upgrade request order whether be two level ROMPaq upgrade request order, if it is determined that Go out the upgrade request order that the upgrade request order is two level ROMPaq, then to upgrading from controller, until from control Device completes upgrading, if it is judged that the upgrade request order is not the upgrade request order of two level ROMPaq, then to main control Device is upgraded, until master controller completes upgrading, if it is judged that what master controller received is not upgrade request order, then Program processing is gone out to system, it is achieved thereby that performing the effect of upgrading to controller.
Fig. 5 is the flow chart of controller upgrade method according to a third embodiment of the present invention.As shown in figure 5, the controller Upgrade method comprises the following steps:
Step S502, the upgrade request order of the two level ROMPaq of autonomous controller is carried out from controller reception.
The upgrade request order of two level ROMPaq can be sent to master controller, master control by host computer by bus mode The upgrade request order of two level ROMPaq is forwarded to from controller by device processed, is entered from controller and master controller by connection Row connection, receives the upgrade request order of two level ROMPaq under certain communications protocol from controller.Wherein, two level upgrades The upgrade request order of program is for asking the order to upgrading from controller, and master controller is used to receive upgrade request life Order, judges whether upgrade request order is the upgrade request order of two level ROMPaq, and judging upgrade request order not It is the upgrade request order of two level ROMPaq, upgrading is performed to itself program, is judging that upgrade request order is two level liter During the upgrade request order of level program, it will be forwarded to from the ROMPaq of controller from controller.
Step S504, upgrading is performed from controller by ROMPaq.
After the upgrade request order of two level ROMPaq of autonomous controller is carried out from controller reception, from controller root Upgrade command acknowledgement frame is generated according to the upgrade request order of two level ROMPaq;From controller by upgrade command acknowledgement frame send to Master controller, wherein, master controller is used to forward upgrade command acknowledgement frame to receive the upgrading journey that host computer issues to host computer Sequence.Specifically, from controller after the upgrade request order for the two level ROMPaq that master controller is sent is received, from control Device determines whether to perform upgrading.If determining that upgrading can be performed from controller, the upgrading to two level ROMPaq please Ask order to be determined, obtain upgrade command acknowledgement frame, otherwise, without processing.Sent out from controller by upgrade command acknowledgement frame Master controller is delivered to, is prepared into upgrading.Master controller forwards upgrade command acknowledgement frame, and to host computer, host computer is clearly from control Device is sent from the ROMPaq of controller to master controller, master controller will be sent out from the ROMPaq of controller with performing upgrading Deliver to from controller, upgrading is performed from controller by ROMPaq.
Preferably, ROMPaq includes more frame data, and performing upgrading by ROMPaq from controller includes:From controller The frame data that master controller is sent often are received, generate the upgrade status information to the frame data, wherein, upgrade status information is used Whether succeed in write-in of the expression to the frame data;And sent from controller by upgrade status information to master controller.It is optional Ground, ROMPaq include more frame data, and a frame number of the ROMPaq from controller of autonomous controller is carried out from controller reception According to.One frame data of ROMPaq are responded from controller, ROMPaq is judged according to preset rules first, obtained To judged result, then according to judged result by the frame data write-in of ROMPaq from the default memory space of controller, obtain Sent to upgrade status information, then by upgrade status information to master controller.Wherein, master controller forwards upgrade status information extremely Host computer, host computer are determined after upgrade status information is received to upgrade status information, send two level ROMPaq Next frame data are to master controller.Carry out next frame data of the ROMPaq of autonomous controller from controller reception, continue to rising Next frame data of level program are responded.During being responded from controller to each frame data of ROMPaq, Ensure the correctness of each frame data from controller reception ROMPaq, wipe the correctness of memory space and write-in is preset and deposited The correctness in space is stored up, until all write-in is empty from the default storage of controller by more frame data of ROMPaq from controller Between, then complete to upgrade from controller.
The embodiment by receiving the upgrade request order of the two level ROMPaq come autonomous controller from controller, its In, the upgrade request order of two level ROMPaq is for asking the order to upgrading from controller, and master controller is used to receive Upgrade request order, judges whether upgrade request order is the upgrade request order of two level ROMPaq, and is judging to upgrade Request command is not the upgrade request order of two level ROMPaq, and upgrading is performed to itself program, is judging upgrade request life When order is the upgrade request order of two level ROMPaq, it will be forwarded to from the ROMPaq of controller from controller, from controller Then upgrading is performed by ROMPaq, so as to reach the effect to performing upgrading from controller.
Fig. 6 is the flow chart of controller upgrade method according to a fourth embodiment of the present invention.As shown in fig. 6, the controller Upgrade method comprises the following steps:
Step S602, from controller judge upgrade request order whether be two level ROMPaq upgrade request order.
From controller after the upgrade request order by master controller forwarding is received, alternatively, from controller again Judge whether upgrade request order is the upgrade request order of two level ROMPaq, so that upgrade request order is determined, Upgrade command acknowledgement frame is generated, alternatively, the upgrade command acknowledgement frame is to determine that upgrade request order is for asking to from control Device processed utilizes the upgrade request order that upgrading is performed from the ROMPaq of controller.
Step S604, two level upgrading function processing.
After the upgrade request order for judging that upgrade request order is two level ROMPaq from controller, from controller Upgrade command acknowledgement frame is sent to master controller, prepared subsequently into upgrade status, into two level upgrading function processing, is utilized Two level ROMPaq performs upgrading.Alternatively, two level upgrading function is used to reset system, adjusts baud rate, enters Upgrade function wait state etc., it is possible to achieve a frame data of the ROMPaq from controller are responded, according to default rule Then to judging from the ROMPaq of controller, judged result is obtained, then according to judged result by from the upgrading of controller The frame data write-in of program obtains upgrade status information, upgrade status information is sent from the default memory space of controller To master controller.Carry out next frame data of the ROMPaq from controller of autonomous controller from controller reception, continue to from Next frame data of the ROMPaq of controller are responded, until more frame data of two level ROMPaq have all been responded, Complete the upgrading from controller.In the process responded from controller to each frame data of the ROMPaq from controller In, two level upgrading function ensures to receive the correctness of each frame data from the program of controller from controller, and erasing storage is empty Between correctness and the default memory space of write-in correctness.
Step S606, judge whether complete to upgrade from controller.
After two level upgrading function processing is entered, it will will be write from controller from more frame data of the ROMPaq of controller Enter the default memory space from controller, and judge whether complete to upgrade from controller, if it is judged that being completed from controller Upgrading, then enter the main program handling process from controller, otherwise, perform step S604, go successively at two level upgrading function Program is managed, to upgrading from controller, is finished until performing upgrading from controller, so as to reach the upgrading effect from controller Fruit.
Step S608, from the main program handling process of controller.
If it is judged that upgrade request order is not the upgrade request order of two level ROMPaq, then from controller enter from The main program handling process of controller, does not perform upgrading.
The embodiment by from controller judge upgrade request order whether be two level ROMPaq upgrade request order, If judging the upgrade request order that upgrade request order is two level ROMPaq from controller, enter two level from controller Upgrade function handling process, perform upgrading from controller using two level ROMPaq, judge whether complete to upgrade from controller, such as Fruit is judged not complete to upgrade from controller, then two level upgrading function handling process is gone successively to, if it is judged that from control Device completes upgrading, then from the new upgrade command request to be subjected such as controller, if judging upgrade request order from controller It is not the upgrade request order of two level ROMPaq, then enters the main program handling process from controller from controller, so as to reach To so as to having reached the upgrading effect from controller.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not The order being same as herein performs shown or described step.
Present invention also offers a kind of master controller.It should be noted that the master controller can be used for performing the present invention in fact Apply the controller upgrade method of example.
Fig. 7 is the schematic diagram of master controller according to embodiments of the present invention.As shown in fig. 7, the master controller includes:Receive Unit 40, judging unit 50, retransmission unit 60 and upgrade unit 70.
Receiving unit 40, for receiving upgrade request order.
Judging unit 50, for judge upgrade request order whether be two level ROMPaq upgrade request order, wherein, The upgrade request order of two level ROMPaq is for asking the order to upgrading from controller.
Retransmission unit 60, for when it is the upgrade request order of two level ROMPaq to judge upgrade request order, inciting somebody to action It is forwarded to from the ROMPaq of controller from controller to perform upgrading from controller.
Upgrade unit 70, it is right for judging that upgrade request order is not the upgrade request order of two level ROMPaq Itself program performs upgrading.
The master controller of the embodiment receives the upgrade request order of host computer transmission by receiving unit 40, passes through judgement Unit 50 judge upgrade request order whether be two level ROMPaq upgrade request order.If it is determined that unit 50 is judged to rise Level request command is the upgrade request order of two level ROMPaq, then master controller does not perform upgrading, and retransmission unit 60 is by two level The upgrade request order of ROMPaq is forwarded to from controller, asks to upgrade from controller, is ordered from controller using upgrade request ROMPaq performs upgrading corresponding to order.Retransmission unit 60, which also forwards, carrys out upgrade command acknowledgement frame since controller to upper Machine, wherein, it is used to reply upgrade command acknowledgement frame after the upgrade request order of two level ROMPaq is received from controller. Host computer sends ROMPaq to master controller after upgrade command acknowledgement frame is received.Retransmission unit 60 forwards ROMPaq again Extremely from controller, it is preferable that ROMPaq includes more frame data, and retransmission unit 60 carries out multiple to more frame data of ROMPaq Forwarding, until being finished from controller using ROMPaq upgrading corresponding to upgrade request order.If it is determined that unit 50 is judged The upgrade request order that host computer is sent is not upgrade request order of the request from the two level ROMPaq of controller upgrading, is passed through Upgrade unit 70 performs upgrading to itself program, has reached the effect to performing upgrading from controller.
Present invention also offers one kind from controller.It should be noted that it should can be used for performing the present invention from controller in fact Apply the controller upgrade method of example.
Fig. 8 is the schematic diagram according to embodiments of the present invention from controller.As shown in figure 8, it should include from controller:Receive Unit 80, upgrade unit 90.
Receiving unit 80, the upgrade request order of the two level ROMPaq of autonomous controller is carried out for receiving, wherein, two level The upgrade request order of ROMPaq is for asking the order to upgrading from controller, and master controller is used to receive upgrade request Order, judges whether upgrade request order is the upgrade request order of two level ROMPaq, and judging upgrade request order It is not the upgrade request order of two level ROMPaq, upgrading is performed to itself program, is judging that upgrade request order is two level During the upgrade request order of ROMPaq, it will be forwarded to from the ROMPaq of controller from controller.
Upgrade unit 90, for performing upgrading by ROMPaq.
The embodiment is receiving the liter for the two level ROMPaq that master controller is sent from controller by receiving unit 80 After level request command, comprehensive analysis is carried out to current working state and is judged to determine whether to perform upgrading, it is determined that can To perform upgrading, then the upgrade request order to two level ROMPaq is determined, and is obtained upgrade command acknowledgement frame, is then upgraded Confirmation command frame is sent to master controller, is prepared into upgrading.Master controller forwards upgrade command acknowledgement frame to host computer, upper Machine clearly can perform upgrading from controller, send from the ROMPaq of controller to master controller, and master controller will be from control The ROMPaq of device is forwarded to from controller, is received from controller by receiving unit 80 come autonomous controller from controller ROMPaq, upgrading is performed using from the ROMPaq of controller by upgrade unit 90, reached to performing liter from controller The effect of level.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (8)

1. a kind of controller upgrade method, it is characterised in that controller includes master controller and from controller, methods described bag Include:
The master controller receives upgrade request order;
The master controller judge the upgrade request order whether be two level ROMPaq upgrade request order, wherein, institute The upgrade request order for stating two level ROMPaq is for asking to the order from controller upgrading;
The master controller, will when it is the upgrade request order of the two level ROMPaq to judge the upgrade request order Described be forwarded to from the ROMPaq of controller described performs upgrading from controller so as to described from controller;And
The master controller is judging that the upgrade request order is not the upgrade request order of the two level ROMPaq, right Itself program performs upgrading;
Wherein, the ROMPaq includes more frame data, and the master controller forwards the ROMPaq to described from controller Including:
The master controller successively sends each frame data of more frame data to described from controller, and sends one every After frame data, the upgrade status information from controller to the frame data is received, and sentence according to the upgrade status information Whether the write-in of the disconnected frame data succeeds;
The master controller finishes described in judging from whether all ROMPaqs of controller write.
2. according to the method for claim 1, it is characterised in that
It is forwarded to from the ROMPaq of controller described before controller by described in the master controller, methods described is also wrapped Include:
The master controller sends the upgrade request order of the two level ROMPaq to described from controller;
The master controller receives the upgrade command acknowledgement frame replied from controller, wherein, it is described to be used for from controller The upgrade request order for receiving the two level ROMPaq replys the upgrade command acknowledgement frame afterwards;And
The master controller sends the upgrade command acknowledgement frame to host computer,
The master controller described includes described be forwarded to from the ROMPaq of controller from controller:
The master controller receives the ROMPaq frame from controller that the host computer issues;And
The master controller is sent described to described from controller from the ROMPaq frame of controller.
3. according to the method for claim 1, it is characterised in that a master controller corresponds to multiple described from control Device, the master controller is when it is the upgrade request order of the two level ROMPaq to judge the upgrade request order, institute Stating method also includes:
The master controller judge upgrade request command request upgrading from controller;And
The master controller sends the ROMPaq to upgrade request command request upgrading from controller.
4. a kind of controller upgrade method, it is characterised in that controller includes master controller and from controller, methods described bag Include:
The upgrade request order that the two level ROMPaq from the master controller is received from controller, wherein, described two The upgrade request order of level ROMPaq is that the master controller is used to connect for asking to the order from controller upgrading Receive upgrade request order, judge the upgrade request order whether be the two level ROMPaq upgrade request order, and It is not the upgrade request order of the two level ROMPaq to judge the upgrade request order, and upgrading is performed to itself program, When it is the upgrade request order of the two level ROMPaq to judge the upgrade request order, by the liter from controller Level program is forwarded to described from controller;And
It is described that upgrading is performed by the ROMPaq from controller;
The ROMPaq includes more frame data, described to be included from controller by ROMPaq execution upgrading:
The frame data that the master controller is often received from controller and is sent, generate the upgrade status letter to the frame data Breath, wherein, the upgrade status information is used to represent whether the write-in to the frame data succeeds;And
It is described to send the upgrade status information to the master controller from controller.
5. according to the method for claim 4, it is characterised in that received described from controller from the master controller After the upgrade request order of two level ROMPaq, methods described also includes:
It is described that upgrade command acknowledgement frame is generated according to the upgrade request order of the two level ROMPaq from controller;
It is described to send the upgrade command acknowledgement frame to the master controller from controller, wherein, the master controller is used for The upgrade command acknowledgement frame is forwarded to receive the ROMPaq that the host computer issues to host computer.
A kind of 6. master controller, it is characterised in that including:
Receiving unit, for receiving upgrade request order;
Judging unit, for judge the upgrade request order whether be two level ROMPaq upgrade request order, wherein, institute The upgrade request order for stating two level ROMPaq is for asking the order to upgrading from controller;
Retransmission unit, for when it is the upgrade request order of the two level ROMPaq to judge the upgrade request order, Described be forwarded to from the ROMPaq of controller described is performed into upgrading from controller so as to described from controller;And
Upgrade unit, for judging that the upgrade request order is not the upgrade request order of the two level ROMPaq, Upgrading is performed using the ROMPaq;
Wherein, the ROMPaq includes more frame data, and master controller successively sends each frame data of more frame data To described from controller, and after one frame data of every transmission, reception is described to be believed the upgrade status of the frame data from controller Breath, and judge whether the write-in of the frame data succeeds according to the upgrade status information, and judge described from all of controller Whether ROMPaq, which writes, finishes.
It is 7. a kind of from controller, it is characterised in that including:
Receiving unit, the upgrade request order of the two level ROMPaq of autonomous controller is carried out for receiving, wherein, the two level liter The upgrade request order of level program is that the master controller, which is used to receive, to be risen for asking to the order from controller upgrading Level request command, judges whether the upgrade request order is the upgrade request order of the two level ROMPaq, and judging Go out the upgrade request order that the upgrade request order is not the two level ROMPaq, upgrading is performed to itself program, sentenced When breaking that the upgrade request order be the upgrade request order of the two level ROMPaq, by the upgrading journey from controller Sequence is forwarded to described from controller;And
Upgrade unit, for performing upgrading by the ROMPaq;
Wherein, the ROMPaq includes more frame data, and the frame data that the master controller is sent often are received from controller, raw The upgrade status information of the paired frame data, wherein, whether the upgrade status information is used for write-in of the expression to the frame data Success;And the upgrade status information is sent to the master controller.
A kind of 8. controller upgrade-system, it is characterised in that including host computer, master controller and from controller, wherein,
The host computer is used to send upgrade request order and ROMPaq,
The master controller is used to receive upgrade request order, judges whether the upgrade request order is two level ROMPaq Upgrade request order, when it is the upgrade request order of the two level ROMPaq to judge the upgrade request order, by institute State and be forwarded to from the ROMPaq of controller described from controller, judging that the upgrade request order is not the two level liter The upgrade request order of level program, upgrading is performed to itself program, wherein, the upgrade request order of the two level ROMPaq is For asking to the order from controller upgrading;And
It is described to be used to perform upgrading from the ROMPaq of controller according to described from controller;
Wherein, the ROMPaq includes more frame data, and the master controller is successively by each frame data of more frame data Send to described from controller, and after one frame data of every transmission, receive the upgrading shape from controller to the frame data State information, and judge whether the write-in of the frame data succeeds according to the upgrade status information, and judge described from controller Whether all ROMPaqs, which write, finishes.
CN201510677085.1A 2015-10-16 2015-10-16 Controller upgrade method and system and master controller and from controller Active CN105259806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510677085.1A CN105259806B (en) 2015-10-16 2015-10-16 Controller upgrade method and system and master controller and from controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510677085.1A CN105259806B (en) 2015-10-16 2015-10-16 Controller upgrade method and system and master controller and from controller

Publications (2)

Publication Number Publication Date
CN105259806A CN105259806A (en) 2016-01-20
CN105259806B true CN105259806B (en) 2018-01-23

Family

ID=55099546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510677085.1A Active CN105259806B (en) 2015-10-16 2015-10-16 Controller upgrade method and system and master controller and from controller

Country Status (1)

Country Link
CN (1) CN105259806B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704707A (en) * 2016-04-26 2016-06-22 江苏惠通集团有限责任公司 Slave equipment and air upgrading method thereof
CN107341024B (en) * 2016-04-28 2020-02-14 华为技术有限公司 System upgrading method and system upgrading device
CN107562433B (en) * 2016-06-29 2021-02-09 黄骅市交大思诺科技有限公司 Automatic multiprocessor program updating system and program updating method
CN107729035A (en) * 2017-10-23 2018-02-23 中国第汽车股份有限公司 Distributed battery management system download program and update method
CN108255538B (en) * 2017-12-08 2021-02-09 中国航空工业集团公司成都飞机设计研究所 Method for in-situ loading of second-level controller software on distributed heterogeneous system machine
CN110134419B (en) * 2019-05-20 2023-03-21 深圳市丰巢科技有限公司 System upgrading method, device, equipment and storage medium for double-sided cabinet
CN110045977A (en) * 2019-05-30 2019-07-23 广州小鹏汽车科技有限公司 A kind of Oftware updating method and device
CN111506325A (en) * 2020-03-27 2020-08-07 广州视源电子科技股份有限公司 Firmware upgrading method, system, storage medium and related equipment
CN111475191B (en) * 2020-04-04 2023-06-06 东风越野车有限公司 Automobile controller software upgrading system and method based on multi-core technology
CN112506562B (en) * 2020-12-29 2023-09-26 一汽解放汽车有限公司 Vehicle software upgrading method, system, vehicle and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876910A (en) * 2009-10-28 2010-11-03 创新科存储技术有限公司 Double-controller disk memory array, firmware upgrading method and controller thereof
CN101894052A (en) * 2010-03-04 2010-11-24 成都市华为赛门铁克科技有限公司 Upgrading method, system and controller
CN102457547A (en) * 2010-10-20 2012-05-16 英业达股份有限公司 Upgrading method for storage area network equipment of multiple controllers
CN102646043A (en) * 2012-02-29 2012-08-22 青岛海信移动通信技术股份有限公司 Method and device for upgrading mobile terminal software and mobile terminal
CN103051674A (en) * 2012-11-23 2013-04-17 深圳市航天泰瑞捷电子有限公司 Method and device for remotely upgrading wireless communication module as well as handheld unit (HHU)
CN104407887A (en) * 2014-11-06 2015-03-11 航天科工深圳(集团)有限公司 Method and device for dynamically loading programs of kernel module of embedded type system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970359A (en) * 2012-11-13 2013-03-13 航天科工深圳(集团)有限公司 Remote upgrade method and device based on main and auxiliary equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876910A (en) * 2009-10-28 2010-11-03 创新科存储技术有限公司 Double-controller disk memory array, firmware upgrading method and controller thereof
CN101894052A (en) * 2010-03-04 2010-11-24 成都市华为赛门铁克科技有限公司 Upgrading method, system and controller
CN102457547A (en) * 2010-10-20 2012-05-16 英业达股份有限公司 Upgrading method for storage area network equipment of multiple controllers
CN102646043A (en) * 2012-02-29 2012-08-22 青岛海信移动通信技术股份有限公司 Method and device for upgrading mobile terminal software and mobile terminal
CN103051674A (en) * 2012-11-23 2013-04-17 深圳市航天泰瑞捷电子有限公司 Method and device for remotely upgrading wireless communication module as well as handheld unit (HHU)
CN104407887A (en) * 2014-11-06 2015-03-11 航天科工深圳(集团)有限公司 Method and device for dynamically loading programs of kernel module of embedded type system

Also Published As

Publication number Publication date
CN105259806A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN105259806B (en) Controller upgrade method and system and master controller and from controller
CN104964399B (en) The address distribution method and device of air-conditioning equipment
CN110351378A (en) A kind of control method and system of internet of things equipment
CN110245220A (en) Electronic document signs method, apparatus and server, storage medium
CN108023765A (en) Device firmware upgrade method, apparatus and storage medium
CN112040468B (en) Method, computing device, and computer storage medium for vehicle interaction
CN109895115A (en) A kind of delivery processing method, device, medium and the equipment of service robot
CN106506595A (en) Upgrade method based on point-to-point Internet of Things intelligent Community equipment
US11469951B2 (en) Network-configuration-information generation method and communication device
CN109741142A (en) Order allocation method, Order splitting device, readable storage medium storing program for executing and electronic equipment
CN102375918A (en) Interaction virtual role system between facilities
CN109697090A (en) A kind of method, terminal device and the storage medium of controlling terminal equipment
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN106020898A (en) Software upgrading method and system of multi-processor device
CN105848114B (en) A kind of processing method and mobile terminal of multimedia message
CN110969327B (en) Work order dispatching method, device, system and data processing method
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN107277163B (en) Equipment remote mapping method and device
CN107025131A (en) A kind of method for scheduling task and device
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN110501979A (en) A kind of cluster control method, system and terminal device
CN107608711A (en) Upgrade method, device, system and electronic equipment
WO2023245892A1 (en) Order processing method and system based on handheld terminals, computer device, and medium
CN109858343A (en) A kind of control method based on recognition of face, device and storage medium
CN114115673B (en) Control method of vehicle-mounted screen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant