[go: up one dir, main page]

TWI626593B - Method and device for upgrading software - Google Patents

Method and device for upgrading software Download PDF

Info

Publication number
TWI626593B
TWI626593B TW105134294A TW105134294A TWI626593B TW I626593 B TWI626593 B TW I626593B TW 105134294 A TW105134294 A TW 105134294A TW 105134294 A TW105134294 A TW 105134294A TW I626593 B TWI626593 B TW I626593B
Authority
TW
Taiwan
Prior art keywords
upgrade
server
client
loader
software
Prior art date
Application number
TW105134294A
Other languages
Chinese (zh)
Other versions
TW201715388A (en
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 TW201715388A publication Critical patent/TW201715388A/en
Application granted granted Critical
Publication of TWI626593B publication Critical patent/TWI626593B/en

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本發明公開了一種軟體升級的方法及裝置,其中,所述方法包含用戶端啟動裝載器;所述用戶端獲取待升級軟體的運行環境參數;所述用戶端調用所述裝載器向與所述裝載器對應的服務端發送攜帶所述運行環境參數的升級請求;所述用戶端調用所述裝載器接收所述服務端回應所述升級請求而發送的升級回應,其中,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包;以及所述用戶端利用所述用戶端軟體升級包升級所述待升級軟體。採用本發明,能夠將用戶端和伺服器端的軟體進行同步升級,從而保證用戶端和伺服器端升級後的版本的一致性。The present invention discloses a software upgrade method and apparatus, wherein the method includes a client-side boot loader; the client acquires an operating environment parameter of the software to be upgraded; the client invokes the loader to and The server corresponding to the loader sends an upgrade request carrying the operating environment parameter; the user invokes 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; and the user terminal upgrades the software to be upgraded by using the client software upgrade package. By adopting the invention, the software of the client end and the server end can be synchronously upgraded, thereby ensuring the consistency of the upgraded version of the client end and the server end.

Description

一種軟體升級的方法及裝置Method and device for upgrading software

本發明涉及網路通信及電腦技術領域,尤其涉及一種軟體升級的方法及裝置。The present invention relates to the field of network communication and computer technology, and in particular, to a software upgrade method and apparatus.

目前,隨著網際網路的發展, 軟體應用的場景越來越多。軟體發展人員在開發軟體的時候,針對軟體類型的不同需要開發不同架構的軟體,比如用戶端/伺服器架構的軟體,簡稱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 running 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 respectively required. Upgrade. Because the client software and the 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 user end is upgraded according to the version matched with the server end, thereby ensuring the consistency of the upgraded version of the client end and the server end, thereby improving the user experience.

本發明第一方面公開了一種軟體升級的方法,包含:用戶端啟動裝載器;所述用戶端獲取待升級軟體的運行環境參數;所述用戶端調用所述裝載器向與所述裝載器對應的服務端發送攜帶所述運行環境參數的升級請求;所述用戶端調用所述裝載器接收所述服務端回應所述升級請求而發送的升級回應,其中,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包,所述升級請求用於觸發所述服務端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級;以及所述用戶端利用所述用戶端軟體升級包升級所述待升級軟體。A first aspect of the present invention discloses a method for upgrading a software, comprising: a client launching a loader; the client acquiring a running environment parameter of the software to be upgraded; the client calling the loader to correspond to the loader The server sends an upgrade request carrying the operating environment parameter; the client invokes the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries the a client software upgrade package that matches the running environment parameter, 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; and the user end The software to be upgraded is 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 user, before the calling, sends the upgrade request that carries the running environment parameter to the server corresponding to the loader, The method further includes: the client acquiring a current version of the loader; when the current version of the loader is lower than a latest version of the loader, the user is based on a latest version of the loader Update 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 upgrading a software, the method comprising: receiving, by a server, a loader that is sent by a client and corresponding to the server to send an upgrade request, where the upgrade request carries the software to be upgraded by the user Running the environment parameter; the server sends an upgrade response to the user end in response to the upgrade request, the upgrade response carrying a client software upgrade package matching the running environment parameter; and the server utilizing The client software upgrade package with the same version of the client software upgrade package performs the corresponding software upgrade.

結合第二方面,在第二方面的第一種可能的實施方式中,所述服務端接收用戶端調用與所述服務端對應的裝載器發送升級請求之前,所述方法另包含:將所述用戶端軟體升級包與所述服務端軟體升級包進行綁定。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 the 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 Pushing the second client software upgrade package with the same version of the second server software upgrade package to the user end, so that the user end performs synchronous upgrade.

本發明協力廠商面公開了一種用戶端,包含:啟動模組、獲取模組、調用模組、接收模組以及升級模組。啟動模組用於啟動裝載器。獲取模組用於獲取所述用戶端待升級軟體的運行環境參數。調用模組用於調用所述裝載器向與所述裝載器對應的服務端發送攜帶所述運行環境參數的升級請求。接收模組用於調用所述裝載器接收所述服務端回應所述升級請求而發送的升級回應。其中,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包,所述升級請求用於觸發所述服務端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級。升級模組用於利用所述用戶端軟體升級包升級所述待升級軟體。The third party of the present invention discloses a user terminal, which comprises: a startup module, an acquisition module, a calling module, a receiving module and an upgrade module. The boot module is used to start the loader. The obtaining module is configured to obtain an operating environment parameter of the software to be upgraded by the user end. The calling module is configured to invoke the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader. The receiving module is configured to invoke 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, and the upgrade request is used to trigger the server to use the same server software upgrade package as the client software upgrade package. Perform the corresponding software upgrade. The upgrade module is configured to upgrade the software to be upgraded by using the client software upgrade package.

結合協力廠商面,在協力廠商面第一種可能的實施方式中,所述裝置另包含裝載器獲取模組和裝載器更新模組;裝載器獲取模組,用於用戶端獲取所述裝載器的當前版本;裝載器更新模組,用於當所述裝載器的當前版本低於所述裝載器的最新版本時,所述用戶端根據所述裝載器的最新版本對所述裝載器進行更新。In conjunction with the third vendor, in a first possible implementation manner, the device further includes a loader acquisition module and a loader update module; and a loader acquisition module for the user to acquire the loader a current version; a loader update module, configured to update 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, a transmitting module, and an upgrade module. The calling module is configured to receive, by the server, the client to send an 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 user. The sending module sends, by the server, an upgrade response that is responsive to the upgrade request, and the upgrade response carries a client software upgrade package that matches the running environment parameter. The upgrade module is configured to perform the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package.

結合第四方面,在第四方面的第一種可能的實施方式中,所述伺服器另包含:綁定模組,用於將所述用戶端軟體升級包與所述服務端軟體升級包進行綁定。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 perform the client software upgrade package and the server software upgrade package Bind.

結合第四方面,在第四方面的第二種可能的實施方式中,所述伺服器另包含:同步升級模組,用於當所述升級模組利用第二服務端軟體升級包升級對應的軟體時,所述服務端向所述用戶端推送與所述第二服務端軟體升級包版本相同的第二用戶端軟體升級包,使得用戶端進行同步升級。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 use the second server software upgrade package to upgrade the upgrade module In the software, 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 user performs the synchronization upgrade.

可以看出,本發明提供的技術方案中,由於用戶端的升級軟體與伺服器端的升級軟體進行了綁定,用戶端可以藉由調用裝載器向伺服器發送運行環境狀態參數以使得所述伺服器根據所述運行環境確定所述用戶端所需的軟體版本,並根據所述軟體版本進行用戶端軟體升級,同時所述升級請求用於觸發所述服務端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級,從而解決了用戶端與服務端需要分別更新所導致的軟體版本不匹配的問題,保證了用戶端和伺服器端升級後的版本的一致性,提升了用戶體驗。It can be seen that, in the technical solution provided by the present invention, since the upgrade software of the client end is bound to the upgrade software of the server end, the user terminal can send the running environment state parameter to the server by calling the loader to make the server. Determining a software version required by the client according to the operating environment, and performing a client software upgrade according to the software version, and the upgrade request is used to trigger the server to use the client software upgrade package version. The same software upgrade package of the server software performs the corresponding software upgrade, which solves the problem that the software version does not match the update between the client and the server, and ensures the consistency of the upgraded version between the client and the server. Improved user experience.

本發明提供了一種軟體升級的方法及裝置,以期對用戶端和伺服器端的軟體進行同步升級,從而保證用戶端和伺服器端升級後的版本的一致性,提升了用戶體驗。The invention provides a software upgrade method and device, so as 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 below in conjunction with the drawings in the embodiments of the present invention. It is merely an embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope should 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 items, and are not intended to describe a particular order. Furthermore, the terms "comprising" and "having," and "the" 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 includes additional steps or units not listed, or alternatively further 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 loader; the client acquiring a running environment parameter of the software to be upgraded; the client calling the loader to send a carrying place to a server corresponding to the loader An upgrade request of the operating environment parameter; the user invoking the loader to receive an upgrade response sent by the server in response to the upgrade request, wherein the upgrade response carries a user that matches the running environment parameter The software upgrade package is configured to trigger the server to perform a software upgrade by using a server software upgrade package with the same version of the client software upgrade package; the user end is upgraded by using the client software. The package upgrades the software to be upgraded.

請參閱第1圖,第1圖是本發明的一個實施例提供的一種軟體升級的方法的流程示意圖。其中,如第1圖所示,本發明的一個實施例提供的一種軟體升級的方法可以包含以下內容:Referring 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 upgrading a software provided by an embodiment of the present invention may include the following contents:

步驟101:用戶端啟動裝載器。Step 101: The client starts the loader.

其中,所述用戶端也可稱為客戶端,是指與伺服器相對應,為客戶提供本機服務的程式。The client may also be referred to as a client, and refers to a program that provides a native service to the client corresponding to the server.

舉例來說,網際網路發展以後,較常用的用戶端包含了如萬維網使用的網頁瀏覽器,收寄電子郵件時的電子郵件用戶端,以及即時通訊的用戶端軟體等。對於這一類應用程式,需要網路中有對應的的伺服器和服務程式來提供對應的的服務,例如資料庫服務,電子郵件服務或其他服務。For example, after the development of the Internet, the more commonly used clients include web browsers such as the World Wide Web, email clients when 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 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 computer, a mobile internet device, or other terminal device.

其中,所述裝載器是一段程式外掛程式或者裝載所述程式的硬體設備。The loader is a program plug-in program or a hardware device that loads the program.

舉例來說,裝載器可以為網頁上的一個下載程式外掛程式,或者也可以為裝載所述程式的USB隨身碟、唯讀記憶體(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) loaded with the program. , one of the Random Access Memory), a mobile hard drive, a disk, or a disc.

步驟102:所述用戶端獲取待升級軟體的運行環境參數。Step 102: The client acquires an operating environment parameter of the software to be upgraded.

其中,所述的運行環境參數可以為作業系統的類型。The operating environment parameter may be a type of the operating system.

舉例來說,所述運行環境可以為Windows系統、Linux系統或者其他作業系統。For example, the operating environment can be a Windows system, a Linux system, or other operating system.

可選擇性的,所述運行環境也可為一些其他軟體。Alternatively, the operating environment may also be some other software.

舉例來說,所述運行環境也可為Office、CAJViewer或者其他應用軟體。For example, the operating environment can also be Office, CAJViewer, or other application software.

可選擇性的,所述運行環境還可以為協力廠商運行庫。Optionally, the operating environment may also be a third-party runtime library.

舉例來說,所述運行環境可以為DotNet,DirectX或者其他協力廠商運行庫。For example, the runtime environment can be a DotNet, DirectX, or other third-party vendor runtime.

步驟103:所述用戶端調用所述裝載器向與所述裝載器對應的服務端發送攜帶所述運行環境參數的升級請求。Step 103: The client invokes the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader.

步驟104:所述用戶端調用所述裝載器接收所述服務端回應所述升級請求而發送的升級回應。Step 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:所述用戶端利用所述用戶端軟體升級包升級所述待升級軟體。Step 105: The user end upgrades the software to be upgraded by using the client software upgrade package.

以無線傳屏為例,無線傳屏(wireless screen transmission)系統由發射端和接收端兩部分組成,發射端和接收端藉由自建無線網路進行通信。發射端為一個運行著嵌入式系統的小型硬體,其中存儲著裝載器程式。使用者將該發射端接入藉由USB介面與PC/Mac建立連接,會在電腦上識別為USB大型存放區設備,使用者可以打開該設備,運行裝載器程式。裝載器程式藉由發射端硬體與接收端建立通信,向運行在接收端的服務端程式發送作業系統(Windows或Mac)資訊。服務端程式將與請求作業系統對應的用戶端程式發送給裝載器程式,裝載器程式隨即運行收到的用戶端程式。用戶端程式從作業系統獲取螢幕畫面以及聲音輸出等資訊,經過編碼後藉由發射端硬體發送給運行在接收端的服務端程式,服務端程式進行解碼呈現,完成整個無線傳屏過程。Taking wireless transmission as an example, a wireless screen transmission system is composed of a transmitting end and a receiving end, and the transmitting end and the receiving end communicate by using a self-built wireless network. The transmitter is a small hardware running an embedded system in which the loader program is stored. The user connects the transmitter to the PC/Mac through the USB interface, and recognizes it as a USB large storage area device on the computer. The user can open the device and run the loader program. The loader program communicates with the receiving end by the transmitting end hardware and sends the 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 then runs the received client program. The client program obtains information such as the screen image and the sound output from the operating system. After being encoded, the client sends the firmware to the server program running on the receiving end, and the server program decodes and renders the entire wireless screen.

本實施例以無線傳屏為例進行說明,但是本實施例並不僅限於無線傳屏,本實施例的用戶端可以為桌上型電腦、無線傳屏、手機、平板電腦、筆記型電腦、掌上型電腦、行動網際網路設備或其他終端設備。In this embodiment, the wireless screen is taken as an example for description, but the embodiment is not limited to the wireless screen. The user terminal of this embodiment may be a desktop computer, a wireless screen, a mobile phone, a tablet computer, a notebook computer, or a palm. Computer, mobile internet device or other terminal device.

可以看出,本實施例的方案中,用戶端藉由調用所述裝載器向伺服器發送所述運行環境以使得所述伺服器根據所述運行環境確定所述用戶端所需的軟體版本,所述用戶端利用所述裝載器獲取所述伺服器發送的所述軟體版本,並根據所述軟體版本進行軟體升級。從而保證用戶端和伺服器端升級後的版本的一致性,提升用戶體驗。It can be seen that, in the solution of the embodiment, the user end sends the running environment to the server by calling the loader, so that the server determines the software version required by the user terminal according to the operating environment. The user end acquires the software version sent by the server by using the loader, and performs software upgrade according to the software version. Therefore, the consistency between the upgraded version of the client and the server is ensured, and the user experience is improved.

請參閱第2圖,第2圖是本發明的另一個實施例提供的一種軟體升級的方法的流程示意圖。其中,具體方法包含以下步驟。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a method for upgrading a software according to another embodiment of the present invention. The specific method includes the following steps.

步驟201:用戶端啟動裝載器。Step 201: The client starts the loader.

步驟202:所述用戶端獲取待升級軟體的運行環境參數。Step 202: The client acquires an operating environment parameter of the software to be upgraded.

可選擇性的,所述運行環境也可為一些其他軟體。Alternatively, the operating environment may also be some other software.

舉例來說,所述運行環境也可為Office、CAJViewer或者其他應用軟體。For example, the operating environment can also be Office, CAJViewer, or other application software.

可選擇性的,所述運行環境還可以為協力廠商運行庫。Optionally, the operating environment may also be a third-party runtime library.

步驟203:所述用戶端獲取所述裝載器的當前版本;當所述裝載器的當前版本低於所述裝載器的最新版本時,所述用戶端根據所述裝載器的最新版本對所述裝載器進行更新。Step 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 user end is configured according to a latest version of the loader. The loader is updated.

步驟204:所述用戶端調用所述裝載器向與所述裝載器對應的服務端發送攜帶所述運行環境參數的升級請求。Step 204: The client invokes the loader to send an upgrade request carrying the operating environment parameter to a server corresponding to the loader.

步驟205:所述用戶端調用所述裝載器接收所述服務端回應所述升級請求而發送的升級回應。Step 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:所述用戶端利用所述用戶端軟體升級包升級所述待升級軟體。Step 206: The user end 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 ensured, 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 may include: 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 user; the server sends the user to the user Sending, by the terminal, 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; the server uses the same server software version as the client software upgrade package version. Upgrade the package to perform the corresponding software upgrade.

請參閱第3圖,第3圖是本發明的實施例提供的另一種軟體升級的方法的流程示意圖。其中,具體方法包含以下步驟。Referring 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:服務端接收用戶端調用與所述服務端對應的裝載器發送升級請求,所述升級請求攜帶所述用戶端待升級軟體的運行環境參數。Step 301: The server receives the client to call the loader corresponding to the server to send an upgrade request, where the upgrade request carries the operating environment parameter of the software to be upgraded by the user.

步驟302:服務端向所述用戶端發送回應所述升級請求的升級回應,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包。Step 302: The server sends an upgrade response that responds to the upgrade request to the client, where the upgrade response carries a client software upgrade package that matches the running environment parameter.

步驟303:所述服務端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級。Step 303: The server performs the 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 the embodiment, the upgrade corresponding to the user end can trigger the server to perform the corresponding software upgrade by using the server software upgrade package with the same version of the client software upgrade package, which can effectively ensure Synchronous update of the server and client software.

請參閱第4圖,第4圖是本發明的實施例提供的另一種軟體升級的方法的流程示意圖。其中,具體方法包含以下步驟。Referring 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:將所述用戶端軟體升級包與所述服務端軟體升級包進行綁定。Step 401: Bind the client software upgrade package to the server software upgrade package.

步驟402:服務端接收用戶端調用與所述服務端對應的裝載器發送升級請求,所述升級請求攜帶所述用戶端待升級軟體的運行環境參數。Step 402: 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 user.

步驟403:服務端向所述用戶端發送回應所述升級請求的升級回應,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包。Step 403: The server sends an upgrade response that responds to the upgrade request to the client, where the upgrade response carries a client software upgrade package that matches the running environment parameter.

步驟404:所述服務端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級。Step 404: The server performs the corresponding software upgrade by using the same server software upgrade package as the client software upgrade package.

步驟405:當所述服務端利用第二服務端軟體升級包升級所述對應的軟體時,所述服務端向所述用戶端推送與所述第二服務端軟體升級包版本相同的第二用戶端軟體升級包,使得用戶端進行同步升級。Step 405: When the server upgrades the corresponding software by using the second server software upgrade package, the server pushes the second user with the same version of the second server software upgrade package to the client. The software upgrade package enables the user to perform synchronous upgrade.

可以看出,本實施例的方案中,當服務端優先升級時,服務端會向用戶端推送與服務端軟體升級包版本相同的用戶端軟體升級包,從而保證在服務端優先升級時,用戶端也可以及時回應,從而保證了用戶端軟體和伺服器端軟體版本的一致性。It can be seen that, in the solution of the 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 user is preferentially upgraded when the server is preferentially upgraded. The terminal can also respond in time, thus ensuring the consistency between the client software and the server software version.

請參閱第5圖,第5圖是本發明的實施例提供的用戶端的結構示意圖。其中,如第5圖所示,本發明的一個實施例提供的用戶端可以包含以下內容:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a user end 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,用於啟動裝載器;The startup module 501 is configured to start the loader;

獲取模組502,用於獲取所述用戶端待升級軟體的運行環境參數;The obtaining module 502 is configured to obtain an operating environment parameter of the software to be upgraded by the user end;

調用模組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,用於調用所述裝載器接收所述服務端回應所述升級請求而發送的升級回應,其中,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包,所述升級請求用於觸發所述服務端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級;The receiving module 504 is configured to invoke 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;

升級模組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 user end sends the running environment to the server by calling the loader, so that the server determines the software version required by the user terminal according to the operating environment. The user end acquires the software version sent by the server by using the loader, and performs software upgrade according to the software version. Therefore, the consistency between the upgraded version of the client and the server is ensured, and the user experience is improved.

可選擇性的,所述用戶端另包含裝載器獲取模組506和裝載器更新模組507;Optionally, the client further includes a loader acquisition module 506 and a loader update module 507;

裝載器獲取模組506,用於用戶端獲取所述裝載器的當前版本;a loader acquisition 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圖所示,本發明的一個實施例提供的服務端可以包含以下內容:Referring 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, the client to send an 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 user end;

發送模組602,服務端向所述用戶端發送回應所述升級請求的升級回應,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包;The sending module 602, the server sends an upgrade response to the user end, and 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 a server software upgrade package with the same version of the client software upgrade package.

可以看出,本實施例的方案中,當服務端優先升級時,服務端會向用戶端推送與服務端軟體升級包版本相同的用戶端軟體升級包,從而保證在服務端優先升級時,用戶端也可以及時回應,從而保證了用戶端軟體和伺服器端軟體版本的一致性。It can be seen that, in the solution of the 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 user is preferentially upgraded when the server is preferentially upgraded. The terminal can also respond in time, thus ensuring the consistency between 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, where the binding module 604 is configured to perform the client software upgrade package and the server software upgrade package. Bind.

可選擇性的,基於第6圖提供的服務端,該服務端另包含同步升級模組605,該同步升級模組605用於當所述升級模組603利用第二服務端軟體升級包升級對應的軟體時,所述服務端向所述用戶端推送與所述第二服務端軟體升級包版本相同的第二用戶端軟體升級包,使得用戶端進行同步升級。Optionally, based on the server provided in FIG. 6 , the server further includes a synchronization upgrade module 605, where the synchronization upgrade module 605 is configured to use the second server software upgrade package to upgrade In the software, 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 user performs the synchronization upgrade.

在本發明的另一個實施例中,用戶端待升級程式的升級版本位於服務端上,並與服務端上對應的服務端上待升級程式的升級版本綁定。當服務端上待升級的程式根據升級版本進行升級時,服務端會向客服端發送待升級程式的升級版本,以使得用戶端的待升級程式根據待升級版本進行升級,從而使得用戶端程式與伺服器端的程式的版本相匹配。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 program to be upgraded 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 program to be upgraded by the client is upgraded according to the version to be upgraded, thereby enabling the client program and the server. The version of the program on the terminal side matches.

其中,在向用戶端發送升級版本前,需要確定用戶端的運行環境;並且如果藉由高速連接通道向用戶端的裝載器發送升級版本,會提升作業效率。Before sending the upgrade version to the client, it is necessary to determine the operating 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 Figure 7, the present invention provides a software upgrade system. The system includes a client 701 and a server 702. The client 701 can be an electronic device such as a personal computer, a tablet computer, or a smart terminal; the server 702 can 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 the running environment parameters of the software to be upgraded;

用戶端701藉由裝載器與服務端702建立高速連接;The client 701 establishes a high speed connection with the server 702 by 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 loader sent by the client 701 to the loader corresponding to the service 702, and the upgrade request carries the operating environment parameter of the software to be upgraded by the user.

服務端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 upgrade response sent by the loader server 702 in response to the upgrade request, where the upgrade response carries a client software upgrade package that matches the running environment parameter, and the upgrade request The software upgrade is performed to trigger the server to perform a software upgrade by using the same server software upgrade package as the client software upgrade package.

用戶端701利用所述用戶端軟體升級包升級所述待升級軟體。The client 701 upgrades the software to be upgraded by using the client software upgrade package.

如第8圖所示,在本發明的另一個實施例中,提供一種用戶端,該用戶端可以是個人電腦、平板電腦、智慧終端機、手機等電子設備。用戶端800包含中央處理器(CPU)801、記憶體802、顯示器803、匯流排804等硬體。CPU執行預先存儲在記憶體中的服務端程式以便對用戶端的待升級程式進行升級,該執行過程具體包含:As shown in FIG. 8, in another embodiment of the present invention, a user terminal is provided, and the user terminal may be an electronic device such as a personal computer, a tablet computer, a smart terminal device, 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 a server program pre-stored in the memory 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, where 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 a corresponding software upgrade by using a server software upgrade package with the same version of the client software upgrade package;

利用所述用戶端軟體升級包升級所述待升級軟體。The software to be upgraded is upgraded by using the client software upgrade package.

可選擇性的,基於上述方法,所述用戶端調用所述裝載器向與所述裝載器對應的服務端發送攜帶所述運行環境參數的升級請求之前,所述方法另包含:Optionally, before the user invokes the loader to send an 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.

可以看出,本實施例的方案中,用戶端藉由調用所述裝載器向伺服器發送所述運行環境以使得所述伺服器根據所述運行環境確定所述用戶端所需的軟體版本,所述用戶端利用所述裝載器獲取所述伺服器發送的所述軟體版本,並根據所述軟體版本進行軟體升級。從而保證用戶端和伺服器端升級後的版本的一致性,提升用戶體驗。It can be seen that, in the solution of the embodiment, the user end sends the running environment to the server by calling the loader, so that the server determines the software version required by the user terminal according to the operating environment. The user end acquires the software version sent by the server by using the loader, and performs software upgrade according to the software version. Therefore, the consistency between the upgraded version of the client and the server is ensured, and the user experience is improved.

如第9圖所示,在本發明的另一個實施例中,提供一種服務端,該服務端可以是伺服器。服務端900包含中央處理器(CPU)901、記憶體902、匯流排903、顯示器904等硬體。CPU 901執行預先存儲在記憶體中的伺服器程式以便對用戶端的待升級程式進行升級,該執行過程具體包含:As shown in FIG. 9, in another embodiment of the present invention, a server is provided, which may be a server. The server 900 includes hardware such as a central processing unit (CPU) 901, a memory 902, a bus 903, and a display 904. The CPU 901 executes a server program that is pre-stored in the memory to upgrade the program to be upgraded by the client. The execution process specifically includes:

接收用戶端調用與所述服務端對應的裝載器發送升級請求,所述升級請求攜帶所述用戶端待升級軟體的運行環境參數;The receiving client invokes 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 user end;

向所述用戶端發送回應所述升級請求的升級回應,所述升級回應攜帶有與所述運行環境參數匹配的用戶端軟體升級包;以及Sending, to the user end, 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;

利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級。The software upgrade is performed by using the same server software upgrade package as the client software upgrade package.

可選擇性的,基於上述方法,所述接收用戶端調用與所述服務端對應的裝載器發送升級請求之前,所述方法另包含:將所述用戶端軟體升級包與所述服務端軟體升級包進行綁定。Optionally, before the receiving client calls the loader corresponding to the server to send an upgrade request, the method further includes: upgrading the client software upgrade package and the server software by using the foregoing method. The package is bound.

可選擇性的,基於上述方法,當利用第二服務端軟體升級包升級對應的軟體時,向所述用戶端推送與所述第二服務端軟體升級包版本相同的第二用戶端軟體升級包,使得用戶端進行同步升級。Alternatively, 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 with the same version of the second server software upgrade package is pushed to the user terminal. , so that the user side to synchronize upgrade.

可以看出,本實施例的方案中,用戶端發送的升級對應的可以觸發伺服器端利用與所述用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級,可以有效地保證服務端與用戶端軟體的同步更新。It can be seen that, in the solution of the embodiment, the upgrade corresponding to the user end can trigger the server to perform the corresponding software upgrade by using the server software upgrade package with the same version of the client software upgrade package, which can effectively ensure Synchronous update of the server and 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 by the present application, it should be understood that the disclosed device can be implemented in other manners. 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 integrated. Go to 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 a hardware or a software functional unit.

所述集成的單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲媒介中。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分或者該技術方案的全部或部分可以以軟體產品的形式體現出來,該電腦軟體產品存儲在一個存儲媒介中,包含若干指令用以使得一台電腦設備(可為個人電腦、伺服器或者網路設備等)執行本發明各個實施例所述方法的全部或部分步驟。而前述的存儲媒介包含:USB隨身碟、唯讀記憶體(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, can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute 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: USB flash drive, read-only memory (ROM), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, and the like. The medium of the code. The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.

101至105、201至206、301至303、401至405‧‧‧步驟101 to 105, 201 to 206, 301 to 303, 401 to 405 ‧ ‧ steps

501‧‧‧啟動模組501‧‧‧Starting module

502‧‧‧獲取模組502‧‧‧Getting module

503‧‧‧調用模組503‧‧‧call module

504‧‧‧接收模組504‧‧‧ receiving module

505‧‧‧升級模組505‧‧‧Upgrade Module

506‧‧‧裝載器獲取模組506‧‧‧Loader acquisition module

507‧‧‧裝載器更新模組507‧‧‧Loader Update Module

601‧‧‧調用模組601‧‧‧call module

602‧‧‧發送模組602‧‧‧Send module

603‧‧‧升級模組603‧‧‧Upgrade module

604‧‧‧綁定模組604‧‧‧Binding module

605‧‧‧同步升級模組605‧‧‧Synchronous upgrade module

701、800‧‧‧用戶端701, 800‧‧‧ client

702、900‧‧‧服務端702, 900‧‧‧ server

801、901‧‧‧中央處理器801, 901‧‧‧ central processor

802、902‧‧‧記憶體802, 902‧‧‧ memory

803、903‧‧‧顯示器803, 903‧‧‧ display

804、904‧‧‧匯流排804, 904‧‧ ‧ busbar

為了更清楚地說明本發明實施例中的技術方案,下面將對實施例中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本發明的一些實施例,對於本技術領域中具有通常知識者來講,在不付出創造性勞動的前提下,還可以根據這些圖式獲得其他的圖式。 第1圖為本發明實施例提供的一種軟體升級的方法的流程示意圖。 第2圖為本發明實施例提供的另一種軟體升級的方法的流程示意圖。 第3圖為本發明實施例提供的另一種軟體升級的方法的流程示意圖。 第4圖為本發明實施例提供的另一種軟體升級的方法的流程示意圖。 第5圖為本發明實施例提供的用戶端的結構示意圖。 第6圖為本發明實施例提供的服務端的結構示意圖。 第7圖為本發明實施例提供的一種軟體升級系統的示意圖。 第8圖為本發明提供的用戶端的物理結構示意圖。 第9圖為本發明提供的服務端的物理結構示意圖。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present invention, Those skilled in the art will be able to obtain other schemas based on these schemas without paying for creative labor. FIG. 1 is a schematic flowchart diagram of a method for upgrading a software according to an embodiment of the present invention. FIG. 2 is a schematic flowchart diagram 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 invention. FIG. 4 is a schematic flowchart diagram of another method for software upgrade according to an embodiment of the present invention. FIG. 5 is a schematic structural diagram of a user end according to an embodiment of the present invention. 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 showing the physical structure of a client provided by the present invention. Figure 9 is a schematic diagram showing the physical structure of the server provided by the present invention.

Claims (10)

一種軟體升級的方法,包含:一用戶端啟動一裝載器;該用戶端獲取待升級軟體的運行環境參數;該用戶端調用該裝載器向與該裝載器對應的一服務端發送攜帶該運行環境參數的升級請求;該用戶端調用該裝載器接收該服務端回應該升級請求而發送的升級回應,其中,該升級回應攜帶有與該運行環境參數匹配的用戶端軟體升級包,該升級請求還用於觸發該服務端,以使該服務端利用與該用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級;以及該用戶端利用該用戶端軟體升級包升級該待升級軟體。 A software upgrade method includes: a client starts a loader; the client acquires a running environment parameter of the software to be upgraded; the client calls the loader to send and carry the running environment to a server corresponding to the loader The upgrade request of the parameter; the client invokes 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 matching the running environment parameter, and the upgrade request is further The server is used to trigger the server to use the server software upgrade package with the same version of the client software upgrade package to perform the corresponding software upgrade; and the user uses the client software upgrade package to upgrade the software to be upgraded. . 如請求項1所述的方法,其中該用戶端調用該裝載器向與該裝載器對應的服務端發送攜帶該運行環境參數的升級請求之前,該方法另包含:該用戶端獲取該裝載器的當前版本;以及當該裝載器的當前版本低於該裝載器的最新版本時,該用戶端根據該裝載器的最新版本對該裝載器進行更新。 The method of claim 1, wherein the method, after the client calls the loader to send an upgrade request carrying the running environment parameter to a server corresponding to the loader, the method further comprises: the user acquiring the loader The current version; and 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. 一種軟體升級方法,包含:服務端接收用戶端因調用與該服務端對應的裝載器而發送的一升級請求,該升級請求攜帶該用戶端待升級軟體的運行環境參數;該服務端向該用戶端發送回應該升級請求的升級回應,該升級回應攜帶有與該運行環境參數匹配的用戶端軟體升級包;以及該服務端被該升級請求所觸發,以利用與該用戶端軟體升級包版本相同的 服務端軟體升級包進行對應的軟體升級。 A software upgrade method includes: receiving, by the server, an upgrade request sent by the user end by calling a loader corresponding to the server end, where the upgrade request carries an operating environment parameter of the software to be upgraded by the user end; the server sends the service environment parameter to the user Sending an upgrade response to the upgrade request, the upgrade response carrying the client software upgrade package matching the running environment parameter; and the server being triggered by the upgrade request to utilize the same version as the client software upgrade package of The server software upgrade package performs the corresponding software upgrade. 如請求項3所述的方法,其中該服務端接收用戶端調用與該服務端對應的裝載器發送升級請求之前,該方法另包含:將該用戶端軟體升級包與該服務端軟體升級包進行綁定。 The method of claim 3, wherein the server receives the client to call the loader corresponding to the server to send an upgrade request, the method further comprises: performing the client software upgrade package and the server software upgrade package Bind. 如請求項3所述的方法,另包含:當該服務端利用第二服務端軟體升級包升級對應的軟體時,該服務端向該用戶端推送與該第二服務端軟體升級包版本相同的第二用戶端軟體升級包,使得用戶端進行同步升級。 The method of claim 3, further comprising: when the server upgrades the corresponding software by using the second server software upgrade package, the server pushes the same version of the second server software upgrade package to the client. The second client software upgrade package enables the user to perform synchronous upgrade. 一種用戶端,包含:一啟動模組,用於啟動裝載器;一獲取模組,用於獲取該用戶端待升級軟體的運行環境參數;一調用模組,用於調用該裝載器向與該裝載器對應的服務端發送攜帶該運行環境參數的升級請求;一接收模組,用於調用該裝載器接收該服務端回應該升級請求而發送的升級回應,其中,該升級回應攜帶有與該運行環境參數匹配的用戶端軟體升級包,該升級請求還用於觸發該服務端,以使該服務端利用與該用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級;以及一升級模組,用於利用該用戶端軟體升級包升級該待升級軟體。 A user terminal, comprising: a startup module, configured to start a loader; an acquisition module, configured to acquire a running environment parameter of the software to be upgraded by the user end; and a calling module, configured to invoke the loader to The server corresponding to the loader sends an upgrade request carrying the operating environment parameter; a receiving module is configured to invoke the loader to receive an upgrade response sent by the server to respond to the upgrade request, where the upgrade response carries the The client software upgrade package matching the running environment parameter, the upgrade request is further used to trigger the server, so that the server uses the server software upgrade package with the same version of the client software upgrade package to perform the corresponding software upgrade; An upgrade module is configured to upgrade the software to be upgraded by using the client software upgrade package. 如請求項6所述的用戶端,其中,該用戶端另包含一裝載器獲取模組和一裝載器更新模組; 其中該裝載器獲取模組用於用戶端獲取該裝載器的當前版本;以及其中該裝載器更新模組用於當該裝載器的當前版本低於該裝載器的最新版本時,該用戶端根據該裝載器的最新版本對該裝載器進行更新。 The client according to claim 6, wherein the client further includes a loader acquisition module and a loader update module; Wherein the loader acquisition module is used by the client to obtain the current version of the loader; and wherein the loader update module is configured to use the latest version of the loader when the current version of the loader is lower than the latest version of the loader The latest version of the loader updates the loader. 一種伺服器,包含:一調用模組,用於接收用戶端調用與該服務端對應的裝載器發送升級請求,該升級請求攜帶該用戶端待升級軟體的運行環境參數;一發送模組,用於向該用戶端發送回應該升級請求的升級回應,該升級回應攜帶有與該運行環境參數匹配的用戶端軟體升級包;以及一升級模組,用於被該升級請求所觸發,以利用與該用戶端軟體升級包版本相同的服務端軟體升級包進行對應的軟體升級。 A server includes: a calling module, configured to receive, by a 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 user; Sending an upgrade response to the client to the upgrade request, the upgrade response carrying the client software upgrade package matching the running environment parameter; and an upgrade module for being triggered by the upgrade request to utilize The client software upgrade package with the same version of the client software upgrade package performs the corresponding software upgrade. 如請求項8所述的伺服器,另包含:一綁定模組,用於將該用戶端軟體升級包與該服務端軟體升級包進行綁定。 The server of claim 8, further comprising: a binding module, configured to bind the client software upgrade package to the server software upgrade package. 如請求項8所述的伺服器,另包含:一同步升級模組,用於當該升級模組利用第二服務端軟體升級包升級對應的軟體時,該服務端向該用戶端推送與該第二服務端軟體升級包版本相同的第二用戶端軟體升級包,使得用戶端進行同步升級。 The server of claim 8, further comprising: 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 server to the client The second client software upgrade package with the same version of the second server software upgrade package enables the user to perform synchronous upgrade.
TW105134294A 2015-10-26 2016-10-24 Method and device for upgrading software TWI626593B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510711497.2A CN105302603A (en) 2015-10-26 2015-10-26 Software upgrading method and device
??201510711497.2 2015-10-26

Publications (2)

Publication Number Publication Date
TW201715388A TW201715388A (en) 2017-05-01
TWI626593B true TWI626593B (en) 2018-06-11

Family

ID=55199898

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105134294A TWI626593B (en) 2015-10-26 2016-10-24 Method and device for upgrading software

Country Status (3)

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

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302603A (en) * 2015-10-26 2016-02-03 广州视睿电子科技有限公司 Software upgrading method and device
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 广州视源电子科技股份有限公司 A screen transmission processing method, device, device and storage medium
CN110764803B (en) * 2019-10-21 2023-03-31 北京云迹科技股份有限公司 Software upgrading method and device
CN112099816B (en) * 2020-07-23 2024-12-13 浪潮通用软件有限公司 A method, device and medium for automatically upgrading client programs
CN112134961B (en) * 2020-09-28 2023-08-08 深圳市元征科技股份有限公司 Client use control method, client and computer storage medium
CN112612485B (en) * 2020-12-25 2025-01-17 北京市轨道交通运营管理有限公司 Upgrading method of deployment tool client
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
CN114116070A (en) * 2021-12-09 2022-03-01 深圳依时货拉拉科技有限公司 Application program operation control method and device, computer equipment and storage medium

Citations (2)

* 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

Family Cites Families (8)

* 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 中兴通讯股份有限公司 A software version upgrade installation test system and method
CN102546675A (en) * 2010-12-08 2012-07-04 鸿富锦精密工业(深圳)有限公司 Software upgrading system and method
CN102185917A (en) * 2011-04-29 2011-09-14 深圳市五巨科技有限公司 Method and system for adaptation between server and mobile terminal, and server adaptation device
CN102195817B (en) * 2011-05-25 2014-09-17 上海华为技术有限公司 Software upgrading method and device and software rollback method and device
CN103823700B (en) * 2014-02-28 2017-11-14 北京数码大方科技股份有限公司 The application software updating method and device of client
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method
CN105302603A (en) * 2015-10-26 2016-02-03 广州视睿电子科技有限公司 Software upgrading method and device

Patent Citations (2)

* 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

Also Published As

Publication number Publication date
TW201715388A (en) 2017-05-01
WO2017071358A1 (en) 2017-05-04
CN105302603A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
TWI626593B (en) Method and device for upgrading software
US8862696B2 (en) Interconnecting applications on personal computers and mobile terminals through a web server
CN109165050B (en) Program running method and device, computing equipment and storage medium
CN108536468A (en) Configuration file obtaining method, providing method, device and equipment
CN104077162B (en) Renewal, dissemination method and the device of mobile terminal application template
CN106406940B (en) System upgrading method, device and terminal
WO2015157937A1 (en) Software upgrade method and terminal
CN103677956B (en) A kind of method and apparatus of the application operation of simulation mobile device on the computing device
US9990214B2 (en) Dynamic agent delivery
CN110764805B (en) Client non-inductive upgrading method, device, terminal and storage medium
CN108647032B (en) Application loading method and apparatus, computer apparatus and computer-readable storage medium
CN110968331B (en) Methods and devices for running applications
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
CN105917613A (en) Software upgrading method and device
CN112463140B (en) Programming method, device, electronic equipment and storage medium based on electronic building blocks
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
WO2017148157A1 (en) Method and device for localized application installation on android device
CN112181406B (en) Sharing method and device of rendering engine
WO2018210063A1 (en) Terminal system startup method and terminal
CN106648671B (en) Application upgrading method and terminal
CN110442416B (en) Method, electronic device and computer-readable medium for presenting information
WO2015003570A1 (en) Data downloading method,device and system thereof
KR20130044278A (en) Virtual device cloud network system and method for providing applications on heterogeneous device platform
CN106528219A (en) Upgrading method and apparatus for parasitic tool package in application