WO2017198015A1 - Software upgrading method and apparatus - Google Patents
Software upgrading method and apparatus Download PDFInfo
- Publication number
- WO2017198015A1 WO2017198015A1 PCT/CN2017/080295 CN2017080295W WO2017198015A1 WO 2017198015 A1 WO2017198015 A1 WO 2017198015A1 CN 2017080295 W CN2017080295 W CN 2017080295W WO 2017198015 A1 WO2017198015 A1 WO 2017198015A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- board
- software
- software version
- device board
- upgrade
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
Definitions
- the present invention relates to the field of communications, and in particular to a software upgrade method and apparatus.
- Network management upgrades include board-level upgrades and batch upgrades.
- the board level upgrade is performed on a single board as a component.
- the components such as app/fpga/boot perform the upgrade and load process in sequence.
- the user configures one of the program files to start upgrading. After the upgrade loading process ends, check the upgrade version is correct. Configure the next component and execute it one by one.
- the batch upgrade has been improved on the basis of the original board-level upgrade. Users can select multiple boards and multiple components in the NE. After all the program files are configured, multiple boards and multiple files can be downloaded in parallel. Compared with the board-level upgrade, the batch upgrade implements centralized configuration and parallel download of upgrade files. After all the files to be upgraded are configured, one-click startup can be performed to check the final result, which greatly saves users' time.
- the general process of the command line upgrade is divided into two steps: 1. Establish communication between the PC and the device board, connect the board through the command line terminal, enable the tftp or ftp server on the PC, and enter the command to transfer the file to be upgraded to the board. Memory; 2, change file permissions, replace the old version file, manually reset and load new files. Check the board version after the board is reset. After the command line is upgraded, multiple update files can be transferred to the board in batches. After multiple component versions are replaced, the board is reset.
- the embodiment of the invention provides a software upgrade method and device, which at least solves the problem that the software upgrade efficiency caused by the manual software upgrade of the board is low in the related art.
- a software upgrade method including: obtaining a software version of a device board from a server according to a pre-configured upgrade policy, to obtain a first software version; determining the first software version and Whether the second software version of the current device board is consistent; if the judgment result is negative, the current device board is controlled to perform software upgrade.
- the obtaining, by the server, the software version of the device board from the server, to obtain the first software version, according to the pre-configured upgrade policy includes: acquiring the software version of the current device board from the server according to a predetermined period; or The full software version of the server is obtained from the server at a predetermined period.
- the method further includes: sending, by using a specified protocol, a software version query instruction to the current device board, where the specifying The protocol includes at least one of the following: a simple network management protocol snmp, a telnet protocol; and receiving the second software version reported by the current device board.
- the method further includes: activating the upgraded device board according to the software activation policy of the device board; wherein the software activation policy includes: After the device is upgraded, the device sends a reset command to the upgraded device to indicate that the upgraded device is activated. After receiving the selection command for the device activation, the device is upgraded. The device board sends a reset command to instruct the upgraded device board to activate.
- the method further includes: detecting an upgrade result of the software upgrade of the current device board, and recording a process log of the software upgrade of the current device board.
- the method further includes: receiving the current device report.
- the server obtains a software version corresponding to the newly added board, and controls the current board to perform software upgrade.
- a software upgrade apparatus including: an obtaining module, configured to acquire a software version of a device board from a server according to a pre-configured upgrade policy, to obtain a first software version;
- the determining module is configured to determine whether the first software version is consistent with the second software version of the current device board, and the control module is configured to control the current device board to perform software upgrade if the determination result is negative.
- the device further includes: a sending module, configured to send the software version to the current device board by using a specified protocol before determining whether the first software version is consistent with the second software version of the current device board Querying the command, wherein the specified protocol includes at least one of the following: a simple network management protocol, snmp, and a telnet protocol; and the first receiving module is configured to receive the second software version reported by the current device.
- a sending module configured to send the software version to the current device board by using a specified protocol before determining whether the first software version is consistent with the second software version of the current device board Querying the command, wherein the specified protocol includes at least one of the following: a simple network management protocol, snmp, and a telnet protocol; and the first receiving module is configured to receive the second software version reported by the current device.
- the device further includes: an activation module, configured to: after the software upgrade of the current device board is controlled, activate the upgraded device board according to the software activation policy of the device board; wherein the software The activation policy includes: after the software upgrade of the current device board, sending a reset command to the upgraded device board to indicate that the upgraded device board is activated; or receiving the device board activation operation. And after the selecting the command, sending a reset command to the upgraded device board to indicate that the upgraded device board is activated; or the device further includes: a detecting module, configured to control the current device board After the software is upgraded, check the upgrade result of the software upgrade of the current device board, and record the process log of the software upgrade of the current device board.
- an activation module configured to: after the software upgrade of the current device board is controlled, activate the upgraded device board according to the software activation policy of the device board; wherein the software The activation policy includes: after the software upgrade of the current device board, sending a reset command to the upgraded device board to indicate that the upgraded device board is activated; or
- the device further includes: a second receiving module, configured to receive a board type of the newly added board and a pair of the board type when the current device adds a board
- the second software module is configured to determine whether there is a software version corresponding to the received software version information in the first software version; the first processing module is set to be in the case that the determination result is yes And determining whether the first software version is consistent with the software version of the current device board, and if the determination result is negative, controlling the current device board to perform software upgrade; and the second processing module is set to determine the result. If not, the software version corresponding to the new board is obtained from the server, and the current board is controlled to perform software upgrade.
- a storage medium is also provided.
- the storage medium is arranged to store program code for performing the following steps:
- the current device board is controlled to perform software upgrade.
- the software version of the device board is obtained from the server according to the pre-configured upgrade policy to obtain the first software version; and the second software version of the current software board is consistent with the second software version of the current device board; If the result of the determination is negative, the current device board is controlled to perform software upgrade, which solves the problem of low software upgrade efficiency caused by the manual software upgrade of the board in the related art, thereby improving the software upgrade of the board. The effect of efficiency.
- FIG. 1 is a flow chart of a software upgrade method according to an embodiment of the present invention.
- FIG. 2 is a schematic structural diagram of a software upgrading apparatus according to an embodiment of the present invention.
- FIG. 3 is a flowchart (1) of a software upgrade method according to an embodiment of the present invention.
- FIG. 4 is a flowchart (2) of a software upgrade method according to an embodiment of the present invention.
- FIG. 5 is a structural block diagram of a software upgrading apparatus according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram (1) of a software upgrading apparatus according to an embodiment of the present invention.
- FIG. 7 is a structural block diagram (2) of a software upgrading apparatus according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram (3) of a software upgrading apparatus according to an embodiment of the present invention.
- FIG. 9 is a structural block diagram of a software upgrading apparatus according to an embodiment of the present invention (4).
- FIG. 10 is a structural block diagram (5) of a software upgrading apparatus according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a software upgrade method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
- Step S102 Obtain a software version of the device board from the server according to the pre-configured upgrade policy, to obtain a first software version.
- Step S104 Determine whether the first software version is consistent with the second software version of the current device board.
- step S106 if the determination result is no, the current device board is controlled to perform software upgrade.
- the application scenario of the software upgrade method includes, but is not limited to, a board software version upgrade, in which the device board is obtained from the server according to the pre-configured upgrade policy.
- the software version is obtained to obtain the first software version; whether the first software version is consistent with the second software version of the current device board; if the judgment result is no Control the current device board for software upgrade. That is to say, in this embodiment, the automatic upgrade is implemented by using the pre-configured upgrade policy, and the software upgrade efficiency caused by the manual operation of the board software upgrade is low. The problem is that the effect of improving the software upgrade efficiency of the board is achieved.
- the software upgrade method may be applied to the structural framework diagram as shown in FIG. 2, and the server uses the device vendor version server as an example.
- the server uses the device vendor version server as an example.
- the policy control device provides a UI interface to the user to configure an update activation policy, saves the update policy data xml file to the local, and periodically sends a message to the device 2 and the device 3 according to the update frequency policy.
- the network repository queries the download device, and can connect to the device vendor version server, query the version file through the protocol such as ftp or http, and download the version file to the local version library.
- Device 3 device communication interface device, which can directly integrate the traditional network management system or the command line system, send the query version command to the device board through the snmp or telnet mode, store the device version report to the local, and transmit the version through ftp or tftp protocol. The file is sent to the board and a reset command is sent to control the board reset.
- the upgrade result check recording device check the upgraded device version report and the local version library, record the automation result to the log file, and notify the user of the upgrade result through the popup window or the UI interface.
- This embodiment provides a software upgrade method, which can effectively solve the technical problems existing in the background art. You only need to configure the update and activation policies. All the board update processes and the newly installed board version acquisition process can be automated.
- the user configures an automatic upgrade policy and an activation policy through the UI interface.
- the network repository queries the download device, and periodically queries the device vendor version server for the version update according to the configuration of the policy control device. If there is an update, the version file is obtained. Save to the upgrade agent module locally.
- the device communication interface device obtains the version of the current device board from all the devices. When the device is inconsistent, the control device upgrades the board version and resets the activation board according to the activation policy.
- the device When the device has a newly installed board, the device is automatically reported to the device communication interface device. After the device updates the corresponding version file to the device version server, the newly installed board of the control device is upgraded and started with this new version file.
- the embodiment can solve the problem that the traditional method is inefficient and the manual operation is cumbersome, and the efficiency of the board program upgrade loading and version checking is improved, and the burden on the user is reduced.
- step S102 includes the following steps:
- Step S11 Obtain a software version of the current device board from the server according to a predetermined period
- step S12 all software versions of the server are obtained from the server according to a predetermined period.
- the latest software version of the latest software is automatically obtained through the board software version update policy, and the automatic upgrade of the board software is further implemented.
- step S104 the following steps are further included:
- Step S21 Send a software version query instruction to the current device board by using a specified protocol, where the specified protocol includes at least one of the following: a simple network management protocol snmp, a telnet protocol;
- Step S22 Receive the second software version reported by the current device board.
- the software version of the current device board is queried by the current device, and the software version of the current device board is compared with the latest software version obtained from the server, and The comparison results in automatic software upgrades.
- step S106 the following steps are further included:
- step S31 the upgraded device board is activated according to the software activation policy of the device board.
- the software activation policy includes: after the software upgrade of the current device board, the device sends a reset command to the upgraded device board to indicate that the upgraded device board is activated; or, the device board is received. After the operation selection command is activated, a reset command is sent to the upgraded device board to indicate that the upgraded device board is activated.
- the upgraded software board is activated according to the software activation policy of the board.
- the upgraded software board can run the upgraded software version.
- step S106 the following steps are further included:
- Step S41 The process result of the software upgrade of the current device board is verified, and the process log of the software upgrade of the current device board is recorded.
- the process log of the software upgrade is performed on the current device board obtained in step S41, so that the process of software upgrade of the device board can be tracked in real time.
- Step S51 Receive the board type of the newly added board and the software version information corresponding to the board type.
- Step S52 determining whether there is a software version corresponding to the received software version information in the first software version
- Step S54 If the determination result is yes, determine whether the first software version is consistent with the software version of the current device board, and if the determination result is no, control the current device board to perform software upgrade;
- step S55 if the determination result is negative, the software version corresponding to the newly added board is obtained from the server, and the current board is controlled to perform software upgrade.
- the software can be automatically upgraded in time when the board is added to the current device.
- the premise of the automatic upgrade is to manually configure the update policy, and the user configures the update policy and the activation policy through the UI interface.
- the update policy can be configured as the simplest update and the most complete update: the simplest update, that is, only the version of the board type of all the devices of the agent module is downloaded.
- the most complete update is to download the version of all the device boards of the device vendor.
- the activation policy can be configured as automatic activation and manual activation: automatic activation, no need to manually determine the upgrade agent module to update the version file to the board, directly send a reset command to the board to notify the board to reset and activate; when manually activated, you need to wait for the user to After the UI interface or the pop-up interface is clicked, the reset command is sent to the board to notify the board to reset.
- the specific process of automating the upgrade of a board includes the following steps:
- Step S61 The agent module is upgraded, and the update policy data xml stored by the device 1 is read to obtain an update policy. If the policy is the simplest update, the process proceeds to step S62. If the policy is the most complete update, the process proceeds to step S63.
- Step S62 The device 3 is configured to obtain a board of the current device, store the version information of the board to the local device version report, and connect to the device version server through the device 2, and comprehensively compare the device version report, the local version database and the server version library, if any Update to ftp or http to download to the local repository. Go to step S64.
- Step S63 The device 2 is connected to the device vendor version server, and checks all versions. If the local version does not exist or the version number is inconsistent, the device is downloaded to the local version repository through ftp or http. Go to step S64.
- Step S64 The agent module is upgraded, and the device version report and the local version database obtained by the device 3 are compared. For the board whose current version is inconsistent with the version of the local version, the process proceeds to step S65.
- Step S65 The agent module control device 3 is upgraded, and the new version is transferred to the device board memory by using ftp or tftp using the snmp or telnet tool.
- the activation strategy if The activation policy is automatic activation, and the process proceeds to step S66; if the activation policy is manual activation, the process proceeds to step S67.
- Step S66 The agent module control device 3 is upgraded, and the reset message is directly sent to the board by using the snmp or the telnet is sent to the board to input the reboot, and the board is reset and activated, and the process proceeds to step S68.
- Step S67 The agent module is upgraded, and the user is required to reset the active board through the UI interface or the popup window. After the user confirms, the user can use the snmp to directly send a reset message to the board or telnet to the board to input the reboot, and notify the board to reset. Go to step S68.
- Step S68 After the upgrade agent module waits for a certain period of time, the device 3 obtains the board of the current device, updates the board version information to the local device version report, compares the device version report with the local version, and checks the version information of the upgraded board. Save the upgrade log to a local file and notify the user of the upgrade result through the UI interface or popup window.
- step S61 to step S68 the part of the device board upgrade process may refer to step S301 to step S310 in FIG. 3 .
- the process of automatically obtaining a version of a newly installed board includes the following steps:
- Step S71 When the device has a new board installed, the device sends a new board type and version message to the device 3 of the upgrade agent module, and the device 3 saves the message to the locally added board list file.
- the upgrade agent module searches for the local version based on the newly added board list file. If the corresponding board version file does not go to step S72, if the corresponding board version file exists, the process proceeds to step S73.
- Step S72 The upgrade agent module is connected to the device version server to query the version of the new board in the newly added board list file, and the version file is downloaded to the local version through ftp or http, and the process proceeds to step S73.
- Step S73 The agent module is upgraded, and the newly added board list file and the local version library are compared. If the version is inconsistent, the process proceeds to step S74.
- Step S74 The agent module control device 3 is upgraded, and the new version is transferred to the device board memory in the ftp or tftp mode by using the snmp or telnet tool, and the process proceeds to step S75.
- Step S75 The agent module control device 3 is upgraded, and the reset message is directly sent to the board by using the snmp or the telnet is sent to the board to input the reboot, and the board is reset and activated, and the process proceeds to step S76.
- Step S76 After the upgrade agent module waits for a certain period of time, the device 3 is configured to query the version information of the board in the new board list file, update the version information to the newly added board list file, and compare the newly added board list file and the local version.
- the library checks the upgraded board version information, saves the upgrade log to a local file, and notifies the user of the upgrade result through the UI interface or popup window.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a software upgrade device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 5 is a structural block diagram of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes:
- the obtaining module 52 is configured to obtain a software version of the device board from the server according to the pre-configured upgrade policy, to obtain the first software version;
- the first determining module 54 is configured to determine the first software version and the current device board Whether the second software version is consistent;
- the control module 56 is configured to control the current device board to perform software upgrade if the determination result is negative.
- the application scenario of the software upgrade device includes, but is not limited to, a board software version upgrade.
- the device board is obtained from the server according to the pre-configured upgrade policy.
- the software version is used to obtain the first software version; whether the first software version is consistent with the second software version of the current device board; if the determination result is no, the current device board is controlled to perform software upgrade. That is to say, in this embodiment, the automatic upgrade is implemented by using the pre-configured upgrade policy, and the software upgrade efficiency caused by the manual operation of the board software upgrade is low. The problem is that the effect of improving the software upgrade efficiency of the board is achieved.
- FIG. 6 is a structural block diagram (1) of a software upgrading apparatus according to an embodiment of the present invention.
- the obtaining module 52 includes:
- the first obtaining unit 62 is configured to acquire the software version of the current device board from the server according to a predetermined period; or, the second acquiring unit is equivalent to replace the first acquiring unit, and the second acquiring unit is configured to follow the predetermined period from The server obtains the full software version of the server.
- the latest software version of the latest software is automatically obtained through the board software version update policy, and the automatic upgrade of the board software is further implemented.
- FIG. 7 is a structural block diagram (2) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes: in addition to the module shown in FIG.
- the sending module 72 is configured to send a software version query instruction to the current device board by using a specified protocol before determining whether the first software version is consistent with the second software version of the current device board, where the specified protocol includes At least one of the following: simple network management protocol snmp, telnet protocol;
- the first receiving module 74 is configured to receive the second software version reported by the current device board.
- the software version of the current device board is queried by the current device, and the software version of the current device board is compared with the latest software version obtained from the server, and The comparison results in automatic software upgrades.
- FIG. 8 is a structural block diagram (3) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes, in addition to the module shown in FIG.
- the activation module 82 is configured to activate the upgraded device board according to the software activation policy of the device board after the software upgrade of the current device board is performed;
- the software activation policy includes: after the software upgrade of the current device board, the device sends a reset command to the upgraded device board to indicate that the upgraded device board is activated; or, the device board is received. After the operation selection command is activated, a reset command is sent to the upgraded device board to indicate that the upgraded device board is activated.
- the upgraded device board After the software upgrade is performed on the current device board, the upgraded device board is activated according to the software activation policy of the board.
- the upgraded board can run the upgraded software version.
- FIG. 9 is a structural block diagram (4) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus includes, in addition to the module shown in FIG.
- the detection module 92 is configured to detect the upgrade result of the software upgrade of the current device board after the software upgrade of the current device board is performed, and record the process log of the software upgrade of the current device board.
- the process log of the software upgrade of the current device board obtained by the above device enables real-time tracking of the software upgrade process of the device board.
- FIG. 10 is a structural block diagram (5) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes: in addition to the module shown in FIG.
- the second receiving module 1002 is configured to receive the board type of the newly added board and the software version letter corresponding to the board type when the current device adds a board. interest;
- the second determining module 1004 is configured to determine whether there is a software version corresponding to the received software version information in the first software version
- the first processing module 1006 is configured to determine whether the software version of the first software version and the current device board are consistent, and if the determination result is negative, control the current device.
- the board is upgraded with software.
- the second processing module 1008 is configured to obtain a software version corresponding to the newly added board and control the current board to perform software upgrade if the determination result is negative.
- the software can be automatically upgraded in time when the board is added to the current device.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
- the forms are located in different processors.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- a mobile hard disk e.g., a hard disk
- magnetic memory e.g., a hard disk
- the processor performs the above steps S1, S2, and S3 according to the stored program code in the storage medium.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the foregoing technical solution provided by the embodiment of the present invention may be applied to the software upgrade process, and the software version of the device board is obtained from the server according to the pre-configured upgrade policy to obtain the first software version; the first software version and the current software version are determined. Whether the second software version of the board is the same. If the result of the judgment is no, the current device board is controlled to perform software upgrade, which solves the software upgrade efficiency caused by the manual software upgrade of the board. The low problem has the effect of improving the efficiency of the board software upgrade.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a software upgrading method and apparatus. The method comprises: obtaining a software version of a device board from a server according to a preconfigured upgrading policy, so as to obtain a first software version; determining whether the first software version is consistent with a second software version of the current device board; and if the determining result is not, controlling the current device board to update software. By means of the present invention, the problem in the related art of low efficiency of software upgrading caused by manual updating operations of board software is resolved, thereby achieving the effect of improving the upgrading efficiency of board software.
Description
本发明涉及通信领域,具体而言,涉及一种软件升级方法及装置。The present invention relates to the field of communications, and in particular to a software upgrade method and apparatus.
传送网产品升级和加载一直是售后工作的重中之重,传统的传送网产品升级有两种方式:网管升级和命令行升级。The upgrade and loading of transport network products has always been the top priority of after-sales work. There are two ways to upgrade traditional transport network products: network management upgrade and command line upgrade.
网管升级又包括板级升级和批量升级。其中板级升级以单个单板当个组件为单位,app/fpga/boot等组件依次执行升级和加载过程,用户配置其中某个程序文件开始升级,待升级加载过程结束,检查升级版本无误后再配置下一个组件,依次执行。批量升级在原有板级升级的基础上有了改进,用户可以自主选择网元内的多块单板、多个组件,配置好所有的程序文件后,同时实现多单板多文件并行下载。和板级升级相比,批量升级实现了升级文件的集中配置和并行下载,只需配置好所有待升级文件后,一键启动,检查最后的结果即可,大大节省了用户的时间。Network management upgrades include board-level upgrades and batch upgrades. The board level upgrade is performed on a single board as a component. The components such as app/fpga/boot perform the upgrade and load process in sequence. The user configures one of the program files to start upgrading. After the upgrade loading process ends, check the upgrade version is correct. Configure the next component and execute it one by one. The batch upgrade has been improved on the basis of the original board-level upgrade. Users can select multiple boards and multiple components in the NE. After all the program files are configured, multiple boards and multiple files can be downloaded in parallel. Compared with the board-level upgrade, the batch upgrade implements centralized configuration and parallel download of upgrade files. After all the files to be upgraded are configured, one-click startup can be performed to check the final result, which greatly saves users' time.
命令行升级的一般过程分为两步:1、建立PC与设备单板的通讯,通过命令行终端连接单板,在PC上开启tftp或者ftp服务器,输入命令将待升级版本文件传输到单板存储器;2、更改文件权限,替换老的版本文件,手工复位加载新文件。等待单板复位后,检查单板版本。命令行升级也可以批量传输多个更新文件到单板,替换多个组件版本之后,统一复位单板。The general process of the command line upgrade is divided into two steps: 1. Establish communication between the PC and the device board, connect the board through the command line terminal, enable the tftp or ftp server on the PC, and enter the command to transfer the file to be upgraded to the board. Memory; 2, change file permissions, replace the old version file, manually reset and load new files. Check the board version after the board is reset. After the command line is upgraded, multiple update files can be transferred to the board in batches. After multiple component versions are replaced, the board is reset.
传统单板软件升级方法存在两个问题:1、无论是网管升级还是命令行升级,都需要用户进行大量的手工操作,其低下的升级效率已经远远不能满足日益庞大的工程应用的需要;同时升级后的版本检查过程繁琐,出现故障后无法分析原因;2、若子卡器件损坏,更换新子卡需要通过命令行重新升级该单板程序,操作繁琐。There are two problems with the traditional single-board software upgrade method: 1. Whether it is the network management upgrade or the command line upgrade, the user needs a lot of manual operations, and the low upgrade efficiency is far from meeting the needs of the increasingly large engineering applications; The upgraded version check process is cumbersome. After the fault occurs, the cause cannot be analyzed. 2. If the daughter card device is damaged, replacing the new daughter card requires re-upgrading the board program through the command line. The operation is cumbersome.
针对相关技术中,通过手工操作进行单板软件升级所造成的软件升级
效率较低的问题,尚未提出有效地解决方案。Software upgrade caused by manual software upgrade of the board in the related technology.
The problem of low efficiency has not yet come up with an effective solution.
发明内容Summary of the invention
本发明实施例提供了一种软件升级方法及装置,以至少解决相关技术中通过手工操作进行单板软件升级所造成的软件升级效率较低的问题。The embodiment of the invention provides a software upgrade method and device, which at least solves the problem that the software upgrade efficiency caused by the manual software upgrade of the board is low in the related art.
根据本发明的一个实施例,提供了一种软件升级方法,包括:根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;判断所述第一软件版本和当前设备单板的第二软件版本是否一致;在判断结果为否的情况下,控制所述当前设备单板进行软件升级。According to an embodiment of the present invention, a software upgrade method is provided, including: obtaining a software version of a device board from a server according to a pre-configured upgrade policy, to obtain a first software version; determining the first software version and Whether the second software version of the current device board is consistent; if the judgment result is negative, the current device board is controlled to perform software upgrade.
可选地,所述根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本包括:按照预定周期从服务器获取所述当前设备单板的软件版本;或者,按照预定周期从服务器获取所述服务器的全部软件版本。Optionally, the obtaining, by the server, the software version of the device board from the server, to obtain the first software version, according to the pre-configured upgrade policy, includes: acquiring the software version of the current device board from the server according to a predetermined period; or The full software version of the server is obtained from the server at a predetermined period.
可选地,在判断所述第一软件版本和当前设备单板的第二软件版本是否一致之前,还包括:通过指定协议向所述当前设备单板发送软件版本查询指令,其中,所述指定协议包括以下至少之一:简单网络管理协议snmp、telnet协议;接收所述当前设备单板上报的所述第二软件版本。Optionally, before determining whether the first software version is consistent with the second software version of the current device board, the method further includes: sending, by using a specified protocol, a software version query instruction to the current device board, where the specifying The protocol includes at least one of the following: a simple network management protocol snmp, a telnet protocol; and receiving the second software version reported by the current device board.
可选地,在控制所述当前设备单板进行软件升级之后,还包括:根据设备单板的软件激活策略,激活升级后的设备单板;其中,所述软件激活策略包括:在所述当前设备单板进行软件升级之后,直接向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活;或者,在接收到设备单板激活操作的选择指令后,向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活。Optionally, after the software upgrade is performed on the current device board, the method further includes: activating the upgraded device board according to the software activation policy of the device board; wherein the software activation policy includes: After the device is upgraded, the device sends a reset command to the upgraded device to indicate that the upgraded device is activated. After receiving the selection command for the device activation, the device is upgraded. The device board sends a reset command to instruct the upgraded device board to activate.
可选地,在控制所述当前设备单板进行软件升级之后,还包括:检测当前设备单板进行软件升级后的升级结果,并记录所述当前设备单板进行软件升级的过程日志。Optionally, after the software upgrade of the current device board is performed, the method further includes: detecting an upgrade result of the software upgrade of the current device board, and recording a process log of the software upgrade of the current device board.
可选地,在当前设备新增单板的情况下,还包括:接收当前设备上报
的新增单板的单板类型以及该单板类型对应的软件版本信息;判断所述第一软件版本中是否存在与接收到的软件版本信息对应的软件版本;在判断结果为是的情况下,判断所述第一软件版本和当前设备单板的软件版本是否一致,并在判断结果为否的情况下,控制所述当前设备单板进行软件升级;在判断结果为否的情况下,向所述服务器获取与所述新增单板对应的软件版本,并控制所述当前单板进行软件升级。Optionally, if the current device adds a board, the method further includes: receiving the current device report.
The board type of the newly added board and the software version information corresponding to the board type; determining whether there is a software version corresponding to the received software version information in the first software version; if the judgment result is yes And determining whether the first software version is consistent with the software version of the current device board, and if the determination result is negative, controlling the current device board to perform software upgrade; if the determination result is no, The server obtains a software version corresponding to the newly added board, and controls the current board to perform software upgrade.
根据本发明的另一个实施例,提供了一种软件升级装置,包括:获取模块,设置为根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;第一判断模块,设置为判断所述第一软件版本和当前设备单板的第二软件版本是否一致;控制模块,设置为在判断结果为否的情况下,控制所述当前设备单板进行软件升级。According to another embodiment of the present invention, a software upgrade apparatus is provided, including: an obtaining module, configured to acquire a software version of a device board from a server according to a pre-configured upgrade policy, to obtain a first software version; The determining module is configured to determine whether the first software version is consistent with the second software version of the current device board, and the control module is configured to control the current device board to perform software upgrade if the determination result is negative.
可选地,所述装置还包括:发送模块,设置为在判断所述第一软件版本和当前设备单板的第二软件版本是否一致之前,通过指定协议向所述当前设备单板发送软件版本查询指令,其中,所述指定协议包括以下至少之一:简单网络管理协议snmp、telnet协议;第一接收模块,设置为接收所述当前设备单板上报的所述第二软件版本。Optionally, the device further includes: a sending module, configured to send the software version to the current device board by using a specified protocol before determining whether the first software version is consistent with the second software version of the current device board Querying the command, wherein the specified protocol includes at least one of the following: a simple network management protocol, snmp, and a telnet protocol; and the first receiving module is configured to receive the second software version reported by the current device.
可选地,所述装置还包括:激活模块,设置为在控制所述当前设备单板进行软件升级之后,根据设备单板的软件激活策略,激活升级后的设备单板;其中,所述软件激活策略包括:在所述当前设备单板进行软件升级之后,直接向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活;或者,在接收到设备单板激活操作的选择指令后,向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活;或者,所述装置还包括:检测模块,设置为在控制所述当前设备单板进行软件升级之后,检测当前设备单板进行软件升级后的升级结果,并记录所述当前设备单板进行软件升级的过程日志。Optionally, the device further includes: an activation module, configured to: after the software upgrade of the current device board is controlled, activate the upgraded device board according to the software activation policy of the device board; wherein the software The activation policy includes: after the software upgrade of the current device board, sending a reset command to the upgraded device board to indicate that the upgraded device board is activated; or receiving the device board activation operation. And after the selecting the command, sending a reset command to the upgraded device board to indicate that the upgraded device board is activated; or the device further includes: a detecting module, configured to control the current device board After the software is upgraded, check the upgrade result of the software upgrade of the current device board, and record the process log of the software upgrade of the current device board.
可选地,所述装置还包括:第二接收模块,设置为在当前设备新增单板的情况下,接收当前设备上报的新增单板的单板类型以及该单板类型对
应的软件版本信息;第二判断模块,设置为判断所述第一软件版本中是否存在与接收到的软件版本信息对应的软件版本;第一处理模块,设置为在判断结果为是的情况下,判断所述第一软件版本和当前设备单板的软件版本是否一致,并在判断结果为否的情况下,控制所述当前设备单板进行软件升级;第二处理模块,设置为在判断结果为否的情况下,向所述服务器获取与所述新增单板对应的软件版本,并控制所述当前单板进行软件升级。Optionally, the device further includes: a second receiving module, configured to receive a board type of the newly added board and a pair of the board type when the current device adds a board
The second software module is configured to determine whether there is a software version corresponding to the received software version information in the first software version; the first processing module is set to be in the case that the determination result is yes And determining whether the first software version is consistent with the software version of the current device board, and if the determination result is negative, controlling the current device board to perform software upgrade; and the second processing module is set to determine the result. If not, the software version corresponding to the new board is obtained from the server, and the current board is controlled to perform software upgrade.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is arranged to store program code for performing the following steps:
根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;Obtain the software version of the device board from the server to obtain the first software version according to the pre-configured upgrade policy.
判断所述第一软件版本和当前设备单板的第二软件版本是否一致;Determining whether the first software version is consistent with the second software version of the current device board;
在判断结果为否的情况下,控制所述当前设备单板进行软件升级。If the result of the determination is no, the current device board is controlled to perform software upgrade.
通过本发明实施例,根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;判断该第一软件版本和当前设备单板的第二软件版本是否一致;在判断结果为否的情况下,控制该当前设备单板进行软件升级,解决了相关技术中通过手工操作进行单板软件升级所造成的软件升级效率较低的问题,进而达到了提高单板软件升级效率的效果。According to the embodiment of the present invention, the software version of the device board is obtained from the server according to the pre-configured upgrade policy to obtain the first software version; and the second software version of the current software board is consistent with the second software version of the current device board; If the result of the determination is negative, the current device board is controlled to perform software upgrade, which solves the problem of low software upgrade efficiency caused by the manual software upgrade of the board in the related art, thereby improving the software upgrade of the board. The effect of efficiency.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的软件升级方法流程图;1 is a flow chart of a software upgrade method according to an embodiment of the present invention;
图2是根据本发明实施例的软件升级装置的结构示意图;2 is a schematic structural diagram of a software upgrading apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的软件升级方法流程图(一);3 is a flowchart (1) of a software upgrade method according to an embodiment of the present invention;
图4是根据本发明实施例的软件升级方法流程图(二);
4 is a flowchart (2) of a software upgrade method according to an embodiment of the present invention;
图5是根据本发明实施例的软件升级装置的结构框图;FIG. 5 is a structural block diagram of a software upgrading apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的软件升级装置的结构框图(一);6 is a structural block diagram (1) of a software upgrading apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的软件升级装置的结构框图(二);7 is a structural block diagram (2) of a software upgrading apparatus according to an embodiment of the present invention;
图8是根据本发明实施例的软件升级装置的结构框图(三);FIG. 8 is a structural block diagram (3) of a software upgrading apparatus according to an embodiment of the present invention; FIG.
图9根据本发明实施例的软件升级装置的结构框图(四);FIG. 9 is a structural block diagram of a software upgrading apparatus according to an embodiment of the present invention (4);
图10根据本发明实施例的软件升级装置的结构框图(五)。FIG. 10 is a structural block diagram (5) of a software upgrading apparatus according to an embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
在本实施例中提供了一种软件升级方法,图1是根据本发明实施例的软件升级方法流程图,如图1所示,该流程包括如下步骤:A software upgrade method is provided in this embodiment. FIG. 1 is a flowchart of a software upgrade method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;Step S102: Obtain a software version of the device board from the server according to the pre-configured upgrade policy, to obtain a first software version.
步骤S104,判断该第一软件版本和当前设备单板的第二软件版本是否一致;Step S104: Determine whether the first software version is consistent with the second software version of the current device board.
步骤S106,在判断结果为否的情况下,控制该当前设备单板进行软件升级。In step S106, if the determination result is no, the current device board is controlled to perform software upgrade.
可选地,在本实施例中,上述软件升级方法的应用场景包括但并不限于:单板软件版本升级中,在该应用场景下,根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;判断该第一软件版本和当前设备单板的第二软件版本是否一致;在判断结果为否的情况
下,控制该当前设备单板进行软件升级。也就是说,本实施例通过预先配置的升级策略实现自动升级,而无需人工手动进行单板软件升级,进而解决了相关技术中通过手工操作进行单板软件升级所造成的软件升级效率较低的问题,达到了提高单板软件升级效率的效果。Optionally, in this embodiment, the application scenario of the software upgrade method includes, but is not limited to, a board software version upgrade, in which the device board is obtained from the server according to the pre-configured upgrade policy. The software version is obtained to obtain the first software version; whether the first software version is consistent with the second software version of the current device board; if the judgment result is no
Control the current device board for software upgrade. That is to say, in this embodiment, the automatic upgrade is implemented by using the pre-configured upgrade policy, and the software upgrade efficiency caused by the manual operation of the board software upgrade is low. The problem is that the effect of improving the software upgrade efficiency of the board is achieved.
可选地,上述软件升级方法可以适用于如图2所述的结构框架示意图中,服务器以设备商版本服务器为例。其中包括:Optionally, the software upgrade method may be applied to the structural framework diagram as shown in FIG. 2, and the server uses the device vendor version server as an example. These include:
装置1:策略控制装置,提供UI界面给用户配置更新激活策略,保存更新策略数据xml文件至本地,根据更新频率策略,定时发消息给装置2和装置3。Device 1: The policy control device provides a UI interface to the user to configure an update activation policy, saves the update policy data xml file to the local, and periodically sends a message to the device 2 and the device 3 according to the update frequency policy.
装置2:网络版本库查询下载装置,可以连接设备商版本服务器,通过ftp或者http等协议,查询版本文件,下载版本文件至本地版本库存储。Device 2: The network repository queries the download device, and can connect to the device vendor version server, query the version file through the protocol such as ftp or http, and download the version file to the local version library.
装置3:设备通讯接口装置,此装置可以直接集成传统的网管或者命令行系统,通过snmp或者telnet方式,发送查询版本命令至设备单板,存储设备版本报表至本地,通过ftp或者tftp协议传送版本文件至单板,发送复位指令控制单板复位激活。Device 3: device communication interface device, which can directly integrate the traditional network management system or the command line system, send the query version command to the device board through the snmp or telnet mode, store the device version report to the local, and transmit the version through ftp or tftp protocol. The file is sent to the board and a reset command is sent to control the board reset.
装置4:升级结果检查记录装置,检查升级后设备版本报表与本地版库,记录自动化结果至日志文件,通过弹窗或者UI界面将升级结果通知用户。Device 4: The upgrade result check recording device, check the upgraded device version report and the local version library, record the automation result to the log file, and notify the user of the upgrade result through the popup window or the UI interface.
下面结合具体示例,对本实施例进行举例说明。The present embodiment will be exemplified below with reference to specific examples.
本实施例提出了一种软件升级的方法,可以有效解决背景技术中存在的技术问题。用户只需配置好更新和激活策略,所有的设备单板更新过程以及新安装单板版本获取过程,都可以实现自动化。This embodiment provides a software upgrade method, which can effectively solve the technical problems existing in the background art. You only need to configure the update and activation policies. All the board update processes and the newly installed board version acquisition process can be automated.
其中,主要包括以下步骤:Among them, it mainly includes the following steps:
A、用户通过UI界面,配置自动升级策略和激活策略。A. The user configures an automatic upgrade policy and an activation policy through the UI interface.
B、网络版本库查询下载装置,根据策略控制装置的配置情况,定期向设备商版本服务器查询版本更新情况,如果有更新,则获得版本文件存
储至升级代理模块本地。B. The network repository queries the download device, and periodically queries the device vendor version server for the version update according to the configuration of the policy control device. If there is an update, the version file is obtained.
Save to the upgrade agent module locally.
C、设备通讯接口装置,从所有设备获取当前设备单板版本,与本地版本比较,发现不一致时,控制设备升级单板版本,并且根据激活策略,复位激活升级单板。C. The device communication interface device obtains the version of the current device board from all the devices. When the device is inconsistent, the control device upgrades the board version and resets the activation board according to the activation policy.
D、升级结果检查记录装置,等待升级结束后检查升级结果,记录升级过程日志,推送升级结果给用户。D. Check the recording device of the upgrade result, wait for the upgrade result to check the upgrade result, record the upgrade process log, and push the upgrade result to the user.
E、设备有新安装单板时,主动上报设备通讯接口装置,后者向设备商版本服务器更新相应版本文件后,控制设备新安装单板使用此新版本文件升级启动。E. When the device has a newly installed board, the device is automatically reported to the device communication interface device. After the device updates the corresponding version file to the device version server, the newly installed board of the control device is upgraded and started with this new version file.
通过本实施例能够解决传统方法效率低下,人工操作繁琐的问题,提升单板程序升级加载及版本检查的效率,减轻用户的负担。The embodiment can solve the problem that the traditional method is inefficient and the manual operation is cumbersome, and the efficiency of the board program upgrade loading and version checking is improved, and the burden on the user is reduced.
在一个可选地实施方式中,上述步骤S102包括以下步骤:In an optional implementation manner, the foregoing step S102 includes the following steps:
步骤S11,按照预定周期从服务器获取该当前设备单板的软件版本;或者,Step S11: Obtain a software version of the current device board from the server according to a predetermined period; or
步骤S12,按照预定周期从服务器获取该服务器的全部软件版本。In step S12, all software versions of the server are obtained from the server according to a predetermined period.
在该可选实施方式中,通过上述单板软件版本更新策略自动获取最新的部分或全部的软件版本,进一步实现了单板软件自动升级的效果。In the optional implementation manner, the latest software version of the latest software is automatically obtained through the board software version update policy, and the automatic upgrade of the board software is further implemented.
在一个可选地实施方式中,在上述步骤S104之前,还包括以下步骤:In an optional implementation manner, before the step S104, the following steps are further included:
步骤S21,通过指定协议向该当前设备单板发送软件版本查询指令,其中,该指定协议包括以下至少之一:简单网络管理协议snmp、telnet协议;Step S21: Send a software version query instruction to the current device board by using a specified protocol, where the specified protocol includes at least one of the following: a simple network management protocol snmp, a telnet protocol;
步骤S22,接收该当前设备单板上报的该第二软件版本。Step S22: Receive the second software version reported by the current device board.
在该可选实施方式中,通过指定协议向当前设备单板查询当前设备单板的软件版本,使得能够根据获取的当前设备单板的软件版本和从服务器获取的最新软件版本进行比较,并根据比较结果实现软件自动升级。In the optional implementation, the software version of the current device board is queried by the current device, and the software version of the current device board is compared with the latest software version obtained from the server, and The comparison results in automatic software upgrades.
可选地,在上述步骤S106之后,还包括以下步骤:
Optionally, after the foregoing step S106, the following steps are further included:
步骤S31,根据设备单板的软件激活策略,激活升级后的设备单板;In step S31, the upgraded device board is activated according to the software activation policy of the device board.
其中,该软件激活策略包括:在该当前设备单板进行软件升级之后,直接向升级后的设备单板发送复位指令以指示该升级后的设备单板进行激活;或者,在接收到设备单板激活操作的选择指令后,向升级后的设备单板发送复位指令以指示该升级后的设备单板进行激活。The software activation policy includes: after the software upgrade of the current device board, the device sends a reset command to the upgraded device board to indicate that the upgraded device board is activated; or, the device board is received. After the operation selection command is activated, a reset command is sent to the upgraded device board to indicate that the upgraded device board is activated.
通过步骤S31,在当前设备单板进行软件升级后,根据设备单板的软件激活策略,激活升级后的设备单板,使得升级后的设备单板能够正常运行升级后的软件版本。After the software upgrade is performed on the current device board, the upgraded software board is activated according to the software activation policy of the board. The upgraded software board can run the upgraded software version.
可选地,在上述步骤S106之后,还包括以下步骤:Optionally, after the foregoing step S106, the following steps are further included:
步骤S41,检测当前设备单板进行软件升级后的升级结果,并记录该当前设备单板进行软件升级的过程日志。Step S41: The process result of the software upgrade of the current device board is verified, and the process log of the software upgrade of the current device board is recorded.
通过步骤S41得到的当前设备单板进行软件升级的过程日志,使得能够对设备单板进行软件升级的过程进行实时跟踪。The process log of the software upgrade is performed on the current device board obtained in step S41, so that the process of software upgrade of the device board can be tracked in real time.
在一个可选地实施方式中,在当前设备新增单板的情况下,还包括以下步骤:In an optional implementation manner, if a board is added to the current device, the following steps are also included:
步骤S51,接收当前设备上报的新增单板的单板类型以及该单板类型对应的软件版本信息;Step S51: Receive the board type of the newly added board and the software version information corresponding to the board type.
步骤S52,判断该第一软件版本中是否存在与接收到的软件版本信息对应的软件版本;Step S52, determining whether there is a software version corresponding to the received software version information in the first software version;
步骤S54,在判断结果为是的情况下,判断该第一软件版本和当前设备单板的软件版本是否一致,并在判断结果为否的情况下,控制该当前设备单板进行软件升级;Step S54: If the determination result is yes, determine whether the first software version is consistent with the software version of the current device board, and if the determination result is no, control the current device board to perform software upgrade;
步骤S55,在判断结果为否的情况下,向该服务器获取与该新增单板对应的软件版本,并控制该当前单板进行软件升级。In step S55, if the determination result is negative, the software version corresponding to the newly added board is obtained from the server, and the current board is controlled to perform software upgrade.
通过该可选方式中,在当前设备新增单板的情况下,能够对新增单板及时进行软件自动升级。
In this optional mode, the software can be automatically upgraded in time when the board is added to the current device.
下面结合具体示例,对本实施例进行举例说明。The present embodiment will be exemplified below with reference to specific examples.
可选实施例1Alternative embodiment 1
自动化升级的前提是人工配置好更新策略,用户通过UI界面配置更新策略和激活策略。The premise of the automatic upgrade is to manually configure the update policy, and the user configures the update policy and the activation policy through the UI interface.
更新策略可以配置为最简更新和最全更新:最简更新,即只下载本代理模块所有管辖设备存在单板类型的版本;最全更新,即下载设备商所有设备单板类型的版本。The update policy can be configured as the simplest update and the most complete update: the simplest update, that is, only the version of the board type of all the devices of the agent module is downloaded. The most complete update is to download the version of all the device boards of the device vendor.
激活策略可以配置为自动激活和手工激活:自动激活,无需人工确定,升级代理模块更新版本文件至单板后,直接发送复位命令至单板通知单板复位激活;手工激活时,需要等待用户在UI界面或者弹窗界面点击确定后,在发送复位命令至单板通知单板复位激活。The activation policy can be configured as automatic activation and manual activation: automatic activation, no need to manually determine the upgrade agent module to update the version file to the board, directly send a reset command to the board to notify the board to reset and activate; when manually activated, you need to wait for the user to After the UI interface or the pop-up interface is clicked, the reset command is sent to the board to notify the board to reset.
设备单板自动化升级的具体流程包括以下步骤:The specific process of automating the upgrade of a board includes the following steps:
步骤S61:升级代理模块,读取装置1所存储的更新策略数据xml,获取更新策略,如果策略为最简更新,进入步骤S62,如果策略为最全更新,进入步骤S63。Step S61: The agent module is upgraded, and the update policy data xml stored by the device 1 is read to obtain an update policy. If the policy is the simplest update, the process proceeds to step S62. If the policy is the most complete update, the process proceeds to step S63.
步骤S62:通过装置3,获取当前设备存在单板,存储单板版本信息至本地设备版本报表,通过装置2连接设备商版本服务器,综合比较设备版本报表,本地版本库和服务器版本库,如有更新就ftp或者http下载到本地版本库。进入步骤S64。Step S62: The device 3 is configured to obtain a board of the current device, store the version information of the board to the local device version report, and connect to the device version server through the device 2, and comprehensively compare the device version report, the local version database and the server version library, if any Update to ftp or http to download to the local repository. Go to step S64.
步骤S63:装置2连接设备商版本服务器,检查所有版本,如果本地不存在或者版本号不一致,就通过ftp或者http下载至本地版本库存储。进入步骤S64。Step S63: The device 2 is connected to the device vendor version server, and checks all versions. If the local version does not exist or the version number is inconsistent, the device is downloaded to the local version repository through ftp or http. Go to step S64.
步骤S64:升级代理模块,比较装置3获得的设备版本报表和本地版本库,针对当前版本与本地版本库版本不一致的单板,进入步骤S65。Step S64: The agent module is upgraded, and the device version report and the local version database obtained by the device 3 are compared. For the board whose current version is inconsistent with the version of the local version, the process proceeds to step S65.
步骤S65:升级代理模块控制装置3,利用snmp或者telnet工具,将新版本以ftp或者tftp方式传送到设备单板存储器。根据激活策略,如果
激活策略为自动激活,进入步骤S66;如果激活策略为手工激活,进入步骤S67。Step S65: The agent module control device 3 is upgraded, and the new version is transferred to the device board memory by using ftp or tftp using the snmp or telnet tool. According to the activation strategy, if
The activation policy is automatic activation, and the process proceeds to step S66; if the activation policy is manual activation, the process proceeds to step S67.
步骤S66:升级代理模块控制装置3,利用snmp直接发送复位消息给单板或者telnet至单板输入reboot,通知单板复位激活,进入步骤S68。Step S66: The agent module control device 3 is upgraded, and the reset message is directly sent to the board by using the snmp or the telnet is sent to the board to input the reboot, and the board is reset and activated, and the process proceeds to step S68.
步骤S67:升级代理模块,通过UI界面或者弹窗通知用户所需要复位激活单板,等待用户确认后,利用snmp直接发送复位消息给单板或者telnet至单板输入reboot,通知单板复位激活,进入步骤S68。Step S67: The agent module is upgraded, and the user is required to reset the active board through the UI interface or the popup window. After the user confirms, the user can use the snmp to directly send a reset message to the board or telnet to the board to input the reboot, and notify the board to reset. Go to step S68.
步骤S68:升级代理模块等待若干时间后,通过装置3,获取当前设备存在单板,更新单板版本信息至本地设备版本报表,比较设备版本报表和本地版本库,核对升级后单板版本信息,保存升级日志至本地文件,通过UI界面或者弹窗通知用户升级结果。Step S68: After the upgrade agent module waits for a certain period of time, the device 3 obtains the board of the current device, updates the board version information to the local device version report, compares the device version report with the local version, and checks the version information of the upgraded board. Save the upgrade log to a local file and notify the user of the upgrade result through the UI interface or popup window.
需要说明的是,上述步骤S61至步骤S68中涉及到的部分设备单板自动化升级流程可以参考图3中的步骤S301至步骤S310。It should be noted that, in the step S61 to step S68, the part of the device board upgrade process may refer to step S301 to step S310 in FIG. 3 .
可选实施例2Alternative embodiment 2
新安装单板自动获取版本具体流程包括以下步骤:The process of automatically obtaining a version of a newly installed board includes the following steps:
步骤S71:设备有新单板安装时,上报新单板类型及版本消息给升级代理模块的装置3,装置3保存此消息至本地新增单板列表文件。升级代理模块根据新增单板列表文件搜索本地版本库,如果没有相应单板版本文件进入步骤S72,如果存在相应单板版本文件进入步骤S73。Step S71: When the device has a new board installed, the device sends a new board type and version message to the device 3 of the upgrade agent module, and the device 3 saves the message to the locally added board list file. The upgrade agent module searches for the local version based on the newly added board list file. If the corresponding board version file does not go to step S72, if the corresponding board version file exists, the process proceeds to step S73.
步骤S72:升级代理模块通过装置2,连接设备商版本服务器查询新增单板列表文件中对应新单板的版本,通过ftp或者http下载版本文件至本地版本库,进入步骤S73。Step S72: The upgrade agent module is connected to the device version server to query the version of the new board in the newly added board list file, and the version file is downloaded to the local version through ftp or http, and the process proceeds to step S73.
步骤S73:升级代理模块,比较新增单板列表文件和本地版本库,如有版本不一致,进入步骤S74。Step S73: The agent module is upgraded, and the newly added board list file and the local version library are compared. If the version is inconsistent, the process proceeds to step S74.
步骤S74:升级代理模块控制装置3,利用snmp或者telnet工具,将新版本以ftp或者tftp方式传送到设备单板存储器,进入步骤S75。
Step S74: The agent module control device 3 is upgraded, and the new version is transferred to the device board memory in the ftp or tftp mode by using the snmp or telnet tool, and the process proceeds to step S75.
步骤S75:升级代理模块控制装置3,利用snmp直接发送复位消息给单板或者telnet至单板输入reboot,通知单板复位激活,进入步骤S76。Step S75: The agent module control device 3 is upgraded, and the reset message is directly sent to the board by using the snmp or the telnet is sent to the board to input the reboot, and the board is reset and activated, and the process proceeds to step S76.
步骤S76:升级代理模块等待若干时间后,通过装置3,查询新增单板列表文件中的单板版本信息,更新版本信息至新增单板列表文件,比较新增单板列表文件和本地版本库,核对升级后单板版本信息,保存升级日志至本地文件,通过UI界面或者弹窗通知用户升级结果。Step S76: After the upgrade agent module waits for a certain period of time, the device 3 is configured to query the version information of the board in the new board list file, update the version information to the newly added board list file, and compare the newly added board list file and the local version. The library checks the upgraded board version information, saves the upgrade log to a local file, and notifies the user of the upgrade result through the UI interface or popup window.
需要说明的是,上述步骤S71至步骤S76涉及到的新安装单板自动获取版本的部分流程可以参考图4中的S401至步骤S409。It should be noted that a part of the process of automatically acquiring the version of the newly installed board involved in the above steps S71 to S76 may refer to S401 to S409 in FIG. 4 .
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种软件升级装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a software upgrade device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的软件升级装置的结构框图,如图5所示,该装置包括:FIG. 5 is a structural block diagram of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes:
1)获取模块52,设置为根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;1) The obtaining module 52 is configured to obtain a software version of the device board from the server according to the pre-configured upgrade policy, to obtain the first software version;
2)第一判断模块54,设置为判断该第一软件版本和当前设备单板的
第二软件版本是否一致;2) The first determining module 54 is configured to determine the first software version and the current device board
Whether the second software version is consistent;
3)控制模块56,设置为在判断结果为否的情况下,控制该当前设备单板进行软件升级。3) The control module 56 is configured to control the current device board to perform software upgrade if the determination result is negative.
可选地,在本实施例中,上述软件升级装置的应用场景包括但并不限于:单板软件版本升级中,在该应用场景下,根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;判断该第一软件版本和当前设备单板的第二软件版本是否一致;在判断结果为否的情况下,控制该当前设备单板进行软件升级。也就是说,本实施例通过预先配置的升级策略实现自动升级,而无需人工手动进行单板软件升级,进而解决了相关技术中通过手工操作进行单板软件升级所造成的软件升级效率较低的问题,达到了提高单板软件升级效率的效果。Optionally, in this embodiment, the application scenario of the software upgrade device includes, but is not limited to, a board software version upgrade. In the application scenario, the device board is obtained from the server according to the pre-configured upgrade policy. The software version is used to obtain the first software version; whether the first software version is consistent with the second software version of the current device board; if the determination result is no, the current device board is controlled to perform software upgrade. That is to say, in this embodiment, the automatic upgrade is implemented by using the pre-configured upgrade policy, and the software upgrade efficiency caused by the manual operation of the board software upgrade is low. The problem is that the effect of improving the software upgrade efficiency of the board is achieved.
在一个可选地实施方式中,图6是根据本发明实施例的软件升级装置的结构框图(一),如图6所示,该获取模块52包括:In an alternative embodiment, FIG. 6 is a structural block diagram (1) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 6, the obtaining module 52 includes:
1)第一获取单元62,设置为按照预定周期从服务器获取该当前设备单板的软件版本;或者,适用第二获取单元等同替换第一获取单元,该第二获取单元用于按照预定周期从服务器获取该服务器的全部软件版本。1) The first obtaining unit 62 is configured to acquire the software version of the current device board from the server according to a predetermined period; or, the second acquiring unit is equivalent to replace the first acquiring unit, and the second acquiring unit is configured to follow the predetermined period from The server obtains the full software version of the server.
在该可选实施方式中,通过上述单板软件版本更新策略自动获取最新的部分或全部的软件版本,进一步实现了单板软件自动升级的效果。In the optional implementation manner, the latest software version of the latest software is automatically obtained through the board software version update policy, and the automatic upgrade of the board software is further implemented.
在一个可选地实施方式中,图7是根据本发明实施例的软件升级装置的结构框图(二),如图7所示,该装置除了包括图5所示的模块外还包括:In an alternative embodiment, FIG. 7 is a structural block diagram (2) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes: in addition to the module shown in FIG.
1)发送模块72,设置为在判断该第一软件版本和当前设备单板的第二软件版本是否一致之前,通过指定协议向该当前设备单板发送软件版本查询指令,其中,该指定协议包括以下至少之一:简单网络管理协议snmp、telnet协议;The sending module 72 is configured to send a software version query instruction to the current device board by using a specified protocol before determining whether the first software version is consistent with the second software version of the current device board, where the specified protocol includes At least one of the following: simple network management protocol snmp, telnet protocol;
2)第一接收模块74,设置为接收该当前设备单板上报的该第二软件版本。
2) The first receiving module 74 is configured to receive the second software version reported by the current device board.
在该可选实施方式中,通过指定协议向当前设备单板查询当前设备单板的软件版本,使得能够根据获取的当前设备单板的软件版本和从服务器获取的最新软件版本进行比较,并根据比较结果实现软件自动升级。In the optional implementation, the software version of the current device board is queried by the current device, and the software version of the current device board is compared with the latest software version obtained from the server, and The comparison results in automatic software upgrades.
在一个可选地实施方式中,图8是根据本发明实施例的软件升级装置的结构框图(三),如图8所示,该装置除了包括图5所示的模块外还包括:In an alternative embodiment, FIG. 8 is a structural block diagram (3) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes, in addition to the module shown in FIG.
1)激活模块82,设置为在控制该当前设备单板进行软件升级之后,根据设备单板的软件激活策略,激活升级后的设备单板;1) The activation module 82 is configured to activate the upgraded device board according to the software activation policy of the device board after the software upgrade of the current device board is performed;
其中,该软件激活策略包括:在该当前设备单板进行软件升级之后,直接向升级后的设备单板发送复位指令以指示该升级后的设备单板进行激活;或者,在接收到设备单板激活操作的选择指令后,向升级后的设备单板发送复位指令以指示该升级后的设备单板进行激活。The software activation policy includes: after the software upgrade of the current device board, the device sends a reset command to the upgraded device board to indicate that the upgraded device board is activated; or, the device board is received. After the operation selection command is activated, a reset command is sent to the upgraded device board to indicate that the upgraded device board is activated.
通过上述装置,在当前设备单板进行软件升级后,根据设备单板的软件激活策略,激活升级后的设备单板,使得升级后的设备单板能够正常运行升级后的软件版本。After the software upgrade is performed on the current device board, the upgraded device board is activated according to the software activation policy of the board. The upgraded board can run the upgraded software version.
在一个可选地实施方式中,图9根据本发明实施例的软件升级装置的结构框图(四),如图9所示,该装置除了包括图5所示的模块外还包括:In an alternative embodiment, FIG. 9 is a structural block diagram (4) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus includes, in addition to the module shown in FIG.
1)检测模块92,设置为在控制该当前设备单板进行软件升级之后,检测当前设备单板进行软件升级后的升级结果,并记录该当前设备单板进行软件升级的过程日志。The detection module 92 is configured to detect the upgrade result of the software upgrade of the current device board after the software upgrade of the current device board is performed, and record the process log of the software upgrade of the current device board.
通过上述装置得到的当前设备单板进行软件升级的过程日志,使得能够对设备单板进行软件升级的过程进行实时跟踪。The process log of the software upgrade of the current device board obtained by the above device enables real-time tracking of the software upgrade process of the device board.
在一个可选地实施方式中,图10根据本发明实施例的软件升级装置的结构框图(五),如图10所示,该装置除了包括图5所示的模块外还包括:In an alternative embodiment, FIG. 10 is a structural block diagram (5) of a software upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes: in addition to the module shown in FIG.
1)第二接收模块1002,设置为在当前设备新增单板的情况下,接收当前设备上报的新增单板的单板类型以及该单板类型对应的软件版本信
息;1) The second receiving module 1002 is configured to receive the board type of the newly added board and the software version letter corresponding to the board type when the current device adds a board.
interest;
2)第二判断模块1004,设置为判断该第一软件版本中是否存在与接收到的软件版本信息对应的软件版本;2) The second determining module 1004 is configured to determine whether there is a software version corresponding to the received software version information in the first software version;
3)第一处理模块1006,设置为在判断结果为是的情况下,判断该第一软件版本和当前设备单板的软件版本是否一致,并在判断结果为否的情况下,控制该当前设备单板进行软件升级;3) The first processing module 1006 is configured to determine whether the software version of the first software version and the current device board are consistent, and if the determination result is negative, control the current device. The board is upgraded with software.
4)第二处理模块1008,设置为在判断结果为否的情况下,向该服务器获取与该新增单板对应的软件版本,并控制该当前单板进行软件升级。4) The second processing module 1008 is configured to obtain a software version corresponding to the newly added board and control the current board to perform software upgrade if the determination result is negative.
通过该可选方式中,在当前设备新增单板的情况下,能够对新增单板及时进行软件自动升级。In this optional mode, the software can be automatically upgraded in time when the board is added to the current device.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;S1. Obtain a software version of the device board from the server according to the pre-configured upgrade policy to obtain the first software version.
S2,判断该第一软件版本和当前设备单板的第二软件版本是否一致;S2, determining whether the first software version is consistent with the second software version of the current device board;
S3,在判断结果为否的情况下,控制该当前设备单板进行软件升级。S3. If the judgment result is negative, the current device board is controlled to perform software upgrade.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述步骤S1、S2以及S3。
Optionally, in the embodiment, the processor performs the above steps S1, S2, and S3 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
本发明实施例提供的上述技术方案,可以应用于软件升级过程中,根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;判断该第一软件版本和当前设备单板的第二软件版本是否一致;在判断结果为否的情况下,控制该当前设备单板进行软件升级,解决了相关技术中通过手工操作进行单板软件升级所造成的软件升级效率较低的问题,进而达到了提高单板软件升级效率的效果。
The foregoing technical solution provided by the embodiment of the present invention may be applied to the software upgrade process, and the software version of the device board is obtained from the server according to the pre-configured upgrade policy to obtain the first software version; the first software version and the current software version are determined. Whether the second software version of the board is the same. If the result of the judgment is no, the current device board is controlled to perform software upgrade, which solves the software upgrade efficiency caused by the manual software upgrade of the board. The low problem has the effect of improving the efficiency of the board software upgrade.
Claims (10)
- 一种软件升级方法,包括:A software upgrade method, including:根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;Obtain the software version of the device board from the server to obtain the first software version according to the pre-configured upgrade policy.判断所述第一软件版本和当前设备单板的第二软件版本是否一致;Determining whether the first software version is consistent with the second software version of the current device board;在判断结果为否的情况下,控制所述当前设备单板进行软件升级。If the result of the determination is no, the current device board is controlled to perform software upgrade.
- 根据权利要求1所述的方法,其中,所述根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本包括:The method of claim 1, wherein the obtaining the software version of the device board from the server according to the pre-configured upgrade policy to obtain the first software version comprises:按照预定周期从服务器获取所述当前设备单板的软件版本;或者,Obtaining the software version of the current device board from the server according to a predetermined period; or按照预定周期从服务器获取所述服务器的全部软件版本。The full software version of the server is obtained from the server in accordance with a predetermined period.
- 根据权利要求1所述的方法,其中,在判断所述第一软件版本和当前设备单板的第二软件版本是否一致之前,还包括:The method of claim 1, wherein before determining whether the first software version and the second software version of the current device board are consistent, the method further comprises:通过指定协议向所述当前设备单板发送软件版本查询指令,其中,所述指定协议包括以下至少之一:简单网络管理协议snmp、telnet协议;Sending a software version query instruction to the current device board by using a specified protocol, where the specified protocol includes at least one of the following: a simple network management protocol snmp, a telnet protocol;接收所述当前设备单板上报的所述第二软件版本。Receiving the second software version reported on the current device board.
- 根据权利要求1所述的方法,其中,在控制所述当前设备单板进行软件升级之后,还包括:The method of claim 1, further comprising: after controlling the software upgrade of the current device board:根据设备单板的软件激活策略,激活升级后的设备单板;Activate the upgraded device board according to the software activation policy of the board.其中,所述软件激活策略包括:在所述当前设备单板进行软件升级之后,直接向升级后的设备单板发送复位指令以指示所述升级后的 设备单板进行激活;或者,在接收到设备单板激活操作的选择指令后,向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活。The software activation policy includes: after the software upgrade of the current device board, directly sending a reset instruction to the upgraded device board to indicate the upgraded The device board is activated. After receiving the selection command of the device board activation operation, the device sends a reset command to the upgraded device board to indicate that the upgraded device board is activated.
- 根据权利要求1所述的方法,其中,在控制所述当前设备单板进行软件升级之后,还包括:The method of claim 1, further comprising: after controlling the software upgrade of the current device board:检测当前设备单板进行软件升级后的升级结果,并记录所述当前设备单板进行软件升级的过程日志。Check the upgrade result of the software upgrade of the current device board, and record the process log of the software upgrade of the current device board.
- 根据权利要求1至5中任意一项所述的方法,其中,在当前设备新增单板的情况下,还包括:The method according to any one of claims 1 to 5, wherein, in the case that a board is added to the current device, the method further includes:接收当前设备上报的新增单板的单板类型以及该单板类型对应的软件版本信息;Receives the board type of the newly added board and the software version information corresponding to the board type.判断所述第一软件版本中是否存在与接收到的软件版本信息对应的软件版本;Determining whether there is a software version corresponding to the received software version information in the first software version;在判断结果为是的情况下,判断所述第一软件版本和当前设备单板的软件版本是否一致,并在判断结果为否的情况下,控制所述当前设备单板进行软件升级;If the result of the determination is yes, it is determined whether the first software version is consistent with the software version of the current device board, and if the determination result is no, the current device board is controlled to perform software upgrade;在判断结果为否的情况下,向所述服务器获取与所述新增单板对应的软件版本,并控制所述当前设备单板进行软件升级。If the result of the determination is no, the software version corresponding to the newly added board is obtained from the server, and the current device board is controlled to perform software upgrade.
- 一种软件升级装置,包括:A software upgrade device, comprising:获取模块,设置为根据预先配置的升级策略,从服务器获取设备单板的软件版本,以得到第一软件版本;Obtaining a module, configured to obtain a software version of the device board from the server according to the pre-configured upgrade policy, to obtain the first software version;第一判断模块,设置为判断所述第一软件版本和当前设备单板的第二软件版本是否一致; The first judging module is configured to determine whether the first software version is consistent with the second software version of the current device board;控制模块,设置为在判断结果为否的情况下,控制所述当前设备单板进行软件升级。The control module is configured to control the current device board to perform software upgrade if the determination result is negative.
- 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:发送模块,设置为在判断所述第一软件版本和当前设备单板的第二软件版本是否一致之前,通过指定协议向所述当前设备单板发送软件版本查询指令,其中,所述指定协议包括以下至少之一:简单网络管理协议snmp、telnet协议;a sending module, configured to send a software version query instruction to the current device board by using a specified protocol, before determining whether the first software version is consistent with the second software version of the current device board, where the specified protocol includes At least one of the following: simple network management protocol snmp, telnet protocol;第一接收模块,设置为接收所述当前设备单板上报的所述第二软件版本。The first receiving module is configured to receive the second software version reported by the current device board.
- 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:激活模块,设置为在控制所述当前设备单板进行软件升级之后,根据设备单板的软件激活策略,激活升级后的设备单板;The activation module is configured to activate the upgraded device board according to the software activation policy of the device board after the software upgrade is performed on the current device board.其中,所述软件激活策略包括:在所述当前设备单板进行软件升级之后,直接向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活;或者,在接收到设备单板激活操作的选择指令后,向升级后的设备单板发送复位指令以指示所述升级后的设备单板进行激活;或者,所述装置还包括:The software activation policy includes: after the software upgrade of the current device board, sending a reset command to the upgraded device board to indicate that the upgraded device board is activated; or After the device board is activated, the device sends a reset command to the upgraded device board to indicate that the upgraded device board is activated. Alternatively, the device further includes:检测模块,设置为在控制所述当前设备单板进行软件升级之后,检测当前设备单板进行软件升级后的升级结果,并记录所述当前设备单板进行软件升级的过程日志。The detection module is configured to check the upgrade result of the software upgrade of the current device board after the software upgrade of the current device board is performed, and record the process log of the software upgrade of the current device board.
- 根据权利要求7至9中任意一项所述的装置,其中,所述装置还包括:The apparatus according to any one of claims 7 to 9, wherein the apparatus further comprises:第二接收模块,设置为在当前设备新增单板的情况下,接收当前设备上报的新增单板的单板类型以及该单板类型对应的软件版本信 息;The second receiving module is configured to receive the board type of the newly added board and the software version letter corresponding to the board type when the current device adds a board. interest;第二判断模块,设置为判断所述第一软件版本中是否存在与接收到的软件版本信息对应的软件版本;a second determining module, configured to determine whether a software version corresponding to the received software version information exists in the first software version;第一处理模块,设置为在判断结果为是的情况下,判断所述第一软件版本和当前设备单板的软件版本是否一致,并在判断结果为否的情况下,控制所述当前设备单板进行软件升级;The first processing module is configured to determine whether the first software version is consistent with the software version of the current device board, and if the determination result is negative, the current device list is controlled. Board for software upgrades;第二处理模块,设置为在判断结果为否的情况下,向所述服务器获取与所述新增单板对应的软件版本,并控制所述当前设备单板进行软件升级。 The second processing module is configured to obtain a software version corresponding to the newly added board and control the current device board to perform software upgrade when the determination result is negative.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610327571.5A CN107395385A (en) | 2016-05-17 | 2016-05-17 | Method for upgrading software and device |
CN201610327571.5 | 2016-05-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017198015A1 true WO2017198015A1 (en) | 2017-11-23 |
Family
ID=60324820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/080295 WO2017198015A1 (en) | 2016-05-17 | 2017-04-12 | Software upgrading method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107395385A (en) |
WO (1) | WO2017198015A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764803A (en) * | 2019-10-21 | 2020-02-07 | 北京云迹科技有限公司 | Software upgrading method and device |
CN112423290A (en) * | 2020-11-05 | 2021-02-26 | 歌尔科技有限公司 | Wireless upgrading method, terminal equipment, device to be upgraded and medium |
CN112910948A (en) * | 2021-01-12 | 2021-06-04 | 拉扎斯网络科技(上海)有限公司 | Protocol upgrading method, device, electronic equipment, storage medium and program product |
CN113434167A (en) * | 2021-06-15 | 2021-09-24 | 青岛海尔科技有限公司 | Function upgrading method and device, storage medium and electronic device |
CN113596084A (en) * | 2021-06-24 | 2021-11-02 | 青岛海尔科技有限公司 | Household appliance state feedback method and system, storage medium and electronic device |
CN117032765A (en) * | 2023-10-10 | 2023-11-10 | 浙江大华技术股份有限公司 | Model upgrading method, model upgrading device and computer storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116009912B (en) * | 2022-12-26 | 2023-08-18 | 郑州云智信安安全技术有限公司 | Construction method for automatically generating upgrade package aiming at private network environment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1178402A1 (en) * | 2000-08-03 | 2002-02-06 | Hsing Tech Enterprises Co., Ltd. | Method and apparatus for actively updating program file(s) of a client computer |
CN101267344A (en) * | 2008-04-25 | 2008-09-17 | 中兴通讯股份有限公司 | An upgrade method and device for network element single-board software |
CN101388792A (en) * | 2008-10-15 | 2009-03-18 | 上海华为技术有限公司 | Single board plug-and-use processing method, device and telecommunication system |
CN101924643A (en) * | 2009-06-10 | 2010-12-22 | 中兴通讯股份有限公司 | Updating method and system of card software in communication system equipment |
-
2016
- 2016-05-17 CN CN201610327571.5A patent/CN107395385A/en active Pending
-
2017
- 2017-04-12 WO PCT/CN2017/080295 patent/WO2017198015A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1178402A1 (en) * | 2000-08-03 | 2002-02-06 | Hsing Tech Enterprises Co., Ltd. | Method and apparatus for actively updating program file(s) of a client computer |
CN101267344A (en) * | 2008-04-25 | 2008-09-17 | 中兴通讯股份有限公司 | An upgrade method and device for network element single-board software |
CN101388792A (en) * | 2008-10-15 | 2009-03-18 | 上海华为技术有限公司 | Single board plug-and-use processing method, device and telecommunication system |
CN101924643A (en) * | 2009-06-10 | 2010-12-22 | 中兴通讯股份有限公司 | Updating method and system of card software in communication system equipment |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764803A (en) * | 2019-10-21 | 2020-02-07 | 北京云迹科技有限公司 | Software upgrading method and device |
CN110764803B (en) * | 2019-10-21 | 2023-03-31 | 北京云迹科技股份有限公司 | Software upgrading method and device |
CN112423290A (en) * | 2020-11-05 | 2021-02-26 | 歌尔科技有限公司 | Wireless upgrading method, terminal equipment, device to be upgraded and medium |
CN112423290B (en) * | 2020-11-05 | 2022-10-18 | 歌尔科技有限公司 | Wireless upgrading method, terminal equipment, device to be upgraded and medium |
CN112910948A (en) * | 2021-01-12 | 2021-06-04 | 拉扎斯网络科技(上海)有限公司 | Protocol upgrading method, device, electronic equipment, storage medium and program product |
CN112910948B (en) * | 2021-01-12 | 2023-05-09 | 拉扎斯网络科技(上海)有限公司 | Protocol upgrading method, device, electronic equipment, storage medium and program product |
CN113434167A (en) * | 2021-06-15 | 2021-09-24 | 青岛海尔科技有限公司 | Function upgrading method and device, storage medium and electronic device |
CN113434167B (en) * | 2021-06-15 | 2023-06-16 | 青岛海尔科技有限公司 | Function upgrading method and device, storage medium and electronic device |
CN113596084A (en) * | 2021-06-24 | 2021-11-02 | 青岛海尔科技有限公司 | Household appliance state feedback method and system, storage medium and electronic device |
CN113596084B (en) * | 2021-06-24 | 2023-10-24 | 青岛海尔科技有限公司 | Household appliance state feedback method and system, storage medium and electronic device |
CN117032765A (en) * | 2023-10-10 | 2023-11-10 | 浙江大华技术股份有限公司 | Model upgrading method, model upgrading device and computer storage medium |
CN117032765B (en) * | 2023-10-10 | 2024-01-16 | 浙江大华技术股份有限公司 | Model upgrading method, model upgrading device and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107395385A (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017198015A1 (en) | Software upgrading method and apparatus | |
US11652918B2 (en) | Using automatically collected device problem information to route and guide users' requests | |
US11169867B2 (en) | System and method for identifying operational disruptions in mobile computing devices via a monitoring application that repetitively records multiple separate consecutive files listing launched or installed applications | |
US10595204B2 (en) | Flexible remote server validation | |
CN110096424B (en) | Test processing method and device, electronic equipment and storage medium | |
JP5106625B2 (en) | Method, system, and computer program for configuring a firewall | |
CN110225078B (en) | Application service updating method, system and terminal equipment | |
CN105721204A (en) | Firmware upgrading method and system for network adapters | |
US20190349275A1 (en) | Open-Loop Control Assistant to Guide Human-Machine Interaction | |
US9207928B2 (en) | Computer-readable medium, apparatus, and methods of automatic capability installation | |
US11381448B2 (en) | Systems and methods for cloud resource synchronization | |
CN106469074B (en) | Updating system and application method thereof | |
CN111897565A (en) | Data processing method, device and equipment based on Internet of things | |
CN104461709B (en) | The control method and device of task scheduling | |
CN116340294A (en) | Database deployment method and device, computer readable storage medium and electronic equipment | |
US9294865B2 (en) | Enhanced system and method for custom programming of large groups of phones without requiring additional equipment | |
CN113992739B (en) | Local area network OTA firmware upgrading device, method and system | |
US11340968B1 (en) | Executing repetitive custom workflows through API recording and playback | |
CN113867754A (en) | Firmware maintenance method, system, equipment and medium | |
WO2016206437A1 (en) | Rom package generation method and device | |
CN102156685A (en) | Method and device for automatically configuring distributed network system script | |
CN105045734A (en) | Mobile terminal and method for quickly connecting mobile terminal with computer | |
CN112825549A (en) | Method and device for realizing rapid configuration of camera and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17798579 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17798579 Country of ref document: EP Kind code of ref document: A1 |