Data processing method and device, equipment and storage medium

By reading the upper layer application in the embedded device and verifying it, entering the waiting broadcast state or the Boot main program for firmware update, the problem of damage and inability to update the upper layer application is solved, and the device's independent firmware update is realized.

CN119987807APending Publication Date: 2025-05-13YISHI TECH (NINGBO) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411974399.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

When the upper layer application of embedded devices is damaged, the firmware cannot be updated independently. It requires disassembly and uses jtag and other tools to write online. The existing OTA update solution is not flexible enough.

Method used

Provides a data processing method, by reading the upper layer application of the embedded device for verification, entering the waiting broadcast state or the Boot main program for firmware update, and timeout operation is performed when the timeout, including loading the startup image file and running software to achieve firmware update.

Benefits of technology

It effectively avoids the problem of firmware not being upgraded, solves the problem of damage to upper-level applications and cannot be updated, and realizes the device's independent firmware update without button pressing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987807A_ABST
    Figure CN119987807A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, equipment and a storage medium. The method comprises the steps that an upper-layer application of embedded equipment is read; judging whether the upper-layer application passes verification or not, if the upper-layer application passes verification, entering a broadcast waiting state, and if the upper-layer application does not pass verification, entering the Boot main program; and when a firmware updating instruction is received in the broadcast waiting state, entering the Boot main program to perform firmware updating, and when the broadcast waiting state is overtime, performing overtime operation. The data processing method and device, the equipment and the storage medium have the beneficial effect that the situation that firmware cannot be upgraded can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, apparatus, and device, namely, a storage medium. Background Art

[0002] Embedded devices need to update their firmware via OTA. Existing solutions all use external trigger signals to put the device into an upgrade state and then download the corresponding firmware to complete the update.

[0003] Generally speaking, damage to the upper-layer application will cause the device to become bricked and unable to update itself, requiring the device to be disassembled and burned online using tools such as jtag. Summary of the invention

[0004] The content of this application is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this application is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0005] Some embodiments of the present application propose methods, devices, electronic devices, and computer-readable media to solve the technical problems mentioned in the above background technology section.

[0006] As the first aspect of the present application, some embodiments of the present application provide a data processing method including: reading an upper-layer application of an embedded device; determining whether the upper-layer application has passed verification, and if so, entering a waiting broadcast state; if not, entering the Boot main program; when a firmware update instruction is received in the waiting broadcast state, entering the Boot main program to perform a firmware update, and when the waiting broadcast state times out, performing a timeout operation.

[0007] Optionally, in some implementations of the present application, the data processing method further includes: loading a startup image file after the system is powered on.

[0008] Optionally, in some implementations of the present application, the data processing method further includes: Run the software in the startup image file.

[0009] Optionally, in some embodiments of the present application, the waiting broadcast state is waiting for UDP broadcast.

[0010] Optionally, in some implementations of the present application, performing the timeout operation includes: using ICAP2Work lmage including bootload.

[0011] The timeout operation includes: modifying ADDR to load workimage including fsbl.

[0012] Optionally, in some embodiments of the present application, the timeout operation includes: reading the work partition to load the workimage including fsbl.

[0013] As the second aspect of the present application, some embodiments of the present application provide a reading module for reading the upper-layer application of an embedded device; a judgment module for judging whether the upper-layer application has passed the verification, and if the verification is passed, entering the waiting broadcast state, and if the verification fails, entering the Boot main program; an execution module, when receiving a firmware update instruction in the waiting broadcast state, entering the Boot main program to update the firmware, and when the waiting broadcast state times out, performing a timeout operation.

[0014] As the third aspect of the present application, some embodiments of the present application provide an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0015] As a fourth aspect of the present application, some embodiments of the present application provide a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the method described in any implementation of the above-mentioned first aspect is implemented.

[0016] The beneficial effect of the present application is to provide a data processing method, device, equipment, or storage medium that can effectively prevent firmware from being unable to be upgraded.

[0017] More specifically, some embodiments of the present application may produce the following specific beneficial effects: The boot main program includes functions such as updating upper-layer applications through the network.

[0018] If the upper-layer application fails the verification, it will enter the boot main program, which solves the problem that the upper-layer application is damaged and cannot be updated.

[0019] After the upper-layer application passes the verification, it will enter the waiting UDP broadcast state for a period of time. When receiving the UDP command, it will also enter the boot main program. This solves the problem that the device cannot actively enter the firmware update state without a button. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The illustrative embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application.

[0021] In addition, throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the components and elements are not necessarily drawn to scale.

[0022] In the attached picture: Figure 1 It is a schematic diagram of the main steps of a data processing method according to an embodiment of the present application; Figure 2 is a schematic diagram of a first process of a data processing method according to an embodiment of the present application; Figure 3 is a schematic diagram of a second process of a data processing method according to an embodiment of the present application; Figure 4 is a schematic diagram of a third process of a data processing method according to an embodiment of the present application; Figure 5 is a structural schematic diagram of a data processing device according to an embodiment of the present application; Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0024] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0025] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0026] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0027] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0028] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0029] Reference Figure 1 As shown, as a first aspect of the present application, some embodiments of the present application provide a data processing method whose main steps include: S101: Read the upper layer application of the embedded device.

[0030] S102: Determine whether the upper layer application has passed the verification, if the verification has passed, enter the waiting broadcast state, if the verification has not passed, enter the Boot main program.

[0031] S103: When a firmware update instruction is received in the waiting broadcast state, the Boot main program is entered to perform firmware update. When the waiting broadcast state times out, a timeout operation is performed.

[0032] Reference Figures 2 to 4 As shown, optionally, in some implementation modes of the present application, the data processing method further includes: loading a startup image file after the system is powered on.

[0033] Optionally, in some implementations of the present application, the data processing method further includes: Run the software in the startup image file.

[0034] Optionally, in some embodiments of the present application, the waiting broadcast state is waiting for UDP broadcast.

[0035] Optionally, in some implementations of the present application, performing the timeout operation includes: using ICAP2Work lmage including bootload.

[0036] Optionally, in some embodiments of the present application, performing a timeout operation includes: modifying ADDR to load workimage including fsbl.

[0037] Optionally, in some embodiments of the present application, the timeout operation includes: reading the work partition to load the workimage including fsbl.

[0038] Reference Figure 5 As the second aspect of the present application, some embodiments of the present application provide a reading module for reading the upper-layer application of an embedded device; a judgment module for judging whether the upper-layer application has passed the verification, and if the verification is passed, entering the waiting broadcast state, and if the verification fails, entering the Boot main program; an execution module, when receiving a firmware update instruction in the waiting broadcast state, entering the Boot main program to update the firmware, and when the waiting broadcast state times out, performing a timeout operation.

[0039] like Figure 6 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0040] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0041] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0042] It should be noted that the computer-readable medium described above in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0043] In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0044] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperTextTransferProtocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an adhoc peer-to-peer network), as well as any currently known or future developed network.

[0045] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: reads the upper layer application of the embedded device; determines whether the upper layer application passes the verification, and enters the waiting broadcast state if the verification passes, and enters the Boot main program if the verification fails; when receiving the firmware update instruction in the waiting broadcast state, enters the Boot main program to update the firmware, and when the waiting broadcast state times out, performs a timeout operation.

[0046] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0047] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, which contains one or more executable instructions for implementing a specified logical function.

[0048] It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures.

[0049] For example, two boxes shown in succession may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0050] The units described in some embodiments of the present disclosure may be implemented by software or by hardware.

[0051] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0052] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A data processing method, characterized in that: The data processing method comprises: Read the upper layer application of embedded devices; Determine whether the upper layer application has passed the verification, if the verification is passed, enter the waiting broadcast state, if the verification is not passed, enter the Boot main program; When a firmware update instruction is received in the waiting broadcast state, the Boot main program is entered to perform firmware update. When the waiting broadcast state times out, a timeout operation is performed.

2. The data processing method according to claim 1, characterized in that: in, The data processing method further includes: After the system is powered on, load the boot image file.

3. The data processing method according to claim 2, characterized in that: in, The data processing method further includes: Run the software in the startup image file.

4. The data processing method according to claim 3, characterized in that: in, The waiting broadcast state is waiting for UDP broadcast.

5. The data processing method according to claim 4, characterized in that: in, The timeout operation comprises: Use ICAP2Work lmage including bootload.

6. The data processing method according to claim 4, characterized in that: in, The timeout operation comprises: Modify ADDR to load workimage including fsbl.

7. The data processing method according to claim 4, characterized in that: in, The timeout operation comprises: Read the work partition and load the workimage including fsbl.

8. A data processing device, comprising: Reading module, used to read the upper layer application of embedded devices; A judgment module, judging whether the upper layer application has passed the verification, if the verification is passed, entering the waiting broadcast state, if the verification is not passed, entering the Boot main program; The execution module enters the Boot main program to update the firmware when receiving a firmware update instruction in the waiting broadcast state, and performs a timeout operation when the waiting broadcast state times out.

9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.