CN101409641B - System and method for implementing remote download through control module main-standby mode - Google Patents

System and method for implementing remote download through control module main-standby mode Download PDF

Info

Publication number
CN101409641B
CN101409641B CN2008102175132A CN200810217513A CN101409641B CN 101409641 B CN101409641 B CN 101409641B CN 2008102175132 A CN2008102175132 A CN 2008102175132A CN 200810217513 A CN200810217513 A CN 200810217513A CN 101409641 B CN101409641 B CN 101409641B
Authority
CN
China
Prior art keywords
control module
information
download
control
gating
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
CN2008102175132A
Other languages
Chinese (zh)
Other versions
CN101409641A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008102175132A priority Critical patent/CN101409641B/en
Publication of CN101409641A publication Critical patent/CN101409641A/en
Application granted granted Critical
Publication of CN101409641B publication Critical patent/CN101409641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a system for realizing remote downloading by an active/standby mode of a control module and a method thereof. The method comprises the following steps: detecting a fault generated in running state of a master control module, sending out a fault signal, and informing a sub-control module; detecting the running state of the sub-control module to be normal, sending out a normal signal to an arbitration module and the master control module, and applying a control power; sending out a strobe control signal, so that the sub-control module acquires a system control power according to the strobe control signal to run in an application program area and execute downloading information analysis and forwarding operation; running the master control module in a bootstrap program area, updating self application program according to downloading information to realize downloading upgrading. Due to adoption of a mode that one control module runs in the application program area to transmit downloading information, while the other control module runs in the bootstrap program area to complete downloading upgrading; the method overcomes the problem that the bootstrap program can not realize complicated remote downloading owing to space deficiency, thus reducing cost for downloading upgrading and improving timeliness of response.

Description

Realize the system and the method thereof of remote download by the control module main-standby mode
Technical field
The present invention relates to the system and method for remote download, relate in particular to the system and the method thereof that realize remote download by the control module main-standby mode.
Background technology
Along with the development of technology and the raising of people's living standard, electronic products such as increasing Industry Control, medical treatment, communication, consumption are intelligent day by day, the application of embedded system that with microprocessor (MCU) is core is increasingly extensive, these intelligent equipments is managed an emphasis that also becomes Embedded Application.The user can be by the intelligence interface that equipment provided, as serial ports, parallel port, Ethernet interface etc., via transmission channels such as the Internet INTERNET, modem, general packet radio service gprs, low voltage power line carriers, realize " three distant (remote measurement, remote signalling, remote control) " function in network management center; It is configured, manages and monitors.Ethernet interface based on TCP/IP is the development in future direction.
In general, after manufacturer sells embedded device, also to bear corresponding after-sale service.Often have following situation: along with the operation of equipment in various places, defective or the fault do not considered in the time of progressively can exposing a lot of the design; At this time need producer's change software, upgrade; In addition, different users also can propose different demands and change in use, also needs producer to carry out the customization or the upgrading of software.
By going on business user place, the embedded device of selling is carried out software field upgrade and maintenance, obviously can increase the maintenance cost of manufacturer, it is relatively poor to serve promptness simultaneously.When software is upgraded at the scene, may need to realize with professional programmable device or by programming (IAP, In ApplicatonProgramming) in application.Obviously, IAP realizes wanting simple, makes things convenient for manyly.At present, the numerous 8-bit microprocessor MCU popular on market of C8051F, SST89C54, uPSD32, ATMEGA128 or the like possess the built-in FLASH function, and are supported in the IAP that programmes in the application, the field upgrade of very convenient software.
Generally speaking, the 8-bit microprocessor MCU program space is very limited.As the ATMEGA128 of atmel corp, possesses the program space of 128KB; ATMEGA2561 possesses the program space of 256KB; But, support the boot BOOT space of IAP all to have only 8KB.Because boot BOOT space is too little, can't hold complicated protocol stack such as TCP/IP, File Transfer Protocol ZMODEM, therefore, can only support the field download of simple protocol, can't realize remote download by modes such as INTERNET, MODEM.
Therefore, prior art awaits to improve and development.
Summary of the invention
The object of the present invention is to provide the system and the method thereof that realize remote download by the control module main-standby mode, reduce the system maintenance expense, improve the promptness of software download upgrading, realize real remote download quickly and easily.
Technical scheme of the present invention is as follows:
A kind of system by control module Hot Spare realization remote download, wherein, described system comprises: control module, arbitration modules, user's application circuit; Described arbitration modules is connected with described control module, the communication of described user's application circuit respectively;
Described control module comprises again: master control module, from control module wherein, be used for obtaining system's control from control module according to the gating control signal, run on application area, carry out the parsing of remote download backstage and master control intermodule data download information and transmit operation; The master control module is used to run on the boot district, according to described data download information, upgrades self application program, realizes download and upgrade; Described arbitration modules is used for producing the gating control signal control module being carried out the gating arbitration by detecting the control module running status; Described control module is used for carrying out the operation of data download transmission of Information or carries out the remote download updating operation; Described user's application circuit is for system provides corresponding interface circuits.
Described system, wherein, described control module is a microprocessor.
Described system, wherein, described arbitration modules comprises Double Port Random Memory, described Double Port Random Memory is divided into three informations area again: system information district, master control module information district, from the control module information area; Described system information district is used for storing current system information; Described master control module is used for storing the master control module information; Described from control module, be used for storage from control module information.
Described system, wherein, described arbitration modules also comprises two batteries and power supply circuits thereof, described battery is in parallel with external power, forms three road ways to take power.
Described system, wherein, described user's application circuit comprises the remote download interface circuit.
A kind of method by control module Hot Spare realization remote download, its step is as follows:
A, arbitration modules detect master control module running status and produce fault, provide fault-signal, and notify from control module:
B, arbitration modules detect normal from the control module running status, send the operation normal signal from control module to arbitration modules and master control module, and the application system control:
C, arbitration modules obtain system control from control module according to the gating control signal to sending the gating control signal from control module, run on application area, carry out the parsing of remote download backstage and master control intermodule data download information and transmit operation;
D, master control module run on the boot district, according to described data download information, upgrade self application program, realize download and upgrade.
Described method wherein, also comprises after the described D step: master control module application system control, and the system of acquisition control, change application area over to, carry out the remote download backstage with from the parsing of data download information between control module with transmit and operate.
Described method wherein, also comprises after the described D step: describedly abandon system's control from control module, change the boot district over to, according to the remote download backstage and from the data download information between control module, upgrade self application program, the realization download and upgrade.
A kind of system and method thereof that realizes remote download by the control module main-standby mode provided by the invention, its method, owing to adopted from control module and obtained system's control according to the gating control signal, run on application area, carry out the operation of remote download backstage and master control intermodule data download transmission of Information; The master control module runs on the boot district, according to described data download information, upgrade self application program, realize the mode of download and upgrade, overcome prior art, can't realize the problem of complicated remote download owing to boot BOOT insufficient space, reduce the expense of software download upgrading, the promptness of raising response simultaneously, ensured download during, system can operate as normal, has improved system reliability.
Description of drawings
Fig. 1 is a system configuration schematic diagram of the present invention;
Fig. 2 is a dual port RAM storage portions distribution diagram of the present invention;
Fig. 3 is an arbitration modules scheme schematic diagram of the present invention;
Fig. 4 is that principal and subordinate's control module MCU of the present invention realizes remote download operation schematic diagram;
Fig. 5 is a moderator scheme schematic diagram of the present invention;
Fig. 6 is dual port RAM of the present invention, battery feed circuit figure;
Fig. 7 is arbiter circuit figure of the present invention;
Fig. 8 is a control module MCU software program flow chart of the present invention;
Fig. 9 is the control module of the present invention flow chart that downloads.
Embodiment
Be described in further detail below in conjunction with the enforcement of accompanying drawing technical scheme.
Below in conjunction with accompanying drawing each preferred embodiment of the present invention is made a more detailed description.
Core concept of the present invention is that the application space of using MCU is interval big more than boot BOOT, the characteristics that can be competent at the remote download complicated applications, by two MCU main-standby modes, the application program of using a MCU realizes the forwarding of remote download complex protocol and near-end IAP simple protocol, the down operation that another piece MCU carries out.By the battery powered dual port RAM of two-way on the arbitration modules, realize the master control module, preserve and exchange from the high-speed data of control module; By a simple and reliable moderator module, realize the gating of control module; On the software, two principal and subordinate's control modules are worked simultaneously, and swap data is relatively judged, analyze the investigation fault point, ensure that normal trouble-free control module has the control of system.The control module that has system's control, run on application area, enough program spaces are arranged, by the remote download interface circuit, receive data download, by I2C, synchronous serial Peripheral Interface SPI, universal asynchronous reception/internal bus and simple protocols such as dispensing device UART, be delivered to the boot BOOT of another control module; In the boot BOOT of another control module program inside,, upgrade the application program of self by the IAP mode.Vice versa.By the mode of two control module main-standby modes, realize remote download.
Remote download device of the present invention, as shown in Figure 1, it comprises: main control module, from control module, arbitration modules, user's application circuit, described arbitration modules are respectively with described main control module, be connected from the control module communication, and described moderator module also is connected with the communication of described user's application circuit;
Described arbitration modules is used for by detecting the state of two control modules, produce the chip selection signal arbitration wherein a normal control module obtain control, gating, make its formation gating control module, then another control module is gating control module not;
Described user's application circuit comprises: the remote download interface circuit, described remote download interface circuit can be ethernet interface circuit or MODEM interface circuit or the like, it can be placed directly in user's application circuit as required, also can be not in user's application circuit.
Described arbitration modules includes again: arbiter circuit, dual port RAM, battery, power supply circuits; Described user's application circuit also comprises: buffer circuit, ternary buffer circuit;
Described buffer circuit is for all signals that are input to control module provide signalling channel;
Described ternary buffer circuit links to each other with two control modules respectively, also links to each other with described arbitration modules simultaneously.Produce chip selection signal by described arbitration modules and determine described ternary buffer circuit with which control module communication communicates;
The input signal of all control modules enters two control modules simultaneously by buffer circuit; And other outputs, transmitted in both directions signal by ternary buffer circuit, link to each other with two control modules; Ternary buffer circuit, the chip selection signal that is produced by moderator comes gating;
Described control module is used for detecting the amount of information of input, and according to the information of detection information and dual port RAM; Output necessary control amount, and whether these controlled quentity controlled variables can effectively be exported, then the gating signal by arbitration modules determines;
Described arbitration modules is used for detecting the state of two control modules, and produces chip selection signal according to their state, determines which control module to obtain control; Obtain the control module of control, be called the gating control module, its all holding wires can be communicated with user's application circuit, drive output latch simultaneously; An other control module then is gating control module not, and it does not possess the function of control output, but still can detect input signal; At any time carry out the reception control, become the preparation of gating control module;
Described dual port RAM memory space is divided into three parts as shown in Figure 2.First is a system area, is storing the information such as configuration, parameter, control of current system; Second portion is that master control module information storage portions, third part are from control module information storage district; Storing master control module, input Information Monitoring, state, alarm and control output information etc. respectively from control module.Two control modules can both be visited whole address spaces of dual port RAM; Realize information exchange.Two control modules can also realize disposing, the synchronous renewal of control information; Simultaneously, after each control module resets, can very first time reading system district information, upgrade configuration and the parameter information of self automatically.Second and third partial information storage portions can both be by two control module visits; Like this, these two control modules can communicate with each other, and learn all information of own and the other side, can judge conveniently whether self and the other side exist fault, and the possible position of fault existence; And judge decision with this, should put into operation by which control module; Export correct signal and give arbitration modules; Produce final chip selection signal by arbitration modules.
The control output signal has latch function.Like this, even two control modules all break down, the correct situation before the control output signal still can be kept can not produce disorder, can not impact system;
Arbitration modules increases battery and power supply circuits in order to preserve data, adopts two batteries and external power parallel connection, forms three road ways to take power, guarantees that the power supply of dual port RAM and output control lock storage is stable.Simultaneously,, guarantee promptly under power-supply fluctuation or the unusual situation that data is stable in the dual port RAM in order to ensure the normal visit of dual port RAM; Described arbitration modules has also increased nonvolatile random access memory NVRAM controller, still can keep data after the outage, as shown in Figure 3.
Method by control module main-standby mode realization remote download of the present invention, two control module programs are identical, remove and finish necessary business operation, and are further comprising the steps of:
S1, start-up control module, and carry out initialization and self check operation;
Judge that there is not fault in control module; If any fault, send fault-signal to arbitration modules and another control module;
After S2, initialization and self check are passed through, at first, carry out necessary verification, judge whether described system configuration and parameter information be correct from configuration of dual port RAM system information district extraction system and parameter information; S3, correct when described system configuration and parameter information then is updated to it in control module;
When described system configuration and parameter information mistake, then in the inner memory of control module, read the information of self preserving; Through after the identical verification, dual port RAM system area information is upgraded.For most Embedded Application, control module has inner memory, avoids power down to lose important information;
S4, in case of necessity takes out master control module in the dual port RAM, from control module information storage district information, guarantees to obtain continuous correct information, and the switching because of control module does not cause the information fluctuation;
S5, the current control module state of detection, if current control module is the master control module, then described current control module is promptly sent system's normal signal " MAST_OK " from the control module to arbitration modules and another control module, and regularly send run signal " MAST_RUN ", show that running software is normal;
S6, master control module regularly read dual port RAM system area information, according to configuration of reading and parameter information, system are monitored and control; And the information of a monitoring and control is saved in master control module information storage portions.Regularly read simultaneously content from control module information storage district; And with the master control module, compare from control module information storage district information, if the master control module failure just sends system failure signal " MAST_ERROR ", notice is from control module.
S7, from control module, regularly read dual port RAM system area information, according to configuration that reads and parameter information, system is monitored and controls; And handle is monitored and control information is saved in from control module information storage district.Regularly read master control module information storage portions information; And contrast master control module, from control module information storage district information, if from the control module system failure, then send system failure signal " SLAVE_ERROR "; Otherwise, send system's normal signal " SLAVE_OK ";
S8, find that from control module this is normal from the control module operation, and detect " MAST_ERROR " signal that the master control module is sent when described; Then regularly send run signal " SLAVE_RUN ", show that software normally moves, and application obtains control, adapter system to arbitration modules and master control module;
After S9, arbitration modules detect run signal on the throne " SLAVE_EXT ", system's normal signal " SLAVE_OK " and system's run signal " SLAVE_RUN " from control module, send the gating control signal, the notice whole system, then obtain control, become the gating control module from control module;
S10, have only the gating control module that obtains control, just can carry out write operation dual port RAM system information storage portions.But no matter whether be the gating control module, can carry out read operation whole dual port RAMs space.
The gating control module of S11, acquisition control can be controlled output; But gating no matter whether, control module can receiving inputted signal;
Following steps are the process of principal and subordinate's control module realization remote download, as shown in Figure 4.
S12, become the gating control module operate in application area from control module, finish normal business function.Simultaneously by download interface and protocol stack (as TCP/IP), receiving remote data downloaded;
S13, described from control module according to judging long-range background request download command, triggering becomes not the master control module of gating control module and is transferred to boot BOOT space and moves, and carries out the download and upgrade operation;
S14, the described communication forwarding capability of finishing remote download backstage and described master control intermodule from control module; Such as the forwarding of finishing between complicated TCP/IP, ZMODEM agreement and inner simple SPI, the I2C agreement;
S15, described master control module run on boot BOOT district, downloading the data that receive, by IAP, the application area of self are programmed, and promptly carry out the remote download upgrading;
After S16, described master control module are finished the remote download upgrading, notify described from control module and remote download backstage end down operation; Described primary module jumps to application area simultaneously, normally moves service code;
If the success of the described master control module of S17 download and upgrade can also be notified from control module and remote download backstage, whether also carry out download and upgrade from control module to current.If desired, then master control module application control by gating, forms the gating control module, and abandons control from control module, forms not gating control module;
After S18, the success of described master control module application control, the adapter system; Trigger being transferred to boot BOOT space from control module and moving simultaneously, carry out the download and upgrade operation;
S19, repeating step S12 to S16 promptly finish the download and upgrade operation of another control module.
Adopt the method for the invention and device, compared with prior art, realized the remote download function of MCU fully; And mode by the MCU main-standby mode; Reached the operational effect that does not influence regular traffic in the downloading process; Even download wrong or termination, can also normally move with original version; Possess good practicability and reliability
Present embodiment is to realize that as control module remote download is that example makes a more detailed description with the monitoring unit on the communication power supply.It is core that monitoring unit uses with the microprocessor ATMEGA128 of 8 of atmel corps (8 data lines, 8 bit instructions), is built into the Embedded Application of the monitoring and the control power supply system for communications.Wherein, ATMEGA128 possesses FLASH on the sheet of 128KB, and the EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM of RAM, 4KB on the sheet of 4KB is arranged in addition.FLASH is the program space on the sheet of 128KB, distributes 120KB as application program (APPLICATION) district, and 8KB is as boot BOOT district; Boot BOOT interval can be carried out from programming, i.e. IAP the APPLICATION district.Use two ATMEGA128 to constitute principal and subordinate's control module.Signal all passes through tristate buffer 74LS245/74LS244 realization buffering and isolation between control module and user's application circuit.In user's application circuit, constitute Ethernet interface, realize TCP/IP communication and remote download by RTL8019.
Part and parcel of arbitration modules is exactly a moderator.Moderator produces chip selection signal by detecting the running status of principal and subordinate's control module, decides which control module to obtain control with this.This is an extremely important and crucial part.Therefore, the design of moderator must be extremely reliable.Components and parts are minimum, the simplest, the no software of circuit participates in, and can ensure high reliability.Present embodiment has selected for use a 74HC123 monostable trigger, a 74HC02 gate and several resistance capacitance promptly to finish arbitration, as shown in Figure 5.This moderator possesses master control module priority principle.Have only when from control module (signal " SLAVE_EXT " effective) on the throne, from control module operation normal (signal " SLAVE_OK " is effective) with from the operation normal (signal " SLAVERUN " is effective) of control module software cycle, the three could obtain control from control module after satisfying simultaneously.These three signals all are the signals that sends from control module.In other words, if the master control module produces fault and normal from control module, then obtain control from control module; Otherwise the master control module obtains control.
Simultaneously, also have preservation and the exchange of dual port RAM on the arbitration modules for two control module data; There are battery and NVRAM controller to ensure not obliterated data of power down.As shown in Figure 6, selected for use IDT7006 as dual port RAM here, it provides two cover buses to conduct interviews for two MCU.L_AB, L_DB represent address, the data/address bus of left side MCU (being main control module); RD_L, WR_L, CS7006_L represent the reading and writing and the chip selection signal of left side MCU (being main control module) respectively.In like manner, WR_R, CS7006_R represent writing and chip selection signal of the right MCU (promptly from the control module) respectively.Selected DS14287 as the NVRAM controller, this is in order to guarantee that IDT7006 power down data do not lose.Because IDT7006 possesses two chip selection signals that master and slave control module decoding visit is used; Therefore, need two DS14287.In addition, DS14287 has inner lithium electricity, therefore, does not need external battery again.Simultaneously, two lithium electricity parallel operations, reliability is higher.For lithium electricity in parallel, adopt two ideal diode LTC4411, ideal diode possesses extremely low forward voltage drop.In addition, pass through a Schottky diode parallel operation from external power again.Like this, by three tunnel power takings, ensured the reliable power supply of dual port RAM, as shown in Figure 7.
The output signal of two control modules by the gating control signal, via in parallel behind the driver for isolating, is exported by latch again.Like this, in the time of can guaranteeing two control module simultaneous faultss, the signal of control output can both remain unchanged.
Master and slave control module can be finished certain signals collecting and application such as control, communication simultaneously.All interface signal line, the data of MCU, address, control bus enter arbitration modules and use for dual port RAM; By the gating control signal, be connected to user's application circuit from driver for isolating.
Control module receives from the principal and subordinate's control signal on the arbitration modules, thereby knows that this control module is the master control module, still from control module.Control module also receives from the arbitrating signals on the arbitration modules, thereby knows whether gating of this control module, whether has control.Also have at least three signals that communicate with one another between two control modules, (EXT) promptly on the throne, system normal (OK) and run signal (RUN).Each control module is all given the other side these three signals of self, detects these three signals of the other side simultaneously.All are normal when finding self from control module, and the other side's master control module is when producing fault, then to moderator application control.Moderator detect from these three signals of control module all normal after, then gating is from control module; Otherwise the master control module is by gating.
Two control modules, software program is identical, its software program flow process as shown in Figure 8, concrete steps are as follows:
S801, at first initialization control module MCU and peripheral hardware;
S802, system hardware is carried out self check, judge whether fault of control module MCU;
S803, if MCU break down, then send fault-signal; Do not carry out the software program operation;
S804, the system configuration that reads the dual port RAM system area and parameter information; Carry out information checking,, then upgrade this control module MCU and go up system configuration and the parameter information of oneself preserving if verification is correct.Detect the gating control signal that moderator is sent here, obtain control, become the gating control module, upgrade the system information and the dual port RAM system area information of oneself preserving synchronously, promptly finish write operation system area, otherwise can only be to the read operation of dual port RAM system area;
The information area of S805, read-write Double Port Random Memory RAM, and carry out verification;
S806, the renewal Double Port Random Memory control module information area, the master control module is read and write second data field; Read and write the 3rd data field from control module;
S807, operation service code are promptly monitored and control operation;
S808, read second and third data field information in the dual port RAM, and analyze, judge relatively whether principal and subordinate's control module is normal;
If this control module is normal, send the OK signal, otherwise, send the ERROR signal;
S809, whether be master control module, if then send periodic duty RUN signal if detecting this control module;
If this control module of S810 is from control module, then detects and judge whether the master control module is normal; If the generation fault is sent periodic duty RUN signal from control module, to moderator application control;
Following steps are flow processs that control module realizes remote download, as shown in Figure 9.
L901, gating run on application area (operation ICP/IP protocol) from control module, receive the data from the remote download backstage;
As probably only need the program space about 10KB through the uIP TC/IP protocol stack after reducing.Obviously, even through reducing, the protocol stack space still surpasses the 8KB of boot BOOT space maximum.Therefore, must adopt this method,, realize remote download in application area;
L902, gating are set to client (perhaps server) from control module, resolve the data message that send on the remote download backstage:
When as server, gating is monitored some ports (as 1025 mouthfuls) from control module;
When as client, gating is after the control module operate as normal, and the TCP that is dynamically connected long-range certainly acts on behalf of, and gating is resolved the data that send on the remote download backstage from control module;
The remote download request command that L903, judgement send;
L904, gating by the UART interface, notify not that gating master control module changes boot BOOT district over to from control module, start download;
L905, after gating master control module correctly is not transferred to boot BOOT district, gating the data from Ethernet interface, by the UART interface, is transmitted to not gating master control module from control module; Simultaneously, the data of the passback of gating master control module not by Ethernet interface, are issued the remote download backstage, promptly gating is transmitted remote download backstage and the data download between gating master control module booting program BOOT not from control module;
L906, gating master control module does not run among the boot BOOT, upgrades the application program of self, promptly finishes the download and upgrade operation;
L907, do not select from logical control module finished download after, change application area over to, normal operation;
L908, judge whether gating needs to download from control module;
L909, when gating need download from control module, detect simultaneously not gating master control module operation after the upgrading normal after; Then the gating of upgrading is not abandoned control from control module, becomes not gating from control module, and jumps to boot BOOT district, carries out download and upgrade and operates at this moment, and gating master control module has not obtained control becomes gating master control module, otherwise withdraws from;
Repeating step L906 to L909 promptly finishes the program of another control module and downloads;
Return step L903, the Infinite Cyclic operation.
System and method of the present invention by simple and reliable moderator, in conjunction with the normal operation of software, realizes that the operation of two control module MCU is switched on hardware; The application space of using control module MCU on the software is interval big more than boot BOOT, the characteristics that can be competent at the remote download complicated applications, mode by two control module MCU main-standby modes, the application program of using a control module MCU is finished the forwarding of parsing of remote download complex protocol and near-end IAP simple protocol, realizes the download of another piece control module MCU.Vice versa.Intersect the mode of upgrading by two control modules, finally realized remote download dexterously, simultaneously, ensured download during, system can operate as normal, has improved system reliability.
Should be understood that the description of above-mentioned specific embodiment is comparatively detailed, can not therefore be interpreted as the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.

Claims (8)

1. one kind is passed through the system that the control module Hot Spare is realized remote download, and wherein, described system comprises: control module, arbitration modules, user's application circuit; Described arbitration modules is connected with described control module, the communication of described user's application circuit respectively;
Described control module comprises: master control module, from control module, wherein, be used for obtaining system's control from control module, run on application area, carry out the parsing of remote download backstage and master control intermodule data download information and transmit operation according to the gating control signal; The master control module is used to run on the boot district, according to described data download information, upgrades self application program, realizes download and upgrade;
Described arbitration modules is used for producing the gating control signal control module being carried out the gating arbitration by detecting the control module running status;
Described control module is used for carrying out the operation of data download transmission of Information or carries out the remote download updating operation;
Described user's application circuit is for system provides corresponding interface circuits.
2. system according to claim 1 is characterized in that, described control module is a microprocessor.
3. system according to claim 1 is characterized in that described arbitration modules comprises Double Port Random Memory, and described Double Port Random Memory is divided into three informations area again: system information district, master control module information district, from the control module information area;
Described system information district is used for storing current system information;
Described master control module is used for storing the master control module information;
Described from control module, be used for storage from control module information.
4. system according to claim 1 is characterized in that, described arbitration modules also comprises two batteries and power supply circuits thereof, and in parallel with external power, forms three road ways to take power.
5. system according to claim 1 is characterized in that, described user's application circuit comprises the remote download interface circuit.
6. one kind is passed through the method that the control module Hot Spare is realized remote download, and its step is as follows:
A, arbitration modules detect master control module running status and produce fault, provide fault-signal, and notice is from control module;
B, arbitration modules detect normal from the control module running status, send the operation normal signal from control module to arbitration modules and master control module, and the application system control;
C, arbitration modules obtain system control from control module according to the gating control signal to sending the gating control signal from control module, run on application area, carry out the parsing of remote download backstage and master control intermodule data download information and transmit operation;
D, master control module run on the boot district, according to described data download information, upgrade self application program, realize download and upgrade.
7. method according to claim 6, it is characterized in that, also comprise after the described D step: master control module application system control, and the system of acquisition control, change application area over to, carry out the remote download backstage with from the parsing of data download information between control module with transmit and operate.
8. method according to claim 7 is characterized in that, also comprises after the described D step: describedly abandon system's control from control module, change the boot district over to, according to the remote download backstage and from the data download information between control module, upgrade self application program, realize download and upgrade.
CN2008102175132A 2008-11-04 2008-11-04 System and method for implementing remote download through control module main-standby mode Active CN101409641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102175132A CN101409641B (en) 2008-11-04 2008-11-04 System and method for implementing remote download through control module main-standby mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102175132A CN101409641B (en) 2008-11-04 2008-11-04 System and method for implementing remote download through control module main-standby mode

Publications (2)

Publication Number Publication Date
CN101409641A CN101409641A (en) 2009-04-15
CN101409641B true CN101409641B (en) 2011-04-06

Family

ID=40572445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102175132A Active CN101409641B (en) 2008-11-04 2008-11-04 System and method for implementing remote download through control module main-standby mode

Country Status (1)

Country Link
CN (1) CN101409641B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677871A (en) * 2012-09-10 2014-03-26 上海达实联欣科技发展有限公司 Online upgrading system and method
CN106210989A (en) * 2016-08-29 2016-12-07 天津渤海奥立电子有限公司 Audio frequency tandem module
CN108762784A (en) * 2018-05-28 2018-11-06 青岛海信网络科技股份有限公司 A kind of traffic signal controlling machine remote upgrade method and device
CN111831324A (en) * 2020-05-31 2020-10-27 中车永济电机有限公司 Rail transit control device parameter configuration method based on functional safety
CN112416387A (en) * 2020-11-05 2021-02-26 东莞欧陆通电子有限公司 Power supply system and power supply system upgrading method
CN114655142B (en) * 2022-04-20 2023-12-22 天津经纬恒润科技有限公司 double-MCU control system and automobile

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996254A (en) * 2006-01-03 2007-07-11 国际商业机器公司 Apparatus, system, and method for firmware update of redundant controllers

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996254A (en) * 2006-01-03 2007-07-11 国际商业机器公司 Apparatus, system, and method for firmware update of redundant controllers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KR10-2004-0058427A 2004.07.05

Also Published As

Publication number Publication date
CN101409641A (en) 2009-04-15

Similar Documents

Publication Publication Date Title
CN101409641B (en) System and method for implementing remote download through control module main-standby mode
CN101296065B (en) Method and system for improving reliability of redundancy main station
US9450911B2 (en) System and method for managing ethernet communication network for use in vehicle
US6282668B1 (en) Data bus system for motor vehicles
CN103559053B (en) Board system and FPGA (Field Programmable Logic Array) online update method of communication interface cards
CN103676816A (en) System and method for controlling an integrated network of a vehicle
US20140136829A1 (en) Method, Network Card, and Hard Disk Card for Accessing Shut-Down Hard Disk
CN104113592A (en) Local micro server and vehicle-mounted service information providing system and method
US20150192983A1 (en) Bus microcontroller, bus node circuit and electronic control unit for a vehicle
CN113347273B (en) Vehicle-mounted Ethernet data conversion method, device, equipment and medium
CN109787892A (en) General hybrid vehicle gateway controller
CN108255754A (en) A kind of I3C main equipments of compatible I2C, I3C master-slave equipments communication system and method
CN110569207A (en) Interface multiplexing device and vehicle-mounted equipment
WO2014023247A1 (en) Embedded device and method for control data communication based on the device
CN114839909A (en) Low-power-consumption control system and interaction method in low-power-consumption control system
JP2008506204A (en) Apparatus and method for exchanging data between a plurality of data buses
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN106657115A (en) Frequency converter control system and protocol conversion card thereof
CN101127642B (en) Serial interface management device and method for communication system devices
CN110687910A (en) Equipment control method and device, storage medium and lower computer
US11650258B2 (en) System for identifying controller causing electrical discharge of vehicle
JP4660970B2 (en) Data communication method and data communication system
CN115473749A (en) Method and circuit for realizing network card bypass function based on single chip microcomputer control
CN106664212B (en) Switch unit, Ethernet network and method for activating components in an Ethernet network
CN112636779A (en) Communication method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant