Firmware upgrading system

By setting up the upgrade detection module in the electronic device and using the original interface to receive and analyze the firmware upgrade data, the firmware upgrade without dismantling the machine and adding external interfaces is realized, which solves the problems of complicated equipment structure and increased cost, and improves the upgrade efficiency. Efficiency and convenience.

CN118733069APending Publication Date: 2024-10-01GUANGZHOU SHIXIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310317224.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When upgrading the firmware of existing electronic equipment, it is necessary to disassemble the host or pre-set a dedicated interface, resulting in a complicated structure and increased cost, and it cannot be used frequently.

Method used

By setting up an upgrade detection module in the device to be upgraded, using the original interface or communication module to receive the information flow carrying the firmware upgrade data, parsing and upgrading the firmware, avoiding the preset of a dedicated interface, and realizing the solution without disassembling the device or adding external interfaces. Firmware upgrade.

Benefits of technology

It reduces the structural complexity and production cost of the entire machine, improves the convenience and efficiency of firmware upgrades, and supports larger traffic of upgrade data transmission and fast upgrade operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733069A_ABST
    Figure CN118733069A_ABST
Patent Text Reader

Abstract

The invention relates to the field of firmware upgrading, in particular to a firmware upgrading system. The firmware upgrading system comprises a to-be-upgraded device, the to-be-upgraded device is provided with an upgrading detection module, and the to-be-upgraded device receives an information flow; the upgrading detection module identifies the information flow, if the information flow meets a preset condition, the information flow is upgrading trigger data, the to-be-upgraded equipment enters an upgrading mode, and the subsequent information flow of the upgrading trigger data is obtained to serve as the upgrading information flow; the to-be-upgraded equipment analyzes the upgrading information flow to obtain firmware upgrading data, and firmware of the to-be-upgraded equipment is upgraded according to the firmware upgrading data. According to the firmware upgrading system, firmware upgrading can be achieved under the condition that an external interface is not added or a machine is not disassembled, the use of a firmware upgrading interface is omitted, the structural complexity of complete machine equipment is reduced, and the upgrading process of the equipment is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of device firmware upgrade, and in particular to a firmware upgrade system. Background Art

[0002] Firmware refers to the device driver stored in the internal memory of an electronic device. Only through the firmware operating system can the operation of a specific machine be realized according to the standard device driver. For example, electronic devices such as monitors and speakers have internal firmware and rely on firmware to implement related functions. Firmware upgrade refers to the upgrade of the embedded firmware of an electronic device. During the use of an electronic device, its internal firmware needs to be upgraded to improve the device function, enhance the device stability or fix device vulnerabilities.

[0003] Some electronic devices used to play audio and video are usually only equipped with audio and video transmission interfaces and power supply interfaces. If the firmware of such electronic devices needs to be upgraded, the host needs to be disassembled to achieve the firmware upgrade. For this reason, some electronic devices will pre-install a dedicated firmware upgrade interface to avoid the trouble of disassembling the host for firmware upgrade. However, the dedicated firmware upgrade interface is only used for a small number of device firmware upgrades and cannot be used for other purposes. The setting of the firmware upgrade interface will complicate the structure of the entire device and increase the cost of the entire device. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a firmware upgrade system. The firmware upgrade system can realize firmware upgrade through the original interface or communication module without adding an external interface or disassembling the device, eliminating the need for presetting a dedicated firmware upgrade interface, reducing the structural complexity of the entire device, and reducing the production cost of the device to be upgraded.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a firmware upgrade system, including a device to be upgraded, wherein the device to be upgraded is provided with an upgrade detection module;

[0006] The device to be upgraded receives the information flow;

[0007] The upgrade detection module identifies the information flow. If the information flow meets the preset conditions, the information flow is the upgrade trigger data. The device to be upgraded enters the upgrade mode and obtains the subsequent information flow of the upgrade trigger data as the upgrade information flow.

[0008] The device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data.

[0009] The technical solution of the disclosed embodiment is to transmit an information stream carrying firmware upgrade data to the device to be upgraded, and the device to be upgraded parses the information stream to obtain the firmware upgrade data after receiving the information stream, and upgrades the firmware of the device to be upgraded based on the firmware upgrade data. Without adding an external interface or disassembling the device, the device to be upgraded can receive the firmware upgrade data, so there is no need to pre-install a firmware upgrade interface on the host of the device to be upgraded, and there is no need to disassemble the host to achieve the firmware upgrade inside the device, which reduces the structural complexity of the entire device and reduces the production cost of the device to be upgraded.

[0010] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

[0011] For better understanding and implementation, the present disclosure is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a schematic diagram of the structure of a firmware upgrade system according to an embodiment of the present disclosure;

[0013] Figure 2 This is a schematic diagram of the structure of a firmware upgrade system according to an optional embodiment of the present disclosure;

[0014] Figure 3 A flowchart of a method for obtaining a firmware upgrade file according to an embodiment of the present disclosure;

[0015] Figure 4 This is a flowchart of S201 in the method for obtaining a firmware upgrade file according to an optional embodiment of the present disclosure;

[0016] Figure 5 A schematic diagram of a process for upgrading the firmware of a device to be upgraded according to an embodiment of the present disclosure;

[0017] Figure 6 This is a flowchart of upgrading a playback device shown in an optional embodiment of the present disclosure;

[0018] Figure 7 The following is a flowchart of upgrading a device to be upgraded according to an optional embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0020] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0021] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0022] The disclosed embodiments are intended to provide a firmware upgrade system that can obtain information flows used for device firmware upgrades to implement firmware upgrades without adding external interfaces or disassembling the device, thereby eliminating the need for presetting a dedicated firmware upgrade interface, reducing the structural complexity of the entire device, and reducing the production cost of the device to be upgraded.

[0023] See also Figure 1 , Figure 1 A schematic diagram of the structure of a firmware upgrade system according to an embodiment of the present disclosure.

[0024] The firmware upgrade system includes a device to be upgraded 100, which is provided with an upgrade detection module; the device to be upgraded 100 is used to communicate with an information flow output device and receive an information flow transmitted by the information flow output device. The information flow may carry upgrade trigger data and firmware upgrade data.

[0025] There is an external interface on the device to be upgraded 100, which is an original external interface. It is not a firmware upgrade interface specially set up for firmware upgrade, but an external interface originally set up to realize other functions. The external interface can be an audio and video transmission interface, such as a digital audio interface, or a digital video interface and other original external interfaces.

[0026] The device to be upgraded 100 has a processor 102 and a memory 103, wherein the memory 103 stores at least a firmware upgrade module and an upgrade detection module. The upgrade detection module identifies the information flow, and if the information flow meets the preset conditions, the information flow is upgrade trigger data, which triggers the device to be upgraded 100 to enter the upgrade mode. After the device to be upgraded 100 enters the upgrade mode, the subsequent information flow of the upgrade trigger data can be obtained as the upgrade information flow; the device to be upgraded 100 parses the upgrade information flow to obtain the firmware upgrade data, and upgrades the firmware of the device to be upgraded 100 according to the firmware upgrade data.

[0027] If the upgrade trigger data includes an upgrade trigger flag, the preset condition may be detecting the presence of the upgrade trigger flag in the information flow. The device to be upgraded enters the upgrade mode in response to the upgrade detection module detecting the upgrade trigger flag in the information flow, and receives the subsequently transmitted upgrade information flow.

[0028] like Figure 2 As shown, the information stream output device may be a playback device 200, or other external storage devices, such as a USB flash drive or a mobile disk.

[0029] If the information stream output device is a playback device 200, the information stream may be an audio and video media stream. The device 100 to be upgraded is provided with an audio and video transmission interface 101, a processor 102 and a memory 103. The device 100 to be upgraded is connected to the playback device 200 via the audio and video transmission interface 101 to receive the audio and video media stream transmitted by the playback device 200 in the form of audio and video playback. Among them, the audio and video transmission interface 101 may be a hardware interface or a software interface, and the audio and video transmission interface 101 may be a digital signal transmission interface such as a digital audio interface or a digital video interface, such as a conventional audio interface such as an optical fiber interface or a USB interface, and an audio and video transmission interface such as an HDMI or DP. The audio and video transmission interface 101 may be used to connect a display, a speaker, an amplifier, and a processor of the device to be upgraded.

[0030] Optionally, the playback device 200 and the device to be upgraded 100 are connected via an existing hardware interface on the device to be upgraded, or via a wireless communication module. The wireless communication module may be a near field communication module or a remote communication module. If the wireless communication module is a remote communication module, the playback device and the device to be upgraded may be connected via remote communication, thereby remotely upgrading the firmware of the device to be upgraded.

[0031] The wireless communication module may be a Bluetooth module, a 4G mobile communication module, a 5G mobile communication module, or other wireless communication modules.

[0032] The playback device 200 obtains firmware upgrade data for upgrading the firmware of the device to be upgraded 100, plays the firmware upgrade data in the form of audio and video playback to obtain an information stream and transmits it to the device to be upgraded 100; the device to be upgraded 100 receives the information stream transmitted by the playback device 200 through the audio and video transmission interface 101; the device to be upgraded 100 parses the information stream to obtain the firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data.

[0033] Optionally, upgrade trigger data may be inserted before the firmware upgrade data to form an audio or video file to be played. When the playback device plays the audio or video file, the information stream first received by the device to be upgraded includes the upgrade trigger data. The device to be upgraded enters the upgrade mode in response to the upgrade detection module detecting the upgrade trigger data, and then receives the subsequently transmitted information stream, which includes the firmware upgrade data. The device to be upgraded performs the firmware upgrade after obtaining the firmware upgrade data.

[0034] The playback device 200 may be an audio or video player, a desktop computer, a notebook, a smart phone, an interactive tablet or other electronic device, and the device to be upgraded 100 may be a display, a speaker, or an electronic device compatible with display and sound amplification. In this embodiment, the types, styles, and models of the above hardware devices are not limited.

[0035] In the disclosed embodiments, the device to be upgraded can receive firmware upgrade data through the original audio and video transmission interface, so that there is no need to pre-install a firmware upgrade interface on the host of the device to be upgraded, nor is there a need to disassemble the host to achieve firmware upgrades inside the device, thereby reducing the structural complexity of the entire device and reducing the production cost of the device to be upgraded.

[0036] See also Figure 3 , which is a flow chart of a method for obtaining a firmware upgrade file according to an optional embodiment of the present disclosure.

[0037] The firmware upgrade file consists of firmware upgrade data and upgrade trigger data.

[0038] Methods for obtaining firmware upgrade files include:

[0039] S201: Acquire firmware upgrade data for upgrading the firmware of the device to be upgraded.

[0040] S202: Acquire upgrade trigger data, and insert the upgrade trigger data before the firmware upgrade data;

[0041] S203: Convert the upgrade trigger data and the firmware upgrade data into a firmware upgrade file.

[0042] The firmware upgrade data is used to upgrade the firmware of the device to be upgraded, and the upgrade trigger data is used to trigger the device to be upgraded to switch the working mode to the upgrade mode. That is, after the device to be upgraded obtains the upgrade trigger data, it can shut down the current working mode, switch to the upgrade mode, and receive the information stream carrying the firmware upgrade data. After parsing, its firmware is upgraded according to the firmware upgrade data.

[0043] The upgrade trigger data and the firmware upgrade data may be regular hexadecimal data. Therefore, in order to enable the playback device to play the firmware upgrade file, the upgrade trigger data and the firmware upgrade data need to be converted into a firmware upgrade file in a format supported by the playback device.

[0044] The format of the firmware upgrade file is a preset format, and the preset format can match the playback device. If the playback device is an audio playback device, the format of the firmware upgrade file is an audio format, and if the playback device is a video playback device, the format of the firmware upgrade file is a video format, wherein the audio format and the video format can be formats supported by the playback device, and the specific format is not limited in this embodiment.

[0045] In this embodiment, the method for obtaining the firmware upgrade file can be executed by other external devices. After the external device generates a firmware upgrade file in a format supported by the playback device based on the firmware upgrade data and the upgrade trigger data, the file can be stored in an external memory or a mobile storage device to facilitate the subsequent transmission of the firmware upgrade file to the playback device, or the user can copy the firmware upgrade file to the memory of the playback device for storage.

[0046] Optionally, the method for obtaining the firmware upgrade file may also be executed by a playback device. After the playback device obtains the firmware upgrade data and the upgrade trigger data, it converts the firmware upgrade data and the upgrade trigger data into a playable firmware upgrade file according to a playback format supported by the playback device.

[0047] The firmware upgrade file is transmitted to the device to be upgraded in the form of an audio and video media stream. In order to enable the device to be upgraded to be prepared for the upgrade before the firmware upgrade, when converting the firmware upgrade data and the upgrade trigger data into the firmware upgrade file, the upgrade trigger data is inserted before the firmware upgrade data, that is, the upgrade trigger data needs to be converted into a partial firmware upgrade file first, and then the firmware upgrade data is converted into a partial firmware upgrade file, and the upgrade trigger data is inserted before the firmware upgrade data; and then the complete firmware upgrade file is synthesized.

[0048] Optionally, a blank data segment may be added between the upgrade trigger data and the firmware upgrade data so that the device to be upgraded has enough time to switch the working mode to the firmware upgrade mode when it receives the audio and video stream carrying the upgrade trigger data.

[0049] In an optional embodiment, if Figure 4 As shown, step S201 may include:

[0050] S2011: Acquire initial firmware upgrade data for upgrading the firmware of the device to be upgraded.

[0051] S2012: Perform frame processing on the initial firmware upgrade data.

[0052] S2013: Encode the initial firmware upgrade data after framing using a forward error correction code encoding technology to obtain encoded firmware upgrade data.

[0053] Optionally, the initial firmware upgrade data can be downloaded from the upgrade service platform of the device to be upgraded, or can be provided by the supplier of the device to be upgraded. The initial firmware upgrade data is framed to facilitate encoding the initial firmware upgrade data to improve the effectiveness of the firmware upgrade data after transmission.

[0054] Optionally, the initial firmware upgrade data can also be pre-stored in the memory of the playback device, or the playback device can connect to the firmware upgrade server via the network to download the initial firmware upgrade data, or the user can store the initial firmware upgrade data on an external memory. When the firmware needs to be upgraded, the initial firmware upgrade data can be copied to the memory of the playback device and then used to assist the device to be upgraded to implement the firmware upgrade.

[0055] The initial firmware upgrade data may be a hexadecimal data stream.

[0056] After obtaining the initial firmware upgrade data for upgrading the firmware of the device to be upgraded, the initial firmware upgrade data is framed based on the preset data length to facilitate subsequent encoding processing. The specific value of the preset data length is not limited and can be determined by the inventor according to needs.

[0057] Forward Error Correction (FEC) is a method to increase the credibility of data communication. In a one-way communication channel, once an error is discovered, the receiver will no longer have the right to request transmission. FEC is a method of using data to transmit redundant information. When an error occurs during transmission, it will allow the receiver to reconstruct and recover the data. Specifically, it can also be determined based on the device to be upgraded whether the initial firmware upgrade data needs to be looped at the frame level based on the forward error correction code.

[0058] In this embodiment, the device to be upgraded is an electronic device such as a display or a speaker, which cannot send information back to the playback device, and therefore cannot request the playback device to play the firmware upgrade data again. At the device to be upgraded, if an error occurs in the firmware upgrade data and the data cannot be obtained from the playback device again, the firmware upgrade data can be repaired by forward error correction coding technology to improve the effectiveness of the firmware upgrade.

[0059] Based on the above embodiments, Figure 5 As shown, the device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data, which can be achieved by the following steps:

[0060] S501: The device to be upgraded parses the upgrade information flow according to a preset rule to obtain firmware upgrade data in the firmware upgrade file;

[0061] S502: Using forward error correction code repair technology to repair the firmware upgrade data;

[0062] S503: Upgrading the firmware of the device to be upgraded according to the repaired firmware upgrade data.

[0063] Among them, the forward error correction code repair technology is used to repair the firmware upgrade data, including:

[0064] Use forward error correction code repair technology to detect errors and omissions in each data bit of the initial firmware upgrade data;

[0065] In the case that errors or omissions occur in the initial firmware upgrade data, forward error correction code repair technology is used to repair the initial firmware upgrade data to obtain repaired firmware upgrade data.

[0066] In an optional embodiment, the firmware upgrade file includes a preset number of initial firmware upgrade data, for example, 3 or more groups of initial firmware upgrade data, so as to adopt a multi-packet transmission mechanism to ensure the effectiveness of firmware upgrade data transmission.

[0067] Therefore, step S201, obtaining firmware upgrade data for upgrading the firmware of the device to be upgraded, may include:

[0068] Acquire several groups of initial firmware upgrade data for upgrading the firmware of the same device to be upgraded;

[0069] Perform frame processing on each group of initial firmware upgrade data;

[0070] The forward error correction coding technology is used to encode each group of initial firmware upgrade data after framing to obtain several groups of encoded firmware upgrade data.

[0071] On this basis, the device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data, which can be achieved by the following steps:

[0072] The device to be upgraded parses the upgrade information flow according to preset rules to obtain several groups of firmware upgrade data in the firmware upgrade file;

[0073] Use forward error correction code repair technology to repair each set of firmware upgrade data;

[0074] Target firmware upgrade data is determined from the multiple sets of repaired firmware upgrade data, and the firmware of the device to be upgraded is upgraded according to the target firmware upgrade data.

[0075] At the device to be upgraded, after receiving multiple firmware upgrade data, the firmware upgrade can be performed based on the firmware upgrade data with the highest data accuracy, or, multiple firmware upgrade data can be mutually verified to obtain a firmware upgrade data with higher data accuracy, that is, the firmware upgrade data with the highest data accuracy is used as the target firmware upgrade data.

[0076] In this embodiment, the firmware upgrade data includes a preset number of firmware upgrade data packets, and multiple firmware upgrade data packets are transmitted to the device to be upgraded so that the device to be upgraded can be verified based on the multiple firmware upgrade data packets before the firmware upgrade to obtain more accurate firmware upgrade data and improve the reliability of the firmware upgrade.

[0077] In an optional embodiment, in order to ensure the reliability of the firmware upgrade, it is also necessary to verify the firmware version before the firmware upgrade. Generally, the firmware upgrade data will contain the firmware version information, and the original firmware of the device to be upgraded will also store the original firmware version information, so it is only necessary to compare the version information of the two firmwares and then determine whether to perform the firmware upgrade action.

[0078] Therefore, the device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data, which may include:

[0079] The device to be upgraded parses the upgrade information flow according to preset rules to obtain firmware upgrade data;

[0080] Obtain the current firmware version information in the firmware upgrade data and the original firmware version information of the device to be upgraded;

[0081] If the firmware version in the current firmware version information is higher than the firmware version in the original firmware version information, the firmware of the device to be upgraded is upgraded according to the firmware upgrade data.

[0082] In an optional embodiment, the firmware upgrade file further includes frame header data, and the frame header data may be generated from the format information of the firmware upgrade data, or from the format information of the firmware upgrade data and data length information.

[0083] The upgrade information stream is an audio stream, the format information of the firmware upgrade data is an audio format, and the audio playback mode is determined according to the format information of the frame header data.

[0084] Alternatively, the upgrade information stream is a video stream, the format information of the firmware upgrade data is a video format, and the video playback mode is determined according to the format information of the frame header data.

[0085] The firmware upgrade system also includes a playback device, which is connected to the device to be upgraded, and the playback device obtains a firmware upgrade file for upgrading the firmware of the device to be upgraded; the firmware upgrade file is parsed to obtain frame header data, and a target playback mode is determined according to the format information of the frame header data;

[0086] Play the firmware upgrade file in target playback mode to obtain the information stream and transmit it to the device to be upgraded.

[0087] In an optional embodiment, if the firmware upgrade data is in a format not supported by the playback device, the firmware upgrade data needs to be converted into a playback file in a format supported by the playback device and then played in the form of audio and video playback, specifically including:

[0088] Obtaining upgrade trigger data for switching the device to be upgraded to a firmware upgrade mode;

[0089] The upgrade trigger data and the firmware upgrade data are converted into a firmware upgrade file in a format supported by the playback device and then played in the form of audio and video playback.

[0090] In an optional embodiment, the upgrade trigger data, the firmware upgrade data, and the upgrade end mark data are converted into a playback file in a format supported by the playback device and then played in the form of audio and video playback.

[0091] On the device to be upgraded, if upgrade trigger data is detected, the device to be upgraded enters upgrade mode and receives subsequent firmware upgrade data and other data; if upgrade end marker data is detected, it means that the firmware upgrade data has been transmitted and can be switched to upgrade mode immediately.

[0092] Based on the above embodiments, the upgrade information stream can be an audio stream, and the firmware upgrade data is converted into a playback file in a format supported by the playback device and then played in the form of audio playback, including: converting the firmware upgrade data into an audio playback file in a format supported by the playback device and then playing it in the form of audio playback.

[0093] The upgrade information stream may also be a video stream, and the firmware upgrade data is converted into a playback file in a format supported by the playback device and then played in the form of a video player, including: the firmware upgrade data is converted into a video playback file in a format supported by the playback device and then played in the form of a video player. If the device to be upgraded is a display firmware, the resolution of the upgrade information stream needs to be a resolution supported by the device to be upgraded.

[0094] In an optional embodiment, if the firmware of the device to be upgraded includes audio firmware and video firmware, the upgrade information stream includes an audio stream and a video stream; the firmware upgrade data in the audio stream and the video stream are the same, and the audio stream or the video stream can be used to upgrade the audio firmware and video firmware of the device to be upgraded.

[0095] Optionally, when the device to be upgraded receives the upgrade information stream transmitted by the playback device, the firmware upgrade data in the first received audio stream is marked. After receiving the subsequently transmitted video stream, it is confirmed whether there is a mark in the first received audio stream. If there is a mark, the video stream is used to cross-check the firmware upgrade data in the audio stream at the mark. If the cross-check is successful, the corresponding mark in the audio stream is set to verified, thereby improving the success rate of the firmware upgrade.

[0096] Optionally, when the device to be upgraded receives the upgrade information stream transmitted by the playback device, the firmware upgrade data in the first received video stream is marked. After receiving the subsequently transmitted audio stream, it is confirmed whether there is a mark in the first received video stream. If there is a mark, the audio stream is used to cross-check the firmware upgrade data in the video stream at the mark. If the cross-check is successful, the corresponding mark in the video stream is set as verified, thereby improving the success rate of the firmware upgrade.

[0097] When the device to be upgraded is upgrading its firmware, the received firmware upgrade data is not displayed or amplified, but is only decoded and stored, and the firmware upgrade is performed using the firmware upgrade data therein.

[0098] The following is a further explanation with reference to specific application examples.

[0099] like Figure 6 As shown, it is the upgrade process of the host side (audio playback device). The host side responds to the firmware upgrade operation input by the user, adjusts the system volume to the maximum, opens a music player with only fade-in and fade-out and no other functions to play the upgrade file, and automatically stops after the playback is completed.

[0100] like Figure 7As shown, it is the upgrade process of the device to be upgraded. The device to be upgraded is connected to the host and switched to the corresponding channel. If the host (playing device) plays the content with a start upgrade signal, it enters the upgrade file receiving mode. If the subsequent upgrade information flow includes a firmware upgrade file and a firmware upgrade file transmission cutoff signal is received, the firmware upgrade file is decoded and stored, and its firmware is upgraded based on the decoded firmware upgrade file.

[0101] In the disclosed embodiment, the firmware upgrade data is first converted into a firmware upgrade file supported by the playback device, and the playback device transmits the audio and video media stream carrying the firmware upgrade data to the device to be upgraded in the form of audio and video playback. The device to be upgraded receives the audio and video media stream through the audio and video transmission interface, parses it to obtain the firmware upgrade data, and upgrades the firmware of the device to be upgraded based on the firmware upgrade data. The device to be upgraded can receive the firmware upgrade data through the original audio and video transmission interface, so there is no need to pre-install the firmware upgrade interface on the host of the device to be upgraded, and there is no need to disassemble the host to achieve the firmware upgrade inside the device, which reduces the structural complexity of the whole device and reduces the production cost of the device to be upgraded. At the same time, compared with the method of reserving the upgrade interface, the transmission of the audio and video media stream method can support the transmission of upgrade data with a larger flow rate, the upgrade speed is faster, and the upgrade operation is more convenient.

[0102] According to a second aspect of the embodiment of the present disclosure, a firmware upgrade method is disclosed, which is applied to the firmware upgrade system in the above embodiment. The firmware upgrade method comprises the steps of:

[0103] The playback device obtains firmware upgrade data for upgrading the firmware of the device to be upgraded, inserts upgrade trigger data before the firmware upgrade data, and then plays the upgrade trigger data and the firmware upgrade data in the form of audio and video playback to obtain an information stream and transmit it to the device to be upgraded;

[0104] The device to be upgraded receives the information stream transmitted by the playback device through the original audio and video transmission interface;

[0105] The upgrade detection module of the device to be upgraded identifies the information flow. If the information flow meets the preset conditions, the information flow is the upgrade trigger data. The device to be upgraded enters the upgrade mode and obtains the subsequent information flow of the upgrade trigger data as the upgrade information flow.

[0106] The device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data.

[0107] In the disclosed embodiment, the firmware upgrade data is first converted into a firmware upgrade file supported by the playback device, and the playback device transmits the audio and video stream carrying the firmware upgrade data to the device to be upgraded in the form of audio and video playback. The device to be upgraded receives the audio and video stream through the audio and video transmission interface and then parses it to obtain the firmware upgrade data, and upgrades the firmware of the device to be upgraded based on the firmware upgrade data. The device to be upgraded can receive the firmware upgrade data through the audio and video transmission interface, so that there is no need to pre-install the firmware upgrade interface on the host of the device to be upgraded, and there is no need to disassemble the host to achieve the firmware upgrade inside the device, which reduces the structural complexity of the whole device and reduces the production cost of the device to be upgraded.

[0108] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0109] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the attached claims.

Claims

1. A firmware upgrade system, characterized in that: The device to be upgraded comprises a device to be upgraded, wherein the device to be upgraded is provided with an upgrade detection module; The device to be upgraded receives an information flow; The upgrade detection module identifies the information flow. If the information flow meets the preset conditions, the information flow is upgrade trigger data. The device to be upgraded enters the upgrade mode and obtains the subsequent information flow of the upgrade trigger data as the upgrade information flow. The device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data.

2. The firmware upgrade system according to claim 1, characterized in that: The upgrade trigger data and the firmware upgrade data constitute a firmware upgrade file; The method for obtaining the firmware upgrade file includes: Acquire firmware upgrade data for upgrading the firmware of the device to be upgraded; Acquire the upgrade trigger data, and insert the upgrade trigger data before the firmware upgrade data; The upgrade trigger data and the firmware upgrade data are converted into a firmware upgrade file.

3. The firmware upgrade system according to claim 2, characterized in that: The obtaining of firmware upgrade data for upgrading the firmware of the device to be upgraded includes: Acquire initial firmware upgrade data for upgrading the firmware of the device to be upgraded; Performing frame processing on the initial firmware upgrade data; Encoding the initial firmware upgrade data after framing using a forward error correction code encoding technology to obtain encoded firmware upgrade data; The device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data, including: The device to be upgraded parses the upgrade information flow according to a preset rule to obtain the firmware upgrade data in the firmware upgrade file; Using forward error correction code repair technology to repair the firmware upgrade data; The firmware of the device to be upgraded is upgraded according to the repaired firmware upgrade data.

4. The firmware upgrade system according to claim 3, characterized in that: The obtaining of firmware upgrade data for upgrading the firmware of the device to be upgraded includes: Acquire several groups of initial firmware upgrade data for upgrading the firmware of the same device to be upgraded; Performing frame processing on each group of the initial firmware upgrade data; Using forward error correction coding technology to encode each group of the initial firmware upgrade data after framing, to obtain a plurality of groups of encoded firmware upgrade data; The device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data, including: The device to be upgraded parses the upgrade information flow according to a preset rule to obtain several groups of firmware upgrade data in the firmware upgrade file; Using forward error correction code repair technology to repair the firmware upgrade data of each group; Target firmware upgrade data is determined from the multiple sets of repaired firmware upgrade data, and the firmware of the device to be upgraded is upgraded according to the target firmware upgrade data.

5. The firmware upgrade system according to claim 3, characterized in that: The method of using the forward error correction code repair technology to repair the firmware upgrade data includes: Using forward error correction code repair technology to perform error and omission detection on each data bit of the firmware upgrade data; In the event that errors or omissions occur in the firmware upgrade data, forward error correction code repair technology is used to repair the firmware upgrade data.

6. The firmware upgrade system according to claim 1, characterized in that: The device to be upgraded parses the upgrade information flow to obtain firmware upgrade data, and upgrades the firmware of the device to be upgraded according to the firmware upgrade data, including: The device to be upgraded parses the upgrade information flow according to a preset rule to obtain the firmware upgrade data; Obtaining the current firmware version information in the firmware upgrade data and the original firmware version information of the device to be upgraded; If the firmware version in the current firmware version information is higher than the firmware version in the original firmware version information, the firmware of the device to be upgraded is upgraded according to the firmware upgrade data.

7. The firmware upgrade system according to claim 1, characterized in that: If the firmware of the device to be upgraded includes audio firmware and video firmware, the upgrade information stream includes an audio stream and a video stream; the audio stream or the video stream can be used to upgrade the audio firmware and the video firmware of the device to be upgraded; When the device to be upgraded receives the upgrade information stream, the firmware upgrade data in the first received audio stream is marked, and when the subsequently transmitted video stream is received, it is confirmed whether there is a mark in the first received audio stream, and if there is a mark, the firmware upgrade data in the audio stream is cross-checked at the marked position using the video stream, and if the cross-check is successful, the corresponding mark in the audio stream is set to be verified, or, When the device to be upgraded receives the upgrade information stream, the firmware upgrade data in the first received video stream is marked. After receiving the subsequently transmitted audio stream, it is confirmed whether there is a mark in the first received video stream. If there is a mark, the audio stream is used to cross-check the firmware upgrade data in the video stream at the mark. If the cross-check is successful, the corresponding mark in the video stream is set to be verified.

8. The firmware upgrade system according to claim 2, characterized in that: The firmware upgrade file further includes frame header data, and the frame header data is generated by the format information of the firmware upgrade data; The firmware upgrade system further includes a playback device, the playback device is communicatively connected to the device to be upgraded, and the playback device obtains a firmware upgrade file for upgrading the firmware of the device to be upgraded; Parsing the firmware upgrade file to obtain frame header data, and determining a target playback mode according to format information of the frame header data; The firmware upgrade file is played in a target playback mode to obtain an information stream and transmit it to the device to be upgraded.

9. The firmware upgrade system according to claim 8, characterized in that: The playback device and the device to be upgraded are connected via an existing hardware interface of the device to be upgraded, or via a wireless communication module.

10. The firmware upgrade system according to claim 9, characterized in that: The hardware interface is a digital audio interface.