Peripheral firmware upgrade control method and device, storage medium and television
By abstracting multiple sub-hardware abstraction layers within the hardware abstraction service of the hardware abstraction layer, dynamically manage the peripheral instances of the TV, and firmware upgrades through a unified upgrade process, the problem of low success rate of TV peripheral firmware upgrade is solved, and efficient firmware upgrade management is achieved.
Patent Information
- Application Number
- CN202510099811.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-09
AI Technical Summary
Due to the differences in system-on-chip (SOC) and TV models, the types of peripherals vary greatly. How to reliably manage the firmware upgrade of all peripherals of the TV has become a problem, resulting in a poor success rate of TV peripheral firmware upgrades.
By abstracting multiple subhardware abstraction layers within the hardware abstraction service of the hardware abstraction layer, each subhardware abstraction layer manages several peripheral instances of peripherals of the same category, dynamically obtains the peripheral configuration of the TV, matches the peripheral instances, and performs firmware upgrades through the upgrade task.
It realizes the firmware upgrade of all peripherals of the TV reliably and uniformly manages the firmware upgrade rate of TV peripherals.
Smart Images

Figure CN119967242A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of upgrade technology, and in particular to a peripheral firmware upgrade management method, device, storage medium and television. Background Art
[0002] As TVs become larger and larger, it is increasingly difficult for the core boards in TVs to bear the burden of displaying images. More and more TV manufacturers choose to add new peripherals to share the burden of display. As the firmware versions of peripherals are updated, TVs in users' homes need to be upgraded via OTA. However, due to differences in system-on-chips (SOCs) and TV models, the types of peripherals vary greatly. How to reliably and uniformly manage the firmware upgrades of all TV peripherals has become a problem, resulting in a poor success rate for TV peripheral firmware upgrades. Summary of the invention
[0003] The embodiment of the present application provides a peripheral firmware upgrade management solution, which can achieve reliable and unified management of the firmware upgrade of all peripherals of the TV and improve the success rate of the TV peripheral firmware upgrade.
[0004] The embodiments of the present application provide the following technical solutions:
[0005] According to one embodiment of the present application, a peripheral firmware upgrade management method is applicable to a hardware abstraction service of a hardware abstraction layer, wherein a plurality of sub-hardware abstraction layers are abstracted from the hardware abstraction service, and each of the sub-hardware abstraction layers manages peripheral instances of several peripherals of the same category, and the method comprises: obtaining a peripheral configuration of a TV, wherein the peripheral configuration comprises peripheral information of one or more peripherals of the TV; obtaining, from the peripheral instances managed by each of the sub-hardware abstraction layers, a peripheral instance corresponding to the peripheral information in the peripheral configuration, and obtaining a matching peripheral instance; reporting the peripheral information corresponding to the matching peripheral instance to a peripheral upgrade application, so as to receive an upgrade task issued by the peripheral upgrade application according to the received peripheral information; and performing a firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded in the upgrade task.
[0006] In some embodiments of the present application, peripheral instances of several peripherals managed by each of the sub-hardware abstraction layers are compiled into a dynamic library for management; obtaining the peripheral instance corresponding to the peripheral information in the peripheral configuration from the peripheral instances managed by each of the sub-hardware abstraction layers to obtain a matching peripheral instance includes: opening the dynamic library of each of the sub-hardware abstraction layers; if the peripheral instance corresponding to the peripheral information in the peripheral configuration is queried from the opened dynamic library, obtaining the peripheral instance corresponding to the peripheral information in the peripheral configuration therefrom to obtain a matching peripheral instance.
[0007] In some embodiments of the present application, after opening the dynamic libraries of each of the sub-hardware abstraction layers, the method includes: determining the dynamic libraries of the peripheral instances from which the peripheral information in the peripheral configuration is not queried, to obtain idle dynamic libraries; and closing the idle dynamic libraries.
[0008] In some embodiments of the present application, performing a firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded in the upgrade task includes: sending a firmware upgrade package to the peripheral instance of the peripheral to be upgraded through the instance path of the peripheral instance of the peripheral to be upgraded in the hardware abstract service; performing a firmware upgrade on the peripheral to be upgraded using the firmware upgrade package through the peripheral instance of the peripheral to be upgraded.
[0009] In some embodiments of the present application, the method further includes: registering a callback instance in the peripheral instance of the peripheral to be upgraded through the instance path; and during a firmware upgrade of the peripheral to be upgraded, monitoring the upgrade progress through the callback instance.
[0010] In some embodiments of the present application, during the firmware upgrade of the peripheral device to be upgraded, the upgrade progress monitoring process is performed through the callback instance, including: receiving the upgrade progress information fed back by the callback instance; and reporting the upgrade progress information to the peripheral device upgrade application.
[0011] In some embodiments of the present application, during the firmware upgrade of the peripheral device to be upgraded, the upgrade progress monitoring process is performed through the callback instance, including: receiving upgrade progress information fed back by the callback instance; judging whether an upgrade exception occurs based on the upgrade progress information; if so, obtaining a processing strategy corresponding to the upgrade exception, and performing upgrade regulation based on the processing strategy.
[0012] According to one embodiment of the present application, a peripheral firmware upgrade management and control device is applicable to a hardware abstraction service of a hardware abstraction layer, wherein a plurality of sub-hardware abstraction layers are abstracted from the hardware abstraction service, and each of the sub-hardware abstraction layers manages peripheral instances of several peripherals of the same category, and the device comprises: an acquisition unit, used to acquire a peripheral configuration of a TV, wherein the peripheral configuration comprises peripheral information of one or more peripherals carried by the TV; a matching unit, used to acquire, from the peripheral instances managed by each of the sub-hardware abstraction layers, a peripheral instance corresponding to the peripheral information in the peripheral configuration, and obtain a matching peripheral instance; a reporting unit, used to report the peripheral information corresponding to the matching peripheral instance to a peripheral upgrade application, so as to receive an upgrade task issued by the peripheral upgrade application according to the received peripheral information, and an upgrade unit, used to perform a firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded in the upgrade task.
[0013] In some embodiments of the present application, the peripheral instances of several peripherals managed by each of the sub-hardware abstraction layers are compiled into a dynamic library for management; the matching unit can: open the dynamic library of each of the sub-hardware abstraction layers; if the peripheral instance corresponding to the peripheral information in the peripheral configuration is queried from the opened dynamic library, the peripheral instance corresponding to the peripheral information in the peripheral configuration is obtained therefrom to obtain a matching peripheral instance.
[0014] In some embodiments of the present application, after opening the dynamic libraries of each of the sub-hardware abstraction layers, the matching unit may: determine the dynamic libraries from which the peripheral instances corresponding to the peripheral information in the peripheral configuration are not queried to obtain idle dynamic libraries; and close the idle dynamic libraries.
[0015] In some embodiments of the present application, the upgrade unit may: send the firmware upgrade package to the peripheral instance of the peripheral to be upgraded through the instance path of the peripheral instance of the peripheral to be upgraded in the hardware abstraction service; and use the firmware upgrade package to perform firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded.
[0016] In some embodiments of the present application, the upgrading unit may: register a callback instance in the peripheral instance of the peripheral device to be upgraded through the instance path; and monitor the upgrade progress through the callback instance during the firmware upgrade of the peripheral device to be upgraded.
[0017] In some embodiments of the present application, the upgrade unit may: receive the upgrade progress information fed back by the callback instance; and report the upgrade progress information to the peripheral upgrade application.
[0018] In some embodiments of the present application, the upgrade unit may: receive upgrade progress information fed back by the callback instance; determine whether an upgrade exception occurs based on the upgrade progress information; if so, obtain a processing strategy corresponding to the upgrade exception, and perform upgrade regulation based on the processing strategy.
[0019] According to another embodiment of the present application, a storage medium stores a computer program thereon. When the computer program is executed by a processor of a television, the television executes the method described in the embodiment of the present application.
[0020] According to another embodiment of the present application, a television may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
[0021] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of a television reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the television executes the method provided in various optional implementations described in the embodiments of the present application.
[0022] The peripheral firmware upgrade management method in the embodiment of the present application is applicable to the hardware abstraction service of the hardware abstraction layer, and multiple sub-hardware abstraction layers are abstracted in the hardware abstraction service, and each of the sub-hardware abstraction layers manages peripheral instances of several peripherals of the same category. The method includes: obtaining the peripheral configuration of the TV, and the peripheral configuration includes peripheral information of one or more peripherals carried by the TV; from the peripheral instances managed by each of the sub-hardware abstraction layers, obtaining the peripheral instance corresponding to the peripheral information in the peripheral configuration, and obtaining the matching peripheral instance; reporting the peripheral information corresponding to the matching peripheral instance to the peripheral upgrade application, so as to receive the upgrade task issued by the peripheral upgrade application according to the received peripheral information; and performing firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded in the upgrade task.
[0023] In this way, by abstracting multiple sub-hardware abstraction layers within the hardware abstraction service of the hardware abstraction layer, the peripheral instances of several peripherals of the same category are managed respectively. By obtaining the peripheral configuration of the TV, the matching peripheral instances can be dynamically obtained from the peripheral instances managed by each sub-hardware abstraction layer, and the firmware of the peripheral to be upgraded can be upgraded based on the peripheral instance of the peripheral to be upgraded in the obtained matching peripheral instance. This can achieve reliable and unified management of the TV peripheral firmware upgrade through the hardware abstraction service of the hardware abstraction layer, thereby improving the success rate of the TV peripheral firmware upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A flowchart of a peripheral firmware upgrade management method according to an embodiment of the present application is shown.
[0026] Figure 2 An architectural diagram of a peripheral firmware upgrade management system according to an embodiment of the present application is shown.
[0027] Figure 3 A schematic diagram of a peripheral management structure according to an embodiment of the present application is shown.
[0028] Figure 4 A block diagram of a peripheral firmware upgrade management and control device according to an embodiment of the present application is shown.
[0029] Figure 5 A block diagram of a television according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.
[0031] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).
[0032] For example, the peripheral firmware upgrade control method provided in the embodiment of the present disclosure includes a series of steps, but the peripheral firmware upgrade control method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the peripheral firmware upgrade control device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units that need to be set to obtain relevant information or perform processing based on information.
[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0034] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0035] Figure 1 The flowchart of the peripheral firmware upgrade control method according to an embodiment of the present application is schematically shown. The execution subject of the peripheral firmware upgrade control method can be a TV with peripheral configuration capabilities. Specifically, the peripheral firmware upgrade control method described in the embodiment of the present application can be executed by the hardware abstraction service (HAL service) in the hardware abstraction layer (HAL: Hardware Abstraction Layer) in the TV. Among them, the hardware abstraction layer is an encapsulation of the Linux driver, providing a unified interface to the upper layer.
[0036] Figure 2 The following schematically shows the architecture of a peripheral firmware upgrade management system according to an embodiment of the present application. Figure 2 As shown, the television may include an application layer 201 , a framework layer (Framework) 202 , a hardware abstraction layer (HAL) 203 , a kernel layer (kernel) 204 , and a hardware layer (hardware) 205 .
[0037] The application layer 201 may include television applications such as peripheral upgrade applications, etc. The hardware layer 205 may include one or more peripherals provided with the television.
[0038] Multiple sub-hardware abstraction layers (SubHALs) are abstracted from the hardware abstraction service (HAL service) of the hardware abstraction layer 202, and each sub-hardware abstraction layer manages peripheral instances of several peripherals of the same category. For example, the sub-hardware abstraction layer SubHAL1 can manage peripheral instances of several peripherals of the first functional category, the sub-hardware abstraction layer SubHAL2 can manage peripheral instances of several peripherals of the second functional category, and the sub-hardware abstraction layer SubHAL3 can manage peripheral instances of several peripherals of the third functional category.
[0039] like Figure 1 As shown, the peripheral firmware upgrade management method may include steps S110 to S140.
[0040] Step S110, obtaining a peripheral configuration of the television, wherein the peripheral configuration includes peripheral information of one or more peripherals of the television;
[0041] Step S120, acquiring, from the peripheral instances managed by each of the sub-hardware abstraction layers, the peripheral instance corresponding to the peripheral information in the peripheral configuration, to obtain a matching peripheral instance;
[0042] Step S130, reporting the peripheral information corresponding to the matching peripheral instance to the peripheral upgrade application, so as to receive an upgrade task issued by the peripheral upgrade application according to the received peripheral information;
[0043] Step S140: performing firmware upgrade on the peripheral device to be upgraded through the peripheral device instance of the peripheral device to be upgraded in the upgrade task.
[0044] The hardware abstraction service (HAL service) can first obtain the peripheral configuration (config) of one or more peripherals currently on the TV from the local TV during initialization. The peripheral configuration includes the peripheral information of each peripheral on the TV. The peripheral information of each peripheral may include information such as the peripheral model, the peripheral unique identifier, and the peripheral firmware version.
[0045] Furthermore, the hardware abstraction service (HAL service) can obtain the peripheral instance corresponding to the peripheral information in the peripheral configuration from the peripheral instances managed by each sub-hardware abstraction layer, and obtain the matching peripheral instance. Figure 3 As shown, the sub-hardware abstraction layer SubHAL1 manages peripheral instances of peripherals such as peripheral 1 (device1) and peripheral 2 (device2), and the sub-hardware abstraction layer SubHAL2 manages peripheral instances of peripherals such as peripheral 3 (device3) and peripheral 4 (device4). If the peripheral configuration (config) 310 includes peripheral information of peripheral 2 (device2) and peripheral information of peripheral 3 (device3), the management unit 320 can query the peripheral instance of peripheral 2 from the peripherals managed by the sub-hardware abstraction layer SubHAL1 and the peripheral instance of peripheral 3 from the peripheral instances managed by the sub-hardware abstraction layer SubHAL2, and then match the peripheral instances, i.e., the peripheral instance of peripheral 1 and the peripheral instance of peripheral 3.
[0046] Furthermore, the hardware abstraction service (HAL service) can report the peripheral information of the peripherals corresponding to the matching peripheral instance to the peripheral upgrade application in the application layer via the framework layer, for example, reporting the peripheral information of peripherals 1 and 3 to the peripheral upgrade application in the application layer. The peripheral upgrade application can determine the peripherals to be upgraded based on the received peripheral information and issue the corresponding upgrade task to the hardware abstraction service (HAL service).
[0047] Furthermore, the hardware abstraction service (HAL service) can perform firmware upgrades on the corresponding peripherals to be upgraded through the peripheral instances of the peripherals to be upgraded in the upgrade task. For example, the peripheral instance of peripheral 1 is used to perform firmware upgrades on peripheral 1 in the hardware layer, and the peripheral instance of peripheral 2 is used to perform firmware upgrades on peripheral 2 in the hardware layer.
[0048] In this manner in the embodiments of the present application, multiple sub-hardware abstraction layers are abstracted within the hardware abstraction service of the hardware abstraction layer to respectively manage peripheral instances of several peripherals of the same category. By acquiring the peripheral configuration of the TV, matching peripheral instances can be dynamically acquired from the peripheral instances managed by each sub-hardware abstraction layer, and firmware upgrades can be performed on the peripherals to be upgraded based on the peripheral instances of the peripherals to be upgraded in the acquired matching peripheral instances. This enables reliable and unified control of TV peripheral firmware upgrades through the hardware abstraction service of the hardware abstraction layer, thereby improving the success rate of TV peripheral firmware upgrades.
[0049] Described below Figure 1 When performing peripheral firmware upgrade management and control under the embodiment, further optional specific embodiments are provided under each step performed.
[0050] In one embodiment, the peripheral instances of the plurality of peripherals managed by each of the sub-hardware abstraction layers are compiled into a dynamic library for management; the peripheral instances corresponding to the peripheral information in the peripheral configuration are obtained from the peripheral instances managed by each of the sub-hardware abstraction layers to obtain the matching peripheral instances, including:
[0051] Open the dynamic library of each of the sub-hardware abstraction layers; if the peripheral instance corresponding to the peripheral information in the peripheral configuration is queried from the opened dynamic library, obtain the peripheral instance corresponding to the peripheral information in the peripheral configuration to obtain a matching peripheral instance.
[0052] In this embodiment, the peripheral instances of several peripherals managed by each sub-hardware abstraction layer are specifically compiled into a dynamic library (so) for management, that is, each sub-hardware abstraction layer corresponds to a dynamic library, and the dynamic library includes the peripheral instances of several peripherals managed by the sub-hardware abstraction layer. For example, the sub-hardware abstraction layer SubHAL1 corresponds to a dynamic library 1, and the sub-hardware abstraction layer SubHAL2 corresponds to a dynamic library 2.
[0053] The hardware abstraction service can open (dlopen) the dynamic libraries of each sub-hardware abstraction layer and search for the peripheral instance corresponding to the peripheral information in the peripheral configuration. If found, the peripheral instance corresponding to the peripheral information in the peripheral configuration is queried from a certain opened dynamic library, and then the peripheral instance corresponding to the peripheral information in the peripheral configuration can be obtained to obtain the matching peripheral instance.
[0054] By managing peripheral instances through a dynamic library for use by hardware abstraction services of a hardware abstraction layer, it is convenient to maintain and manage these peripheral instances in a television and to save system resources.
[0055] Furthermore, in one embodiment, after opening the dynamic libraries of each of the sub-hardware abstraction layers, the method may also include: determining the dynamic libraries from which the peripheral instances corresponding to the peripheral information in the peripheral configuration are not queried, to obtain idle dynamic libraries; and closing the idle dynamic libraries.
[0056] The hardware abstraction service can close (dlclose) the dynamic library of the peripheral instance from which the peripheral information in the peripheral configuration is not queried. For example, if the peripheral instance corresponding to the peripheral information in the peripheral configuration is not queried from a dynamic library 1 corresponding to the sub-hardware abstraction layer SubHAL1, the dynamic library 1 is closed, thereby further saving system resources.
[0057] In one embodiment, performing firmware upgrade on the peripheral device to be upgraded through the peripheral device instance of the peripheral device to be upgraded in the upgrade task may include:
[0058] The firmware upgrade package is sent to the peripheral instance of the peripheral to be upgraded through the instance path of the peripheral instance of the peripheral to be upgraded in the hardware abstraction service; the firmware of the peripheral to be upgraded is upgraded using the firmware upgrade package through the peripheral instance of the peripheral to be upgraded.
[0059] The instance path of the peripheral instance of the peripheral to be upgraded in the hardware abstraction service is "management unit-sub-hardware abstraction layer (dynamic library)-peripheral instance". Through the instance path of the peripheral instance in the hardware abstraction service, the firmware upgrade package in the upgrade task can be sent to the peripheral instance of the peripheral to be upgraded, and the firmware upgrade package can be used to perform firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded. The peripheral instance of the peripheral to be upgraded is maintained in the hardware abstraction service of the hardware abstraction layer, and the firmware upgrade of the peripheral to be upgraded can be stably performed through the peripheral instance of the peripheral to be upgraded.
[0060] In an embodiment, the method may further include: registering a callback instance in the peripheral instance of the peripheral device to be upgraded through the instance path; and performing upgrade progress monitoring processing through the callback instance during the firmware upgrade of the peripheral device to be upgraded.
[0061] The callback instance is registered in the peripheral instance of the peripheral to be upgraded through the instance path. Then, in the process of upgrading the firmware of the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded, the callback instance will return the upgrade progress information, so that the upgrade progress can be monitored and processed, and the reliability of peripheral firmware upgrade management and control is further improved.
[0062] Further, in one embodiment, during the firmware upgrade of the peripheral device to be upgraded, the upgrade progress monitoring process is performed through the callback instance, which may include: receiving the upgrade progress information fed back by the callback instance; and reporting the upgrade progress information to the peripheral device upgrade application.
[0063] In this embodiment, during the process of performing a firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded, after the hardware abstraction service receives the upgrade progress information fed back by the callback instance, it reports the upgrade progress information to the peripheral upgrade application via the framework layer. Then, the upgrade progress of the peripheral to be upgraded can be understood in real time in the peripheral upgrade application, so that the user can monitor the upgrade progress.
[0064] Furthermore, in one embodiment, during the firmware upgrade of the peripheral device to be upgraded, the upgrade progress monitoring process is performed through the callback instance, which may include: receiving upgrade progress information fed back by the callback instance; judging whether an upgrade exception occurs based on the upgrade progress information; if so, obtaining a processing strategy corresponding to the upgrade exception, and performing upgrade regulation based on the processing strategy.
[0065] In this embodiment, during the process of performing a firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded, the hardware abstraction service receives the upgrade progress information fed back by the callback instance, and the hardware abstraction service determines whether an upgrade exception occurs based on the upgrade progress information. If an upgrade exception occurs, the hardware abstraction service can obtain the processing strategy corresponding to the upgrade exception from the preset control strategy table, and perform upgrade control on the upgrade process based on the processing strategy, thereby further improving the reliability of peripheral upgrade management and control in the TV.
[0066] In order to better implement the peripheral firmware upgrade control method provided in the embodiment of the present application, the embodiment of the present application also provides a peripheral firmware upgrade control device based on the above peripheral firmware upgrade control method. The meaning of the terms is the same as that in the above peripheral firmware upgrade control method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of a peripheral firmware upgrade management and control device according to an embodiment of the present application is shown.
[0067] like Figure 4As shown, the peripheral firmware upgrade management and control device 400 is applicable to the hardware abstraction service of the hardware abstraction layer, and multiple sub-hardware abstraction layers are abstracted in the hardware abstraction service, and each of the sub-hardware abstraction layers manages peripheral instances of several peripherals of the same category. The peripheral firmware upgrade management and control device 400 includes: an acquisition unit 410 can be used to: obtain the peripheral configuration of the TV, and the peripheral configuration includes peripheral information of one or more peripherals carried by the TV; the matching unit 420 can be used to: from the peripheral instances managed by each of the sub-hardware abstraction layers, obtain the peripheral instance corresponding to the peripheral information in the peripheral configuration, and obtain the matching peripheral instance; the reporting unit 430 can be used to: report the peripheral information corresponding to the matching peripheral instance to the peripheral upgrade application, so as to receive the upgrade task issued by the peripheral upgrade application according to the received peripheral information, and the upgrading unit 440 can be used to: perform firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded in the upgrade task.
[0068] In some embodiments of the present application, the peripheral instances of several peripherals managed by each of the sub-hardware abstraction layers are compiled into a dynamic library for management; the matching unit can: open the dynamic library of each of the sub-hardware abstraction layers; if the peripheral instance corresponding to the peripheral information in the peripheral configuration is queried from the opened dynamic library, the peripheral instance corresponding to the peripheral information in the peripheral configuration is obtained therefrom to obtain a matching peripheral instance.
[0069] In some embodiments of the present application, after opening the dynamic libraries of each of the sub-hardware abstraction layers, the matching unit may: determine the dynamic libraries from which the peripheral instances corresponding to the peripheral information in the peripheral configuration are not queried to obtain idle dynamic libraries; and close the idle dynamic libraries.
[0070] In some embodiments of the present application, the upgrade unit may: send the firmware upgrade package to the peripheral instance of the peripheral to be upgraded through the instance path of the peripheral instance of the peripheral to be upgraded in the hardware abstraction service; and use the firmware upgrade package to perform firmware upgrade on the peripheral to be upgraded through the peripheral instance of the peripheral to be upgraded.
[0071] In some embodiments of the present application, the upgrading unit may: register a callback instance in the peripheral instance of the peripheral device to be upgraded through the instance path; and monitor the upgrade progress through the callback instance during the firmware upgrade of the peripheral device to be upgraded.
[0072] In some embodiments of the present application, the upgrade unit may: receive the upgrade progress information fed back by the callback instance; and report the upgrade progress information to the peripheral upgrade application.
[0073] In some embodiments of the present application, the upgrade unit may: receive upgrade progress information fed back by the callback instance; determine whether an upgrade exception occurs based on the upgrade progress information; if so, obtain a processing strategy corresponding to the upgrade exception, and perform upgrade regulation based on the processing strategy.
[0074] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0075] In addition, the embodiment of the present application also provides a television, such as Figure 5 As shown, Figure 5 A block diagram of a television according to an embodiment of the present application is shown, specifically:
[0076] The television may include components such as a processor 501 of one or more processing cores, a memory 502 of one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The television structure shown in the figure does not constitute a limitation on the television, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0077] The processor 501 is the control center of the TV, and uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, the processor 501 performs various functions of the computer device and processes data, thereby monitoring the TV as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0078] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0079] The television also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 503 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0080] The television may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0081] Although not shown, the television may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the television will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer programs stored in the memory 502, thereby realizing various functions in the aforementioned embodiments of the present application.
[0082] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0083] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.
[0084] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0085] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0086] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0087] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. A peripheral firmware upgrade management and control method, characterized in that: A hardware abstraction service applicable to a hardware abstraction layer, wherein a plurality of sub-hardware abstraction layers are abstracted from the hardware abstraction service, and each of the sub-hardware abstraction layers manages peripheral instances of a plurality of peripherals of the same category, and the method comprises: Acquire a peripheral configuration of the television, wherein the peripheral configuration includes peripheral information of one or more peripherals of the television; Acquire, from the peripheral instances managed by each of the sub-hardware abstraction layers, the peripheral instances corresponding to the peripheral information in the peripheral configuration, to obtain matching peripheral instances; Reporting the peripheral information corresponding to the matching peripheral instance to the peripheral upgrade application, so as to receive an upgrade task issued by the peripheral upgrade application according to the received peripheral information; The firmware of the peripheral device to be upgraded is upgraded through the peripheral device instance of the peripheral device to be upgraded in the upgrade task.
2. The method according to claim 1, characterized in that The peripheral instances of the plurality of peripherals managed by each of the sub-hardware abstraction layers are compiled into a dynamic library for management; The step of acquiring, from the peripheral instances managed by each of the sub-hardware abstraction layers, the peripheral instances corresponding to the peripheral information in the peripheral configuration to obtain the matching peripheral instances includes: Open the dynamic library of each sub-hardware abstraction layer; If the peripheral instance corresponding to the peripheral information in the peripheral configuration is found in the opened dynamic library, the peripheral instance corresponding to the peripheral information in the peripheral configuration is obtained therefrom to obtain a matching peripheral instance.
3. The method according to claim 2, characterized in that After opening the dynamic libraries of each sub-hardware abstraction layer, the method comprises: Determine a dynamic library from which no peripheral instance corresponding to the peripheral information in the peripheral configuration is found, and obtain an idle dynamic library; Close the idle dynamic library.
4. The method according to claim 1, characterized in that: The step of performing firmware upgrade on the peripheral device to be upgraded by using the peripheral device instance of the peripheral device to be upgraded in the upgrade task includes: Sending the firmware upgrade package to the peripheral instance of the peripheral to be upgraded through the instance path of the peripheral instance of the peripheral to be upgraded in the hardware abstraction service; The firmware of the peripheral device to be upgraded is upgraded using the firmware upgrade package through the peripheral instance of the peripheral device to be upgraded.
5. The method according to claim 4, characterized in that The method further comprises: Registering a callback instance in the peripheral instance of the peripheral to be upgraded through the instance path; During the firmware upgrade of the peripheral device to be upgraded, the upgrade progress monitoring process is performed through the callback instance.
6. The method according to claim 5, characterized in that In the process of performing firmware upgrade on the peripheral device to be upgraded, performing upgrade progress monitoring processing through the callback instance includes: Receive the upgrade progress information fed back by the callback instance; The upgrade progress information is reported to the peripheral upgrade application.
7. The method according to claim 5, characterized in that In the process of performing firmware upgrade on the peripheral device to be upgraded, performing upgrade progress monitoring processing through the callback instance includes: Receive the upgrade progress information fed back by the callback instance; Determine whether an upgrade exception occurs according to the upgrade progress information; If so, obtain a processing strategy corresponding to the upgrade exception, and perform upgrade regulation according to the processing strategy.
8. A peripheral firmware upgrade control device, characterized in that: A hardware abstraction service applicable to a hardware abstraction layer, wherein a plurality of sub-hardware abstraction layers are abstracted from the hardware abstraction service, each of which manages peripheral instances of a plurality of peripherals of the same category, and the device comprises: An acquiring unit, configured to: acquire a peripheral configuration of the television, wherein the peripheral configuration includes peripheral information of one or more peripherals of the television; A matching unit, used to: obtain, from the peripheral instances managed by each of the sub-hardware abstraction layers, the peripheral instance corresponding to the peripheral information in the peripheral configuration, to obtain a matching peripheral instance; A reporting unit, used to: report the peripheral information corresponding to the matching peripheral instance to the peripheral upgrade application, so as to receive an upgrade task issued by the peripheral upgrade application according to the received peripheral information, The upgrading unit is used to upgrade the firmware of the peripheral device to be upgraded through the peripheral device instance of the peripheral device to be upgraded in the upgrading task.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a television, the television is caused to execute the method according to any one of claims 1 to 7.
10. A television, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.