CN116737211A - Method, system, device and medium for prompting upgrading state of embedded system - Google Patents

Method, system, device and medium for prompting upgrading state of embedded system Download PDF

Info

Publication number
CN116737211A
CN116737211A CN202310757003.9A CN202310757003A CN116737211A CN 116737211 A CN116737211 A CN 116737211A CN 202310757003 A CN202310757003 A CN 202310757003A CN 116737211 A CN116737211 A CN 116737211A
Authority
CN
China
Prior art keywords
upgrade
disk assembly
usb flash
flash disk
state
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
CN202310757003.9A
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.)
Chengdu Xinsheng Integrated Circuit Co ltd
Original Assignee
Chengdu Xinsheng Integrated Circuit 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 Chengdu Xinsheng Integrated Circuit Co ltd filed Critical Chengdu Xinsheng Integrated Circuit Co ltd
Priority to CN202310757003.9A priority Critical patent/CN116737211A/en
Publication of CN116737211A publication Critical patent/CN116737211A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application discloses a method, a system, a device and a medium for prompting an upgrade state of an embedded system, which are applied to the field of computers. The method provided by the application comprises the following steps: establishing a communication link with the USB flash disk assembly; receiving an upgrade program in the USB flash disk assembly through a communication link so as to upgrade through the upgrade program; determining an upgrade state according to the upgrade process; and executing corresponding reading operation on the USB flash disk assembly according to the upgrading state, so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation. According to the application, the USB flash disk assembly is connected with the embedded system, and the upgrade program is transmitted, so that the requirement of WiFi upgrade on the hardware of the embedded system is avoided, and the operation of reading data by different USB flash disk assemblies is determined according to the corresponding upgrade state, so that the flashing of the indicator lamp under different upgrade states is realized, the current state of a user is timely prompted, and the requirements of manpower and material resources are reduced.

Description

Method, system, device and medium for prompting upgrading state of embedded system
Technical Field
The present application relates to the field of computers, and in particular, to a method, a system, an apparatus, and a medium for prompting an upgrade status of an embedded system.
Background
In recent years, in the process of repairing and upgrading part of software in a large batch of embedded systems (such as set top box equipment), a method that the embedded systems are connected with wireless broadband (Wireless Fidelity, wiFi) is generally adopted to realize upgrading, but in the process of upgrading by WiFi, the requirement on the software in the embedded systems is higher, when any one piece of software does not meet the requirement, the upgrading cannot be finished, and meanwhile, the upgrading state can be determined only by checking an image interface through connecting an output interface, so that whether the upgrading is successful is judged; when the data line external computing terminal is used for upgrading, the operation is tedious, the efficiency is low, and a large amount of manpower and material resources are needed.
In view of the above, it is a urgent problem for those skilled in the art to find an embedded system upgrade status prompting method.
Disclosure of Invention
The application aims to provide a method, a system, a device and a medium for prompting the upgrade state of an embedded system. According to the application, the USB flash disk assembly is connected with the embedded system to transmit the upgrade program, so that the requirement of WiFi upgrade on embedded equipment hardware is avoided, meanwhile, the indicator lamp displays different states according to upgrade state information, the current upgrade state of a user is timely prompted, and the requirement on manpower and material resources is reduced.
In order to solve the technical problems, the application provides an embedded system upgrade status prompting method, which comprises the following steps:
establishing a communication link with the USB flash disk assembly;
receiving an upgrade program in the USB flash disk assembly through a communication link so as to upgrade through the upgrade program;
determining a corresponding upgrading state according to the upgrading process;
and executing corresponding reading operation on the USB flash disk assembly according to the upgrading state, so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation.
Preferably, before receiving the upgrade program in the usb disk assembly through the communication link to perform the upgrade through the upgrade program, the method further includes:
executing a pre-reading operation on the USB flash disk assembly;
and when the accumulated bytes of the pre-read data are larger than the preset byte number, judging that the current pre-read operation is in a stable state, and triggering the step of receiving the upgrade program of the U disk assembly through the communication link so as to upgrade the U disk assembly through the upgrade program.
Preferably, the executing a corresponding reading operation on the usb disk assembly according to the upgrade status, so that the indicator light in the usb disk assembly displays a display status corresponding to the reading operation, includes:
when the upgrade state is the first upgrade state;
and executing corresponding first reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly continuously flashes according to the target flashing frequency.
Preferably, the executing a corresponding reading operation on the usb disk assembly according to the upgrade status, so that the indicator light root in the usb disk assembly displays a display status corresponding to the reading operation, includes:
when the upgrade state is the second upgrade state;
and executing corresponding second reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly is continuously on or off according to the target on or off requirement.
Preferably, the executing a corresponding reading operation on the usb disk assembly according to the upgrade status, so that the indicator light in the usb disk assembly displays a display status corresponding to the reading operation, includes:
when the upgrade state is the third upgrade state;
and executing corresponding third reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly intermittently flashes according to the target time interval.
Preferably, the read operation is to read data of random LBA sector addresses of the USB flash disk assembly.
Preferably, the pre-reading operation includes:
reading the capacity of the USB flash disk assembly;
calculating the largest LBA address in the U disk assembly;
and randomly selecting an LBA sector address between 0 and the largest LBA address in the U disk assembly, wherein data corresponding to the random LBA sector address is used as data read by a pre-reading operation.
In order to solve the above problems, the present application further provides an embedded system upgrade status prompting system, including:
the communication link module is used for establishing a communication link with the USB flash disk assembly;
the receiving module is used for receiving the upgrade program in the USB flash disk assembly through the communication link so as to upgrade through the upgrade program;
the determining module is used for determining a corresponding upgrading state according to the upgrading process;
and the control display module is used for sending corresponding reading operation to the USB flash disk assembly according to the upgrading state so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation.
In order to solve the above problems, the present application further provides an embedded system upgrade status prompting device, including a memory for storing a computer program;
and the processor is used for realizing the step of prompting the upgrade state of the embedded system when executing the computer program.
In order to solve the above problems, the present application further provides a computer readable storage medium, on which a computer program is stored, where the step of prompting the upgrade status of the embedded system is implemented when the computer program is executed by a processor.
The application provides an embedded system upgrade state prompting method, which comprises the following steps: establishing a communication link with the USB flash disk assembly; receiving an upgrade program in the USB flash disk assembly through a communication link so as to upgrade through the upgrade program; determining a corresponding upgrading state according to the upgrading process; and executing corresponding reading operation on the USB flash disk assembly according to the upgrading state, so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation. The application adopts the USB flash disk assembly to connect with the embedded system, transmits the upgrade program, has simple software realization, avoids the requirement of WiFi upgrade on the hardware of the embedded system, determines the operation of reading data by different USB flash disk assemblies according to the corresponding upgrade state, further realizes the flashing of the indicator lamp under different upgrade states, has low cost, does not need to be independently provided with a display for the upgrade of the embedded system, simultaneously can be used for upgrading by multiple people, each person can know the upgrade result state by using one USB flash disk assembly, and the equipment upgrade work of multiple areas can be simultaneously carried out.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of an embedded system upgrade status prompting method according to an embodiment of the present application;
FIG. 2 is a block diagram corresponding to an upgrade status prompting method of an embedded system according to an embodiment of the present application;
FIG. 3 is a block diagram of an embedded system upgrade status prompting system according to another embodiment of the present application;
fig. 4 is a block diagram of an embedded system upgrade status prompting device according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The core of the application is to provide a method, a system, a device and a medium for prompting the upgrade state of an embedded system.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
In the process of repairing and upgrading software faults in an embedded system (such as a set top box device), in order to repair product faults in a short time, the most common method is to upgrade the product by adopting a WiFi or external computer terminal. However, in the upgrading process of large-scale embedded board-level systems, an upgrade status prompt (success or failure) needs to be given to an operator to confirm the upgrade result of each board, and a quick, simple and low-cost method is needed to complete the upgrade prompt. The resources of the embedded board-level system are not provided with ready-made LED indicator lights, buzzers and the like for upgrading state prompt, the conventional embedded system is complete to check upgrading results (success/failure), and a video output interface is required to be connected to a picture interface, but tens of thousands of embedded systems cannot be upgraded to enable each device to be connected to video output to check the picture interface prompt, and tens of thousands of embedded systems are distributed in a plurality of areas, so that upgrading work is difficult to complete in a short time.
Fig. 1 is a flowchart of a method for prompting an upgrade status of an embedded system according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
s10: and establishing a communication link with the USB flash disk assembly.
In a specific embodiment, the embedded system to be upgraded and the USB flash disk assembly establish a communication link, that is, the USB flash disk assembly is plugged into the embedded system so as to realize data transmission operation.
It should be noted that, the usb disk assembly includes a usb disk, or includes other devices, for example, a usb disk with an indicator light, which is not limited in the present application and may be set according to the needs of the user.
It should be noted that, the embedded system may be a set top box, or an embedded system using eMMC as a memory, etc., which is not limited by the present application and may be set according to the needs of the user.
S11: and receiving an upgrade program in the USB flash disk assembly through a communication link so as to upgrade through the upgrade program.
In a specific embodiment, the USB flash disk assembly establishes a communication link with the embedded system, and an upgrade program stored in the USB flash disk assembly is imported to the embedded system through the communication link, so that the embedded system upgrades itself according to the upgrade program.
S12: and determining a corresponding upgrading state according to the upgrading process.
In particular embodiments, various problems are encountered during the upgrade process, resulting in multiple states of the final upgrade result, and thus the upgrade status determined according to the upgrade process includes, but is not limited to, upgrade success, upgrade failure, and non-execution of upgrade actions.
S13: and executing corresponding reading operation on the USB flash disk assembly according to the upgrading state, so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation.
In a specific embodiment, after the upgrade status is determined by the embedded system, an operation of reading data in the usb disk assembly corresponding to the upgrade status is determined according to a preset corresponding relationship, and then the data reading operation is performed on the usb disk assembly, so that an indicator light in the usb disk assembly can display a display status corresponding to the reading operation.
The application is not limited, and the indicator lamp can be set according to the needs of users.
Fig. 2 is a block diagram corresponding to the fault state prompting method of the embedded system according to the embodiment of the present application, where an upgrade program is imported from a U disc component (Udisk) into a DDR of an embedded System (SOC) to run, upgrade firmware in an eMMC device, and use an indicator lamp to quickly output an indication for the upgrade state of the embedded device, as shown in the figure.
The application provides an embedded system upgrade state prompting method, which comprises the following steps: establishing a communication link with the USB flash disk assembly; receiving an upgrade program in the USB flash disk assembly through a communication link so as to upgrade through the upgrade program; determining a corresponding upgrading state according to the upgrading process; and executing corresponding reading operation on the USB flash disk assembly according to the upgrading state, so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation. The application adopts the USB flash disk assembly to connect with the embedded system, transmits the upgrade program, has simple software realization, avoids the requirement of WiFi upgrade on the hardware of the embedded system, determines the operation of reading data by different USB flash disk assemblies according to the corresponding upgrade state, further realizes the flashing of the indicator lamp under different upgrade states, has low cost, does not need to be independently provided with a display for the upgrade of the embedded system, simultaneously can be used for upgrading by multiple people, each person can know the upgrade result state by using one USB flash disk assembly, and the equipment upgrade work of multiple areas can be simultaneously carried out.
On the basis of the above embodiment, as a preferred embodiment, before receiving the upgrade program in the usb disk assembly through the communication link to perform the upgrade through the upgrade program, the method further includes:
executing a pre-reading operation on the USB flash disk assembly;
when the accumulated byte number of the pre-read data is larger than the preset byte number; and judging that the current pre-reading operation is in a stable state, and triggering the step of receiving an upgrade program of the USB flash disk assembly through a communication link so as to upgrade the USB flash disk assembly through the upgrade program.
Wherein the pre-read operation includes:
reading the capacity of the USB flash disk assembly;
calculating the largest LBA address in the U disk assembly;
and randomly selecting an LBA sector address between 0 and the largest LBA address in the U disk assembly, wherein data corresponding to the random LBA sector address is used as data read by a pre-reading operation.
In a specific embodiment, when the embedded system performs data reading and writing operation on the USB flash disk assembly, the corresponding indicator lamps in the USB flash disk assembly flash prompts; when the data reading and writing operation is not performed on the USB flash disk assembly, the indicator lamp in the USB flash disk assembly is in a (full-on or full-off) state. That is, when the data read and write operations are small, the indicator light may flash unstably, may flash steadily for a while, may be on or off for a while, and so on. Therefore, before receiving the upgrade program in the usb disk assembly through the communication link, as a preference, the embedded system performs a pre-read operation to the usb disk assembly, where a specific flow of the pre-read operation includes: and executing a pre-reading operation on the U disk assembly, opening the U disk assembly, reading the capacity of the U disk assembly, calculating the maximum LBA address MAX-LBA in the U disk assembly, randomly selecting 1 LBA sector address between [ 0-MAX-LBA-1 ], judging whether the accumulated reading number exceeds 2Mbytes or not, if yes, completing the pre-reading operation, and if not, reproducing and returning to the previous step.
It should be noted that, when the logic block data is sequentially read, for example: when the read logical block data is 2, the actually read logical block data is 2, 3, 4, etc., in this case, when the embedded device reads the data of the logical block data is 2, the data of the logical block data is actually read 2, 3, 4, so when the data of the logical block 3 needs to be read, the read operation is not needed to be executed on the USB flash disk assembly, and therefore, the read operation is not needed, that is, the corresponding indicator light flickers unstably, and therefore, the random logical block address data needs to be read, so that the accurate flicker indication that the indicator light is read as flash and the indicator light is not read as flash is realized.
The embedded system reads and writes data of the USB flash disk assembly, and the corresponding indicator lights flash prompts; when the data reading and writing operation is not performed on the USB flash disk assembly, the corresponding indicator lamp is in a (full-on or full-off) state and is only one mode which can be realized, but the application is not limited and can be set by the user according to the needs of the user.
Before receiving an upgrade program imported by the USB flash disk assembly, the embedded system continuously and stably executes the pre-reading operation on the USB flash disk assembly for ensuring the stability of the reading operation and the corresponding flickering stability of the indicator lamp, and after the size of bytes of data to be read meets a certain condition, the pre-reading operation and the corresponding flickering stability of the indicator lamp are judged, so that a foundation is laid for the subsequent upgrade state information importing and displaying.
On the basis of the foregoing embodiment, as a preferred embodiment, a corresponding reading operation is performed on the usb disk assembly according to the upgrade status, so that the indicator light in the usb disk assembly displays a display status corresponding to the reading operation, including:
when the upgrade state is the first upgrade state;
and executing corresponding first reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly continuously flashes according to the target flashing frequency.
Similarly, on the basis of the above embodiment, as a preferred embodiment, when the upgrade state is the second upgrade state;
and executing corresponding second reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly is continuously on or off according to the target on or off requirement.
Similarly, on the basis of the above embodiment, as a preferred embodiment, when the upgrade state is the third upgrade state;
and executing corresponding third reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly intermittently flashes according to the target time interval.
In a specific embodiment, a corresponding read operation is performed on the usb disk assembly according to the upgrade status, that is, the embedded system continuously reads the random LBA sector address from the usb disk assembly, where the number of bytes of the LBA sector address is 512 bytes. As shown in the table one, the upgrade states of the embedded device are classified into three types, the first type is upgrade success, the second type is non-execution upgrade behavior, the third type is upgrade failure, and the upgrade states corresponding to the upgrade failure are classified into a first upgrade state, a second state upgrade and a third upgrade state; the first upgrade state corresponds to a first reading operation, namely continuous reading, and the first indicator lamp control instruction corresponding to the first reading operation continuously flashes according to the target flashing frequency, namely continuous high-frequency flashing, so that the first upgrade state (successful upgrade) is displayed; the second reading operation corresponding to the second upgrading state, namely, not reading and writing, wherein the second indicator lamp control instruction corresponding to the second reading operation is continuously normally on or normally off according to the normally on or normally off requirement of the target, so that the second upgrading state is displayed (upgrading behavior is not executed); and the third reading operation corresponding to the third upgrading state, namely intermittent reading, and the third indicator lamp control instruction corresponding to the third reading operation is intermittently flashing according to the target time interval, so that the third upgrading state (upgrading failure) is displayed.
List one
It should be noted that, the embodiment of the present application is only one implementation manner, but is not limited to only this implementation manner, and the corresponding relationship can be selected according to the needs of the user, which is not limited by the present application.
The corresponding relation of the operation action, the indicator light effect and the upgrade state meaning in the first table is not limited, and the operation action, the indicator light effect and the upgrade state meaning can be set by a user according to the needs of the user; wherein the steps are repeated: the 2 seconds of A (2 seconds) - > B (2 seconds) is only one realization mode, but is not limited to the realization mode, and can be adjusted according to the needs of users.
On the basis of the above embodiment, as a preferred embodiment, further comprising:
and whether the communication link is disconnected or not is monitored in real time by judging whether the data reading operation is successful, and if so, the indicator lamp in the USB flash disk assembly stops displaying.
In a specific embodiment, in the process of controlling by using the indicator lamp under the condition that the usb assembly is connected with the embedded system (a communication link is established), if the usb assembly is disconnected with the embedded system, that is, the communication link is disconnected, the indicator lamp stops displaying, wherein whether the communication link is disconnected is judged by whether the embedded system can normally read the data in the usb assembly.
In a specific embodiment, the different upgrade states, namely the first upgrade state (upgrade success) and the second upgrade state (upgrade failure), are corresponding, so that it is different to determine whether the communication link is disconnected.
When the upgrade state is successful, the random logic block address data is continuously read to the USB flash disk assembly, and if the read fails, the upgrade state is displayed to be finished: when the upgrade state fails, stopping reading the data to reach a first time, after the first time, reading random logic block address data to the USB flash disk assembly to reach a second time, after the second time, executing the action of stopping reading the data again, repeating the reading and stopping processes, and if the reading fails in the reading process, finishing the upgrade failure display.
It should be noted that, the indicator lamp may be disposed in the usb disk assembly, or may be an indicator lamp externally connected to the embedded system, if the indicator lamp is an external indicator lamp, a converter capable of converting the reading operation into the display state of the indicator lamp needs to be inserted into the embedded system, so as to replace the original device for converting the reading operation into the display state of the indicator lamp in the usb disk assembly.
In the above embodiment, the present application further provides a corresponding embodiment of the embedded system upgrade status prompting device. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
FIG. 3 is a block diagram of an embedded system upgrade status prompting system according to another embodiment of the present application, as shown in the drawings, comprising:
a communication link module 11, configured to establish a communication link with the usb disk assembly;
a receiving module 12, configured to receive an upgrade program in the usb disk assembly through a communication link, so as to perform an upgrade through the upgrade program;
a determining module 13, configured to determine a corresponding upgrade status according to an upgrade process;
and the control display module 14 is used for sending corresponding reading operation to the USB flash disk assembly according to the upgrading state so that the indicator light in the USB flash disk assembly displays the display state corresponding to the reading operation.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 4 is a block diagram of an embedded system upgrade status prompting device according to another embodiment of the present application, where, as shown in fig. 4, the embedded system upgrade status prompting device includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the embedded system upgrade status prompting method as mentioned in the above embodiments when executing a computer program.
The embedded system upgrade status prompting device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, after being loaded and executed by the processor 21, can implement the relevant steps of the embedded system upgrade status prompting method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others.
In some embodiments, the embedded system fault status prompting device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of the embedded system upgrade status prompting device and may include more or less components than illustrated.
The embedded system upgrade state prompting device provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: an embedded system upgrade state prompting method.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The method, the system, the device and the medium for prompting the upgrade state of the embedded system provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An embedded system upgrade status prompting method is characterized by comprising the following steps:
establishing a communication link with the USB flash disk assembly;
receiving an upgrade program in the USB flash disk assembly through the communication link so as to upgrade through the upgrade program;
determining a corresponding upgrading state according to the upgrading process;
and executing corresponding reading operation on the USB flash disk assembly according to the upgrading state, so that the indicator lamp in the USB flash disk assembly displays a display state corresponding to the reading operation.
2. The method for prompting an upgrade status of an embedded system according to claim 1, wherein before said receiving an upgrade program in said usb disk assembly through said communication link to upgrade through said upgrade program, further comprises:
executing a pre-reading operation on the USB flash disk assembly;
and when the accumulated byte number of the pre-read data is larger than the preset byte number, judging that the current pre-read operation is in a stable state, and triggering the step of receiving the upgrade program of the U disk assembly through the communication link so as to upgrade the U disk assembly through the upgrade program.
3. The method for prompting an upgrade status of an embedded system according to claim 1, wherein the executing a corresponding read operation on the usb disk assembly according to the upgrade status so that an indicator light in the usb disk assembly displays a display status corresponding to the read operation includes:
when the upgrade state is a first upgrade state;
and executing corresponding first reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly continuously flashes according to the target flashing frequency.
4. The method for prompting an upgrade status of an embedded system according to claim 1, wherein the executing a corresponding read operation on the usb disk assembly according to the upgrade status so that an indicator light in the usb disk assembly displays a display status corresponding to the read operation includes:
when the upgrade state is a second upgrade state;
and executing corresponding second reading operation on the USB flash disk assembly, so that the indicator lamp in the USB flash disk assembly is continuously on or off according to the target on or off requirement.
5. The method for prompting an upgrade status of an embedded system according to claim 1, wherein the executing a corresponding read operation on the usb disk assembly according to the upgrade status so that an indicator light in the usb disk assembly displays a display status corresponding to the read operation includes:
when the upgrade state is a third upgrade state;
and executing corresponding third reading operation on the USB flash disk assembly so that the indicator lamp in the USB flash disk assembly intermittently flashes according to the target time interval.
6. The method of any one of claims 1-5, wherein the read operation is to read data of random LBA sector addresses of the usb component.
7. The embedded system upgrade status prompting method according to claim 2, wherein the pre-read operation comprises:
reading the capacity of the USB flash disk assembly;
calculating the largest LBA address in the U disk assembly;
and randomly selecting an LBA sector address from 0 to the largest LBA address in the U disk assembly, wherein data corresponding to the random LBA sector address is used as the data read by the pre-reading operation.
8. An embedded system upgrade status prompting system, comprising:
the communication link module is used for establishing a communication link with the USB flash disk assembly;
the receiving module is used for receiving the upgrade program in the USB flash disk assembly through the communication link so as to upgrade through the upgrade program;
the determining module is used for determining a corresponding upgrading state according to the upgrading process;
and the control display module is used for sending corresponding reading operation to the USB flash disk assembly according to the upgrading state so that the indicator lamp in the USB flash disk assembly displays the display state corresponding to the reading operation.
9. An embedded system upgrade state prompting device is characterized by comprising a memory for storing a computer program;
a processor for implementing the steps of embedded system upgrade status prompting according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of embedded system upgrade status prompting according to any one of claims 1 to 7.
CN202310757003.9A 2023-06-26 2023-06-26 Method, system, device and medium for prompting upgrading state of embedded system Pending CN116737211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310757003.9A CN116737211A (en) 2023-06-26 2023-06-26 Method, system, device and medium for prompting upgrading state of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310757003.9A CN116737211A (en) 2023-06-26 2023-06-26 Method, system, device and medium for prompting upgrading state of embedded system

Publications (1)

Publication Number Publication Date
CN116737211A true CN116737211A (en) 2023-09-12

Family

ID=87900978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310757003.9A Pending CN116737211A (en) 2023-06-26 2023-06-26 Method, system, device and medium for prompting upgrading state of embedded system

Country Status (1)

Country Link
CN (1) CN116737211A (en)

Similar Documents

Publication Publication Date Title
US20060259902A1 (en) Embedded system self-updating method and device
TWI498874B (en) Display electronic device and backlight adjustment method thereof
CN110930131A (en) Vehicle maintenance method, device, equipment and medium
CN104133682A (en) Information processing method and device
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
US20150242219A1 (en) Computer system and control method
CN107102879A (en) Information is sent and firmware upgrade method, device, terminal, equipment and storage medium
CN116737211A (en) Method, system, device and medium for prompting upgrading state of embedded system
CN106331892B (en) Module screen adjusting method and device of television and television
CN115242753B (en) Network card MAC address burning method, system, electronic equipment and storage medium
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN116775413A (en) PCIE topology scanning method, device, equipment and readable storage medium
CN109582515A (en) A kind of hard disk detection method, system and electronic equipment and storage medium
CN114546537B (en) Starting sequence deployment method and related device for multiple operating systems
CN102270148B (en) Method for upgrading drive board of LCD (liquid crystal display)
CN112885403B (en) Function test method, device and equipment of Flash controller
CN107506271A (en) A kind of method of testing and device
CN114416128A (en) Lighting fixture, intelligent control method thereof, computer readable storage medium and equipment
CN112463602A (en) User interface testing method and system
CN117075924B (en) Chip ID processing method and electronic equipment
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
CN111666083A (en) Component updating and displaying method, device and storage medium
CN115858433A (en) Method, system, device, equipment and storage medium for controlling retimer mode
CN114741240A (en) Test method, test device, storage medium and terminal
CN117075922A (en) Heterogeneous cross-domain controller upgrading method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination