CN112817620B - Controller terminal program updating method, device, computer equipment and storage medium - Google Patents

Controller terminal program updating method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112817620B
CN112817620B CN202110021534.2A CN202110021534A CN112817620B CN 112817620 B CN112817620 B CN 112817620B CN 202110021534 A CN202110021534 A CN 202110021534A CN 112817620 B CN112817620 B CN 112817620B
Authority
CN
China
Prior art keywords
program
updated
terminal
test
file
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
CN202110021534.2A
Other languages
Chinese (zh)
Other versions
CN112817620A (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.)
Hitachi Building Technology Guangzhou Co Ltd
Original Assignee
Hitachi Building Technology Guangzhou Co Ltd
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 Hitachi Building Technology Guangzhou Co Ltd filed Critical Hitachi Building Technology Guangzhou Co Ltd
Priority to CN202110021534.2A priority Critical patent/CN112817620B/en
Publication of CN112817620A publication Critical patent/CN112817620A/en
Application granted granted Critical
Publication of CN112817620B publication Critical patent/CN112817620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The application relates to a controller terminal program updating method, a controller terminal program updating device, a computer device and a storage medium. The method and the device can automatically update the program aiming at the batch of controller terminals to be updated, and improve the program updating efficiency. The method comprises the following steps: extracting program update information from a program update file, acquiring locally stored program synchronization information for each controller terminal connected with the terminal management module, and determining a controller terminal to be updated from each controller terminal according to the matching of the program update information and the program synchronization information; the program update information is sent to a controller terminal to be updated, so that the controller terminal to be updated detects whether the program update file is stored or not according to the program update information, and feeds back a file detection result; and if the file detection result represents that the to-be-updated controller terminal stores the program update file, sending a program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.

Description

Controller terminal program updating method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of automation control technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for updating a controller terminal program.
Background
With the development of automation control technology, intelligent terminal devices have been advanced into various industries and daily life of people, for example, in the field of automation control of intelligent buildings, various controller terminals (Control Termination) such as an access controller, an intelligent home controller, a data acquisition terminal and the like are generally required to be installed. The types of external devices connected with the controller terminal are complex, communication protocols are numerous, the requirements of customization are more, and the firmware BUG of the controller terminal is discovered in a frequent commissioning stage, so that the program of the controller terminal needs to be updated frequently.
At present, two main methods for updating programs of a controller terminal exist, one is to use an external memory such as an SD card (Secure Digital Memory Card, secure digital card) or a U disk on site, or update the external memory one by a Ulink programmer aiming at the controller terminal, and the other is to update the external memory one by one on line remotely through a network. It can be seen that these program update methods lack functionality to handle test management and automatic batch updates for different types of devices.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a controller terminal program updating method, apparatus, computer device, and storage medium.
A controller terminal program updating method applied to a terminal management module, the method comprising:
extracting program update information from the program update file;
acquiring locally stored program synchronization information for each controller terminal connected with the terminal management module;
determining a controller terminal to be updated from the controller terminals according to the matching of the program updating information and the program synchronizing information;
the program update information is sent to the controller terminal to be updated so that the controller terminal to be updated can detect whether the program update file is stored or not according to the program update information, and a file detection result is fed back;
and if the file detection result indicates that the to-be-updated controller terminal stores the program update file, sending a program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.
In one embodiment, the method further comprises:
and if the file detection result indicates that the to-be-updated controller terminal does not store the program update file, sending the program update file and the program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.
In one embodiment, before the program update information is sent to the controller terminal to be updated, the method further includes:
determining an update test terminal corresponding to the controller terminal to be updated; the updating test terminal is connected with the terminal management module;
acquiring a program update test file corresponding to the program update file;
the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result;
and if the updated test result is that the test is passed, executing the step of sending the program updating information to the controller terminal to be updated.
In one embodiment, if the update test result is that the test passes, before the step of sending the program update information to the controller terminal to be updated is performed, the method further includes:
obtaining the fault times of the updated test terminal in a preset period according to the updated test result;
and if the fault times are smaller than or equal to the fault times threshold, judging that the updated test result is the passing test.
In one embodiment, the update test terminal is configured to determine a start-stop time of the test according to the program update test file, clear the historical fault information, and then count the number of faults within the start-stop time of the test to form the update test result.
In one embodiment, the number of the controller terminals to be updated is a plurality; the number of the update test terminals is one or more; and the type of the to-be-updated controller terminal is the same as that of the update test terminal.
A controller terminal program updating apparatus applied to a terminal management module, the apparatus comprising:
the updating information extraction module is used for extracting program updating information from the program updating file;
the synchronous information acquisition module is used for acquiring locally stored program synchronous information aiming at each controller terminal connected with the terminal management module;
the to-be-updated terminal determining module is used for determining to-be-updated controller terminals from the controller terminals according to the matching of the program updating information and the program synchronizing information;
the update information sending module is used for sending the program update information to the to-be-updated controller terminal so that the to-be-updated controller terminal can detect whether the program update file is stored or not according to the program update information and feed back a file detection result;
and the upgrade command sending module is used for sending a program upgrade command to the controller terminal to be updated to instruct the controller terminal to be updated to execute the program update file if the file detection result indicates that the controller terminal to be updated has stored the program update file.
A controller terminal program updating system comprises a terminal management module and each controller terminal connected with the terminal management module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the terminal management module is used for extracting program update information from a program update file, acquiring locally stored program synchronization information for each controller terminal, determining a controller terminal to be updated from each controller terminal according to the matching of the program update information and the program synchronization information, and sending the program update information to the controller terminal to be updated;
the controller terminal to be updated is used for detecting whether the program update file is stored or not according to the program update information and feeding back a file detection result;
the terminal management module is further configured to receive the file detection result, and if the file detection result indicates that the to-be-updated controller terminal has stored the program update file, send a program update command to the to-be-updated controller terminal to instruct the to-be-updated controller terminal to execute the program update file.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the controller terminal program update method as described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the controller terminal program update method as described above.
The controller terminal program updating method, the device, the computer equipment and the storage medium are applied to a terminal management module, program updating information is extracted from a program updating file, locally stored program synchronization information aiming at each controller terminal connected with the terminal management module is obtained, and a controller terminal to be updated is determined from each controller terminal according to the matching of the program updating information and the program synchronization information; the program update information is sent to a controller terminal to be updated, so that the controller terminal to be updated detects whether the program update file is stored or not according to the program update information, and feeds back a file detection result; and if the file detection result represents that the to-be-updated controller terminal stores the program update file, sending a program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file. According to the method, the controller terminals which need to be updated can be automatically matched according to the program update file and the locally stored program synchronization information, and the program is automatically updated aiming at the batch of controller terminals to be updated.
Drawings
FIG. 1 is a diagram of an application environment of a controller terminal program update method in one embodiment;
FIG. 2 is a flowchart of a method for updating a controller terminal program in one embodiment;
FIG. 3 is a flowchart illustrating steps of a test terminal test procedure in one embodiment;
FIG. 4 is a block diagram showing a configuration of a controller terminal program updating apparatus in one embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
fig. 6 is an internal structural view of a computer device in another embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for updating the controller terminal program provided by the application can be applied to an application environment shown in fig. 1. Wherein the terminal management module 101 communicates with the controller terminal 102 via a network. The terminal management module 101 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers. The controller terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, as well as a processor composed of an embedded chip or other chips. The controller terminals 102 may be a plurality of controller terminals of different types, such as a plurality of access controllers, a plurality of device controllers, a plurality of data acquisition terminals, etc. in an intelligent building.
In one embodiment, as shown in fig. 2, a method for updating a controller terminal program is provided, and the method is applied to the terminal management module 101 in fig. 1 for illustration, and includes the following steps:
step S201, extracting program update information from a program update file;
the program update file is the latest program to be installed on the controller terminal, for example, may be a patch file or the latest version of the program. The program update information is information related to the program update file, such as a program name, version number, and serial number of the program update file.
Specifically, after acquiring the program update file, the terminal management module 101 extracts program update information of the program update file, including a program name, a version number, a serial number, and the like.
Step S202, locally stored program synchronization information for each controller terminal connected to the terminal management module is acquired.
The program synchronization information is controller information stored in the controller terminal, and includes: the controller program name (different controller types use different controller program names), program version information (including a program version number and a test version identification), a controller identification (whether the identification is a terminal for testing), a test start time (test start time of the test version program), a test end time (test end time of the test version program), a controller address, controller failure information, a test identification (in test, not in test). The controller information stored in each controller terminal is synchronized with the terminal management module 101.
Specifically, the terminal management module 101 acquires the above-described program synchronization information synchronously from each controller terminal connected thereto, and stores it in a local file.
Step S203, determining a controller terminal to be updated from the controller terminals according to the matching of the program updating information and the program synchronizing information;
specifically, the terminal management module 101 matches the program update information with the program synchronization information, for example, matches the program synchronization information of the same name as the program update file according to the program name, and then determines the controller terminal of which version is older as the controller terminal to be updated according to the version number.
Step S204, the program update information is sent to the controller terminal to be updated, so that the controller terminal to be updated can detect whether the stored program update file is stored according to the program update information, and the file detection result is fed back;
specifically, the terminal management module 101 sends program update information (including program name, program version information, test duration, etc.) of the program update file to the to-be-updated controller terminal, and after the to-be-updated controller terminal receives the program update information sent by the terminal management module 101, it detects whether the program update file is stored according to the information, and feeds back a file detection result, where the file detection result includes whether the program update file of the version is stored.
Step S205, if the file detection result indicates that the to-be-updated controller terminal has stored the program update file, a program update command is sent to the to-be-updated controller terminal to instruct the to-be-updated controller terminal to execute the program update file.
After receiving the file detection result, the terminal management module 101 sends a program update command to the to-be-updated controller terminal to instruct the to-be-updated controller terminal to execute a program update operation if the file detection result indicates that the to-be-updated controller terminal has stored a program update file.
The above embodiment extracts program update information from a program update file, obtains locally stored program synchronization information for each controller terminal connected to the terminal management module, and determines a controller terminal to be updated from each controller terminal according to matching of the program update information and the program synchronization information; the program update information is sent to a controller terminal to be updated, so that the controller terminal to be updated detects whether the program update file is stored or not according to the program update information, and feeds back a file detection result; and if the file detection result represents that the to-be-updated controller terminal stores the program update file, sending a program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file. According to the method, the controller terminals which need to be updated can be automatically matched according to the program update file and the locally stored program synchronization information, and the program is automatically updated aiming at the batch of controller terminals to be updated.
In an embodiment, the method further includes: if the file detection result indicates that the to-be-updated controller terminal does not store the program update file, the program update file and the program update command are sent to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.
Specifically, if the file detection result indicates that the controller terminal to be updated does not store the program update file of the version, the terminal management module 101 sends the program update file and the program update command to the controller terminal to be updated, so as to instruct the controller terminal to be updated to execute the program update file.
According to the embodiment, whether the program update file needs to be sent to the controller terminal to be updated is judged according to the file detection result returned by the controller terminal to be updated, repeated storage of the program update file is avoided, and system resources are saved.
In an embodiment, before the step S204, the method further includes: determining an update test terminal corresponding to the controller terminal to be updated; the updating test terminal is connected with the terminal management module; acquiring a program update test file corresponding to the program update file; the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result; if the updated test result is that the test passes, the program updating information is sent to the controller terminal to be updated.
Specifically, after extracting the program update information from the program update file, the terminal management module 101 searches all the controller terminals that are matched with the program update file and have older versions according to the program name and version number in the program update information, determines whether the program update file is a test version according to the test version identifier in the program version information of the program update file, if the program update file is a test version, further searches the searched controller terminals for the controller identifier as a terminal for testing as an update test terminal, and the terminal management module 101 sends the program update test file to the update test terminal so that the update test terminal executes the program update test file and feeds back an update test result, and if the program update file passes the test, sends the program update information to the controller terminal to be updated.
According to the embodiment, the program update file is determined to be the test version, the test terminal matched with the program update file is searched, the test terminal determines that the test result passes, and then the program update file is sent to the relevant controller terminal for program update operation, so that automation of test management is realized.
In an embodiment, before the step of sending the program update information to the to-be-updated controller terminal if the update test result is that the test is passed, the method further includes:
obtaining the fault times of the updated test terminal in the updated preset time period according to the updated test result; if the failure times are smaller than or equal to the failure times threshold, judging that the updated test result is the passing of the test.
Specifically, as shown in fig. 3, after receiving the updated test result returned by the test terminal, the terminal management module 101 obtains the number of faults of the updated test terminal in the updated preset time period, and if the number of faults is less than or equal to the preset threshold of the number of faults, the updated test result is judged to be the passing of the test.
According to the embodiment, the test result is judged by setting the failure frequency threshold value, so that the running safety of the updated program is improved.
In an embodiment, the update test terminal is configured to determine a start-stop time of the test according to the program update test file, clear the historical fault information, and then count the number of faults in the start-stop time of the test to form an update test result.
Specifically, after receiving a program update file of a test version, the update test terminal stores the test start time, calculates and stores the test end time according to the test duration in the program related information, clears the fault history information of the controller, and sets the test identifier as in-test; updating fault information of the statistical controller if faults occur in the running process of the test terminal; updating the test terminal when the test identifier is in the test, if the test ending time is reached, the test ending information (program name, program version information, test starting time, test ending time, test result identifier) is sent to the terminal management module 101.
In the above embodiment, by updating the fault information of the test terminal in the test process and sending the test result to the terminal management module 101, the method is beneficial to the subsequent program update operation and provides a safe operation environment for the subsequent program update operation.
In an embodiment, the number of controller terminals to be updated is a plurality; updating the number of the test terminals to one or more; the type of the controller terminal to be updated is the same as that of the terminal for updating the test terminal.
Specifically, the number of the controller terminals to be updated is plural, and each time the controller terminals to be updated are updated, the terminal management module 101 sends a program update file of a test version to one or a group (including plural) of updated test terminals, and if the test result passes, the program update file is sent to a group of controller terminals to be updated of the same type as the updated test terminal.
The embodiment is beneficial to batch management by setting the controller terminal to be updated for the same type of controller terminal.
It should be understood that, although the steps in the flowchart of fig. 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 3 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed in rotation or alternatively with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 4, there is provided a controller terminal program updating apparatus 400 including: an update information extraction module 401, a synchronization information acquisition module 402, a terminal to be updated determination module 403, an update information transmission module 404, and an upgrade command transmission module 405, wherein:
the updating information extraction module is used for extracting program updating information from the program updating file;
the synchronous information acquisition module is used for acquiring locally stored program synchronous information aiming at each controller terminal connected with the terminal management module;
the to-be-updated terminal determining module is used for determining to-be-updated controller terminals from the controller terminals according to the matching of the program updating information and the program synchronizing information;
the update information sending module is used for sending the program update information to the to-be-updated controller terminal so that the to-be-updated controller terminal can detect whether the program update file is stored or not according to the program update information and feed back a file detection result;
and the upgrade command sending module is used for sending a program upgrade command to the controller terminal to be updated to instruct the controller terminal to be updated to execute the program update file if the file detection result indicates that the controller terminal to be updated has stored the program update file.
In an embodiment, the upgrade command sending module 405 is further configured to: and if the file detection result indicates that the to-be-updated controller terminal does not store the program update file, sending the program update file and the program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.
In an embodiment, the above-mentioned terminal determining module to be updated 403 is further configured to: determining an update test terminal corresponding to the controller terminal to be updated; the updating test terminal is connected with the terminal management module; acquiring a program update test file corresponding to the program update file; the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result; the update information sending module 404 is further configured to: and if the updated test result is that the test is passed, executing the step of sending the program updating information to the controller terminal to be updated.
In an embodiment, the above-mentioned terminal determination module to be updated 403 is further configured to: obtaining the fault times of the updated test terminal in a preset period according to the updated test result; and if the fault times are smaller than or equal to the fault times threshold, judging that the updated test result is the passing test.
In an embodiment, the update test terminal is configured to determine a start-stop time of the test according to the program update test file, clear the historical fault information, and then count the number of faults within the start-stop time of the test to form the update test result.
In an embodiment, the number of the controller terminals to be updated is a plurality; the number of the update test terminals is one or more; and the type of the to-be-updated controller terminal is the same as that of the update test terminal.
The specific limitation of the controller terminal program updating means can be referred to above as limitation of the controller terminal program updating method, and will not be described herein. The respective modules in the above-described controller terminal program updating means may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a controller terminal program updating system is provided, the specific structure of the system can be referred to as fig. 1, and the system can be applied to an intelligent building automation control system; comprises a terminal management module 101 and each controller terminal 102 connected with the terminal management module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the terminal management module 101 is configured to extract program update information from a program update file, obtain locally stored program synchronization information for each controller terminal, determine a controller terminal to be updated from each controller terminal 102 according to matching between the program update information and the program synchronization information, and send the program update information to the controller terminal to be updated;
the controller terminal to be updated is used for detecting whether the program update file is stored or not according to the program update information and feeding back a file detection result;
the terminal management module 101 is further configured to receive the file detection result, and if the file detection result indicates that the to-be-updated controller terminal has stored the program update file, send a program update command to the to-be-updated controller terminal to instruct the to-be-updated controller terminal to execute the program update file.
In one embodiment, if the file detection result indicates that the to-be-updated controller terminal does not store the program update file, the terminal management module 101 sends the program update file and the program update command to the to-be-updated controller terminal to instruct the to-be-updated controller terminal to execute the program update file.
In one embodiment, before the terminal management module 101 sends the program update information to the to-be-updated controller terminal, the method further includes: the terminal management module 101 determines an update test terminal corresponding to the controller terminal to be updated; the update test terminal is connected with the terminal management module 101; acquiring a program update test file corresponding to the program update file; the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result; and if the updated test result is that the test is passed, executing the step of sending the program updating information to the controller terminal to be updated.
In one embodiment, if the update test result is that the test passes, before the step of sending the program update information to the controller terminal to be updated is performed, the method further includes: the terminal management module 101 obtains the fault times of the updated test terminal in the updated preset time period according to the updated test result; and if the fault times are smaller than or equal to the fault times threshold, judging that the updated test result is the passing test.
In one embodiment, the update test terminal is configured to determine a start-stop time of the test according to the program update test file, clear the historical fault information, and then count the number of faults within the start-stop time of the test to form the update test result.
In one embodiment, the number of the controllers to be updated is a plurality of controllers; the number of the updated test terminals is one or more; and the type of the to-be-updated controller terminal is the same as that of the update test terminal.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing program update files and program related data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a controller terminal program update method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. 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 includes a non-volatile 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 the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a controller terminal program update 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, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the structures shown in fig. 5-6 are block diagrams of only portions of structures associated with aspects of the application and are not intended to limit the computer device to which aspects of the application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or may 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 controller terminal program update method as described above when the computer program is executed.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, implements the steps of the controller terminal program update method as described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. A controller terminal program updating method, applied to a terminal management module, comprising:
extracting program update information from the program update file;
acquiring locally stored program synchronization information for each controller terminal connected with the terminal management module;
determining a controller terminal to be updated from the controller terminals according to the matching of the program updating information and the program synchronizing information;
according to the controller identification contained in the program synchronization information, searching the controller identification to be used for testing from the controller terminals to be updated as an updating test terminal;
acquiring a program update test file corresponding to the program update file;
the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result;
if the updated test result is that the test is passed, the program update information is sent to the controller terminal to be updated so that the controller terminal to be updated can detect whether the program update file is stored or not according to the program update information, and a file detection result is fed back;
and if the file detection result indicates that the to-be-updated controller terminal stores the program update file, sending a program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.
2. The method according to claim 1, wherein the method further comprises:
and if the file detection result indicates that the to-be-updated controller terminal does not store the program update file, sending the program update file and the program update command to the to-be-updated controller terminal so as to instruct the to-be-updated controller terminal to execute the program update file.
3. The method according to claim 1, wherein if the update test result is that the test passes, before executing the sending the program update information to the controller terminal to be updated, further comprising:
obtaining the fault times of the updated test terminal in a preset period according to the updated test result;
and if the fault times are smaller than or equal to the fault times threshold, judging that the updated test result is the passing test.
4. The method of claim 3, wherein the update test terminal is configured to determine a start-stop time of a test according to the program update test file, zero-clear historical fault information, and count the number of faults in the start-stop time of the test to form the update test result.
5. The method according to any one of claims 3 to 4, wherein the number of controller terminals to be updated is a plurality; the number of the update test terminals is one or more; and the type of the to-be-updated controller terminal is the same as that of the update test terminal.
6. A controller terminal program updating apparatus, which is applied to a terminal management module, the apparatus comprising:
the updating information extraction module is used for extracting program updating information from the program updating file;
the synchronous information acquisition module is used for acquiring locally stored program synchronous information aiming at each controller terminal connected with the terminal management module;
the to-be-updated terminal determining module is used for determining to-be-updated controller terminals from the controller terminals according to the matching of the program updating information and the program synchronizing information; according to the controller identification contained in the program synchronization information, searching the controller identification to be used for testing from the controller terminals to be updated as an updating test terminal; acquiring a program update test file corresponding to the program update file; the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result;
the update information sending module is used for sending the program update information to the to-be-updated controller terminal if the update test result is that the test is passed, so that the to-be-updated controller terminal can detect whether the program update file is stored or not according to the program update information and feed back a file detection result;
and the upgrade command sending module is used for sending a program upgrade command to the controller terminal to be updated to instruct the controller terminal to be updated to execute the program update file if the file detection result indicates that the controller terminal to be updated has stored the program update file.
7. The controller terminal program updating system is characterized by comprising a terminal management module and each controller terminal connected with the terminal management module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the terminal management module is used for extracting program update information from a program update file, acquiring locally stored program synchronization information for each controller terminal, and determining a controller terminal to be updated from each controller terminal according to the matching of the program update information and the program synchronization information; according to the controller identification contained in the program synchronization information, searching the controller identification to be used for testing from the controller terminals to be updated as an updating test terminal; acquiring a program update test file corresponding to the program update file; the program update test file is sent to the update test terminal, so that the update test terminal executes the program update test file and feeds back an update test result; if the updated test result is that the test is passed, the program updating information is sent to the controller terminal to be updated;
the controller terminal to be updated is used for detecting whether the program update file is stored or not according to the program update information and feeding back a file detection result;
the terminal management module is further configured to receive the file detection result, and if the file detection result indicates that the to-be-updated controller terminal has stored the program update file, send a program update command to the to-be-updated controller terminal to instruct the to-be-updated controller terminal to execute the program update file.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN202110021534.2A 2021-01-08 2021-01-08 Controller terminal program updating method, device, computer equipment and storage medium Active CN112817620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110021534.2A CN112817620B (en) 2021-01-08 2021-01-08 Controller terminal program updating method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110021534.2A CN112817620B (en) 2021-01-08 2021-01-08 Controller terminal program updating method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112817620A CN112817620A (en) 2021-05-18
CN112817620B true CN112817620B (en) 2023-09-26

Family

ID=75868727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110021534.2A Active CN112817620B (en) 2021-01-08 2021-01-08 Controller terminal program updating method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112817620B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086172B (en) * 2022-07-25 2022-11-15 广东壹公里数智科技有限公司 Data gateway plug-in updating method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065695A (en) * 2013-07-05 2014-09-24 腾讯科技(深圳)有限公司 Software update method, server, user end and system
CN104092732A (en) * 2014-06-20 2014-10-08 裴兆欣 Intelligent terminal software updating method and device
CN107533491A (en) * 2015-09-14 2018-01-02 松下电器(美国)知识产权公司 Gateway apparatus, firmware update and control program
CN108446128A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software and device
CN109240727A (en) * 2018-11-20 2019-01-18 世纪龙信息网络有限责任公司 Application program update method, apparatus, computer equipment and storage medium
CN109743342A (en) * 2018-02-12 2019-05-10 比亚迪股份有限公司 Update method, server and the terminal of terminal
CN110134420A (en) * 2019-05-22 2019-08-16 上海诺雅克电气有限公司 Firmware upgrade method and system based on cloud platform
CN110647333A (en) * 2018-06-26 2020-01-03 霍尼韦尔环境自控产品(天津)有限公司 Firmware upgrading method and equipment configured to upgrade firmware therein
CN110659053A (en) * 2019-10-10 2020-01-07 珠海格力电器股份有限公司 Program updating method, device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160127478A (en) * 2015-04-27 2016-11-04 삼성전자주식회사 Method and system for updating software
KR101893518B1 (en) * 2016-10-28 2018-10-04 한국전자통신연구원 Update management apparatus of industry control system, apparatus and method for update verification

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065695A (en) * 2013-07-05 2014-09-24 腾讯科技(深圳)有限公司 Software update method, server, user end and system
CN104092732A (en) * 2014-06-20 2014-10-08 裴兆欣 Intelligent terminal software updating method and device
CN107533491A (en) * 2015-09-14 2018-01-02 松下电器(美国)知识产权公司 Gateway apparatus, firmware update and control program
CN108446128A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software and device
CN109743342A (en) * 2018-02-12 2019-05-10 比亚迪股份有限公司 Update method, server and the terminal of terminal
CN110647333A (en) * 2018-06-26 2020-01-03 霍尼韦尔环境自控产品(天津)有限公司 Firmware upgrading method and equipment configured to upgrade firmware therein
CN109240727A (en) * 2018-11-20 2019-01-18 世纪龙信息网络有限责任公司 Application program update method, apparatus, computer equipment and storage medium
CN110134420A (en) * 2019-05-22 2019-08-16 上海诺雅克电气有限公司 Firmware upgrade method and system based on cloud platform
CN110659053A (en) * 2019-10-10 2020-01-07 珠海格力电器股份有限公司 Program updating method, device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
飞行器上设备软件在线升级方案设计与应用;贾金艳等;工业仪表与自动化装置;62-66 *

Also Published As

Publication number Publication date
CN112817620A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN108121559B (en) Configuration file pushing method, server and storage medium
US11003599B2 (en) Method, apparatus and system of managing external devices, memory and unmanned aerial vehicle
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN110225078B (en) Application service updating method, system and terminal equipment
CN106020875B (en) Firmware update management method and device of embedded terminal
CN102736978A (en) Method and device for detecting installation status of application program
CN109002305B (en) Method and system for updating equipment program
CN112817620B (en) Controller terminal program updating method, device, computer equipment and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN111752577B (en) Upgrading method and equipment for system version
CN109462661B (en) Data synchronization method and device, computer equipment and storage medium
CN111385613B (en) Television system repairing method, storage medium and application server
CN115080076B (en) Cloud mobile phone software management method
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN108763053B (en) Method for generating buried point name and terminal equipment
CN116450176A (en) Version updating method and device, electronic equipment and storage medium
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN113127029A (en) Firmware updating method and device, electronic equipment and storage medium
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
CN112559131A (en) Method, device and equipment for updating container mirror image and computer readable storage medium
CN105278980B (en) System updating method, device and server
CN113992739B (en) Local area network OTA firmware upgrading device, method and system
CN108132990B (en) Method and device for replacing APP built-in picture and 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