Upgrading method, device, electronic device and storage medium

By caching software and upgrading content with cached content when necessary, the problem of resource consumption and transmission resource waste in the existing technology is solved, and more efficient resource utilization is achieved.

CN113934440BActive Publication Date: 2025-03-18BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010607309.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2025-03-18
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

In the prior art, the server needs to issue upgrade content every time during the software upgrade process, resulting in resource consumption and waste of transmission resources.

Method used

通过缓存升级任务的第一升级内容,并向第二电子设备发送升级请求,携带任务标识和时间戳。接收响应消息,如果包含指示信息,则使用缓存的升级内容进行升级,减少服务器下发升级内容的需求。

Benefits of technology

The resource consumption of the second electronic device is saved, the resource utilization rate is improved, and the waste of transmission resources between the first electronic device and the second electronic device is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934440B_ABST
    Figure CN113934440B_ABST
Patent Text Reader

Abstract

The present application discloses an upgrade method, device, electronic device and storage medium, and relates to the field of data security technology. The specific implementation scheme is: cache the first upgrade content of the upgrade task; send an upgrade request to the second electronic device, the upgrade request carries the task identifier of the upgrade task, and the timestamp corresponding to the first upgrade content; receive a response message to the upgrade request returned by the second electronic device; when the response message includes indication information, the indication information is used to indicate the use of the first upgrade content for the upgrade, and the first upgrade content is used for the upgrade operation. The present application saves the resource consumption of the second electronic device to improve the resource utilization of the second electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data security technology in the field of computer technology, and in particular to an upgrade method, device, electronic device and storage medium. Background Art

[0002] With the development of computer technology and Internet technology, more and more electronic devices support software installation, such as smart home devices, smart mobile devices, smart wearable devices, smart car networking devices, smart robots, etc. In actual application, these electronic devices often need to upgrade software, such as APP upgrades. However, currently, the server needs to send the upgrade content every time during the software upgrade. Summary of the invention

[0003] The present disclosure provides an upgrading method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, there is provided an upgrading method, which is applied to a first electronic device, comprising:

[0005] The first upgrade content of the cache upgrade task;

[0006] Sending an upgrade request to the second electronic device, wherein the upgrade request carries a task identifier of the upgrade task and a timestamp corresponding to the first upgrade content;

[0007] receiving a response message of the upgrade request returned by the second electronic device;

[0008] In a case where the response message includes indication information, where the indication information is used to indicate to use the first upgrade content for upgrading, the first upgrade content is used for performing an upgrade operation.

[0009] According to another aspect of the present disclosure, there is provided an upgrading method, which is applied to a second electronic device, comprising:

[0010] Receiving an upgrade request sent by a first electronic device, the upgrade request carrying a task identifier of an upgrade task and a timestamp corresponding to a first upgrade content, and the first upgrade content is a first upgrade content of the upgrade task cached by the first electronic device;

[0011] Returning a response message of the upgrade request to the first electronic device;

[0012] Wherein, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes indication information, and the indication information is used to indicate the use of the first upgrade content for upgrading.

[0013] According to another aspect of the present disclosure, there is provided an upgrading device, applied to a first electronic device, comprising:

[0014] A cache module, used for caching the first upgrade content of the upgrade task;

[0015] A request module, configured to send an upgrade request to the second electronic device, wherein the upgrade request carries a task identifier of the upgrade task and a timestamp corresponding to the first upgrade content;

[0016] A receiving module, configured to receive a response message of the upgrade request returned by the second electronic device;

[0017] The first upgrade module is configured to use the first upgrade content to perform an upgrade operation when the response message includes indication information, and the indication information is used to indicate that the first upgrade content is to be used for the upgrade.

[0018] According to another aspect of the present disclosure, there is provided an upgrading device, applied to a second electronic device, comprising:

[0019] A receiving module, configured to receive an upgrade request sent by a first electronic device, wherein the upgrade request carries a task identifier of an upgrade task and a timestamp corresponding to a first upgrade content, and the first upgrade content is a first upgrade content of the upgrade task cached by the first electronic device;

[0020] A returning module, configured to return a response message of the upgrade request to the first electronic device;

[0021] Wherein, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes indication information, and the indication information is used to indicate the use of the first upgrade content for upgrading.

[0022] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0023] at least one processor; and

[0024] a memory communicatively connected to the at least one processor; wherein,

[0025] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method provided by the present disclosure.

[0026] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method provided by the present disclosure.

[0027] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the method provided by the embodiment of the present invention when executed by a processor.

[0028] According to the technical solution of the present application, resource consumption of the second electronic device is saved to improve resource utilization of the second electronic device.

[0029] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0031] Figure 1 is a flow chart of an upgrade method provided by this application;

[0032] Figure 2 It is a schematic diagram of an upgrade provided by this application;

[0033] Figure 3 is a flow chart of an upgrade method provided by this application;

[0034] Figure 4 It is a structural diagram of an upgrading device provided by the present application;

[0035] Figure 5 It is a structural diagram of an upgrading device provided by the present application;

[0036] Figure 6 It is a structural diagram of an upgrading device provided by the present application;

[0037] Figure 7 It is a block diagram of an electronic device used to implement the upgrading method of the embodiment of the present application. DETAILED DESCRIPTION

[0038] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0039] See also Figure 1 , Figure 1 This is a flowchart of an upgrade method provided by this application, such as Figure 1As shown, the method is applied to a first electronic device, and the method comprises the following steps:

[0040] Step S101: Cache the first upgrade content of the upgrade task.

[0041] Among them, the above-mentioned first electronic device can be a smart home device, such as a smart TV, a smart camera, a smart speaker, a smart air conditioner, a smart door lock, etc., or the above-mentioned first electronic device can be a smart mobile device, such as a mobile phone, a tablet computer, etc., or the above-mentioned first electronic device can be a smart wearable device, such as a smart watch, a smart bracelet, etc., or the above-mentioned first electronic device can be a smart Internet of Vehicles device, such as a smart car machine, a smart rearview mirror, etc., or the above-mentioned first electronic device can be a smart robot, such as an early education robot, a companion robot, a security robot, etc.

[0042] The above-mentioned upgrade task may be an upgrade task of an operating system or an APP installed on an electronic device, and the upgrade task may be an upgrade task for upgrading requirements such as updating, function iteration, and repairing functions.

[0043] The first upgrade content may be a related upgrade data package for the upgrade task.

[0044] The first upgrade content of the above-mentioned cache upgrade task may be that after the terminal receives the upgrade content sent by the second electronic device, it does not perform the upgrade operation due to some reasons, and then caches the above-mentioned first upgrade content, for example: the first upgrade content is not used for the upgrade operation due to reasons such as the first electronic device or the user of the first electronic device.

[0045] The second electronic device may be a server, or other electronic devices used to send upgrade content.

[0046] Step S102: sending an upgrade request to the second electronic device, wherein the upgrade request carries a task identifier of the upgrade task and a timestamp corresponding to the first upgrade content.

[0047] The sending of the upgrade request to the second electronic device may be that after caching the first upgrade content, the first electronic device sends the upgrade request proactively or at the request of the second electronic device. The second electronic device may be a server or other electronic device that publishes upgrade content.

[0048] In the present application, each upgrade task corresponds to a unique task identifier, so that after the second electronic device receives the upgrade request, the upgrade task of the first electronic device can be accurately determined through the task identifier.

[0049] In addition, in this application, different upgrade contents of the same upgrade task correspond to different timestamps, so as to determine whether the upgrade content of the upgrade task has changed by the timestamp. Therefore, the timestamp in this application can also be understood as the modification timestamp of the upgrade task.

[0050] In the present application, the upgrade request may be an Over-the-Air Technology (OTA) upgrade request, that is, the upgrade in the present application may be performed in an OTA manner.

[0051] Step S103: receiving a response message of the upgrade request returned by the second electronic device.

[0052] When the second electronic device receives the upgrade request, it determines the upgrade task of the first electronic device through the task identifier, and determines whether the upgrade content of the first electronic device for the upgrade task needs to be updated through the timestamp.

[0053] Step S104: When the response message includes indication information, and the indication information is used to indicate to use the first upgrade content for upgrading, use the first upgrade content for upgrading.

[0054] In the present application, when the second electronic device determines through the timestamp that it is not necessary to update the upgrade content of the upgrade task of the first electronic device, the response message sent by the second electronic device includes the instruction information to instruct the first electronic device to use the first upgrade content for the upgrade. The second electronic device determines through the timestamp that it is not necessary to update the upgrade content of the upgrade task of the first electronic device, which may be that the second electronic device determines that the timestamp of the upgrade task has not changed relative to the timestamp in the upgrade request, that is, the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request.

[0055] In the present application, the above steps can be used to achieve that during the upgrade process of the first electronic device, the second electronic device can only send instruction information instead of sending upgrade content, thereby saving resource consumption of the second electronic device, improving resource utilization of the second electronic device, and saving transmission resources between the first electronic device and the second electronic device.

[0056] As an optional implementation, the method further includes:

[0057] In the case that the response message includes the second upgrade content, the upgrade operation is performed using the second upgrade content, and the timestamp corresponding to the second upgrade content is different from the timestamp corresponding to the first upgrade content.

[0058] The second upgrade content is the upgrade content of the upgrade task currently used by the second electronic device, or is called the latest upgrade content of the upgrade task acquired by the second electronic device.

[0059] The response message including the second upgrade content may be that, when the second electronic device determines that the timestamp of the upgrade task has changed relative to the timestamp in the upgrade request, the second electronic device sends a response message including the second upgrade content to the first electronic device. That is, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes the second upgrade content. In this way, the latest upgrade content of the upgrade task can be sent to the first electronic device.

[0060] The timestamp corresponding to the second upgraded content is different from the timestamp corresponding to the first upgraded content, which means that the timestamp corresponding to the second upgraded content indicates a later time than the timestamp corresponding to the first upgraded content.

[0061] In this implementation, since the upgrade operation is performed using the second upgrade content, the upgrade can be performed according to the upgrade content indicated by the second electronic device, such as upgrading to the latest software version supported by the second electronic device, so as to improve the upgrade performance of the electronic device.

[0062] Furthermore, in this implementation, the second upgrade content may be sent only when the second electronic device determines that the timestamp of the upgrade task has changed relative to the timestamp in the upgrade request, so as to reduce the processing pressure of the second electronic device.

[0063] Taking OTA upgrade as an example, when the second electronic device receives the OTA upgrade request sent by the first electronic device, it checks whether the modification timestamp of the above-mentioned upgrade task cached by the first electronic device has changed. If there is no change, there is no need to update the OTA upgrade content and it returns directly. The OTA upgrade content is only sent when the modification timestamp of the upgrade task has changed, thereby reducing the processing pressure on the server.

[0064] As an optional implementation, the second upgrade content includes updated content of the first part of the first upgrade content, and the use of the second upgrade content to perform an upgrade operation includes: using the updated content and the second part of the first upgrade content to perform an upgrade operation.

[0065] The first part of the content may be one or more of the functions to be upgraded among the multiple functions to be upgraded corresponding to the first upgrade content. For example, the first upgrade content corresponds to three functions of a certain APP, and one of the three functions is upgraded again based on the first upgrade content, so the update content may be the upgrade content corresponding to the function, so that the first electronic device uses the update content to upgrade one function, and uses the second part of the first upgrade content to upgrade the other two functions.

[0066] In this implementation manner, since the update content and the second part of the first upgrade content are used to perform the upgrade operation, the overhead of the response message can be saved.

[0067] Furthermore, the second upgrade content may be obtained by the second electronic device through policy matching to match the first electronic device, wherein the policy matching may be at least one match of device ID, region, time, network type, etc.

[0068] Of course, the present application does not limit the manner of using the updated content and the second part of the first upgrade content to perform upgrade operations. For example, the second upgrade content may cover all the content of the first upgrade content, thereby directly using the second upgrade content to perform upgrade operations. Alternatively, the second upgrade content may also include new content relative to the first upgrade content, so that the new content and the first upgrade content may be used to perform upgrade operations.

[0069] As an optional implementation manner, sending the upgrade request to the second electronic device includes:

[0070] When the polling period is reached, the upgrade request is sent to the second electronic device.

[0071] The polling period may be a period or time at which the second electronic device periodically sends an upgrade inquiry to the first electronic device. Of course, the upgrade inquiry is not limited to being sent periodically, and may also be sent when the first electronic device is detected to be using the software to be upgraded.

[0072] In this implementation, it is possible to send the upgrade request to the second electronic device only when the polling cycle is reached, thereby avoiding the first electronic device from frequently sending upgrade requests, which results in a waste of resources. For example, after the second electronic device sends the first upgrade content of the upgrade task to the first electronic device, it is not upgraded due to the first electronic device. At this time, it is necessary to wait for the next polling cycle, and send the upgrade request to the second electronic device when the polling cycle is reached.

[0073] Of course, the present application does not limit the sending of the upgrade request to the second electronic device when the polling period is reached. For example, the upgrade request may also be sent according to the user's input operation.

[0074] Furthermore, in the present application, the upgrade operation of the first electronic device may be performed when an upgrade opportunity is met, wherein the upgrade opportunity is a time when the first electronic device allows or is convenient for upgrading, for example: it is convenient to upgrade when the user is not using the APP or playing games, then this time is the upgrade opportunity, anyway, it is not convenient to upgrade when the user is using the APP or playing games.

[0075] For example: Figure 2 As shown, in cycle one, the terminal sends a request for OTA upgrade, that is, requests OTA upgrade. After receiving the request, the front end performs OTA policy matching to obtain the upgrade content and sends it to the terminal. However, the terminal does not meet the upgrade timing in cycle one, so the OTA upgrade is not performed and the result is cached. In cycle two, the terminal sends a request for OTA upgrade. After receiving the request, the front end determines whether the timestamp has changed. If there is a change, OTA policy matching is performed and the updated content is sent down. If there is no change, policy matching is not performed to avoid increasing the load pressure on the server. Similarly, in cycle three, policy matching and updated content are only performed if the timestamp changes.

[0076] It should be noted that Figure 2 The first electronic device is taken as a terminal and the second electronic device is taken as a front end for illustration.

[0077] pass Figure 2 It can be realized that if the terminal caches the upgraded content, determining whether the cached timestamp has changed is a lightweight operation, which can greatly reduce the pressure on the second electronic device's policy matching logic.

[0078] In the embodiment of the present application, the first upgrade content of the upgrade task is cached; an upgrade request is sent to the second electronic device, the upgrade request carries the task identifier of the upgrade task and the timestamp corresponding to the first upgrade content; a response message of the upgrade request returned by the second electronic device is received; and when the response message includes indication information, the indication information is used to indicate that the first upgrade content is used for the upgrade, the first upgrade content is used for the upgrade operation. In this way, during the upgrade process of the first electronic device, the second electronic device can only send the indication information but not the upgrade content, thereby saving the resource consumption of the electronic device and saving the transmission resources between the first electronic device and the second electronic device.

[0079] See also Figure 3 , Figure 3is a flow chart of another upgrading method provided in an embodiment of the present application, the method is applied to a second electronic device, such as Figure 3 As shown, the following steps are included:

[0080] Step S301: receiving an upgrade request sent by a first electronic device, wherein the upgrade request carries a task identifier of an upgrade task and a timestamp corresponding to a first upgrade content, and the first upgrade content is the first upgrade content of the upgrade task cached by the first electronic device;

[0081] Step S301: Returning a response message of the upgrade request to the first electronic device;

[0082] Wherein, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes indication information, and the indication information is used to indicate the use of the first upgrade content for upgrading.

[0083] Optionally, when the timestamp corresponding to the upgrade content of the upgrade task used by the second electronic device is different from the timestamp in the upgrade request, the response message includes second upgrade content, and the second upgrade content is the upgrade content of the upgrade task currently used by the second electronic device.

[0084] Optionally, the second upgraded content includes updated content of the first part of the first upgraded content.

[0085] It should be noted that in this embodiment Figure 1 The specific technical solution of the second electronic device corresponding to the embodiment shown in the figure, the specific implementation process and beneficial effects of this embodiment can be found in Figure 1 The corresponding description of the illustrated embodiment is not repeated here.

[0086] See also Figure 4 , Figure 4 is a structural diagram of an upgrading device provided in an embodiment of the present application, and the device is applied to a first electronic device, such as Figure 4 As shown, the upgrading device 400 includes:

[0087] A cache module 401, used for caching the first upgrade content of the upgrade task;

[0088] The request module 402 is configured to send an upgrade request to the second electronic device, wherein the upgrade request carries a task identifier of the upgrade task and a timestamp corresponding to the first upgrade content;

[0089] The receiving module 403 is used to receive a response message of the upgrade request returned by the second electronic device;

[0090] The first upgrade module 404 is configured to perform an upgrade operation using the first upgrade content when the response message includes indication information, and the indication information is used to indicate that the first upgrade content is used for upgrading.

[0091] Optional, such as Figure 5 As shown, the device also includes:

[0092] The second upgrade module 405 is configured to perform an upgrade operation using second upgrade content when the response message includes the second upgrade content, and a timestamp corresponding to the second upgrade content is different from a timestamp corresponding to the first upgrade content.

[0093] Optionally, the second upgrade content includes updated content of a first portion of the first upgrade content, and the second upgrade module 405 is configured to perform an upgrade operation using the updated content and the second portion of the first upgrade content.

[0094] Optionally, the request module 402 is configured to send the upgrade request to the second electronic device when the polling period is reached.

[0095] The device provided in this embodiment can realize the Figure 1 The various processes implemented in the method embodiment shown can achieve the same beneficial effects, and will not be described again here to avoid repetition.

[0096] See also Figure 6 , Figure 6 is a structural diagram of another upgrading device provided in an embodiment of the present application, the device is applied to a second electronic device, such as Figure 6 As shown, the upgrading device 600 includes:

[0097] The receiving module 601 is used to receive an upgrade request sent by a first electronic device, wherein the upgrade request carries a task identifier of an upgrade task and a timestamp corresponding to a first upgrade content, and the first upgrade content is a first upgrade content of the upgrade task cached by the first electronic device;

[0098] A returning module 602 is used to return a response message of the upgrade request to the first electronic device;

[0099] Wherein, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes indication information, and the indication information is used to indicate the use of the first upgrade content for upgrading.

[0100] Optionally, when the timestamp corresponding to the upgrade content of the upgrade task used by the second electronic device is different from the timestamp in the upgrade request, the response message includes second upgrade content, and the second upgrade content is the upgrade content of the upgrade task currently used by the second electronic device.

[0101] Optionally, the second upgraded content includes updated content of the first part of the first upgraded content.

[0102] The device provided in this embodiment can realize the Figure 3 The various processes implemented in the method embodiment shown can achieve the same beneficial effects, and will not be described again here to avoid repetition.

[0103] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0104] like Figure 7 , is a block diagram of an electronic device according to an upgrade method of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0105] like Figure 7 As shown, the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic 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 other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic 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 701 is taken as an example.

[0106] The memory 702 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor, so that the at least one processor executes the instructions provided in the present application. Figure 1 or Figure 3 The upgrade method in the illustrated embodiment. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the upgrade method provided by the present application.

[0107] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the upgrade method in the embodiment of the present application (for example, the attached Figure 4 The cache module 401, the request module 402, the request module 403 and the first upgrade module 404 shown in the figure, or Figure 6 The processor 701 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 702, that is, realizing Figure 1 or Figure 3 The upgrade method in the method embodiment shown.

[0108] The memory 702 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 electronic device of the upgrade method, etc. In addition, the memory Y02 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 embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device of the upgrade method 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.

[0109] The electronic device of the upgrade method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0110] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device of the upgrade method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 704 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 display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0111] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0113] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0114] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0115] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0116] The present disclosure provides a computer program product, including a computer program, which implements the method provided by an embodiment of the present invention when executed by a processor.

[0117] According to the technical solution of the present application, since the second electronic device can only send instruction information instead of upgrading content during the upgrading process of the first electronic device, the resource consumption of the second electronic device can be saved to improve the resource utilization of the second electronic device, and the transmission resources between the first electronic device and the second electronic device can be saved.

[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0119] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. An upgrading method, applied to a first electronic device, comprising: The first upgrade content of the cache upgrade task; Sending an upgrade request to the second electronic device, wherein the upgrade request carries a task identifier of the upgrade task and a timestamp corresponding to the first upgrade content; receiving a response message of the upgrade request returned by the second electronic device; In the case where the response message includes indication information, the indication information is used to indicate that the first upgrade content is used for upgrading, and the first upgrade content is used for upgrading when the upgrade timing is met, wherein the response message including the indication information is sent when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, and the response message does not include the upgrade content; In the case that the response message includes second upgrade content, the second upgrade content is used to perform an upgrade operation when the upgrade timing is met, and the timestamp corresponding to the second upgrade content is different from the timestamp corresponding to the first upgrade content; wherein the second upgrade content includes updated content of a first part of the first upgrade content, and the first part of the content is obtained by matching at least one of the region and network type of the first electronic device, and the use of the second upgrade content to perform an upgrade operation includes: using the updated content and the second part of the first upgrade content to perform an upgrade operation.

2. The method of claim 1, wherein: The sending the upgrade request to the second electronic device includes: When the polling period is reached, the upgrade request is sent to the second electronic device.

3. An upgrading method, applied to a second electronic device, comprising: Receiving an upgrade request sent by a first electronic device, the upgrade request carrying a task identifier of an upgrade task and a timestamp corresponding to a first upgrade content, and the first upgrade content is a first upgrade content of the upgrade task cached by the first electronic device; Returning a response message of the upgrade request to the first electronic device; Wherein, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes indication information, the indication information is used to indicate to use the first upgrade content for upgrading, and the response message does not include the upgrade content; When the timestamp corresponding to the upgrade content of the upgrade task used by the second electronic device is different from the timestamp in the upgrade request, the response message includes second upgrade content, and the second upgrade content is the upgrade content of the upgrade task currently used by the second electronic device; wherein the second upgrade content includes updated content of the first part of the first upgrade content, and the first part of the content is matched based on at least one of the region and network type of the first electronic device.

4. An upgrading device, applied to a first electronic device, comprising: A cache module, used for caching the first upgrade content of the upgrade task; A request module, configured to send an upgrade request to the second electronic device, wherein the upgrade request carries a task identifier of the upgrade task and a timestamp corresponding to the first upgrade content; A receiving module, configured to receive a response message of the upgrade request returned by the second electronic device; A first upgrade module, configured to, when the response message includes indication information, the indication information is used to indicate to use the first upgrade content for upgrading, use the first upgrade content for upgrading when the upgrade opportunity is met, wherein the response message includes the indication information is sent when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, and the response message does not include the upgrade content; A second upgrade module is used to use the second upgrade content to perform an upgrade operation when the response message includes the second upgrade content and the upgrade opportunity is met, and the timestamp corresponding to the second upgrade content is different from the timestamp corresponding to the first upgrade content; wherein the second upgrade content includes updated content of a first part of the first upgrade content, the first part of the content is obtained by matching at least one of the region and network type of the first electronic device, and the second upgrade module is used to use the updated content and the second part of the first upgrade content to perform an upgrade operation.

5. The device according to claim 4, wherein: The request module is used for sending the upgrade request to the second electronic device when the polling period is reached.

6. An upgrading device, applied to a second electronic device, comprising: A receiving module, configured to receive an upgrade request sent by a first electronic device, wherein the upgrade request carries a task identifier of an upgrade task and a timestamp corresponding to a first upgrade content, and the first upgrade content is a first upgrade content of the upgrade task cached by the first electronic device; A returning module, configured to return a response message of the upgrade request to the first electronic device; Wherein, when the timestamp corresponding to the upgrade content of the upgrade task currently used by the second electronic device is the same as the timestamp in the upgrade request, the response message includes indication information, the indication information is used to indicate to use the first upgrade content for upgrading, and the response message does not include the upgrade content; When the timestamp corresponding to the upgrade content of the upgrade task used by the second electronic device is different from the timestamp in the upgrade request, the response message includes second upgrade content, and the second upgrade content is the upgrade content of the upgrade task currently used by the second electronic device; wherein the second upgrade content includes updated content of the first part of the first upgrade content, and the first part of the content is matched based on at least one of the region and network type of the first electronic device.

7. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 3.

9. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Data processing method, server and client

    CN104834537A