CN108874441A - A kind of board configuration method, device, server and storage medium - Google Patents

A kind of board configuration method, device, server and storage medium Download PDF

Info

Publication number
CN108874441A
CN108874441A CN201810634811.5A CN201810634811A CN108874441A CN 108874441 A CN108874441 A CN 108874441A CN 201810634811 A CN201810634811 A CN 201810634811A CN 108874441 A CN108874441 A CN 108874441A
Authority
CN
China
Prior art keywords
board
configuration
information
configuration file
probe messages
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
Application number
CN201810634811.5A
Other languages
Chinese (zh)
Other versions
CN108874441B (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.)
SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd
Original Assignee
SHANGHAI SIEYUAN HONGRUI AUTOMATION 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 SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd filed Critical SHANGHAI SIEYUAN HONGRUI AUTOMATION CO Ltd
Priority to CN201810634811.5A priority Critical patent/CN108874441B/en
Publication of CN108874441A publication Critical patent/CN108874441A/en
Application granted granted Critical
Publication of CN108874441B publication Critical patent/CN108874441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version 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)
  • Storage Device Security (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention provides a kind of board configuration method, device, server and storage mediums, wherein board configuration method includes:When initial start-up, original configuration file is obtained, original configuration file includes the configuration information of multiple boards to be selected, and board to be selected is divided into essential board and optional board;The first probe messages corresponding with the first board are sent, until sending corresponding probe messages to each of multiple boards to be selected board to be selected;If receiving the first feedback message, retain the configuration information of the first board in original configuration file;If not receiving the first feedback message and the first board is optional board, deletes the configuration information of the first board in original configuration file and regenerate the first configuration file.The microcomputer protecting device under the compatible multiple similar application scenarios of configuration file may be implemented in the embodiment of the present invention, and save the cost improves efficiency.

Description

A kind of board configuration method, device, server and storage medium
Technical field
The present invention relates to computer software fields, especially design a kind of board configuration method, device, server and storage and are situated between Matter.
Background technique
Microcomputer protecting device is the important component in electric system, is mainly responsible for the protection of each element in electric system And measurement.Microcomputer protecting device generally includes muti-piece board, such as protection board, input and output board, digital sample board etc..
For different application scenarios, the board that microcomputer protecting device uses is different, and board configuration file needs to include institute There is the configuration information using board, therefore developer needs to customize different board configurations for different microcomputer protecting devices File.
But in practical applications, the board that the microcomputer protecting device of certain application scenarios uses is fairly close, for example, Only one piece of snap-gauge difference, remaining board is all the same, and developer is the configuration file that these microcomputer protecting devices generate respectively Difference less, but cannot share, therefore lead to a large amount of repeated work, and device filing version quantity also increases several times, manpower It is at high cost, low efficiency.
Summary of the invention
The present invention provides a kind of board configuration method, device, server and storage mediums, to realize that configuration file is compatible Microcomputer protecting device under multiple similar application scenarios, save the cost improve efficiency.
In a first aspect, the embodiment of the invention provides a kind of board configuration methods, including:
When initial start-up, original configuration file is obtained, the original configuration file includes multiple boards to be selected with confidence Breath, the board to be selected are divided into essential board and optional board;
Send the first probe messages corresponding with the first board, wherein first board is in the board to be selected Any one board, first probe messages whether there is for detecting first board, until to the multiple to be selected Until each of board board to be selected sends corresponding probe messages;
If receiving the first feedback message, retain the configuration information of the first board described in the original configuration file, In, the first feedback message, which is used to indicate first board, to be existed;
If not receiving the first feedback message and first board being optional board, the original configuration is deleted The configuration information of first board described in file simultaneously regenerates the first configuration file, wherein first configuration file includes At least one has selected the configuration information of board.
Second aspect, the embodiment of the invention provides a kind of board configuration devices, including:
Original configuration file obtains module, when being used for initial start-up, obtains original configuration file, the original configuration file Configuration information including multiple boards to be selected, the board to be selected are divided into essential board and optional board;
First probe messages sending module, for sending corresponding with the first board the first probe messages, wherein described the One board is any one board in the board to be selected, and whether first probe messages are for detecting first board In the presence of until sending corresponding probe messages to each of the multiple board to be selected board to be selected;
First configuration file update module, if retaining in the original configuration file for receiving the first feedback message The configuration information of first board, wherein the first feedback message, which is used to indicate first board, to be existed;If not receiving Described first feeds back message and first board for optional board, then deletes the first plate described in the original configuration file The configuration information of card simultaneously regenerates the first configuration file, wherein first configuration file includes that at least one has selected board Configuration information.
The third aspect, the embodiment of the invention provides a kind of servers, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the board configuration method that any embodiment of that present invention provides.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the board configuration method that any embodiment of that present invention provides when the program is executed by processor.
After the embodiment of the present invention is by obtaining original configuration file, the first probe messages corresponding with the first board are sent, Wherein, the first board is any one board in board to be selected, and can detect the first board whether there is;If it is anti-to receive first Message is presented, then illustrates that the first board exists, retains the configuration information of the first board in original configuration file;If it is anti-not receive first Presenting message and the first board is optional board, then deletes the configuration information of the first board in original configuration file and regenerate First configuration file, until sending corresponding probe messages to each of multiple boards to be selected board to be selected and being Only.The method of the embodiment of the present invention can be applied to the board configuration of multiple microcomputer protecting devices or the board of other devices is matched In setting, by obtaining the applicable board configuration file of the available each microcomputer protecting device of original configuration file, avoid out Hair personnel are that each microcomputer protecting device is individually created a large amount of repeated works caused by board configuration file, greatly reduce device File version quantity, reduces human cost, improve efficiency.
Detailed description of the invention
Fig. 1 is a kind of flow chart for board configuration method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of board configuration method provided by Embodiment 2 of the present invention;
Fig. 3 is the method flow diagram of step S320 in Fig. 2;
Fig. 4 is a kind of structural schematic diagram for board configuration device that the embodiment of the present invention three provides;
Fig. 5 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for board configuration method that the embodiment of the present invention one provides, and the embodiment of the present invention is applicable In the board configuration the case where, this method can be executed by board configuration device, which can be using software and/or hardware Mode is realized, and can be integrated on the server.Referring to Fig. 1, this method is specifically included:
When S110, initial start-up, original configuration file is obtained, original configuration file includes multiple boards to be selected with confidence Breath, board to be selected are divided into essential board and optional board.
It include the configuration information of multiple boards to be selected in original configuration file, board to be selected is divided into essential board and optional plate Card.By taking microcomputer protecting device as an example, multiple boards to be selected are chosen as common board in microcomputer protecting device, such as management board Card, protection board, multiple input and output boards, multiple digital sample boards etc., wherein management board is for realizing Microcomputer Protection The management function of device protects board for realizing the defencive function of microcomputer protecting device, these functions are microcomputer protecting device Basic function, therefore for microcomputer protecting device, management board and to protect board be the essential plate of microcomputer protecting device Card.And input and output board is used for real into contact for providing to open for microcomputer protecting device with contact, digital sample board is outputed Existing digital sample function, in microcomputer protecting device, if opened using input and output board and digital sampling plate card, and use The quantity for entering to output board and digital sampling plate card can be selected according to concrete application scene, and therefore, Microcomputer Protection is filled For setting, input and output board and digital sampling plate card are the optional board of microcomputer protecting device.
S120, the first probe messages corresponding with the first board are sent, wherein the first board is any in board to be selected One board, the first probe messages for detect the first board whether there is, until to each of multiple boards to be selected to Until selecting board to send corresponding probe messages.
Illustratively, the board to be selected in original configuration file include management board, protection board, input and output board, Digital sample board 1 and digital sampling plate card 2, a kind of microcomputer protecting device include management board, protection board sum number word sampling Board 1.Send the first probe messages corresponding with the first board, wherein the first board is any one plate in board to be selected Card, until sending corresponding probe messages to each of multiple boards to be selected board to be selected, i.e., successively sends out Send management board, protection board, input and output board, digital sample board 1 and the corresponding first detection report of digital sampling plate card 2 Text is to detect on the microcomputer protecting device with the presence or absence of management board, protection board, input and output board, digital sample board 1 With digital sampling plate card 2.
If S130, receiving the first feedback message, retain the configuration information of the first board in original configuration file, wherein First feedback message is used to indicate the presence of the first board.
Since microcomputer protecting device includes management board, protection board sum number word sampling board 1, management can be received Board, protection board sum number word sampling board 1 corresponding first feed back message, illustrate to manage board, board sum number word is protected to adopt Sample card 1 exists, therefore retains the configuration information that board, protection board sum number word sampling board 1 are managed in original configuration file.
If S140, not receive the first feedback message and the first board be optional board, the is deleted in original configuration file The configuration information of one board simultaneously regenerates the first configuration file, wherein the first configuration file includes that at least one has selected board Configuration information.
Since microcomputer protecting device does not include input and output board and digital sampling plate card 2, it can not receive and open into opening First feedback message of board sum number word sampling board 2 out, and input and output board and digital sampling plate card 2 are optional board, Therefore it deletes the configuration information of input and output board and digital sampling plate card 2 in original configuration file and regenerates the first configuration File, the first configuration file contain management board, the protection board sum number word sampling board 1 that the microcomputer protecting device includes Configuration information, therefore can be used for the board configuration of the microcomputer protecting device.
The present embodiment is by taking the configuration of the board of microcomputer protecting device as an example, and the board to be selected in original configuration file is illustratively Including management board, protection board, input and output board, digital sample board 1 and digital sampling plate card 2, therefore use this reality The board configuration method of example offer is applied, which, which can configure, only includes essential board (management board and protection board Card) microcomputer protecting device, can also configure further includes input and output board, 1 sum number of digital sample board in addition to essential board Word samples the microcomputer protecting device of any one or any two or three optional boards, the i.e. original configuration in board 2 File can be compatible with 8 different microcomputer protecting devices of configuration, and avoiding developer is that each microcomputer protecting device is individually given birth to At a large amount of repeated works caused by board configuration file.
After the embodiment of the present invention is by obtaining original configuration file, the first probe messages corresponding with the first board are sent, Wherein, the first board is any one board in board to be selected, and can detect the first board whether there is;If it is anti-to receive first Message is presented, then illustrates that the first board exists, retains the configuration information of the first board in original configuration file;If it is anti-not receive first Presenting message and the first board is optional board, then deletes the configuration information of the first board in original configuration file and regenerate First configuration file, until sending corresponding probe messages to each of multiple boards to be selected board to be selected and being Only.The method of the embodiment of the present invention can be applied to the board configuration of multiple microcomputer protecting devices or the board of other devices is matched In setting, by obtaining the applicable board configuration file of the available each microcomputer protecting device of original configuration file, avoid out Hair personnel are that each microcomputer protecting device is individually created a large amount of repeated works caused by board configuration file, greatly reduce device File version quantity, reduces human cost, improve efficiency.
Embodiment two
Fig. 2 is a kind of flow chart of board configuration method provided by Embodiment 2 of the present invention, referring to fig. 2, in above-mentioned implementation On the basis of example, optionally, this method includes:
When S210, initial start-up, original configuration file is obtained, original configuration file includes multiple boards to be selected with confidence Breath, board to be selected are divided into essential board and optional board;
S220, the first probe messages corresponding with the first board are sent, wherein the first board is any in board to be selected One board, the first probe messages whether there is for detecting the first board;
S230, the first feedback message whether is received, wherein the first feedback message is used to indicate the presence of the first board;If so, S240 is executed, otherwise, executes S270;
S240, the configuration information for retaining the first board in original configuration file.
S250, the information of the first board is recorded to first information table.
The board information for receiving the first feedback message is had recorded in first information table, that is, has recorded the information for having selected board. Continuing with by taking the configuration process of the microcomputer protecting device in the embodiment of the present invention one as an example, microcomputer protecting device includes management board Card, protection board sum number word sample board 1, and therefore, management board, protection board sum number word sampling board 1 corresponding first are anti- Feedback message can be received, by the information of record management board, protection board sum number word sampling board 1 in first information table.
Whether each of S260, multiple boards to be selected board to be selected sends corresponding probe messages;If so, S310 is executed, S220 is otherwise executed.
Whether S270, the first board are optional board;If so, executing S280, S290 is otherwise executed;
S280, it deletes the configuration information of the first board in original configuration file and regenerates the first configuration file, wherein First configuration file includes the configuration information that at least one has selected board, executes S260;
S290, the first prompt information is generated, wherein the first prompt information is used to indicate configuration failure.
Essential board is the necessary board that a device realizes basic function, therefore, if the essential board in device is not deposited , then device is unable to operate normally use, and by taking microcomputer protecting device as an example, management board and protection board are essential board, because This generates the first prompt letter if not receiving feedback after sending management board the first probe messages corresponding with protection board Breath, illustratively, the first prompt information is chosen as " being unable to complete configuration ", and user can carry out board according to the first prompt information It checks.
S310, the first configuration file of storage;
S320, when being again started up, the first configuration file is used to carry out board configuration.
First configuration file is stored, when device is again started up, the first configuration file can be directly acquired and carry out board Configuration.
It should be noted that device, which is again started up, directly to carry out board configuration with the first configuration file, still, in device In use, having selected board that may change, for example, a kind of situation is to have selected board no longer to need, such as user actively pulls out Falling one has selected board, in this case, board has been selected to lack, but user wishes that device can continue board and match It sets and guarantees to operate normally;It is to have selected board that failure has occurred, such as board program corruption or board are not inserted there are also a kind of situation Tight etc., in this case, user wishes to provide prompt information the board configuration file for avoiding mistake to check in reality Border operation.Therefore, for above-mentioned it can happen that, in device starting, need to configure board and carry out " fool proof processing ", Referring specifically to Fig. 3.
Fig. 3 is the method flow diagram of step S320 in Fig. 2, referring to Fig. 3, on the basis of above scheme, optionally, the party Method includes:
S321, when being again started up, the second probe messages corresponding with the second board are sent, wherein the second board is has selected Any one board in board, the second probe messages whether there is for detecting the second board, until to having selected in board Until each has selected board to send corresponding probe messages.
Continuing with by taking the configuration process of the microcomputer protecting device in the embodiment of the present invention one as an example, the microcomputer protecting device Board has been selected to sample board 1 for management board, protection board sum number word.When being again started up, management board, protection board are successively sent Whether card and corresponding second probe messages of digital sampling plate card 1 are to detect management board, protection board sum number word sampling board 1 In the presence of.
If S322, receiving the second feedback message, the information of the second board is recorded to the second information table.
The board information for receiving the second feedback message is had recorded in second information table, that is, is had recorded and do not lacked in device and not That breaks down has selected the information of board.
S323, the information for comparing the board recorded in the second information table and first information table, if comparison information is identical, just Often complete configuration.
Compare the information of the board recorded in the second information table and first information table, i.e., with the presence or absence of missing in comparison unit Or that breaks down has selected board.If comparison information is identical, configuration is normally completed, illustratively, if device board does not lack It loses and does not break down, that is, send equal energy after management board, protection board sum number word sampling corresponding second probe messages of board 1 By corresponding second feedback message, therefore management board, protection board sum number word sampling board 1 are had recorded in the second information table Information.In step s 250, the information of management board, protection board sum number word sampling board 1 is had recorded in first information table, Therefore, the information of the board recorded in the second information table and first information table is identical, illustrates that device board is not lacked and do not sent out Raw failure, can normally complete configuration.
If S324, comparison information are different, suspend configuration, generate and shows the second prompt information.
If comparison information is different, illustrates that board has been selected to lack or failure has occurred, then suspend configuration.
S325, the information that third board is recorded in third record sheet, wherein third board is to remember in first information table Board carrying, lacking in the second information table.
Illustratively, if not receiving the second feedback message after sending corresponding second probe messages of digital sample board 1, That is do not have to record the information of digital sample board 1 in the second information record sheet, and record has digital sample plate in the first record sheet The information of card 1, therefore, third board are digital sample board 1, will after the second record sheet is compared with the first record sheet The information of digital sample board 1 is recorded in third information table.
S326, generation simultaneously show the second prompt information, and the second prompt information includes the information of third board.
It generates and shows that the second prompt information, the second prompt information include the information of third board, that is, include digital sample The information of board 1 illustratively generates and shows " digital sample board 1 lacks, if continues to configure ".
If S327, confirmation third board do not use, the configuration information of third board in the first configuration file is deleted, is laid equal stress on Newly-generated second configuration file.
S328, restarting simultaneously carry out board configuration using the second configuration file.
Illustratively, if digital sample board 1 does not need to reuse, user may identify operation, then deletes first and match The configuration information of digital sample board 1 in file is set, and regenerates the second configuration file, is restarted and using the second configuration File re-starts board configuration.
If digital sample board 1 is to break down, and there is still a need for using, user can be examined board according to prompt information It looks into, determines the fault type of digital sample board 1 to perform corresponding processing.
After the embodiment of the present invention is by obtaining original configuration file, the first probe messages corresponding with the first board are sent, Wherein, the first board is any one board in board to be selected, and can detect the first board whether there is;If it is anti-to receive first Message is presented, then illustrates that the first board exists, retains the configuration information of the first board in original configuration file;If it is anti-not receive first Presenting message and the first board is optional board, then deletes the configuration information of the first board in original configuration file and regenerate First configuration file, until sending corresponding probe messages to each of multiple boards to be selected board to be selected and being Only.The method of the embodiment of the present invention can be applied to the board configuration of multiple microcomputer protecting devices or the board of other devices is matched In setting, by obtaining the applicable board configuration file of the available each microcomputer protecting device of original configuration file, avoid out Hair personnel are that each microcomputer protecting device is individually created a large amount of repeated works caused by board configuration file, greatly reduce device File version quantity, reduces human cost, improve efficiency.In addition, the embodiment of the invention also provides boards to configure " fool proof The method of processing ", the board configuration information to avoid mistake are run in actual device, improve the reliability of board configuration, into One step reduces human cost, improves efficiency.
Embodiment three
Fig. 4 is a kind of structural schematic diagram for board configuration device that the embodiment of the present invention three provides, and the present embodiment is applicable In board configuration the case where.Board configuration device provided in an embodiment of the present invention can execute the plate that above-mentioned any embodiment provides Card configuration method has the corresponding functional module of execution method and beneficial effect.Referring to fig. 4, which includes original configuration text Part obtains module 410, the first probe messages sending module 420 and the first configuration file update module 430.
When original configuration file obtains module 410 for initial start-up, original configuration file, original configuration file packet are obtained The configuration information of multiple boards to be selected is included, board to be selected is divided into essential board and optional board;
First probe messages sending module 420 is for sending the first probe messages corresponding with the first board, wherein first Board is any one board in board to be selected, and the first probe messages whether there is for detecting the first board, until to more Until each of a board to be selected board to be selected sends corresponding probe messages;
If the first configuration file update module 430 for receiving the first feedback message, retains in original configuration file the The configuration information of one board, wherein the first feedback message is used to indicate the presence of the first board;If do not receive the first feedback message, And first board be optional board, then delete the configuration information of the first board in original configuration file and regenerate the first configuration File, wherein the first configuration file includes the configuration information that at least one has selected board.
Optionally, if the first configuration file update module 430 is also used to not receive the first feedback message and the first board is Essential board then generates the first prompt information, wherein the first prompt information is used to indicate configuration failure.
Optionally, the first configuration file update module 430 includes the first recording unit 431, and the first recording unit 431 is used for In retaining original configuration file after the configuration information of the first board, the information of the first board is recorded to first information table.
Optionally, which includes the first memory module 440 and configuration module 450.First memory module 440 For storing the first configuration file, configuration module 450 is for carrying out board configuration using the first configuration file when being again started up.
Optionally, configuration module 450 includes the second probe messages transmission unit 451, the second recording unit 452 and compares single Member 453.When second probe messages transmission unit 451 is used to be again started up, the second probe messages corresponding with the second board are sent, Wherein, the second board is any one board selected in board, and the second probe messages whether there is for detecting the second board, Until to until having selected each of board that board has been selected to send corresponding probe messages;Second recording unit 452 If recording the information of the second board to the second information table for receiving the second feedback message;Comparing unit 453 is for comparing the The information of the board recorded in two information tables and first information table normally completes configuration if comparison information is identical, if comparing letter Breath is different, then suspends configuration, generate and show the second prompt information.
Optionally, configuration module 450 further includes third recording unit 454 and display unit 455.Third recording unit 454 For in third record sheet record third board information, wherein third board be recorded in first information table, second The board lacked in information table;Display unit 455 is used to show the information of third board.
Optionally, configuration module 450 further includes the second configuration file updating unit 456 and the first configuration unit 457.Second If configuration file updating unit 456, for confirming that third board does not use, third board matches in the first configuration file of deletion Confidence breath, and regenerate the second configuration file;First configuration unit 457 for restart and using the second configuration file into The configuration of andante card.
After the embodiment of the present invention is by obtaining original configuration file, the first probe messages corresponding with the first board are sent, Wherein, the first board is any one board in board to be selected, and can detect the first board whether there is;If it is anti-to receive first Message is presented, then illustrates that the first board exists, retains the configuration information of the first board in original configuration file;If it is anti-not receive first Presenting message and the first board is optional board, then deletes the configuration information of the first board in original configuration file and regenerate First configuration file, until sending corresponding probe messages to each of multiple boards to be selected board to be selected and being Only.The method of the embodiment of the present invention can be applied to the board configuration of multiple microcomputer protecting devices or the board of other devices is matched In setting, by obtaining the applicable board configuration file of the available each microcomputer protecting device of original configuration file, avoid out Hair personnel are that each microcomputer protecting device is individually created a large amount of repeated works caused by board configuration file, greatly reduce device File version quantity, reduces human cost, improve efficiency.
Example IV
Fig. 5 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides.Fig. 5, which is shown, to be suitable for being used to realizing The block diagram of the exemplary servers 512 of embodiment of the present invention.The server 512 that Fig. 5 is shown is only an example, should not be right The function and use scope of the embodiment of the present invention bring any restrictions.
As shown in figure 5, server 512 is showed in the form of generic server.The component of server 512 may include but not It is limited to:One or more processor 516, storage device 528 connect different system components (including storage device 528 and processing Device 516) bus 518.
Bus 518 indicates one of a few class bus structures or a variety of, including storage device bus or storage device control Device processed, peripheral bus, graphics acceleration port, processor or total using the local of any bus structures in a variety of bus structures Line.For example, these architectures include but is not limited to industry standard architecture (Industry Subversive Alliance, ISA) bus, microchannel architecture (Micro Channel Architecture, MAC) bus is enhanced Isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local are total Line and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Server 512 typically comprises a variety of computer system readable media.These media can be it is any being capable of bedding and clothing The usable medium that business device 512 accesses, including volatile and non-volatile media, moveable and immovable medium.
Storage device 528 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory, RAM) 530 and/or cache memory 532.Server 512 can be further Including other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system System 535 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").To the greatest extent It is not shown in pipe Fig. 5, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, with And to removable anonvolatile optical disk, such as CD-ROM (Compact Disc Read-Only Memory, CD-ROM), number Word optic disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write CD Driver.In these cases, each driver can be connected by one or more data media interfaces with bus 518. Storage device 528 may include at least one program product, which has one group of (for example, at least one) program module, These program modules are configured to perform the function of various embodiments of the present invention.
Program/utility 550 with one group of (at least one) program module 552 can store in such as storage dress It sets in 528, such program module 552 includes but is not limited to operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.Program module 552 usually execute function and/or method in embodiment described in the invention.
Server 512 can also be with one or more external equipments 515 (such as keyboard, direction terminal, display 525 etc.) Communication, can also be enabled a user to one or more terminal interact with the server 512 communicate, and/or with make the clothes Any terminal (such as network interface card, modem etc.) that business device 512 can be communicated with one or more of the other computing terminal Communication.This communication can be carried out by input/output (I/O) interface 522.Also, server 512 can also be suitable by network Orchestration 520 and one or more network (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, such as internet) communication.As shown in figure 5, network adapter 520 passes through bus 518 It is communicated with other modules of server 512.It should be understood that although not shown in the drawings, can be used in conjunction with server 512 other hard Part and/or software module, including but not limited to:Microcode, terminal driver, redundant processor, external disk drive array, magnetic Disk array (Redundant Arrays of Independent Disks, RAID) system, tape drive and data backup Storage system etc..
The program that processor 516 is stored in storage device 528 by operation, thereby executing various function application and number According to processing, such as realize board configuration method provided by the embodiment of the present invention, this method includes:
When initial start-up, original configuration file is obtained, original configuration file includes the configuration information of multiple boards to be selected, to Board is selected to be divided into essential board and optional board;
Send the first probe messages corresponding with the first board, wherein the first board is any one in board to be selected Board, the first probe messages whether there is for detecting the first board, until to each of multiple boards to be selected plate to be selected Until card sends corresponding probe messages;
If receiving the first feedback message, retain the configuration information of the first board in original configuration file, wherein first is anti- Feedback message is used to indicate the presence of the first board;
If not receiving the first feedback message and the first board is optional board, the first plate in original configuration file is deleted The configuration information of card simultaneously regenerates the first configuration file, wherein the first configuration file includes that at least one has selected matching for board Confidence breath.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should Realize that the board configuration method as provided by the embodiment of the present invention, this method include when program is executed by processor:
When initial start-up, original configuration file is obtained, original configuration file includes the configuration information of multiple boards to be selected, to Board is selected to be divided into essential board and optional board;
Send the first probe messages corresponding with the first board, wherein the first board is any one in board to be selected Board, the first probe messages whether there is for detecting the first board, until to each of multiple boards to be selected plate to be selected Until card sends corresponding probe messages;
If receiving the first feedback message, retain the configuration information of the first board in original configuration file, wherein first is anti- Feedback message is used to indicate the presence of the first board;
If not receiving the first feedback message and the first board is optional board, the first plate in original configuration file is deleted The configuration information of card simultaneously regenerates the first configuration file, wherein the first configuration file includes that at least one has selected matching for board Confidence breath.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, are also wrapped Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground executes on the user computer, partly executes on the user computer, executing as an independent software package, partially existing Part executes on the remote computer or executes on remote computer or terminal completely on subscriber computer.It is being related to far In the situation of journey computer, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as using ISP come It is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (16)

1. a kind of board configuration method, which is characterized in that including:
When initial start-up, original configuration file is obtained, the original configuration file includes the configuration information of multiple boards to be selected, institute It states board to be selected and is divided into essential board and optional board;
Send the first probe messages corresponding with the first board, wherein first board is any in the board to be selected One board, first probe messages whether there is for detecting first board, until to the multiple board to be selected Each of until board to be selected sends corresponding probe messages;
If receiving the first feedback message, retain the configuration information of the first board described in the original configuration file, wherein institute It states the first feedback message and is used to indicate the first board presence;
If not receiving the first feedback message and first board being optional board, the original configuration file is deleted Described in the first board configuration information and regenerate the first configuration file, wherein first configuration file include at least One has been selected the configuration information of board.
2. board configuration method according to claim 1, which is characterized in that further include:
If not receiving the first feedback message and first board being essential board, the first prompt information is generated, In, first prompt information is used to indicate configuration failure.
3. board configuration method according to claim 1, which is characterized in that retain in the original configuration file described After the configuration information of first board, further include:
The information of first board is recorded to first information table.
4. board configuration method according to claim 1, which is characterized in that deleting described in the original configuration file The configuration information of first board and after regenerating the first configuration file further includes:
Store first configuration file;
When being again started up, board configuration is carried out using first configuration file.
5. board configuration method according to claim 4, which is characterized in that when powering on again, configured using described first File carries out board configuration, including:
When being again started up, the second probe messages corresponding with the second board are sent, wherein second board has selected plate to be described Any one board in card, second probe messages whether there is for detecting second board, until to it is described Until selecting each of board that board has been selected to send corresponding probe messages;
If receiving the second feedback message, the information of second board is recorded to the second information table;
Compare the information of the board recorded in second information table and the first information table, if comparison information is identical, just Configuration is often completed, if comparison information is different, suspends configuration, generates and show the second prompt information.
6. board configuration method according to claim 5, which is characterized in that if comparison information is different, suspend configuration, it is raw At and show the second prompt information, including:
If comparison information is different, suspend configuration;
The information of third board is recorded in third record sheet, wherein the third board is to remember in the first information table The board lacked in second information table carry, described;
Generate and show that the second prompt information, second prompt information include the information of the third board.
7. board configuration method according to claim 6, which is characterized in that the information for showing the third board it Afterwards, further include:
If confirming, the third board is not used, and deletes the configuration information of third board described in first configuration file, And regenerate the second configuration file;
It restarts and second configuration file is used to carry out board configuration.
8. a kind of board configuration device, which is characterized in that including:
Original configuration file obtains module, when being used for initial start-up, obtains original configuration file, the original configuration file includes The configuration information of multiple boards to be selected, the board to be selected are divided into essential board and optional board;
First probe messages sending module, for sending the first probe messages corresponding with the first board, wherein first plate Card is any one board in the board to be selected, and first probe messages are for detecting whether first board is deposited Until sending corresponding probe messages to each of the multiple board to be selected board to be selected;
First configuration file update module, if retaining described in the original configuration file for receiving the first feedback message The configuration information of first board, wherein the first feedback message, which is used to indicate first board, to be existed;If not receiving described First feeds back message and first board for optional board, then deletes the first board described in the original configuration file Configuration information simultaneously regenerates the first configuration file, wherein first configuration file includes that at least one has selected matching for board Confidence breath.
9. board configuration device according to claim 8, which is characterized in that the first configuration file update module is also used If being essential board in not receiving described first to feed back message and first board, the first prompt information is generated, wherein First prompt information is used to indicate configuration failure.
10. board configuration device according to claim 8, which is characterized in that the first configuration file update module packet It includes:
First recording unit, for after the configuration information for retaining the first board described in the original configuration file, The information of first board is recorded to first information table.
11. board configuration device according to claim 10, which is characterized in that further include:
First memory module, for storing first configuration file;
Configuration module when for being again started up, carries out board configuration using first configuration file.
12. board configuration device according to claim 11, which is characterized in that the configuration module includes:
Second probe messages transmission unit when for being again started up, sends the second probe messages corresponding with the second board, In, second board is described any one board selected in board, and second probe messages are for detecting described the Two boards whether there is, until having selected each of board that board has been selected to send corresponding probe messages to be to described Only;
Second recording unit, if recording the information of second board to the second information table for receiving the second feedback message;
Comparing unit, the information of the board for being recorded in second information table and the first information table, if comparing Information is identical, then normally completes configuration, if comparison information is different, suspends configuration, generates and shows the second prompt information.
13. board configuration device according to claim 12, which is characterized in that the configuration module further includes:
Third recording unit, for recording the information of third board in third record sheet, wherein the third board is in institute State the board lacked in second information table record in first information table, described;
Display unit, for generating and showing that the second prompt information, second prompt information include the letter of the third board Breath.
14. board configuration device according to claim 13, which is characterized in that the configuration module further includes:
Second configuration file updating unit, if deleting first configuration file for confirming that the third board does not use Described in third board configuration information, and regenerate the second configuration file;
First configuration unit, for restarting and carrying out board configuration using second configuration file.
15. a kind of server, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now board configuration method as described in any in claim 1~7.
16. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The board configuration method as described in any in claim 1~7 is realized when execution.
CN201810634811.5A 2018-06-20 2018-06-20 Board card configuration method, device, server and storage medium Active CN108874441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810634811.5A CN108874441B (en) 2018-06-20 2018-06-20 Board card configuration method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810634811.5A CN108874441B (en) 2018-06-20 2018-06-20 Board card configuration method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN108874441A true CN108874441A (en) 2018-11-23
CN108874441B CN108874441B (en) 2022-08-09

Family

ID=64339830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810634811.5A Active CN108874441B (en) 2018-06-20 2018-06-20 Board card configuration method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN108874441B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918230A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 A kind of business board abnormal restoring method and system
CN110750405A (en) * 2019-10-28 2020-02-04 天津津航计算技术研究所 Software compatibility method based on hardware board card identification
CN111064747A (en) * 2019-12-30 2020-04-24 奇安信科技集团股份有限公司 Information processing method and system, server, electronic device, medium, and product
CN116820863A (en) * 2023-07-10 2023-09-29 北京鲲鹏凌昊智能技术有限公司 Cascade test method, cascade test device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012028013A1 (en) * 2010-09-01 2012-03-08 中兴通讯股份有限公司 Implementing method for main/standby configuration of board cards, and board card
CN104811400A (en) * 2014-01-26 2015-07-29 杭州迪普科技有限公司 Distributed network apparatus
CN107357619A (en) * 2017-07-07 2017-11-17 广州视源电子科技股份有限公司 A kind of generation method, device, equipment and the storage medium of board configuration file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012028013A1 (en) * 2010-09-01 2012-03-08 中兴通讯股份有限公司 Implementing method for main/standby configuration of board cards, and board card
CN104811400A (en) * 2014-01-26 2015-07-29 杭州迪普科技有限公司 Distributed network apparatus
CN107357619A (en) * 2017-07-07 2017-11-17 广州视源电子科技股份有限公司 A kind of generation method, device, equipment and the storage medium of board configuration file

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918230A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 A kind of business board abnormal restoring method and system
CN110750405A (en) * 2019-10-28 2020-02-04 天津津航计算技术研究所 Software compatibility method based on hardware board card identification
CN111064747A (en) * 2019-12-30 2020-04-24 奇安信科技集团股份有限公司 Information processing method and system, server, electronic device, medium, and product
CN111064747B (en) * 2019-12-30 2022-07-08 奇安信科技集团股份有限公司 Information processing method and system, server, electronic device, medium, and product
CN116820863A (en) * 2023-07-10 2023-09-29 北京鲲鹏凌昊智能技术有限公司 Cascade test method, cascade test device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108874441B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN108874441A (en) A kind of board configuration method, device, server and storage medium
CN108961033B (en) Multi-service system interaction method and device, storage medium and electronic terminal
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN103595790B (en) The remote access method of equipment, thin-client and virtual machine
CN104216793B (en) Application Backup, the method and apparatus recovered
US20200019559A1 (en) Synchronizing object in local object storage node
CN109815147A (en) Test cases generation method, device, server and medium
CN108052407A (en) A kind of application crash means of defence, device, equipment and storage medium
CN109388924A (en) A kind of auth method, device, server and storage medium
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN107817962B (en) Remote control method, device, control server and storage medium
US20120203542A1 (en) Opening A Message Catalog File For a Language That Is Not Installed
CN104092661B (en) The communication means and device of virtual machine serial ports
CN109657167B (en) Data acquisition method, device, server and storage medium
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN107861821B (en) Mining method and device for module call relation and computer readable medium
CN109284108A (en) Date storage method, device, electronic equipment and storage medium
CN113032805A (en) Data access method and device, electronic equipment and storage medium
CN110244986A (en) Browser configuration method and device
CN108845892A (en) Data processing method, device, equipment and the computer storage medium of distributed data base
JP7182744B1 (en) Deterministic Reproduction of Events Between Software Entities
CN109522174A (en) Control adb enabled method, apparatus, terminal and storage medium
CN115827316A (en) Data backup method, device, equipment and storage medium
CN109189753B (en) Method and device for adding user information in HUE
CN110262856A (en) A kind of application data acquisition method, device, terminal and storage medium

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