Data processing method, electronic device, and computer-readable storage medium
Patent Information
- Application Number
- CN202610971539.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]然而,这会使得在仅升级单个系统时,也需要将其他系统的版本一同打包生成镜像文件,而且所有系统不一定由同一运维团队负责维护升级,需要等所有升级版本都确定后再进行系统升级,从而使得维护效率降低、维护周期增加,容易影响用户的使用体验
[0016]The aforementioned data processing method, electronic device, and computer-readable storage medium, by setting up multiple system partitions, with each system partition being independent of the others, enable the subsystems stored within each system partition to form a decoupled structure. During system upgrades, each subsystem can obtain the corresponding system image from the upgrade firmware as needed for upgrade, thereby achieving decoupling of the system upgrade process for each subsystem. This ensures that each system upgrade does not require upgrading all subsystems, thus increasing the overall system maintenance efficiency, reducing the maintenance cycle of subsystems, and helping to ensure a better user experience.
Smart Images

Figure CN122924801A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded systems technology, and in particular to a data processing method, an electronic device, and a computer-readable storage medium. Background Technology
[0002] An embedded system is a dedicated computer system that is application-centric and features customizable software and hardware to meet stringent requirements in terms of functionality, reliability, cost, size, and power consumption.
[0003] Currently, the main upgrade method for multi-system architecture based on embedded systems is to package all system upgrade versions into an image file, then upload and burn the firmware containing the image file, and then have the device restart and load the image file.
[0004] However, this means that when upgrading only a single system, it is also necessary to package the versions of other systems together to generate image files. Moreover, all systems may not be maintained and upgraded by the same operations and maintenance team. System upgrades can only be carried out after all upgrade versions are determined, which reduces maintenance efficiency, increases maintenance cycle, and can easily affect the user experience. Summary of the Invention
[0005] The present invention provides a data processing method, an electronic device, and a computer-readable storage medium to solve at least one of the aforementioned technical problems.
[0006] The present invention provides a data processing method for an electronic device. The data processing method includes: obtaining upgrade firmware, the upgrade firmware including at least one system image; and, if the upgrade firmware passes verification, performing system upgrade processing on a corresponding subsystem based on at least one system image. The electronic device has multiple system partitions, each system partition storing one subsystem, the multiple system partitions being independent of each other, and the subsystem being at least a part of an embedded system or one of its controller systems.
[0007] In one optional technical solution of the present invention, the data processing method includes: after obtaining the upgrade firmware, determining a firmware header in the upgrade firmware; performing legality verification and integrity verification on the firmware header; and determining that the upgrade firmware passes the verification if it is determined that the firmware header is legal and the system image file is complete.
[0008] In one optional technical solution of the present invention, the step of performing system upgrade processing on the corresponding subsystem according to at least one system image includes: according to the correspondence between the subsystem and the system image, refreshing at least one system image from the upgrade firmware to the corresponding system partition.
[0009] In one optional technical solution of the present invention, after performing system upgrade processing on the corresponding subsystem according to at least one of the system images, the process includes: if it is determined that the system image used for system upgrade processing includes an upgraded version of the embedded system, controlling the entire electronic device to restart.
[0010] In one optional technical solution of the present invention, after performing system upgrade processing on the corresponding subsystem according to at least one of the system images, the process includes: if it is determined that the system image used for system upgrade processing only includes the upgrade version of the at least one controller system, controlling the electronic device to restart the at least one of the subsystems that have completed the system upgrade processing.
[0011] In one optional technical solution of the present invention, the embedded system includes a hardware driver subsystem, a gateway subsystem, and a core management service subsystem, wherein the hardware driver subsystem, the gateway subsystem, and the core management service subsystem are respectively stored in different system partitions.
[0012] In one optional technical solution of the present invention, the controller system includes at least one of a network controller system, a network video control system, a network video recording system, and an access control system.
[0013] The present invention provides an electronic device comprising a system storage module and a control module. The system storage module has multiple system partitions, each system partition storing a subsystem. The multiple system partitions are independent of each other, and the subsystem is at least a part of an embedded system or one of its controller systems. The control module is configured to: acquire upgrade firmware, the upgrade firmware including at least one system image; and, if the upgrade firmware passes verification, perform system upgrade processing on the corresponding subsystem based on at least one system image.
[0014] The present invention provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the steps of the data processing method described in any of the above optional technical solutions.
[0015] The present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the steps of the data processing method described in any of the above optional technical solutions.
[0016] The aforementioned data processing method, electronic device, and computer-readable storage medium, by setting up multiple system partitions, with each system partition being independent of the others, enable the subsystems stored within each system partition to form a decoupled structure. During system upgrades, each subsystem can obtain the corresponding system image from the upgrade firmware as needed for upgrade, thereby achieving decoupling of the system upgrade process for each subsystem. This ensures that each system upgrade does not require upgrading all subsystems, thus increasing the overall system maintenance efficiency, reducing the maintenance cycle of subsystems, and helping to ensure a better user experience.
[0017] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0018] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart illustrating the data processing method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the modules of an electronic device according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the electronic device and upgrade firmware according to an embodiment of the present invention; Figure 4 This is another schematic diagram of the electronic device and upgrade firmware according to an embodiment of the present invention; Figure 5 This is a schematic diagram of another module of the electronic device according to an embodiment of the present invention.
[0019] Explanation of key component symbols: 100 electronic devices; The system includes a storage module 110, a control module 120, a memory 130, and a processor 140. Detailed Implementation
[0020] In the description of this invention, some of the disclosed content has been shown accordingly in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The following description with reference to the accompanying drawings is exemplary and is only used to explain the invention, and should not be construed as limiting the invention.
[0021] In the description of this invention, many different contents or examples are disclosed to implement different structures of the invention. To simplify the disclosure of this invention, the components and arrangements of specific examples are described below. Of course, these are merely examples and are not intended to limit the invention.
[0022] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," and "for example" indicate that a specific feature, structure, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0023] Please refer to Figure 1 A data processing method of the present invention can be used in an electronic device 100. The data processing method may include: 01: Obtain the upgrade firmware, which includes at least one system image; 02: If the firmware upgrade passes the verification, the corresponding subsystem is upgraded according to at least one system image. The electronic device 100 has multiple system partitions, each system partition stores a subsystem, and the multiple system partitions are independent of each other. The subsystem is at least part of the embedded system or one of the controller systems.
[0024] The data processing method of the present invention can be implemented by the electronic device 100 of the present invention. Specifically, please refer to... Figure 2 An electronic device 100 of the present invention may include a system storage module 110 and a control module 120. The system storage module 110 may have multiple system partitions. Each system partition stores one subsystem. The multiple system partitions are independent of each other. The subsystem is at least a part of an embedded system or one of its controller systems. The control module 120 may be used to: obtain upgrade firmware, the upgrade firmware including at least one system image; and, if the upgrade firmware passes verification, perform system upgrade processing on the corresponding subsystem based on at least one system image.
[0025] The aforementioned data processing method and electronic device 100, by setting up multiple system partitions, with each system partition being independent of the others, enable the subsystems stored within each system partition to form a decoupled relationship. During system upgrades, each subsystem can obtain the corresponding system image from the upgrade firmware as needed for upgrade, thereby achieving decoupling of the system upgrade process of each subsystem. This ensures that each system upgrade does not require upgrading all subsystems, thereby increasing the overall system maintenance efficiency, reducing the maintenance cycle of subsystems, and helping to ensure the user experience.
[0026] Specifically, electronic device 100 can be consumer electronic devices such as remote control, smart bracelet, electronic scale, electric toothbrush, etc.; automotive-related electronic devices and equipment such as engine control unit, vehicle anti-lock braking system, in-vehicle entertainment system, etc.; industrial-related control devices such as PLC (Programmable Logic Controller), robot controller, sensor acquisition terminal, etc.; medical devices such as blood glucose meter, CT machine control system, implantable pacemaker, etc.; and communication and Internet of Things related devices such as router, smart light, water and electricity meter, shared vehicle lock, etc.
[0027] For electronic device 100, it may have a multi-system architecture based on embedded system, that is, a system architecture that combines embedded system with other controller system. In this architecture, each independently operable part of the embedded system can be regarded as a subsystem, and each controller system itself has a complete single system architecture, and each controller system can also be regarded as a subsystem.
[0028] In this scenario, when a system upgrade of electronic device 100 is required, electronic device 100 can obtain an upgrade firmware containing an upgrade version of the subsystem (i.e., a system image). If the upgrade firmware contains only one system image, that system image corresponds to one of the subsystems in electronic device 100, meaning only one subsystem of electronic device 100 is upgraded. If there are two or more system images, each system image corresponds to one subsystem in electronic device 100, allowing electronic device 100 to perform a system upgrade on the stored subsystem corresponding to the system image through the system image in the upgrade firmware.
[0029] In practical applications, different electronic devices 100 can be pre-configured with different controller systems as needed. In one such implementation, the controller system in electronic device A only includes controller system a, and the controller system in electronic device B includes controller system a and controller system b. Based on this, the first upgrade firmware can only have an upgrade version corresponding to controller system a. This allows electronic device A to identify and obtain the system image corresponding to its own controller system (i.e., controller system a) from the first upgrade firmware to obtain the upgrade version of the corresponding controller system a. Similarly, electronic device B can also identify and obtain the system image corresponding to its own controller system (i.e., controller system a) from the upgrade firmware to obtain the upgrade version of the corresponding controller system a. Correspondingly, for controller system b of electronic device B, it can be upgraded using a second upgrade firmware with an upgrade version corresponding to controller system b. In this way, the controller system of different types of electronic devices 100 can be upgraded using the same upgrade firmware. This can effectively shield the differences between electronic devices 100 with different product forms. System upgrades for different types of electronic devices 100 can also be achieved by releasing the same upgrade firmware. This enables unified maintenance of electronic devices 100 with different product forms. Moreover, for electronic device B, controller system a and controller system b are decoupled from each other by being stored in different system partitions, which can support individual upgrades of the controller system. Based on supporting the diversification and ecosystem of electronic devices 100, the system maintenance process can be simplified, which is conducive to improving the maintenance efficiency of system upgrades.
[0030] In addition, for firmware upgrades, maintenance personnel can write upgrade versions of the corresponding subsystems in the backend to form a system image, upload the system image to the server, and then the server will package all uploaded system images together. When electronic device 100 needs a system upgrade, it can send a system upgrade request to the server via the network, and then the server will distribute the corresponding upgrade firmware to electronic device 100 via the network.
[0031] In this invention, the data processing method may include: After obtaining the upgrade firmware, determine the firmware header within the upgrade firmware; Perform legality and integrity checks on the firmware header; If the firmware header is found to be legitimate and the system image file is complete, the firmware upgrade is deemed to have passed verification.
[0032] The data processing method of the present invention can be implemented by the electronic device 100 of the present invention. Specifically, please refer to... Figure 2The control module 120 can be used to: after obtaining the upgrade firmware, determine the firmware header in the upgrade firmware; perform legality and integrity verification on the firmware header; and determine that the upgrade firmware passes the verification if the firmware header is legal and the system image file is complete.
[0033] This ensures the legality of the system upgrade and the integrity of the upgraded system.
[0034] Specifically, in some implementations, the upgrade firmware may include a firmware header and at least one system image. All system images can serve as the original firmware program within the upgrade firmware. From a physical storage perspective, the firmware header can be stored before the original firmware program within the upgrade firmware. The firmware header can be metadata that describes the identity information of the upgrade firmware.
[0035] In some implementations, the firmware header may include the target product model, hardware version, and board ID. After obtaining an upgrade firmware, the electronic device 100 can read the target product model, hardware version, and board ID from the firmware header and compare them with its own product information (the electronic device 100's own product model, hardware version, and board ID) to determine whether the upgrade firmware is suitable for the electronic device 100's system, or in other words, whether the target device that can use the upgrade firmware for system upgrades includes the electronic device 100. If the result is yes, the firmware header is considered legitimate; if the result is no, the system image in the upgrade firmware may not be suitable for the electronic device 100, or the upgrade firmware may have been tampered with or pose a security risk, thus the firmware header is considered illegitimate.
[0036] In some implementations, the firmware header may include a checksum or hash value calculated for the system image in the upgrade firmware. After acquiring an upgrade firmware, the electronic device 100 can read these checksums or hash values from the firmware header, and then perform the same algorithm to verify the system image in the upgrade firmware. The calculated result is then compared with the checksum or hash value in the firmware header to determine if the system image in the upgrade firmware is a complete file. If the result is yes, it indicates that the system image file in the upgrade firmware is complete and can be directly extracted for system upgrade, thus confirming the system image's integrity. If the result is no, it indicates that the system image file in the upgrade firmware is corrupted, and subsequent upgrades may result in an incomplete system, thus confirming the system image's incompleteness.
[0037] In this invention, step 02 (performing a system upgrade on the corresponding subsystem based on at least one system image) may include: Based on the correspondence between subsystems and system images, at least one system image is refreshed from the upgrade firmware to the corresponding system partition.
[0038] The data processing method of the present invention can be implemented by the electronic device 100 of the present invention. Specifically, please refer to... Figure 2 The control module 120 can be used to: refresh at least one system image from the upgrade firmware to the corresponding system partition according to the correspondence between the subsystem and the system image.
[0039] In this way, system upgrades of electronic device 100 can be achieved.
[0040] Specifically, in some implementations, the upgrade firmware may include the target storage media and starting address of all system images, or it may include the target partition names of all system images, which can serve as a correspondence between subsystems and system images. If the upgrade firmware passes verification, the target system partition can be determined from all system partitions in the electronic device 100 based on the target storage media and starting address of each system image in the upgrade firmware, or the target partition name of each system image. Then, the system images are refreshed to the target system partition based on the target storage media and starting address of the system images, or based on the target partition names of the system images, to refresh the subsystems located in the system partition.
[0041] Please combine Figure 3 ,exist Figure 3 In this electronic device 100, the subsystems include an embedded system, a first controller system, and a second controller system. The upgrade firmware includes a firmware header, an embedded system image, a first controller system image, and a second controller system image. Within the electronic device 100, the embedded system, the first controller system, and the second controller system are stored in different and independent system partitions. After the upgrade firmware passes verification through the firmware header, the embedded system image in the upgrade firmware is refreshed to the system partition (corresponding to the system partition in the electronic device 100 where the embedded system is stored) according to the correspondence between the subsystems and system images. Figure 3 Arrow a) in the image refreshes the first controller system image in the upgrade firmware to the system partition (corresponding to) where the first controller system is stored in electronic device 100. Figure 3 Arrow b in the image), and flashing the second controller system image from the upgrade firmware to the system partition of the electronic device 100 that stores the second controller system (corresponding to...). Figure 3 (arrow c in the image).
[0042] In addition, in some cases, the first controller system can be a network controller system, and the second controller system can be a security controller system (such as a network video control system and / or a network video recording system).
[0043] In this invention, after step 02 (performing a system upgrade on the corresponding subsystem based on at least one system image), the following may be included: If it is determined that the system image used for system upgrade processing includes the upgrade version of the corresponding embedded system, control the electronic device 100 to restart the entire device.
[0044] The data processing method of the present invention can be implemented by the electronic device 100 of the present invention. Specifically, please refer to... Figure 2 The control module 120 can be used to: control the entire electronic device 100 to restart when it is determined that the system image used for system upgrade processing includes an upgraded version of the embedded system.
[0045] In this way, electronic device 100 can operate with the upgraded system.
[0046] Please combine Figure 3 It is understandable that the embedded system generally serves as the underlying operating system of the electronic device 100. The data information output by the controller system needs to be calculated, analyzed, organized, and stored by the embedded system. Therefore, if the upgrade firmware includes an upgrade version corresponding to the embedded system, it means that this upgrade includes a system upgrade of the embedded system. After the system upgrade is completed, the electronic device 100 is restarted so that the restarted electronic device 100 runs with the upgraded embedded system, which can avoid the situation where the system data is not refreshed through the restart and causes operational errors.
[0047] In this invention, after step 02 (performing a system upgrade on the corresponding subsystem based on at least one system image), the following may be included: If it is determined that the system image used for system upgrade processing only includes an upgraded version of at least one controller system, the control electronics 100 restarts at least one subsystem that has completed the system upgrade processing.
[0048] The data processing method of the present invention can be implemented by the electronic device 100 of the present invention. Specifically, please refer to... Figure 2 The control module 120 can be used to: control the electronic device 100 to restart at least one subsystem that has completed the system upgrade process, provided that the system image used for system upgrade processing only includes an upgrade version corresponding to at least one controller system. This helps to improve the operating efficiency of the electronic device 100.
[0049] Specifically, please combine Figure 4 ,exist Figure 4In this context, the electronic device 100's subsystems include an embedded system, a first controller system, and a second controller system. The third upgrade firmware includes a firmware header and a first controller system image, and the fourth upgrade firmware includes a firmware header and a second controller system image. After confirming that the third and fourth upgrade firmwares have passed verification, the first controller system image in the third upgrade firmware is refreshed to the system partition (corresponding to the system partition in the electronic device 100 that stores the first controller system) according to the correspondence between the subsystems and system images. Figure 4 (arrow d in the image) refreshes the second controller system image from the fourth upgrade firmware to the system partition (corresponding to) where the second controller system is stored in the electronic device 100. Figure 4 (arrow e in the image).
[0050] It is understandable that the controller system can be used in conjunction with external control hardware. It generally does not have an underlying operating system, and its operation primarily affects the activation or deactivation of corresponding functions of the external control hardware on the electronic device 100, without causing the electronic device 100 to malfunction. Therefore, once it is confirmed that the upgrade firmware only includes the upgrade version for the corresponding controller system, it means that this upgrade is for the controller system, and the embedded system has not been updated. This allows control of the electronic device 100 to restart each upgraded controller system without requiring a full system restart, saving the additional time cost of restarting all systems. Furthermore, during this period, other controller systems that have not been upgraded can also operate normally, ensuring their proper functioning and ultimately improving the operating efficiency of the electronic device 100.
[0051] Furthermore, based on the above, for system maintenance personnel, when a system upgrade is required for the corresponding controller system, they can directly upload the corresponding upgrade version. That is, the upgrade firmware can include only a system image of the corresponding controller system. After obtaining the upgrade firmware, the electronic device 100 can upgrade only the corresponding controller system. After the upgrade is completed, it can also restart only the upgraded controller system. In this way, when different maintenance personnel are responsible for maintaining different controller systems, it is not necessary to wait for the upgrade versions of all controller systems to be completed before performing a system upgrade. The system upgrade version that is completed first can generate an upgrade firmware for the electronic device 100 to perform a system upgrade. This allows the maintenance work between multiple systems to be decoupled, which is conducive to improving the work efficiency of maintenance personnel and ensuring the user experience.
[0052] In this invention, the embedded system may include a hardware driver subsystem, a gateway subsystem, and a core management service subsystem. The hardware driver subsystem, gateway subsystem, and core management service subsystem are stored in different system partitions.
[0053] Specifically, in related technologies, embedded systems generally include a hardware adaptation layer and a basic service layer. The two layers are separated by software mechanisms, but in the actual physical space, the two layers are compiled and linked into a single file, which is loaded into the same physical memory at runtime. Moreover, the system content within each layer is also compiled and linked into a whole, sharing the kernel's code segment, data segment, and stack space at runtime. There are no physically independent circuits, meaning that all system content is mutually coupled.
[0054] In this invention, the embedded system is divided from a logical level to a functional level. The hardware driver in the hardware adaptation layer is processed to form a hardware driver subsystem to shield the differences between the hardware components in the electronic device 100. The gateway function in the basic service layer is processed to form a gateway subsystem for protocol conversion, data aggregation and forwarding, and device security management. The core management service (Central) in the basic service layer is processed to form a core management service subsystem for generating displayable page data, managing user access permissions, and controlling processes during system upgrades.
[0055] Based on the above, the embedded system is divided into multiple subsystems that can each stand on their own, and these subsystems are stored in different system partitions. This decouples the contents of the original embedded system from each other, and each subsystem can be maintained and upgraded independently. This provides a prerequisite for reducing the maintenance difficulty of the overall system during subsequent system upgrades.
[0056] In this invention, the controller system may include at least one of a network controller system, a network video control system, a network video recording system, and an access control system.
[0057] Specifically, depending on the type of electronic device 100, the electronic device 100 may include different controller systems. For network devices (such as servers), it may include a network controller system as the controller system; for security devices, it may include a network video control system and a network video recording system as the controller system; for access control devices, it may include an access control system as the controller system.
[0058] Please refer to Figure 5 The present invention provides an electronic device 100, which may include a memory 130 and a processor 140. The memory 130 stores a computer program. When the processor 140 executes the computer program, it can implement the steps of the data processing method of the embodiments of the present invention.
[0059] For example, when a computer program is executed by processor 140, the data processing methods that can be implemented include: 01: Obtain the upgrade firmware, which includes at least one system image; 02: If the firmware upgrade passes the verification, the corresponding subsystem is upgraded according to at least one system image. The electronic device has multiple system partitions, each system partition stores a subsystem, and the multiple system partitions are independent of each other. The subsystem is at least part of the embedded system or one of the controller systems.
[0060] The aforementioned electronic device 100, by setting up multiple system partitions, with each system partition being independent of the others, allows the subsystems stored within each system partition to be decoupled from each other. During system upgrades, each subsystem can obtain the corresponding system image from the upgrade firmware as needed for upgrade, thereby achieving decoupling of the system upgrade process of each subsystem. This means that each system upgrade does not require upgrading all subsystems, thus increasing the overall system maintenance efficiency, reducing the maintenance cycle of subsystems, and helping to ensure the user experience.
[0061] This invention provides a computer-readable storage medium on which a computer program can be stored. When executed by a processor, the computer program can implement the data processing method of the embodiments of this invention.
[0062] For example, when a computer program is executed by a processor, the data processing methods that can be implemented include: 01: Obtain the upgrade firmware, which includes at least one system image; 02: If the firmware upgrade passes the verification, the corresponding subsystem is upgraded according to at least one system image. The electronic device has multiple system partitions, each system partition stores a subsystem, and the multiple system partitions are independent of each other. The subsystem is at least part of the embedded system or one of the controller systems.
[0063] The computer-readable storage medium can be located in the control module 120 or in other terminals. The control module 120 can communicate with other terminals to obtain the corresponding program.
[0064] It is understood that computer-readable storage media can include: any entity or device capable of carrying a computer program, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. Computer programs can include computer program code. Computer program code can be in the form of source code, object code, executable files, or certain intermediate forms, etc.
[0065] In some embodiments of the present invention, the control module 120 may be a microcontroller chip that integrates a processor, memory, communication module, etc. The processor may be a central processing unit (CPU), a graphics processing unit (GPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0066] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0067] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a system including a processing module or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).
[0068] Although embodiments of the present invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to the embodiments of the present invention without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A data processing method for electronic devices, characterized in that, The data processing method includes: Obtain upgrade firmware, which includes at least one system image; If the upgraded firmware passes verification, the corresponding subsystem is upgraded according to at least one of the system images. The electronic device has multiple system partitions, each of which stores one of the subsystems. The multiple system partitions are independent of each other, and the subsystem is at least a part of an embedded system or one of its controller systems.
2. The data processing method according to claim 1, characterized in that, The data processing method includes: After obtaining the upgrade firmware, the firmware header is determined in the upgrade firmware; The firmware header is subjected to legality and integrity checks. If the firmware header is found to be legitimate and the system image file is complete, the upgraded firmware is deemed to have passed verification.
3. The data processing method according to claim 1, characterized in that, The system upgrade process for the corresponding subsystem based on at least one of the system images includes: Based on the correspondence between the subsystem and the system image, at least one of the system images is refreshed from the upgrade firmware to the corresponding system partition.
4. The data processing method according to claim 1, characterized in that, After performing system upgrade processing on the corresponding subsystem based on at least one of the system images, the process includes: If it is determined that the system image used for system upgrade processing includes an upgraded version of the embedded system, the electronic device is controlled to restart completely.
5. The data processing method according to claim 1, characterized in that, After performing system upgrade processing on the corresponding subsystem based on at least one of the system images, the process includes: If it is determined that the system image used for system upgrade processing only includes an upgraded version of the at least one controller system, the electronic device is controlled to restart at least one of the subsystems that has completed the system upgrade processing.
6. The data processing method according to claim 1, characterized in that, The embedded system includes a hardware driver subsystem, a gateway subsystem, and a core management service subsystem, which are stored in different system partitions.
7. The data processing method according to claim 1, characterized in that, The controller system includes at least one of a network controller system, a network video control system, a network video recording system, and an access control system.
8. An electronic device, characterized in that, The electronic device includes a system storage module and a control module. The system storage module has multiple system partitions, each of which stores a subsystem. The multiple system partitions are independent of each other, and the subsystem is at least a part of the embedded system or one of its controller systems. The control module is used for: Obtain upgrade firmware, which includes at least one system image; If the upgraded firmware passes verification, a system upgrade process is performed on the corresponding subsystem based on at least one of the system images.
9. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the data processing method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the data processing method according to any one of claims 1-7.