CN116048567A - Software upgrading method of server - Google Patents

Software upgrading method of server Download PDF

Info

Publication number
CN116048567A
CN116048567A CN202211608250.4A CN202211608250A CN116048567A CN 116048567 A CN116048567 A CN 116048567A CN 202211608250 A CN202211608250 A CN 202211608250A CN 116048567 A CN116048567 A CN 116048567A
Authority
CN
China
Prior art keywords
server
software
upper computer
upgrading
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211608250.4A
Other languages
Chinese (zh)
Inventor
马鑫源
李健
陈明
武卫东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jietong Digital Intelligence Technology Co ltd
Original Assignee
Beijing Jietong Digital Intelligence Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jietong Digital Intelligence Technology Co ltd filed Critical Beijing Jietong Digital Intelligence Technology Co ltd
Priority to CN202211608250.4A priority Critical patent/CN116048567A/en
Publication of CN116048567A publication Critical patent/CN116048567A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a software upgrading method of a server. The software upgrading method comprises the following steps: based on the target composite module, establishing communication connection with an upper computer; receiving a software upgrading packet and an upgrading control instruction sent by an upper computer, wherein the upgrading control instruction is used for controlling a server to upgrade based on the software upgrading packet; and upgrading the software of the server based on the upgrade control instruction and the software upgrade package. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer.

Description

Software upgrading method of server
Technical Field
The application relates to the technical field of servers, in particular to a software upgrading method of a server.
Background
The software upgrade belongs to the software maintenance stage and is an indispensable part of the software life cycle. The existing embedded Linux server software upgrading mode mainly comprises local upgrading and remote upgrading, but the following problems exist:
1. Local upgrade mode:
the local upgrading mode comprises upgrading of the storage device and upgrading of the connected serial device. The storage device is updated in the following manner: copying the software upgrading package into storage equipment such as an SD card, a TF card, a U disk or a hard disk, restarting the embedded Linux server, and searching whether the software upgrading package exists in the storage equipment after restarting. If the software upgrading package exists, upgrading is executed. For the upgrading mode of the connected serial device, communication with the embedded Linux server is needed, so that the aim of upgrading the service is fulfilled.
2. On-line upgrading mode:
the online upgrading mode comprises a remote login embedded Linux server and a method for building an upgrading server. The remote login of the embedded Linux server is realized by remotely logging in the embedded Linux server through an SSH protocol. The method for constructing the upgrade server is to actively pull the software upgrade package by constructing the upgrade server, thereby achieving the purpose of upgrade service.
The two upgrading modes have the problems that hot upgrading cannot be realized, the transmission speed is low, the upgrading operation is complex and the safety is low.
Disclosure of Invention
The main purpose of the present application is to provide a method for upgrading software of a server, so as to solve the problems of complex operation and low security of software upgrading of an embedded Linux server in the prior art.
According to an aspect of the embodiment of the present invention, there is provided a software upgrade method for a server, the server being connected to an upper computer through a USB bus, the server having a USB interface, the USB interface being configured as a target composite module, the target composite module being used to establish a communication connection with the upper computer, the software upgrade method being applied to the server, the software upgrade method comprising: based on the target compound module, establishing communication connection with the upper computer; receiving a software upgrading packet and an upgrading control instruction sent by the upper computer, wherein the upgrading control instruction is used for controlling the server to upgrade based on the software upgrading packet; and upgrading the software of the server based on the upgrading control instruction and the software upgrading package.
Optionally, the target compound module includes a first target module and a second target module, where the first target module is configured to perform serial port communication with the upper computer, and the second target module is configured to allocate a first IP address to the server, and establish communication connection with the upper computer based on the target compound module, and includes: the first target module receives verification request information sent by the upper computer and verifies the upper computer based on the verification request information; and under the condition that the first target module passes verification, the second target module distributes the first IP address for the server and sends the first IP address to the upper computer so that the upper computer and the server establish communication connection.
Optionally, verifying the upper computer based on the verification request information includes: decoding the verification request information based on a preset decryption algorithm to obtain a target feature string; determining that the verification is passed under the condition that the target characteristic string accords with a preset rule; and in the case that the target feature string does not meet the preset rule, determining that verification is failed.
Optionally, the process of sending the first IP address to the upper computer so that the upper computer and the server establish a communication connection includes: receiving connection request information sent to the first IP address by the upper computer; and sending the connection success information to a second IP address of the upper computer.
Optionally, after upgrading the software on the server based on the upgrade control instruction and the software upgrade package, the software upgrade method further includes: and sending the upgrade completion information to a second IP address of the upper computer so that the upper computer displays the upgrade completion information on a display screen of the upper computer.
According to another aspect of the embodiment of the present invention, there is also provided a software upgrading method of a server, the server being connected to an upper computer through a USB bus, the server having a USB interface, the USB interface being configured as a target composite module, the target composite module being configured to establish communication connection with the upper computer, the software upgrading method being applied to the upper computer, the software upgrading method including: establishing communication connection with the server based on the target compound module; and sending a software upgrading package and an upgrading control instruction to the server so that the server can upgrade software based on the upgrading control instruction and the software upgrading package.
Optionally, the target compound module includes a first target module and a second target module, where the first target module is configured to perform serial port communication with the upper computer, and the second target module is configured to allocate a first IP address to the server, and establish a communication connection with the server based on the target compound module, and includes: sending verification request information to the first target module so that the first target module verifies based on the verification request information; and receiving the first IP address sent by the second target module, and establishing communication connection with the server based on the first IP address.
Optionally, the process of verifying by the first target module based on the verification request information includes: the first target module decodes the verification request information based on a preset decryption algorithm to obtain a target feature string; determining that the verification is passed under the condition that the target characteristic string accords with a preset rule; and in the case that the target feature string does not meet the preset rule, determining that verification is failed.
Optionally, establishing a communication connection with the server based on the first IP address, including: transmitting connection request information to the first IP address of the server; and receiving connection success information sent to a second IP address by the server, wherein the second IP address is the IP address of the upper computer.
Optionally, after sending a software upgrade package and an upgrade control instruction to the server, so that the server upgrades software based on the upgrade control instruction and the software upgrade package, the software upgrade method includes: and receiving the upgrade completion information sent to the second IP address by the server, and displaying the upgrade completion information on a display screen of the upper computer.
In the software upgrading method of the server, communication connection between the server and the upper computer is established based on the target composite module on the server; under the condition that the server establishes communication connection with the upper computer, the server receives a software upgrading packet and an upgrading control instruction sent by the upper computer; and the server performs software upgrading based on the received software upgrading package and the upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 illustrates an architecture diagram showing a software upgrade method of a server of one embodiment of the present application;
FIG. 2 illustrates a flow chart of a method of software upgrade of a server according to one embodiment of the present application;
FIG. 3 illustrates a flow chart of a method of software upgrade of a server according to another embodiment of the present application;
FIG. 4 shows a schematic diagram of a software upgrade apparatus of a server according to an embodiment of the present application;
FIG. 5 shows a schematic diagram of a software upgrade apparatus of a server according to another embodiment of the present application;
FIG. 6 illustrates a flow chart of a software upgrade scheme for a server according to one embodiment of the present application.
Wherein the above figures include the following reference numerals:
100. an upper computer; 200. a USB bus; 300. a target compound module; 400. and a server.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in order to solve the problems of the prior art that the operation of software upgrade of the embedded Linux server is complex and the security is low, in an exemplary embodiment of the present application, a method for upgrading software of a server is provided.
According to an embodiment of the application, a software upgrading method of a server is provided.
As shown in fig. 1, a server 400 is connected to the host computer 100 through a USB bus 200, the server 400 has a USB interface (not shown in fig. 1), the USB interface (not shown in fig. 1) is configured as a target composite module 300, the target composite module 300 is used to establish a communication connection with the host computer 100, and the software upgrading method is applied to the server 400.
Fig. 2 is a flowchart of a software upgrade method of a server according to an embodiment of the present application. As shown in fig. 2, the software upgrade method includes the steps of:
step S101, establishing communication connection with the upper computer based on the target composite module;
step S102, receiving a software upgrade package and an upgrade control instruction sent by the upper computer, wherein the upgrade control instruction is used for controlling the server to upgrade based on the software upgrade package;
Step S103, based on the upgrade control instruction and the software upgrade package, upgrading software to the server.
In the software upgrading method of the server, the communication connection between the server and the upper computer is established based on the target composite module on the server; under the condition that the server establishes communication connection with the upper computer, the server receives a software upgrading packet and an upgrading control instruction sent by the upper computer; and the server performs software upgrading based on the received software upgrading package and the upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
Specifically, compared with the method for carrying out local upgrading through a serial port mode in the prior art, the software upgrading method of the application adopts the USB data bus to transmit the software upgrading packet, so that the transmission speed is high, and the software upgrading of the server is carried out rapidly.
In the practical application process, the USB interface may be configured as a target composite module based on any feasible method in the prior art. In the application, the specific method for configuring the USB interface as the target composite module is not limited, and only the communication connection between the host computer and the server needs to be established.
In a specific embodiment of the present application, the above-mentioned upper computer may be an electronic device such as a computer. The user may install the target software on the computer. Under the condition that the server and the upper computer are physically connected through the USB bus, the target software is opened, namely, the connected words and the like can be displayed on the visual interface corresponding to the target software, so that a user can upload the software upgrading package through any feasible method such as dragging or selecting at the position of file uploading, and under the condition that the user clicks the words and the like such as upgrading, the upper computer can send the software upgrading package and upgrading control instructions (namely, upgrading control instructions generated by clicking the words and the like by the user) to the server, and the server can conduct software upgrading based on the software upgrading package and the upgrading control instructions.
Specifically, in the above embodiment, the USB interface may be a USB interface supporting an OTG function. The server may be an embedded Linux server.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In an embodiment of the present application, the target compound module includes a first target module and a second target module, where the first target module is configured to perform serial port communication with the upper computer, and the second target module is configured to allocate a first IP address to the server, and establish communication connection with the upper computer based on the target compound module, and includes: the first target module receives verification request information sent by the upper computer and verifies the upper computer based on the verification request information; and under the condition that the first target module passes verification, the second target module distributes the first IP address for the server and sends the first IP address to the upper computer so that the upper computer and the server establish communication connection. Specifically, when the upper computer is connected with the server through the USB bus, the upper computer may automatically detect the hardware address of the target composite module, and the upper computer may send the verification request information to the first target module through the serial port communication. Under the condition that the first target module passes verification, the second target module sends the IP address of the allocated server to the upper computer, so that the communication connection between the upper computer and the server is established under the safer condition.
Specifically, in the above embodiment, for the user, only the target software on the upper computer needs to be opened. That is, the establishment of the communication connection between the upper computer and the server is not felt by the user, i.e. the user does not need to perform complex operation, thus ensuring better use experience of the user and simpler operation of upgrading the software of the server.
In the actual application process, the first target module may be a serial device, and the second target module may be an RNDIS network card device. Specifically, the target composition module may further comprise a CD-ROM storage device.
Specifically, in the above embodiment, the second target module may assign the first IP address to the server by any feasible method in the prior art. For example, the server may be assigned the first IP address by a DHCP (dynamic host configuration protocol, dynamic Host Configuration Protocol, abbreviated as DHCP) protocol. Of course, the first IP address of the server may be manually configured for the user.
In order to perform identity authentication on a host computer more simply, in another embodiment of the present application, the authentication on the host computer based on the authentication request information includes: decoding the verification request information based on a preset decryption algorithm to obtain a target feature string; under the condition that the target characteristic string accords with a preset rule, determining that verification is passed; and determining that the verification is failed in the case that the target feature string does not accord with the preset rule.
Specifically, in the above embodiment, the predetermined decryption algorithm may be any decryption algorithm that is feasible in the prior art. In the present application, the specific algorithm of the above-described predetermined decryption algorithm is not limited.
Specifically, in the above embodiment, the verification request information is decoded by a predetermined decryption algorithm to obtain the target feature string. The target feature string may be a feature string of target software operated by the host computer. For the server, after the target feature string is decrypted, whether the verification request information is communicated or not is determined based on the target feature string and a preset rule stored in the server in advance, namely, the target feature string, and the server can determine whether the verification request information is initiated by the designated target software or not more simply and accurately. Thus, the security of the server is further ensured to be higher, and the implementation is easy.
Specifically, in the above-described embodiment, the above-described predetermined rule is stored in the server in advance, and the encoding rule for verifying whether the target feature string meets the predetermined rule.
In order to ensure that a communication connection between an upper computer and a server is established more safely and more reliably, in another embodiment of the present application, the process of sending the first IP address to the upper computer so that the upper computer and the server establish a communication connection includes: receiving connection request information sent by the upper computer to the first IP address; and sending the connection success information to the second IP address of the upper computer.
In still another embodiment of the present application, after upgrading the software on the server based on the upgrade control instruction and the software upgrade package, the software upgrade method further includes: and sending the upgrade completion information to a second IP address of the upper computer so that the upper computer displays the upgrade completion information on a display screen of the upper computer. In the embodiment, after the server finishes the software upgrading based on the software upgrading package and the software control instruction, the upgrading completion information is sent to the upper computer, so that a user can know that the upgrading of the server is finished more timely and more conveniently, and the better use experience of the user is further ensured.
Specifically, in the software upgrading method, the server can also send the real-time progress information to the upper computer in the process of carrying out software upgrading based on the software upgrading package and the upgrading control instruction, so that the upper computer can display the real-time progress information on the display screen, the user can further conveniently inquire the upgrading progress of the server, and the user experience is further guaranteed to be good.
In an exemplary embodiment of the present application, a method for upgrading software of a server is also provided.
As shown in fig. 1, a server 400 is connected to a host computer 100 through a USB bus 200, the server 400 has a USB interface (not shown in fig. 1), the USB interface (not shown in fig. 1) is configured as a target composite module 300, and the target composite module 300 is used to establish a communication connection with the host computer 100.
The software upgrading method is applied to the host computer 100. As shown in fig. 3, the software upgrading method includes:
step S201, based on the target compound module, establishing communication connection with the server;
step S202, transmitting a software upgrade package and an upgrade control instruction to the server, so that the server upgrades the software based on the upgrade control instruction and the software upgrade package.
In the software upgrading method of the server, the communication connection between the server and the upper computer is established based on the target composite module on the server; under the condition that the server and the upper computer are in communication connection, the upper computer sends a software upgrading packet and an upgrading control instruction to the server, so that the server performs software upgrading based on the received software upgrading packet and the received upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
Specifically, compared with the method for carrying out local upgrading through a serial port mode in the prior art, the software upgrading method of the application adopts the USB data bus to transmit the software upgrading packet, so that the transmission speed is high, and the software upgrading of the server is carried out rapidly.
In the practical application process, the USB interface may be configured as a target composite module based on any feasible method in the prior art. In the application, the specific method for configuring the USB interface as the target composite module is not limited, and only the communication connection between the host computer and the server needs to be established.
In a specific embodiment of the present application, the above-mentioned upper computer may be an electronic device such as a computer. The user may install the target software on the computer. Under the condition that the server and the upper computer are physically connected through the USB bus, the target software is opened, namely, the connected words and the like can be displayed on the visual interface corresponding to the target software, so that a user can upload the software upgrading package through any feasible method such as dragging or selecting at the position of file uploading, and under the condition that the user clicks the words and the like such as upgrading, the upper computer can send the software upgrading package and upgrading control instructions (namely, upgrading control instructions generated by clicking the words and the like by the user) to the server, and the server can conduct software upgrading based on the software upgrading package and the upgrading control instructions.
Specifically, in the above embodiment, the USB interface may be a USB interface supporting an OTG function. The server may be an embedded Linux server.
In an embodiment of the present application, the target compound module includes a first target module and a second target module, where the first target module is configured to perform serial port communication with the host computer, the second target module is configured to allocate a first IP address to the server, and establish a communication connection with the server based on the target compound module, and the method includes: transmitting verification request information to the first target module, so that the first target module verifies based on the verification request information; and receiving the first IP address sent by the second target module, and establishing communication connection with the server based on the first IP address. Specifically, when the upper computer is connected with the server through the USB bus, the upper computer may automatically detect the hardware address of the target composite module, and the upper computer may send the verification request information to the first target module through the serial port communication. Under the condition that the first target module passes verification, the second target module sends the IP address of the allocated server to the upper computer, so that the communication connection between the upper computer and the server is established under the safer condition.
Specifically, in the above embodiment, for the user, only the target software on the upper computer needs to be opened. That is, the establishment of the communication connection between the upper computer and the server is not felt by the user, i.e. the user does not need to perform complex operation, thus ensuring better use experience of the user and simpler operation of upgrading the software of the server.
In the actual application process, the first target module may be a serial device, and the second target module may be an RNDIS network card device. Specifically, the target composition module may further comprise a CD-ROM storage device.
Specifically, in the above embodiment, the second target module may assign the first IP address to the server by any feasible method in the prior art. For example, the server may be assigned the first IP address by a DHCP (dynamic host configuration protocol, dynamic Host Configuration Protocol, abbreviated as DHCP) protocol. Of course, the first IP address of the server may be manually configured for the user.
In order to more simply perform identity authentication on the upper computer, in another embodiment of the present application, the process of performing authentication by the first target module based on the authentication request information includes: the first target module decodes the verification request information based on a preset decryption algorithm to obtain a target feature string; under the condition that the target characteristic string accords with a preset rule, determining that verification is passed; and determining that the verification is failed in the case that the target feature string does not accord with the preset rule.
Specifically, in the above embodiment, the verification request information is decoded by a predetermined decryption algorithm to obtain the target feature string. The target feature string may be a feature string of target software operated by the host computer. For the server, after the target feature string is decrypted, whether the verification request information is communicated or not is determined based on the target feature string and a preset rule stored in the server in advance, namely, the target feature string, and the server can determine whether the verification request information is initiated by the designated target software or not more simply and accurately. Thus, the security of the server is further ensured to be higher, and the implementation is easy.
Specifically, in the above-described embodiment, the above-described predetermined rule is stored in the server in advance, and the encoding rule for verifying whether the target feature string meets the predetermined rule.
In order to ensure that the communication connection between the upper computer and the server is established more safely and more reliably, in another embodiment of the present application, establishing the communication connection with the server based on the first IP address includes: transmitting connection request information to the first IP address of the server; and receiving connection success information sent to a second IP address by the server, wherein the second IP address is the IP address of the upper computer.
In still another embodiment of the present application, after sending a software upgrade package and an upgrade control instruction to the server, so that the server upgrades software based on the upgrade control instruction and the software upgrade package, the software upgrade method includes: and receiving the upgrade completion information sent to the second IP address by the server, and displaying the upgrade completion information on a display screen of the upper computer. In the embodiment, after the server finishes the software upgrading based on the software upgrading package and the software control instruction, the upgrading completion information is sent to the upper computer, so that a user can know that the upgrading of the server is finished more timely and more conveniently, and the better use experience of the user is further ensured.
Specifically, in the software upgrading method, the server can also send the real-time progress information to the upper computer in the process of carrying out software upgrading based on the software upgrading package and the upgrading control instruction, so that the upper computer can display the real-time progress information on the display screen, the user can further conveniently inquire the upgrading progress of the server, and the user experience is further guaranteed to be good.
The embodiment of the application also provides a software upgrading device of the server, and it is to be noted that the software upgrading device of the server of the embodiment of the application can be used for executing the software upgrading method for the server provided by the embodiment of the application. The following describes a software upgrading device of a server provided in an embodiment of the present application.
As shown in fig. 1, the server 400 is connected to the host computer 100 through the USB bus 200, the server 400 has a USB interface (not shown in fig. 1), the USB interface (not shown in fig. 1) is configured as a target composite module 300, the target composite module 300 is used to establish a communication connection with the host computer 100, and the software upgrading apparatus is applied in the server.
Fig. 4 is a schematic structural diagram of a software upgrade apparatus of a server according to an embodiment of the present application, the software upgrade apparatus including:
a first communication unit 10, configured to establish a communication connection with the host computer based on the target composite module;
a first receiving unit 20, configured to receive a software upgrade package and an upgrade control instruction sent by the upper computer, where the upgrade control instruction is used to control the server to upgrade based on the software upgrade package;
And an upgrade unit 30 for upgrading software of the server based on the upgrade control instruction and the software upgrade package.
In the software upgrading device of the server, the first communication unit is used for establishing communication connection between the server and the upper computer based on the target composite module on the server; the first receiving unit is used for receiving a software upgrading packet and an upgrading control instruction sent by the upper computer by the server under the condition that the server and the upper computer are in communication connection; the upgrading unit is used for the server to upgrade the software based on the received software upgrading package and the upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
Specifically, compared with the method for carrying out local upgrading through a serial port mode in the prior art, the software upgrading method of the application adopts the USB data bus to transmit the software upgrading packet, so that the transmission speed is high, and the software upgrading of the server is carried out rapidly.
In the practical application process, the USB interface may be configured as a target composite module based on any feasible method in the prior art. In the application, the specific method for configuring the USB interface as the target composite module is not limited, and only the communication connection between the host computer and the server needs to be established.
In a specific embodiment of the present application, the above-mentioned upper computer may be an electronic device such as a computer. The user may install the target software on the computer. Under the condition that the server and the upper computer are physically connected through the USB bus, the target software is opened, namely, the connected words and the like can be displayed on the visual interface corresponding to the target software, so that a user can upload the software upgrading package through any feasible method such as dragging or selecting at the position of file uploading, and under the condition that the user clicks the words and the like such as upgrading, the upper computer can send the software upgrading package and upgrading control instructions (namely, upgrading control instructions generated by clicking the words and the like by the user) to the server, and the server can conduct software upgrading based on the software upgrading package and the upgrading control instructions.
Specifically, in the above embodiment, the USB interface may be a USB interface supporting an OTG function. The server may be an embedded Linux server.
In an embodiment of the present application, the target compound module includes a first target module and a second target module, where the first target module is configured to perform serial port communication with the upper computer, the second target module is configured to allocate a first IP address to the server, and the first communication unit includes a first receiving module and an allocating module, where the first receiving module is configured to receive, by using the first receiving module, verification request information sent by the upper computer, and verify the upper computer based on the verification request information; the allocation module is configured to allocate the first IP address to the server by the second target module and send the first IP address to the upper computer when the first target module passes the verification, so that the upper computer and the server establish a communication connection. Specifically, when the upper computer is connected with the server through the USB bus, the upper computer may automatically detect the hardware address of the target composite module, and the upper computer may send the verification request information to the first target module through the serial port communication. Under the condition that the first target module passes verification, the second target module sends the IP address of the allocated server to the upper computer, so that the communication connection between the upper computer and the server is established under the safer condition.
Specifically, in the above embodiment, for the user, only the target software on the upper computer needs to be opened. That is, the establishment of the communication connection between the upper computer and the server is not felt by the user, i.e. the user does not need to perform complex operation, thus ensuring better use experience of the user and simpler operation of upgrading the software of the server.
In the actual application process, the first target module may be a serial device, and the second target module may be an RNDIS network card device. Specifically, the target composition module may further comprise a CD-ROM storage device.
Specifically, in the above embodiment, the second target module may assign the first IP address to the server by any feasible method in the prior art. For example, the server may be assigned the first IP address by a DHCP (dynamic host configuration protocol, dynamic Host Configuration Protocol, abbreviated as DHCP) protocol. Of course, the first IP address of the server may be manually configured for the user.
In order to perform identity verification on the upper computer more simply, in another embodiment of the present application, the first receiving module includes a decoding submodule, a first matching submodule and a second matching submodule, where the decoding submodule is configured to decode the verification request information based on a predetermined decryption algorithm to obtain a target feature string; the first matching submodule is used for determining that verification is passed under the condition that the target characteristic string accords with a preset rule; the second matching submodule is used for determining that verification is not passed in the case that the target characteristic string does not accord with the preset rule.
Specifically, in the above embodiment, the predetermined decryption algorithm may be any decryption algorithm that is feasible in the prior art. In the present application, the specific algorithm of the above-described predetermined decryption algorithm is not limited.
Specifically, in the above embodiment, the verification request information is decoded by a predetermined decryption algorithm to obtain the target feature string. The target feature string may be a feature string of target software operated by the host computer. For the server, after the target feature string is decrypted, whether the verification request information is communicated or not is determined based on the target feature string and a preset rule stored in the server in advance, namely, the target feature string, and the server can determine whether the verification request information is initiated by the designated target software or not more simply and accurately. Thus, the security of the server is further ensured to be higher, and the implementation is easy.
Specifically, in the above-described embodiment, the above-described predetermined rule is stored in the server in advance, and the encoding rule for verifying whether the target feature string meets the predetermined rule.
In order to ensure that the communication connection between the upper computer and the server is established more safely and more reliably, in another embodiment of the present application, the allocation module includes a first receiving sub-module and a first sending sub-module, where the first receiving sub-module is configured to receive connection request information sent by the upper computer to the first IP address; the first sending sub-module is used for sending the connection success information to the second IP address of the upper computer.
In still another embodiment of the present application, the software upgrading device further includes a first sending unit, configured to send upgrade completion information to the second IP address of the upper computer after upgrading the software on the server based on the upgrade control instruction and the software upgrade package, so that the upper computer displays the upgrade completion information on a display screen of the upper computer. In the embodiment, after the server finishes the software upgrading based on the software upgrading package and the software control instruction, the upgrading completion information is sent to the upper computer, so that a user can know that the upgrading of the server is finished more timely and more conveniently, and the better use experience of the user is further ensured.
Specifically, in the software upgrading method, the server can also send the real-time progress information to the upper computer in the process of carrying out software upgrading based on the software upgrading package and the upgrading control instruction, so that the upper computer can display the real-time progress information on the display screen, the user can further conveniently inquire the upgrading progress of the server, and the user experience is further guaranteed to be good.
In an exemplary embodiment of the present application, a software upgrading apparatus for a server is also provided.
As shown in fig. 1, a server 400 is connected to a host computer 100 through a USB bus 200, the server 400 has a USB interface (not shown in fig. 1), the USB interface (not shown in fig. 1) is configured as a target composite module 300, the target composite module 300 is used to establish a communication connection with the host computer 100, and the software upgrading apparatus is applied to the host computer.
As shown in fig. 5, the software upgrading apparatus includes:
a second communication unit 40 for establishing a communication connection with the server based on the target composite module;
and a second transmitting unit 50 for transmitting a software upgrade package and an upgrade control instruction to the server, so that the server upgrades the software based on the upgrade control instruction and the software upgrade package.
In the software upgrading device of the server, the second communication unit is used for establishing communication connection between the server and the upper computer based on the target composite module on the server; the second sending unit is used for sending the software upgrading package and the upgrading control instruction to the server under the condition that the server and the upper computer are in communication connection, so that the server performs software upgrading based on the received software upgrading package and the received upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
Specifically, compared with the method for carrying out local upgrading through a serial port mode in the prior art, the software upgrading method of the application adopts the USB data bus to transmit the software upgrading packet, so that the transmission speed is high, and the software upgrading of the server is carried out rapidly.
In the practical application process, the USB interface may be configured as a target composite module based on any feasible method in the prior art. In the application, the specific method for configuring the USB interface as the target composite module is not limited, and only the communication connection between the host computer and the server needs to be established.
In a specific embodiment of the present application, the above-mentioned upper computer may be an electronic device such as a computer. The user may install the target software on the computer. Under the condition that the server and the upper computer are physically connected through the USB bus, the target software is opened, namely, the connected words and the like can be displayed on the visual interface corresponding to the target software, so that a user can upload the software upgrading package through any feasible method such as dragging or selecting at the position of file uploading, and under the condition that the user clicks the words and the like such as upgrading, the upper computer can send the software upgrading package and upgrading control instructions (namely, upgrading control instructions generated by clicking the words and the like by the user) to the server, and the server can conduct software upgrading based on the software upgrading package and the upgrading control instructions.
Specifically, in the above embodiment, the USB interface may be a USB interface supporting an OTG function. The server may be an embedded Linux server.
In an embodiment of the present application, the target compound module includes a first target module and a second target module, where the first target module is configured to perform serial port communication with the upper computer, the second target module is configured to allocate a first IP address to the server, and the second communication unit includes a sending module and a second receiving module, where the sending module is configured to send verification request information to the first target module, so that the first target module performs verification based on the verification request information; the second receiving module is configured to receive the first IP address sent by the second target module, and establish a communication connection with the server based on the first IP address. Specifically, when the upper computer is connected with the server through the USB bus, the upper computer may automatically detect the hardware address of the target composite module, and the upper computer may send the verification request information to the first target module through the serial port communication. Under the condition that the first target module passes verification, the second target module sends the IP address of the allocated server to the upper computer, so that the communication connection between the upper computer and the server is established under the safer condition.
Specifically, in the above embodiment, for the user, only the target software on the upper computer needs to be opened. That is, the establishment of the communication connection between the upper computer and the server is not felt by the user, i.e. the user does not need to perform complex operation, thus ensuring better use experience of the user and simpler operation of upgrading the software of the server.
In the actual application process, the first target module may be a serial device, and the second target module may be an RNDIS network card device. Specifically, the target composition module may further comprise a CD-ROM storage device.
Specifically, in the above embodiment, the second target module may assign the first IP address to the server by any feasible method in the prior art. For example, the server may be assigned the first IP address by a DHCP (dynamic host configuration protocol, dynamic Host Configuration Protocol, abbreviated as DHCP) protocol. Of course, the first IP address of the server may be manually configured for the user.
In order to more simply perform identity authentication on the upper computer, in another embodiment of the present application, the process of performing authentication by the first target module based on the authentication request information includes: the first target module decodes the verification request information based on a preset decryption algorithm to obtain a target feature string; under the condition that the target characteristic string accords with a preset rule, determining that verification is passed; and determining that the verification is failed in the case that the target feature string does not accord with the preset rule.
Specifically, in the above embodiment, the predetermined decryption algorithm may be any decryption algorithm that is feasible in the prior art. In the present application, the specific algorithm of the above-described predetermined decryption algorithm is not limited.
Specifically, in the above embodiment, the verification request information is decoded by a predetermined decryption algorithm to obtain the target feature string. The target feature string may be a feature string of target software operated by the host computer. For the server, after the target feature string is decrypted, whether the verification request information is communicated or not is determined based on the target feature string and a preset rule stored in the server in advance, namely, the target feature string, and the server can determine whether the verification request information is initiated by the designated target software or not more simply and accurately. Thus, the security of the server is further ensured to be higher, and the implementation is easy.
Specifically, in the above-described embodiment, the above-described predetermined rule is stored in the server in advance, and the encoding rule for verifying whether the target feature string meets the predetermined rule.
In order to ensure that the communication connection between the upper computer and the server is established more safely and more reliably, in another embodiment of the present application, the second receiving module includes a second sending sub-module and a second receiving sub-module, where the second sending sub-module is configured to send connection request information to the first IP address of the server; the second receiving sub-module is configured to receive connection success information sent by the server to a second IP address, where the second IP address is an IP address of the upper computer.
In still another embodiment of the present application, the software upgrading apparatus includes a second receiving unit, configured to receive upgrade completion information sent to a second IP address by the server after sending a software upgrade package and an upgrade control instruction to the server, so that the server upgrades software based on the upgrade control instruction and the software upgrade package, and display the upgrade completion information on a display screen of the upper computer. In the embodiment, after the server finishes the software upgrading based on the software upgrading package and the software control instruction, the upgrading completion information is sent to the upper computer, so that a user can know that the upgrading of the server is finished more timely and more conveniently, and the better use experience of the user is further ensured.
Specifically, in the software upgrading method, the server can also send the real-time progress information to the upper computer in the process of carrying out software upgrading based on the software upgrading package and the upgrading control instruction, so that the upper computer can display the real-time progress information on the display screen, the user can further conveniently inquire the upgrading progress of the server, and the user experience is further guaranteed to be good.
The software upgrading apparatus of the server includes a processor and a memory, the first communication unit, the first receiving unit, the upgrading unit, etc. are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
Or alternatively, the process may be performed,
the software upgrading apparatus of the server includes a processor and a memory, the second communication unit and the second transmitting unit are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a program that, when executed by a processor, implements the software upgrade method of the server described above.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute a software upgrading method of a server.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S101, establishing communication connection with the upper computer based on the target composite module;
step S102, receiving a software upgrade package and an upgrade control instruction sent by the upper computer, wherein the upgrade control instruction is used for controlling the server to upgrade based on the software upgrade package;
step S103, based on the upgrade control instruction and the software upgrade package, upgrading software to the server.
Or alternatively, the process may be performed,
step S201, based on the target compound module, establishing communication connection with the server;
step S202, transmitting a software upgrade package and an upgrade control instruction to the server, so that the server upgrades the software based on the upgrade control instruction and the software upgrade package.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S101, establishing communication connection with the upper computer based on the target composite module;
step S102, receiving a software upgrade package and an upgrade control instruction sent by the upper computer, wherein the upgrade control instruction is used for controlling the server to upgrade based on the software upgrade package;
step S103, based on the upgrade control instruction and the software upgrade package, upgrading software to the server.
Or alternatively, the process may be performed,
step S201, based on the target compound module, establishing communication connection with the server;
step S202, transmitting a software upgrade package and an upgrade control instruction to the server, so that the server upgrades the software based on the upgrade control instruction and the software upgrade package.
In order that those skilled in the art can more clearly understand the technical solutions of the present application, the technical solutions and technical effects of the present application will be described below with reference to specific embodiments.
Examples
In a specific embodiment of the present application, as shown in fig. 6, a software upgrade scheme for a server is provided.
The scheme comprises an upper computer and a server. The server is provided with a USB interface, the USB interface is configured as a target compound module (namely, the target compound module is initialized), and the target compound module is used for establishing communication connection between the upper computer and the server. Meanwhile, the server and the upper computer are physically connected through a USB bus.
And under the condition that the upper computer detects the target composite module, the upper computer sends verification request information to the server in a serial port communication mode. And the first target module (namely the serial port equipment) in the server verifies the upper computer based on the received verification request information. In the event that the verification is not passed, the first target module discards the verification request information (i.e., discards the request); and under the condition that the verification is passed, the second target module (namely the RNDIS network card device) allocates a first IP address for the server (namely the first IP address of the server is allocated), and sends the first IP address of the server to the upper computer. And the upper computer sends the connection request information to the first IP address (namely, sends the connection request information to the server) under the condition that the upper computer receives the first IP address of the server, so that communication connection is established between the upper computer and the server.
And under the condition that communication connection is established between the upper computer and the server, the upper computer sends a software upgrading packet and an upgrading control instruction to the server. The server upgrades based on the software upgrade package and the upgrade control instructions. After the software upgrading of the server is completed, the server sends upgrading completion information to the upper computer, so that a user can know the upgrading state of the server timely and conveniently.
Meanwhile, in the process that the server upgrades based on the software upgrade package and the upgrade control instruction, the server can also feed back information such as upgrade progress to the upper computer in real time.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the software upgrading method of the server, communication connection between the server and an upper computer is established based on a target composite module on the server; under the condition that the server establishes communication connection with the upper computer, the server receives a software upgrading packet and an upgrading control instruction sent by the upper computer; and the server performs software upgrading based on the received software upgrading package and the upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
2) In the software upgrading method of the server, communication connection between the server and an upper computer is established based on a target composite module on the server; under the condition that the server and the upper computer are in communication connection, the upper computer sends a software upgrading packet and an upgrading control instruction to the server, so that the server performs software upgrading based on the received software upgrading packet and the received upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
3) In the software upgrading device of the server, the first communication unit is used for establishing communication connection between the server and the upper computer based on the target composite module on the server; the first receiving unit is used for receiving a software upgrading packet and an upgrading control instruction sent by the upper computer by the server under the condition that the server and the upper computer are in communication connection; the upgrading unit is used for the server to upgrade the software based on the received software upgrading package and the upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
4) In the software upgrading device of the server, the second communication unit is used for establishing communication connection between the server and the upper computer based on the target composite module on the server; the second sending unit is used for sending the software upgrading package and the upgrading control instruction to the server under the condition that the server and the upper computer are in communication connection, so that the server performs software upgrading based on the received software upgrading package and the received upgrading control instruction. Compared with the method for locally upgrading the server through the storage device in the prior art, the method has the advantages that the server and the upper computer are connected through the USB bus, and the communication connection between the server and the upper computer is established through the target compound module, so that the server can conduct software upgrading based on the received software upgrading package and the upgrading control instruction. Because the scheme does not need to copy the software upgrading package into the storage equipment or restart the server, the scheme can realize hot updating of the server and ensure simpler operation of upgrading the server. Compared with the prior art, the method for remotely updating the server through the SSH service has the advantages that service ports such as the SSH are not required to be opened, and therefore the software upgrading method is safer. Therefore, the problems of complex operation and low safety of the software upgrading of the embedded Linux server in the prior art are solved.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. The software upgrading method of the server is characterized in that the server is connected with an upper computer through a USB bus, the server is provided with a USB interface, the USB interface is configured as a target compound module, the target compound module is used for establishing communication connection with the upper computer, the software upgrading method is applied to the server, and the software upgrading method comprises the following steps:
based on the target compound module, establishing communication connection with the upper computer;
receiving a software upgrading packet and an upgrading control instruction sent by the upper computer, wherein the upgrading control instruction is used for controlling the server to upgrade based on the software upgrading packet;
and upgrading the software of the server based on the upgrading control instruction and the software upgrading package.
2. The software upgrading method according to claim 1, wherein the target compound module includes a first target module and a second target module, the first target module is configured to perform serial port communication with the upper computer, the second target module is configured to allocate a first IP address to the server, and based on the target compound module, establish a communication connection with the upper computer, and the method includes:
The first target module receives verification request information sent by the upper computer and verifies the upper computer based on the verification request information;
and under the condition that the first target module passes verification, the second target module distributes the first IP address for the server and sends the first IP address to the upper computer so that the upper computer and the server establish communication connection.
3. The software upgrade method according to claim 2, wherein verifying the upper computer based on the verification request information includes:
decoding the verification request information based on a preset decryption algorithm to obtain a target feature string;
determining that the verification is passed under the condition that the target characteristic string accords with a preset rule;
and in the case that the target feature string does not meet the preset rule, determining that verification is failed.
4. The software upgrading method according to claim 2, wherein the process of transmitting the first IP address to the host computer so that the host computer and the server establish a communication connection includes:
receiving connection request information sent to the first IP address by the upper computer;
And sending the connection success information to a second IP address of the upper computer.
5. The software upgrading method according to any one of claims 1 to 4, wherein after upgrading the software on the server based on the upgrade control instruction and the software upgrade package, the software upgrading method further comprises:
and sending the upgrade completion information to a second IP address of the upper computer so that the upper computer displays the upgrade completion information on a display screen of the upper computer.
6. The software upgrading method of the server is characterized in that the server is connected with an upper computer through a USB bus, the server is provided with a USB interface, the USB interface is configured as a target compound module, the target compound module is used for establishing communication connection with the upper computer, the software upgrading method is applied to the upper computer, and the software upgrading method comprises the following steps:
establishing communication connection with the server based on the target compound module;
and sending a software upgrading package and an upgrading control instruction to the server so that the server can upgrade software based on the upgrading control instruction and the software upgrading package.
7. The software upgrade method according to claim 6, wherein the target compound module includes a first target module and a second target module, the first target module is used for serial communication with the upper computer, the second target module is used for allocating a first IP address to the server, and establishing a communication connection with the server based on the target compound module, including:
sending verification request information to the first target module so that the first target module verifies based on the verification request information;
and receiving the first IP address sent by the second target module, and establishing communication connection with the server based on the first IP address.
8. The software upgrade method according to claim 7, wherein the process of the first target module performing authentication based on the authentication request information comprises: the first target module decodes the verification request information based on a preset decryption algorithm to obtain a target feature string; determining that the verification is passed under the condition that the target characteristic string accords with a preset rule; and in the case that the target feature string does not meet the preset rule, determining that verification is failed.
9. The software upgrade method of claim 7, wherein establishing a communication connection with the server based on the first IP address comprises:
transmitting connection request information to the first IP address of the server;
and receiving connection success information sent to a second IP address by the server, wherein the second IP address is the IP address of the upper computer.
10. The software upgrading method according to any one of claims 6 to 9, characterized in that after transmitting a software upgrading package and an upgrading control instruction to the server so that the server upgrades software based on the upgrading control instruction and the software upgrading package, the software upgrading method comprises:
and receiving the upgrade completion information sent to the second IP address by the server, and displaying the upgrade completion information on a display screen of the upper computer.
CN202211608250.4A 2022-12-14 2022-12-14 Software upgrading method of server Pending CN116048567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211608250.4A CN116048567A (en) 2022-12-14 2022-12-14 Software upgrading method of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211608250.4A CN116048567A (en) 2022-12-14 2022-12-14 Software upgrading method of server

Publications (1)

Publication Number Publication Date
CN116048567A true CN116048567A (en) 2023-05-02

Family

ID=86121345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211608250.4A Pending CN116048567A (en) 2022-12-14 2022-12-14 Software upgrading method of server

Country Status (1)

Country Link
CN (1) CN116048567A (en)

Similar Documents

Publication Publication Date Title
US8850078B2 (en) Method and system for a thin client and blade architecture
KR102102168B1 (en) Appratus for a virtual desktop service and method thereof
US8826402B2 (en) Management of an instant message session
CN108540433B (en) User identity verification method and device
CN111934918A (en) Network isolation method and device for container instances in same container cluster
US20200376374A1 (en) Dynamic network storage for cloud console server
CN102843416A (en) Set-up of thin client computer
WO2013097067A1 (en) Method, device and system for realizing communication after virtual machine migration
CN103281203A (en) Ecos (Embedded Configurable Operating System) system-based DHCP (Dynamic Host Configuration Protocol) address assignment management method
KR101799447B1 (en) Server connectiong method, information providng method of device and device applying the same, Cloud Computing Network system and operation method thereof
US8560817B2 (en) Information processing apparatus, information processing system, computer program and information processing method, determining whether operating environment can be assigned
CN111669351B (en) Authentication method, service server, client and computer readable storage medium
CN103856555A (en) Method and system for making digital video converter log in webpage automatically
US20080060059A1 (en) Data processor, peripheral device, and recording medium used herewith
WO2018001023A1 (en) Virtual desktop login method and device for cloud terminal
CN113032805B (en) Data access method and device, electronic equipment and storage medium
CN112291269B (en) Cloud desktop authentication method and device, electronic equipment and readable storage medium
CN116048567A (en) Software upgrading method of server
KR102018605B1 (en) Multi-User Desktop Computer System
CN107659621B (en) RAID control card configuration method and device
CN105763661A (en) Network protocol IP address obtaining method and communication equipment
CN112733101A (en) Cloud server management method, device, storage medium and server terminal
JP4618278B2 (en) Power supply control method and system for realizing the same
CN104038791A (en) Loading and installing method and apparatus for IPTV service
CN112737827A (en) Resource allocation method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination