CN112416400B - Program update control method, program update control device, computer device, and storage medium - Google Patents

Program update control method, program update control device, computer device, and storage medium Download PDF

Info

Publication number
CN112416400B
CN112416400B CN202011322928.3A CN202011322928A CN112416400B CN 112416400 B CN112416400 B CN 112416400B CN 202011322928 A CN202011322928 A CN 202011322928A CN 112416400 B CN112416400 B CN 112416400B
Authority
CN
China
Prior art keywords
program
update
updating
version
target device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011322928.3A
Other languages
Chinese (zh)
Other versions
CN112416400A (en
Inventor
黎桂先
刘旭杰
林桂清
董小林
宋海川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011322928.3A priority Critical patent/CN112416400B/en
Publication of CN112416400A publication Critical patent/CN112416400A/en
Application granted granted Critical
Publication of CN112416400B publication Critical patent/CN112416400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a program update control method, a program update control device, a computer device and a storage medium. The method comprises the following steps: responding to the updating request, and determining target equipment and an updating program version corresponding to the updating request; and when the updating program corresponding to the updating program version is stored in the storage area of the target equipment, sending an updating instruction to the target equipment, wherein the updating instruction carries the updating program version, so that the target equipment is updated based on the updating program. By adopting the method, the resource waste caused by sending the repeated program can be reduced.

Description

Program update control method, program update control device, computer apparatus, and storage medium
Technical Field
The present application relates to the field of program update technologies, and in particular, to a program update control method and apparatus, a computer device, and a storage medium.
Background
Related programs can be burned in equipment (such as products of a water heater, an air conditioner and the like) before leaving a factory, and with the continuous updating of the functional requirements of a product by a user, functions of the product can be increased after sale, so that the programs of the product need to be burned again. At present, program updating is carried out on equipment by equipment maintenance personnel through a remote updating control system, remote data updating is realized by a control Integrated Circuit (IC) in an equipment control mainboard through a Data Terminal Unit (DTU) module, and field burning of the equipment maintenance personnel is not needed so as to reduce after-sale service cost.
After the device maintenance personnel update the device program, if the updated program is found to be unsuitable for the device operation, the device maintenance personnel may need to return to the previous program version, however, through the current remote update control system, the device maintenance personnel need to resend the program corresponding to the previous version to the device, which wastes network transmission resources.
Disclosure of Invention
In view of the above, it is desirable to provide a program update control method, apparatus, computer device, and storage medium capable of reducing resource waste in view of the above technical problems.
A program update control method, the method comprising:
responding to an update request, and determining a target device and an update program version corresponding to the update request;
and when the updating program corresponding to the updating program version is stored in the storage area of the target equipment, sending an updating instruction to the target equipment, wherein the updating instruction carries the updating program version, so that the target equipment is updated based on the updating program.
A program update control apparatus, the apparatus comprising:
the response module is used for responding to the update request, and determining the target equipment and the update program version corresponding to the update request;
and the control module is used for sending an update instruction to the target equipment when the update program corresponding to the update program version is stored in the storage area of the target equipment, wherein the update instruction carries the update program version, so that the target equipment is updated based on the update program.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
responding to an update request, and determining a target device and an update program version corresponding to the update request;
and when the updating program corresponding to the updating program version is stored in the storage area of the target equipment, sending an updating instruction to the target equipment, wherein the updating instruction carries the updating program version, so that the target equipment is updated based on the updating program.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
responding to an update request, and determining a target device and an update program version corresponding to the update request;
and when the updating program corresponding to the updating program version is stored in the storage area of the target equipment, sending an updating instruction to the target equipment, wherein the updating instruction carries the updating program version, so that the target equipment is updated based on the updating program.
The program update control method, the program update control device, the computer device and the storage medium respond to the update request, determine the target device corresponding to the update request and the update program version, and send the update instruction to the target device when the update program corresponding to the update program version is stored in the storage area of the target device, wherein the update instruction carries the update program version, so that the target device is updated based on the update program. When the program version needs to be returned to a program version which is updated before, if the program version is stored in the storage area of the target device, only the updating instruction needs to be sent, and the program version does not need to be sent to the target device again, so that the frequency of sending repeated programs is reduced, and the waste of resources is reduced.
Drawings
FIG. 1 is a diagram of an application environment of a program update control method according to an embodiment;
FIG. 2 is a flowchart illustrating a program update control method according to an embodiment;
FIG. 3 is a block diagram showing the structure of a program update control apparatus according to an embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The program update control method provided by the application can be applied to the application environment shown in fig. 1. The application environment involves a terminal 102, a server 104, and a device 106, wherein the terminal 102 and the device 106 communicate with the server 104 over a network, respectively. The terminal 102 may have a version control system installed thereon, and the server 104 may be the server where the version control system is located, and the version control system may bind one or more devices 106. After logging in the version control system through the terminal 102, the device maintainer may send an update instruction to the bound device 106 through the version control system to control the device 106 to perform program update, and may also check the current program version and the program update record of the device 106 through the version control system to obtain the latest information of the device 106 in real time. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers. The program update control method in the embodiment of the present application may be executed by the server 104, by the terminal 102, or by both the server 104 and the terminal 102.
In one embodiment, as shown in fig. 2, a program update control method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps S202 to S204.
S202, responding to the updating request, and determining the target device and the updating program version corresponding to the updating request.
The update request is used for requesting control of the target device to perform program update, the target device indicates a device that needs to perform program update, and the update program version indicates a version to which the program of the target device needs to be updated.
For example, the device maintainer may log in to the version control system to initiate an update request, where the update request may carry an identifier (e.g., a device ID) of the target device and an identifier (e.g., a version number or a version name) of the update program version, and after receiving the update request, the server may determine the corresponding target device and the update program version according to the identifier of the target device and the identifier of the update program version.
And S204, when the updating program corresponding to the updating program version is stored in the storage area of the target equipment, sending an updating instruction to the target equipment, wherein the updating instruction carries the updating program version, so that the target equipment is updated based on the updating program.
The target device is provided with a storage area for storing historical version programs, for example, N version programs which are updated recently can be stored, where N represents a positive integer and can be set according to actual situations. Specifically, assuming that N is set to 5, an initial version program is burned in the target device when the target device leaves the factory, the initial version program is stored in the storage area, then the target device updates the program once, the update program is stored in the storage area, when the number of program versions stored in the storage area reaches 5, then the target device updates the program once, the update program is stored in the storage area, and at the same time, the program stored first in the existing 5 version programs is deleted from the storage area, so that the 5 version programs which are updated recently by the target device are stored in the storage area.
And the server sends an updating instruction to the target equipment for instructing the target equipment to update the program. When the storage area of the target device stores the corresponding update program, it may be understood that the update program is a program that has been updated by the target device before, which means that the target device needs to rollback to a previous program version, at this time, the server only needs to send an update instruction carrying update program version information (such as a version number or a version name) to the target device, and does not need to send the update program, and after receiving the update instruction, the target device may update the program based on the corresponding update program in the storage area.
In the program update control method, in response to an update request, a target device corresponding to the update request and an update program version are determined, and when an update program corresponding to the update program version is stored in a storage area of the target device, an update instruction is sent to the target device, and the update instruction carries the update program version, so that the target device performs update based on the update program. When the program version needs to be returned to a program version which is updated before, if the program version is stored in the storage area of the target device, only the updating instruction needs to be sent, and the program version does not need to be sent to the target device again, so that the frequency of sending repeated programs is reduced, and the waste of resources is reduced.
In one embodiment, the server may further record a stored program version in the storage area of the target device, and determine that the update program corresponding to the update program version is stored in the storage area of the target device when the update program version matches the recorded stored program version.
The server communicates with the target device, and can acquire and record the version information of the stored program in the storage area of the target device in real time, and when the version information of the stored program in the storage area changes, the version information of the stored program recorded by the server changes synchronously, so that the version information of the stored program recorded by the server is consistent with the version information of the stored program in the storage area of the target device.
After determining the update program version from the update request, the server determines whether the update program version matches the recorded stored program version, specifically, whether the recorded stored program version includes the update program version is determined, and if the recorded stored program version includes the update program version, it is determined that the update program corresponding to the update program version is stored in the storage area of the target device.
In one embodiment, before sending the update instruction to the target device, the server may further include the following steps: recording the current program version of the target equipment as a program version before updating corresponding to the updating instruction; after sending the update instruction to the target device, the server may further include the following steps: and updating the recorded current program version of the target equipment according to the updating result fed back by the target equipment in response to the updating instruction.
The server communicates with the target device, and can also acquire and record the current program version of the target device in real time, before the server sends the update instruction to the target device, the current program version of the target device can be understood as the program version before update corresponding to the update instruction, and the update program version carried in the update instruction can be understood as the program version to be updated corresponding to the update instruction.
After the server sends the update instruction to the target device, the target device feeds back an update result to the server in response to the received update instruction, where the update result may include information indicating whether the target device is updated successfully. And after receiving the updating result, the server synchronously updates the recorded current program version of the target equipment according to the updating result.
In an embodiment, the step of updating the recorded current program version of the target device according to the update result fed back by the target device in response to the update instruction may specifically include the following steps: when the updating result is that the updating is successful, updating the recorded current program version of the target equipment into an updating program version; and when the updating result indicates that the updating fails, keeping the recorded current program version of the target device unchanged.
It can be understood that, if the update is successful, the current program version of the target device changes, that is, the current program version of the target device changes into the updated program version, and at this time, the current program version of the target device recorded by the server is synchronously updated into the updated program version; if the update fails, the current program version of the target device remains unchanged, that is, remains as the program version before update, and at this time, the current program version of the target device recorded by the server remains as the program version before update synchronously.
In one embodiment, after the server sends the update instruction to the target device, the method may further include the following steps: and recording the update log data of the target device, wherein the update log data comprises a program version before update, an update program version and an update result corresponding to the update instruction.
The server sends a primary updating instruction to the target equipment, the target equipment updates the program once after receiving the updating instruction, a primary updating result is fed back, and the server records the updating log data of each time of program updating of the target equipment and writes the updating log data into the database so as to be convenient for later viewing and maintenance. For any update instruction, the update log data may include a pre-update program version, an update program version, and an update result corresponding to the current update instruction, and may further include update time information and updater information. The update time information may include time when the server sends an update instruction to the target device and time when the server receives an update result fed back by the target device, and the updater information may be account information for initiating an update request.
In one embodiment, the method may further comprise the steps of: and responding to a first query request aiming at the target device, and feeding back first query response data to a sender of the first query request, wherein the first query response data comprises the current program version of the target device.
The first query request is used for requesting to view the current program version information of the target device, a device maintainer can initiate the first query request by logging in the version control system through a terminal, the terminal is used as a sender of the first query request to send the first query request to the server, and the first query request can carry an identifier (such as a device ID) of the target device. After receiving the first query request, the server may determine the corresponding target device according to the identifier of the target device, and feed back the recorded current program version information of the target device to the terminal, and the terminal may display the received current program version information of the target device for the device maintenance staff to view. Therefore, the equipment maintenance personnel can inquire the current program version information of the target equipment in real time, the conditions that the equipment maintenance personnel updates the equipment program version under the condition that the current program version of the equipment is unknown or the equipment maintenance personnel cannot timely know the current program version of the equipment because the current program version of the equipment is not an expected version can be effectively avoided, the possibility of version disorder is reduced, the problem that the equipment runs wrong programs is reduced, and therefore the adverse effect caused by the version disorder or the equipment runs wrong programs is reduced.
In one embodiment, the method may further comprise the steps of: and responding to a second query request aiming at the target device, and feeding back second query response data to a sender of the second query request, wherein the second query response data comprises historical updating log data of the target device.
The second query request is used for requesting to view the historical update log data of the target device, a device maintainer can initiate the second query request by logging in the version control system through the terminal, the terminal is used as a sender of the second query request to send the second query request to the server, and the second query request can carry an identifier (such as a device ID) of the target device. After receiving the second query request, the server may determine the corresponding target device according to the identifier of the target device, and feed back the recorded historical update log data of the target device to the terminal, and the terminal may display the received historical update log data of the target device, so that the device maintenance staff can view the historical update log data. Therefore, the equipment maintenance personnel can inquire the historical update log data of the target equipment in real time, can accurately know the specific situation of each program update of the target equipment, and improves the convenience of equipment maintenance and management.
It can be understood that the device maintainer may also initiate a query request through the terminal login version control system to request to view the current program version information and the history update log data of the target device at the same time, at this time, the server feeds back the recorded current program version information and the history update log data of the target device to the terminal together, and the terminal may display the received current program version information and the history update log data of the target device, so that the device maintainer can view the information conveniently.
In one embodiment, the method may further comprise the steps of: responding to a version deletion request aiming at target equipment, and determining a program version to be deleted corresponding to the version deletion request; and deleting the version of the program to be deleted from the recorded stored program version of the target equipment, so that the program to be deleted corresponding to the version of the program to be deleted is deleted from the storage area of the target equipment.
After the program running of the target device tends to be stable, the unnecessary program versions can be deleted from the stored program versions in the storage area, so that the occupation of the storage space is reduced. The version deletion request is used for requesting to delete the unnecessary program version, the equipment maintainer can log in the version control system through the terminal to initiate the version deletion request, and the version deletion request can carry the identifier (such as equipment ID) of the target equipment and the identifier (such as version number or version name) of the program version to be deleted. After receiving the version deletion request, the server may determine the corresponding target device and the version of the program to be deleted according to the identifier of the target device and the identifier of the version of the program to be deleted, and delete the version of the program to be deleted from the recorded stored program versions of the target device, so that the program to be deleted corresponding to the version of the program to be deleted is synchronously deleted from the storage area of the target device.
In one embodiment, the method may further comprise the steps of: and when the updating program corresponding to the updating program version is not stored in the storage area of the target device, sending an updating instruction and the updating program to the target device, so that the target device receives and updates based on the updating program.
After determining the update program version from the update request, the server determines whether the update program version matches the recorded stored program version, specifically, whether the recorded stored program version includes the update program version is determined, and if the recorded stored program version does not include the update program version, it is determined that the update program corresponding to the update program version is not stored in the storage area of the target device. In this case, the server needs to transmit an update program to the target device in addition to the update instruction, and the target device updates the target device based on the update program after receiving the update program.
After receiving the update program, the target device saves the received update program in a storage area, so as to avoid repeatedly sending the update program when version rollback is needed later. It should be noted that, after the target device receives the update program, whether the update is successful or not, the update program may be saved in the storage area, which takes into account that the reason of the update failure may not be that the update program itself is erroneous, and may be that the target device is erroneous during the update, and the target device needs to update based on the update program again, and at this time, only the update instruction needs to be re-sent without re-sending the update program to the target device, so that the number of times of sending the repeated program is reduced, and thus the waste of resources is reduced.
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in each flowchart related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 3, there is provided a program update control apparatus 300 including: a response module 310 and a control module 320, wherein:
the response module 310 is configured to determine, in response to the update request, a target device corresponding to the update request and an update program version.
The control module 320 is configured to send an update instruction to the target device when the update program corresponding to the update program version is stored in the storage area of the target device, where the update instruction carries the update program version, so that the target device performs update based on the update program.
In one embodiment, the apparatus further comprises a recording module to record the stored program version in a storage area of the target device. The control module 320 is further configured to: when the updated program version matches the recorded stored program version, it is determined that the updated program corresponding to the updated program version is stored in the storage area of the target device.
In one embodiment, the recording module is further configured to: before the control module 320 sends the update instruction to the target device, the current program version of the target device is recorded as the program version before update corresponding to the update instruction. The apparatus further includes a record updating module, configured to update the recorded current program version of the target device according to an update result fed back by the target device in response to the update instruction after the control module 320 sends the update instruction to the target device.
In an embodiment, when the recorded current program version of the target device is updated according to an update result fed back by the target device in response to the update instruction, the record update module is specifically configured to: and when the updating result indicates that the updating is successful, updating the recorded current program version of the target device to the updated program version.
In an embodiment, when the record updating module updates the recorded current program version of the target device according to an update result fed back by the target device in response to the update instruction, the record updating module is specifically configured to: and when the updating result indicates that the updating fails, keeping the recorded current program version of the target device unchanged.
In one embodiment, the recording module is further configured to: after the control module 320 sends the update instruction to the target device, the update log data of the target device is recorded, and the update log data includes the pre-update program version, the update program version and the update result corresponding to the update instruction.
In one embodiment, the response module 310 is further configured to: and responding to a first query request aiming at the target device, and feeding back first query response data to a sender of the first query request, wherein the first query response data comprises the current program version of the target device.
In one embodiment, the response module 310 is further configured to: and responding to a second query request aiming at the target device, and feeding back second query response data to a sender of the second query request, wherein the second query response data comprises historical updating log data of the target device.
In one embodiment, the response module 310 is further configured to: responding to a version deletion request aiming at target equipment, and determining a program version to be deleted corresponding to the version deletion request; and deleting the version of the program to be deleted from the recorded stored program version of the target equipment, so that the program to be deleted corresponding to the version of the program to be deleted is deleted from the storage area of the target equipment.
In one embodiment, the control module 320 is further configured to: and when the updating program corresponding to the updating program version is not stored in the storage area of the target device, sending an updating instruction and the updating program to the target device, so that the target device receives and updates based on the updating program.
For the specific limitations of the program update control device, reference may be made to the above limitations of the program update control method, which are not described herein again. The respective modules in the program update control device may be implemented wholly or partially by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing program versions and related data of program updates. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a program update control method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a program update control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 4 and 5 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
It should be understood that the terms "first", "second", etc. in the above-described embodiments are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. For the description of numerical ranges, the term "plurality" means more than one, i.e. equal to or greater than two.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A program update control method, characterized by comprising:
responding to an update request, and determining a target device and an update program version corresponding to the update request;
when an update program corresponding to the update program version is stored in a storage area of the target device, sending an update instruction to the target device, wherein the update instruction carries the update program version, so that the target device is updated based on the update program, and the storage area is used for storing a history version program;
acquiring and recording the stored program version in the storage area of the target equipment in real time;
and when the updating program version is matched with the recorded stored program version, judging that the updating program corresponding to the updating program version is stored in the storage area of the target device.
2. The method of claim 1, prior to sending the update instruction to the target device, further comprising: recording the current program version of the target equipment as a program version before updating corresponding to the updating instruction;
after sending the update instruction to the target device, the method further includes: and updating the recorded current program version of the target equipment according to an updating result fed back by the target equipment in response to the updating instruction.
3. The method according to claim 2, wherein the updating the recorded current program version of the target device according to the update result fed back by the target device in response to the update instruction comprises any one of the following two items:
when the updating result indicates that the updating is successful, updating the recorded current program version of the target device to the updated program version;
and when the updating result indicates that the updating fails, keeping the recorded current program version of the target device unchanged.
4. The method of claim 3, after sending the update instruction to the target device, further comprising:
and recording the update log data of the target device, wherein the update log data comprises a program version before update, an update program version and an update result corresponding to the update instruction.
5. The method of claim 4, further comprising at least one of:
responding to a first query request aiming at the target equipment, and feeding back first query response data to a sender of the first query request, wherein the first query response data comprises a current program version of the target equipment;
responding to a second query request aiming at the target device, and feeding back second query response data to a sender of the second query request, wherein the second query response data comprises historical updating log data of the target device.
6. The method of claim 1, further comprising:
responding to a version deletion request aiming at the target equipment, and determining a program version to be deleted corresponding to the version deletion request;
and deleting the program version to be deleted from the recorded stored program version of the target equipment, so that the program to be deleted corresponding to the program version to be deleted is deleted from the storage area of the target equipment.
7. The method of any one of claims 1 to 6, further comprising:
and when the updating program corresponding to the updating program version is not stored in the storage area of the target equipment, sending an updating instruction and the updating program to the target equipment, so that the target equipment receives and updates based on the updating program.
8. A program update control apparatus, characterized in that the apparatus comprises:
the response module is used for responding to the update request, and determining the target equipment and the update program version corresponding to the update request;
the control module is used for sending an update instruction to the target device when an update program corresponding to the update program version is stored in a storage area of the target device, wherein the update instruction carries the update program version, so that the target device is updated based on the update program, and the storage area is used for storing a history version program;
the recording module is used for acquiring and recording the stored program version in the storage area of the target equipment in real time; the control module is further configured to: and when the updating program version is matched with the recorded stored program version, judging that the updating program corresponding to the updating program version is stored in the storage area of the target device.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011322928.3A 2020-11-23 2020-11-23 Program update control method, program update control device, computer device, and storage medium Active CN112416400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011322928.3A CN112416400B (en) 2020-11-23 2020-11-23 Program update control method, program update control device, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011322928.3A CN112416400B (en) 2020-11-23 2020-11-23 Program update control method, program update control device, computer device, and storage medium

Publications (2)

Publication Number Publication Date
CN112416400A CN112416400A (en) 2021-02-26
CN112416400B true CN112416400B (en) 2022-07-08

Family

ID=74778360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011322928.3A Active CN112416400B (en) 2020-11-23 2020-11-23 Program update control method, program update control device, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN112416400B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977026A (en) * 2019-04-04 2019-07-05 天津字节跳动科技有限公司 Test webpage rollback method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740023B (en) * 2016-02-02 2019-05-03 Oppo广东移动通信有限公司 The method, apparatus and intelligent mobile terminal that program version retracts
CN105744008B (en) * 2016-05-11 2019-04-09 百度在线网络技术(北京)有限公司 Smart home platform, method for updating system and device applied to the platform
US10296298B1 (en) * 2018-01-25 2019-05-21 Walmart Apollo, Llc Systems and methods for cross platform information exchange mechanism for integrating web-based components with a native application
CN109117161A (en) * 2018-08-29 2019-01-01 广东美的制冷设备有限公司 The online upgrading control method and appliance system of appliance system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977026A (en) * 2019-04-04 2019-07-05 天津字节跳动科技有限公司 Test webpage rollback method and device

Also Published As

Publication number Publication date
CN112416400A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN112000541A (en) Buried point data reporting method and device, computer equipment and storage medium
CN109245928B (en) Configuration information setting method and device and terminal management system
CN112115167B (en) Cache system hot spot data access method, device, equipment and storage medium
WO2022222438A1 (en) Profile state synchronization method and apparatus, terminal, server, and storage medium
CN109039899B (en) Data transmission method, system and computer readable storage medium
US20150302473A1 (en) Information processing system and information processing method
CN113821721A (en) User portrait based multi-channel message method and device and computer equipment
CN114064073A (en) Software version upgrading method and device, computer equipment and storage medium
CN113507516A (en) File service method, access server, computer device and storage medium
CN114598748A (en) Method, device and system for refreshing cache resources
CN113918437A (en) User behavior data analysis method and device, computer equipment and storage medium
CN112000346B (en) File upgrading method, device, computer equipment and storage medium
CN112416400B (en) Program update control method, program update control device, computer device, and storage medium
CN113886496A (en) Data synchronization method and device of block chain, computer equipment and storage medium
CN110442636B (en) Data reading and writing method and device and data reading and writing equipment
CN109460278B (en) Cloud desktop building design software management method and device and computer equipment
CN111966701A (en) Metadata updating method, device, equipment and storage medium
CN112783866B (en) Data reading method, device, computer equipment and storage medium
CN114138895A (en) Data synchronization method and device for multiple data sources, computer equipment and storage medium
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN113872994A (en) Organization architecture synchronization method, device, computer equipment and storage medium
CN111818178A (en) Data acquisition method and device, computer equipment and storage medium
CN107493316B (en) Application operation management method, server and computer readable storage medium

Legal Events

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