WO2017071358A1 - Software upgrade method and apparatus - Google Patents

Software upgrade method and apparatus Download PDF

Info

Publication number
WO2017071358A1
WO2017071358A1 PCT/CN2016/093111 CN2016093111W WO2017071358A1 WO 2017071358 A1 WO2017071358 A1 WO 2017071358A1 CN 2016093111 W CN2016093111 W CN 2016093111W WO 2017071358 A1 WO2017071358 A1 WO 2017071358A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
server
upgrade
software
loader
Prior art date
Application number
PCT/CN2016/093111
Other languages
French (fr)
Chinese (zh)
Inventor
田楠
刘荣
Original Assignee
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2017071358A1 publication Critical patent/WO2017071358A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of network communication and computer technology, and in particular, to a software upgrade method and apparatus.
  • the software After the software is developed, it needs to be put on the market. As the user's needs change, the software needs to be upgraded and maintained.
  • the software of the C/S architecture the software of the client and the software of the server are respectively run on different hardware devices, and the operating systems on different hardware devices may be different.
  • the software of the client and the software of the server are separately upgraded. Because the client software and server software are upgraded separately, the upgraded client software version may be inconsistent with the upgraded server software version.
  • the invention provides a software upgrade method and device, so that the client upgrades according to the version matched with the server, thereby ensuring the consistency of the upgraded version of the client and the server, and improving the user experience.
  • a first aspect of the present invention discloses a software upgrade method, including:
  • the client starts the loader
  • the client obtains an operating environment parameter of the software to be upgraded
  • the client invoking the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader;
  • the client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a client software upgrade package that matches the running environment parameter, and the upgrade
  • the request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
  • the client upgrades the software to be upgraded by using the client software upgrade package.
  • the client before the loader sends the upgrade request carrying the running environment parameter to the server corresponding to the loader, the method further includes:
  • the client acquires a current version of the loader
  • the client updates the loader according to the latest version of the loader.
  • the loader is a program plug-in or a hardware device that loads the program.
  • a second aspect of the present invention discloses a method for software upgrade, the method comprising:
  • the server receives the client and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries the operating environment parameter of the software to be upgraded by the client;
  • the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
  • the server performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package version.
  • the method further includes: The client software upgrade package is bound to the server software upgrade package.
  • the method further includes:
  • the server When the server upgrades the corresponding software by using the second server software upgrade package, the server pushes the second client software upgrade package with the same version of the second server software upgrade package to the client. To enable the client to perform a simultaneous upgrade.
  • a third aspect of the present invention discloses a client, including:
  • An obtaining module configured to acquire an operating environment parameter of the software to be upgraded by the client
  • a calling module configured to invoke the loader to send an upgrade request carrying the running environment parameter to a server corresponding to the loader
  • the client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a guest that matches the operating environment parameter a client software upgrade package, where the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
  • An upgrade module where the client upgrades the software to be upgraded by using the client software upgrade package.
  • the device also includes a loader acquisition module and a loader update module;
  • a loader acquisition module for the client to obtain the current version of the loader
  • a loader update module for updating the loader according to a latest version of the loader when a current version of the loader is lower than a latest version of the loader.
  • a fourth aspect of the present invention discloses a server, including:
  • a calling module configured to receive, by the server, a loader, and a loader corresponding to the server, to send an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client;
  • the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
  • the upgrade module where the server uses the same server software upgrade package as the client software upgrade package to perform the corresponding software upgrade.
  • the server further includes: a binding module, configured to bind the client software upgrade package to the server software upgrade package .
  • the server further includes: a synchronization upgrade module, configured to: when the upgrade module upgrades the corresponding software by using the second server software upgrade package, The server pushes the second client software upgrade package with the same version of the second server software upgrade package to the client, so that the client performs synchronous upgrade.
  • a synchronization upgrade module configured to: when the upgrade module upgrades the corresponding software by using the second server software upgrade package, The server pushes the second client software upgrade package with the same version of the second server software upgrade package to the client, so that the client performs synchronous upgrade.
  • the client can send the running environment state parameter to the server by calling the loader, so that the server runs according to the server.
  • the environment determines a software version required by the client, and performs a client software upgrade according to the software version, and the upgrade request is used to trigger the server to use the same server version as the client software upgrade package.
  • the software upgrade package performs the corresponding software upgrade, which solves the problem that the software version mismatch caused by the client and the server need to be updated separately, ensures the consistency of the upgraded version of the client and the server, and improves the user experience.
  • FIG. 1 is a schematic flowchart of a method for software upgrade according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for software upgrade according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another method for software upgrade according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart diagram of another method for software upgrade according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a client according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a software upgrade system according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a physical structure of a client provided by the present invention.
  • FIG. 9 is a schematic diagram of a physical structure of a server provided by the present invention.
  • the invention provides a software upgrade method and device, in order to synchronously upgrade the software of the client and the server, thereby ensuring the consistency of the upgraded version of the client and the server, and improving the user experience.
  • a software upgrade method may include: a client launching a loader; the client acquiring a running environment parameter of the software to be upgraded; the client calling the loader to send a carrying to a server corresponding to the loader An upgrade request of the operating environment parameter; the client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a match with the operating environment parameter a client software upgrade package, the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package; the client upgrades by using the client software The package upgrades the software to be upgraded.
  • FIG. 1 is a schematic flowchart diagram of a method for software upgrade according to an embodiment of the present invention.
  • a method for software upgrade provided by an embodiment of the present invention may include the following content:
  • the client starts the loader.
  • the client may also be referred to as a client, and refers to a program corresponding to a server and providing a local service for the client.
  • the more commonly used clients include a web browser such as the World Wide Web, an email client for receiving emails, and client software for instant messaging.
  • a web browser such as the World Wide Web
  • an email client for receiving emails
  • client software for instant messaging
  • server and service program in the network to provide the corresponding services, such as database services, email services or other services.
  • the client can also be a client.
  • the client can be a desktop computer, a wireless screen, a mobile phone, a tablet, a laptop, a palmtop, a mobile internet device, or other terminal device.
  • the loader is a program plug-in or a hardware device loading the program.
  • the loader can be a download program plug-in on the webpage, or can also be a USB flash drive, read-only memory (ROM), random access memory (RAM, Random Access Memory) loaded with the program. ), one of a mobile hard disk, a magnetic disk, or a disc.
  • ROM read-only memory
  • RAM random access memory
  • RAM Random Access Memory
  • the client obtains an operating environment parameter of the software to be upgraded.
  • the running environment parameter may be a type of an operating system.
  • the operating environment can be a windows system, a Linux system, or other operating system.
  • the operating environment may also be some other software.
  • the running environment can also be office, CAJViewer or other application software.
  • the running environment may also be a third-party runtime library.
  • the runtime environment can be DotNet, DirectX, or other third party runtimes.
  • the client invokes the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader.
  • the client invokes the loader to receive an upgrade response sent by the server in response to the upgrade request.
  • the upgrade response carries a client software upgrade package that matches the running environment parameter.
  • the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package.
  • the client upgrades the software to be upgraded by using the client software upgrade package.
  • the wireless transmission system consists of two parts: a transmitting end and a receiving end, and the transmitting end and the receiving end communicate through a self-built wireless network.
  • the transmitter is a small piece of hardware running an embedded system that stores the loader program.
  • the user connects the transmitter to the PC/Mac through the USB interface and recognizes it as a USB mass storage device on the computer.
  • the user can open the device and run the loader program.
  • the loader program establishes communication with the receiving end through the transmitting end hardware and sends operating system (Windows or Mac) information to the server program running on the receiving end.
  • the server program sends the client program corresponding to the requesting operating system to the loader program, and the loader program runs the received client program.
  • the client program obtains information such as a screen image and a sound output from the operating system, and is encoded and transmitted to the server program running on the receiving end through the transmitting end hardware, and the server program performs decoding and presentation to complete the entire wireless screen printing process.
  • the client in this embodiment may be a desktop computer, a wireless screen, a mobile phone, a tablet computer, a notebook computer, a palm computer, or a mobile device.
  • Internet device or other terminal device may be a desktop computer, a wireless screen, a mobile phone, a tablet computer, a notebook computer, a palm computer, or a mobile device.
  • the client sends the running environment to the server by calling the loader, so that the server determines a software version required by the client according to the operating environment, the client And acquiring, by the loader, the software version sent by the server, and performing software upgrade according to the software version. This ensures the consistency of the upgraded version of the client and server and improves the user experience.
  • FIG. 2 is a flow of a software upgrade method according to another embodiment of the present invention. Schematic diagram. The specific method includes the following steps.
  • the client starts the loader.
  • the client obtains an operating environment parameter of the software to be upgraded.
  • the operating environment may also be some other software.
  • the running environment can also be office, CAJViewer or other application software.
  • the running environment may also be a third-party runtime library.
  • the client acquires a current version of the loader; when a current version of the loader is lower than a latest version of the loader, the client loads the load according to a latest version of the loader.
  • the device is updated.
  • the client invokes the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader.
  • the client invokes the loader to receive an upgrade response sent by the server in response to the upgrade request.
  • the upgrade response carries a client software upgrade package that matches the running environment parameter.
  • the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package.
  • the client upgrades the software to be upgraded by using the client software upgrade package.
  • a software upgrade method includes: the server receives a client call, and the loader corresponding to the server sends an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client; The client sends an upgrade response in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter; and the server uses the same server version as the client software upgrade package version.
  • the software upgrade package performs the corresponding software upgrade.
  • FIG. 3 is a schematic flowchart diagram of another software upgrade method according to an embodiment of the present invention.
  • the specific method includes the following steps.
  • the server receives a client, and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client.
  • the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter.
  • the server uses a server software upgrade package with the same version of the client software upgrade package to perform a corresponding software upgrade.
  • the upgrade sent by the client may trigger the server to use the server software upgrade package with the same version of the client software upgrade package to perform corresponding software upgrade, which can effectively ensure the server and the server. Synchronous update of client software.
  • FIG. 4 is a schematic flowchart diagram of another software upgrade method according to an embodiment of the present invention.
  • the specific method includes the following steps.
  • the server receives the client, and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client.
  • the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter.
  • the server uses a server software upgrade package with the same version of the client software upgrade package to perform a corresponding software upgrade.
  • the server upgrades the corresponding software by using the second server software upgrade package
  • the server pushes the second client software with the same version of the second server software upgrade package to the client.
  • the upgrade package enables the client to perform a simultaneous upgrade.
  • the server when the server preferentially upgrades, the server pushes the client software upgrade package with the same version of the server software upgrade package to the client, thereby ensuring that the client is preferentially upgraded when the server is preferentially upgraded.
  • the terminal can also respond in time to ensure the consistency of the client software and the server software version.
  • FIG. 5 is a schematic structural diagram of a client according to an embodiment of the present invention.
  • the client provided by one embodiment of the present invention may include the following content:
  • a startup module 501 configured to start a loader
  • the obtaining module 502 is configured to obtain an operating environment parameter of the software to be upgraded by the client.
  • the calling module 503 is configured to invoke the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader;
  • Receiving module 504 the client invoking the loader to receive the server response to the upgrade request And an upgrade response sent by the client, where the upgrade response carries a client software upgrade package that matches the running environment parameter, where the upgrade request is used to trigger the server to use the client software upgrade package version.
  • the same server software upgrade package is upgraded accordingly;
  • the upgrade module 505 is configured to upgrade the software to be upgraded by using the client software upgrade package.
  • the client sends the running environment to the server by calling the loader, so that the server determines the software version required by the client according to the operating environment, the client And acquiring, by the loader, the software version sent by the server, and performing software upgrade according to the software version. This ensures the consistency of the upgraded version of the client and server and improves the user experience.
  • the client further includes the client further includes a loader obtaining module 506 and a loader updating module 507;
  • a loader obtaining module 506, configured to acquire a current version of the loader by a client
  • the loader update module 507 is configured to update the loader according to the latest version of the loader when the current version of the loader is lower than the latest version of the loader.
  • FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention.
  • the server provided by one embodiment of the present invention may include the following content:
  • the calling module 601 is configured to receive, by the server, a client, and a loader corresponding to the server, to send an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client;
  • the sending module 602 the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
  • the upgrade module 603 is configured to perform a corresponding software upgrade by using the same server software upgrade package as the client software upgrade package.
  • the server when the server preferentially upgrades, the server pushes the client software upgrade package with the same version of the server software upgrade package to the client, thereby ensuring that the client is preferentially upgraded when the server is preferentially upgraded.
  • the terminal can also respond in time to ensure the consistency of the client software and the server software version.
  • the server further includes a binding module 604, configured to bind the client software upgrade package to the server software upgrade package.
  • the server further includes a synchronization upgrade module 605, and the same
  • the step upgrade module 605 is configured to: when the upgrade module 603 upgrades the corresponding software by using the second server software upgrade package, the server pushes the second version of the same version of the second server software upgrade package to the client
  • the client software upgrade package enables the client to perform synchronous upgrades.
  • the upgraded version of the client to be upgraded program is located on the server, and is bound to the upgraded version of the to-be-upgraded program on the corresponding server on the server.
  • the server sends an upgraded version of the program to be upgraded to the client, so that the client to be upgraded is upgraded according to the version to be upgraded, thereby causing the client program and the server.
  • the version of the program at the end matches.
  • the present invention provides a system for software upgrade.
  • the system includes a client 701 and a server 702.
  • the client 701 may be an electronic device such as a personal computer, a tablet computer, or a smart terminal;
  • the server 702 may be an electronic device such as a server.
  • the client 701 acquires the current version of the loader
  • the client 701 updates the loader according to the latest version of the loader
  • the client 701 starts the loader and obtains operating environment parameters of the software to be upgraded
  • the client 701 establishes a high speed connection with the server 702 through the loader;
  • the client 701 calls the loader to send an upgrade request carrying the operating environment parameter to the server 702 corresponding to the loader;
  • the server 702 receives the client 701 and sends a upgrade request to the loader corresponding to the service 702.
  • the upgrade request carries the operating environment parameter of the software to be upgraded by the client.
  • the server 702 sends an upgrade response to the client 701 in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter; wherein the server 702 receives the client call and the server Before the loader corresponding to the server sends the upgrade request, the client software upgrade package is bound to the server software upgrade package;
  • the server 702 performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package version;
  • the client 701 invokes the loader to send an upgrade response sent by the server 702 in response to the upgrade request, wherein the upgrade response carries a client software upgrade that matches the runtime environment parameter.
  • a level package where the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
  • the client 701 upgrades the software to be upgraded by using the client software upgrade package.
  • a client is provided, and the client may be an electronic device such as a personal computer, a tablet computer, a smart terminal, or a mobile phone.
  • the client 800 includes hardware such as a central processing unit CPU 801, a memory 802, a display 803, and a bus 804.
  • the CPU executes the server program stored in the memory in advance to upgrade the program to be upgraded by the client, and the execution process specifically includes:
  • the software to be upgraded is upgraded by using the client software upgrade package.
  • the method before the client sends the upgrade request that carries the running environment parameter to the server corresponding to the loader, the method further includes:
  • the client acquires a current version of the loader
  • the client updates the loader according to the latest version of the loader.
  • the client sends the running environment to the server by calling the loader, so that the server determines a software version required by the client according to the operating environment, the client And acquiring, by the loader, the software version sent by the server, and performing software upgrade according to the software version. This ensures the consistency of the upgraded version of the client and server and improves the user experience.
  • a server is provided, and the server may be a server.
  • the server 900 includes hardware such as a CPU 901, a memory 902, a bus 903, and a display 904.
  • the CPU 901 executes a server program stored in advance in the memory to be upgraded to the client.
  • the sequence is upgraded, and the execution process specifically includes:
  • the method before the receiving client sends an upgrade request to the loader corresponding to the server, the method further includes: upgrading the client software upgrade package and the server software upgrade package. Bind.
  • the second client software upgrade package of the same version as the second server software upgrade package is pushed to the client, so that The client performs a synchronous upgrade.
  • the upgrade sent by the client may trigger the server to use the server software upgrade package with the same version of the client software upgrade package to perform corresponding software upgrade, which can effectively ensure the server and the server. Synchronous update of client software.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .

Abstract

Disclosed are a software upgrade method and apparatus. The method comprises: a client starting a loader (101); the client acquiring a running environment parameter of software to be upgraded (102); the client invoking the loader to send an upgrade request carrying the running environment parameter to a serving end corresponding to the loader (103); the client invoking the loader to receive an upgrade response sent by the serving end in response to the upgrade request (104), wherein the upgrade response carries a client software upgrade package matching the running environment parameter; and the client using the client software upgrade package to upgrade the software to be upgraded (105). By means of this method, software of a client and a server end can be synchronously upgraded, so as to ensure that upgraded versions of the client and the server end are consistent.

Description

一种软件升级的方法及装置Method and device for software upgrade 技术领域Technical field
本发明涉及网络通信及计算机技术领域,尤其涉及一种软件升级的方法及装置。The present invention relates to the field of network communication and computer technology, and in particular, to a software upgrade method and apparatus.
背景技术Background technique
目前,随着互联网的发展,软件应用的场景越来越多。软件开发人员在开发软件的时候,针对软件类型的不同需要开发不同架构的软件,比如客户端/服务器架构的软件,简称C/S(Client/Server,客户端/服务器)架构。At present, with the development of the Internet, there are more and more scenarios for software applications. When developing software, software developers need to develop software with different architectures for different types of software, such as client/server architecture software, referred to as C/S (Client/Server, client/server) architecture.
软件开发之后,需要投放市场,随着用户需求的变化,后续也需要对软件进行升级维护。针对C/S架构的软件,客户端的软件和服务器的软件分别运行在不同的硬件设备上,不同硬件设备上的操作系统会存在差异,一般需要对客户端的软件和服务器的软件分别进行升级。由于是对客户端软件和服务器软件分别进行升级,有可能导致升级后的客户端软件版本与升级后的服务器软件版本不一致。After the software is developed, it needs to be put on the market. As the user's needs change, the software needs to be upgraded and maintained. For the software of the C/S architecture, the software of the client and the software of the server are respectively run on different hardware devices, and the operating systems on different hardware devices may be different. Generally, the software of the client and the software of the server are separately upgraded. Because the client software and server software are upgraded separately, the upgraded client software version may be inconsistent with the upgraded server software version.
发明内容Summary of the invention
本发明提供了一种软件升级的方法及装置,使得客户端根据与服务器端匹配的版本进行升级,从而保证客户端和服务器端升级后的版本的一致性,提升了用户体验。The invention provides a software upgrade method and device, so that the client upgrades according to the version matched with the server, thereby ensuring the consistency of the upgraded version of the client and the server, and improving the user experience.
本发明第一方面公开了一种软件升级的方法,包括:A first aspect of the present invention discloses a software upgrade method, including:
客户端启动装载器;The client starts the loader;
所述客户端获取待升级软件的运行环境参数;The client obtains an operating environment parameter of the software to be upgraded;
所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;The client invoking the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader;
所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级; The client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a client software upgrade package that matches the running environment parameter, and the upgrade The request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
所述客户端利用所述客户端软件升级包升级所述待升级软件。The client upgrades the software to be upgraded by using the client software upgrade package.
结合第一方面,在第一方面的第一种可能的实施方式中,所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求之前,所述方法还包括:In conjunction with the first aspect, in a first possible implementation manner of the first aspect, the client, before the loader sends the upgrade request carrying the running environment parameter to the server corresponding to the loader, The method further includes:
所述客户端获取所述装载器的当前版本;The client acquires a current version of the loader;
当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。When the current version of the loader is lower than the latest version of the loader, the client updates the loader according to the latest version of the loader.
结合第一方面,在第一方面的第二种可能的实施方式中,所述装载器是一段程序插件或者装载所述程序的硬件设备。In conjunction with the first aspect, in a second possible implementation of the first aspect, the loader is a program plug-in or a hardware device that loads the program.
本发明第二方面公开了一种软件升级的方法,所述方法包括:A second aspect of the present invention discloses a method for software upgrade, the method comprising:
服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;The server receives the client and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries the operating environment parameter of the software to be upgraded by the client;
服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;The server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。The server performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package version.
结合第二方面,在第二方面的第一种可能的实施方式中,所述服务端接收客户端调用与所述服务端对应的装载器发送升级请求之前,所述方法还包括:将所述客户端软件升级包与所述服务端软件升级包进行绑定。With reference to the second aspect, in a first possible implementation manner of the second aspect, before the server receives the client, and the loader corresponding to the server sends an upgrade request, the method further includes: The client software upgrade package is bound to the server software upgrade package.
结合第二方面,在第二方面的第二种可能的实施方式中,所述方法还包括:With reference to the second aspect, in a second possible implementation manner of the second aspect, the method further includes:
当所述服务端利用第二服务端软件升级包升级所述相应软件时,所述服务端向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。When the server upgrades the corresponding software by using the second server software upgrade package, the server pushes the second client software upgrade package with the same version of the second server software upgrade package to the client. To enable the client to perform a simultaneous upgrade.
本发明第三方面公开了一种客户端,包括:A third aspect of the present invention discloses a client, including:
启动模块,用于启动装载器;a startup module for starting the loader;
获取模块,用于获取所述客户端待升级软件的运行环境参数;An obtaining module, configured to acquire an operating environment parameter of the software to be upgraded by the client;
调用模块,用于调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;a calling module, configured to invoke the loader to send an upgrade request carrying the running environment parameter to a server corresponding to the loader;
接收模块,所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客 户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;a receiving module, the client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a guest that matches the operating environment parameter a client software upgrade package, where the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
升级模块,所述客户端利用所述客户端软件升级包升级所述待升级软件。An upgrade module, where the client upgrades the software to be upgraded by using the client software upgrade package.
结合第三方面,在第三方面第一种可能的实施方式中,With reference to the third aspect, in a first possible implementation manner of the third aspect,
所述装置还包括装载器获取模块和装载器更新模块;The device also includes a loader acquisition module and a loader update module;
装载器获取模块,用于客户端获取所述装载器的当前版本;a loader acquisition module for the client to obtain the current version of the loader;
装载器更新模块,用于当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。A loader update module for updating the loader according to a latest version of the loader when a current version of the loader is lower than a latest version of the loader.
本发明第四方面公开了一种服务器,包括:A fourth aspect of the present invention discloses a server, including:
调用模块,用于服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;a calling module, configured to receive, by the server, a loader, and a loader corresponding to the server, to send an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client;
发送模块,服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;a sending module, the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
升级模块,所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。The upgrade module, where the server uses the same server software upgrade package as the client software upgrade package to perform the corresponding software upgrade.
结合第四方面,在第四方面的第一种可能的实施方式中,所述服务器还包括:绑定模块,用于将所述客户端软件升级包与所述服务端软件升级包进行绑定。With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the server further includes: a binding module, configured to bind the client software upgrade package to the server software upgrade package .
结合第四方面,在第四方面的第二种可能的实施方式中,所述服务器还包括:同步升级模块,用于当所述升级模块利用第二服务端软件升级包升级相应软件时,所述服务端向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。With reference to the fourth aspect, in a second possible implementation manner of the fourth aspect, the server further includes: a synchronization upgrade module, configured to: when the upgrade module upgrades the corresponding software by using the second server software upgrade package, The server pushes the second client software upgrade package with the same version of the second server software upgrade package to the client, so that the client performs synchronous upgrade.
可以看出,本发明提供的技术方案中,由于客户端的升级软件与服务器端的升级软件进行了绑定,客户端可以通过调用装载器向服务器发送运行环境状态参数以使得所述服务器根据所述运行环境确定所述客户端所需的软件版本,并根据所述软件版本进行客户端软件升级,同时所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级,从而解决了客户端与服务端需要分别更新所导致的软件版本不匹配的问题,保证了客户端和服务器端升级后的版本的一致性,提升了用户体验。 It can be seen that, in the technical solution provided by the present invention, since the upgrade software of the client is bound to the upgrade software of the server, the client can send the running environment state parameter to the server by calling the loader, so that the server runs according to the server. The environment determines a software version required by the client, and performs a client software upgrade according to the software version, and the upgrade request is used to trigger the server to use the same server version as the client software upgrade package. The software upgrade package performs the corresponding software upgrade, which solves the problem that the software version mismatch caused by the client and the server need to be updated separately, ensures the consistency of the upgraded version of the client and the server, and improves the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明实施例提供的一种软件升级的方法的流程示意图;1 is a schematic flowchart of a method for software upgrade according to an embodiment of the present invention;
图2为本发明实施例提供的另一种软件升级的方法的流程示意图;2 is a schematic flowchart of another method for software upgrade according to an embodiment of the present invention;
图3为本发明实施例提供的另一种软件升级的方法的流程示意图;FIG. 3 is a schematic flowchart diagram of another method for software upgrade according to an embodiment of the present disclosure;
图4为本发明实施例提供的另一种软件升级的方法的流程示意图;FIG. 4 is a schematic flowchart diagram of another method for software upgrade according to an embodiment of the present disclosure;
图5为本发明实施例提供的客户端的结构示意图;FIG. 5 is a schematic structural diagram of a client according to an embodiment of the present disclosure;
图6为本发明实施例提供的服务端的结构示意图;FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention;
图7为本发明实施例提供的一种软件升级系统的示意图;FIG. 7 is a schematic diagram of a software upgrade system according to an embodiment of the present invention;
图8为本发明提供的客户端的物理结构示意图;FIG. 8 is a schematic diagram of a physical structure of a client provided by the present invention; FIG.
图9为本发明提供的服务端的物理结构示意图。FIG. 9 is a schematic diagram of a physical structure of a server provided by the present invention.
具体实施方式detailed description
本发明提供了一种软件升级的方法及装置,以期对客户端和服务器端的软件进行同步升级,从而保证客户端和服务器端升级后的版本的一致性,提升了用户体验。The invention provides a software upgrade method and device, in order to synchronously upgrade the software of the client and the server, thereby ensuring the consistency of the upgraded version of the client and the server, and improving the user experience.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly described in conjunction with the drawings in the embodiments of the present invention. Some embodiments of the invention, rather than all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。 The terms "first", "second" and "third" and the like appearing in the present specification, the claims and the drawings are used to distinguish different objects and are not intended to describe a particular order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
本发明一种软件升级的方法的一个实施例。一种软件升级的方法,可以包括:客户端启动装载器;所述客户端获取待升级软件的运行环境参数;所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;所述客户端利用所述客户端软件升级包升级所述待升级软件。An embodiment of a method of software upgrade of the present invention. A software upgrade method may include: a client launching a loader; the client acquiring a running environment parameter of the software to be upgraded; the client calling the loader to send a carrying to a server corresponding to the loader An upgrade request of the operating environment parameter; the client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a match with the operating environment parameter a client software upgrade package, the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package; the client upgrades by using the client software The package upgrades the software to be upgraded.
请参阅图1,图1是本发明的一个实施例提供的一种软件升级的方法的流程示意图。其中,如图1所示,本发明的一个实施例提供的一种软件升级的方法可以包括以下内容:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of a method for software upgrade according to an embodiment of the present invention. As shown in FIG. 1 , a method for software upgrade provided by an embodiment of the present invention may include the following content:
101、客户端启动装载器。101. The client starts the loader.
其中,所述客户端也可称为用户端,是指与服务器相对应,为客户提供本地服务的程序。The client may also be referred to as a client, and refers to a program corresponding to a server and providing a local service for the client.
举例来说,因特网发展以后,较常用的客户端包括了如万维网使用的网页浏览器,收寄电子邮件时的电子邮件客户端,以及即时通讯的客户端软件等。对于这一类应用程序,需要网络中有相应的服务器和服务程序来提供相应的服务,例如数据库服务,电子邮件服务或其他服务。For example, after the development of the Internet, the more commonly used clients include a web browser such as the World Wide Web, an email client for receiving emails, and client software for instant messaging. For this type of application, there is a corresponding server and service program in the network to provide the corresponding services, such as database services, email services or other services.
可选的,客户端也可以是客户机。Alternatively, the client can also be a client.
其中,客户机可以为台式电脑、无线传屏、手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备或其他终端设备。The client can be a desktop computer, a wireless screen, a mobile phone, a tablet, a laptop, a palmtop, a mobile internet device, or other terminal device.
其中,所述装载器是一段程序插件或者装载所述程序的硬件设备。Wherein, the loader is a program plug-in or a hardware device loading the program.
举例来说,装载器可以为网页上的一个下载程序插件,或者也可以为装载所述程序的U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘中的一种。For example, the loader can be a download program plug-in on the webpage, or can also be a USB flash drive, read-only memory (ROM), random access memory (RAM, Random Access Memory) loaded with the program. ), one of a mobile hard disk, a magnetic disk, or a disc.
102、所述客户端获取待升级软件的运行环境参数。102. The client obtains an operating environment parameter of the software to be upgraded.
其中,所述的运行环境参数可以为操作系统的类型。The running environment parameter may be a type of an operating system.
举例来说,所述运行环境可以为windows系统、Linux系统或者其他操作系统。For example, the operating environment can be a windows system, a Linux system, or other operating system.
可选的,所述运行环境也可为一些其他软件。 Optionally, the operating environment may also be some other software.
举例来说,所述运行环境也可为office、CAJViewer或者其他应用软件。For example, the running environment can also be office, CAJViewer or other application software.
可选的,所述运行环境还可以为第三方运行库。Optionally, the running environment may also be a third-party runtime library.
举例来说,所述运行环境可以为DotNet,DirectX或者其他第三方运行库。For example, the runtime environment can be DotNet, DirectX, or other third party runtimes.
103、所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求。103. The client invokes the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader.
104、所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应。104. The client invokes the loader to receive an upgrade response sent by the server in response to the upgrade request.
其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包。The upgrade response carries a client software upgrade package that matches the running environment parameter.
其中,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。The upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package.
105、所述客户端利用所述客户端软件升级包升级所述待升级软件。105. The client upgrades the software to be upgraded by using the client software upgrade package.
以无线传屏为例,无线传屏系统由发射端和接收端两部分组成,发射端和接收端通过自建无线网络进行通信。发射端为一个运行着嵌入式系统的小型硬件,其中存储着装载器程序。用户将该发射端接入通过USB接口与PC/Mac建立连接,会在电脑上识别为USB大容量存储设备,用户可以打开该设备,运行装载器程序。装载器程序通过发射端硬件与接收端建立通信,向运行在接收端的服务端程序发送操作系统(Windows或Mac)信息。服务端程序将与请求操作系统对应的客户端程序发送给装载器程序,装载器程序随即运行收到的客户端程序。客户端程序从操作系统获取屏幕画面以及声音输出等信息,经过编码后通过发射端硬件发送给运行在接收端的服务端程序,服务端程序进行解码呈现,完成整个无线传屏过程。Taking wireless transmission as an example, the wireless transmission system consists of two parts: a transmitting end and a receiving end, and the transmitting end and the receiving end communicate through a self-built wireless network. The transmitter is a small piece of hardware running an embedded system that stores the loader program. The user connects the transmitter to the PC/Mac through the USB interface and recognizes it as a USB mass storage device on the computer. The user can open the device and run the loader program. The loader program establishes communication with the receiving end through the transmitting end hardware and sends operating system (Windows or Mac) information to the server program running on the receiving end. The server program sends the client program corresponding to the requesting operating system to the loader program, and the loader program runs the received client program. The client program obtains information such as a screen image and a sound output from the operating system, and is encoded and transmitted to the server program running on the receiving end through the transmitting end hardware, and the server program performs decoding and presentation to complete the entire wireless screen printing process.
本实施例以无线传屏为例进行说明,但是本实施例并不仅限于无线传屏,本实施例的客户端可以为台式电脑、无线传屏、手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备或其他终端设备。This embodiment is described by taking a wireless screen as an example. However, the embodiment is not limited to wireless screen transmission. The client in this embodiment may be a desktop computer, a wireless screen, a mobile phone, a tablet computer, a notebook computer, a palm computer, or a mobile device. Internet device or other terminal device.
可以看出,本实施例的方案中,客户端通过调用所述装载器向服务器发送所述运行环境以使得所述服务器根据所述运行环境确定所述客户端所需的软件版本,所述客户端利用所述装载器获取所述服务器发送的所述软件版本,并根据所述软件版本进行软件升级。从而保证客户端和服务器端升级后的版本的一致性,提升用户体验。It can be seen that, in the solution of this embodiment, the client sends the running environment to the server by calling the loader, so that the server determines a software version required by the client according to the operating environment, the client And acquiring, by the loader, the software version sent by the server, and performing software upgrade according to the software version. This ensures the consistency of the upgraded version of the client and server and improves the user experience.
请参阅图2,图2是本发明的另一个实施例提供的一种软件升级的方法的流 程示意图。其中,具体方法包括以下步骤。Referring to FIG. 2, FIG. 2 is a flow of a software upgrade method according to another embodiment of the present invention. Schematic diagram. The specific method includes the following steps.
201、客户端启动装载器。201. The client starts the loader.
202、所述客户端获取待升级软件的运行环境参数。202. The client obtains an operating environment parameter of the software to be upgraded.
可选的,所述运行环境也可为一些其他软件。Optionally, the operating environment may also be some other software.
举例来说,所述运行环境也可为office、CAJViewer或者其他应用软件。For example, the running environment can also be office, CAJViewer or other application software.
可选的,所述运行环境还可以为第三方运行库。Optionally, the running environment may also be a third-party runtime library.
203、所述客户端获取所述装载器的当前版本;当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。203. The client acquires a current version of the loader; when a current version of the loader is lower than a latest version of the loader, the client loads the load according to a latest version of the loader. The device is updated.
204、所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求。204. The client invokes the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader.
205、所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应。205. The client invokes the loader to receive an upgrade response sent by the server in response to the upgrade request.
其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包。The upgrade response carries a client software upgrade package that matches the running environment parameter.
其中,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。The upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package.
206、所述客户端利用所述客户端软件升级包升级所述待升级软件。206. The client upgrades the software to be upgraded by using the client software upgrade package.
可以看出,在升级客户端的同时,保证了装载器的同步更新,有助于装载器与客户端和服务器端的通信连接,从而确保客户端软件和服务器端软件的同步更新。It can be seen that while upgrading the client, the synchronous update of the loader is guaranteed, which facilitates the communication connection between the loader and the client and the server, thereby ensuring synchronous update of the client software and the server software.
本发明一种软件升级的方法的另一个实施例。一种软件升级方法,可以包括:服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。Another embodiment of a method of software upgrade of the present invention. A software upgrade method, the method includes: the server receives a client call, and the loader corresponding to the server sends an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client; The client sends an upgrade response in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter; and the server uses the same server version as the client software upgrade package version. The software upgrade package performs the corresponding software upgrade.
请参阅图3,图3是本发明的实施例提供的另一种软件升级的方法的流程示意图。其中,具体方法包括以下步骤。Please refer to FIG. 3. FIG. 3 is a schematic flowchart diagram of another software upgrade method according to an embodiment of the present invention. The specific method includes the following steps.
301、服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数。 301. The server receives a client, and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client.
302、服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包。302. The server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter.
303、所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。303. The server uses a server software upgrade package with the same version of the client software upgrade package to perform a corresponding software upgrade.
可以看出,本实施例的方案中,客户端发送的升级相应可以触发服务器端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级,可以有效地保证服务端与客户端软件的同步更新。It can be seen that, in the solution of this embodiment, the upgrade sent by the client may trigger the server to use the server software upgrade package with the same version of the client software upgrade package to perform corresponding software upgrade, which can effectively ensure the server and the server. Synchronous update of client software.
请参阅图4,图4是本发明的实施例提供的另一种软件升级的方法的流程示意图。其中,具体方法包括以下步骤。Please refer to FIG. 4. FIG. 4 is a schematic flowchart diagram of another software upgrade method according to an embodiment of the present invention. The specific method includes the following steps.
401、将所述客户端软件升级包与所述服务端软件升级包进行绑定。401. Bind the client software upgrade package to the server software upgrade package.
402、服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数。402. The server receives the client, and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client.
403、服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包。403. The server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter.
404、所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。404. The server uses a server software upgrade package with the same version of the client software upgrade package to perform a corresponding software upgrade.
405、当所述服务端利用第二服务端软件升级包升级所述相应软件时,所述服务端向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。405. When the server upgrades the corresponding software by using the second server software upgrade package, the server pushes the second client software with the same version of the second server software upgrade package to the client. The upgrade package enables the client to perform a simultaneous upgrade.
可以看出,本实施例的方案中,当服务端优先升级时,服务端会向客户端推送与服务端软件升级包版本相同的客户端软件升级包,从而保证在服务端优先升级时,客户端也可以及时响应,从而保证了客户端软件和服务器端软件版本的一致性。It can be seen that, in the solution of this embodiment, when the server preferentially upgrades, the server pushes the client software upgrade package with the same version of the server software upgrade package to the client, thereby ensuring that the client is preferentially upgraded when the server is preferentially upgraded. The terminal can also respond in time to ensure the consistency of the client software and the server software version.
请参阅图5,图5是本发明的实施例提供的客户端的结构示意图。其中,如图5所示,本发明的一个实施例提供的客户端可以包括以下内容:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a client according to an embodiment of the present invention. As shown in FIG. 5, the client provided by one embodiment of the present invention may include the following content:
启动模块501,用于启动装载器;a startup module 501, configured to start a loader;
获取模块502,用于获取所述客户端待升级软件的运行环境参数;The obtaining module 502 is configured to obtain an operating environment parameter of the software to be upgraded by the client.
调用模块503,用于调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;The calling module 503 is configured to invoke the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader;
接收模块504,所述客户端调用所述装载器接收所述服务端响应所述升级请 求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;Receiving module 504, the client invoking the loader to receive the server response to the upgrade request And an upgrade response sent by the client, where the upgrade response carries a client software upgrade package that matches the running environment parameter, where the upgrade request is used to trigger the server to use the client software upgrade package version. The same server software upgrade package is upgraded accordingly;
升级模块505,所述客户端利用所述客户端软件升级包升级所述待升级软件。The upgrade module 505 is configured to upgrade the software to be upgraded by using the client software upgrade package.
从上可知,本实施例的方案中,客户端通过调用所述装载器向服务器发送所述运行环境以使得所述服务器根据所述运行环境确定所述客户端所需的软件版本,所述客户端利用所述装载器获取所述服务器发送的所述软件版本,并根据所述软件版本进行软件升级。从而保证客户端和服务器端升级后的版本的一致性,提升用户体验。As can be seen from the above, in the solution of the embodiment, the client sends the running environment to the server by calling the loader, so that the server determines the software version required by the client according to the operating environment, the client And acquiring, by the loader, the software version sent by the server, and performing software upgrade according to the software version. This ensures the consistency of the upgraded version of the client and server and improves the user experience.
可选的,所述客户端还包括所述客户端还包括装载器获取模块506和装载器更新模块507;Optionally, the client further includes the client further includes a loader obtaining module 506 and a loader updating module 507;
装载器获取模块506,用于客户端获取所述装载器的当前版本;a loader obtaining module 506, configured to acquire a current version of the loader by a client;
装载器更新模块507,用于当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。The loader update module 507 is configured to update the loader according to the latest version of the loader when the current version of the loader is lower than the latest version of the loader.
请参阅图6,图6是本发明的一个实施例提供的服务端的结构示意图。其中,如图6所示,本发明的一个实施例提供的服务端可以包括以下内容:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention. As shown in FIG. 6, the server provided by one embodiment of the present invention may include the following content:
调用模块601,用于服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;The calling module 601 is configured to receive, by the server, a client, and a loader corresponding to the server, to send an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client;
发送模块602,服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;The sending module 602, the server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
升级模块603,所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。The upgrade module 603 is configured to perform a corresponding software upgrade by using the same server software upgrade package as the client software upgrade package.
可以看出,本实施例的方案中,当服务端优先升级时,服务端会向客户端推送与服务端软件升级包版本相同的客户端软件升级包,从而保证在服务端优先升级时,客户端也可以及时响应,从而保证了客户端软件和服务器端软件版本的一致性。It can be seen that, in the solution of this embodiment, when the server preferentially upgrades, the server pushes the client software upgrade package with the same version of the server software upgrade package to the client, thereby ensuring that the client is preferentially upgraded when the server is preferentially upgraded. The terminal can also respond in time to ensure the consistency of the client software and the server software version.
可选的,基于图6提供的服务端,该服务端还包括绑定模块604,该绑定模块604用于将所述客户端软件升级包与所述服务端软件升级包进行绑定。Optionally, based on the server provided in FIG. 6, the server further includes a binding module 604, configured to bind the client software upgrade package to the server software upgrade package.
可选的,基于图6提供的服务端,该服务端还包括同步升级模块605,该同 步升级模块605用于当所述升级模块603利用第二服务端软件升级包升级相应软件时,所述服务端向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。Optionally, based on the server provided in FIG. 6, the server further includes a synchronization upgrade module 605, and the same The step upgrade module 605 is configured to: when the upgrade module 603 upgrades the corresponding software by using the second server software upgrade package, the server pushes the second version of the same version of the second server software upgrade package to the client The client software upgrade package enables the client to perform synchronous upgrades.
在本发明的另一个实施例中,客户端待升级程序的升级版本位于服务端上,并与服务端上对应的服务端上待升级程序的升级版本绑定。当服务端上待升级的程序根据升级版本进行升级时,服务端会向客服端发送待升级程序的升级版本,以使得客户端的待升级程序根据待升级版本进行升级,从而使得客户端程序与服务器端的程序的版本相匹配。In another embodiment of the present invention, the upgraded version of the client to be upgraded program is located on the server, and is bound to the upgraded version of the to-be-upgraded program on the corresponding server on the server. When the program to be upgraded on the server is upgraded according to the upgraded version, the server sends an upgraded version of the program to be upgraded to the client, so that the client to be upgraded is upgraded according to the version to be upgraded, thereby causing the client program and the server. The version of the program at the end matches.
其中,在向客户端发送升级版本前,需要确定客户端的运行环境;并且如果通过高速连接通道向客户端的装载器发送升级版本,会提升作业效率。Before sending the upgrade version to the client, it is necessary to determine the running environment of the client; and if the upgrade version is sent to the loader of the client through the high-speed connection channel, the work efficiency is improved.
如图7所示,本发明提供了一种软件升级的系统。该系统包括客户端701和服务端702。其中,客户端701可以是个人电脑、平板电脑、智能终端等电子设备;服务端702可以是服务器等电子设备。As shown in FIG. 7, the present invention provides a system for software upgrade. The system includes a client 701 and a server 702. The client 701 may be an electronic device such as a personal computer, a tablet computer, or a smart terminal; the server 702 may be an electronic device such as a server.
客户端701获取所述装载器的当前版本;The client 701 acquires the current version of the loader;
当所述装载器的当前版本低于所述装载器的最新版本时,客户端701根据所述装载器的最新版本对所述装载器进行更新;When the current version of the loader is lower than the latest version of the loader, the client 701 updates the loader according to the latest version of the loader;
客户端701启动装载器,并获取待升级软件的运行环境参数;The client 701 starts the loader and obtains operating environment parameters of the software to be upgraded;
客户端701通过装载器与服务端702建立高速连接;The client 701 establishes a high speed connection with the server 702 through the loader;
客户端701调用所述装载器向与所述装载器对应的服务端702发送携带所述运行环境参数的升级请求;The client 701 calls the loader to send an upgrade request carrying the operating environment parameter to the server 702 corresponding to the loader;
服务端702接收客户端701调用与所述服务702端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;The server 702 receives the client 701 and sends a upgrade request to the loader corresponding to the service 702. The upgrade request carries the operating environment parameter of the software to be upgraded by the client.
服务端702向所述客户端701发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;其中,服务端702接收客户端调用与所述服务端对应的装载器发送升级请求之前,将所述客户端软件升级包与所述服务端软件升级包进行绑定;The server 702 sends an upgrade response to the client 701 in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter; wherein the server 702 receives the client call and the server Before the loader corresponding to the server sends the upgrade request, the client software upgrade package is bound to the server software upgrade package;
服务端702利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;The server 702 performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package version;
客户端701调用所述装载器接述服务端702响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升 级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;The client 701 invokes the loader to send an upgrade response sent by the server 702 in response to the upgrade request, wherein the upgrade response carries a client software upgrade that matches the runtime environment parameter. a level package, where the upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
客户端701利用所述客户端软件升级包升级所述待升级软件。The client 701 upgrades the software to be upgraded by using the client software upgrade package.
如图8所示,在本发明的另一个实施例中,提供一种客户端,该客户端可以是个人电脑、平板电脑、智能终端、手机等电子设备。客户端800包括中央处理器CPU801、存储器802、显示器803、总线804等硬件。CPU执行预先存储在存储器中的服务端程序以便对客户端的待升级程序进行升级,该执行过程具体包括:As shown in FIG. 8, in another embodiment of the present invention, a client is provided, and the client may be an electronic device such as a personal computer, a tablet computer, a smart terminal, or a mobile phone. The client 800 includes hardware such as a central processing unit CPU 801, a memory 802, a display 803, and a bus 804. The CPU executes the server program stored in the memory in advance to upgrade the program to be upgraded by the client, and the execution process specifically includes:
启动装载器;Start the loader;
获取待升级软件的运行环境参数;Obtain the running environment parameters of the software to be upgraded;
调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;Invoking the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader;
调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;Invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a client software upgrade package that matches the running environment parameter, and the upgrade request is used to trigger The server performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package version;
利用所述客户端软件升级包升级所述待升级软件。The software to be upgraded is upgraded by using the client software upgrade package.
可选的,基于上述方法,所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求之前,所述方法还包括:Optionally, before the client sends the upgrade request that carries the running environment parameter to the server corresponding to the loader, the method further includes:
所述客户端获取所述装载器的当前版本;The client acquires a current version of the loader;
当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。When the current version of the loader is lower than the latest version of the loader, the client updates the loader according to the latest version of the loader.
可以看出,本实施例的方案中,客户端通过调用所述装载器向服务器发送所述运行环境以使得所述服务器根据所述运行环境确定所述客户端所需的软件版本,所述客户端利用所述装载器获取所述服务器发送的所述软件版本,并根据所述软件版本进行软件升级。从而保证客户端和服务器端升级后的版本的一致性,提升用户体验。It can be seen that, in the solution of this embodiment, the client sends the running environment to the server by calling the loader, so that the server determines a software version required by the client according to the operating environment, the client And acquiring, by the loader, the software version sent by the server, and performing software upgrade according to the software version. This ensures the consistency of the upgraded version of the client and server and improves the user experience.
如图9所示,在本发明的另一个实施例中,提供一种服务端,该服务端可以是服务器。服务端900包括CPU 901、存储器902、总线903、显示器904等硬件。CPU901执行预先存储在存储器中的服务器程序以便对客户端的待升级程 序进行升级,该执行过程具体包括:As shown in FIG. 9, in another embodiment of the present invention, a server is provided, and the server may be a server. The server 900 includes hardware such as a CPU 901, a memory 902, a bus 903, and a display 904. The CPU 901 executes a server program stored in advance in the memory to be upgraded to the client. The sequence is upgraded, and the execution process specifically includes:
接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;Receiving, by the client, a loader corresponding to the server to send an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client;
向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;Sending, to the client, an upgrade response in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。Use the same server software upgrade package as the client software upgrade package to perform the corresponding software upgrade.
可选的,基于上述方法,所述接收客户端调用与所述服务端对应的装载器发送升级请求之前,所述方法还包括:将所述客户端软件升级包与所述服务端软件升级包进行绑定。Optionally, before the receiving client sends an upgrade request to the loader corresponding to the server, the method further includes: upgrading the client software upgrade package and the server software upgrade package. Bind.
可选的,基于上述方法,当利用第二服务端软件升级包升级相应软件时,向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。Optionally, based on the foregoing method, when the corresponding software is upgraded by using the second server software upgrade package, the second client software upgrade package of the same version as the second server software upgrade package is pushed to the client, so that The client performs a synchronous upgrade.
可以看出,本实施例的方案中,客户端发送的升级相应可以触发服务器端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级,可以有效地保证服务端与客户端软件的同步更新。It can be seen that, in the solution of this embodiment, the upgrade sent by the client may trigger the server to use the server software upgrade package with the same version of the client software upgrade package to perform corresponding software upgrade, which can effectively ensure the server and the server. Synchronous update of client software.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。 The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .

Claims (10)

  1. 一种软件升级的方法,其特征在于,所述方法包括:A method for software upgrade, characterized in that the method comprises:
    客户端启动装载器;The client starts the loader;
    所述客户端获取待升级软件的运行环境参数;The client obtains an operating environment parameter of the software to be upgraded;
    所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;The client invoking the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader;
    所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;The client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a client software upgrade package that matches the running environment parameter, and the upgrade The request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
    所述客户端利用所述客户端软件升级包升级所述待升级软件。The client upgrades the software to be upgraded by using the client software upgrade package.
  2. 如权利要求1所述的方法,其特征在于,所述客户端调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求之前,所述方法还包括:The method of claim 1, wherein the method further comprises: the client invoking the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader, the method further comprising:
    所述客户端获取所述装载器的当前版本;The client acquires a current version of the loader;
    当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。When the current version of the loader is lower than the latest version of the loader, the client updates the loader according to the latest version of the loader.
  3. 一种软件升级方法,其特征在于,所述方法包括:A software upgrade method, the method comprising:
    服务端接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;The server receives the client and sends a upgrade request to the loader corresponding to the server, where the upgrade request carries the operating environment parameter of the software to be upgraded by the client;
    服务端向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;The server sends an upgrade response to the client in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
    所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级。The server performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package version.
  4. 如权利要求3所述的方法,其特征在于,所述服务端接收客户端调用与所述服务端对应的装载器发送升级请求之前,所述方法还包括:将所述客户端 软件升级包与所述服务端软件升级包进行绑定。The method according to claim 3, wherein the method further comprises: before the server receives a client call, and the loader corresponding to the server sends an upgrade request, the method further comprises: The software upgrade package is bound to the server software upgrade package.
  5. 如权利要求3所述的方法,其特征在于,所述方法还包括:当所述服务端利用第二服务端软件升级包升级相应软件时,所述服务端向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。The method according to claim 3, wherein the method further comprises: when the server upgrades the corresponding software by using the second server software upgrade package, the server pushes the The second server software upgrade package with the same version of the second server software upgrade package enables the client to perform synchronous upgrade.
  6. 一种客户端,其特征在于,所述客户端包括:A client, wherein the client includes:
    启动模块,用于启动装载器;a startup module for starting the loader;
    获取模块,用于获取所述客户端待升级软件的运行环境参数;An obtaining module, configured to acquire an operating environment parameter of the software to be upgraded by the client;
    调用模块,用于调用所述装载器向与所述装载器对应的服务端发送携带所述运行环境参数的升级请求;a calling module, configured to invoke the loader to send an upgrade request carrying the running environment parameter to a server corresponding to the loader;
    接收模块,所述客户端调用所述装载器接收所述服务端响应所述升级请求而发送的升级响应,其中,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包,所述升级请求用于触发所述服务端利用与所述客户端软件升级包版本相同的服务端软件升级包进行相应软件升级;a receiving module, the client invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter, The upgrade request is used to trigger the server to perform a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;
    升级模块,所述客户端利用所述客户端软件升级包升级所述待升级软件。An upgrade module, where the client upgrades the software to be upgraded by using the client software upgrade package.
  7. 如权利要求6所述的客户端,其特征在于,The client of claim 6 wherein:
    所述客户端还包括装载器获取模块和装载器更新模块;The client further includes a loader acquisition module and a loader update module;
    装载器获取模块,用于客户端获取所述装载器的当前版本;a loader acquisition module for the client to obtain the current version of the loader;
    装载器更新模块,用于当所述装载器的当前版本低于所述装载器的最新版本时,所述客户端根据所述装载器的最新版本对所述装载器进行更新。A loader update module for updating the loader according to a latest version of the loader when a current version of the loader is lower than a latest version of the loader.
  8. 一种服务器,其特征在于,所述服务器包括:A server, wherein the server comprises:
    调用模块,用于接收客户端调用与所述服务端对应的装载器发送升级请求,所述升级请求携带所述客户端待升级软件的运行环境参数;a calling module, configured to receive, by the client, a loader corresponding to the server to send an upgrade request, where the upgrade request carries an operating environment parameter of the software to be upgraded by the client;
    发送模块,用于向所述客户端发送响应所述升级请求的升级响应,所述升级响应携带有与所述运行环境参数匹配的客户端软件升级包;a sending module, configured to send, to the client, an upgrade response that is responsive to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter;
    升级模块,用于利用与所述客户端软件升级包版本相同的服务端软件升级 包进行相应软件升级。An upgrade module for upgrading the same server software using the same version of the client software upgrade package The package is upgraded accordingly.
  9. 如权利要求8所述的服务器,其特征在于,所述服务器还包括:The server of claim 8 wherein said server further comprises:
    绑定模块,用于将所述客户端软件升级包与所述服务端软件升级包进行绑定。And a binding module, configured to bind the client software upgrade package to the server software upgrade package.
  10. 如权利要求8所述的服务器,其特征在于,所述服务器还包括:同步升级模块,用于当所述升级模块利用第二服务端软件升级包升级相应软件时,所述服务端向所述客户端推送与所述第二服务端软件升级包版本相同的第二客户端软件升级包,使得客户端进行同步升级。 The server according to claim 8, wherein the server further comprises: a synchronization upgrade module, configured to: when the upgrade module upgrades the corresponding software by using the second server software upgrade package, the server sends the The client pushes the second client software upgrade package with the same version of the second server software upgrade package, so that the client performs synchronous upgrade.
PCT/CN2016/093111 2015-10-26 2016-08-03 Software upgrade method and apparatus WO2017071358A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510711497.2A CN105302603A (en) 2015-10-26 2015-10-26 Software upgrade method and apparatus
CN201510711497.2 2015-10-26

Publications (1)

Publication Number Publication Date
WO2017071358A1 true WO2017071358A1 (en) 2017-05-04

Family

ID=55199898

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093111 WO2017071358A1 (en) 2015-10-26 2016-08-03 Software upgrade method and apparatus

Country Status (3)

Country Link
CN (1) CN105302603A (en)
TW (1) TWI626593B (en)
WO (1) WO2017071358A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764803A (en) * 2019-10-21 2020-02-07 北京云迹科技有限公司 Software upgrading method and device

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302603A (en) * 2015-10-26 2016-02-03 广州视睿电子科技有限公司 Software upgrade method and apparatus
CN106445615A (en) * 2016-10-12 2017-02-22 北京元心科技有限公司 Multi-system OTA upgrading method and device
CN109062815B (en) * 2018-10-11 2022-11-18 郑州云海信息技术有限公司 Method and system for generating test package of upgrade/patch package of virtualization software
CN110442366B (en) * 2019-08-09 2021-06-15 广州视源电子科技股份有限公司 Screen transmission processing method, device, equipment and storage medium
CN112134961B (en) * 2020-09-28 2023-08-08 深圳市元征科技股份有限公司 Client use control method, client and computer storage medium
CN113515747B (en) * 2021-05-17 2024-02-09 深圳市友华通信技术有限公司 Equipment upgrading method, device, equipment and storage medium
TWI774412B (en) * 2021-06-08 2022-08-11 玉山商業銀行股份有限公司 Method for switching service versions in a service system, service-switching gateway and the service system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062765B1 (en) * 1999-05-25 2006-06-13 Realnetworks, Inc. System and method for updating information via a network
CN101382894A (en) * 2007-09-05 2009-03-11 北京软通科技有限责任公司 Method, system, computer, and server for downloading computer hardware device driver
CN102185917A (en) * 2011-04-29 2011-09-14 深圳市五巨科技有限公司 Method and system for adaptation between server and mobile terminal, and server adaptation device
CN103823700A (en) * 2014-02-28 2014-05-28 北京数码大方科技股份有限公司 Method and device for upgrading application software of client
CN105302603A (en) * 2015-10-26 2016-02-03 广州视睿电子科技有限公司 Software upgrade method and apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136770B (en) * 2006-10-13 2010-12-29 中兴通讯股份有限公司 Automatically upgrading method and apparatus for telecom multi-branch network management system
CN100501697C (en) * 2007-11-09 2009-06-17 中兴通讯股份有限公司 Software version upgrade mounting test system and method thereof
CN102546675A (en) * 2010-12-08 2012-07-04 鸿富锦精密工业(深圳)有限公司 Software upgrading system and method
CN102195817B (en) * 2011-05-25 2014-09-17 上海华为技术有限公司 Software upgrading method and device and software rollback method and device
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062765B1 (en) * 1999-05-25 2006-06-13 Realnetworks, Inc. System and method for updating information via a network
CN101382894A (en) * 2007-09-05 2009-03-11 北京软通科技有限责任公司 Method, system, computer, and server for downloading computer hardware device driver
CN102185917A (en) * 2011-04-29 2011-09-14 深圳市五巨科技有限公司 Method and system for adaptation between server and mobile terminal, and server adaptation device
CN103823700A (en) * 2014-02-28 2014-05-28 北京数码大方科技股份有限公司 Method and device for upgrading application software of client
CN105302603A (en) * 2015-10-26 2016-02-03 广州视睿电子科技有限公司 Software upgrade method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764803A (en) * 2019-10-21 2020-02-07 北京云迹科技有限公司 Software upgrading method and device
CN110764803B (en) * 2019-10-21 2023-03-31 北京云迹科技股份有限公司 Software upgrading method and device

Also Published As

Publication number Publication date
CN105302603A (en) 2016-02-03
TW201715388A (en) 2017-05-01
TWI626593B (en) 2018-06-11

Similar Documents

Publication Publication Date Title
TWI626593B (en) Method and apparatus for upgrading software
CN111433743B (en) APP remote control method and related equipment
CN109165050B (en) Program running method and device, computing equipment and storage medium
US8978027B2 (en) Method of disseminating updated drivers to mobile computing devices and a dissemination system therefor
WO2015055074A1 (en) Method and device for dynamically loading and invoking program
JP2018537783A (en) Run the application using pre-generated components
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
US9990214B2 (en) Dynamic agent delivery
CN104965723B (en) The operation method and device of application program
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN110764805B (en) Client non-inductive upgrading method, device, terminal and storage medium
CN110968331A (en) Method and device for running application program
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN107894891A (en) Program packaging method and device and program installation method and device
WO2017084490A1 (en) Method and device for downloading data
WO2017148157A1 (en) Method and device for localized application installation on android device
WO2021179156A1 (en) Message processing method, device and system, and server
CN110113391B (en) Client online method and device and client operation method and device
KR101955744B1 (en) Event service for local client applications through local server
US10193737B2 (en) Method for performing communication between browser and mobile terminal, and browser apparatus
US20170168796A1 (en) Method and electronic apparatus for transferring application program from pc to mobile apparatus
CN105468402B (en) For providing the method and apparatus of the period of starting application
CN112948018B (en) Dynamic library loading method, device, equipment and medium for applet
CA2966157A1 (en) Monitoring a mobile device application
CN111045747A (en) H5 mobile application rapid loading method, system, terminal and storage medium

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: 16858797

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: 16858797

Country of ref document: EP

Kind code of ref document: A1