Information determination method, electronic device, storage medium, and program product
By encoding and decoding the identification information, combining it with the device status and storage partition, the action information is determined to control the indicator light to display the firmware update process, which solves the problem of the existing technology that it is difficult to intuitively display the firmware recovery process and improves the user experience.
Patent Information
- Application Number
- CN202510942074.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-09
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-07-09
AI Technical Summary
When the system enters the pre-boot state, it is difficult to intuitively display or control the platform firmware recovery process, resulting in a poor user experience. In addition, external interference is not taken into account during information transmission, resulting in information missing and errors.
By encoding the identification information based on a preset encoding strategy, generating information to be verified, and decoding it using a preset decoding strategy, the action information is determined from the action information set in combination with the device status, storage partition, and process type to control the indicator light to perform the indicated action and intuitively display the firmware update process.
The progress of the firmware update is intuitively displayed to the user, avoiding long waiting times without information and improving the user experience.
Smart Images

Figure CN120429206B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server firmware updating, and in particular to an information determination method, electronic equipment, storage medium and program product. Background Art
[0002] Platform Firmware Resilience (PFR) technology can detect the integrity of the firmware before the system starts or during operation, and automatically restore the firmware to a normal state if damage is found, thereby ensuring stable and reliable operation of the server. Related technologies for firmware recovery mainly include performing firmware file integrity checks on multiple sub-areas of the basic input and output system based on the platform firmware recovery function; and triggering the platform firmware recovery function through a conditional judgment module. However, when the system enters the pre-boot state, related technologies make it difficult to intuitively display or control the platform firmware recovery process through the relevant interface, resulting in a poor user experience. In addition, external interference is not taken into account during information transmission, resulting in the loss and error of subsequent information. Summary of the Invention
[0003] In view of the above problems, the present invention provides an information determination method, apparatus, device, medium and program product.
[0004] According to a first aspect of the present invention, there is provided an information determination method, comprising: in response to receiving information to be verified, decoding the information to be verified based on a preset decoding strategy to obtain decoded information, wherein the information to be verified is obtained by encoding identification information based on a preset encoding strategy, and the identification information is used to indicate a firmware update process; in a case where the decoded information matches reference information of the identification information, determining action information from an action information set based on a device status, a storage partition, and a process type of the identification information, so that an indicator light performs an indication action based on the action information, and the indication action is used to indicate the firmware update process.
[0005] The second aspect of the present invention provides an information determination device, including: a decoding module, used to decode the information to be verified based on a preset decoding strategy in response to receiving information to be verified, to obtain decoded information, wherein the information to be verified is obtained by encoding identification information based on a preset encoding strategy, and the identification information is used to indicate the firmware update process; an information determination module, used to determine action information from an action information set based on the device status, storage partition and process type of the identification information when the decoded information matches the reference information of the identification information, so that the indicator light performs an indication action based on the action information, and the indication action is used to indicate the firmware update process.
[0006] A third aspect of the present invention provides an electronic device, comprising: a memory; and a processor configured to execute the above-mentioned information determination method according to instructions and data stored in the memory.
[0007] The fourth aspect of the present invention further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the computer program or instructions are executed by a processor.
[0008] The fifth aspect of the present invention further provides a computer program product, comprising a computer program or instructions, which implement the steps of the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0010] Figure 1 A diagram illustrating an application scenario of the information determination method, apparatus, device, medium, and program product according to an embodiment of the present invention is shown;
[0011] Figure 2 A flow chart of an information determination method according to an embodiment of the present invention is shown;
[0012] Figure 3 A flow chart of an information determination method according to another embodiment of the present invention is shown;
[0013] Figure 4 It shows a structural block diagram of an information determination device according to an embodiment of the present invention;
[0014] Figure 5 shows a block diagram of an electronic device according to an embodiment of the present invention;
[0015] Figure 6 A block diagram of a first electronic device suitable for implementing an information determination method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0016] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concept of the present invention.
[0017] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the presence of the features, steps, operations and / or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.
[0018] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0019] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0020] In some examples, a business area stored in a Basic Input Output System (BIOS) is divided into multiple sub-areas, different firmware files are stored, and firmware file integrity checks are performed on the multiple sub-areas, and corresponding processing is performed based on the check results.
[0021] However, the verification process may be affected by external interference, resulting in inaccurate verification results. For example, power fluctuations or electromagnetic interference may introduce errors during firmware file reading or verification calculations, causing a normal firmware file to be mistakenly identified as corrupted, or a corrupted firmware file to be mistakenly identified as normal. This may cause the system to mistakenly boot into corrupted firmware or require unnecessary firmware recovery, affecting system stability and reliability.
[0022] In some examples, multiple trigger conditions for proactively triggering the platform firmware recovery function can be set as needed. A firmware file integrity check is performed on the server, and an image file of the server firmware is obtained. If the check fails, the server's platform firmware recovery function is performed using the image file. If the check succeeds, server information is obtained in real time to determine whether the information meets the trigger conditions. If triggered, the server's platform firmware recovery function is performed using the image file. This method, to a certain extent, allows users to set multiple trigger conditions for proactively triggering PFR as needed.
[0023] However, when the PFR firmware version is refreshed or PFR triggers image recovery, the server will enter the pre-boot state for a considerable period of time. During this stage, the server is unable to boot. However, it is currently difficult to determine the firmware version refresh progress or when the PFR recovery process will end from the relevant interface or other methods. It is also impossible to determine the time when the server can be booted, causing users to wait for a long time for the process to complete without any information.
[0024] In response to the above-mentioned problems, the present invention provides an information determination method, apparatus, device, medium, and program product. The method comprises: in response to receiving information to be verified, decoding the information to be verified based on a preset decoding strategy to obtain decoded information, wherein the information to be verified is obtained by encoding identification information based on a preset encoding strategy, and the identification information is used to indicate the firmware update process; when the decoded information matches reference information of the identification information, determining action information from an action information set based on the device state, storage partition, and process type of the identification information, so that an indicator light performs an indication action based on the action information, and the indication action is used to indicate the firmware update process.
[0025] According to an embodiment of the present invention, since the information to be verified is obtained by encoding the identification information based on a preset encoding strategy, the situation in which the identification information is affected by the external environment during transmission and causes information loss or error is avoided, so that the decoded information obtained after processing the information to be verified can truly reflect the process information of the firmware update, and the matching degree between the decoded information and the reference information is guaranteed, so that the action information is comprehensively determined based on the device status, storage partition and process type of the identification information, and then the indicator light is used to perform the indication action, intuitively showing the firmware update process to the user, avoiding a long waiting process with no information, and improving the user experience.
[0026] Figure 1 A diagram illustrating an application scenario of an information determination method, apparatus, device, medium, and program product according to an embodiment of the present invention is shown.
[0027] like Figure 1 As shown, the application scenario according to this embodiment may include a first server 101, a network 102, and a second server 103. The network 102 may include various connection types, such as wired or wireless communication links or optical fiber cables.
[0028] The first server 101 can have multiple firmware files installed (for example, platform firmware elasticity and basic input / output system firmware). The firmware update progress and status can be determined by the indicator light 1011 (for example, a unit identification light) on the first server 101. The unit identification light (UID) can be located on the server's front panel or chassis and connected to the server's mainboard via internal circuitry. It is understood that the indicator light can be embedded in the first server 101 or detached from the first server 101.
[0029] The second server 103 may be a server for controlling the blinking of an indicator light on the first server, and may control the state of the indicator light according to the received identification signal. In a feasible embodiment, the second server 103 may be a complex programmable logic device directly integrated on the first server 101.
[0030] For example, the second server 103 may control the UID light based on pre-set logic according to the update preparation status information received from the first server 101. For example, it may cause the UID light to flash at a specific frequency, such as once per second, to remind the user that the first server 101 is in the preparation stage before the firmware update.
[0031] For example, the second server 103 can dynamically adjust the flashing pattern of the UID light according to the received update progress information. For example, when the update progress reaches 50%, the UID light flashes faster, flashing once every 0.5 seconds, to intuitively show the user that the firmware update process is progressing.
[0032] It should be noted that the information determination method provided in the embodiments of the present invention can generally be executed by the second server 103. Accordingly, the information determination apparatus provided in the embodiments of the present invention can generally be located in the second server 103. The information determination method provided in the embodiments of the present invention can also be executed by a server or server cluster that is different from the second server 103 and capable of communicating with the second server 103. Accordingly, the information determination apparatus provided in the embodiments of the present invention can also be located in a server or server cluster that is different from the second server 103 and capable of communicating with the second server 103.
[0033] It should be understood that Figure 1 The numbers of the first servers, networks, and second servers in the embodiment are merely illustrative. Any number of the first servers, networks, and second servers may be provided as required.
[0034] Figure 2A flow chart of an information determination method according to an embodiment of the present invention is shown.
[0035] like Figure 2 As shown, the information determination method of this embodiment includes operations S210 to S220.
[0036] In operation S210, in response to receiving the information to be verified, the information to be verified is decoded based on a preset decoding strategy to obtain decoded information, wherein the information to be verified is obtained by encoding identification information based on a preset encoding strategy, and the identification information is used to indicate the firmware update process.
[0037] In an embodiment of the present invention, the identification information may be identification signals sent by multiple important nodes in the firmware update process when the server enters the pre-boot state. The firmware may be various software required for the operation of the server hardware, including firmware for server startup and hardware initialization. The information to be verified may be information obtained by enhancing and encoding the identification information. The preset encoding strategy may be a variety of strategies for encoding and phase enhancement of the information to be verified.
[0038] For example, the sending node can encode the identification information to obtain the encoded information, and then convert the encoded information to obtain the information to be verified and send it to the processing node; after receiving the information to be verified, the processing node can decode the information to be verified based on a preset decoding strategy corresponding to the preset encoding strategy to obtain decoded information.
[0039] In operation S220, when the decoded information matches the reference information of the identification information, action information is determined from the action information set based on the device status, storage partition and process type of the identification information, so that the indicator light performs an indication action based on the action information, and the indication action is used to indicate the update process of the firmware.
[0040] In an embodiment of the present invention, the reference information may be complementary information to the identification information, used to verify the correctness of the identification information. The storage partitions may be multiple storage areas in a server for storing firmware. For example, they may include a partition for storing uncompressed, directly executable firmware code, a partition for storing compressed firmware backup files for system recovery, and a partition for a temporary buffer during a firmware upgrade.
[0041] The process type of the identification information includes multiple types based on multiple stages or states of the firmware update process. The action information set can be a plurality of to-be-executed action information of the indicator light determined according to actual conditions and user needs, and can be pre-stored in the system for easy access at any time during the action information determination process.
[0042] For example, after determining the coding information, the coding information can be matched with the reference information; if the two match successfully, the current storage partition and the current process type can be integrated to determine the current action information from the action information set, and then the indicator light can be controlled to perform the indication action based on the current action information to intuitively show the user the update process of the firmware in the server.
[0043] According to an embodiment of the present invention, since the information to be verified is obtained by encoding the identification information based on a preset encoding strategy, the situation in which the identification information is affected by the external environment during transmission and causes information loss or error is avoided, so that the decoded information obtained after processing the information to be verified can truly reflect the process information of the firmware update, and the matching degree between the decoded information and the reference information is guaranteed, so that the action information is comprehensively determined based on the device status, storage partition and process type of the identification information, and then the indicator light is used to perform the indication action, intuitively showing the firmware update process to the user, avoiding a long waiting process with no information, and improving the user experience.
[0044] According to an embodiment of the present invention, the preset coding strategy includes a coding conversion strategy and a phase conversion strategy, and the information to be verified is obtained based on the following operations: using the coding conversion strategy to perform multi-base encoding on the identification information to obtain a coding sequence; using the phase conversion strategy to map the subsequences in the coding sequence to multiple preset phases in sequence to obtain the information to be verified after phase conversion.
[0045] In an embodiment of the present invention, a code conversion strategy may be a strategy that combines a code conversion strategy and a phase conversion strategy to enhance the anti-interference capability of the identification signal. The code conversion strategy may be a multi-base encoding method, and the phase conversion strategy may be a method of performing phase conversion on the encoded information. The preset phase may be a phase determined according to the phase conversion strategy and corresponding to each subsequence.
[0046] In related technologies, directly sending identification information is susceptible to electromagnetic interference, hardware failures, and other factors during transmission, leading to signal loss or errors. This prevents processing nodes from accurately obtaining key node information for the firmware update process. To address this technical problem, the present invention considers encoding and enhancing the identification information, then transmitting the enhanced information. This ensures that the information received by the processing node is more complete and accurate.
[0047] For example, a combination of multi-level encoding and phase shifting can be used. Multi-level encoding allows each code element to contain more information, improving transmission efficiency. Phase shifting can represent different code elements by changing the phase of the carrier, providing strong anti-interference capabilities. At the transmitter, the identification information is first multi-level encoded, and then converted into a signal form suitable for transmission using a phase shifting strategy.
[0048] For example, the initial identification information is encoded in a multi-base system. Assuming that the original identification information is binary, for example ("101010"), every 3 binary digits are considered as a group (2 3 =8, which corresponds to the 8 octal values 0-7), and converts it to the corresponding octal value. For example, "101" corresponds to 5, and "010" corresponds to 2. The entire original identification information can be converted into an octal signal sequence.
[0049] Furthermore, a conversion method that represents different digital signals by changing the phase of the carrier signal can be used. For example, 16-Phase Shift Keying (16-PSK) can be used. Based on the octal signal sequence obtained in the previous step, each value can be mapped to a specific 16-PSK phase according to certain rules. For example, 0 in the octal system corresponds to a phase of 0°, 1 corresponds to a phase of 22.5°, 2 corresponds to a phase of 45°, and so on, up to 7 corresponding to a phase of 157.5°. After conversion, the multi-base encoded signal sequence can be converted into an analog signal form suitable for transmission in the channel. This analog signal carries the original identification information and is sent over the transmission medium.
[0050] Multi-bit encoding can transmit multiple bits of information within a single symbol period. For example, when using octal encoding, each symbol can transmit 3 bits of information. Compared to binary encoding, this improves spectrum efficiency by three times, allowing more identification information to be transmitted within the same bandwidth, effectively increasing the transmission rate.
[0051] According to the embodiments of the present invention, by properly selecting multi-base encoding and phase modulation parameters, the system channel coding performance can be fully utilized, enabling the system to achieve better bit error rate performance under given signal-to-noise ratio conditions. Phase modulation is insensitive to amplitude variations and has good noise and interference resistance. By combining multi-base encoding with phase modulation, the advantages of phase modulation are utilized to make the signal more resistant to factors such as electromagnetic interference during transmission, reducing the probability of signal loss or errors and ensuring the reliability of identification information transmission.
[0052] According to an embodiment of the present invention, decoding processing is performed on the information to be verified based on a preset decoding strategy to obtain decoded information, including: determining the difference between the phase characteristics of the information to be verified and the reference phase characteristics of the reference decoding information; obtaining an intermediate decoding sequence based on the difference and the mapping relationship between the coding sequence and the phase value in the phase conversion strategy; and converting the intermediate decoding sequence to obtain decoded information.
[0053] In embodiments of the present invention, the reference decoding information may be reference information corresponding to the identification information and may be used to analyze the characteristics of the original identification signal. Considering that the information to be verified received from the transmitting node via the transmission channel may be distorted or affected by noise due to various interference factors during transmission, a preset decoding strategy may be used to obtain the decoding information.
[0054] For example, in the encoding phase, binary to octal conversion and 16-phase shift keying are used. After receiving the information to be verified, 16-PSK conversion can be performed on the information to be verified, extracting the phase information previously mapped by the transmitter from the modulated analog signal. By analyzing the characteristics of the information to be verified, such as the phase of the identification signal relative to the reference phase of the carrier, the phase state corresponding to each signal point is determined, thereby recovering the value corresponding to the phase conversion performed by the transmitter (intermediate decoding sequence).
[0055] The resulting intermediate decoded sequence is decoded according to the previous encoding rules and converted back to the binary form of the original identification information. For example, if the demodulated octal values are 5 and 2, they can be converted back to the binary "101" and "010" respectively. Combined, they return the original binary identification information "101010", achieving accurate recovery and transmission of the original identification information. This fusion of multi-base encoding and phase modulation enhances the identification information's anti-interference ability during transmission, making it less likely to lose or erroneously transmit the signal.
[0056] In one feasible embodiment, quantum coding technology can also be applied to the transmission of identification information. This technology utilizes the properties of quantum bits, such as superposition and entanglement, to encode information. For example, quantum error correction codes can be used to encode identification information. These quantum codes can detect and correct errors that may occur during quantum bit transmission, such as bit flips or phase flips. Once the identification information is encoded into a quantum state, it is transmitted over a quantum channel. At the receiving end, a corresponding quantum decoding device, combined with quantum measurement technology, can be used to restore the quantum state to a classical signal, thereby obtaining accurate identification information.
[0057] According to an embodiment of the present invention, by utilizing the superposition and entanglement characteristics of quantum states, the identification information can be made more robust against noise and interference during transmission. Even if part of the quantum state is interfered with, the original signal can still be restored through technologies such as quantum error correction coding, thereby reducing the probability of signal loss or error.
[0058] According to an embodiment of the present invention, the process type includes at least one of the following: a start process, an execution process, and an end process, the action information set includes a mapping relationship between the start process, the execution process, and the end process and the frequency, color, and brightness of the indicator light, and the storage partition includes at least one of an active partition and a backup partition; based on the device status, the storage partition, and the process type of the identification information, the action information is determined from the action information set so that the indicator light performs an indication action based on the action information, including: when the storage partition is an active partition, based on the first status in the device status, the current process type, and the first action information corresponding to the process type of the active partition is determined from the action information set, so that the indicator light performs a first indication action based on the first action information.
[0059] In an embodiment of the present invention, the active partition may be a partition within the storage partition used to store uncompressed, directly executable firmware code, and the backup partition may be a partition used to store system recovery firmware backup files. The storage partition may also include a staging partition used as a temporary buffer during firmware upgrades. In the security architecture for platform firmware resilience, the storage partitions within the memory may include the active partition, the recovery partition, and the staging partition described above. The first action information may be action information within the action information set corresponding to the active partition in the first device state.
[0060] For example, in the first state (the server starts normally, no firmware update is performed, and the firmware recovery function is not triggered), the server enters the preparation mode similar to the startup state after startup. After successfully verifying the basic input and output system of the current active partition, it can start normally. The unit identification light can be defined to flash blue once for 1 second to indicate that the basic input and output system verification is currently being performed.
[0061] It should be noted that the mapping relationship between the firmware update process and the frequency, color and brightness of the indicator light in the action information set is only an example and can be set accordingly according to actual conditions and user needs, and is not specifically limited here.
[0062] According to an embodiment of the present invention, action information is determined from an action information set based on the device status, storage partition and process type of identification information, so that the indicator light performs an indication action based on the action information. It also includes: in the case where the storage partition includes an active partition and a backup partition, based on the second status in the device status, the current process type, the backup action information and the second action information corresponding to the backup partition and the active partition are respectively determined from the action information set, so that the indicator light performs the backup indication action and the second indication action in sequence based on the backup action information and the second action information.
[0063] In an embodiment of the present invention, the backup action information may be action information corresponding to the backup partition in the action information set in the second device state, and the second action information may be action information corresponding to the active partition in the action information set in the second device state. When the server boots normally and requires a new version of PFR firmware update, multiple action information may be determined based on the active partition, backup partition, and process type, to control the indicator lights to perform corresponding indicated actions.
[0064] For example, in the second state (the server boots up normally and is updating the new version of the firmware): the firmware update can first update the recovery part. Before updating the recovery part, the indicator light (UID light) flashes yellow quickly for 10 seconds. If the UID key is pressed within 10 seconds, the recovery part update can be skipped. If no operation is performed, the recovery part is updated normally. While the recovery part is being updated, the UID light flashes green slowly to remind the user that the firmware recovery part is being updated and not to power off the system. After the recovery part update is complete, the active part can be updated next. Similarly, before refreshing the active part, the UID light flashes yellow quickly and slowly for 10 seconds. If the UID key is pressed within 10 seconds, the active part update is stopped. While the active part is being updated, the UID light flashes green slowly to remind the user that the active part of the firmware is being updated and not to power off the system.
[0065] According to an embodiment of the present invention, action information is determined from an action information set based on the device status, storage partition and process type of identification information, so that the indicator light performs an indication action based on the action information. It also includes: in the case where the storage partition is an active partition, based on the third status in the device status, the current process type, the third action information corresponding to the active partition is determined from the action information set, so that the indicator light performs a third indication action based on the third action information.
[0066] In the embodiment of the present invention, the third action information may be action information corresponding to the active partition in the action information set in the third state.
[0067] For example, if the current active firmware fails verification, the PFR recovery function is triggered, and the device enters the third device state (firmware recovery is triggered after the server is powered on, and the server enters the pre-boot state). The firmware version is read from the recovery area and overwritten in the active area. During this process, the UID indicator can be used to slowly flash green to indicate that the active firmware is being updated.
[0068] According to an embodiment of the present invention, action information is determined from an action information set by adjusting the UID flashing frequency and color according to the action information to feed back the user firmware update content information and progress information. At the same time, a preset time length (for example, 10 seconds) is reserved at a key node to allow the user to choose whether to cancel or skip the current refresh process. This method can solve the problem that the user cannot obtain firmware refresh information, and also increases the control and adjustment of the refresh progress in this process.
[0069] According to an embodiment of the present invention, the method also includes: in response to receiving reference information, decoding the reference information to obtain decoded reference information, wherein the reference information is information after inverting the identification information; when the decoded reference information matches the identification information, determining the process type of the identification information; when the decoded reference information does not match the identification information, generating an alarm message.
[0070] In an embodiment of the present invention, in order to avoid signal misjudgment caused by only single-channel signal transmission in the related art, the present invention avoids information misjudgment of identification information by transmitting two complementary signals simultaneously.
[0071] For example, at the sending node, two complementary signals of identification information can be generated, such as the original signal Flag and the reference signal Flag-n. The reference signal Flag-n can be the binary complement of the Flag signal (that is, each bit is inverted); thus, two independent transmission channels can be used to send Flag and Flag-n in parallel respectively; after the processing node receives the complementary signals, it can compare whether the received Flag and Flag-n signals are complementary.
[0072] Under normal circumstances, Flag and Flag-n are in a two's complement relationship, satisfying the condition that Flag XOR Flag-n equals all 1s. If Flag and Flag-n are not complementary, it means that at least one signal has an error during transmission, triggering an alarm mechanism.
[0073] According to embodiments of the present invention, by transmitting and verifying complementary signals, transmission errors can be effectively detected, improving signal transmission reliability and enabling timely discovery of errors during signal transmission, allowing the system to quickly respond and take action. Furthermore, redundant (complementary) signals provide an additional layer of protection, enhancing the system's fault tolerance.
[0074] In a feasible embodiment, in order to prevent the identification signal from being affected by electromagnetic interference, hardware failure and other factors during the transmission process, resulting in signal loss or error, corresponding signal enhancement measures can be taken to improve the anti-interference ability of the identification signal. For example, the sending node sends identification information and code information to be verified, the processing node verifies it and replies with a response signal, and the sending node can automatically retransmit the signal if it does not receive a response signal within the time limit; the sending decision can periodically send heartbeat identification information (such as every 10ms), and the processing node continuously detects. If three heartbeat identification messages are lost continuously, it is judged that the connection is faulty and the refresh process is suspended to wait for the system to reset.
[0075] Figure 3 A flow chart of an information determination method according to another embodiment of the present invention is shown.
[0076] like Figure 3 As shown, the process of the method for determining firmware update information may include operations S310 to S370.
[0077] In operation S310, the sending node may use a coding conversion strategy to encode the identification information to obtain a coding sequence.
[0078] In operation S320 , the sending node may use a phase conversion strategy to sequentially map subsequences in the coding sequence to a plurality of preset phases, obtain information to be verified after phase conversion, and send the information to be verified to the processing node.
[0079] In operation S330 , after receiving the information to be verified, the processing node may determine a difference between a phase feature of the information to be verified and a reference phase feature of the reference decoded information.
[0080] In operation S340 , the processing node obtains an intermediate decoding sequence by combining the difference and the mapping relationship between the coding sequence and the phase value in the phase conversion strategy.
[0081] In operation S350 , the processing node performs conversion processing on the intermediate decoding sequence to obtain decoding information.
[0082] In operation S360 , if the decoded information matches the reference information, the processing node may determine action information from the action information set in combination with the storage partition and the process type of the identification information, and control the indicator light based on the action information.
[0083] In operation S370, the indicator light may perform an indication action based on the action information.
[0084] Based on the above information determination method, the present invention also provides an information determination device. Figure 4 The device is described in detail.
[0085] Figure 4 A structural block diagram of an information determination device according to an embodiment of the present invention is shown.
[0086] like Figure 4 As shown, the information determination device 400 of this embodiment includes a decoding module 410 and an information determination module 420 .
[0087] Decoding module 410 is configured to, in response to receiving the information to be verified, decode the information to be verified based on a preset decoding strategy to obtain decoded information, wherein the information to be verified is obtained by encoding identification information based on a preset encoding strategy, and the identification information is used to indicate the firmware update process. In one embodiment, decoding module 410 can be configured to perform operation S210 described above, and will not be further described here.
[0088] Information determination module 420 is configured to, when the decoded information matches the reference information in the identification information, determine action information from the action information set based on the device state, storage partition, and process type in the identification information, so that the indicator light performs an indication action based on the action information, the indication action being used to indicate the firmware update process. In one embodiment, information determination module 420 may be configured to perform operation S220 described above, and will not be further described herein.
[0089] According to an embodiment of the present invention, based on the decoding module 410 and the information determination module 420 in the information determination device 400, since the information to be verified is obtained by encoding the identification information based on a preset encoding strategy, the situation in which the identification information is affected by the external environment during transmission and causes information loss or error is avoided, so that the decoded information obtained after processing the information to be verified can truly reflect the process information of the firmware update, and the matching degree between the decoded information and the reference information is guaranteed, so that the action information is comprehensively determined based on the device status, storage partition and process type of the identification information, and then the indicator light is used to perform the indication action, so as to intuitively show the firmware update process to the user, avoid the long waiting process without information, and improve the user experience.
[0090] According to an embodiment of the present invention, the preset coding strategy includes a coding conversion strategy and a phase conversion strategy, and the information to be verified is obtained based on the following operations: using the coding conversion strategy to perform multi-base encoding on the identification information to obtain a coding sequence; using the phase conversion strategy to map the subsequences in the coding sequence to multiple preset phases in sequence to obtain the information to be verified after phase conversion.
[0091] According to an embodiment of the present invention, decoding module 410 includes: a difference determination submodule, a sequence determination submodule, and a conversion submodule. The difference determination submodule is configured to determine the difference between the phase characteristics of the information to be verified and the reference phase characteristics of the reference decoding information; the sequence determination submodule is configured to obtain an intermediate decoding sequence based on the difference and the mapping relationship between the encoding sequence and the phase value in the phase conversion strategy; and the conversion submodule is configured to convert the intermediate decoding sequence to obtain decoded information.
[0092] According to an embodiment of the present invention, the process type includes at least one of the following: a start process, an execution process, and an end process; the action information set includes a mapping relationship between the start process, the execution process, and the end process and the frequency, color, and brightness of the indicator light; the storage partition includes at least one of an active partition and a backup partition; the information determination module 420 includes: a first action information determination submodule, which is used to determine, when the storage partition is an active partition, the first action information corresponding to the process type of the active partition from the action information set, so that the indicator light performs a first indication action based on the first action information.
[0093] According to an embodiment of the present invention, the information determination module 420 also includes: a second action information determination sub-module, which is used to determine the backup action information and the second action information corresponding to the backup partition and the active partition from the action information set respectively when the storage partition includes an active partition and a backup partition, so that the indicator light performs the backup indication action and the second indication action in sequence based on the backup action information and the second action information.
[0094] According to an embodiment of the present invention, the information determination module 420 also includes: a third action information determination submodule, which is used to determine the third action information corresponding to the active partition from the action information set when the storage partition is an active partition, so that the indicator light performs a third indication action based on the third action information.
[0095] According to an embodiment of the present invention, the apparatus further comprises: a decoding processing module, a type determination module, and an alarm module. The decoding processing module is configured to, in response to receiving reference information, decode the reference information to obtain decoded reference information, wherein the reference information is information obtained by inverting the identification information; the type determination module is configured to determine the process type of the identification information if the decoded reference information matches the identification information; and the alarm module is configured to generate an alarm if the decoded reference information does not match the identification information.
[0096] According to embodiments of the present invention, any multiple modules in decoding module 410 and information determination module 420 may be combined into a single module, or any one of these modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present invention, at least one of decoding module 410 and information determination module 420 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or may be implemented through any other reasonable means of circuit integration or packaging, such as hardware or a storage node, or may be implemented in any one of the three implementation methods of software, hardware, and a storage node, or any suitable combination of these. Alternatively, at least one of decoding module 410 and information determination module 420 may be at least partially implemented as a computer program module that, when executed, performs the corresponding functionality.
[0097] Figure 5 A block diagram of an electronic device according to an embodiment of the present invention is shown.
[0098] like Figure 5 As shown, the electronic device 500 includes a memory 501 and a processor 502 configured to execute the above information determination method according to instructions and data stored in the memory.
[0099] In an embodiment of the present invention, the instructions stored in the memory 501 include but are not limited to information sending instructions, information decoding instructions, execution instruction action instructions and firmware update instructions, and the stored data include but are not limited to identification information, reference information, information to be verified and decoded information.
[0100] Figure 6 A block diagram of a first electronic device suitable for implementing an information determination method according to an embodiment of the present invention is shown.
[0101] like Figure 6As shown, a first electronic device 600 according to an embodiment of the present invention includes a first processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 into a random access memory (RAM) 603. The first processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor, and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)). The first processor 601 may also include onboard memory for caching purposes. The first processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0102] The RAM 603 stores various programs and data required for the operation of the first electronic device 600. The first processor 601, ROM 602, and RAM 603 are connected to each other via a bus 604. The first processor 601 executes the programs in the ROM 602 and / or RAM 603 to perform various operations according to the method flow of the embodiment of the present invention. It should be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The first processor 601 may also execute the programs stored in the one or more memories to perform various operations according to the method flow of the embodiment of the present invention.
[0103] According to an embodiment of the present invention, the first electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The first electronic device 600 may also include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage portion 608 including a hard disk; and a communication portion 609 including a network interface card such as a LAN card or a modem. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. Removable media 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read from the removable media can be installed in the storage portion 608 as needed.
[0104] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the method according to the embodiments of the present invention.
[0105] According to an embodiment of the present invention, a computer-readable storage medium may be a non-volatile computer-readable storage medium, and may include, for example, but not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present invention, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above, and / or one or more memories other than ROM 602 and RAM 603.
[0106] An embodiment of the present invention further includes a computer program product comprising a computer program containing program code for executing the method shown in the flowchart. When the computer program product is executed in a computer system, the program code is used to cause the computer system to implement the information determination method provided by the embodiment of the present invention.
[0107] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when the first processor 601 executes the computer program. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0108] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0109] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609 and / or installed from a removable medium 611. When the computer program is executed by the first processor 601, the above-described functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.
[0110] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0112] It will be understood by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in the present invention. In particular, the features described in the various embodiments of the present invention may be combined and / or coupled in various ways without departing from the spirit and teachings of the present invention. All such combinations and / or couplings fall within the scope of the present invention.
[0113] The above describes embodiments of the present invention. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present invention. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A method for determining information, characterized in that: The method comprises: In response to receiving the information to be verified, decoding the information to be verified based on a preset decoding strategy to obtain decoded information, wherein the information to be verified is obtained by encoding identification information based on a preset encoding strategy, the preset encoding strategy includes a phase conversion strategy, and the identification information is used to indicate a firmware update process; When the decoded information matches the reference information of the identification information, determining action information from the action information set based on the device state, the storage partition, and the process type of the identification information, so that the indicator light performs an indication action based on the action information, the indication action being used to indicate the update process of the firmware; The decoding process of the information to be verified is performed based on a preset decoding strategy to obtain decoded information, including: Determining a difference between a phase characteristic of the information to be verified and a reference phase characteristic of reference decoded information; Obtaining an intermediate decoding sequence based on the difference and a mapping relationship between the coding sequence and the phase value in the phase conversion strategy; The intermediate decoding sequence is converted to obtain the decoding information.
2. The method according to claim 1, characterized in that The preset encoding strategy also includes an encoding conversion strategy, and the information to be verified is obtained based on the following operations: Performing multi-base encoding on the identification information using the encoding conversion strategy to obtain the encoding sequence; The phase conversion strategy is used to sequentially map subsequences in the coding sequence to a plurality of preset phases to obtain information to be verified after phase conversion.
3. The method according to claim 1, characterized in that The process type includes at least one of the following: a start process, an execution process, and an end process; the action information set includes a mapping relationship between the start process, the execution process, and the end process and the frequency, color, and brightness of the indicator light; and the storage partition includes at least one of an active partition and a backup partition; Determining action information from an action information set based on a device state, a storage partition, and a process type of the identification information, so that the indicator light performs an indication action based on the action information, including: In the case where the storage partition is an active partition, based on the first state in the device state and the current process type, first action information corresponding to the process type of the active partition is determined from the action information set, so that the indicator light performs a first indication action based on the first action information.
4. The method according to claim 3, characterized in that The method further includes: determining action information from the action information set based on the device state, the storage partition, and the process type of the identification information, so that the indicator light performs an indication action based on the action information. In the case where the storage partition includes the active partition and the backup partition, the backup action information and the second action information corresponding to the backup partition and the active partition are respectively determined from the action information set based on the second state in the device state and the current process type, so that the indicator light performs the backup indication action and the second indication action in sequence based on the backup action information and the second action information.
5. The method according to claim 3, characterized in that The method further includes: determining action information from the action information set based on the device state, the storage partition, and the process type of the identification information, so that the indicator light performs an indication action based on the action information. In the case where the storage partition is the active partition, third action information corresponding to the active partition is determined from the action information set based on the third state in the device state and the current process type, so that the indicator light performs a third indication action based on the third action information.
6. The method according to claim 1, characterized in that The method further comprises: In response to receiving the reference information, decoding the reference information to obtain decoded reference information, wherein the reference information is information obtained by inverting the identification information; If the decoded reference information matches the identification information, determining a process type of the identification information; In the case that the decoded reference information does not match the identification information, an alarm message is generated.
7. An electronic device, characterized in that: include: Memory; A processor configured to execute the method according to any one of claims 1 to 6 according to the instructions and data stored in the memory.
8. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Computer working state display system and method
CN116662124A
Server firmware update display method and device, communication equipment and storage medium
CN118467010A