CN110780908A - Screen display program upgrading method and system and terminal equipment - Google Patents

Screen display program upgrading method and system and terminal equipment Download PDF

Info

Publication number
CN110780908A
CN110780908A CN201910924891.2A CN201910924891A CN110780908A CN 110780908 A CN110780908 A CN 110780908A CN 201910924891 A CN201910924891 A CN 201910924891A CN 110780908 A CN110780908 A CN 110780908A
Authority
CN
China
Prior art keywords
upgrading
data
upgrade
file
screen display
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
CN201910924891.2A
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.)
Zhangzhou Kehua Technology Co Ltd
Kehua Hengsheng Co Ltd
Original Assignee
Zhangzhou Kehua Technology Co Ltd
Kehua Hengsheng 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 Zhangzhou Kehua Technology Co Ltd, Kehua Hengsheng Co Ltd filed Critical Zhangzhou Kehua Technology Co Ltd
Priority to CN201910924891.2A priority Critical patent/CN110780908A/en
Publication of CN110780908A publication Critical patent/CN110780908A/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/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Landscapes

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

Abstract

The invention is suitable for the technical field of program updating, and discloses a method, a system and a terminal device for upgrading a screen display program, wherein the method comprises the following steps: when a screen display program upgrading instruction is received, entering a boot loader, and reading data of an upgrading zone bit stored in a first preset address, wherein the data stored in the first preset address is not lost when power failure occurs; if the data of the upgrading flag bit is matched with the preset upgrading flag, mounting a file system of the external storage device, reading an upgrading file from the file system, and writing the read data in the upgrading file into a second preset address; and after the read data in the upgrade file is successfully written into the second preset address, clearing the data in the upgrade flag bit. The invention can realize the upgrading of the screen display program only by using a tool of an external storage device, has simple operation process and higher program upgrading efficiency, and can improve the stability, reliability and flexibility of the program upgrading.

Description

Screen display program upgrading method and system and terminal equipment
Technical Field
The invention belongs to the technical field of program updating, and particularly relates to a method, a system and a terminal device for upgrading a screen display program.
Background
For display devices, it is often necessary to upgrade the screen display program when internal software function optimization or problem improvement is involved.
At present, a JLink burning mode is usually used when a program is upgraded, but the burning mode needs to use various related tools such as a computer, a burner, a Universal Serial Bus (USB) line, a burning dial tool, a switching power supply and the like, so that the operation process is complicated. Another program upgrading method is to implement application upgrading by powering on to guide an application program to access a target application program, for example, patent application nos.: 201711236847.X, the invention name is: the patent document of an application program online upgrading method, device, equipment and storage medium adopts the method. However, this method requires the target application and the power-on boot application to be stored in the device memory space in advance, and the flexibility of program upgrade is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, and a terminal device for upgrading a screen display program, so as to solve the problems of a complicated operation process and poor flexibility of program upgrading in the prior art.
A first aspect of an embodiment of the present invention provides a method for upgrading a screen display program, including:
when a screen display program upgrading instruction is received, entering a boot loader, and reading data of an upgrading zone bit stored in a first preset address, wherein the data stored in the first preset address is not lost when power failure occurs;
if the data of the upgrading flag bit is matched with the preset upgrading flag, mounting a file system of the external storage device, reading an upgrading file from the file system, and writing the read data in the upgrading file into a second preset address;
and after the read data in the upgrade file is successfully written into the second preset address, clearing the data in the upgrade flag bit.
A second aspect of an embodiment of the present invention provides a system for upgrading a screen display program, including:
the system comprises a flag bit data reading module, a loading module and a display module, wherein the flag bit data reading module is used for entering a boot loader when receiving a screen display program upgrading instruction, and reading data of an upgrading flag bit stored in a first preset address, and the data stored in the first preset address is not lost when power is down;
the data writing module is used for mounting a file system of the external storage device, reading an upgrade file from the file system and writing the read data in the upgrade file into a second preset address if the data of the upgrade flag bit is matched with a preset upgrade flag;
and the flag bit data clearing module is used for clearing the data in the upgrading flag bit after the read data in the upgrading file is successfully written into the second preset address.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the screen display program upgrading method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program, which when executed by one or more processors implements the steps of the screen display program upgrading method according to the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the method comprises the steps of firstly entering a boot loader when receiving a screen display program upgrading instruction, reading data of an upgrading zone bit stored in a first preset address, mounting a file system of an external storage device if the data of the upgrading zone bit is matched with a preset upgrading mark, reading an upgrading file from the file system, writing the read data in the upgrading file into a second preset address, and finally clearing the data in the upgrading zone bit after the data is successfully written. The embodiment of the invention can realize the upgrading of the screen display program by only using a tool of an external storage device, has simple operation process and higher program upgrading efficiency; the upgrading flag bit is stored in the first preset address, the data in the upgrading file is written into the second preset address, and the data stored in the first preset address is not lost due to power failure, so that even if unexpected conditions such as power failure or the external storage device being pulled out occur in the writing process, the data of the upgrading flag bit can be judged again after the screen is restarted, the data writing process is started, and the stability and the reliability of program upgrading can be improved; and the files required by upgrading do not need to be stored in the storage space of the equipment to be upgraded in advance, so that the flexibility of program upgrading can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for upgrading a screen display program according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a screen display program upgrade system provided by an embodiment of the present invention;
fig. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic flow chart of an implementation of a method for upgrading a screen display program according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown. The execution main body of the embodiment of the invention can be terminal equipment. As shown in fig. 1, the method may include the steps of:
s101: when a screen display program upgrading instruction is received, a boot loader is started, and data of an upgrading zone bit stored in a first preset address are read, wherein the data stored in the first preset address are not lost when power failure occurs.
Illustratively, the screen may be a Display platform developed based on ARM (Advanced RISC Machines), selecting Stm32F429 as a main control chip, and extending a 16M SDRAM (synchronous dynamic random access memory), and having a USB interface, an ethernet interface, an RS485 serial port, an RS232 serial port, and the like, where the software in the screen is transplanted with multiple Protocol stacks such as USB/LWIP (Light Weight Internet Protocol), and is matched with a hardware interface, and besides LCD (Liquid Crystal Display), it may also support multiple peripheral communications.
The user can input the upgrading instruction of the screen display program through a key or a touch screen. For example, the user may input the screen display program upgrade instruction by clicking a button such as "screen upgrade" on the touch screen, or may input the screen display program upgrade instruction by pressing a button such as "screen upgrade".
When a screen display program upgrading instruction is received, a BootLoader can be started in a mode of restarting a screen and the like, and data of an upgrading zone bit is read through the BootLoader. The upgrading flag bit is stored in the first preset address, the data stored in the first preset address is not lost when power failure occurs, and when the upgrading is interrupted accidentally in the upgrading process, the screen is restarted, the boot loader is started, and the data stored in the upgrading flag bit of the first preset address can still be read.
In an embodiment of the present invention, the first preset address may be a designated address in a backup Static Random-Access Memory (BKPSRAM).
The main control chip provides a BKPSRAM which can be used for storing data which are not lost in power failure, so that even if unexpected conditions such as power failure occur in the upgrading process and the screen is restarted, the data of the upgrading zone bit stored in the designated address in the BKPSRAM can still be read.
S102: and if the data of the upgrading flag bit is matched with the preset upgrading flag, mounting a file system of the external storage device, reading the upgrading file from the file system, and writing the read data in the upgrading file into a second preset address.
In an embodiment of the present invention, the external storage device may be a usb disk, and the second preset address may be a designated address in a Flash memory (Flash).
And if the data of the upgrading flag bit read from the BKPR is the preset upgrading flag, mounting the U disk file system, reading the upgrading file from the U disk file system, and writing the read data in the upgrading file into the specified address in the Flash inside the main control chip. The mounting of the U disk file system means that files in the U disk file system can be accessed through the terminal equipment.
The preset upgrade flag may be set according to actual needs, and may be set to 0x5566, for example. The upgrade file is a file with an extension name of bin, is a binary machine code file which is converted by an ARM debugging file (axf file) after debugging information is removed, and can be guided to execute through a BootLoader and burnt into a specified address in Flash. The designated address in Flash may be a designated address interval in Flash.
S103: and after the read data in the upgrade file is successfully written into the second preset address, clearing the data in the upgrade flag bit.
And after the read data in the upgrade file is successfully written into the second preset address, clearing the data stored in the upgrade flag bit of the first preset address, namely clearing the preset upgrade flag stored in the upgrade flag bit.
Optionally, after step S103, the method may further include:
and restarting the screen.
And after restarting the screen, entering a boot loader, reading the data of the upgrading zone bit stored in the first preset address, wherein the data of the upgrading zone bit is not the preset upgrading mark, and directly jumping to the original application program address to execute the corresponding application program without executing the upgrading program.
As can be seen from the above description, the embodiment of the present invention can upgrade the screen display program only by using a tool, which is an external storage device, and has a simple operation process and high program upgrading efficiency; the upgrading flag bit is stored in the first preset address, the data in the upgrading file is written into the second preset address, and the data stored in the first preset address is not lost due to power failure, so that even if unexpected conditions such as power failure or the external storage device being pulled out occur in the writing process, the data of the upgrading flag bit can be judged again after the screen is restarted, the data writing process is started, and the stability and the reliability of program upgrading can be improved; and the files required by upgrading do not need to be stored in the storage space of the equipment to be upgraded in advance, so that the flexibility of program upgrading can be improved.
In an embodiment of the present invention, before the "enter boot loader" in step S101, the method may further include:
detecting whether an external storage device is accessed;
if the external storage equipment is detected to be accessed, searching an upgrade file from the external storage equipment;
and if the upgrade file is searched from the external storage equipment, writing a preset upgrade mark into the first preset address.
In the embodiment of the invention, when a screen display program upgrading instruction is received, whether an external storage device (such as a U disk) is accessed is detected; if the external storage equipment is detected to be accessed, searching whether a file with an extension name of bin exists in the external storage equipment; if a file with the extension of bin is searched, namely an upgrade file is searched, a preset upgrade flag (for example, 0x5566) is written into a first preset address, namely, a specified address of the BKPRSRAM. The first preset address is used for storing an upgrading zone bit.
The method comprises the following steps of searching an upgrade file from an external storage device, specifically: the specified path from the usb disk "usb disk drive letter: KH _ upsgradefile \ searches for whether a file with an extension of bin exists.
Optionally, after writing the preset upgrade flag into the first preset address, the method may further include:
and restarting the screen.
After the screen is restarted, the step of entering the boot loader is continuously executed.
In an embodiment of the present invention, after detecting whether to access the external storage device, the method may further include:
if the external storage equipment is detected not to be accessed, finishing the upgrading of the screen display program;
after searching for the upgrade file from the external storage device, the method may further include:
and if the upgrading file is not searched from the external storage equipment, ending the upgrading of the screen display program.
In the embodiment of the invention, if it is detected that the external storage device is not accessed, or the external storage device is detected to be accessed, but the upgrade file is not searched from the external storage device, the screen display program cannot be upgraded continuously, the upgrade of the screen display program is directly finished, the screen can be automatically restarted directly, the screen can jump to the third preset address, the application program stored in the third preset address is executed, and the application program which is being executed before the upgrade instruction of the screen display program is received can be executed continuously.
In an embodiment of the present invention, the "writing the read data in the upgrade file to the second preset address" in step S102 may include:
erasing the data in the second preset address;
and burning the read data in the upgrade file to a second preset address.
Wherein the second preset address may represent an address interval.
Before burning the read data in the upgrade file to the second preset address, the data in the second preset address is erased first, that is, all bits in the second preset address can be written as 1.
In an embodiment of the present invention, after step S101, the method may further include:
and if the data of the upgrading flag bit is not matched with the preset upgrading flag, jumping to a third preset address, and executing the application program stored in the third preset address.
In the embodiment of the invention, if the data of the upgrade flag bit is not matched with the preset upgrade flag, which indicates that the screen display program cannot be upgraded, the third preset address is skipped to, and the application program stored in the third preset address is executed, that is, the original program in the screen is continuously executed. The third preset address may be a start address of an application program in the screen.
In one embodiment of the present invention, the first predetermined address is a designated address in the backup sram; the second preset address is a designated address in the flash memory, and the external storage device is a U disk.
Optionally, before writing the preset upgrade flag into the upgrade flag bit, the method may further include:
the backup static random access memory is initialized.
Before writing the preset upgrading mark into the upgrading mark bit in the BKPR, firstly initializing the BKPR, enabling a power interface clock, enabling the access of a backup domain, enabling the clock of the backup SRAM and enabling the backup voltage regulator.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 2 is a schematic block diagram of a screen display program upgrade system according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of explanation.
In an embodiment of the present invention, the screen display program upgrade system 20 may include a flag bit data reading module 21, a data writing module 22, and a flag bit data clearing module 23.
The flag bit data reading module 21 is configured to enter a boot loader when receiving an upgrade instruction of a screen display program, and read data stored in an upgrade flag bit of a first preset address, where the data stored in the first preset address is not lost when power failure occurs.
And the data writing module 22 is configured to mount a file system of the external storage device if the data of the upgrade flag bit matches the preset upgrade flag, read the upgrade file from the file system, and write the read data in the upgrade file into a second preset address.
And the flag bit data clearing module 23 is configured to clear the data in the upgrade flag bit after the read data in the upgrade file is successfully written into the second preset address.
Optionally, the screen display program upgrading system 20 may further include an external device detecting module, an upgrade file searching module, and a flag bit writing module.
And the external equipment detection module is used for detecting whether the external storage equipment is accessed.
And the upgrade file searching module is used for searching the upgrade file from the external storage equipment if the external storage equipment is detected to be accessed.
And the zone bit writing module is used for writing a preset upgrading mark into a first preset address if the upgrading file is searched from the external storage equipment.
Optionally, the screen display program upgrade system 20 may further include a first end upgrade module and a second end upgrade module.
And the first end upgrading module is used for ending the upgrading of the screen display program if the external storage equipment is not accessed.
And the second upgrading ending module is used for ending the upgrading of the screen display program if the upgrading file is not searched from the external storage equipment.
Alternatively, the data writing module 22 may include a data erasing unit and a data writing unit.
The data erasing unit is used for erasing the data in the second preset address;
and the data burning and writing unit is used for burning and writing the read data in the upgrade file to a second preset address.
Optionally, the on-screen display program upgrade system 20 may further include a jump module.
And the skipping module is used for skipping to a third preset address and executing the application program stored in the third preset address if the data of the upgrading flag bit is not matched with the preset upgrading flag.
Optionally, the first preset address is a designated address in the backup static random access memory; the second preset address is a designated address in the flash memory, and the external storage device is a U disk.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is merely used as an example, and in practical applications, the foregoing function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the screen display program upgrading system is divided into different functional units or modules to perform all or part of the above-described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 3, the terminal device 30 of this embodiment includes: one or more processors 31, a memory 32, and a computer program 33 stored in the memory 32 and executable on the processors 31. The processor 31 implements the steps in the above-described respective screen display program upgrade method embodiments, such as steps S101 to S103 shown in fig. 1, when executing the computer program 33. Alternatively, the processor 31, when executing the computer program 33, implements the functions of the modules/units in the above-described screen display program upgrade system embodiment, such as the functions of the modules 21 to 23 shown in fig. 2.
Illustratively, the computer program 33 may be partitioned into one or more modules/units that are stored in the memory 32 and executed by the processor 31 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 33 in the terminal device 30. For example, the computer program 33 may be divided into a flag bit data reading module, a data writing module and a flag bit data clearing module, and each module has the following specific functions:
the system comprises a flag bit data reading module, a loading module and a display module, wherein the flag bit data reading module is used for entering a boot loader when receiving a screen display program upgrading instruction, and reading data of an upgrading flag bit stored in a first preset address, and the data stored in the first preset address is not lost when power is down;
the data writing module is used for mounting a file system of the external storage device, reading an upgrade file from the file system and writing the read data in the upgrade file into a second preset address if the data of the upgrade flag bit is matched with a preset upgrade flag;
and the flag bit data clearing module is used for clearing the data in the upgrading flag bit after the read data in the upgrading file is successfully written into the second preset address.
Other modules or units can refer to the description of the embodiment shown in fig. 2, and are not described again here.
The terminal device 30 may be a screen itself, or may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device 30 includes, but is not limited to, a processor 31 and a memory 32. Those skilled in the art will appreciate that fig. 3 is only one example of a terminal device 30, and does not constitute a limitation of the terminal device 30, and may include more or less components than those shown, or combine certain components, or different components, for example, the terminal device 30 may also include an input device, an output device, a network access device, a bus, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the terminal device 30, such as a hard disk or a memory of the terminal device 30. The memory 32 may also be an external storage device of the terminal device 30, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 30. Further, the memory 32 may also include both an internal storage unit of the terminal device 30 and an external storage device. The memory 32 is used for storing the computer program 33 and other programs and data required by the terminal device 30. The memory 32 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed screen display program upgrading system and method can be implemented in other ways. For example, the above-described embodiments of the osd update system are merely illustrative, and for example, the division of the modules or units is only one logical division, and the actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A screen display program upgrading method is characterized by comprising the following steps:
when a screen display program upgrading instruction is received, entering a boot loader, and reading data of an upgrading flag bit stored in a first preset address, wherein the data stored in the first preset address is not lost when power failure occurs;
if the data of the upgrading flag bit is matched with a preset upgrading flag, mounting a file system of an external storage device, reading an upgrading file from the file system, and writing the read data in the upgrading file into a second preset address;
and after the read data in the upgrade file is successfully written into the second preset address, clearing the data in the upgrade flag bit.
2. The screen display program upgrade method according to claim 1, wherein prior to said entering a boot loader, said method further comprises:
detecting whether the external storage equipment is accessed or not;
if the external storage equipment is detected to be accessed, searching an upgrade file from the external storage equipment;
and if the upgrade file is searched from the external storage equipment, writing a preset upgrade mark into the first preset address.
3. The screen display program upgrade method according to claim 2, wherein after said detecting whether to access the external storage device, the method further comprises:
if the external storage equipment is detected not to be accessed, finishing the upgrading of the screen display program;
after the searching for the upgrade file from the external storage device, the method further includes:
and if the upgrade file is not searched from the external storage equipment, ending the upgrading of the screen display program.
4. The screen display program upgrading method according to claim 1, wherein writing the read data in the upgrade file into a second preset address includes:
erasing the data in the second preset address;
and burning the read data in the upgrade file to the second preset address.
5. The screen display program upgrade method according to claim 1, wherein after said reading the data of the upgrade flag bit stored at the first preset address, the method further comprises:
and if the data of the upgrading flag bit is not matched with the preset upgrading flag, jumping to a third preset address, and executing an application program stored in the third preset address.
6. The screen display program upgrade method according to any one of claims 1 to 5, wherein the first preset address is a designated address in a backup static random access memory; the second preset address is a designated address in the flash memory, and the external storage device is a U disk.
7. A screen display program upgrade system, comprising:
the device comprises a flag bit data reading module, a loading module and a display module, wherein the flag bit data reading module is used for entering a boot loader when receiving a screen display program upgrading instruction, and reading data of an upgrading flag bit stored in a first preset address, and the data stored in the first preset address is not lost when power failure occurs;
the data writing module is used for mounting a file system of an external storage device, reading an upgrade file from the file system and writing the read data in the upgrade file into a second preset address if the data of the upgrade flag bit is matched with a preset upgrade flag;
and the flag bit data clearing module is used for clearing the data in the upgrading flag bit after the read data in the upgrading file is successfully written into the second preset address.
8. The screen display program upgrade system according to claim 7, further comprising:
the external device detection module is used for detecting whether the external storage device is accessed or not;
the upgrade file searching module is used for searching the upgrade file from the external storage equipment if the external storage equipment is detected to be accessed;
and the zone bit writing module is used for writing a preset upgrading mark into the first preset address if the upgrading file is searched from the external storage equipment.
9. A terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the screen display program upgrade method according to any one of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, implements the steps of the screen display program upgrade method according to any one of claims 1 to 6.
CN201910924891.2A 2019-09-27 2019-09-27 Screen display program upgrading method and system and terminal equipment Pending CN110780908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910924891.2A CN110780908A (en) 2019-09-27 2019-09-27 Screen display program upgrading method and system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910924891.2A CN110780908A (en) 2019-09-27 2019-09-27 Screen display program upgrading method and system and terminal equipment

Publications (1)

Publication Number Publication Date
CN110780908A true CN110780908A (en) 2020-02-11

Family

ID=69384622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910924891.2A Pending CN110780908A (en) 2019-09-27 2019-09-27 Screen display program upgrading method and system and terminal equipment

Country Status (1)

Country Link
CN (1) CN110780908A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367551A (en) * 2020-03-02 2020-07-03 威海新北洋技术服务有限公司 Upgrading method and device and electronic equipment
CN113157301A (en) * 2021-05-20 2021-07-23 厦门紫光展锐科技有限公司 Terminal version upgrading method, system, storage medium and terminal
CN113467797A (en) * 2020-03-30 2021-10-01 西安诺瓦星云科技股份有限公司 Program updating method, device and system and computer readable storage medium
CN113687851A (en) * 2021-08-31 2021-11-23 高新兴科技集团股份有限公司 Embedded equipment upgrading method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782859A (en) * 2010-03-18 2010-07-21 上海乐毅信息科技有限公司 Upgrading method of embedded system in application
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
CN103699421A (en) * 2014-01-08 2014-04-02 金三立视频科技(深圳)有限公司 Method and device for upgrading embedded device system
CN109213510A (en) * 2018-09-21 2019-01-15 深圳市鼎阳科技有限公司 A kind of application program updating method and storage medium for embedded device
US20190278583A1 (en) * 2017-03-30 2019-09-12 Pax Computer Technology (Shenzhen) Co., Ltd Method for updating firmware, terminal and computer readable non-volatile storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782859A (en) * 2010-03-18 2010-07-21 上海乐毅信息科技有限公司 Upgrading method of embedded system in application
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
CN103699421A (en) * 2014-01-08 2014-04-02 金三立视频科技(深圳)有限公司 Method and device for upgrading embedded device system
US20190278583A1 (en) * 2017-03-30 2019-09-12 Pax Computer Technology (Shenzhen) Co., Ltd Method for updating firmware, terminal and computer readable non-volatile storage medium
CN109213510A (en) * 2018-09-21 2019-01-15 深圳市鼎阳科技有限公司 A kind of application program updating method and storage medium for embedded device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367551A (en) * 2020-03-02 2020-07-03 威海新北洋技术服务有限公司 Upgrading method and device and electronic equipment
CN113467797A (en) * 2020-03-30 2021-10-01 西安诺瓦星云科技股份有限公司 Program updating method, device and system and computer readable storage medium
CN113467797B (en) * 2020-03-30 2024-03-15 西安诺瓦星云科技股份有限公司 Program updating method, device and system and computer readable storage medium
CN113157301A (en) * 2021-05-20 2021-07-23 厦门紫光展锐科技有限公司 Terminal version upgrading method, system, storage medium and terminal
CN113687851A (en) * 2021-08-31 2021-11-23 高新兴科技集团股份有限公司 Embedded equipment upgrading method and device

Similar Documents

Publication Publication Date Title
CN110780908A (en) Screen display program upgrading method and system and terminal equipment
CN106095620B (en) A kind of development approach of built-in Linux partition holding
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN104375933A (en) Unit testing method and device
US20160092201A1 (en) Method and Device for Updating Program Data
CN103902562A (en) Method and device for upgrading terminal databases
CN111294413A (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN108694052B (en) Firmware upgrading method, firmware upgrading device and firmware upgrading system
US20040225874A1 (en) Method for reduced BIOS boot time
CN104679566A (en) Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System)
CN104866397A (en) Computer System And Control Method
CN102184115B (en) Method for updating system software and terminal device
CN111143240A (en) Image storage method, system and terminal equipment
CN111045741A (en) Firmware loading method for flash-memory-free touch screen of intelligent terminal
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
US11507367B2 (en) Firmware update method and firmware update system thereof
CN104699410A (en) Information processing method and electronic device
CN114020211A (en) Storage space management method, device, equipment and storage medium
CN108958795B (en) BootLoader code reuse method and development board in embedded system
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN108804221B (en) Embedded system based on XIP mode and resource optimization method thereof
CN112015459A (en) Method and device for upgrading image file, terminal and readable storage medium
CN102023873A (en) Application program execution method and system, storage media controller and storage device
CN112732276A (en) Control method of U shield and U shield equipment
US20100175007A1 (en) Semiconductor storage device and control method for a semiconductor storage 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211