CN109491679A - A kind of CPLD online upgrading method and device - Google Patents
A kind of CPLD online upgrading method and device Download PDFInfo
- Publication number
- CN109491679A CN109491679A CN201710806974.2A CN201710806974A CN109491679A CN 109491679 A CN109491679 A CN 109491679A CN 201710806974 A CN201710806974 A CN 201710806974A CN 109491679 A CN109491679 A CN 109491679A
- Authority
- CN
- China
- Prior art keywords
- cpld
- file
- board
- online upgrading
- upgraded
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present invention discloses a kind of method and device of CPLD online upgrading, is related to field of communication technology, to solve to take considerable time due to assigning different command for different boards, the problem for causing the efficiency of CPLD file online upgrading too low.This method comprises: board obtains order, board obtains CPLD online upgrading file set, board is according to mark, obtain CPLD online upgrading file corresponding with CPLD file to be upgraded in CPLD online upgrading file set, if the information that the CPLD for carrying board in header information file to be upgraded needs to upgrade, board is to CPLD document upgrading to be upgraded.Scheme provided in an embodiment of the present invention is suitable for more board rack systems.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of CPLD online upgrading method and devices.
Background technique
With the development of communication technology, programmable logic device (Complex Programmable Logic Device,
CPLD) application of technology is also more and more extensive.For example, CPLD technology can be applied in more board interchangers.In order to solve
The various problems continuously emerged in CPLD technology practical application, in the entire application process of CPLD technology, especially in CPLD
The stage is debugged in the research and development of program, and the update of CPLD program is inevitable.
Currently, the mode for updating CPLD program in more board interchangers is varied, wherein for online upgrading CPLD
For the mode of file (i.e. the update of CPLD program), process is realized are as follows: user issues an order on master control board card, to master control
Fully or partially board in board and business board carries out CPLD file online upgrading.Since every board corresponds to master control borad
Assigned on card one order, and the contents of every two orders are not identical, therefore, when there is multiple to need to carry out CPLD document upgrading
Board when, user just needs to assigning a plurality of different order on master control board card.With the board for needing to carry out online upgrading
Quantity is significantly increased, and also more orders is assigned with regard to needing to take considerable time, to reduce CPLD file online upgrading
Efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of CPLD online upgrading method and device, for solving because assigning for different boards
Different command and take considerable time, the problem for causing the efficiency of CPLD file online upgrading too low.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
A kind of method of CPLD file online upgrading, which comprises
Board, which obtains, triggers the order that the board carries out programmable logic device (CPLD) document upgrading;
The board obtains CPLD online upgrading file set, and the CPLD online upgrading file set includes at least two
CPLD online upgrading file, the CPLD online upgrading file carry header information, and the header information includes for searching
The mark of CPLD online upgrading file, and the information whether CPLD file to be upgraded for determining the board needs to upgrade;
The board according to the mark, obtain in the CPLD online upgrading file set with CPLD text to be upgraded
The corresponding CPLD online upgrading file of part;
If the information that the CPLD for carrying the board in header information file to be upgraded needs to upgrade, the plate
Card is to CPLD document upgrading to be upgraded.
A kind of device of CPLD file online upgrading, described device include:
Module is obtained, the order of programmable logic device (CPLD) document upgrading is carried out for obtaining trigger board card;
The acquisition module is also used to obtain CPLD online upgrading file set, the CPLD online upgrading file set
Including at least two CPLD online upgrading files, the CPLD online upgrading file carries header information, the header information
Whether the CPLD file to be upgraded including the mark for searching CPLD online upgrading file, and for determining the board needs
The information of upgrading;
The acquisition module, is also used to according to the mark, obtain in the CPLD online upgrading file set with it is described
The corresponding CPLD online upgrading file of CPLD file to be upgraded;
Upgraded module, if the CPLD for carrying the board in the header information obtained for the acquisition module is waited for
Upgrade file needs the information upgraded, then to CPLD document upgrading to be upgraded.
The embodiment of the present invention provides a kind of CPLD online upgrading method and device, and compared with prior art, the present invention is implemented
In example, the corresponding CPLD online upgrading file group of all boards is combined into a CPLD online upgrading file set first, then enable
The board for needing to carry out CPLD file online upgrading obtains order, enables the board for getting the order obtain CPLD later and rises online
Grade file set, then enable the board judge whether the CPLD file to be upgraded on the board needs to upgrade, and when needing to upgrade,
Carry out the online document upgrading of CPLD.In the embodiment of the present invention, no matter the CPLD online upgrading file set corresponds to how many a CPLD
Online upgrading file, no matter these CPLD online upgrading files correspond to how many a boards, and no matter how many board needs CPLD
The shortcomings that online upgrading all only needs to assign an order, and then the embodiment of the present invention overcomes the prior art saves a large amount of
Time, the efficiency of CPLD file online upgrading is improved, is expended due to assigning different command for different boards to solve
Plenty of time, the problem for causing the efficiency of CPLD file online upgrading too low.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of more board rack systems provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of CPLD file online upgrading method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram that header information is added in a kind of online upgrading source file provided in an embodiment of the present invention;
Fig. 4 is that a kind of merging CPLD online upgrading file provided in an embodiment of the present invention obtains a CPLD online upgrading text
The schematic diagram of part set;
Fig. 5, Fig. 6 are the flow chart of another kind CPLD file online upgrading method provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of CPLD online upgrading method after a kind of addition TCH test channel provided in an embodiment of the present invention;
Fig. 8 is a kind of apparatus structure schematic diagram of CPLD file online upgrading provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention is suitable for a kind of system, which can be applied to interchanger.Wherein, which can be more
Board rack system.Within the system, master control board card and business board are included at least, for example, more board machines as shown in Figure 1
In posture system, a master control board card corresponds to n business board, wherein n is the natural number more than or equal to 2.Of the invention real
It applies in example, can be carried out data transmission by management interface between master control board card and business board.
Wherein, master control board card is for obtaining order, issuing CPLD online upgrading file set, from the CPLD on master control board card
CPLD online upgrading file is extracted in online upgrading file set, judges whether the CPLD file to be upgraded on master control board card needs
Upgrading;Business board is used to receive the order that master control board card issues, receives CPLD online upgrading file set, from what is received
CPLD online upgrading file is extracted in CPLD online upgrading file set, judges whether is CPLD file to be upgraded on business board
It needs to upgrade.The embodiment of the invention provides a kind of method of CPLD file online upgrading, as shown in Fig. 2, this method can be by
Master control board card shown in FIG. 1 or business board execute, this method comprises:
Step 101, board obtain the order that trigger board card carries out CPLD document upgrading.
Wherein, the order that trigger board card carries out CPLD document upgrading can be obtained from the management interface of master control board card, i.e., originally
Ground obtains;Alternatively, the order can also be obtained from the ether interface of master control board card, i.e., remotely obtained from internet.Master control board card
The order can be issued to business board, carry out CPLD file online upgrading to trigger business board card.
Step 102, board obtain CPLD online upgrading file set.
Wherein, the CPLD online upgrading source file for having added header information is referred to as CPLD online upgrading file;Head letter
Breath includes the mark for searching CPLD online upgrading file, and whether the CPLD file to be upgraded for determining board needs to rise
The information of grade.In embodiments of the present invention, CPLD online upgrading is included at least for searching the mark of CPLD online upgrading file
File size and board type;The information whether the CPLD file to be upgraded for determining board needs to upgrade includes at least CPLD
Online upgrading FileVersion and board version.
Wherein, the process that board obtains CPLD online upgrading file set can be with are as follows:
It is online in each CPLD firstly, for CPLD online upgrading source file corresponding to boards all in same system
Header information is added in upgrading source file, adds header information for example, being illustrated in figure 3 on CPLD online upgrading source file
Process, the implementation method of the process is without limitation.Wherein, due to the corresponding CPLD online upgrading source file of each board, originally
A business board and a master control board card are included at least in system, therefore the quantity of the CPLD online upgrading source file of this system is extremely
It is less two.
And then the CPLD online upgrading file mergences that may use all boards is a CPLD online upgrading file
Set, obtains a CPLD online upgrading file set for m CPLD online upgrading file mergences for example, being illustrated in figure 4
Process.Wherein, m is the natural number more than or equal to 2, and file mergences process is without limitation.
Finally, board obtains CPLD online upgrading file set.During being somebody's turn to do, needed by the order in step 101 is specified
The master control board card or business board for carrying out CPLD file online upgrading obtain CPLD by the master control board card or business board and rise online
Grade file set.Wherein, if the board is master control board card, which is obtained from internet by the ether interface on the board
Take CPLD online upgrading file set;If the board is business board, which passes through the management interface on the board from master
It controls and obtains CPLD online upgrading file set on board.
Step 103, board obtain CPLD online upgrading file set according to the mark for searching CPLD online upgrading file
CPLD online upgrading file corresponding with CPLD file to be upgraded in conjunction.
If the information that the CPLD for carrying board in step 104, header information file to be upgraded needs to upgrade, board pair
CPLD document upgrading to be upgraded.
Wherein, if not having to carry the information that CPLD file to be upgraded needs to upgrade in header information, it is online to abandon CPLD
Upgrade file to reduce for handling the memory usage of the device of data and/or calculating data on board, and then improves upgrading
Efficiency.
To sum up, in the embodiment of the present invention, the corresponding CPLD online upgrading file group of all boards is combined into one first
CPLD online upgrading file set, then the board for needing to carry out CPLD file online upgrading is enabled to execute step 101, it enables obtaining later
Board to the order obtains CPLD online upgrading file set, then the board is enabled to judge the CPLD file to be upgraded on the board
Whether need to upgrade, and when needing to upgrade, carries out the online document upgrading of CPLD.In the embodiment of the present invention, no matter the CPLD exists
Line upgrade file set corresponds to how many a CPLD online upgrading files, and no matter these CPLD online upgrading files correspond to how many a plates
Card, no matter how many board needs CPLD online upgrading, all only needs to assign an order, and then the embodiment of the present invention overcomes
The shortcomings that prior art, the plenty of time is saved, the efficiency of CPLD file online upgrading is improved.
In order to extract with the one-to-one CPLD online upgrading source file of CPLD file to be upgraded on board, CPLD is existed
Line upgrade file set expands into multiple CPLD online upgrading source files, and in multiple CPLD online upgrading source files of expansion
Lookup and the one-to-one CPLD online upgrading source file of CPLD file to be upgraded on board, in one kind of the embodiment of the present invention
In possible implementation, according on the header information in CPLD online upgrading file for searching CPLD online upgrading file
Marker extraction CPLD online upgrading source file.Therefore, on the basis of implementation as shown in Figure 2, be also implemented as
Implementation shown in fig. 5.Wherein, step 103 board is obtained and is waited in CPLD online upgrading file set with CPLD according to mark
The corresponding CPLD online upgrading file of upgrade file, can be implemented as step 201 to step 203:
Step 201, board determine the board type of the board.
Wherein, board can be by there is the device of calculating and data processing function, such as central processing unit (Central
Processing Unit, CPU) or microprocessor (Micro controller Unit, MCU) check the board type of board.
Board type can be divided according to the hardware state of board, for example, board can be divided into 16 according to the socket quantity of board
The difference board type such as socket board, 32 socket boards, 64 socket boards;Board type can also be according to the software function of board
Divide, for example, according to the update algebra (i.e. the version of board) of board board can be divided into generation board, two generation boards,
The difference board type such as three generations's board.
Step 202, board search specified CPLD online upgrading file in CPLD online upgrading file set.
Wherein, specifying CPLD online upgrading file is CPLD online upgrading file identical with the board type of the board.
Also, board searches CPLD online upgrading file corresponding with the board version of board in CPLD online upgrading file set
When, it can be since any position of CPLD online upgrading file set.Its process can be with are as follows:
The header information that each CPLD online upgrading file is checked in CPLD online upgrading file set, when the head found
When board type in portion's information is consistent with the board type of the board, 203 are thened follow the steps;When in the header information found
Board type and this board board Type-Inconsistencies when, skip handle the CPLD online upgrading file process to save when
Between, and continue the header information checked on next CPLD online upgrading file.
Step 203, board obtain identical as CPLD online upgrading source file size from specified CPLD online upgrading file
CPLD online upgrading source file.
To sum up, it in the embodiment of the present invention, according to board type and CPLD online upgrading source file size, is risen online from CPLD
It extracts in grade file set and is therefore kept away with the one-to-one CPLD online upgrading source file of CPLD file to be upgraded on board
Exempt from since board can not be in multiple CPLD online upgrading files of CPLD online upgrading file set, in discrimination and the board
The corresponding CPLD online upgrading file of CPLD file to be upgraded, thus the case where CPLD online document upgrading can not be carried out.
Also, in the embodiment of the present invention, board can automatically extract CPLD according to board type and CPLD online upgrading source file size
Online upgrading source file extracts the process of CPLD online upgrading source file without board according to the order got;Work as this system
In not only one board when, just need to assign different orders for each board.To sum up, the embodiment of the present invention overcome by
It can not be distinguished and the CPLD on the board in multiple CPLD online upgrading files of CPLD online upgrading file set in board
The corresponding CPLD online upgrading file of file to be upgraded, thus the defect of the online document upgrading of CPLD can not be carried out, and be directed to
Different boards assign different command and the defect that takes considerable time, improve CPLD file online upgrading efficiency.
In order to judge whether board needs to upgrade the CPLD file to be upgraded on the board, in the embodiment of the present invention
A kind of possible implementation in, board judge on the header information in the corresponding CPLD online upgrading file of the board whether
The information that CPLD file to be upgraded needs to upgrade is carried, to decide whether to upgrade CPLD file to be upgraded.Therefore, exist
On the basis of implementation as illustrated in fig. 2 or fig. 5, by taking Fig. 2 as an example, it is also implemented as implementation as shown in FIG. 6.Its
In, if the information that the CPLD for carrying board in step 104, header information file to be upgraded needs to upgrade, board is to CPLD
Document upgrading to be upgraded, can be implemented as step 301:
If step 301 meets specified requirements, board upgrades CPLD file to be upgraded.
Wherein, specified requirements is included at least with the next item down: the board version carried in header information is equal to the board of board
The CPLD online upgrading FileVersion carried in version, header information is higher than the version of CPLD file to be upgraded.Preferably, it specifies
Condition includes at least following two: the board version carried in header information is equal in the board version of board, header information
The CPLD online upgrading FileVersion of carrying is higher than the version of CPLD file to be upgraded.
If being unsatisfactory for above-mentioned specified requirements, the board abandons CPLD online upgrading source file, to reduce memory loss.
To sum up, judge in the embodiment of the present invention on the header information in the corresponding CPLD online upgrading file of the board whether
The information that CPLD file to be upgraded needs to upgrade is carried, to decide whether to upgrade CPLD file to be upgraded, and then is kept away
The escalation process for having exempted from CPLD file to be upgraded causes confusion (for example, when the corresponding CPLD version of CPLD online upgrading file is low
In the version of the CPLD file to be upgraded on board or when the corresponding board version of CPLD online upgrading file is not equal to the board
Board version in the case where still carry out CPLD file online upgrading).
In order to should the various problems that continuously emerged when carrying out CPLD file online upgrading be carried out CPLD file in board and be existed
During line upgrades, tester can be tested more board rack systems.Therefore, the embodiment of the present invention can be with
It is embodied as implementation as shown in Figure 7.
As shown in fig. 7, entire CPLD file online upgrading process can be divided into PART (part) A, PART (part) B,
PART (part) C three parts.Wherein, PART A is that header information is added on CPLD online upgrading source file, and will be multiple
CPLD online upgrading file mergences is the process of a CPLD online upgrading file set;PART B is to extract on master control board card
Online upgrading source file simultaneously judges whether the file to be upgraded of the CPLD on master control board card needs to carry out the process of CPLD online upgrading;
PART C is to extract online upgrading source file on business board and judge whether the CPLD file to be upgraded on business board needs
Carry out the process of CPLD online upgrading.
In PART A, the stage 1 is the process that header information is added on CPLD online upgrading source file, and the stage 2 is will
Multiple CPLD online upgrading file mergencess are the process of a CPLD online upgrading file set.Wherein, implementation phase 1 and stage
2 detailed process can be with reference to the content in step 102, and this will not be repeated here.
In PART B, firstly, the board CPLD online upgrading file extraction element reception CPLD on master control board card is online
Upgrade file set, and CPLD online upgrading file set is sent to the business board for needing to carry out CPLD file online upgrading.
Later, if master control board card needs to carry out CPLD file online upgrading, board CPLD online upgrading file extraction element can be to
CPLD online upgrading file judgment means send CPLD online upgrading file set, alternatively, board CPLD online upgrading file mentions
Take device that can exist by TCH test channel to joint test behavior tissue (Joint Test Action Group, JTAG) CPLD
Line upgrade interface sends the set.If master control board card does not need to carry out CPLD file online upgrading, PART A process terminates.
If board CPLD online upgrading file extraction element sends the collection to board CPLD online upgrading file judgment means
It closes, then board CPLD judgment means judge whether the file to be upgraded of the CPLD on board needs to carry out CPLD file online upgrading;
If it is required, then carrying out CPLD file online upgrading by JTAG CPLD online upgrading interface.If it is not required, then abandoning
CPLD online upgrading file.
If board CPLD online upgrading file extraction element is sent by TCH test channel to JTAG CPLD online upgrading interface
The set then carries out CPLD file to the CPLD file to be upgraded on board by JTAG CPLD online upgrading interface and rises online
Grade.
Wherein, TCH test channel is only open-minded within the test phase of CPLD file;And tester needs to provide proof of identification
To open TCH test channel, for example, tester can open TCH test channel by finger print identifying.Also, tester uses survey
When pinging, the operation such as can also be debugged or be retracted to CPLD file to be upgraded, be taken at this tester specific
Operation is without limitation.
In PART C-1 to PART C-x, x is the natural number more than or equal to 2, except business board card is connect by management interface
Other than the process for receiving CPLD online upgrading file set, the step of other steps are with PART B, is completely the same, and this will not be repeated here.
The embodiment of the invention provides a kind of devices 40 of CPLD file online upgrading, as shown in figure 8, the device 40 wraps
It includes:
Module 41 is obtained, the order of programmable logic device (CPLD) document upgrading is carried out for obtaining trigger board card.
Module 41 is obtained, is also used to obtain CPLD online upgrading file set, CPLD online upgrading file set includes extremely
Few two CPLD online upgrading files, CPLD online upgrading file carry header information, and header information includes for searching
The mark of CPLD online upgrading file, and the information whether CPLD file to be upgraded for determining board needs to upgrade.
Obtain module 41, be also used to according to mark, obtain in CPLD online upgrading file set with CPLD file to be upgraded
Corresponding CPLD online upgrading file.
Upgraded module 42, if for obtaining the CPLD file to be upgraded for carrying board in the header information that module 41 obtains
The information for needing to upgrade, then to CPLD document upgrading to be upgraded.
It should be noted that the mark for searching CPLD online upgrading file is big including at least CPLD online upgrading file
Small and board type, the information whether the CPLD file to be upgraded for determining board needs to upgrade include at least CPLD and rise online
Grade one of FileVersion and board version.
In a kind of possible design of the embodiment of the present invention, module 41 is obtained, is also used to:
Determine the board type of board;
Specified CPLD online upgrading file is searched in CPLD online upgrading file set, specifies CPLD online upgrading file
For CPLD online upgrading file identical with board type;
CPLD identical with CPLD online upgrading source file size is obtained from specified CPLD online upgrading file to rise online
Grade file.
In a kind of possible design of the embodiment of the present invention, upgraded module 42 is also used to:
If meeting specified requirements, CPLD file to be upgraded is upgraded, specified requirements is included at least with the next item down: head
The CPLD online upgrading FileVersion that the board version carried in portion's information is equal to the board version of board, carries in header information
Higher than the version of CPLD file to be upgraded.Preferably, specified requirements is including at least following two: the plate carried in header information
The CPLD online upgrading FileVersion that card version is equal to the board version of board, carries in header information is higher than CPLD text to be upgraded
The version of part.
To sum up, in the embodiment of the present invention, the corresponding CPLD online upgrading file group of all boards is combined into one first
CPLD online upgrading file set, then the board for needing to carry out CPLD file online upgrading is enabled to obtain order, it enables getting later
The board of the order obtains CPLD online upgrading file set, then the board is enabled to judge that the CPLD file to be upgraded on the board is
It is no to need to upgrade, and when needing to upgrade, carry out the online document upgrading of CPLD.In the embodiment of the present invention, no matter the CPLD is online
Upgrade file set corresponds to how many a CPLD online upgrading files, and no matter these CPLD online upgrading files correspond to how many a plates
Card, no matter how many board needs CPLD online upgrading, all only needs to assign an order, and then the embodiment of the present invention overcomes
The shortcomings that prior art, the plenty of time is saved, the efficiency of CPLD file online upgrading is improved.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow
Help software that the mode of required common hardware is added to realize, naturally it is also possible to which the former is more preferably by hardware, but in many cases
Embodiment.Based on this understanding, the portion that technical solution of the present invention substantially in other words contributes to the prior art
Dividing can be embodied in the form of software products, which stores in a readable storage medium, such as count
The floppy disk of calculation machine, hard disk or CD etc., including some instructions are used so that computer equipment (it can be personal computer,
Server or the network equipment etc.) execute method described in each embodiment of the present invention.
The above description is merely a specific embodiment, but the protection scope of the embodiment of the present invention is not limited to
This, anyone skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement,
It should all cover within the protection scope of the embodiment of the present invention.Therefore, the protection scope of the embodiment of the present invention should be with the right
It is required that protection scope subject to.
Claims (10)
1. a kind of method of CPLD file online upgrading, which is characterized in that the described method includes:
Board, which obtains, triggers the order that the board carries out programmable logic device (CPLD) document upgrading;
The board obtains CPLD online upgrading file set, and the CPLD online upgrading file set includes at least two CPLD
Online upgrading file, the CPLD online upgrading file carry header information, and the header information includes for searching CPLD
The mark of online upgrading file, and the information whether CPLD file to be upgraded for determining the board needs to upgrade;
The board according to the mark, obtain in the CPLD online upgrading file set with CPLD file pair to be upgraded
The CPLD online upgrading source file answered;
If the information that the CPLD for carrying the board in header information file to be upgraded needs to upgrade, the board pair
The CPLD document upgrading to be upgraded.
2. the method as described in claim 1, which is characterized in that the mark for searching CPLD online upgrading file is at least
It is described for determining whether the CPLD of board file to be upgraded needs including CPLD online upgrading file size and board type
The information to be upgraded includes at least one of CPLD online upgrading FileVersion and board version.
3. method according to claim 2, which is characterized in that it is online to obtain the CPLD according to the mark for the board
CPLD online upgrading source file corresponding with CPLD file to be upgraded in upgrade file set, comprising:
The board determines the board type of the board;
The board searches specified CPLD online upgrading file, the specified CPLD in the CPLD online upgrading file set
Online upgrading file is CPLD online upgrading file identical with the board type;
The board obtains identical as the CPLD online upgrading source file size from the specified CPLD online upgrading file
CPLD online upgrading source file.
4. method as claimed in claim 2 or claim 3, which is characterized in that if carrying the board in the header information
The CPLD file to be upgraded information that needs to upgrade, then the board is to CPLD document upgrading to be upgraded, comprising:
If meeting specified requirements, the board upgrades CPLD file to be upgraded, and the specified requirements at least wraps
Include with the next item down: the board version carried in the header information is equal to the board version of the board, in the header information
The CPLD online upgrading FileVersion of carrying is higher than the version of CPLD file to be upgraded.
5. method as claimed in claim 2 or claim 3, which is characterized in that if carrying the board in the header information
The CPLD file to be upgraded information that needs to upgrade, then the board is to CPLD document upgrading to be upgraded, comprising:
If meeting specified requirements, the board upgrades CPLD file to be upgraded, and the specified requirements at least wraps
Include following two: the board version carried in the header information is equal to the board version of the board, in the header information
The CPLD online upgrading FileVersion of carrying is higher than the version of CPLD file to be upgraded.
6. a kind of device of CPLD file online upgrading, which is characterized in that described device includes:
Module is obtained, the order of programmable logic device (CPLD) document upgrading is carried out for obtaining trigger board card;
The acquisition module, is also used to obtain CPLD online upgrading file set, and the CPLD online upgrading file set includes
At least two CPLD online upgrading files, the CPLD online upgrading file carry header information, and the header information includes
For searching the mark of CPLD online upgrading file, and whether the CPLD file to be upgraded for determining the board needs to upgrade
Information;
The acquisition module, is also used to according to the mark, obtain in the CPLD online upgrading file set with the CPLD
The corresponding CPLD online upgrading source file of file to be upgraded;
Upgraded module, if the CPLD for carrying the board in the header information obtained for the acquisition module is to be upgraded
File needs the information upgraded, then to CPLD document upgrading to be upgraded.
7. device as claimed in claim 6, which is characterized in that the mark for searching CPLD online upgrading file is at least
It is described for determining whether the CPLD of board file to be upgraded needs including CPLD online upgrading file size and board type
The information to be upgraded includes at least one of CPLD online upgrading FileVersion and board version.
8. device as claimed in claim 7, which is characterized in that the acquisition module is also used to:
Determine the board type of the board;
Specified CPLD online upgrading file, the specified CPLD online upgrading are searched in the CPLD online upgrading file set
File is CPLD online upgrading file identical with the board type;
CPLD identical with the CPLD online upgrading source file size is obtained from the specified CPLD online upgrading file to exist
Line upgrades source file.
9. device as claimed in claim 7 or 8, which is characterized in that the upgraded module is also used to:
If meeting specified requirements, CPLD file to be upgraded is upgraded, the specified requirements is included at least with next
: the board version carried in the header information is equal to the board version of the board, carries in the header information
CPLD online upgrading FileVersion is higher than the version of CPLD file to be upgraded.
10. device as claimed in claim 7 or 8, which is characterized in that the upgraded module is also used to:
If meeting specified requirements, CPLD file to be upgraded is upgraded, the specified requirements includes at least following two
: the board version carried in the header information is equal to the board version of the board, carries in the header information
CPLD online upgrading FileVersion is higher than the version of CPLD file to be upgraded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710806974.2A CN109491679B (en) | 2017-09-08 | 2017-09-08 | CPLD online upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710806974.2A CN109491679B (en) | 2017-09-08 | 2017-09-08 | CPLD online upgrading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109491679A true CN109491679A (en) | 2019-03-19 |
CN109491679B CN109491679B (en) | 2023-03-24 |
Family
ID=65687071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710806974.2A Active CN109491679B (en) | 2017-09-08 | 2017-09-08 | CPLD online upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491679B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704089A (en) * | 2019-10-21 | 2020-01-17 | 深圳市友华通信技术有限公司 | Multi-CPLD online upgrading method and device |
CN111381851A (en) * | 2020-03-03 | 2020-07-07 | 上海御渡半导体科技有限公司 | Batch upgrading method of multi-firmware distributed board card based on special codes |
CN113094061A (en) * | 2019-12-23 | 2021-07-09 | 瑞昱半导体股份有限公司 | Gateway and firmware upgrading method thereof |
CN113553114A (en) * | 2020-04-22 | 2021-10-26 | 中国长城科技集团股份有限公司 | Control method and device for single-board CPLD encrypted loading, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1677346A (en) * | 2004-04-01 | 2005-10-05 | 迈普(四川)通信技术有限公司 | Programmable device program update method and board card capable of updating program |
US20070067763A1 (en) * | 2005-09-19 | 2007-03-22 | Adc Telecommunications, Inc. | Mechanism to upgrade system capability without affecting service |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
US20090079467A1 (en) * | 2007-09-26 | 2009-03-26 | Sandven Magne V | Method and apparatus for upgrading fpga/cpld flash devices |
CN102662701A (en) * | 2012-03-28 | 2012-09-12 | 中兴通讯股份有限公司 | Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer |
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN103533027A (en) * | 2013-09-22 | 2014-01-22 | 瑞斯康达科技发展股份有限公司 | Distributed equipment and software version compatibility maintenance method and system |
CN104615455A (en) * | 2014-12-30 | 2015-05-13 | 北京锐安科技有限公司 | Remote upgrading method and device for IPMC program of ATCA structure |
CN105224345A (en) * | 2014-05-28 | 2016-01-06 | 株洲变流技术国家工程研究中心有限公司 | A kind of programmable logic device (PLD) remote update system and method thereof |
CN106445613A (en) * | 2016-10-11 | 2017-02-22 | 北京北方烽火科技有限公司 | Code upgrading method and system |
-
2017
- 2017-09-08 CN CN201710806974.2A patent/CN109491679B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1677346A (en) * | 2004-04-01 | 2005-10-05 | 迈普(四川)通信技术有限公司 | Programmable device program update method and board card capable of updating program |
US20070067763A1 (en) * | 2005-09-19 | 2007-03-22 | Adc Telecommunications, Inc. | Mechanism to upgrade system capability without affecting service |
CN101030140A (en) * | 2006-03-02 | 2007-09-05 | 中兴通讯股份有限公司 | Device and method for on-line updating fastener programm |
US20090079467A1 (en) * | 2007-09-26 | 2009-03-26 | Sandven Magne V | Method and apparatus for upgrading fpga/cpld flash devices |
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN102662701A (en) * | 2012-03-28 | 2012-09-12 | 中兴通讯股份有限公司 | Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer |
CN103533027A (en) * | 2013-09-22 | 2014-01-22 | 瑞斯康达科技发展股份有限公司 | Distributed equipment and software version compatibility maintenance method and system |
CN105224345A (en) * | 2014-05-28 | 2016-01-06 | 株洲变流技术国家工程研究中心有限公司 | A kind of programmable logic device (PLD) remote update system and method thereof |
CN104615455A (en) * | 2014-12-30 | 2015-05-13 | 北京锐安科技有限公司 | Remote upgrading method and device for IPMC program of ATCA structure |
CN106445613A (en) * | 2016-10-11 | 2017-02-22 | 北京北方烽火科技有限公司 | Code upgrading method and system |
Non-Patent Citations (2)
Title |
---|
HUANHUAN FAN等: "A high density time to digital converter module for BESIII end-cap TOF upgrade", 《2012 18TH IEEE-NPSS REAL TIME CONFERENCE》 * |
刘光文等: "CPLD加Flash在线升级及配置FPGA", 《微处理机》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704089A (en) * | 2019-10-21 | 2020-01-17 | 深圳市友华通信技术有限公司 | Multi-CPLD online upgrading method and device |
CN113094061A (en) * | 2019-12-23 | 2021-07-09 | 瑞昱半导体股份有限公司 | Gateway and firmware upgrading method thereof |
CN111381851A (en) * | 2020-03-03 | 2020-07-07 | 上海御渡半导体科技有限公司 | Batch upgrading method of multi-firmware distributed board card based on special codes |
WO2021174860A1 (en) * | 2020-03-03 | 2021-09-10 | 上海御渡半导体科技有限公司 | Special code-based method for batch upgrading multi-firmware distributed board card |
CN111381851B (en) * | 2020-03-03 | 2023-11-24 | 上海御渡半导体科技有限公司 | Batch upgrading method of multi-firmware distributed board card based on special codes |
CN113553114A (en) * | 2020-04-22 | 2021-10-26 | 中国长城科技集团股份有限公司 | Control method and device for single-board CPLD encrypted loading, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109491679B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109491679A (en) | A kind of CPLD online upgrading method and device | |
CN108959059B (en) | Test method and test platform | |
CN105302716B (en) | Test method, device under the development mode of interflow | |
CN100583920C (en) | Method and apparatus for generating testing script, testing method, apparatus and system | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
CN101145993B (en) | A multi-point access interface test method and its test system | |
CN102346709A (en) | Software development assisting method and system | |
US9645911B2 (en) | System and method for debugging firmware/software by generating trace data | |
US10846212B2 (en) | Evidence gathering system and method | |
CN104252481A (en) | Dynamic check method and device for consistency of main and salve databases | |
CN111782635B (en) | Data processing method and device, storage medium and electronic device | |
EP2902908A1 (en) | System operation trace method in distributed system | |
CN106294222A (en) | A kind of method and device determining PCIE device and slot corresponding relation | |
CN105095059A (en) | Method and device for automated testing | |
CN109885744A (en) | Web data crawling method, device, system, computer equipment and storage medium | |
CN107908511A (en) | ACPI test methods, test machine and the system of a kind of network interface card | |
CN109992478A (en) | A kind of server method for inspecting and device | |
CN109445706A (en) | Disk partition expansion method, device and server-side | |
CN103150250A (en) | Performance detecting system for application program and performance detecting method for application program | |
CN116974874A (en) | Database testing method and device, electronic equipment and readable storage medium | |
CN109002305A (en) | A kind of update method and its system of device program | |
CN103399776B (en) | Reusable MOCK creation method and system | |
CN104765668B (en) | Method for verifying stability of NFS server | |
CN102055780A (en) | System and method for testing disk array | |
CN110209565A (en) | A kind of metadata schema adjustment method and its device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |