WO2022110645A1 - 软件升级方法、装置、存储介质及电子装置 - Google Patents
软件升级方法、装置、存储介质及电子装置 Download PDFInfo
- Publication number
- WO2022110645A1 WO2022110645A1 PCT/CN2021/091216 CN2021091216W WO2022110645A1 WO 2022110645 A1 WO2022110645 A1 WO 2022110645A1 CN 2021091216 W CN2021091216 W CN 2021091216W WO 2022110645 A1 WO2022110645 A1 WO 2022110645A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- software
- instruction
- upgrade
- target
- notification message
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000009434 installation Methods 0.000 claims description 93
- 230000004913 activation Effects 0.000 claims description 72
- 230000015654 memory Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 17
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 230000000694 effects Effects 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 17
- 238000007726 management method Methods 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000013499 data model Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011900 installation process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Definitions
- Embodiments of the present invention relate to the field of communications, and in particular, to a software upgrade method, device, storage medium, and electronic device.
- Embodiments of the present invention provide a software upgrade method, device, storage medium, and electronic device, to at least solve the problems in the related art that the abnormal upgrade cannot be determined in the software upgrade operation, and the upgrade efficiency is low.
- a software upgrade method comprising: after determining to establish a target session connection with a target client, receiving a software upgrade instruction sent by the target client based on the target session connection, wherein, The software upgrade instruction includes parameter information for upgrading the target software; an upgrade operation is performed on the target software based on the software upgrade instruction; and an upgrade result of the upgrade operation is fed back to the target client.
- a software upgrade apparatus comprising: a receiving module configured to receive, after it is determined that a target session connection is established with a target client, a message sent by the target client based on the target session connection A software upgrade instruction, wherein the software upgrade instruction includes parameter information for upgrading the target software; an upgrade module, configured to perform an upgrade operation on the target software based on the software upgrade instruction; a feedback module, configured to provide the target customer The terminal feeds back the upgrade result of the upgrade operation.
- a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above methods when running steps in the examples.
- an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.
- a software upgrade instruction including parameter information for upgrading the target software sent by the target client based on the target session connection is received, and an upgrade operation is performed on the target software based on the software upgrade instruction.
- the upgrade operation is performed, feedback the upgrade result of the upgrade operation. Since the upgrade result is fed back in time after the upgrade operation is performed, the target client can determine the result of each upgrade operation link. Therefore, it can solve the link in the software upgrade operation in the related technology that cannot determine the upgrade abnormality, and the upgrade efficiency is low. problems, to achieve the effect of perceiving the execution result of each software upgrade operation and improving the upgrade efficiency.
- FIG. 1 is a block diagram of a hardware structure of a mobile terminal of a software upgrade method according to an embodiment of the present invention
- FIG. 2 is a flowchart of a software upgrade method according to an embodiment of the present invention.
- FIG. 3 is a sequence diagram of a software upgrade method according to a specific embodiment of the present invention.
- FIG. 4 is a structural block diagram of a software upgrade apparatus according to an embodiment of the present invention.
- FIG. 1 is a hardware structural block diagram of a mobile terminal according to a software upgrade method according to an embodiment of the present invention.
- the mobile terminal may include one or more (only one is shown in FIG. 1 ) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 configured to store data, wherein the above-mentioned mobile terminal may further include a transmission device 106 and an input/output device 108 configured as a communication function.
- FIG. 1 is only a schematic diagram, which does not limit the structure of the above-mentioned mobile terminal.
- the mobile terminal may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
- the memory 104 may be configured to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the software upgrade method in the embodiment of the present invention, and the processor 102 executes the computer programs stored in the memory 104 by running the computer programs.
- Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
- the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- the transmission device 106 is arranged to receive or transmit data via a network.
- the specific example of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal.
- the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
- the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is configured to communicate with the Internet in a wireless manner.
- RF Radio Frequency
- FIG. 2 is a flowchart of a software upgrade method according to an embodiment of the present invention. As shown in FIG. 2 , the process includes the following steps:
- Step S202 after determining to establish a target session connection with the target client, receive a software upgrade instruction sent by the target client based on the target session connection, wherein the software upgrade instruction includes parameter information for upgrading the target software ;
- Step S204 performing an upgrade operation on the target software based on the software upgrade instruction
- Step S206 feeding back the upgrade result of the upgrade operation to the target client.
- the execution subject of the above steps may be a terminal device, such as a terminal such as a computer and a mobile phone, but is not limited thereto.
- the target client may be a terminal device management device, and before the target client manages the terminal device, the terminal device may establish a target session connection with the terminal device, for example, NETCONF (Network Configuration Protocol, Network Configuration Protocol) session connection.
- the target client can send a software upgrade instruction to the terminal device through the target session, and the terminal device performs an upgrade operation on the target software based on the software upgrade instruction.
- the terminal device upgrades the software based on the software upgrade instruction, it can feed back the result of the upgrade operation to the target terminal. If the operation result is successful, the target client can also invent the next software upgrade instruction to the terminal device, and the terminal device upgrades the target software based on the software upgrade instruction and feeds back the upgrade result.
- the software upgrade instruction may include different types of obtaining instructions such as download instructions, installation instructions, and activation instructions
- the software upgrade instructions may include parameter information required for the software upgrade operation.
- the parameter information included in the software upgrade instructions of different instruction types may be different.
- the parameter information may be the address, name, etc. of the software to be downloaded.
- the instruction type of the software upgrade instruction is an installation instruction
- the parameter information may be the name, storage location, and installation location of the software to be installed.
- the parameter information may be the name and installation location of the software to be activated.
- the device when the target session is a NETCONF session, the device, as a NETCONF server, can establish a connection through processes such as clock synchronization, CALL HOME (automatic notification), SSH (secure shell, secure shell protocol) connection establishment, and capability discovery.
- NETCONF session with client. That is, the terminal device can report the device information of the terminal device by sending CALL HOME (automatic notification) to the target client.
- CALL HOME automated notification
- the target client After receiving the CALL HOME, the target client can establish a SHH connection with the device and automatically obtain the device functions of the terminal device.
- the software upgrade instruction may be an RPC (Remote Procedure Call, Remote Procedure Call) instruction in XML format.
- a software upgrade instruction including parameter information for upgrading the target software sent by the target client based on the target session connection is received, and an upgrade operation is performed on the target software based on the software upgrade instruction.
- the upgrade operation is performed, feedback the upgrade result of the upgrade operation. Since the upgrade result is fed back in time after the upgrade operation is performed, the target client can determine the result of each upgrade operation link. Therefore, it can solve the link in the software upgrade operation in the related technology that cannot determine the upgrade abnormality, and the upgrade efficiency is low. problems, to achieve the effect of perceiving the execution result of each software upgrade operation and improving the upgrade efficiency.
- performing an upgrade operation on the target software based on the software upgrade instruction includes: parsing the software upgrade instruction to obtain an instruction type of the software upgrade instruction and a first value included in the software upgrade instruction parameter information; if it is determined that the instruction type of the software upgrade instruction is a download instruction, determine a first predetermined condition corresponding to the download instruction; if the first parameter information satisfies the first predetermined condition , establish a connection with the target server based on the credential information included in the first parameter information; perform a download operation in the target server based on the first identification information included in the first parameter information to download and download the target software The corresponding first software; in the case of successful downloading, the target software is upgraded based on the first software.
- the terminal device can obtain the instruction type of the software upgrade instruction and the first parameter information included in the software upgrade instruction by parsing the software upgrade instruction.
- the software upgrade instruction is a download instruction
- determine the first predetermined condition corresponding to the download instruction and when it is determined that the first parameter information satisfies the first predetermined condition, connect to the target server according to the credential information included in the first parameter information , after establishing a connection with the target server, download the first software corresponding to the first identification information included in the first parameter information in the target server, and upgrade the target software based on the first software after the download is successful.
- the first parameter information may include the name of the software to be downloaded, the download address, the download credential information, and the like.
- the credential information may be the server address for downloading the software, the access user name and password for accessing the server, and the like.
- the first predetermined condition is used to determine whether the result of parsing the software upgrade instruction is normal. That is, it can be determined whether the first parameter information is correct according to the first predetermined condition.
- the first predetermined condition may be the length, format, and the like of characters. That is, it can be judged whether each parameter included in the first parameter information is correct according to the length and format of the character.
- the network management (corresponding to the above-mentioned target client) sends the RPC command for starting the download to the device side (corresponding to the above-mentioned terminal equipment) through the NETCONF protocol and the established NETCONF session. ;
- the terminal device receives the software-download RPC (software download instruction) issued by the target client through the NETCONF session established above.
- the terminal device parses the software-download RPC command to obtain the address of the SFTP server (file transfer server), the access user name and password, and the file name of the software package.
- the terminal device determines the analysis result, and downloads the software if the analysis result is correct.
- the terminal device establishes a connection with the SFTP server through the credentials and completes the software download.
- the method further includes: judging whether the first parameter information satisfies the first predetermined condition; after determining the first predetermined condition If the parameter information satisfies the first predetermined condition, send a first notification message to the target client, where the first notification message is used to notify the target client to start the download operation, and The first time required to perform the download operation to instruct the target client to determine whether the download operation times out based on the time when the target client receives the first notification message and the first time; after determining the If the first parameter information does not meet the first predetermined condition, a second notification message is sent to the target client, where the second notification message is used to notify the target client that the download operation is terminated.
- the terminal device may judge whether the first parameter information satisfies the first predetermined condition, and send the judgment result to the target client through the target session.
- a second notification message is sent to the target client.
- the first notification message may include a notification that the download operation starts to be performed, and the first time required to perform the download operation.
- the target client may start counting, and after the first time has passed, and does not receive an instruction of downloading completion, it may be considered that the downloading has failed.
- the second notification message may include a notification of parsing failure. After receiving the second notification message, the target client can send the download instruction to the terminal device again.
- the terminal device can respond to rpc-reply through the NETCONF protocol and according to the data model structure defined in the YANG model.
- the terminal device responds to the target client according to the RPC parsing result. If the parsing is normal, it responds to the STARTED status and the reporting time when the download is completed, and prepares to download; if there is an error, it responds to FAILED and terminates the download.
- feeding back the upgrade result of the upgrade operation to the target client includes: determining an execution result of the download operation; in the case that the execution result is that the download operation is successfully executed, to The target client sends a third notification message, where the third notification message is used to indicate that the download operation is successfully executed; in the case that the execution result is that the download operation fails to be executed, send a notification to the target client
- the terminal sends a fourth notification message, wherein the fourth notification message is used to indicate that the download operation fails to be performed, and the fourth notification message includes first cause information of the download operation failure.
- the terminal device may feed back the download result to the target client.
- a third notification message indicating that the download operation is successfully performed is sent to the target client. If the download fails, send a fourth notification message to the target client that the execution of the download operation fails, wherein the fourth notification message also includes the reason for the failure to perform the download operation. After receiving the fourth notification message, the target client can The reason for the execution failure included in the fourth message maintains the terminal device, and the reason for the execution failure may also be sent to the operation and maintenance personnel, and the download instruction may also be sent again.
- the software download can be triggered by the NETCONF RPC, that is, the download command is received through the NETCONF protocol, and the actual software package download is transmitted through SFTP; software download. After the download is complete, send a download-event notification to the target client. If the download process is correct and the software package is correct, the status in the notification is COMPLETED; if the download is wrong, the status is set to the cause of the download error.
- performing an upgrade operation on the target software based on the software upgrade instruction includes: parsing the software upgrade instruction to obtain an instruction type of the software upgrade instruction and a second parameter included in the software upgrade instruction parameter information; if it is determined that the instruction type of the software upgrade instruction is an installation instruction, determine a second predetermined condition corresponding to the installation instruction; if the second parameter information satisfies the second predetermined condition , determine the second software based on the second identification information included in the second parameter information, wherein the second software is the software corresponding to the target software acquired in advance; perform an installation operation on the second software, to upgrade the target software.
- the software upgrade instruction may also be an installation instruction.
- a second predetermined condition corresponding to the installation instruction is determined. If the second parameter information satisfies the second predetermined condition In the case of the condition, the second software is determined according to the second identification information included in the second parameter information.
- the second software is pre-acquired software corresponding to the target software. That is, the second software may be software downloaded through the above download instruction, or may be software pre-stored in the terminal device.
- the second parameter information may include installation information such as a software installation slot (ie, a software installation address), a software package file name, and the second identification information may be a software package file name.
- performing an installation operation on the second software to upgrade the target software includes: determining first installation address information included in the second parameter information; The installation operation is performed to install the second software into the address corresponding to the first installation address information.
- the first installation address information included in the second parameter information is determined, the installation operation is performed on the second software, the software package corresponding to the second software is installed in a designated software slot after a series of processing, and the software is completed. package installation.
- the method further includes: judging whether the second parameter information satisfies the second predetermined condition; When the second parameter information satisfies the second predetermined condition, a fifth notification message is sent to the target client, where the fifth notification message is used to notify the target client that the installation operation starts to be performed; If it is determined that the second parameter information does not meet the second predetermined condition, send a sixth notification message to the target client, where the sixth notification message is used to notify the target client of the installation Operation terminated.
- it after determining the second predetermined condition corresponding to the installation instruction, it can be determined whether the second parameter information satisfies the second predetermined condition.
- a fifth notification message is sent to the target client, wherein the fifth notification message may include a notification of successful parsing, and when the second parameter information does not meet the predetermined condition, a fifth notification message may be sent to the target client
- the client sends a sixth notification message, and the sixth notification message may include a notification of parsing failure.
- the second predetermined condition may be character length, format, and the like. That is, it can be judged whether each parameter included in the second parameter information is correct according to the length and format of the character.
- the device when the target session is a NETCONF session, the device receives the software-install RPC (corresponding to the above installation instruction) issued by the client through the NETCONF session. Parse the software-install RPC command to obtain installation information such as software installation slots and package file names. The device responds to the client according to the RPC parsing result. If the parsing is normal, it responds to the STARTED status and prepares to install; if it is incorrect, it responds to FAILED and terminates the installation.
- the software-install RPC corresponding to the above installation instruction
- Parse the software-install RPC command to obtain installation information such as software installation slots and package file names.
- the device responds to the client according to the RPC parsing result. If the parsing is normal, it responds to the STARTED status and prepares to install; if it is incorrect, it responds to FAILED and terminates the installation.
- feeding back the upgrade result of the upgrade operation to the target client includes: determining an execution result of the installation operation; if the execution result is that the installation operation is successfully executed, sending The target client sends a seventh notification message, where the seventh notification message is used to indicate that the installation operation is successfully executed; if the execution result is that the installation operation fails to be executed, the target client is sent to the target client.
- the terminal sends an eighth notification message, wherein the eighth notification message is used to indicate that the installation operation fails, and the eighth notification message includes second reason information for the failure of the installation operation.
- the execution result of the installation operation is determined after the installation is completed.
- a seventh notification message is sent to the target client, and if the installation fails, an eighth notification message is sent to the target client.
- the seventh notification message may include a notification that the installation is successful
- the eighth notification message may include the reason for the installation failure and the second reason for the installation failure.
- the terminal device can send an install-event notification to the client. If the installation process is correct, the status in the notification is COMPLETED; if the installation is wrong, the status is the reason for the installation error.
- performing an upgrade operation on the target software based on the software upgrade instruction includes: parsing the software upgrade instruction to obtain an instruction type of the software upgrade instruction and a third parameter included in the software upgrade instruction parameter information; if it is determined that the instruction type of the software upgrade instruction is an activation instruction, determine a third predetermined condition corresponding to the activation instruction; if the third parameter information satisfies the third predetermined condition , performing an activation operation on third software based on the second installation address information included in the third parameter information, where the third software is software installed in an address corresponding to the second installation address information.
- the software upgrade instruction may be an activation instruction, wherein the activation operation may be performed after the installation operation, that is, the target client sends an activation operation instruction to the terminal device after receiving a notification message of successful installation.
- the terminal device can parse the software to determine the type of the instruction and the third parameter information.
- a third predetermined condition corresponding to the activation instruction is determined, and in the case where it is determined that the third parameter information satisfies the third predetermined condition, the second installation condition included in the third parameter information is The third software corresponding to the address information performs the activation operation.
- the second installation address may be the address of the software slot, that is, the activation operation is performed on the software installed in the software slot.
- the terminal device when the target session is a NETCONF session, the terminal device receives the software-activate RPC command issued by the target client through the NETCONF session. Parse the software-activate RPC command to get the software slot that needs to be activated, and activate the software installed in the software slot.
- the method further includes: judging whether the third parameter information satisfies the third predetermined condition; after determining the third predetermined condition If the three-parameter information satisfies the third predetermined condition, send a ninth notification message to the target client, where the ninth notification message is used to notify the target client that the activation operation starts to be performed, and the second time required for performing the activation operation to instruct the target client to determine whether the activation operation times out based on the time when the target client receives the ninth notification message and the second time; after determining the If the third parameter information does not meet the third predetermined condition, a tenth notification message is sent to the target client, where the tenth notification message is used to notify the target client that the activation operation is terminated.
- a ninth notification message is sent to the target client, where the ninth notification message may include the start of the activation operation and the second time required to perform the activation operation.
- the target client can start timing, and when the timing exceeds the second time, it is considered that the activation operation has failed, and the target client can send an activation instruction to the terminal device again.
- a tenth notification message may be sent to the target client, where the tenth notification message may include a notification of activation failure.
- the target client may send an activation instruction to the terminal device again.
- the third predetermined condition may be character length, format, and the like. That is, whether each parameter included in the third parameter information is correct can be judged by the length and format of the character.
- the terminal device when the target session is a NETCONF session, the terminal device responds to the client according to the RPC parsing result. If the parsing is normal, it responds to the STARTED state and the time required to complete the activation, and prepares to activate; if there is an error, it responds to FAILED and terminate this activation.
- feeding back the upgrade result of the upgrade operation to the target client includes: determining an execution result of the activation operation; if the execution result is that the activation operation is successfully executed, sending The target client sends an eleventh notification message, where the eleventh notification message is used to indicate that the activation operation is successfully executed; in the case that the execution result is that the activation operation fails to be executed, send the notification message to the The target client sends a twelfth notification message, where the twelfth notification message is used to indicate that the activation operation fails to be executed, and the twelfth notification message includes third reason information for the failure of the activation operation to be executed .
- the execution result may be sent to the target client.
- an eleventh notification message is sent to the target client, and when the activation operation fails, a twelfth notification message is sent to the target client.
- the eleventh notification message may include a notification of successful execution
- the twelfth notification message may include third cause information of execution failure.
- the terminal device when the target session is the NETCONF session, the terminal device activates the software package that has been installed in the software slot. After activation is complete, an activation-event notification can be sent to the target client. If the installation process is correct, the status in the notification is COMPLETED; if the installation is wrong, the status is the reason for the installation error.
- the method further includes: receiving a restart instruction sent by the target client; disconnecting the target based on the restart instruction The session is connected, and a restart operation is performed to complete the upgrade operation.
- the restart instruction sent by the target client may also be received, the connection of the target session is disconnected according to the restart instruction, and the restart operation is performed, and the software upgrade has been completed.
- the target session is a NETCONF session
- the terminal device activates the software correctly, it waits for the client to send the restart RPC command. Respond to the command after receiving the restart RPC. Close the NETCONF session, perform a restart, and complete the entire package upgrade.
- the target session connection includes a network configuration NETCONF session connection;
- the software upgrade instruction includes a remote procedure call RPC instruction in a predetermined format.
- NETCONF is an XML-based network management protocol that uses the YANG model as a data model, and provides a programmable method for configuring and managing network devices. It adopts SSHv2 based on TCP for transmission, and realizes operation and control by means of RPC. Users can set parameters, obtain parameter values, and obtain statistical information through the NETCONF protocol.
- NETCONF has the advantages of powerful data modeling capability, filtering capability, configuration management capability and extensibility.
- the upgrade management is realized through the NETCONF protocol, which is divided into several processes of download, installation, activation and restart.
- Each process is independent and can monitor the status of each process. Ensure upgrade integrity and stability. And because of the powerful configuration management capabilities, there is no need to do anything on the device first, and only the information required for downloading and upgrading needs to be sent to the device in the form of XML. Applying NETCONF's powerful configuration capabilities (RPC and XML) to achieve software upgrade management, there is no need to set each parameter through the interface, and different processes can be realized only through different XML configuration files, which improves the efficiency of software upgrades.
- RPC and XML powerful configuration capabilities
- the remote procedure call RPC instruction in the predetermined format can be a download instruction, such as "user-rpc--content download.xml", an installation instruction, such as “user-rpc--content install.xml”, and an activation instruction, such as "user-rpc--content install.xml” -rpc--content activate.xml".
- the software, system, etc. already installed in the terminal device can be upgraded by a software upgrade method, and new software or system can also be installed for the terminal device, that is, the target software can be the software already installed in the terminal device, It can also be software that is not installed in the terminal device.
- the software upgrade process based on the NETCONF protocol of the software upgrade method may include software download, installation, activation and restart.
- the client RPC starts and ends with a notification reported by the device.
- Each process has correctness verification and response.
- the current process can be completed correctly before proceeding to the next process. Otherwise, the upgrade will be terminated to ensure the integrity and correctness of the software upgrade.
- the process of each upgrade is completed independently, and the status of the process is given, and the entire update process can be tracked.
- a software upgrade apparatus is also provided, and the apparatus is used to implement the above-mentioned embodiments and preferred implementation manners, and what has been described will not be repeated.
- the term "module” may be a combination of software and/or hardware that implements a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
- FIG. 4 is a structural block diagram of a software upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 4 , the apparatus includes:
- the receiving module 42 is configured to, after determining to establish a target session connection with the target client, receive a software upgrade instruction sent by the target client based on the target session connection, wherein the software upgrade instruction includes an instruction for upgrading parameter information of the target software;
- An upgrade module 44 configured to perform an upgrade operation on the target software based on the software upgrade instruction
- the feedback module 46 is configured to feed back the upgrade result of the upgrade operation to the target client.
- the upgrade module 44 may perform an upgrade operation on the target software based on the software upgrade instruction by: parsing the software upgrade instruction to obtain the instruction type of the software upgrade instruction and the the first parameter information included in the software upgrade instruction; if it is determined that the instruction type of the software upgrade instruction is a download instruction, determine the first predetermined condition corresponding to the download instruction; if the first parameter information satisfies In the case of the first predetermined condition, establish a connection with the target server based on the credential information included in the first parameter information; perform downloading in the target server based on the first identification information included in the first parameter information Operation is performed to download the first software corresponding to the target software; in the case of successful downloading, the target software is upgraded based on the first software.
- the apparatus may be configured to, after determining the first predetermined condition corresponding to the download instruction, determine whether the first parameter information satisfies the first predetermined condition; after determining the first predetermined condition If the parameter information satisfies the first predetermined condition, send a first notification message to the target client, where the first notification message is used to notify the target client to start the download operation, and The first time required to perform the download operation to instruct the target client to determine whether the download operation times out based on the time when the target client receives the first notification message and the first time; after determining the If the first parameter information does not meet the first predetermined condition, a second notification message is sent to the target client, where the second notification message is used to notify the target client that the download operation is terminated.
- the feedback module 46 may implement feedback of the upgrade result of the upgrade operation to the target client in the following manner: determine the execution result of the download operation; when the execution result is the If the download operation is successfully executed, a third notification message is sent to the target client, where the third notification message is used to indicate that the download operation is successfully executed; if the execution result is that the download operation fails to be executed In the case of the target client, a fourth notification message is sent to the target client, wherein the fourth notification message is used to indicate that the download operation fails to be performed, and the fourth notification message includes the failure to perform the download operation. First cause information.
- the upgrade module 44 may perform an upgrade operation on the target software based on the software upgrade instruction by: parsing the software upgrade instruction to obtain the instruction type of the software upgrade instruction and the second parameter information included in the software upgrade instruction; in the case of determining that the instruction type of the software upgrade instruction is an installation instruction, determine a second predetermined condition corresponding to the installation instruction; if the second parameter information satisfies In the case of the second predetermined condition, the second software is determined based on the second identification information included in the second parameter information, wherein the second software is the software corresponding to the target software acquired in advance; The second software performs an installation operation to upgrade the target software.
- the apparatus may be configured to perform an installation operation on the second software, so as to upgrade the target software, comprising: determining the first installation address information included in the second parameter information; The second software performs the installation operation, so as to install the second software into the address corresponding to the first installation address information.
- the apparatus may be configured to, after determining a second predetermined condition corresponding to the installation instruction, determine whether the second parameter information satisfies the second predetermined condition; after determining the first predetermined condition When the second parameter information satisfies the second predetermined condition, a fifth notification message is sent to the target client, where the fifth notification message is used to notify the target client that the installation operation starts to be performed; If it is determined that the second parameter information does not meet the second predetermined condition, send a sixth notification message to the target client, where the sixth notification message is used to notify the target client of the installation Operation terminated.
- the feedback module 46 may feedback the upgrade result of the upgrade operation to the target client in the following manner: determine the execution result of the installation operation; when the execution result is the If the installation operation is successfully executed, a seventh notification message is sent to the target client, where the seventh notification message is used to indicate that the installation operation is successfully executed; if the execution result is that the installation operation fails to be executed In the case of the target client, an eighth notification message is sent to the target client, wherein the eighth notification message is used to indicate that the installation operation fails to be performed, and the eighth notification message includes the failure of the installation operation to be performed. Second cause information.
- the upgrade module 44 may perform an upgrade operation on the target software based on the software upgrade instruction by: parsing the software upgrade instruction to obtain the instruction type of the software upgrade instruction and the third parameter information included in the software upgrade instruction; when it is determined that the instruction type of the software upgrade instruction is an activation instruction, determine a third predetermined condition corresponding to the activation instruction; when the third parameter information satisfies In the case of the third predetermined condition, the activation operation is performed on the third software based on the second installation address information included in the third parameter information, wherein the third software is installed in the second installation address information. software in the corresponding address.
- the apparatus may be configured to, after determining a third predetermined condition corresponding to the activation instruction, determine whether the third parameter information satisfies the third predetermined condition; after determining the third predetermined condition If the three-parameter information satisfies the third predetermined condition, send a ninth notification message to the target client, where the ninth notification message is used to notify the target client that the activation operation starts to be performed, and the second time required for performing the activation operation to instruct the target client to determine whether the activation operation times out based on the time when the target client receives the ninth notification message and the second time; after determining the If the third parameter information does not meet the third predetermined condition, a tenth notification message is sent to the target client, where the tenth notification message is used to notify the target client that the activation operation is terminated.
- the feedback module 46 may feedback the upgrade result of the upgrade operation to the target client in the following manner: determine the execution result of the activation operation; when the execution result is the If the activation operation is successfully executed, an eleventh notification message is sent to the target client, where the eleventh notification message is used to indicate that the activation operation is successfully executed; if the execution result is the activation operation If the execution fails, send a twelfth notification message to the target client, where the twelfth notification message is used to indicate that the activation operation fails to be executed, and the twelfth notification message includes the Information about the third reason for the failure of the activation operation.
- the apparatus may be configured to, after sending the eleventh notification message to the target client, receive a restart instruction sent by the target client; disconnect the target based on the restart instruction The session is connected, and a restart operation is performed to complete the upgrade operation.
- the target session connection includes a network configuration NETCONF session connection;
- the software upgrade instruction includes a remote procedure call RPC instruction in a predetermined format.
- the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
- Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
- the above-mentioned computer-readable storage medium may include, but is not limited to, a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), and a random access memory (Random Access Memory, referred to as RAM for short) , mobile hard disk, magnetic disk or CD-ROM and other media that can store computer programs.
- ROM Read-Only Memory
- RAM Random Access Memory
- An embodiment of the present invention also provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
- the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
- modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices
- they can be implemented in program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be performed in a different order than shown here.
- the described steps, or they are respectively made into individual integrated circuit modules, or a plurality of modules or steps in them are made into a single integrated circuit module to realize.
- the present invention is not limited to any particular combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种软件升级方法、装置、存储介质及电子装置,其中,该方法包括:在确定与目标客户端建立目标会话连接之后,接收目标客户端基于目标会话连接发送的软件升级指令,其中,软件升级指令中包括用于升级目标软件的参数信息(S202);基于软件升级指令对目标软件执行升级操作(S204);向目标客户端反馈升级操作的升级结果(S206)。通过该方法,解决了相关技术中存在的软件升级操作中无法确定升级异常的环节,升级效率低的问题,达到感知每个软件升级操作的执行结果,提高升级效率的效果。
Description
本发明实施例涉及通信领域,具体而言,涉及一种软件升级方法、装置、存储介质及电子装置。
在相关技术中,常用的软件管理方法,例如,传统的南向接口协议如CLI(Command Line Interface)和SNMP(Simple Network Management Protocol),具有兼容性差、配置管理能力弱等缺点。例如,通过SNMP管理文件升级时,需要首先有个前置条件。即,以发送参数的形式先在设备上配置SFTP服务器地址、SFTP服务器的端口、SFTP服务器的登录用户名、密码、待升级的文件等相关的信息。然后,触发软件升级命令。因为软件下载和更新是一起完成的,当升级出现问题时,无法区分是哪一个过程出现异常。
由此可知,在相关技术中存在软件升级操作中无法确定升级异常的环节,升级效率低的问题。
针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种软件升级方法、装置、存储介质及电子装置,以至少解决相关技术中存在的软件升级操作中无法确定升级异常的环节,升级效率低的问题。
根据本发明的一个实施例,提供了一种软件升级方法,包括:在确定与目标客户端建立目标会话连接之后,接收所述目标客户端基于所述目标会话连接发送的软件升级指令,其中,所述软件升级指令中包括用于升级目标软件的参数信息;基于所述软件升级指令对目标软件执行升级操作;向所述目标客户端反馈所述升级操作的升级结果。
根据本发明的另一个实施例,提供了一种软件升级装置,包括:接收模块,设置为在确定与目标客户端建立目标会话连接之后,接收所述目标客户端基于所述目标会话连接发送的软件升级指令,其中,所述软件升级指令中包括用于升级目标软件的参数信息;升级模块,设置为基于所述软件升级指令对目标软件执行升级操作;反馈模块,设置为向所述目标客户端反馈所述升级操作的升级结果。
根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可 读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
通过本发明,在确定与目标客户端建立目标会话连接之后,接收目标客户端基于目标会话连接发送的包括升级目标软件的参数信息的软件升级指令,基于软件升级指令对目标软件执行升级操作,在执行升级操作后,反馈升级操作的升级结果。由于在执行升级操作后,及时反馈升级结果,可以目标客户端可以确定每个升级操作环节的结果,因此,可以解决相关技术中存在的软件升级操作中无法确定升级异常的环节,升级效率低的问题,达到感知每个软件升级操作的执行结果,提高升级效率的效果。
图1是本发明实施例的一种软件升级方法的移动终端的硬件结构框图;
图2是根据本发明实施例的软件升级方法的流程图;
图3是根据本发明具体实施例的软件升级方法时序图;
图4是根据本发明实施例的软件升级装置的结构框图。
下文中将参考附图并结合实施例来详细说明本发明的实施例。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种软件升级方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和设置为存储数据的存储器104,其中,上述移动终端还可以包括设置为通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的软件升级方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输设备106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。
在本实施例中提供了一种软件升级方法,图2是根据本发明实施例的软件升级方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,在确定与目标客户端建立目标会话连接之后,接收所述目标客户端基于所述目标会话连接发送的软件升级指令,其中,所述软件升级指令中包括用于升级目标软件的参数信息;
步骤S204,基于所述软件升级指令对目标软件执行升级操作;
步骤S206,向所述目标客户端反馈所述升级操作的升级结果。
示例性的,上述步骤的执行主体可以是终端设备,如计算机、手机等终端,但不限于此。
在上述实施例中,目标客户端可以为终端设备管理设备,在目标客户端对终端设备进行管理之前,终端设备可以与终端设备建立目标会话连接,例如,NETCONF(Network Configuration Protocol,网络配置协议)会话连接。在连接目标会话连接之后,目标客户端可以通过目标会话向终端设备发送软件升级指令,终端设备基于软件升级指令对目标软件执行升级操作。终端设备基于软件升级指令升级软件之后,可以向目标终端反馈升级操作的结果。在操作结果为操作成功的情况下,目标客户端还可以向终端设备发明下一个软件升级指令,终端设备基于该软件升级指令对目标软件进行升级,并反馈升级结果。其中,软件升级指令可以包括下载指令、安装指令、激活指令等不同类型得到指令,软件升级指令中可以包括软件升级操作所需要的参数信息, 不同指令类型的软件升级指令中包括的参数信息可以不同。例如,当软件升级指令的指令类型为下载指令的情况下,参数信息可以为所要下载的软件的地址、名称等。当软件升级指令的指令类型为安装指令的情况下,参数信息可以为所要安装的软件的名称、存放位置及安装位置等。当软件升级指令的指令类型为激活指令的情况下,参数信息可以为所要激活的软件的名称、安装位置等。
在上述实施例中,当目标会话为NETCONF会话时,设备作为NETCONF服务器端,可以通过时钟同步、CALL HOME(自动通报)、SSH(secure shell,安全外壳协议)连接建立、能力发现等过程,建立与客户端的NETCONF会话。即,终端设备可以通过向目标客户端发送CALL HOME(自动通报)上报终端设备的设备信息,目标客户端在接收到CALL HOME后,可以与设备建立SHH连接,自动获取终端设备所具有的设备功能。软件升级指令可以为XML格式的RPC(Remote Procedure Call,远程过程调用)指令。
通过本发明,在确定与目标客户端建立目标会话连接之后,接收目标客户端基于目标会话连接发送的包括升级目标软件的参数信息的软件升级指令,基于软件升级指令对目标软件执行升级操作,在执行升级操作后,反馈升级操作的升级结果。由于在执行升级操作后,及时反馈升级结果,可以目标客户端可以确定每个升级操作环节的结果,因此,可以解决相关技术中存在的软件升级操作中无法确定升级异常的环节,升级效率低的问题,达到感知每个软件升级操作的执行结果,提高升级效率的效果。
在一个示例性实施例中,基于所述软件升级指令对目标软件执行升级操作包括:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第一参数信息;在确定所述软件升级指令的指令类型为下载指令的情况下,确定与所述下载指令对应的第一预定条件;在所述第一参数信息满足所述第一预定条件的情况下,基于所述第一参数信息中包括的凭证信息与目标服务器建立连接;基于所述第一参数信息中包括的第一标识信息在所述目标服务器中执行下载操作,以下载与所述目标软件对应的第一软件;在下载成功的情况下,基于所述第一软件升级所述目标软件。在本实施例中,终端设备可以通过解析软件升级指令来获取软件升级指令的指令类型,以及软件升级指令中包括的第一参数信息。当软件升级指令为下载指令时,确定该与下载指令对应的第一预定条件,在确定第一参数信息满足第一预定条件的情况下,根据第一参数信息中包括的凭证信息与目标服务器连接,在与目标服务器建立连接后,在目标服务器中下载与第一参数信息中包括的第一标识信息对应的第一软件,在下载成功后基于第一软件升级目标软件。其中,第一参数信息中可以包括所要下载软件的名称、下载地址、下载凭证信息等。其中,凭证信息可以为下载软件的 服务器地址、访问服务器的访问用户名、密码等。第一预定条件用于判断解析软件升级指令的结果是否正常。即可以通过第一预定条件判断第一参数信息是否正确。例如,第一预定条件可以为字符的长度、格式等。即,可以通过字符的长度、格式等判断第一参数信息中包括的各参数是否正确。
在上述实施例中,当目标会话为NETCONF会话时,网管(对应于上述目标客户端)通过NETCONF协议,通过建立的NETCONF会话将启动下载的RPC命令下发到设备端(对应于上述终端设备);终端设备通过上述建立的NETCONF会话,接收目标客户端下发的software-download RPC(软件下载指令)。终端设备解析software-download RPC命令,得到SFTP服务器(文件传输服务器)地址、访问用户名和密码、软件包文件名等。终端设备确定解析结果,如果解析结果正确则进行软件下载。终端设备通过凭证建立与SFTP服务器连接,并完成软件下载。
在一个示例性实施例中,在确定与所述下载指令对应的第一预定条件之后,所述方法还包括:判断所述第一参数信息是否满足所述第一预定条件;在确定所述第一参数信息满足所述第一预定条件的情况下,向所述目标客户端发送第一通知消息,其中,所述第一通知消息用于通知所述目标客户端所述下载操作开始执行,以及执行下载操作所需的第一时间,以指示所述目标客户端基于所述目标客户端接收所述第一通知消息的时间以及所述第一时间判断所述下载操作是否超时;在确定所述第一参数信息不满足所述第一预定条件的情况下,向所述目标客户端发送第二通知消息,其中,所述第二通知消息用于通知所述目标客户端所述下载操作终止。在本实施例中,在确定与下载指令对应的第一预定条件之后,终端设备可以判断第一参数信息是否满足第一预定条件,并将判断的结果通过目标会话发送给目标客户端。在确定第一参数信息不满足第一预定条件的情况下,向目标客户端发送第二通知消息。其中,第一通知消息中可以包括下载操作开始执行的通知,以及执行下载操作的所需的第一时间。目标客户端在接收到第一通知时,可以开始计数,当超过第一时间后,未接收到下载完成的指令,可以认为下载失败。第二通知消息中可以包括解析失败的通知。目标客户端在接收到第二通知消息后,可以再次向终端设备发送下载指令。
在上述实施例中,当目标会话为NETCONF会话时,终端设备可以通过NETCONF协议,根据YANG模型中定义的数据模型结构,应答rpc-reply。终端设备根据RPC解析结果应答目标客户端,如果解析正常,则回应STARTED状态以及本次下载完成上报时间,并准备下载;若有误,则回应FAILED并终止本次下载。
在一个示例性实施例中,向所述目标客户端反馈所述升级操作的升级结果包括:确定所述下载操作的执行结果;在所述执行结果为所述下载操作执行成功的情况下, 向所述目标客户端发送第三通知消息,其中,所述第三通知消息用于指示所述下载操作执行成功;在所述执行结果为所述下载操作执行失败的情况下,向所述目标客户端发送第四通知消息,其中,所述第四通知消息用于指示所述下载操作执行失败,且所述第四通知消息中包括所述下载操作执行失败的第一原因信息。在本实施例中,终端设备在下载完成后,可以向目标客户端反馈下载结果。若下载成功,则向目标客户端发送下载操作执行成功的第三通知消息。若下载失败,则向目标客户端发送下载操作执行失败的第四通知消息,其中,第四通知消息中还包括下载操作执行失败的原因,目标客户端在接收到第四通知消息后,可以根据第四消息中包括的执行失败的原因维护终端设备,也可以将执行失败的原因发送给运维人员,还可以再次发送下载指令。
在上述实施例中,当目标会话为NETCONF时,软件下载可以由NETCONF RPC触发,即通过NETCONF协议接收下载命令,而实际的软件包下载通过SFTP完成传输;通过凭证建立与SFTP服务器连接,并完成软件下载。下载完成后发送download-event notification到目标客户端。若下载过程无误、软件包正确,则notification中的状态为COMPLETED,若下载错误,则状态置为下载错误的原因。
在一个示例性实施例中,基于所述软件升级指令对目标软件执行升级操作包括:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第二参数信息;在确定所述软件升级指令的指令类型为安装指令的情况下,确定与所述安装指令对应的第二预定条件;在所述第二参数信息满足所述第二预定条件的情况下,基于所述第二参数信息中包括的第二标识信息确定第二软件,其中,所述第二软件为预先获取的与所述目标软件对应的软件;对所述第二软件执行安装操作,以升级所述目标软件。在本实施例中,软件升级指令还可以为安装指令,在解析软件升级指令后,确定为安装指令的情况下,确定与安装指令对应的第二预定条件,在第二参数信息满足第二预定条件的情况下,根据第二参数信息中包括的第二标识信息确定第二软件。其中,第二软件为预先获取的与目标软件对应的软件。即,第二软件可以为通过上述下载指令下载的软件,也可以是预先存储在终端设备中的软件。第二参数信息可以包括软件安装槽(即软件安装地址)、软件包文件名等安装信息,第二标识信息可以为软件包文件名。
在一个示例性实施例中,对所述第二软件执行安装操作,以升级所述目标软件包括:确定所述第二参数信息中包括的第一安装地址信息;对所述第二软件执行所述安装操作,以将所述第二软件安装至所述第一安装地址信息对应的地址中。在本实施例中,确定第二参数信息中包括的第一安装地址信息,对第二软件执行安装操作,将第二软件对应的软件包经过一系列处理后安装到指定的软件槽,完成软件包安装。
在一个示例性实施例中,在确定与所述安装指令对应的第二预定条件之后,所述方法还包括:判断所述第二参数信息是否满足所述第二预定条件;在确定所述第二参数信息满足所述第二预定条件的情况下,向所述目标客户端发送第五通知消息,其中,所述第五通知消息用于通知所述目标客户端所述安装操作开始执行;在确定所述第二参数信息不满足所述第二预定条件的情况下,向所述目标客户端发送第六通知消息,其中,所述第六通知消息用于通知所述目标客户端所述安装操作终止。在本实施例中,在确定与安装指令对应的第二预定条件之后,可以判断第二参数信息是否满足第二预定条件。当第二参数信息满足第二预定条件时,向目标客户端发送第五通知消息,其中,第五通知消息中可以包括解析成功的通知,当第二参数信息不满足预定条件时,可以向目标客户端发送第六通知消息,第六通知消息中可以包括解析失败的通知。其中,第二预定条件可以为字符长度、格式等。即,可以通过字符的长度、格式等判断第二参数信息中包括的各参数是否正确。
在上述实施例中,当目标会话为NETCONF会话时,设备通过NETCONF会话,接收客户端下发的software-install RPC(对应于上述安装指令)。解析software-install RPC命令,得到软件安装槽、软件包文件名等安装信息。设备根据RPC解析结果应答客户端,如果解析正常,则回应STARTED状态,并准备安装;若有误,则回应FAILED,并终止本次安装。
在一个示例性实施例中,向所述目标客户端反馈所述升级操作的升级结果包括:确定所述安装操作的执行结果;在所述执行结果为所述安装操作执行成功的情况下,向所述目标客户端发送第七通知消息,其中,所述第七通知消息用于指示所述安装操作执行成功;在所述执行结果为所述安装操作执行失败的情况下,向所述目标客户端发送第八通知消息,其中,所述第八通知消息用于指示所述安装操作执行失败,且所述第八通知消息中包括所述安装操作执行失败的第二原因信息。在本实施例中,在安装完成后,确定安装操作的执行结果。在安装成功的情况下,向目标客户端发送第七通知消息,在安装失败的情况下,向目标客户端发送第八通知消息。其中,第七通知消息中可以包括安装成功的通知,第八通知消息中可以包括安装失败的原因及安装失败的第二原因。在目标客户端接收到第八通知消息时,可以根据安装失败的原因对终端设备进行维护,或者将安装失败的原因发送给运维人员,还可以再次发送安装指令。
在上述实施例中,当目标会话为NETCONF会话时,安装完成后,终端设备可以发送install-event notification到客户端。若安装过程无误,则notification中的状态为COMPLETED,若安装错误,则状态为安装错误的原因。
在一个示例性实施例中,基于所述软件升级指令对目标软件执行升级操作包括: 解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第三参数信息;在确定所述软件升级指令的指令类型为激活指令的情况下,确定与所述激活指令对应的第三预定条件;在所述第三参数信息满足所述第三预定条件的情况下,基于所述第三参数信息中包括的第二安装地址信息对第三软件执行激活操作,其中,所述第三软件为安装在所述第二安装地址信息所对应的地址中的软件。在本实施例中,软件升级指令可以为激活指令,其中,激活操作可以在安装操作之后执行,即,目标客户端在接收到安装成功的通知消息后,向终端设备发送激活操作指令。终端设备在接收到软件升级指令后,可以对软件进行解析,确定指令的类型以及第三参数信息。在确定软件升级指令为激活指令的情况下,确定出与激活指令对应的第三预定条件,在确定第三参数信息满足第三预定条件的情况下,对第三参数信息中包括的第二安装地址信息所对应的第三软件执行激活操作。其中,第二安装地址可以为软件槽的地址,即对安装在软件槽中的软件执行激活操作。
在上述实施例中,当目标会话为NETCONF会话时,终端设备通过NETCONF会话,接收目标客户端下发的software-activate RPC命令。解析software-activate RPC命令,得到需要激活的软件槽,并激活软件槽中安装的软件。
在一个示例性实施例中,在确定与所述激活指令对应的第三预定条件之后,所述方法还包括:判断所述第三参数信息是否满足所述第三预定条件;在确定所述第三参数信息满足所述第三预定条件的情况下,向所述目标客户端发送第九通知消息,其中,所述第九通知消息用于通知所述目标客户端所述激活操作开始执行,以及执行激活操作所需的第二时间,以指示所述目标客户端基于所述目标客户端接收所述第九通知消息的时间以及所述第二时间判断所述激活操作是否超时;在确定所述第三参数信息不满足所述第三预定条件的情况下,向所述目标客户端发送第十通知消息,其中,所述第十通知消息用于通知所述目标客户端所述激活操作终止。在本实施例中,在确定与激活指令对应的第三预定条件之后,判断第三参数信息是否满足第三预定条件。在满足第三预定条件的情况下,向目标客户端发送第九通知消息,其中,第九通知消息中可以包括激活操作开始执行以及执行激活操作所需的第二时间。目标客户端在接收到第九通知消息时,可以开始计时,当计时时间超过第二时间时认为激活操作执行失败,目标客户端可以再次向终端设备发送激活指令。在第三参数信息不满足第三预定条件的情况下,可以向目标客户端发送第十通知消息,其中,第十通知消息中可以包括激活失败的通知。目标客户端在接收到第十通知消息后,可以再次向终端设备发送激活指令。其中,第三预定条件可以为字符长度、格式等。即,可以通过字符的长度、格式等判断第三参数信息中包括的各参数是否正确。
在上述实施例中,当目标会话为NETCONF会话时,终端设备根据RPC解析结果应答客户端,如果解析正常,则回应STARTED状态及激活完成需要的时间,并准备激活;若有误,则回应FAILED并终止本次激活。
在一个示例性实施例中,向所述目标客户端反馈所述升级操作的升级结果包括:确定所述激活操作的执行结果;在所述执行结果为所述激活操作执行成功的情况下,向所述目标客户端发送第十一通知消息,其中,所述第十一通知消息用于指示所述激活操作执行成功;在所述执行结果为所述激活操作执行失败的情况下,向所述目标客户端发送第十二通知消息,其中,所述第十二通知消息用于指示所述激活操作执行失败,且所述第十二通知消息中包括所述激活操作执行失败的第三原因信息。在本实施例中,在激活操作完成后,可以向目标客户端发送执行结果。当激活操作执行成功的情况下,向目标客户端发送第十一通知消息,当激活操作执行失败的情况下,向目标客户端发送第十二通知消息。其中,第十一通知消息中可以包括执行成功的通知,第十二通知消息中可以包括执行失败的第三原因信息。目标客户端在接收到第十二通知消息后,可以根据激活失败的原因对终端设备进行维护,或者将激活失败的原因发送给运维人员,还可以再次发送激活指令。
在上述实施例中,当目标会话为NETCONF会话时,终端设备激活已经安装在软件槽的软件包。激活完成后,可以发送activation-event notification到目标客户端。若安装过程无误,则notification中的状态为COMPLETED,若安装错误,则状态为安装错误的原因。
在一个示例性实施例中,在向所述目标客户端发送第十一通知消息之后,所述方法还包括:接收所述目标客户端发送的重启指令;基于所述重启指令断开所述目标会话连接,并执行重启操作,以完成所述升级操作。在本实施例中,在向目标客户端发送激活成功的通知消息后,还可以接收目标客户端发送的重启指令,根据重启指令断开目标会话连接,并执行重启操作,已完成对软件的升级。当目标会话为NETCONF会话时,终端设备正确激活软件后,等待客户端发送restart RPC命令。收到restart RPC后应答该命令。关闭NETCONF会话,执行重启,完成整个软件包升级。
在一个示例性实施例中,所述目标会话连接包括网络配置NETCONF会话连接;所述软件升级指令包括预定格式的远程过程调用RPC指令。在本实施例中,NETCONF是一种以YANG模型作为数据模型,基于XML的网络管理协议,提供了一种可编程的、对网络设备进行配置和管理的方法。采用基于TCP的SSHv2进行传送,以RPC的方式实现操作和控制。用户可以通过NETCONF协议设置参数、获取参数值、获取统计信息。NETCONF具有强大的数据建模能力、过滤能力、配置管理能力和可扩 展性等优点。通过NETCONF协议实现升级管理,分为下载、安装、激活和重启几个过程,每一个过程都独立,且能监控每个过程的状态。保证升级完整性和稳定性。又因为强大的配置管理能力,不需要先在设备上做任何,只需要将下载和升级所需的信息通过XML的形式发送到设备端。应用NETCONF强大配置能力(RPC和XML)实现软件升级管理,无需通过界面对每个参数进行设置,只需通过不同的XML配置文件即可实现不同的过程,提高了软件升级的效率。其中,预定格式的远程过程调用RPC指令可以为下载指令,如“user-rpc--content download.xml”,安装指令,如“user-rpc--content install.xml”,激活指令,如“user-rpc--content activate.xml”。
在上述实施例中,可以通过软件升级方法升级终端设备中已经安装的软件、系统等,还可以为终端设备安装新的软件或系统,即,目标软件可以为已经在终端设备中安装的软件,也可以为终端设备中未安装的软件。
下面结合具体实施方式对软件升级方法进行说明:
图3是根据本发明具体实施例的软件升级方法时序图,如图3所示,软件升级方法基于NETCONF协议的软件升级过程可以包括软件下载、安装、激活并重启,每一个过程都以接收到客户端RPC启动,以设备上报notification结束。每一个过程都有正确性验证及应答,当前过程正确无误完成才能进行下一步过程,否则会终止升级,保证软件升级的完整性、正确性。每个升级的过程均独立完成,并给出该过程的状态,可以跟踪整个更新过程。
需要说明的是,整个流程还可以分成独立的三个过程,分别为下载、安装和激活,方便通过客户度独立管理。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种软件升级装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但 是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图4是根据本发明实施例的软件升级装置的结构框图,如图4所示,该装置包括:
接收模块42,设置为在确定与所述目标客户端建立目标会话连接之后,接收所述目标客户端基于所述目标会话连接发送的软件升级指令,其中,所述软件升级指令中包括用于升级目标软件的参数信息;
升级模块44,设置为基于所述软件升级指令对目标软件执行升级操作;
反馈模块46,设置为向所述目标客户端反馈所述升级操作的升级结果。
在一个示例性实施例中,所述升级模块44可以通过如下方式实现基于所述软件升级指令对目标软件执行升级操作:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第一参数信息;在确定所述软件升级指令的指令类型为下载指令的情况下,确定与所述下载指令对应的第一预定条件;在所述第一参数信息满足所述第一预定条件的情况下,基于所述第一参数信息中包括的凭证信息与目标服务器建立连接;基于所述第一参数信息中包括的第一标识信息在所述目标服务器中执行下载操作,以下载与所述目标软件对应的第一软件;在下载成功的情况下,基于所述第一软件升级所述目标软件。
在一个示例性实施例中,所述装置可以设置为在确定与所述下载指令对应的第一预定条件之后,判断所述第一参数信息是否满足所述第一预定条件;在确定所述第一参数信息满足所述第一预定条件的情况下,向所述目标客户端发送第一通知消息,其中,所述第一通知消息用于通知所述目标客户端所述下载操作开始执行,以及执行下载操作所需的第一时间,以指示所述目标客户端基于所述目标客户端接收所述第一通知消息的时间以及所述第一时间判断所述下载操作是否超时;在确定所述第一参数信息不满足所述第一预定条件的情况下,向所述目标客户端发送第二通知消息,其中,所述第二通知消息用于通知所述目标客户端所述下载操作终止。
在一个示例性实施例中,所述反馈模块46可以通过如下方式实现向所述目标客户端反馈所述升级操作的升级结果:确定所述下载操作的执行结果;在所述执行结果为所述下载操作执行成功的情况下,向所述目标客户端发送第三通知消息,其中,所述第三通知消息用于指示所述下载操作执行成功;在所述执行结果为所述下载操作执行失败的情况下,向所述目标客户端发送第四通知消息,其中,所述第四通知消息用于指示所述下载操作执行失败,且所述第四通知消息中包括所述下载操作执行失败的第一原因信息。
在一个示例性实施例中,所述升级模块44可以通过如下方式实现基于所述软件升 级指令对目标软件执行升级操作:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第二参数信息;在确定所述软件升级指令的指令类型为安装指令的情况下,确定与所述安装指令对应的第二预定条件;在所述第二参数信息满足所述第二预定条件的情况下,基于所述第二参数信息中包括的第二标识信息确定第二软件,其中,所述第二软件为预先获取的与所述目标软件对应的软件;对所述第二软件执行安装操作,以升级所述目标软件。
在一个示例性实施例中,所述装置可以设置为对所述第二软件执行安装操作,以升级所述目标软件包括:确定所述第二参数信息中包括的第一安装地址信息;对所述第二软件执行所述安装操作,以将所述第二软件安装至所述第一安装地址信息对应的地址中。
在一个示例性实施例中,所述装置可以设置为在确定与所述安装指令对应的第二预定条件之后,判断所述第二参数信息是否满足所述第二预定条件;在确定所述第二参数信息满足所述第二预定条件的情况下,向所述目标客户端发送第五通知消息,其中,所述第五通知消息用于通知所述目标客户端所述安装操作开始执行;在确定所述第二参数信息不满足所述第二预定条件的情况下,向所述目标客户端发送第六通知消息,其中,所述第六通知消息用于通知所述目标客户端所述安装操作终止。
在一个示例性实施例中,所述反馈模块46可以通过如下方式实现向所述目标客户端反馈所述升级操作的升级结果:确定所述安装操作的执行结果;在所述执行结果为所述安装操作执行成功的情况下,向所述目标客户端发送第七通知消息,其中,所述第七通知消息用于指示所述安装操作执行成功;在所述执行结果为所述安装操作执行失败的情况下,向所述目标客户端发送第八通知消息,其中,所述第八通知消息用于指示所述安装操作执行失败,且所述第八通知消息中包括所述安装操作执行失败的第二原因信息。
在一个示例性实施例中,所述升级模块44可以通过如下方式实现基于所述软件升级指令对目标软件执行升级操作:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第三参数信息;在确定所述软件升级指令的指令类型为激活指令的情况下,确定与所述激活指令对应的第三预定条件;在所述第三参数信息满足所述第三预定条件的情况下,基于所述第三参数信息中包括的第二安装地址信息对第三软件执行激活操作,其中,所述第三软件为安装在所述第二安装地址信息所对应的地址中的软件。
在一个示例性实施例中,所述装置可以设置为在确定与所述激活指令对应的第三 预定条件之后,判断所述第三参数信息是否满足所述第三预定条件;在确定所述第三参数信息满足所述第三预定条件的情况下,向所述目标客户端发送第九通知消息,其中,所述第九通知消息用于通知所述目标客户端所述激活操作开始执行,以及执行激活操作所需的第二时间,以指示所述目标客户端基于所述目标客户端接收所述第九通知消息的时间以及所述第二时间判断所述激活操作是否超时;在确定所述第三参数信息不满足所述第三预定条件的情况下,向所述目标客户端发送第十通知消息,其中,所述第十通知消息用于通知所述目标客户端所述激活操作终止。
在一个示例性实施例中,所述反馈模块46可以通过如下方式实现向所述目标客户端反馈所述升级操作的升级结果:确定所述激活操作的执行结果;在所述执行结果为所述激活操作执行成功的情况下,向所述目标客户端发送第十一通知消息,其中,所述第十一通知消息用于指示所述激活操作执行成功;在所述执行结果为所述激活操作执行失败的情况下,向所述目标客户端发送第十二通知消息,其中,所述第十二通知消息用于指示所述激活操作执行失败,且所述第十二通知消息中包括所述激活操作执行失败的第三原因信息。
在一个示例性实施例中,所述装置可以设置为在向所述目标客户端发送第十一通知消息之后,接收所述目标客户端发送的重启指令;基于所述重启指令断开所述目标会话连接,并执行重启操作,以完成所述升级操作。
在一个示例性实施例中,所述目标会话连接包括网络配置NETCONF会话连接;所述软件升级指令包括预定格式的远程过程调用RPC指令。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (16)
- 一种软件升级方法,包括:在确定与目标客户端建立目标会话连接之后,接收所述目标客户端基于所述目标会话连接发送的软件升级指令,其中,所述软件升级指令中包括用于升级目标软件的参数信息;基于所述软件升级指令对目标软件执行升级操作;向所述目标客户端反馈所述升级操作的升级结果。
- 根据权利要求1所述的方法,其中,基于所述软件升级指令对目标软件执行升级操作包括:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第一参数信息;在确定所述软件升级指令的指令类型为下载指令的情况下,确定与所述下载指令对应的第一预定条件;在所述第一参数信息满足所述第一预定条件的情况下,基于所述第一参数信息中包括的凭证信息与目标服务器建立连接;基于所述第一参数信息中包括的第一标识信息在所述目标服务器中执行下载操作,以下载与所述目标软件对应的第一软件;在下载成功的情况下,基于所述第一软件升级所述目标软件。
- 根据权利要求2所述的方法,其中,在确定与所述下载指令对应的第一预定条件之后,所述方法还包括:判断所述第一参数信息是否满足所述第一预定条件;在确定所述第一参数信息满足所述第一预定条件的情况下,向所述目标客户端发送第一通知消息,其中,所述第一通知消息用于通知所述目标客户端所述下载操作开始执行,以及执行下载操作所需的第一时间,以指示所述目标客户端基于所述目标客户端接收所述第一通知消息的时间以及所述第一时间判断所述下载操作是否超时;在确定所述第一参数信息不满足所述第一预定条件的情况下,向所述目标客户端发送第二通知消息,其中,所述第二通知消息用于通知所述目标客户端所述下载操作终止。
- 根据权利要求2所述的方法,其中,向所述目标客户端反馈所述升级操作的升级结果包括:确定所述下载操作的执行结果;在所述执行结果为所述下载操作执行成功的情况下,向所述目标客户端发送第三通知消息,其中,所述第三通知消息用于指示所述下载操作执行成功;在所述执行结果为所述下载操作执行失败的情况下,向所述目标客户端发送第四通知消息,其中,所述第四通知消息用于指示所述下载操作执行失败,且所述第四通知消息中包括所述下载操作执行失败的第一原因信息。
- 根据权利要求1所述的方法,其中,基于所述软件升级指令对目标软件执行升级操作包括:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第二参数信息;在确定所述软件升级指令的指令类型为安装指令的情况下,确定与所述安装指令对应的第二预定条件;在所述第二参数信息满足所述第二预定条件的情况下,基于所述第二参数信息中包括的第二标识信息确定第二软件,其中,所述第二软件为预先获取的与所述目标软件对应的软件;对所述第二软件执行安装操作,以升级所述目标软件。
- 根据权利要求5所述的方法,其中,对所述第二软件执行安装操作,以升级所述目标软件包括:确定所述第二参数信息中包括的第一安装地址信息;对所述第二软件执行所述安装操作,以将所述第二软件安装至所述第一安装地址信息对应的地址中。
- 根据权利要求5所述的方法,其中,在确定与所述安装指令对应的第二预定条件之后,所述方法还包括:判断所述第二参数信息是否满足所述第二预定条件;在确定所述第二参数信息满足所述第二预定条件的情况下,向所述目标客户端发送第五通知消息,其中,所述第五通知消息用于通知所述目标客户端所述安装操作开始执行;在确定所述第二参数信息不满足所述第二预定条件的情况下,向所述目标客户端发送第六通知消息,其中,所述第六通知消息用于通知所述目标客户端所述安装操作终止。
- 根据权利要求5所述的方法,其中,向所述目标客户端反馈所述升级操作的升级结果包括:确定所述安装操作的执行结果;在所述执行结果为所述安装操作执行成功的情况下,向所述目标客户端发送第七通知消息,其中,所述第七通知消息用于指示所述安装操作执行成功;在所述执行结果为所述安装操作执行失败的情况下,向所述目标客户端发送第八通知消息,其中,所述第八通知消息用于指示所述安装操作执行失败,且所述第八通知消息中包括所述安装操作执行失败的第二原因信息。
- 根据权利要求1所述的方法,其中,基于所述软件升级指令对目标软件执行升级操作包括:解析所述软件升级指令,以获取所述软件升级指令的指令类型以及所述软件升级指令中包括的第三参数信息;在确定所述软件升级指令的指令类型为激活指令的情况下,确定与所述激活指令对应的第三预定条件;在所述第三参数信息满足所述第三预定条件的情况下,基于所述第三参数信息中包括的第二安装地址信息对第三软件执行激活操作,其中,所述第三软件为安装在所述第二安装地址信息所对应的地址中的软件。
- 根据权利要求9所述的方法,其中,在确定与所述激活指令对应的第三预定条件之后,所述方法还包括:判断所述第三参数信息是否满足所述第三预定条件;在确定所述第三参数信息满足所述第三预定条件的情况下,向所述目标客户端发送第九通知消息,其中,所述第九通知消息用于通知所述目标客户端所述激活操作开始执行,以及执行激活操作所需的第二时间,以指示所述目标客户端基于所述目标客户端接收所述第九通知消息的时间以及所述第二时间判断所述激活操作是否超时;在确定所述第三参数信息不满足所述第三预定条件的情况下,向所述目标客户端发送第十通知消息,其中,所述第十通知消息用于通知所述目标客户端所述激活操作终止。
- 根据权利要求9所述的方法,其中,向所述目标客户端反馈所述升级操作的升级结果包括:确定所述激活操作的执行结果;在所述执行结果为所述激活操作执行成功的情况下,向所述目标客户端发送第十一通知消息,其中,所述第十一通知消息用于指示所述激活操作执行成功;在所述执行结果为所述激活操作执行失败的情况下,向所述目标客户端发送第十二通知消息,其中,所述第十二通知消息用于指示所述激活操作执行失败,且所述第 十二通知消息中包括所述激活操作执行失败的第三原因信息。
- 根据权利要求11所述的方法,其中,在向所述目标客户端发送第十一通知消息之后,所述方法还包括:接收所述目标客户端发送的重启指令;基于所述重启指令断开所述目标会话连接,并执行重启操作,以完成所述升级操作。
- 根据权利要求1至12中任一项所述的方法,其中,所述目标会话连接包括网络配置NETCONF会话连接;所述软件升级指令包括预定格式的远程过程调用RPC指令。
- 一种软件升级装置,包括:接收模块,设置为在确定与目标客户端建立目标会话连接之后,接收所述目标客户端基于所述目标会话连接发送的软件升级指令,其中,所述软件升级指令中包括用于升级目标软件的参数信息;升级模块,设置为基于所述软件升级指令对目标软件执行升级操作;反馈模块,设置为向所述目标客户端反馈所述升级操作的升级结果。
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至13任一项中所述的方法。
- 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至13任一项中所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011355948.0A CN112527346A (zh) | 2020-11-26 | 2020-11-26 | 软件升级方法、装置、存储介质及电子装置 |
CN202011355948.0 | 2020-11-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022110645A1 true WO2022110645A1 (zh) | 2022-06-02 |
Family
ID=74994033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/091216 WO2022110645A1 (zh) | 2020-11-26 | 2021-04-29 | 软件升级方法、装置、存储介质及电子装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112527346A (zh) |
WO (1) | WO2022110645A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117992265A (zh) * | 2023-12-28 | 2024-05-07 | 中国工业互联网研究院 | 基于标识解析的工业软件产品规范管理方法及装置 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527346A (zh) * | 2020-11-26 | 2021-03-19 | 三维通信股份有限公司 | 软件升级方法、装置、存储介质及电子装置 |
CN115291862A (zh) * | 2022-10-10 | 2022-11-04 | 深圳华锐分布式技术股份有限公司 | 基于预设工具库的工具调用方法、装置、设备及介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184212A (zh) * | 2007-11-01 | 2008-05-21 | 中兴通讯股份有限公司 | 一种视频监控系统监控前端的升级方法 |
WO2013078951A1 (zh) * | 2011-12-01 | 2013-06-06 | 腾讯科技(深圳)有限公司 | 软件升级方法和系统 |
CN109388419A (zh) * | 2018-10-17 | 2019-02-26 | 阳光电源股份有限公司 | 一种光伏电站设备软件升级系统、方法及装置 |
CN111314128A (zh) * | 2017-02-15 | 2020-06-19 | 金钱猫科技股份有限公司 | 一种无源光网络中终端设备的软件升级下载方法 |
CN112527346A (zh) * | 2020-11-26 | 2021-03-19 | 三维通信股份有限公司 | 软件升级方法、装置、存储介质及电子装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144523A (zh) * | 2017-06-19 | 2019-01-04 | 中兴通讯股份有限公司 | 软件部署管理方法及服务器、管理客户端、普通客户端 |
-
2020
- 2020-11-26 CN CN202011355948.0A patent/CN112527346A/zh active Pending
-
2021
- 2021-04-29 WO PCT/CN2021/091216 patent/WO2022110645A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184212A (zh) * | 2007-11-01 | 2008-05-21 | 中兴通讯股份有限公司 | 一种视频监控系统监控前端的升级方法 |
WO2013078951A1 (zh) * | 2011-12-01 | 2013-06-06 | 腾讯科技(深圳)有限公司 | 软件升级方法和系统 |
CN111314128A (zh) * | 2017-02-15 | 2020-06-19 | 金钱猫科技股份有限公司 | 一种无源光网络中终端设备的软件升级下载方法 |
CN109388419A (zh) * | 2018-10-17 | 2019-02-26 | 阳光电源股份有限公司 | 一种光伏电站设备软件升级系统、方法及装置 |
CN112527346A (zh) * | 2020-11-26 | 2021-03-19 | 三维通信股份有限公司 | 软件升级方法、装置、存储介质及电子装置 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117992265A (zh) * | 2023-12-28 | 2024-05-07 | 中国工业互联网研究院 | 基于标识解析的工业软件产品规范管理方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN112527346A (zh) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022110645A1 (zh) | 软件升级方法、装置、存储介质及电子装置 | |
EP2528274B1 (en) | Method and system for upgrading network device | |
WO2015117527A1 (zh) | 升级方法及装置 | |
CN102546818B (zh) | 一种对嵌入式设备批量升级的方法及系统 | |
EP2755412A1 (en) | Method and system for upgrading firmware of user side device | |
CN101860545A (zh) | 一种实现设备自动配置的系统及方法 | |
EP2429225A1 (en) | Method for provisioning parameters of terminal, system thereof, and terminal management device | |
CN111901419B (zh) | 用于家电底板升级的方法及装置、设备 | |
CN110912728B (zh) | 一种操作系统补丁批量自动化更新管理方法及系统 | |
CN112733062B (zh) | 一种物联应用管理系统及方法 | |
CN107395385A (zh) | 软件升级方法及装置 | |
CN112737847B (zh) | 节点升级方法及装置、存储介质及电子装置 | |
US20170280410A1 (en) | Method, device and system for implementing information self-registration, and computer storage medium | |
WO2017124741A1 (zh) | 一种设备版本同步方法及装置 | |
CN110166547A (zh) | 终端远程访问控制方法 | |
WO2021203384A1 (zh) | 设备升级的方法、装置及存储介质 | |
CN112764780A (zh) | 一种适用于dcc多节点服务器应用批量自动升级方法 | |
CN104022901B (zh) | 国网集中器onu模块的plc配置管理方法 | |
CN113518121B (zh) | 一种批量操作方法以及装置 | |
CN115174389A (zh) | 一种升级方法、装置、设备及可读存储介质 | |
CN114925135A (zh) | 数据导出方法、装置、系统、电子设备及存储介质 | |
US10979287B2 (en) | Method and apparatus for receiving a solution when configuration function verification fails in a terminal | |
CN113986289A (zh) | 边缘计算网关的固件升级方法及装置 | |
CN113032054A (zh) | 一种服务执行方法、装置、存储介质及电子装置 | |
CN110582035A (zh) | 一种利用宽带普遍服务管理平台对onu进行升级的方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21896160 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21896160 Country of ref document: EP Kind code of ref document: A1 |