CN103761131B - A kind of many board part automatic update methods and system based on memory sharing - Google Patents

A kind of many board part automatic update methods and system based on memory sharing Download PDF

Info

Publication number
CN103761131B
CN103761131B CN201410034806.2A CN201410034806A CN103761131B CN 103761131 B CN103761131 B CN 103761131B CN 201410034806 A CN201410034806 A CN 201410034806A CN 103761131 B CN103761131 B CN 103761131B
Authority
CN
China
Prior art keywords
master control
control board
main frame
board
card
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
CN201410034806.2A
Other languages
Chinese (zh)
Other versions
CN103761131A (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.)
Zhejiang Zhonghe Technology Co Ltd
Original Assignee
Zhejiang Zhonghe Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Zhonghe Technology Co Ltd filed Critical Zhejiang Zhonghe Technology Co Ltd
Priority to CN201410034806.2A priority Critical patent/CN103761131B/en
Publication of CN103761131A publication Critical patent/CN103761131A/en
Application granted granted Critical
Publication of CN103761131B publication Critical patent/CN103761131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of many board part automatic update methods based on memory sharing and system, this method comprises the following steps:Component update main frame inspection is stored in the original more new file in the component update main frame, it is determined that more new file and need to correspondingly update the master control board card and/or slave board of part;The component update main frame sends more new file to master control board card, and master control board card carries out component update, or, master control board card sends more new file, slave board to slave board by shared drive and carries out component update.The present invention can realize the component update automation of multi-board embedded system, reduce manual intervention.

Description

A kind of many board part automatic update methods and system based on memory sharing
Technical field
The present invention relates to multi-board embedded system, debugging, the production of many board equipment especially with shared drive With the part automatic update method and system in escalation process.
Background technology
Multi-board embedded system is widely used in the industries such as Industry Control, track traffic.Current many board systems Master control board card and file or software on each slave board etc. update, and are to master control board card by staff by the way of Or slave board carries out renewal one by one and handled, it is impossible to automatically updating for board is realized, so more row process is cumbersome time-consuming.
The content of the invention
It is an object of the invention to provide a kind of many board part automatic update methods based on memory sharing and system, solve The problem of self-winding parts of master control board card and each slave board update.
In order to solve the above-mentioned technical problem, the present invention is adopted the following technical scheme that:A kind of many boards based on memory sharing Part automatic update method, this method comprises the following steps:
S1:Component update main frame inspection is stored in the original more new file in the component update main frame, it is determined that updating text Part and the master control board card and/or slave board that need to correspondingly update part;
S2:The component update main frame sends more new file to master control board card, and master control board card carries out component update, or Person, master control board card sends more new file, slave board to slave board by shared drive and carries out component update.
It is preferred that, board state inquiry and conversion method are also included between step S1 and step S2, its step is:
1)The component update main frame sends querying command to master control board card, and master control board card is by the master control borad in shared drive The board state feedback of the information of card and each slave board gives the component update main frame;
2)The component update main frame determines whether in running order master control borad according to the board state information Card and/or slave board, if so, then ordering the master control board card and/or slave board to enter more new state and be fed into more The confirmation of new state;
3)The component update main frame is received after the confirmation, performs described step S2.
It is preferred that, in step 2) in working condition change to also include starting during more new state be located at mainboard card and it is each from Starting state on machine board checks module, when the starting state checks that module starts, and each starting state checks mould Block judges that system is to need to enter working condition or more new state;When system need to enter more new state, system enables renewal Mirror image.
It is preferred that, when each system of the mainboard card and each slave board need to enter working condition, system enables work Make mirror image, system enable the working lens as when also the working lens picture is verified, if check results mistake, is directly opened The dynamic mirror image that updates enters more new state.
It is preferred that, in step 3)In, the component update main frame is received after the confirmation, and a more new file is sent out Delivering to master control board card is used for after the master control board card and/or slave board progress component update, execution of step S2, feeds back to The component update main frame, which updates, completes information, and next more new file is sent to in requisition for more by the component update main frame The master control board card and/or slave board of new part, until the master control board card and/or slave board that need to update update completion.
It is preferred that, in step 3)In, the component update main frame is received after the confirmation, and multiple more new files are sent out Delivering to master control board card is used for after the master control board card and/or slave board progress component update, execution of step S2, master control borad Card feeds back to the component update main frame and updates completion information.
It is preferred that, in step s 2, the component update main frame also sends checking file while more new file is sent, After S2 steps, in addition to checking procedure S3:The mainboard card and/or slave board are verified by the verification file, The more new file in the file system is deleted if check results mistake, the mainboard card is sent to portion by status of fail is updated Part updates main frame.
A kind of many board part automatic update systems based on memory sharing, including:
Master control board card;
Interconnection bus, the master control board card is connected on the interconnection bus;
At least one slave board, is connected on the interconnection bus, is in communication with each other with the master control board card;
Shared drive, the master control board card accesses the shared drive with the slave board by the interconnection bus; And
Component update main frame, with the master control board card.
After adopting the above technical scheme, the present invention has following outstanding advantages:.
A kind of many board part automatic update methods and system based on memory sharing of the present invention, can realize many boards The component update automation of embedded system, component update main frame actively checks whether each board needs renewal, and will update text Part is sent to the board for needing to update for each board progress component update, reduces manual intervention.
Further, the present invention can realize that each board component in parallel updates, and component update module is by multiple more new files Send into board and update simultaneously simultaneously, master control board card can be directly updated, and slave board is obtained from shared drive More new file is updated, so that the component update of polylith board can be performed parallel, greatly reduces multi-board embedded system Component update main frame in the update time of system, the present invention also sends verification file when sending more new file simultaneously, is updating Verified after finishing, reduce the error rate updated.
Brief description of the drawings
Fig. 1 is a kind of structural frames of many board part automatic update systems based on memory sharing of the embodiment of the present invention Figure;
Fig. 2 is a kind of structural representation of shared drive of the embodiment of the present invention;
Fig. 3 is a kind of flow chart of many board part automatic update methods based on memory sharing of the embodiment of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention Embodiment be described in detail.
Many details are elaborated in the following description to fully understand the present invention.But the present invention can be with Much it is different from other manner described here to implement, those skilled in the art can be in the situation without prejudice to intension of the present invention Under do similar popularization, therefore the present invention is not limited to the specific embodiments disclosed below.
As shown in figure 1, many board part automatic update systems based on memory sharing of the present embodiment include:Master control board card 2;Interconnection bus 5, master control board card 2 is connected on interconnection bus 5;Three slave boards 3, are both connected on interconnection bus 5, with master Control board 2 is in communication with each other;Shared drive 4, master control board card 2 accesses the shared drive with slave board 3 by interconnection bus 5 4;And component update main frame 1, and the network interconnection of master control board card 2, the network can for Ethernet, WLAN or Other suitable networks.It is appreciated that slave board 3 is specially three in the present embodiment, but it is not intended as limitation, this area skill Art personnel can select the number of slave board 3 according to condition.
Fig. 2 shows the structure of shared drive 4 in the embodiment of the present invention, including the board state information area 9, file transmission region 10.With control update module 6, for master control board card 2 and each in the present embodiment combination Fig. 1 and Fig. 2, component update main frame 1 The more new file 7 of slave board 3, more new file 7 are stored in under the file of board name nominating, the component update main frame 1 For the master control board card 2 and/or slave board 3 being updated according to original more new file determination more new file 7 and needs, institute Stating control update module 6 is used for the board state letter that order master control board card 2 feeds back the master control board card 2 and each slave board 3 Cease, more new state is entered according to the in running order master control board card 2 of the board state message command and/or slave board 3 And be fed into the confirmation information of more new state, more new file hair 7 is delivered to the master control board card 2 and/or slave for needing to be updated Board 3, the master control board card 2 and each slave board 3 carry out component update, the storage of board state information according to more new file 7 The board state information area in shared drive 4.
With continued reference to Fig. 1, also there is verification file 8, the component update main frame 1 is simultaneously by institute in component update main frame 1 State more new file 7 and verification file 8 sends the master control board card 2 and/or slave board 3 being updated to needs, the master control board card 2 And/or slave board 3 is verified after component update by the verification file 8, deletes described if check results mistake More new file, the master control board card 2 is sent to component update main frame 1 by status of fail is updated, or, the slave board 3 leads to Cross master control board card 2 and be sent to component update main frame 1 by status of fail is updated.
Include in master control board card 2 and each slave board 3:Starting state checks module 11, the starting state inspection Module 11 is located in the promoter region of each board, when the master control board card 2 and each slave board 3 start, starting state inspection Module 11 judges that board system enters working condition or more new state;Working lens realize system as 12 during system worked well The mirror image of function, when system need to enter working condition, system enables the working lens as 12;Mirror image 13 is updated, system is carried out The mirror image of more New function is realized during component update, when system need to enter more new state, system enables the renewal mirror image 13.
In order to avoid unsuccessfully causing equipment not work because of device upgrade, in each of master control board card 2 and each slave board 3 Individual system need to enter working condition and when enabling the working lens as 12, also the working lens be verified as 12, if verifying As a result mistake, then directly initiate renewal mirror image 13 and enter more new state.The embodiment of the present invention is for embedded single board increase Starting state checks the renewal mirror image 13 of module 11 and backup, after upgrading failure or production file system are destroyed, is System remains able to enter more new state, improves the maintainability of system.
Referring to Fig. 3, preferably, a kind of many board part sides of automatically updating based on memory sharing of the embodiment of the present invention Method comprises the following steps:
S1:Component update main frame inspection is stored in the original more new file in the component update main frame, it is determined that updating text Part and the master control board card and/or slave board that need to correspondingly update part;
S2:The component update main frame sends querying command to master control board card and inquires about master control board card and each slave board Board state information, master control board card is received after the querying command, the board state feedback of the information that will be stored in shared drive To the component update main frame;
S3:The component update main frame determines whether in running order master control borad according to the board state information Card and/or slave board, if so, then ordering the master control board card and/or slave board to enter more new state, and are fed into more The confirmation of new state;
S4:The component update main frame is received after the confirmation, and more new file is sent to master control board card for institute State master control board card and/or slave board carries out component update;
S5:When master control board card needs to be updated, the master control board card receives and component update is carried out after more new file, and will More new file writes the file system of the mainboard card, when each slave board needs to be updated, and the master control board card is by institute State more new file to store into the shared drive, slave board obtains more new file from the shared drive and carries out part more Newly, and by more new file the file system from board is write.
Further illustrated with reference to Fig. 1 to Fig. 3, in the present embodiment, due to having last time master control borad in component update main frame 1 Block 2 and each slave board 3 carry out the more new file 7 and verification file 8 of component update, and more new file 7 and verification file 8 To be stored in so that under the file of board name nominating, therefore, component update main frame 1 checks last time when needing to update More new file 7, so that it is determined that this needs the master control board card 2 and/or slave board 6 updated, and prepare this again More new file 7, verification file 8 includes each more check value of new file 7, version information and is stored in board file system On position;Component update main frame 1 sends querying command to master control board card 2, master control borad 2 receives querying command after being ready to The board state information of master control board card 2 and each slave board 3 is inquired about into the board state information area 9 of shared drive 4 afterwards, and It is fed back to component update main frame 1;Board state information that component update main frame 1 feeds back according to master control board card 2 determines to be It is no to have in running order master control board card 2 and/or slave board 3, if there is board in running order, component update main frame 1 sends the order for allowing master control board card 2 and/or slave board 3 to enter more new state, at master control board card 2 and/or slave board 3 When working condition, querying command and enter renewal status command that a receiving member renewal main frame 1 is sent, when corresponding board Receive into after the order of more new state, just into more new state, and be fed into the confirmation information of more new state, master control board card 2 wait the more newer command of component update main frame 1, and slave board 3 waits the order of master control board card 2;Component update main frame 1 is received respectively After the confirmation of board, a more new file 7 and verification file 8 are sent to master control board card 2;When master control board card 2 need by During renewal, master control board card 2 receives and just carries out component update to oneself after more new file 7, and more new file 7 will write the master control The file system of board 2, master control board card 2 checks verification file 8, deletes and is stored in file system more if check results mistake New file 7, and component update main frame 1 is sent to by status of fail is updated, when each slave board 3 needs to be updated, master control Board 2 more new file 7 will be stored into shared drive 4, and slave board 3 obtains more new file from shared drive 4 and carries out part Update, and more new file 7 is write into the file system of slave board 3, slave board 3 checks verification file 8, if check results are wrong The more new file 7 being stored in file system is then deleted by mistake, and will update status of fail, and component update is sent to by master control board card 2 Main frame 1, if verifying successfully will be updated successfully state is sent to component update main frame 1 by master control board card 2;Component update main frame 1 is sent to next more new file 7 to the master control board card 2 and/or slave board 3 in requisition for update section part, master control board card 2 And/or slave board 3 proceeds to update, until the master control board card and/or slave board that need to update update completion.
As another optional embodiment, the more new state that has been enter into of each board feedback is received in component update main frame After confirmation, component update main frame disposably sends multiple more new files to master control board card, if 1 wherein has master control board card 2 When needing to be updated, master control board card 2 receives and just writes institute to oneself carrying out component update, and by more new file after more new file 7 The file system of master control board card 2 is stated, master control board card 2 checks verification file 8, deleted if check results mistake and be stored in file system In more new file 7, and by update status of fail be sent to component update main frame 1, meanwhile, master control board card 2 by remaining need by The more new file 7 of each slave board 3 updated is stored into shared drive 4, and slave board 3 is obtained more from shared drive 4 New file carries out component update, and more new file 7 is write into the file system of slave board 3, and slave board 3, which is checked, verifies file 8, the more new file 7 being stored in file system is deleted if check results mistake, and renewal status of fail is passed through into master control board card 2 Component update main frame 1 is sent to, the state that is updated successfully of acquisition is sent to part more by master control board card 2 with updating status of fail New main frame 1, it is ensured that overall monitor of the component update main frame 1 for board more new state.
As for the present invention, but the present invention is not intended to limit, term " part " can be holding for file, software or software OK;The verification mode of the present invention is preferably MD5 verification modes or other disclosures and suitable verification mode.In addition, can With understand, shared drive 4 be used for store board state information and and provide needed for more new file transmission function, interconnection 5 The function of accessing mutually and access shared drive 4 is provided for each board, it is logical between master control board card 2 and slave board 3 Letter, can pass through shared drive 4, can also be without shared drive 4.
In embodiments of the present invention, the file system of each board is divided into promoter region, working document area, backup file area, The relative program and data of promoter region memory plane card start-up, the mirror used during production file system area storage board normal work Picture, program and associated documents, backup file system area memory plane are stuck in the mirror image and associated documents used during more new state.It is being When system carries out judging to enter working condition or more new state, working lens picture and the backup file area in working document area are loaded respectively Renewal mirror image.Because when updating, each board is likely to be at working condition, thus needs to switch to more new state, the present invention Embodiment carries out the switching of state by way of each board is restarted.
In addition to above preferred embodiment, the present invention also has other embodiments, and those skilled in the art can be according to this Invention is variously modified and deformed, and without departing from the spirit of the present invention, all should belong to appended claims of the present invention and determine The scope of justice.

Claims (4)

1. a kind of many board part automatic update methods based on memory sharing, it is characterised in that this method comprises the following steps:
S1:Component update main frame inspection is stored in the original more new file in the component update main frame, it is determined that more new file and Correspondence need to update the master control board card and/or slave board of part;
S2:The component update main frame sends more new file to master control board card, and master control board card carries out component update, or, it is main Control board and more new file, slave board progress component update are sent to slave board by shared drive;
Also include board state inquiry and conversion method between step S1 and step S2, its step is:
1) the component update main frame sends querying command to master control board card, master control board card by the master control board card in shared drive and The board state feedback of the information of each slave board gives the component update main frame;
2) the component update main frame according to the board state information determine whether in running order master control board card and/ Or slave board, if so, then ordering the master control board card and/or slave board to enter more new state and be fed into more new state Confirmation;
3) the component update main frame is received after the confirmation, performs described step S2;
In step 2) in working condition change to during more new state also include start be located at mainboard card and each slave board on Starting state checks module, when the starting state checks that module starts, and each starting state checks that module judges system It is to need to enter working condition or more new state;When system need to enter more new state, system enables renewal mirror image;
When each system of the mainboard card and each slave board need to enter working condition, system enables working lens picture, system Enable the working lens as when also the working lens picture is verified, if check results mistake, directly initiate renewal mirror image Into more new state.
2. many board part automatic update methods according to claim 1 based on memory sharing, it is characterised in that in step It is rapid 3) in, the component update main frame is received after the confirmation, by a more new file send to master control board card be used for institute State after master control board card and/or slave board progress component update, execution of step S2, feed back to the component update main frame more New to complete information, next more new file is sent to the master control board card in requisition for update section part by the component update main frame And/or slave board, until the master control board card and/or slave board that need to update update completion.
3. many board part automatic update methods according to claim 1 based on memory sharing, it is characterised in that in step It is rapid 3) in, the component update main frame is received after the confirmation, by multiple more new files send to master control board card be used for institute State after master control board card and/or slave board progress component update, execution of step S2, master control board card feeds back to the part more New main frame, which updates, completes information.
4. many board part automatic update methods according to claim 1 based on memory sharing, it is characterised in that:In step In rapid S2, the component update main frame also sends checking file while more new file is sent, after S2 steps, in addition to school Test step S3:The mainboard card and/or slave board are verified by verifying file, and file is deleted if check results mistake More new file in system, the mainboard card is sent to component update main frame by status of fail is updated.
CN201410034806.2A 2014-01-24 2014-01-24 A kind of many board part automatic update methods and system based on memory sharing Active CN103761131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410034806.2A CN103761131B (en) 2014-01-24 2014-01-24 A kind of many board part automatic update methods and system based on memory sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410034806.2A CN103761131B (en) 2014-01-24 2014-01-24 A kind of many board part automatic update methods and system based on memory sharing

Publications (2)

Publication Number Publication Date
CN103761131A CN103761131A (en) 2014-04-30
CN103761131B true CN103761131B (en) 2017-10-20

Family

ID=50528375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410034806.2A Active CN103761131B (en) 2014-01-24 2014-01-24 A kind of many board part automatic update methods and system based on memory sharing

Country Status (1)

Country Link
CN (1) CN103761131B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094899A (en) * 2015-07-09 2015-11-25 许继集团有限公司 Distributed-type intelligent apparatus sub-module program automatic configuration method
CN106851676A (en) * 2015-12-07 2017-06-13 中兴通讯股份有限公司 A kind of method and device of quick startup base station
CN107703473A (en) * 2017-10-16 2018-02-16 许继电气股份有限公司 A kind of automatic detection device of direct current transportation OPTODYN modules
CN109165181A (en) * 2018-08-07 2019-01-08 南京翼辉信息技术有限公司 A kind of more boards are from configuration and task from compartment system and method
CN110874225B (en) * 2018-08-29 2023-05-02 杭州海康威视数字技术股份有限公司 Data verification method and device, embedded equipment and storage medium
CN109471779A (en) * 2018-11-21 2019-03-15 上海闻泰信息技术有限公司 Board state monitoring method, micro-control unit, server and storage medium
CN111367549B (en) * 2020-02-29 2023-09-26 惠州华阳通用电子有限公司 Dual-system and upgrading method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164363A (en) * 2011-04-14 2011-08-24 新邮通信设备有限公司 Base station version updating realization method and base station
CN103533027A (en) * 2013-09-22 2014-01-22 瑞斯康达科技发展股份有限公司 Distributed equipment and software version compatibility maintenance method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164363A (en) * 2011-04-14 2011-08-24 新邮通信设备有限公司 Base station version updating realization method and base station
CN103533027A (en) * 2013-09-22 2014-01-22 瑞斯康达科技发展股份有限公司 Distributed equipment and software version compatibility maintenance method and system

Also Published As

Publication number Publication date
CN103761131A (en) 2014-04-30

Similar Documents

Publication Publication Date Title
CN103761131B (en) A kind of many board part automatic update methods and system based on memory sharing
CN111582827B (en) Approval process control method and system
CN104579719B (en) A kind of upgrade method and system, host computer and optical module of firmware
JP4770982B2 (en) Hot replacement method for storage system, storage device and firmware
US8301935B2 (en) Distributed batch runner
US20030051235A1 (en) Method and apparatus for verifying and analyzing computer software installation
CN104718536A (en) Non-disruptive controller replacement in network storage systems
US20140074261A1 (en) Rack server system and method for automatically managing rack configuration information
CN114880002B (en) OTA data flashing method and system
CN103024782A (en) Base station software version management method and system
WO2016116013A1 (en) Software upgrade method and system
CN106020898A (en) Software upgrading method and system of multi-processor device
CN110958139B (en) Network control method, orchestrator, controller, and computer-readable storage medium
CN106555743B (en) A kind of motor compressor drive firmware update method and system
CN113810216A (en) Cluster fault switching method and device and electronic equipment
JP5945044B2 (en) Electronic control device for automobile, writing system for electronic control device for automobile, and writing method of control program for vehicle control
CN116225832A (en) Automatic detection method, storage medium and equipment for automatic deployment of database cluster
EP3316518A1 (en) Method and device for upgrading virtual network element, and computer storage medium
CN113656088B (en) Self-service management method, device and storage medium for internet data center server
CN110069272A (en) The method and electronic equipment of logical file upgrading
US10459816B2 (en) Communication setting notification apparatus
CN100502318C (en) Method for detecting compatibility of network element equipment accessing to network management system and network management system
CN110365764B (en) Data copying device for computing cluster
CN110764789B (en) Process control method and device, storage medium and electronic equipment
JP2016170813A (en) Electronic controller for automatic vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District, Hangzhou, Jianghan Road, No. 1785, Shuangcheng international building, floor 17, No. 4

Applicant after: ZHEJIANG ZHONGHE SCIENCE & TECHNOLOGY CO., LTD.

Address before: 310000 Hangzhou science and Technology Park, high tech Zone, Zhejiang venture Road, No. 8

Applicant before: Zhejiang Zhonghe Electromechanical Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant