WO2016000354A1 - 一种实现单板配置的方法及装置 - Google Patents

一种实现单板配置的方法及装置 Download PDF

Info

Publication number
WO2016000354A1
WO2016000354A1 PCT/CN2014/088736 CN2014088736W WO2016000354A1 WO 2016000354 A1 WO2016000354 A1 WO 2016000354A1 CN 2014088736 W CN2014088736 W CN 2014088736W WO 2016000354 A1 WO2016000354 A1 WO 2016000354A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
configuration
configuration parameter
parameter
verification
Prior art date
Application number
PCT/CN2014/088736
Other languages
English (en)
French (fr)
Inventor
陈松
李朋
童玲玲
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016000354A1 publication Critical patent/WO2016000354A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of board configuration, and in particular, to a method and an apparatus for implementing a board configuration.
  • the power-on reset needs to initialize the CPU of the central processing unit, including the CPU and memory, and load the initialization operating system and initialize the field programmable gate array FPGA, software module, etc., is a complete process.
  • Soft reset does not require loading of the FPGA, digital signal processor DSP, etc., but only initializes some software modules.
  • the embodiment of the invention provides a method and a device for implementing the configuration of the board.
  • the configuration of the board is initialized in the related art, the inconsistency of the power-on state of the board is inconsistent, which brings inconvenience to the positioning.
  • an embodiment of the present invention provides a method for implementing a board configuration, including:
  • the first configuration parameter of the board in the preset storage unit is set to an invalid value, and the first configuration parameter is a configuration parameter of the board that is saved in advance;
  • the first configuration parameter in the preset storage unit is verified to obtain a verification result
  • the board is configured according to the first configuration parameter.
  • the method further includes:
  • the board is reconfigured according to the second configuration parameter.
  • the step of reconfiguring the board according to the second configuration parameter further includes:
  • the second configuration parameter of the board carried by the power-on configuration command is stored.
  • an embodiment of the present invention further provides an apparatus for implementing a single board configuration, including:
  • the setting module is configured to set the first configuration parameter of the board in the preset storage unit to an invalid value when the board is powered on, and the first configuration parameter is the pre-stored board.
  • the verification module is configured to perform verification on the first configuration parameter in the preset storage unit when the board is configured, to obtain a verification result
  • a recovery module configured to restore the first configuration parameter in the preset storage unit to a default configuration parameter of the board, and re-set the preset storage unit, when the verification result indicates that the verification fails.
  • the first configuration parameter in the verification is performed;
  • a first configuration module configured to follow the first when the verification result indicates that the verification is successful
  • the configuration parameters are configured on the board.
  • the foregoing apparatus for implementing the board configuration further includes:
  • a receiving module configured to receive a power-on configuration command, where the power-on configuration command carries a second configuration parameter of the board, where the second configuration parameter and the first configuration parameter are the same parameter for the board Configuration data;
  • a determining module configured to determine whether the second configuration parameter is consistent with the first configuration parameter, and obtain a determination result
  • the second configuration module is configured to reconfigure the board according to the second configuration parameter if the determination result is inconsistent.
  • the foregoing apparatus for implementing the board configuration further includes:
  • the storage module is configured to store the second configuration parameter of the board carried by the power-on configuration command.
  • the verification module is further configured to start configuration of the board after receiving a soft reset instruction for the board.
  • the embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by the board configuration device, so that the device can perform the above method.
  • Embodiments of the present invention also provide a carrier carrying the above computer program.
  • the method for implementing the configuration of the board in the embodiment of the present invention when the board is powered on the board, sets the first configuration parameter of the board in the preset storage unit to an invalid value, where the first configuration parameter is a pre-save list.
  • the configuration parameters of the board When the board is configured, the first configuration parameter in the preset storage unit is checked to obtain the verification result. When the verification result indicates that the verification fails, the storage unit is preset. The first configuration parameter is restored to the default configuration parameter of the board, and the first configuration parameter in the preset storage unit is re-checked. When the verification result indicates that the verification is successful, the board is configured according to the first configuration parameter. Configuration. By invalidating the first configuration parameter, the problem of inconsistent power-on state on the board is effectively solved, which facilitates positioning.
  • FIG. 1 is a flowchart of a method for implementing a board configuration in related art
  • FIG. 2 is a flowchart of a method for implementing a board configuration according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a specific embodiment of a method for implementing a board configuration according to the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for implementing a single board configuration according to an embodiment of the present invention.
  • the current on-board power-distribution mechanism is: Initialize the board according to the default value of the hardware without the board. If there is a board, if there is a power-on configuration. If the command is supported, the board is configured according to the power-on configuration command. If there is no power-on configuration command, the board is configured according to the value in the current important data. Among them, the board is the board information stored in the network management and proxy database, that is, the board information saved in the database when the board was last inserted.
  • the content stored in the board is the configuration information that is backed up to the database when the main control board where the board is located sends the power-on configuration command to the board.
  • the important data is the necessary configuration for the board configuration recorded in the memory. parameter.
  • the board is initialized according to the important data.
  • the board is inserted into different slots.
  • the initialization status may not be displayed. same. If you do not use the NMS to check the status of the board after the initialization is complete, it may be difficult to check the root cause of the problem, such as the above-mentioned service failure and docking failure. Single board It is unreasonable that the initialization state does not show consistency. Therefore, how to achieve the consistency of the initialization status of the board and ensure the correctness of the power-on reset and soft-reset board configuration is particularly important.
  • the embodiment of the present invention provides a method for implementing the configuration of the board. On the basis of weakening the important data, the problem of inconsistent electrical starting state on the board is effectively solved.
  • the method for implementing a board configuration in the embodiment of the present invention includes:
  • Step 11 When the board is powered on the board, set the first configuration parameter of the board in the preset storage unit to an invalid value, where the first configuration parameter is a configuration parameter of the board saved in advance. ;
  • step 12 when the board is configured, the first configuration parameter in the preset storage unit is verified to obtain a verification result.
  • Step 13 When the verification result indicates that the verification fails, the first configuration parameter in the preset storage unit is restored to the default configuration parameter of the board, and is re-introduced in the preset storage unit. The first configuration parameter is verified;
  • Step 14 When the verification result indicates that the verification is successful, configure the board according to the first configuration parameter.
  • the first configuration parameter of the board in the preset storage unit is all set to an invalid value;
  • the first configuration parameter in the preset storage unit is verified to obtain a verification result; when the verification result indicates that the verification fails, the first configuration parameter in the preset storage unit is restored to the default configuration parameter of the board, and
  • the first configuration parameter in the preset storage unit is re-checked. If the verification result indicates that the verification is successful, the board is configured according to the first configuration parameter.
  • the first configuration parameter is the important data mentioned above. By invalidating the first configuration parameter setting, the important data setting is invalidated. On the basis of weakening the important data, the problem of inconsistent power-on state on the board is effectively solved, and the positioning is facilitated.
  • the first configuration parameters ie, important data
  • the first configuration parameters that are set to invalid values are basically unable to pass the verification, and then pass Step 13 is restored to the default configuration parameters and then verified.
  • the board is configured according to the first configuration parameter. Therefore, the configuration of the board is implemented with the default configuration parameters, ensuring the consistency of the electrical start state of the board and ensuring the normal operation of the service.
  • the preset storage unit may be an electrically erasable programmable read only memory EEPROM.
  • any other memory capable of performing read operations and write operations may be used, and will not be further described herein.
  • step of the foregoing step 14 may further include:
  • Step 15 Receive a power-on configuration command, where the power-on configuration command carries a second configuration parameter of the board, where the second configuration parameter and the first configuration parameter are configurations for the same parameter of the board. data;
  • Step 16 Determine whether the second configuration parameter is consistent with the first configuration parameter, and obtain a determination result.
  • Step 17 If the result of the determination is inconsistent, the board is reconfigured according to the second configuration parameter.
  • the board is configured according to the configuration parameters carried in the power-on configuration command, which improves the operation accuracy and ensures the normal operation of the service.
  • step of the foregoing step 17 may further include:
  • Step 18 Store the second configuration parameter of the board carried by the power-on configuration command.
  • step 12 after the soft reset command for the board is received, the configuration of the board is started.
  • the board does not change the slot position during the soft reset, and the board startup status is inconsistent due to the slot change. Therefore, the first configuration parameter setting is not invalid through step 11, but proceeds directly to step 12. , avoiding redundant operations and improving operational efficiency on the basis of ensuring normal business.
  • the preset storage unit is an EEPROM.
  • the first configuration parameter ie, important data
  • the first configuration parameter in the EEPROM is obtained, and the first configuration parameter is verified to obtain a verification result; when the verification result indicates that the verification fails, the first configuration parameter in the EEPROM is restored to a single
  • the default configuration parameters of the board, and the first configuration parameter in the EEPROM is re-checked. If the verification result indicates that the verification is successful, the board is configured according to the first configuration parameter. If the configuration parameters of the configuration parameters are the same, the second configuration parameter is consistent with the first configuration parameter. If the determination is inconsistent, the board is reconfigured according to the power-on configuration command. In addition, after receiving the soft reset command for the board, the configuration of the board is started, that is, the step of obtaining the first configuration parameter is entered.
  • the EEPROM is written every time the board is powered, the number of EEPROM writes on the market can reach 1 million times or more. Even if the write operation is performed once a day, the EEPROM will be invalid in 2739.
  • the EEPROM write operation does not affect the effective implementation of the embodiment of the present invention, and the method for implementing the single board configuration of the embodiment of the present invention has great market value and application value.
  • the method for implementing the configuration of the board in the embodiment of the present invention effectively solves the problem that the electrical start state of the board is inconsistent and ensures the normal operation of the service on the basis of weakening the important data. And avoid unnecessary operations and improve operational efficiency.
  • an embodiment of the present invention further provides an apparatus for implementing a single board configuration, including:
  • the setting module is configured to set the first configuration parameter of the board in the preset storage unit to an invalid value when the board is powered on, and the first configuration parameter is the pre-stored board.
  • the verification module is configured to perform verification on the first configuration parameter in the preset storage unit when the board is configured, to obtain a verification result
  • a recovery module configured to restore the first configuration parameter in the preset storage unit to a default configuration parameter of the board, and re-set the preset storage unit, when the verification result indicates that the verification fails.
  • the first configuration parameter in the verification is performed;
  • the first configuration module is configured to configure the board according to the first configuration parameter when the verification result indicates that the verification is successful.
  • the device for implementing the configuration of the board in the embodiment of the invention effectively solves the problem that the electrical start state of the board is inconsistent and facilitates the positioning.
  • a receiving module configured to receive a power-on configuration command, where the power-on configuration command carries a second configuration parameter of the board, where the second configuration parameter and the first configuration parameter are the same parameter for the board Configuration data;
  • a determining module configured to determine whether the second configuration parameter is consistent with the first configuration parameter, and obtain a determination result
  • the second configuration module is configured to reconfigure the board according to the second configuration parameter if the determination result is inconsistent.
  • the board is configured according to the configuration parameters carried in the power-on configuration command, which improves the operation accuracy and ensures the normal operation of the service.
  • the storage module is configured to store the second configuration parameter of the board carried by the power-on configuration command.
  • the verification module may be configured to receive a soft reset instruction for the board After that, the configuration of the board is started.
  • the board does not change the slot during the soft reset.
  • the configuration of the board is started, which avoids unnecessary operations and improves the normal service. Operational efficiency.
  • the device for implementing the configuration of the board in the embodiment of the present invention effectively solves the problem that the electrical start state of the board is inconsistent, and ensures normal operation of the service.
  • the apparatus for implementing the configuration of the single board is the apparatus corresponding to the foregoing method for implementing the configuration of the single board, wherein all the implementation manners in the foregoing method embodiments are applicable to the embodiment of the apparatus, and the same can be achieved.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • Embodiments of the invention By invalidating the first configuration parameter, the problem of inconsistent power-on state on the board is effectively solved, which facilitates positioning.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

一种实现单板配置的方法及装置,涉及光纤传送网单板配置领域,该方法包括:在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;在对单板进行配置时,对所述预设存储单元中的第一配置参数进行校验,得到校验结果;在所述校验结果指示校验失败时,将所述预设存储单元中的第一配置参数恢复为所述单板的默认配置参数,并重新对所述预设存储单元中的第一配置参数进行校验;在所述校验结果指示校验成功时,按照所述第一配置参数对所述单板进行配置。

Description

一种实现单板配置的方法及装置 技术领域
本发明涉及单板配置领域,特别涉及一种实现单板配置的方法及装置。
背景技术
上电复位需要初始化中央处理器CPU系统,包括CPU和内存等,并加载初始化操作系统以及初始化领域可编程门阵列FPGA、软件模块等,是一个完整的过程。
软复位则不需要进行FPGA、数字信号处理器DSP等的加载,只是初始化一些软件模块。
而在光纤传送网领域的开发测试期间,对单板进行上电复位及软复位时,容易出现单板的初始化状态表现不一致的情况,如果不借助于网管查看单板初始化结束后的状态,出现问题例如业务不通,对接失败等就比较难查问题的根因。且单板的初始化状态没有表现出一致性本来就是不合理的,因此如何实现单板初始化状态的一致性,以及保证上电复位和软复位单板配置的正确性就显得尤为重要。
发明内容
本发明实施例提供一种实现单板配置的方法及装置,解决相关技术中对单板进行初始化状态的配置时会出现单板上电启动状态不一致,给定位带来不便的问题。
为解决上述技术问题,本发明的实施例提供一种实现单板配置的方法,包括:
在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;
在对单板进行配置时,对所述预设存储单元中的第一配置参数进行校验,得到校验结果;
在所述校验结果指示校验失败时,将所述预设存储单元中的第一配置参数恢复为所述单板的默认配置参数,并重新对所述预设存储单元中的第一配置参数进行校验;
在所述校验结果指示校验成功时,按照所述第一配置参数对所述单板进行配置。
可选地,所述按照所述第一配置参数对所述单板进行配置的步骤后还包括:
接收上电配置指令,所述上电配置指令携带所述单板的第二配置参数,所述第二配置参数与所述第一配置参数为针对所述单板的同一参数的配置数据;
判断所述第二配置参数与所述第一配置参数是否一致,得到判断结果;
若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置。
可选地,所述若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置的步骤后还包括:
对所述上电配置指令携带的所述单板的第二配置参数进行存储。
可选地,在接收到针对所述单板的软复位指令后,启动对所述单板的配置。
为解决上述技术问题,本发明的实施例还提供一种实现单板配置的装置,包括:
设置模块,设置为在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;
校验模块,设置为在对单板进行配置时,对所述预设存储单元中的第一配置参数进行校验,得到校验结果;
恢复模块,设置为在所述校验结果指示校验失败时,将所述预设存储单元中的第一配置参数恢复为所述单板的默认配置参数,并重新对所述预设存储单元中的第一配置参数进行校验;
第一配置模块,设置为在所述校验结果指示校验成功时,按照所述第一 配置参数对所述单板进行配置。
可选地,上述实现单板配置的装置还包括:
接收模块,设置为接收上电配置指令,所述上电配置指令携带所述单板的第二配置参数,所述第二配置参数与所述第一配置参数为针对所述单板的同一参数的配置数据;
判断模块,设置为判断所述第二配置参数与所述第一配置参数是否一致,得到判断结果;
第二配置模块,设置为若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置。
可选地,上述实现单板配置的装置还包括:
存储模块,用于对所述上电配置指令携带的所述单板的第二配置参数进行存储。
可选地,所述校验模块进一步用于在接收到针对所述单板的软复位指令后,启动对所述单板的配置。
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被单板配置装置执行时,使得该装置可执行上述方法。
本发明实施例还提供一种载有上述计算机程序的载体。
本发明实施例的实现单板配置的方法,在单板上电时,将单板在预设存储单元中的第一配置参数全部设置为一无效值,其中第一配置参数为预先保存的单板的配置参数;在对单板进行配置时,先对预设存储单元中的第一配置参数进行校验,得到校验结果;在校验结果指示校验失败时,将预设存储单元中的第一配置参数恢复为单板的默认配置参数,并重新对预设存储单元中的第一配置参数进行校验;在校验结果指示校验成功时,按照第一配置参数对单板进行配置。通过将第一配置参数设置无效,有效解决了单板上电启动状态不一致的问题,方便了定位。
附图概述
图1为相关技术实现单板配置的方法流程图;
图2为本发明实施例实现单板配置的方法流程图;
图3为本发明实现单板配置的方法一具体实施例的流程图;
图4为本发明实施例实现单板配置的装置的结构示意图。
本发明的较佳实施方式
下面将结合附图及具体实施例进行详细描述,在不冲突的情况下,本发明实施例和实施例中的特征可以相互任意组合。
由于目前的单板初始化机制存在的缺陷,在光线传送网领域的开发测试期间,常发生这类情况:假定一块单板在A槽位被配置了环回,且环回参数作为重要数据进行了存储,则在该单板更换到B槽位进行上电初始化时,会按照重要数据给该单板也配置环回,造成业务不通。但是网管上没有任何提示,导致定位许久后才确定单板业务不通是因为被配置了环回。同样的问题包括:假定一块单板在C槽位被配置了前向纠错FEC模式,且将FEC模式作为重要数据进行了存储,则在该单板换回其他槽位时会按照重要数据被配置成FEC模式,导致与其他超强型前向纠错AFEC单板不能对接。
如图1所示,目前的单板上电配置机制是:在没有应安板的情况下,按照硬件默认值对单板进行初始化配置;在有应安板的情况下,如果有上电配置命令支持,则按照上电配置命令对单板进行配置;在有应安板的情况下,如果没有上电配置命令支持,则根据当前重要数据中的数值对单板进行配置。其中,应安板是网管和代理数据库中保存的单板插板信息,即上一次插板时数据库中保存下来的插板信息。
其中,应安板中存储的内容是单板所在的主控板给单板下发上电配置命令时,备份到数据库中的配置信息,重要数据是记录到存储器中的单板配置的必要配置参数。
上述介绍中,对于有应安板,且没有上电配置命令支持的单板配置项,完全根据重要数据来配置单板的初始化状态,导致单板插到不同的槽位,初始化状态可能表现不一样。如果不借助于网管查看单板初始化结束后的状态,出现例如上述业务不通、对接失败等问题就比较难查问题的根因。且单板的 初始化状态没有表现出一致性本来就是不合理的。因此如何实现单板初始化状态的一致性,以及保证上电复位和软复位单板配置的正确性就显得尤为重要。
当前为了能够解决上述问题,也有一些应对方案,比如弱化重要数据的方案,具体如下:
1、如果有应安板,则单板的参数及命令完全按照应安板数据进行配置;
2、没有应安板的情况下,如果是上电复位,所有参数均根据默认值配置,不按照重要数据,这样可以保证所有同类型单板上电后工作状态相同,且易于定位。而插板后再进行配置,也就更新了应安板信息。如果在没有应安板情况下进行软复位,为了保证不影响业务,不能按照默认值配置,原则上配置信息均来源于当前工作参数的采集,并将采集到的参数更新到当前软件的状态。但对于某些无法通过采集获得,但关系到业务处理的参数需要记录到重要数据中,复位后恢复到该重要数据对应的状态。
通过分析上述弱化重要数据的方案,我们发现重要数据的功能虽然得到了弱化,但不可避免的仍然会出现单板启动状态不一致的情况。其中在没有应安板的情况下进行软复位时,某些无法通过采集获得的配置信息需要记录到重要数据中,复位后恢复到该重要数据对应的状态。此时,单板在更换槽位时,由于重要数据的作用仍然会出现启动状态不一致的情况。
针对上述弱化重要数据方案的缺陷,本发明的实施例提出了一种实现单板配置的方法,在弱化重要数据的基础上,有效解决了单板上电启动状态不一致的问题。
如图2所示,本发明实施例的实现单板配置的方法,包括:
步骤11,在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;
步骤12,在对单板进行配置时,对所述预设存储单元中的第一配置参数进行校验,得到校验结果;
步骤13,在所述校验结果指示校验失败时,将所述预设存储单元中的第一配置参数恢复为所述单板的默认配置参数,并重新对所述预设存储单元中的第一配置参数进行校验;
步骤14,在所述校验结果指示校验成功时,按照所述第一配置参数对所述单板进行配置。
本发明实施例的实现单板配置的方法,在单板上电时,将单板在预设存储单元中的第一配置参数全部设置为一无效值;在对单板进行配置时,先对预设存储单元中的第一配置参数进行校验,得到校验结果;在校验结果指示校验失败时,将预设存储单元中的第一配置参数恢复为单板的默认配置参数,并重新对预设存储单元中的第一配置参数进行校验;在校验结果指示校验成功时,按照第一配置参数对单板进行配置。其中,第一配置参数即为前文提到的重要数据。通过将第一配置参数设置无效,即将重要数据设置无效,在弱化重要数据的基础上,有效解决了单板上电启动状态不一致的问题,方便了定位。
其中,由于上述步骤11中将第一配置参数(即重要数据)全部设置成了无效值(如全F),因此这些被设置成无效值的第一配置参数基本都不能通过校验,进而通过步骤13恢复成默认配置参数后再进行校验,校验通过后,再根据第一配置参数对单板进行配置。从而以默认配置参数实现对单板的配置,保证了单板上电启动状态的一致性,保证了业务的正常运行。
另外,所述预设存储单元可以是电可擦可编程只读存储器EEPROM,当然,也可以是其他任一能实现读操作和写操作的存储器,在此不作进一步说明。
本发明的具体实施例中,上述步骤14的步骤后还可以包括:
步骤15,接收上电配置指令,所述上电配置指令携带所述单板的第二配置参数,所述第二配置参数与所述第一配置参数为针对所述单板的同一参数的配置数据;
步骤16,判断所述第二配置参数与所述第一配置参数是否一致,得到判断结果;
步骤17,若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置。
此时,在存在上电配置指令时,完全按照上电配置指令携带的配置参数对单板进行配置,提高了操作的准确性,保证了业务的正常运行。
可选地,上述步骤17的步骤后还可以包括:
步骤18,对所述上电配置指令携带的所述单板的第二配置参数进行存储。
此时,通过记录上电配置指令携带的配置信息,能保证下次上电配置操作的顺利进行,提高了操作的准确性。
本发明的具体实施例中,上述步骤12中,进一步在接收到针对所述单板的软复位指令后,启动对所述单板的配置。
此时,由于软复位时单板不会改变槽位,不会出现因为槽位改变而造成单板启动状态不一致的情况,因此不通过步骤11对第一配置参数设置无效,而直接进入步骤12,避免了多余的操作,在保证正常业务的基础上提高了操作效率。
下面对本发明的具体实施例举例说明如下。
如图3所示,假定预设存储单元为EEPROM,在单板上电时,将单板在EEPROM中的第一配置参数(即重要数据)全部设置为无效值(全F);在对单板进行配置时,获取EEPROM中的第一配置参数,并对第一配置参数进行校验,得到校验结果;在校验结果指示校验失败时,将EEPROM中的第一配置参数恢复为单板的默认配置参数,并重新对EEPROM中的第一配置参数进行校验;在校验结果指示校验成功时,按照第一配置参数对单板进行配置;其中,若接收到携带单板第二配置参数的上电配置指令,则判断第二配置参数与第一配置参数是否一致;若判断不一致,则按照上电配置指令对单板重新进行配置。另外,在接收到针对单板的软复位指令后,启动对单板的配置,即进入到获取第一配置参数的步骤。
其中,虽然每次在单板上电时都会对EEPROM进行写的操作,但目前市场上的EEPROM写次数能达到100万次或以上,即使每天进行一次写操作,2739年EEPROM才会失效,因此对EEPROM进行写操作不会影响本发明实施例的有效进行,且本发明实施例的实现单板配置的方法具有很大的市场价值和应用价值。
本发明实施例的实现单板配置的方法,在弱化重要数据的基础上,有效解决了单板上电启动状态不一致的问题,保证了业务的正常运行。且避免了不必要的操作,提高了操作效率。
如图4所示,本发明的实施例还提供了实现单板配置的装置,包括:
设置模块,设置为在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;
校验模块,设置为在对单板进行配置时,对所述预设存储单元中的第一配置参数进行校验,得到校验结果;
恢复模块,设置为在所述校验结果指示校验失败时,将所述预设存储单元中的第一配置参数恢复为所述单板的默认配置参数,并重新对所述预设存储单元中的第一配置参数进行校验;
第一配置模块,设置为在所述校验结果指示校验成功时,按照所述第一配置参数对所述单板进行配置。
本发明实施例的实现单板配置的装置,有效解决了单板上电启动状态不一致的问题,方便了定位。
其中,本发明实施例的实现单板配置的装置还可以包括:
接收模块,设置为接收上电配置指令,所述上电配置指令携带所述单板的第二配置参数,所述第二配置参数与所述第一配置参数为针对所述单板的同一参数的配置数据;
判断模块,设置为判断所述第二配置参数与所述第一配置参数是否一致,得到判断结果;
第二配置模块,设置为若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置。
此时,在存在上电配置指令时,完全按照上电配置指令携带的配置参数对单板进行配置,提高了操作的准确性,保证了业务的正常运行。
其中,本发明实施例的实现单板配置的装置还可以包括:
存储模块,设置为对所述上电配置指令携带的所述单板的第二配置参数进行存储。
此时,通过记录上电配置指令携带的配置信息,能保证下次上电配置操作的顺利进行,提高了操作的准确性。
可选地,所述校验模块可以设置为在接收到针对所述单板的软复位指令 后,启动对所述单板的配置。
此时,由于软复位时单板不会改变槽位,因此在接收到针对单板的软复位指令后,启动对单板的配置,避免了多余的操作,在保证正常业务的基础上提高了操作效率。
本发明实施例的实现单板配置的装置,有效解决了单板上电启动状态不一致的问题,保证了业务的正常运行。
需要说明的是,该实现单板配置的装置是与上述实现单板配置的方法相对应的装置,其中上述方法实施例中所有实现方式均适用于该装置的实施例中,也能达到同样的技术效果。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范 围应以权利要求所述的保护范围为准。
工业实用性
本发明实施例。通过将第一配置参数设置无效,有效解决了单板上电启动状态不一致的问题,方便了定位。

Claims (10)

  1. 一种实现单板配置的方法,包括:
    在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;
    在对单板进行配置时,对所述第一配置参数进行校验,得到校验结果;
    在所述校验结果指示校验失败时,将所述第一配置参数恢复为所述单板的默认配置参数,并重新对所述第一配置参数进行校验;
    在所述校验结果指示校验成功时,按照所述第一配置参数对所述单板进行配置。
  2. 根据权利要求1所述的方法,所述按照所述第一配置参数对所述单板进行配置的步骤后,该方法还包括:
    接收上电配置指令,所述上电配置指令携带所述单板的第二配置参数,所述第二配置参数与所述第一配置参数为针对所述单板的同一参数的配置数据;
    判断所述第二配置参数与所述第一配置参数是否一致,得到判断结果;
    若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置。
  3. 根据权利要求2所述的方法,所述若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置的步骤后,该方法还包括:
    对所述上电配置指令携带的所述单板的第二配置参数进行存储。
  4. 根据权利要求1所述的方法,还包括:在接收到针对所述单板的软复位指令后,启动对所述单板的配置。
  5. 一种实现单板配置的装置,包括:
    设置模块,其设置为:在单板上电时,将所述单板在预设存储单元中的第一配置参数全部设置为一无效值,所述第一配置参数为预先保存的所述单板的配置参数;
    校验模块,其设置为:在对单板进行配置时,对所述第一配置参数进行 校验,得到校验结果;
    恢复模块,其设置为:在所述校验结果指示校验失败时,将所述第一配置参数恢复为所述单板的默认配置参数,并重新对所述第一配置参数进行校验;以及
    第一配置模块,其设置为:在所述校验结果指示校验成功时,按照所述第一配置参数对所述单板进行配置。
  6. 根据权利要求5所述的装置,还包括:
    接收模块,其设置为:接收上电配置指令,所述上电配置指令携带所述单板的第二配置参数,所述第二配置参数与所述第一配置参数为针对所述单板的同一参数的配置数据;
    判断模块,其设置为:判断所述第二配置参数与所述第一配置参数是否一致,得到判断结果;以及
    第二配置模块,其设置为:若所述判断结果为不一致,则按照所述第二配置参数对所述单板重新进行配置。
  7. 根据权利要求6所述的装置,还包括:
    存储模块,其设置为:对所述上电配置指令携带的所述单板的第二配置参数进行存储。
  8. 根据权利要求5所述的装置,其中,所述校验模块还设置为在接收到针对所述单板的软复位指令后,启动对所述单板的配置。
  9. 一种计算机程序,包括程序指令,当该程序指令被单板配置装置执行时,使得该装置可执行权利要求1-4所述的方法。
  10. 一种载有权利要求9所述计算机程序的载体。
PCT/CN2014/088736 2014-06-30 2014-10-16 一种实现单板配置的方法及装置 WO2016000354A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410309149.8 2014-06-30
CN201410309149.8A CN105306239B (zh) 2014-06-30 2014-06-30 一种实现单板配置的方法及装置

Publications (1)

Publication Number Publication Date
WO2016000354A1 true WO2016000354A1 (zh) 2016-01-07

Family

ID=55018371

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088736 WO2016000354A1 (zh) 2014-06-30 2014-10-16 一种实现单板配置的方法及装置

Country Status (2)

Country Link
CN (1) CN105306239B (zh)
WO (1) WO2016000354A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109560943A (zh) * 2017-09-25 2019-04-02 中兴通讯股份有限公司 一种控制网元单板运行模式的方法及控制器
CN109600270A (zh) * 2019-01-25 2019-04-09 新华三技术有限公司 网络设备控制方法及网络设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042652A (zh) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 一种保护软件启动参数区的方法
CN101616031A (zh) * 2009-07-21 2009-12-30 中兴通讯股份有限公司 一种先进电信计算架构中设置单板参数的方法
CN101840345A (zh) * 2010-05-06 2010-09-22 深圳市九洲电器有限公司 一种配置参数的识别方法、系统及嵌入式设备
CN102055603A (zh) * 2009-11-03 2011-05-11 中兴通讯股份有限公司 网络电话单板配置方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026480B (zh) * 2006-02-20 2010-05-12 华为技术有限公司 Ipmi子系统及单板的上电方法
CN101419563A (zh) * 2008-11-13 2009-04-29 上海华为技术有限公司 一种单板及提高其可靠性的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042652A (zh) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 一种保护软件启动参数区的方法
CN101616031A (zh) * 2009-07-21 2009-12-30 中兴通讯股份有限公司 一种先进电信计算架构中设置单板参数的方法
CN102055603A (zh) * 2009-11-03 2011-05-11 中兴通讯股份有限公司 网络电话单板配置方法及系统
CN101840345A (zh) * 2010-05-06 2010-09-22 深圳市九洲电器有限公司 一种配置参数的识别方法、系统及嵌入式设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109560943A (zh) * 2017-09-25 2019-04-02 中兴通讯股份有限公司 一种控制网元单板运行模式的方法及控制器
CN109600270A (zh) * 2019-01-25 2019-04-09 新华三技术有限公司 网络设备控制方法及网络设备
CN109600270B (zh) * 2019-01-25 2021-08-06 新华三技术有限公司 网络设备控制方法及网络设备

Also Published As

Publication number Publication date
CN105306239A (zh) 2016-02-03
CN105306239B (zh) 2019-12-03

Similar Documents

Publication Publication Date Title
US9372769B2 (en) Server and inspecting method thereof
CN110928743B (zh) 一种计算系统、自动诊断方法及存储有其指令的介质
US20200250313A1 (en) Bios recovery and update
US20150154092A1 (en) Bios maintenance method
CN104461594B (zh) 嵌入式操作系统的升级方法及装置
CN111694760B (zh) 服务器系统、快闪存储器模块及更新固件映像文件的方法
US10212034B1 (en) Automated network change management
KR101949115B1 (ko) 디바이스 드라이버 검출 에러들의 자가 진단 및 자동 진단 데이터 수집
US9978418B2 (en) System and method for automated hardware compatibility testing
US20150154091A1 (en) Bios maintenance method
CN103257922B (zh) 一种快速测试bios与os接口代码可靠性的方法
CN109783390A (zh) Psu固件升降级稳定性测试方法、装置、终端及存储介质
WO2016000354A1 (zh) 一种实现单板配置的方法及装置
TW201500919A (zh) 基板管理控制器遠端調試系統及方法
CN106909382B (zh) 输出不同类型系统启动信息的方法及装置
WO2016122510A1 (en) Hard disk drive power removal
CN115951949A (zh) 一种bios的配置参数的恢复方法、装置及计算设备
KR20130075807A (ko) 백업 하드디스크 드라이브가 구비된 금융자동화기기 및 금융자동화기기의 부팅 방법
TWI668635B (zh) 主機板及其設定更新方法
JP5992029B2 (ja) 基本入出力システムプログラムコードの書き込み回路及び書き込み方法
TWI469576B (zh) 用戶端伺服器及對其功能測試全程監測的方法
US20140289506A1 (en) Apparatus and method for updating a device
US9417863B2 (en) System and method for expedited loading of an image onto a storage device
CN116719712B (zh) 处理器串口日志输出方法、装置、电子设备及存储介质
US20240126637A1 (en) Optimizing runtime system operation via pre-boot system analysis

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14896787

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14896787

Country of ref document: EP

Kind code of ref document: A1