CN115113907A - Method for updating device system, electronic device, and storage medium - Google Patents

Method for updating device system, electronic device, and storage medium Download PDF

Info

Publication number
CN115113907A
CN115113907A CN202210790345.6A CN202210790345A CN115113907A CN 115113907 A CN115113907 A CN 115113907A CN 202210790345 A CN202210790345 A CN 202210790345A CN 115113907 A CN115113907 A CN 115113907A
Authority
CN
China
Prior art keywords
update
updating
updated
file
subfiles
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.)
Pending
Application number
CN202210790345.6A
Other languages
Chinese (zh)
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.)
SHENZHEN CHUANGWEI ELECTRONIC APPLIANCE TECH CO LTD
Original Assignee
SHENZHEN CHUANGWEI ELECTRONIC APPLIANCE TECH 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 SHENZHEN CHUANGWEI ELECTRONIC APPLIANCE TECH CO LTD filed Critical SHENZHEN CHUANGWEI ELECTRONIC APPLIANCE TECH CO LTD
Priority to CN202210790345.6A priority Critical patent/CN115113907A/en
Publication of CN115113907A publication Critical patent/CN115113907A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of system updating, and discloses an updating method of an equipment system, electronic equipment and a storage medium, wherein the updating method comprises the following steps: monitoring whether a system of the electronic device needs to be updated; if yes, acquiring an update file required by system updating, wherein the update file comprises a plurality of subfiles; and executing the plurality of subfiles one by one to update the system of the electronic equipment. The present application aims to shorten the time for system updates and to reduce the probability of update errors.

Description

Method for updating device system, electronic device, and storage medium
Technical Field
The present application relates to the field of system updating technologies, and in particular, to an updating method for an equipment system, an electronic device, and a computer-readable storage medium.
Background
At present, when an electronic device performs a system update, it generally performs the system update using an Over-the-Air Technology (OTA) complete package or a differential package (where the complete package includes complete data of the entire system, and the differential package only needs to include a differential file of a current update version system compared to a previous version system, but does not need to include all system files). However, even if the update is performed by using the differential packet, the update time is generally long, and if the update is performed by using the full packet, the update time needs to be longer.
The above is only for the purpose of assisting understanding of the technical solutions of the present application, and does not represent an admission that the above is prior art.
Disclosure of Invention
The application provides an updating method of a device system, an electronic device and a computer readable storage medium, aiming at shortening the updating time of the system and reducing the error probability of the updating.
In order to achieve the above object, the present application provides an updating method of an equipment system, including the following steps:
monitoring whether a system of the electronic device needs to be updated;
if yes, acquiring an update file required by system updating, wherein the update file comprises a plurality of subfiles;
and executing the plurality of subfiles one by one to update the system of the electronic equipment.
Optionally, the method for updating the device system further includes:
in the process of executing the plurality of subfiles one by one, if the error reporting of the system updating is detected, the subfiles executed during the error reporting of the updating are used as target subfiles;
and re-executing the target subfile.
Optionally, after the step of re-executing the target subfile, the method further includes:
and if the target subfile is successfully executed and the existence of the unexecuted subfile is detected, executing the unexecuted subfile.
Optionally, after the step of re-executing the target subfile, the method further includes:
if the target subfile fails to be executed, detecting whether the number of times of the target subfile failure is greater than a preset number of times;
and if not, re-executing the target subfile.
Optionally, after the step of detecting whether the number of times of the execution failure of the target subfile is greater than a preset number of times, the method further includes:
if yes, detecting whether the target subfile belongs to a preset non-key file;
and if the target subfile belongs to a preset non-key file, skipping the execution of the target subfile so as to continuously update the system of the electronic equipment.
Optionally, the step of monitoring whether the system of the electronic device needs to be updated includes:
when detecting that a storage device is accessed to the electronic device, detecting whether an update mark exists in storage data of the storage device;
if the stored data has an update mark, judging that a system of the electronic equipment needs to be updated; and if the update mark does not exist in the stored data, judging that the system of the electronic equipment does not need to be updated.
Optionally, the step of monitoring whether the system of the electronic device needs to be updated includes:
detecting whether system update information exists in a server associated with a system of the electronic equipment;
if the server has system updating information, judging that the system of the electronic equipment needs to be updated; and if the server does not have system updating information, judging that the system of the electronic equipment does not need to be updated.
Optionally, after the step of obtaining the update file required by the system update, the method further includes:
carrying out data integrity check on the update file;
and if the data integrity check is passed, executing the plurality of subfiles one by one to update the system of the electronic equipment.
To achieve the above object, the present application also provides an electronic device, including: the device system updating method comprises a memory, a processor and an updating program of the device system, wherein the updating program of the device system is stored on the memory and can run on the processor, and when the updating program of the device system is executed by the processor, the steps of the device system updating method are realized.
To achieve the above object, the present application also provides a computer readable storage medium, on which an update program of an equipment system is stored, and when the update program of the equipment system is executed by a processor, the steps of the update method of the equipment system are implemented.
According to the updating method of the equipment system, the electronic equipment and the computer readable storage medium, the updating file of the system of the electronic equipment is divided into the plurality of subfiles, so that when the system of the electronic equipment is updated, corresponding modules in the equipment system can be updated one by one based on the plurality of subfiles, and therefore the updating time of the system is shortened and the updating error probability is reduced.
Drawings
FIG. 1 is a schematic diagram illustrating steps of a method for updating an equipment system according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating steps of a method for updating an equipment system according to another embodiment of the present application;
FIG. 3 is a schematic diagram illustrating steps of a method for updating an equipment system according to another embodiment of the present application;
FIG. 4 is a schematic diagram illustrating steps of a method for updating an equipment system according to still another embodiment of the present application;
fig. 5 is a schematic block diagram of an internal structure of an electronic device according to an embodiment of the present application.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present application and should not be construed as limiting the present application, and all other embodiments that can be derived by one of ordinary skill in the art based on the embodiments herein without making creative efforts shall fall within the protection scope of the present application.
Referring to fig. 1, in an embodiment, the method for updating the device system includes:
step S10, monitoring whether the system of the electronic equipment needs to be updated;
step S20, if yes, acquiring an update file required by system update, wherein the update file comprises a plurality of subfiles;
and step S30, executing the plurality of subfiles one by one to update the system of the electronic equipment.
In this embodiment, the terminal in this embodiment may be an electronic device (such as a smart phone, a computer device, or the like), or may be a device or apparatus that controls the electronic device. The following description will be given taking an example terminal as an electronic device.
As described in step S10, the system installed in the electronic device may be an Android system (Android), and a high-level system service is registered in an init.rc service process of the system of the electronic device as a listening service, where the listening service is used to monitor whether the system of the electronic device needs to be updated.
Optionally, the type of the listening service registration is power-on self-start. Therefore, after the electronic equipment is started to operate, the monitoring service can monitor whether the system needs to be updated in real time or at regular time by entering the system to register the corresponding monitor.
The terminal can monitor whether system updating information exists on a server providing related system updating service through the monitoring service so as to monitor whether the system of the electronic equipment needs to be updated; or, the terminal may monitor whether the update file of the electronic device system is stored in the storage device accessed to the electronic device through the monitoring service, so as to monitor whether the system of the electronic device needs to be updated.
As shown in step S20, when the terminal monitors that the system of the electronic device needs to be updated through the listening service, the update file required by the system being updated can be obtained.
If the terminal monitors that system update information exists on a server providing related system update service, downloading and acquiring a corresponding update file from the server; if the terminal monitors that the corresponding update file is stored in the storage device accessed to the electronic device, the corresponding update file is copied from the storage device and acquired. It should be understood that the version of the update file that is obtained should be newer than the current system version of the electronic device.
Optionally, when the developer providing the system update service of the electronic device makes the corresponding update file, the corresponding update file may be split into a plurality of subfiles, and then all the subfiles are uniformly packaged into a data packet, where the data packet is the total update file, and the data packet may be a complete packet or a differential packet. After the terminal acquires the data packet corresponding to the update file, unpacking the data packet to obtain all the subfiles corresponding to the update file.
Optionally, each subfile includes at least one firmware. A developer may split the entire update file into subfiles corresponding to different function modules according to each function module of the system in advance (that is, one function module of the system corresponds to one subfile, and the subfile includes all firmware that needs to be updated under the function module); or, according to each firmware type, splitting the entire update file into subfiles corresponding to different firmware types (that is, one subfile corresponds to one firmware type, and the subfile includes all the firmware to be updated in the firmware type).
Alternatively, the terminal may be pre-built with a neural network model based on artificial intelligence technology, and the neural network model may be used to deconstruct the entire update file into multiple firmware as multiple subfiles. The neural network can be based on a plurality of data packet samples and training samples (the training samples can be marked manually by related engineers) consisting of a plurality of firmware corresponding to the data packet samples, and after repeated iterative training, a trained neural network model is obtained. Therefore, when the update file acquired by the terminal is a complete data packet (that is, a developer of the update file does not make the update file into a plurality of subfiles in advance), the terminal can deconstruct the complete data packet corresponding to the update file by using the trained neural network model, so as to obtain the plurality of subfiles corresponding to the update file.
As described in step S30, when the terminal obtains a plurality of subfiles corresponding to the updated file, the terminal executes the subfiles one by one to update the system of the electronic device. And if all the subfiles are successfully executed, the system is updated, and then the terminal can delete all the subfiles corresponding to the updated file and restart the system.
It should be noted that, even though the total file size of all the sub-files corresponding to the update file is almost the same as the file size of the complete update file, the file size of a single sub-file is much smaller than the file size of the complete update file, so that the system key performance parameters such as the storage size, the CPU utilization, and the like required by the electronic device when executing a single sub-file will be smaller than the system key performance parameters such as the storage size, the CPU utilization, and the like required when directly executing a complete update file, so that not only the sub-file response is faster executed, but also compared with directly executing a complete update file, it is less likely to make an error when executing a plurality of sub-files one by one (for example, the situation that the system does not react or the system crashes due to the execution of the file being too large; or conversely, if directly executing a complete update file, it is likely to cause the situation that the system does not react or the system crashes due to the execution of the file being too large file), thereby reducing the probability of system update errors.
Moreover, even if the total file size of all the subfiles corresponding to the update file is almost the same as the file size of the complete update file, the total time required for executing all the subfiles is still shorter than the time required for directly executing the complete update file. This is because, although the time required for executing a file by a general system is positively correlated with the size of the file for executing the file, i.e., the larger the executing file is, the longer the required time is, the positive correlation is not simply linearly increased, but is more similar to exponential increase (due to various comprehensive factors such as the system performance, the larger the executing file is loaded, the longer the response time is). For example, the total time required for respectively executing two 1G files is generally less than the time required for directly executing one 2G file, that is, the time required for directly executing one 2G file is not equal to the simple sum of the time required for respectively executing two 1G files, but is greater than the total time required for respectively executing two 1G files.
Therefore, the time length for updating the system of the electronic device by splitting the update file into the plurality of subfiles and executing the plurality of subfiles one by one is greatly shorter than the time length required for directly executing a complete update file.
In an embodiment, the update file of the system of the electronic device is split into the plurality of subfiles, so that when the system of the electronic device is updated, each corresponding module in the device system can be updated one by one based on the plurality of subfiles, and therefore the update time of the system is shortened and the error probability of the update is reduced.
In an embodiment, on the basis of the above embodiment, the method for updating the device system further includes:
in the process of executing the plurality of subfiles one by one, if the error reporting of the system updating is detected, the subfiles executed during the error reporting of the updating are used as target subfiles;
and re-executing the target subfile.
In this embodiment, in the process that the terminal executes the plurality of subfiles corresponding to the update file one by one, if a system update error is detected when any subfile is executed, the subfile being executed when the current update error is reported is used as the target subfile, and then the terminal executes the target subfile again (i.e., retry execution of the target subfile), so that efficiency of retry update after the system update fails is improved.
In the existing scheme for directly executing the complete update file to perform the system update, once the update is retried after error report, only the complete update file (including the part which is successfully updated before being re-executed) can be re-executed to perform the update retry, so that the whole process is long in time consumption and low in efficiency; in the embodiment, in the process of updating the system of the electronic device based on the plurality of subfiles, once an update error occurs, only the subfile for which the update error is performed needs to be retried, and the subfile which is completed before the update error is not required to be re-executed, so that the efficiency of performing the update retry after the update failure of the system is greatly improved.
In an embodiment, after the step of re-executing the target subfile, the method further includes:
and if the target subfile is successfully executed and the existence of the unexecuted subfile is detected, executing the unexecuted subfile.
In this embodiment, in the process that the terminal executes the plurality of subfiles corresponding to the update file one by one, if a system update error is detected when any subfile is executed, the subfile being executed when the current update error is reported is used as a target subfile, and then the terminal executes the target subfile again.
Optionally, if the target subfile is successfully executed, the terminal further detects whether there is an unexecuted subfile.
Optionally, if the terminal detects that there is no unexecuted subfile, it determines that the system update is completed, and then the terminal may delete all subfiles corresponding to the updated file and restart the system.
Optionally, if the terminal detects that the unexecuted subfiles still exist, the unexecuted subfiles are continuously executed one by one to continuously update the system of the electronic device, so that the efficiency of continuously updating the system after retry of system updating is improved.
In an embodiment, after the step of re-executing the target subfile, the method further includes:
if the target subfile fails to be executed, detecting whether the number of times of the target subfile failure is greater than a preset number of times;
and if not, re-executing the target subfile.
In this embodiment, after the execution of each subfile fails, the number of times of the execution failure can be recorded.
Optionally, in the process that the terminal executes the plurality of subfiles corresponding to the update file one by one, if a system update error is detected when any subfile is executed, the subfile being executed when the current update error is reported is used as a target subfile, the number of times of execution failure of the target subfile is increased by one, and then the terminal executes the target subfile again.
Optionally, if the terminal detects that the target subfile fails to be executed again, the terminal further detects whether the number of execution failures of the target subfile is greater than a preset number while accumulating one to the number of execution failures of the target subfile. The preset number of times can be set by the relevant engineer according to the actual situation of system failure retry, for example, set to 3, 5, etc.
Optionally, if the terminal detects that the execution failure times of the target subfile are less than or equal to the preset times, the terminal may continue to execute the target subfile again until the target subfile is successfully executed, or until the corresponding execution failure times are greater than the preset times.
Optionally, if the terminal detects that the execution failure times of the target subfile is greater than the preset times, the system update identification can be determined, the system update is exited, and the system is restored to the state before the update, so that the system is prevented from falling into update endless loop and wasting system computing resources.
Optionally, when the system update fails, the terminal may further delete all the subfiles corresponding to the update file, and/or send system update failure information to a developer providing the system update service.
In an embodiment, on the basis of the foregoing embodiment, after the step of detecting whether the number of times of execution failures of the target subfile is greater than a preset number of times, the method further includes:
if yes, detecting whether the target subfile belongs to a preset non-key file;
and if the target subfile does not belong to a preset non-key file, skipping execution of the target subfile so as to continuously update the system of the electronic equipment.
In this embodiment, if the terminal detects that the target subfile fails to be executed again, the terminal further detects whether the number of execution failures of the target subfile is greater than a preset number while adding one to the number of execution failures of the target subfile.
Optionally, if the terminal detects that the execution failure times of the target subfile are greater than the preset times, it is further detected whether the target subfile belongs to a preset non-critical file. When a developer makes a data packet updated by the system, the developer can add preset non-key file information into the data packet, wherein the preset non-key file information is preset with relevant information of subfiles belonging to non-key files in the data packet; the non-critical file refers to a subfile which does not need to be updated in association with other subfiles, that is, a subfile belonging to the non-critical file, and whether the execution is successful or not does not affect the updating of the other subfiles to the system, and even if the firmware part corresponding to the non-critical file is not updated, if the firmware part corresponding to the other critical file is updated, the updated system can still normally operate (for example, the subfile belonging to the preset non-critical file, the firmware part corresponding to the non-critical file can still be linked with other firmware parts having updates even if the firmware part is not updated).
Optionally, if the terminal detects that the target subfile with the execution failure times greater than the preset times belongs to the preset non-critical file, the terminal may skip executing the target subfile and detect whether there is an unexecuted subfile. If the terminal detects that the unexecuted subfiles do not exist, the system is judged to be updated, then the terminal can delete all the subfiles corresponding to the updated file and restart the system; if the terminal detects that the unexecuted subfiles still exist, the terminal continues to execute the unexecuted subfiles one by one to continue to update the system of the electronic equipment, so that the efficiency of continuously updating the system after retrying the system updating is improved.
Therefore, when the target subfile cannot be successfully executed and belongs to the preset non-key file, the target subfile is skipped to be executed, the system is continuously updated, the efficiency and the feasibility of system updating are improved, the terminal does not need to update the firmware part corresponding to the subfile which cannot be executed and belongs to the non-key file, and the system can still normally operate based on the updated other subfiles.
Optionally, if the terminal detects that the target subfile with the execution failure times greater than the preset times does not belong to the preset non-key file, it indicates that the target subfile belongs to the key file, and if the target subfile cannot be executed, the system cannot complete updating, so that the terminal may determine that the system has failed to update, quit the system updating, and restore the system to the state before updating. And when the system updating fails, the terminal can also delete all the subfiles corresponding to the updated file and/or send system updating failure information to a developer providing system updating service.
In an embodiment, referring to fig. 2, on the basis of the above embodiment, the step of monitoring whether the system of the electronic device needs to be updated includes:
step S11, when detecting that a storage device is accessed to the electronic device, detecting whether an update mark exists in the storage data of the storage device; if the stored data has an update mark, judging that a system of the electronic equipment needs to be updated; and if the update mark does not exist in the stored data, judging that the system of the electronic equipment does not need to be updated.
In this embodiment, when a developer makes a data packet for system update, the developer may add a corresponding update flag to the data packet.
Optionally, when the terminal monitors that the storage device is accessed to the electronic device, it may detect whether the update flag exists in the storage data of the storage device through the corresponding monitoring service, so as to monitor whether the system of the electronic device needs to be updated. Wherein, the storage device may be a mobile memory, a mobile hard disk, a network Attached storage device (or called nas (network Attached storage) box), and the like; the mode of accessing the storage device to the electronic device may be through a data transmission interface of the electronic device, or through a network.
Optionally, when the terminal detects that the update flag exists in the storage data of the storage device, it is determined that the system of the electronic device needs to be updated currently, and the data packet to which the update flag belongs is used as the data packet corresponding to the update file, and then the data packet is unpacked and loaded, so as to obtain a plurality of subfiles used for updating the system in the data packet. Therefore, the convenience of updating the system of the electronic equipment is improved, and the electronic equipment can automatically acquire the corresponding updating data packet to automatically update the system only by storing the data packet updated by the system into the electronic equipment by a user.
Optionally, when the terminal detects that the update flag does not exist in the storage data of the storage device, it determines that the system of the electronic device does not need to be updated currently, and continues to perform step S10 (including step S11 and/or step S12) periodically or in real time to continue to monitor whether the system of the electronic device needs to be updated.
In an embodiment, referring to fig. 3, on the basis of the above embodiment, the step of monitoring whether the system of the electronic device needs to be updated includes:
step S12, detecting whether system updating information exists in a server associated with the system of the electronic equipment; if the server has system updating information, judging that the system of the electronic equipment needs to be updated; and if the server does not have system updating information, judging that the system of the electronic equipment does not need to be updated.
In this embodiment, after the developer providing the system update service makes the data packet of the system update, the developer may publish the corresponding data packet to a server (e.g., a server dedicated to providing the system update service) associated with the system of the electronic device, and publish corresponding system update information on the server.
Optionally, the terminal may monitor, in a regular time or in real time, whether the server associated with the system has corresponding system update information through a corresponding monitoring service, so as to monitor whether the system of the electronic device needs to be updated.
Optionally, when the terminal detects that the server has system update information (for example, when new system update information is issued on the server), it determines that the system of the electronic device currently needs to be updated, and may automatically download a corresponding data packet from the server, and then unpack and load the data packet, so as to obtain a plurality of subfiles for performing system update in the data packet. Therefore, automatic updating of the system of the electronic equipment can be realized without manual intervention of a user, and convenience in updating the system of the electronic equipment is improved.
Optionally, when the terminal detects that the server does not have system update information (e.g., no new system update information is issued on the server), it determines that the system of the electronic device does not need to be updated currently, and continues to perform step S10 (including step S11 and/or step S12) periodically or in real time to continue monitoring whether the system of the electronic device needs to be updated.
In an embodiment, referring to fig. 4, on the basis of the foregoing embodiment, after the step of obtaining the update file required by the system update, the method further includes:
step S40, carrying out data integrity check on the updated file;
step S41, if the data integrity check passes, executing the plurality of subfiles one by one to update the system of the electronic device.
In this embodiment, after obtaining the updated file including the plurality of subfiles, the terminal may perform data integrity check (or referred to as data consistency check) on the updated file.
Optionally, the terminal may use a preset algorithm (e.g., a crc algorithm, an md5 algorithm, etc.) to calculate a first check value corresponding to the obtained updated file, and calculate a second check value of the original updated file, respectively. Wherein the original update file may be stored on a server or storage device associated with the system; alternatively, the second check value of the original update file may be provided by a developer of the update file, and the terminal may directly obtain the second check value when obtaining the update file.
Optionally, if the terminal detects that the first check value is consistent with the second check value, it is determined that the updated file passes the data integrity check; and if the terminal detects that the first check value is inconsistent with the second check value, judging that the updated file does not pass the data integrity check.
Optionally, if the terminal detects that the obtained updated file passes the data integrity check, the step of executing the plurality of subfiles one by one to update the system of the electronic device is executed (i.e., step S30); and if the terminal detects that the acquired update file does not pass the data integrity check, deleting the update file, and acquiring the update file from the related server or storage equipment again.
Therefore, the update files for updating the system can be ensured to be correct, and the update files with mistakes and omissions are prevented from being used for updating the system.
Referring to fig. 5, an electronic device is further provided in the embodiment of the present application, and an internal structure of the electronic device may be as shown in fig. 5. The electronic device includes a processor, a memory, a communication interface, and a database connected by a system bus. Wherein the processor is configured to provide computational and control capabilities. The memory of the electronic equipment 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 operating system and the computer program to run on the non-volatile storage medium. The database of the electronic device is used for updating the program of the equipment system. The communication interface of the electronic device is used for connecting and communicating with an external terminal through a network. The input device of the electronic equipment is used for receiving signals input by external equipment. The computer program is executed by a processor to implement an updating method of the device system as described in the above embodiments.
It will be understood by those skilled in the art that the structure shown in fig. 5 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the electronic device to which the present application is applied.
Furthermore, the present application also proposes a computer-readable storage medium, which includes an update program of an equipment system, and the update program of the equipment system implements the steps of the update method of the equipment system as described in the above embodiment when executed by a processor. It is to be understood that the computer-readable storage medium in the present embodiment may be a volatile-readable storage medium or a non-volatile-readable storage medium.
In summary, in the method for updating an equipment system, the electronic device, and the computer-readable storage medium provided in the embodiments of the present application, the update file of the system of the electronic device is split into a plurality of subfiles, so that when the system of the electronic device is updated, each corresponding module in the equipment system can be updated one by one based on the plurality of subfiles, thereby shortening the time for updating the system and reducing the probability of an update error.
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 provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all the equivalent structures or equivalent processes that can be directly or indirectly applied to other related technical fields by using the contents of the specification and the drawings of the present application are also included in the scope of the present application.

Claims (10)

1. An updating method of a device system, comprising:
monitoring whether a system of the electronic device needs to be updated;
if yes, acquiring an update file required by system updating, wherein the update file comprises a plurality of subfiles;
and executing the plurality of subfiles one by one to update the system of the electronic equipment.
2. The method for updating an equipment system according to claim 1, further comprising:
in the process of executing the plurality of subfiles one by one, if the error reporting of the system updating is detected, the subfiles executed during the error reporting of the updating are used as target subfiles;
and re-executing the target subfile.
3. The method for updating an equipment system according to claim 2, wherein the step of re-executing the target subfile is followed by further comprising:
and if the target subfile is successfully executed and the existence of the unexecuted subfile is detected, executing the unexecuted subfile.
4. The method for updating an equipment system according to claim 2, wherein the step of re-executing the target subfile is followed by further comprising:
if the target subfile fails to be executed, detecting whether the number of times of the target subfile failure is greater than a preset number of times;
and if not, re-executing the target subfile.
5. The method for updating an equipment system according to claim 4, wherein after the step of detecting whether the target subfile fails to be executed more than a preset number of times, the method further comprises:
if yes, detecting whether the target subfile belongs to a preset non-key file;
and if the target subfile belongs to a preset non-key file, skipping the execution of the target subfile so as to continuously update the system of the electronic equipment.
6. The method for updating an equipment system according to any one of claims 1-5, wherein the step of monitoring whether the system of electronic equipment needs to be updated comprises:
when detecting that a storage device is accessed to the electronic device, detecting whether an update mark exists in storage data of the storage device;
if the stored data has an update mark, judging that a system of the electronic equipment needs to be updated; and if the update mark does not exist in the stored data, judging that the system of the electronic equipment does not need to be updated.
7. The method for updating an equipment system according to any one of claims 1-5, wherein the step of monitoring whether the system of electronic equipment needs to be updated comprises:
detecting whether system update information exists in a server associated with a system of the electronic equipment;
if the server has system updating information, judging that the system of the electronic equipment needs to be updated; and if the server does not have system updating information, judging that the system of the electronic equipment does not need to be updated.
8. The method for updating an equipment system according to any one of claims 1-5, wherein the step of obtaining the update file required for system update is followed by further comprising:
carrying out data integrity check on the update file;
and if the data integrity check is passed, executing the plurality of subfiles one by one to update the system of the electronic equipment.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor and an update program of a device system stored on the memory and operable on the processor, the update program of the device system realizing the steps of the update method of the device system according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an update program of a device system, which when executed by a processor implements the steps of the update method of the device system according to any one of claims 1 to 8.
CN202210790345.6A 2022-07-06 2022-07-06 Method for updating device system, electronic device, and storage medium Pending CN115113907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210790345.6A CN115113907A (en) 2022-07-06 2022-07-06 Method for updating device system, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210790345.6A CN115113907A (en) 2022-07-06 2022-07-06 Method for updating device system, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN115113907A true CN115113907A (en) 2022-09-27

Family

ID=83333479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210790345.6A Pending CN115113907A (en) 2022-07-06 2022-07-06 Method for updating device system, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN115113907A (en)

Similar Documents

Publication Publication Date Title
CN110058873B (en) Application page updating method, device, equipment and storage medium
US9804933B2 (en) System differential upgrade method, apparatus, and mobile terminal
CN110209405B (en) Automatic upgrading method and device for distributed system
KR20070034239A (en) Method and system for updating software and computer readable recording medium recording the method
CN110837388B (en) Software upgrading method of robot, upgrading server, robot and storage medium
CN111263354B (en) OTA differential upgrading method and device
CN113326058A (en) Method, device, equipment and medium for updating version of application
CN112015447A (en) System updating method and device for electronic equipment, electronic equipment and storage medium
CN111884834A (en) Zookeeper-based distributed system upgrading method and system and computer equipment
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN114489732A (en) Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment
CN115113907A (en) Method for updating device system, electronic device, and storage medium
CN111176671B (en) Method for automatically and continuously updating system, mobile terminal and storage medium
CN115543429A (en) Project environment building method, electronic equipment and computer readable storage medium
CN112328287B (en) Method, device, equipment and storage medium for updating embedded equipment system
CN115454860A (en) Automatic testing method and device, storage medium and electronic equipment
CN114356658A (en) Processing method of firmware upgrading exception, computer equipment and readable storage medium
CN114546842A (en) Interface test method and device, storage medium and electronic equipment
CN113709195A (en) Vehicle software upgrading method, device and system
CN111209197A (en) Application program continuous integration test method, system, equipment and storage medium
CN110825406A (en) Software upgrading method and related equipment
CN111918278A (en) Over-the-air upgrade checking method, device, medium and intelligent terminal equipment
CN111949268A (en) Project compiling method and device, electronic equipment and storage medium
US9912727B1 (en) Multiple concurrent in-flight replies in a distributed state system
CN110874238A (en) Online service updating method and device

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