Terminal software upgrading method and device, equipment, storage medium and program product
Through the interaction between the intelligent terminal device and the backend server, the appropriate upgrade information type is selected according to different software and device information, and the target upgrade data is generated and applied. This solves the problem of low accuracy and efficiency in the software upgrade process and achieves efficient and accurate Software upgrades.
Patent Information
- Application Number
- CN202411350388.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-01-17
AI Technical Summary
The prior art is difficult to accurately upgrade software based on different software and equipment, resulting in complex and inefficient upgrades.
Obtain software information and device information to be upgraded through smart terminal devices, and send this information to the backend server. The background server selects the upgrade information type based on the device information, generates target upgrade data, and sends the data back to the terminal device for software upgrade. Upgrade information types include general upgrade configuration and directed upgrade address.
It realizes the flexible selection of upgrade information types according to different software and devices, ensures the accuracy and efficiency of software upgrades, and reduces the need for terminal devices to plan their own upgrade plans.
Smart Images

Figure CN119322625A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software updating, and in particular to a terminal software upgrading method, device, equipment, storage medium and program product. Background Art
[0002] With the continuous development of Internet information technology, all walks of life basically need various software to improve or enrich product experience and product competitiveness. With the continuous iteration and upgrading of products, the additional software product ecosystem will become more and more abundant, the functions will increase and become diversified, and the software environment and software versions in the market will become complex and diverse. How to efficiently maintain software products of different types, different versions, and adapted to different user terminals in the market, and how to correctly upgrade to the corresponding new version when software updates are required have become urgent problems to be solved.
[0003] Therefore, there is an urgent need for a method that can accurately perform software upgrades according to different software and devices. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a terminal software upgrade method, device, equipment, storage medium and program product to solve the problem that software upgrade cannot be accurately performed according to different software and equipment during software upgrade.
[0005] In a first aspect, the present invention provides a terminal software upgrade method, which is executed by an intelligent terminal device, and the method includes: obtaining software information to be upgraded and device information of the intelligent terminal device; sending the software information to be upgraded and the device information of the intelligent terminal device to a background server, so that the background server selects an upgrade information type according to the device information of the intelligent terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a targeted upgrade address; receiving the target upgrade data, and performing a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0006] In an optional implementation, when the upgrade information type is a general upgrade configuration, performing a software upgrade operation on the software to be upgraded according to the target upgrade data includes: parsing the target upgrade data to obtain an upgrade configuration request address; calling an upgrade configuration interface to the background server based on the upgrade configuration request address; receiving an upgrade path returned by the upgrade configuration interface and each upgrade package address corresponding to the upgrade path; downloading each upgrade package through each upgrade package address, and performing installation operations on each upgrade package in sequence according to the upgrade path.
[0007] In an optional implementation, when the upgrade information type is a directed upgrade address, performing a software upgrade operation on the software to be upgraded according to the target upgrade data includes: parsing the target upgrade data to obtain directed upgrade address information; downloading an upgrade package through the directed upgrade address information, and performing an installation operation.
[0008] In a second aspect, the present invention provides a terminal software upgrade method, which is executed by a background server, and the method includes: receiving software information to be upgraded sent by a smart terminal device and device information of the smart terminal device; selecting an upgrade information type according to the device information of the smart terminal device, and generating target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a targeted upgrade address; and sending the target upgrade data to the smart terminal device so that the smart terminal device performs a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0009] In an optional implementation, the method further includes: receiving update information of the target software; and generating and storing an upgrade information type corresponding to the target software based on the update information of the target software.
[0010] In a third aspect, the present invention provides a terminal software upgrade device, which is executed by an intelligent terminal device, and the device includes:
[0011] An information acquisition module, used to acquire the software information to be upgraded and the device information of the smart terminal device;
[0012] An information sending module, used to send the software information to be upgraded and the device information of the smart terminal device to a background server, so that the background server selects an upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address;
[0013] The software upgrade module is used to receive the target upgrade data and perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0014] In a fourth aspect, the present invention provides a terminal software upgrade device, which is executed by a background server, and the device includes:
[0015] An information receiving module, used to receive the software information to be upgraded sent by the smart terminal device and the device information of the smart terminal device;
[0016] A data generation module, configured to select an upgrade information type according to the device information of the intelligent terminal device, and generate target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address;
[0017] The data sending module is used to send the target upgrade data to the smart terminal device, so that the smart terminal device can perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0018] In a fifth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the terminal software upgrade method of any implementation method corresponding to the first aspect, the second aspect or both by executing the computer instructions.
[0019] In a sixth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the terminal software upgrade method of any one of the embodiments corresponding to the first aspect, the second aspect, or both.
[0020] In a seventh aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the terminal software upgrade method of any implementation method corresponding to the first aspect, the second aspect, or both.
[0021] The technical solution provided by the present invention may include the following beneficial effects:
[0022] The terminal software upgrade method provided by the present invention firstly obtains the software information to be upgraded and the device information of the smart terminal device, and then sends the software information to be upgraded and the device information of the smart terminal device to the background server, so that the background server selects the upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded, and the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address, and finally the smart terminal device receives the target upgrade data, and performs a software upgrade operation on the software to be upgraded according to the target upgrade data. The above scheme can flexibly select the corresponding upgrade information type in the background server according to the software information to be upgraded and the device information of the smart terminal device to perform software upgrade, ensure the accuracy of software upgrade according to different software and smart terminal devices, and through the interaction between the smart terminal device and the background server, there is no need for the smart terminal device to plan the upgrade plan and upgrade path by itself, thereby improving the efficiency and convenience of software upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 is a schematic diagram of a process flow of a terminal software upgrade method according to an embodiment of the present invention;
[0025] Figure 2 is a flow chart of another terminal software upgrade method according to an embodiment of the present invention;
[0026] Figure 3 is a flow chart of another terminal software upgrade method according to an embodiment of the present invention;
[0027] Figure 4 is a flow chart of yet another terminal software upgrade method according to an embodiment of the present invention;
[0028] Figure 5 is a structural block diagram of a terminal software upgrading device according to an embodiment of the present invention;
[0029] Figure 6 is a structural block diagram of another terminal software upgrading device according to an embodiment of the present invention;
[0030] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0032] According to an embodiment of the present invention, an embodiment of a terminal software upgrade method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] In this embodiment, a terminal software upgrade method is provided, which is executed by an intelligent terminal device, and the intelligent terminal device can be a desktop computer, a laptop computer, a tablet computer, a mobile phone, etc. Figure 1 is a flow chart of a terminal software upgrade method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0034] Step S101, obtaining information of software to be upgraded and device information of the smart terminal device.
[0035] The software to be upgraded can be software corresponding to different device models, hardware environments, and software systems. For example, if the smart terminal device is an Android phone, the software to be upgraded is software in the Android system. When upgrading the software, you must first obtain the software information to be upgraded and the device information of the smart terminal device. The software information to be upgraded can be the software name, software version number, etc. The device information of the smart terminal device can be the device code, device model, device operating system version, and device hardware architecture (such as x86, arm64, etc.) of the smart terminal device.
[0036] Step S102, the software information to be upgraded and the device information of the smart terminal device are sent to the background server, so that the background server selects the upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded.
[0037] Optionally, the smart terminal device and the cloud server can transmit data through an Internet connection, such as http protocol, ftp protocol, MQTT protocol, API interface, etc.
[0038] The backend server pre-stores device information of various intelligent terminal devices, software information of various software and the corresponding relationship between the two. When the backend server receives the software information to be upgraded and the device information of the intelligent terminal device, it selects the upgrade information type corresponding to the software information to be upgraded according to the device information of the intelligent terminal device.
[0039] Since the backend server does not necessarily pre-store all device information of all smart terminal devices, for example, the device information and software directional upgrade information of the target customer are not pre-set for the target customer, or a certain device information is missing, resulting in the inability to accurately correspond to the historical upgrade situation of the software to be upgraded and the directional upgrade cannot be performed, or the backend server is connected to the target smart terminal device for the first time, and does not contain the historical update information corresponding to the software to be upgraded, resulting in the inability to accurately locate the upgrade path of the software to be upgraded, etc., different upgrade information types are set. The upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address. The general upgrade configuration can correspond to the scenario where the historical upgrade situation of the software to be upgraded cannot be accurately located. Specifically, when the upgrade information type is a general upgrade configuration, the target upgrade data generated by the backend server based on the device information of the smart terminal device and the software to be upgraded information includes a general upgrade path and upgrade package information corresponding to the smart terminal device and the software to be upgraded. The upgrade path is used to indicate the upgrade order of each version when the software to be upgraded is upgraded, and the upgrade package information is used to obtain the upgrade packages of each version when the software to be upgraded is upgraded. Exemplarily, the upgrade package information can be the upgrade package download address or the upgrade package itself. The targeted upgrade address can correspond to a scenario that can accurately locate the historical upgrade status of the software to be upgraded, and then accurately locate the upgrade information currently required by the software to be upgraded. Specifically, when the upgrade information type is a targeted upgrade address, the upgrade package information required for the current upgrade of the software to be upgraded can be accurately given.
[0040] It should be noted that targeted upgrades are targeted at specific users and their smart terminal device environments. For example, if an individual user encounters a special upgrade problem that is different from that of general users, it is necessary to perform a targeted upgrade on the SN of the user's smart terminal device model to solve the special upgrade problem of this customer. After the targeted upgrade of the user's smart terminal device software, the ultimate goal is to help the user's smart terminal device software eventually adopt a universal upgrade solution to save costs for the subsequent operation and maintenance of the software.
[0041] Step S103, receiving target upgrade data, and performing a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0042] After the smart terminal device receives the target upgrade data, it can parse the target upgrade data to obtain the upgrade information corresponding to the upgrade information type to perform the software upgrade operation. For example, when the upgrade information type is a general upgrade configuration, the general upgrade path and upgrade package information corresponding to the smart terminal device and the software to be upgraded are parsed, and the software is upgraded according to the general upgrade path and upgrade package information. When the upgrade information type is a targeted upgrade address, the upgrade package information required for the current upgrade of the software to be upgraded is parsed, and the software is upgraded according to the upgrade package information.
[0043] Optionally, for certain special software upgrades where the smart terminal device cannot be powered off or restarted during the upgrade, the smart terminal device has a device freeze during the upgrade, some software versions cannot be upgraded across versions, etc., resulting in upgrade failures, the background server sends an early warning or pop-up window to the smart terminal device before the upgrade to remind the user. When a software upgrade fails, the software version number will not be updated, and the software upgrade can be started normally from the beginning, and the downloaded upgrade package can be reused.
[0044] The terminal software upgrade method provided in this embodiment firstly obtains the software information to be upgraded and the device information of the smart terminal device, and then sends the software information to be upgraded and the device information of the smart terminal device to the background server, so that the background server selects the upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded, and the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address, and finally the smart terminal device receives the target upgrade data, and performs a software upgrade operation on the software to be upgraded according to the target upgrade data. The above scheme can flexibly select the corresponding upgrade information type in the background server according to the software information to be upgraded and the device information of the smart terminal device to perform software upgrade, ensure the accuracy of software upgrade according to different software and smart terminal devices, and through the interaction between the smart terminal device and the background server, there is no need for the smart terminal device to plan the upgrade plan and upgrade path by itself, which improves the efficiency and convenience of software upgrade.
[0045] In this embodiment, a terminal software upgrade method is provided, which is executed by a background server. Figure 2 is a flow chart of a terminal software upgrade method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0046] Step S201: receiving software information to be upgraded and device information of the smart terminal device sent by the smart terminal device.
[0047] For details on the software to be upgraded and the device information of the smart terminal device, please refer to Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0048] Step S202: selecting an upgrade information type according to the device information of the smart terminal device, and generating target upgrade data according to the upgrade information type and the information of the software to be upgraded.
[0049] The upgrade information type includes at least one of a general upgrade configuration and a targeted upgrade address.
[0050] The backend server selects the upgrade information type according to the device information of the smart terminal device, and generates the target upgrade data according to the upgrade information type and the software information to be upgraded. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0051] Step S203: sending the target upgrade data to the smart terminal device, so that the smart terminal device can perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0052] For details on how the intelligent terminal device performs software upgrade operations on the software to be upgraded according to the target upgrade data, see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0053] The terminal software upgrade method provided in this embodiment firstly obtains the software information to be upgraded and the device information of the smart terminal device, and then sends the software information to be upgraded and the device information of the smart terminal device to the background server, so that the background server selects the upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded, and the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address, and finally the smart terminal device receives the target upgrade data, and performs a software upgrade operation on the software to be upgraded according to the target upgrade data. The above scheme can flexibly select the corresponding upgrade information type in the background server according to the software information to be upgraded and the device information of the smart terminal device to perform software upgrade, ensure the accuracy of software upgrade according to different software and smart terminal devices, and through the interaction between the smart terminal device and the background server, there is no need for the smart terminal device to plan the upgrade plan and upgrade path by itself, which improves the efficiency and convenience of software upgrade.
[0054] In this embodiment, a terminal software upgrade method is provided, which is jointly executed by an intelligent terminal device and a background server. Figure 3 is a flow chart of a terminal software upgrade method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0055] Step S301: The smart terminal device obtains information about software to be upgraded and device information of the smart terminal device.
[0056] Optionally, the software information to be upgraded includes the software name and software version number of the software to be upgraded, and the device information of the smart terminal device includes the unique identification code (SN code) of the smart terminal device, the device model, the device operating system, the operating system version and the device hardware architecture (such as x86, arm64, etc.).
[0057] Step S302: the smart terminal device sends the software information to be upgraded and the device information of the smart terminal device to the background server.
[0058] Optionally, the smart terminal device sends the software information to be upgraded and the device information of the smart terminal device to the background server through the first http interface of the background server.
[0059] Step S303: the background server receives the software information to be upgraded and the device information of the smart terminal device sent by the smart terminal device.
[0060] Optionally, the background server receives the software information to be upgraded and the device information of the smart terminal device sent by the smart terminal device through the first http interface.
[0061] Step S304: the background server selects the upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded.
[0062] The upgrade information type includes at least one of a general upgrade configuration and a targeted upgrade address.
[0063] The backend server pre-stores software information (software name and software version number) of various software, device information (unique identification code (SN code), device model, device operating system and operating system version) of various smart terminal devices, and the corresponding relationship between various software information and device information of various smart terminal devices, which can be set and stored by relevant technical personnel. When the backend server receives the software information to be upgraded and the device information of the smart terminal device sent by the smart terminal device, it can match the software information to be upgraded and the device information of the smart terminal device with the pre-stored various software information and device information of various smart terminal devices to select the upgrade information type.
[0064] Specifically, if the unique identification code in the received device information of the smart terminal device does not match the device information of various pre-stored smart terminal devices, it means that the smart terminal device that currently needs to perform software upgrades has not left historical upgrade information in the background server, and the background server cannot directly provide the upgrade package information corresponding to the smart terminal device that currently needs to perform software upgrades and the software to be upgraded. In this case, the upgrade information type is selected as a general upgrade configuration, and target upgrade data corresponding to the general upgrade configuration is generated and sent to the smart terminal device; if the unique identification code in the received device information of the smart terminal device matches the device information of various pre-stored smart terminal devices, it means that the smart terminal device that currently needs to perform software upgrades has left historical upgrade information in the background server, and the background server can directly provide the upgrade package information corresponding to the smart terminal device that currently needs to perform software upgrades and the software to be upgraded. In this case, the upgrade information type is selected as a targeted upgrade address, and target upgrade data corresponding to the targeted upgrade address is generated and sent to the smart terminal device.
[0065] Optionally, the background server maintains and updates the software information of various software in real time. Specifically, the background server can establish an Internet connection with the official website of various software, and capture the update status and update version of each software, upgrade package download link, etc., and update and store them in real time. The background server can also reach an agreement with the manufacturers of various software. When the target software is updated, the background server can receive the update information of the target software pushed by the software manufacturer, and based on the update information of the target software, generate and store the upgrade information type corresponding to the target software for the target software to be called when the target software needs to be updated. Relevant technical personnel can also perform manual maintenance through the Web page of the background server. When the target software is updated, the update information of the target software is entered through the Web page; relevant technical personnel can also enter the device information of the target smart terminal device, the upgrade information of the target software, etc. through the Web page of the background server according to customer needs.
[0066] Step S305: the background server sends the target upgrade data to the smart terminal device.
[0067] Optionally, the background server sends the target upgrade data to the smart terminal device through the first http interface.
[0068] Step S306: the intelligent terminal device receives the target upgrade data, and performs a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0069] Optionally, when the upgrade information type is a general upgrade configuration, the smart terminal device first parses the target upgrade data to obtain the upgrade configuration request address, which is used to indicate the address of the upgrade configuration interface for obtaining the upgrade configuration information from the background server. Exemplarily, the upgrade configuration interface is the second http interface. Next, the smart terminal device calls the upgrade configuration interface to the background server based on the upgrade configuration request address, and receives the upgrade path returned by the upgrade configuration interface and the addresses of each upgrade package corresponding to the upgrade path. Finally, each upgrade package is downloaded through each upgrade package address, and the installation operation is performed on each upgrade package in sequence according to the upgrade path.
[0070] Optionally, when the upgrade information type is a targeted upgrade address, the smart terminal device first parses the target upgrade data to obtain the targeted upgrade address information, which may be a download link for the upgrade package. The smart terminal device may then directly download the upgrade package through the targeted upgrade address information and perform the installation operation.
[0071] The terminal software upgrade method provided in this embodiment firstly obtains the software information to be upgraded and the device information of the smart terminal device by the smart terminal device, and then sends the software information to be upgraded and the device information of the smart terminal device to the background server, so that the background server selects the upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded, wherein the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address, and finally the smart terminal device receives the target upgrade data, and performs a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0072] The above scheme can flexibly select the corresponding upgrade information type in the background server for software upgrade according to the software information to be upgraded and the device information of the smart terminal device, thereby ensuring the accuracy of upgrading different versions of the same software in the same smart terminal device, upgrading different versions of different software in the same smart terminal device, and upgrading different versions of the same or different software in different models of smart terminal devices.
[0073] Furthermore, through the interaction between the smart terminal device and the backend server, the smart terminal device does not need to plan the upgrade plan and upgrade path by itself, which improves the efficiency and convenience of software upgrades.
[0074] As one or more specific application embodiments of the embodiments of the present invention, the optimal implementation scheme or the scheme that the inventor most wants to embody is described below in combination with specific application scenarios.
[0075] Figure 4The flowchart of the terminal software upgrade method according to an embodiment of the present invention. The intelligent terminal software is the software to be upgraded in the intelligent terminal device. The software to be upgraded can call the software upgrade program in the intelligent terminal device to establish interaction with the background server. The software upgrade program can be the software upgrade module of the software to be upgraded, or it can be a separate software upgrade application installed in the intelligent terminal device.
[0076] Optionally, the software name, software type, operating system and architecture information of each software is added to the backend server through a web page. Exemplary configuration of software types based on a web page is as follows:
[0077] Software Name: unisA:OS:Windows:softType 1;
[0078] Software Name: unisB:OS:Windows:softType 2;
[0079] Software name: unisC:OS:Windows:softType 3;
[0080] Software name: unisA:OS:kos-x86:softType 4;
[0081] Software name: unisB:OS:kos-x86:softType 5;
[0082] Software name: unisA:OS:kos-arm64:softType 6;
[0083] Software name: unisB:OS:kos-arm64:softType 7;
[0084] Software name: unisA:OS:uos-x86:softType 8;
[0085] Software name: unisB:OS:uos-x86:softType 9;
[0086] Software name: unisA:OS:uos-arm64:softType 10;
[0087] Software name: unisB:OS:uos-arm64:softType 11;
[0088] Optionally, a general upgrade solution for each software is configured through a Web page (the upgrade information type is a general upgrade configuration) or a targeted upgrade solution is configured based on the unique identification code of the smart terminal device (the upgrade information type is a targeted upgrade address). For example, the general upgrade solution for each software configured based on a Web page is as follows:
[0089] a. Under Windows-11, the device model is L3891××, the SoftType (software type) is 1, and the software upgrade configuration information is updateConfig-1.
[0090] b. Under Windows-10, the device model is L3891××, the SoftType is 1, and the configuration information is updateConfig-2.
[0091] c. Under Windows-10, the device model is L3890××, the softType is 1, and the software upgrade configuration information is updateConfig-3.
[0092] d. On the kos-x86 platform, the device model is K3830××, the softType is 1, and the configuration information is updateConfig-4.
[0093] e. On the kos-arm64 platform, the device model is K3811××, the softType is 1, and the configuration information is updateConfig-5.
[0094] For example, the directional upgrade scheme for configuring each software based on a Web page is as follows, where SN is a unique identification code, deviceModel is a device model, and newVersion is a software upgrade package version:
[0095] Platform: kos-x86; SN: SDFLAJDFLSJFLDENFENF0; deviceModel: L3893G2; softType: 1; newVersion: 1.2.702.0; software upgrade package upload entry;
[0096] Optionally, the software information to be upgraded and the device information of the smart terminal device sent by the smart terminal device to the background server through the first http interface are in the form of an http / https request body, as shown in the following example:
[0097] {
[0098] "osType":"windows11 / windows10 / kos-x86 / kos-arm64 / uos-x86 / uos-arm64 / android10 / android11 / 12 / 13"; / / System platform
[0099] "SN":"SDFLAJDFLSJFLD***"; / / The unique identification code serialNumber of the current smart terminal device can be empty. If it is empty, the upgrade information that meets other conditions is returned
[0100] "deviceModel":"L3891G3"; / / Current smart terminal device model
[0101] "softName":"unis****"; / / The name of the software or firmware program to be upgraded
[0102] "currVer":"A01" / / The version number of the software or firmware to be upgraded on the current smart terminal device
[0103] }
[0104] Optionally, an example of target upgrade data sent by the background server to the terminal device through the first http interface is as follows:
[0105] {
[0106] "osType":"windows11 / windows10 / kos-x86 / kos-arm64 / uos-x86 / uox-arm64 / android10 / android11 / 12 / 13";
[0107] "SN":"SDFLAJDFLSJFLD***"; / / The unique identification code can be empty. If it is empty, a general upgrade solution is provided. If it is not empty, a targeted upgrade solution is provided by matching the unique identification code and software type.
[0108] "softName":"unis****";
[0109] "SoftType":1; / / Type of software to be upgraded
[0110] "newVer":"A03"; / / The version to which the software needs to be upgraded
[0111] "updateConfig":"config-url" / / Upgrade configuration information request url address: When SN is empty, config-url is the request address information of the software upgrade configuration information updateConfig.json (corresponding to the general upgrade solution)
[0112] / / When not empty, returns the download address of the current upgrade package (corresponding to the targeted upgrade solution)
[0113] }
[0114] Optionally, an example of the response content obtained by the smart terminal device calling the second http interface of the background server is as follows:
[0115] updateConfig.json:
[0116] {
[0117] "softlist": / *Background configured different software upgrade list* / [
[0119] {
[0120] "SoftType":1, / / Software type
[0121] "A01": [
[0123] {
[0124] "newVer":"A02"; the upgrade configuration information of the software with SoftType=1 from version A01 to A02
[0125] "updatePath":"A02-url"; / / Upgrade to A02 version upgrade sequence
[0126] "A02-url":"download-url" / / The download address of the software upgrade package configured in updatePath
[0127] },
[0128] {
[0129] "newVer":"A03";
[0130] "updatePath":"A02-url,A03-url";
[0131] "A02-url":"download-url";
[0132] "A03-url":"download-url"
[0133] },
[0134] {
[0135] "newVer":"A04";
[0136] "updatePath":"A02-url,A03-url,A04-url";
[0137] "A02-url":"download-url";
[0138] "A03-url":"download-url";
[0139] "A04-url":"download-url"
[0140] },
[0141] {
[0142] "newVer":"A05"; / / upgrade configuration information of software with SoftType=1 from version A01 to A05
[0143] "updatePath":"A02-url,A03-url,A04-url,A05-url"; / / Upgrade sequence when upgrading from A01 to A05 version
[0144] "A02-url":"download-url"; / / Corresponding to the download address of the A02-url upgrade package in updatePath
[0145] "A03-url":"download-url"; / / Corresponding to the download address of the A03-url upgrade package in updatePath
[0146] "A04-url":"download-url"; / / Corresponding to the download address of the A04-url upgrade package in updatePath
[0147] "A05-url":"download-url" / / Corresponding to the download address of the A05-url upgrade package in updatePath
[0148] }
[0149] ],
[0150] "A02": [
[0152] {
[0153] "newVer":"A03"; / / upgrade configuration information of software with SoftType=1 from version A02 to A03
[0154] "updatePath":"A03-url";
[0155] "A03-url":"download-url"
[0156] },
[0157] {
[0158] "newVer":"A04"; / / upgrade configuration information of software with SoftType=1 from version A02 to A04
[0159] "updatePath":"A03-url,A04-url";
[0160] "A03-url":"download-url";
[0161] "A04-url":"download-url"
[0162] },
[0163] {
[0164] "newVer":"A05"; / / upgrade configuration information of software with SoftType=1 from version A02 to A05
[0165] "updatePath":"A03-url,A04-url,A05-url";
[0166] "A03-url":"download-url";
[0167] "A04-url":"download-url";
[0168] "A05-url":"download-url"
[0169] }
[0170] ],
[0171] "A03": [
[0173] {
[0174] "newVer":"A04";
[0175] "updatePath":"A04-url";
[0176] "A04-url":"download-url"
[0177] },
[0178] {
[0179] "newVer":"A05";
[0180] "updatePath":"A04-url,A05-url";
[0181] "A04-url":"download-url";
[0182] "A05-url":"download-url"
[0183] }
[0184] ],
[0185] "A04": [
[0187] {
[0188] "newVer":"A05";
[0189] "updatePath":"A05-url";
[0190] "A05-url":"download-url"
[0191] }
[0192] ],
[0193] },
[0194] {
[0195] "SoftType":2,
[0196] "B01":[],
[0197] "B02":[],
[0198] },
[0199] {
[0200] "SoftType":3,
[0201] "C01":[],
[0202] "C02":[],
[0203] "C03":[]
[0204] }, ]
[0206] }
[0207] The steps for software upgrade in this embodiment are as follows:
[0208] S1: Add each self-developed software to the web page provided by the background server according to the platform architecture x86 / arm64, operating system, software name, and software type, and generate a matching table of software name, software type, operating system, and system architecture.
[0209] S2: Configure the general upgrade plan for each software through the Web page, and upload the software type, software name, operating system, platform architecture, new version number, configuration upgrade path, and upgrade packages that the upgrade path depends on to the background server in sequence.
[0210] S3: Configure the targeted upgrade plan corresponding to the unique identification code through the Web page, and configure the upgrade strategy according to the device SN, device model, operating system and software type.
[0211] S4: The software to be upgraded in the smart terminal device calls the software upgrade program C_update, firstly detects whether there is a new version based on the first http interface, and then the software upgrade program determines the upgrade information type based on the information returned by the first http interface to determine whether to select a general upgrade solution or a targeted upgrade solution.
[0212] S5: If it is a directional upgrade solution, directly download the new version upgrade package download address config-url returned by the first http interface, download the new version upgrade package, and install it.
[0213] S6: If it is a general upgrade solution, request the second http interface according to the config-url returned by the first http interface to obtain the upgrade configuration information updateConfig.json;
[0214] S7: The software upgrade program C_update determines the upgrade path updatePath according to the content of the upgrade configuration information updateConfig.json, the software version information of the current device, and the software type, downloads the upgrade packages that the upgrade path depends on according to the upgrade path, and installs the upgrade packages in sequence according to the upgrade path to complete the software upgrade.
[0215] In the present embodiment, a terminal software upgrade device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0216] This embodiment provides a terminal software upgrade device, which is executed by an intelligent terminal device, such as Figure 5 As shown, including:
[0217] The information acquisition module 501 is used to acquire the software information to be upgraded and the device information of the intelligent terminal device;
[0218] The information sending module 502 is used to send the software information to be upgraded and the device information of the intelligent terminal device to the background server, so that the background server selects the upgrade information type according to the device information of the intelligent terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address;
[0219] The software upgrade module 503 is used to receive target upgrade data and perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0220] In an optional implementation, when the upgrade information type is a general upgrade configuration, the software upgrade module is further used to: parse the target upgrade data to obtain an upgrade configuration request address; call an upgrade configuration interface to the background server based on the upgrade configuration request address; receive the upgrade path returned by the upgrade configuration interface and each upgrade package address corresponding to the upgrade path; download each upgrade package through each upgrade package address, and perform installation operations on each upgrade package in sequence according to the upgrade path.
[0221] In an optional implementation, when the upgrade information type is a directed upgrade address, the software upgrade module is further used to: parse the target upgrade data to obtain directed upgrade address information; download the upgrade package through the directed upgrade address information, and perform an installation operation.
[0222] This embodiment provides a terminal software upgrade device, which is executed by a background server, such as Figure 6 As shown, including:
[0223] The information receiving module 601 is used to receive the software information to be upgraded and the device information of the smart terminal device sent by the smart terminal device;
[0224] The data generation module 602 is used to select the upgrade information type according to the device information of the intelligent terminal device, and generate target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address;
[0225] The data sending module 603 is used to send the target upgrade data to the smart terminal device, so that the smart terminal device can perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
[0226] In an optional implementation, the device further includes an update module, which is used to: receive update information of the target software; and based on the update information of the target software, generate and store an upgrade information type corresponding to the target software.
[0227] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0228] The terminal software upgrade device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0229] The embodiment of the present invention also provides a computer device having the above Figure 5 or Figure 6 The terminal software upgrade device shown.
[0230] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0231] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0232] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0233] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0234] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0235] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0236] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0237] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0238] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0239] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations shall all fall within the scope of protection of the present invention.
Claims
1. A terminal software upgrade method, characterized in that: The method is performed by an intelligent terminal device and includes: Obtaining information about the software to be upgraded and device information of the smart terminal device; Sending the software information to be upgraded and the device information of the smart terminal device to a backend server, so that the backend server selects an upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address; The target upgrade data is received, and a software upgrade operation is performed on the software to be upgraded according to the target upgrade data.
2. The method according to claim 1, characterized in that: When the upgrade information type is a general upgrade configuration, performing a software upgrade operation on the software to be upgraded according to the target upgrade data includes: Parsing the target upgrade data to obtain an upgrade configuration request address; Calling an upgrade configuration interface to the backend server based on the upgrade configuration request address; Receive the upgrade path returned by the upgrade configuration interface and the addresses of each upgrade package corresponding to the upgrade path; Each upgrade package is downloaded through the respective upgrade package addresses, and installation operations are performed on each upgrade package in sequence according to the upgrade path.
3. The method according to claim 2, characterized in that When the upgrade information type is a directional upgrade address, performing a software upgrade operation on the software to be upgraded according to the target upgrade data includes: Parsing the target upgrade data to obtain targeted upgrade address information; The upgrade package is downloaded through the directed upgrade address information, and the installation operation is performed.
4. A terminal software upgrade method, characterized in that: Executed by a backend server, the method includes: Receiving software information to be upgraded and device information of the smart terminal device sent by the smart terminal device; Selecting an upgrade information type according to the device information of the smart terminal device, and generating target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address; The target upgrade data is sent to the smart terminal device, so that the smart terminal device performs a software upgrade operation on the software to be upgraded according to the target upgrade data.
5. The method according to claim 4, characterized in that The method further comprises: Receive update information of target software; Based on the update information of the target software, an upgrade information type corresponding to the target software is generated and stored.
6. A terminal software upgrade device, characterized in that: Executed by an intelligent terminal device, the device includes: An information acquisition module, used to acquire the software information to be upgraded and the device information of the smart terminal device; An information sending module, used to send the software information to be upgraded and the device information of the smart terminal device to a background server, so that the background server selects an upgrade information type according to the device information of the smart terminal device, and generates target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address; The software upgrade module is used to receive the target upgrade data and perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
7. A terminal software upgrade device, characterized in that: Executed by a backend server, the device includes: An information receiving module, used to receive the software information to be upgraded sent by the smart terminal device and the device information of the smart terminal device; A data generation module, configured to select an upgrade information type according to the device information of the intelligent terminal device, and generate target upgrade data according to the upgrade information type and the software information to be upgraded; the upgrade information type includes at least one of a general upgrade configuration and a directional upgrade address; The data sending module is used to send the target upgrade data to the smart terminal device, so that the smart terminal device can perform a software upgrade operation on the software to be upgraded according to the target upgrade data.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the terminal software upgrade method according to any one of claims 1 to 5 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the terminal software upgrading method according to any one of claims 1 to 5.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the terminal software upgrading method according to any one of claims 1 to 5.