CN106227607B - Distribution method and device of hardware equipment in terminal - Google Patents

Distribution method and device of hardware equipment in terminal Download PDF

Info

Publication number
CN106227607B
CN106227607B CN201610634146.0A CN201610634146A CN106227607B CN 106227607 B CN106227607 B CN 106227607B CN 201610634146 A CN201610634146 A CN 201610634146A CN 106227607 B CN106227607 B CN 106227607B
Authority
CN
China
Prior art keywords
hardware
equipment
target
information
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610634146.0A
Other languages
Chinese (zh)
Other versions
CN106227607A (en
Inventor
余春雨
高同庆
王新志
臧晓华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vidaa Netherlands International Holdings BV
Original Assignee
Qingdao Hisense Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610634146.0A priority Critical patent/CN106227607B/en
Publication of CN106227607A publication Critical patent/CN106227607A/en
Application granted granted Critical
Publication of CN106227607B publication Critical patent/CN106227607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals

Landscapes

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

Abstract

The disclosure discloses a method and a device for distributing hardware equipment in a terminal. The method comprises the following steps: acquiring a hardware equipment application request for obtaining a service when the service in a terminal is triggered; triggering and starting the hardware equipment associated with the service in the terminal through a hardware equipment application request; and taking the started hardware equipment as an initial, finding the hardware equipment step by step according to a hardware equipment link relation conforming to the hardware configuration of the terminal to obtain target equipment information, and distributing the target equipment marked in the target equipment information for the service. In the process, the distribution of the hardware equipment in the service is realized based on the link relation of the hardware equipment, so that when the hardware configuration of the terminal is changed, the link relation of the hardware equipment is correspondingly updated, and the distribution of the hardware equipment which is adaptive to the changed hardware configuration is realized by the updated link relation of the hardware equipment, thereby providing a dynamic distribution process of the hardware equipment and having very high adaptivity.

Description

Distribution method and device of hardware equipment in terminal
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a method and an apparatus for allocating hardware devices in a terminal.
Background
The implementation of services in a terminal often involves the problem of the allocation of hardware devices. For example, in the smart television device, for local media playing, a distributor that needs to implement hardware devices such as a multimedia device, a splitter and a decoder can implement the local media playing service in the terminal.
However, the allocation of the hardware devices is realized by software configured in the terminal, which software is uniquely corresponding to the hardware configuration. In other words, for different hardware configurations, different versions of software will be used to implement the hardware device allocation of the terminal.
If the hardware configuration in the terminal changes, iterative updating of the software version must be performed to release software adapted to the changed hardware configuration for the terminal.
It can be seen that the implementation of hardware device allocation is static, solid, and cannot adapt to changes in hardware configuration in the terminal.
Disclosure of Invention
In order to solve the technical problem that static and solidified hardware equipment allocation cannot adapt to the change of hardware configuration in a terminal in a self-adaptive manner in the related art, the disclosure provides a method and a device for allocating hardware equipment in the terminal.
A method for distributing hardware equipment in a terminal comprises the following steps:
acquiring a hardware equipment application request for obtaining a service when the service in a terminal is triggered;
triggering and starting the hardware equipment associated with the service in the terminal through the hardware equipment application request;
and taking the started hardware equipment as an initial, finding the hardware equipment step by step according to a hardware equipment link relation conforming to the hardware configuration of the terminal to obtain target equipment information, and distributing the target equipment marked in the target equipment information for the service.
An apparatus for allocating hardware devices in a terminal, comprising:
the request acquisition module is used for acquiring a hardware equipment application request for obtaining a service when the service in the terminal is triggered;
the equipment starting module is used for triggering and starting the hardware equipment related to the service in the terminal through the application request of the hardware equipment;
and the step-by-step processing module is used for taking the started hardware equipment as an initial, finding the hardware equipment step by step according to the hardware equipment link relation conforming to the hardware configuration of the terminal to obtain target equipment information, and distributing the target equipment marked in the target equipment information for the service.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when a service in a terminal is triggered, a hardware device application request of the service is acquired, hardware devices related to the service are triggered and started in the terminal through the hardware device application request, the started hardware devices are taken as initial, hardware device discovery is carried out step by step according to a hardware device link relation to obtain target device information, and target devices marked in the target device information are allocated to the service.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
fig. 2 is a flow chart illustrating a method of assigning hardware devices in a terminal according to an example embodiment;
fig. 3 is a flowchart of the steps of, in the embodiment corresponding to fig. 2, starting up a hardware device, finding the hardware device step by step according to a hardware device link relationship conforming to the hardware configuration of the terminal itself to obtain target device information, and allocating the target device indicated in the target device information to a service;
fig. 4 is a flowchart of the step of gradually discovering hardware devices according to the link relationship of the hardware devices to obtain target device information, and sending a hardware device allocation application to a corresponding device management object according to the target device indicated in the target device information in the embodiment corresponding to fig. 3;
fig. 5 is a flowchart illustrating a method of allocating hardware devices in a terminal according to another exemplary embodiment;
FIG. 6 is a schematic diagram illustrating the operation of a device manager in accordance with an illustrative embodiment;
FIG. 7 is a schematic diagram of a chain of hardware devices supporting local multimedia hardware separation according to the corresponding embodiment of FIG. 6;
FIG. 8 is a schematic diagram of a hardware device chain supporting local multimedia software separation according to the corresponding embodiment of FIG. 6;
fig. 9 is a block diagram illustrating an apparatus for allocating hardware devices in a terminal according to an example embodiment;
FIG. 10 is a block diagram of a progressive processing module of the corresponding embodiment of FIG. 9;
fig. 11 is a block diagram of a device discovery unit of the corresponding embodiment of fig. 10;
fig. 12 is a block diagram illustrating an allocation apparatus of hardware devices in a terminal according to another exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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 invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a block diagram illustrating a terminal 100 according to an example embodiment. For example, the terminal 100 may be a laser television or the like.
Referring to fig. 1, the terminal 100 may include one or more components that are difficult to: a processing component 102, a memory 104, a power component 106, a multimedia component 108, an audio component 110, a sensor component 114, and a communication component 116.
The processing component 102 generally controls overall operation of the terminal 100, such as operations associated with display, data communication, and recording operations. The processing components 102 may include one or more processors 118 to execute instructions to perform all or a portion of the steps of the methods described below. Further, the process component 102 can include one or more modules that facilitate interaction between the process component 102 and other components. For example, the processing component 102 can include a multimedia module to facilitate interaction between the multimedia component 108 and the processing component 102.
The memory 104 is configured to store various types of data to support operations at the terminal 100. Examples of such data include instructions for any application or method operating on terminal 100. The memory 104 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Also stored in memory 104 are one or more modules configured to be executed by the one or more processors 118 to perform all or a portion of the steps of any of the methods illustrated in fig. 2, 3, 4, and 5, described below.
The power supply component 106 provides power to the various components of the terminal 100. The power components 106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 100.
The multimedia component 108 includes a screen providing an output interface between the terminal 100 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 110 is configured to output and/or output audio signals. For example, the audio component 110 includes a Microphone (MIC) configured to receive external audio signals when the terminal 100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 104 or transmitted via the communication component 116. In some embodiments, the audio component 110 further comprises a speaker for outputting audio signals.
The sensor assembly 114 includes one or more sensors for providing various aspects of status assessment for the terminal 100. For example, the sensor assembly 114 may detect an open/closed state of the terminal 100, relative positioning of the components, a change in position of the terminal 100 or a component of the terminal 100, and a change in temperature of the terminal 100. In some embodiments, the sensor assembly 114 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 116 is configured to facilitate communications between the terminal 100 and other devices in a wired or wireless manner. The terminal 100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 116 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods described below.
Fig. 2 is a flowchart illustrating a method for allocating hardware devices in a terminal according to an exemplary embodiment. The method for allocating the hardware devices in the terminal can comprise the following steps.
In step 210, a hardware device application request for obtaining a service is obtained when the service in the terminal is triggered.
Wherein the service is used to implement functions in the terminal. In the terminal, when any service is triggered, the request for application of the hardware equipment of the service is acquired. The hardware device application request is used for applying for the required hardware device for the triggered service, and the triggered service can be realized in the terminal through a matching party of the hardware device.
It can be understood that the implementation process of the service in the terminal is an operation process of a corresponding application in the terminal, and in this requirement, a specific function can be output by requiring mutual cooperation of hardware devices. Therefore, there is a need to implement adaptive hardware device allocation in a terminal.
In step 230, the hardware device requesting to start service association is triggered in the terminal.
It should be noted that, first, any service in the terminal has its associated hardware device. When the trigger of the service in the terminal is monitored, the hardware equipment related to the service is started.
Specifically, a hardware device allocation process for a service is requested to initiate by a hardware device application request. In the process, the hardware device associated with the service is firstly allocated to the service, namely the hardware device associated with the service is started.
In step 250, the started hardware device is used as an initial, the hardware device is discovered step by step according to the hardware device link relation conforming to the hardware configuration of the terminal itself to obtain the target device information, and the target device marked in the target device information is allocated to the service.
The terminal is configured with a hardware device link relation, and the link relation of each hardware device is marked step by step in the hardware device link relation according to the distribution requirement of the hardware devices. In the link relationship of the hardware device, there is a target device, that is, a hardware device that is assigned by the upper level and linked in the link relationship of the hardware device.
Therefore, in the hardware device allocation realized by the present disclosure, the hardware device associated with the service is used as the initial, and the hardware device is discovered step by step based on the link relationship of the hardware device, so that the hardware device discovery at multiple stages in the link relationship of the hardware device and the hardware device allocation brought by the discovery are realized.
The multi-level hardware device discovery based on the link relationship of the hardware devices is that the target device obtained by the previous level hardware device discovery is the source device discovered by the current level hardware device.
And distributing the target equipment for the service according to the obtained target equipment information, thereby realizing the distribution of the hardware equipment step by step, forming a hardware equipment chain corresponding to the realization of the service and further finishing the realization of the service in the terminal.
Through the process, the dynamic allocation of the hardware equipment in the terminal is realized, the ordered hardware equipment scheduling is carried out on the service triggered in the terminal, and the smooth realization of the service in the terminal is ensured.
Since the hardware device link relationship is consistent with the configuration of the terminal itself, that is, the hardware device link relationship is the link relationship of the hardware device constructed according to the hardware devices supported by the terminal. Therefore, when the hardware configuration of the terminal changes, the link relation of the hardware device can be dynamically adjusted, so that the implementation of the hardware device allocation in the terminal can be adaptively adapted to the change of the hardware configuration, and for the development period of the terminal, compared with the existing iterative update process of the software version required by the change of the hardware configuration, the cost caused by the change of the hardware configuration is avoided.
FIG. 3 is a depiction of details of step 250, shown in accordance with an exemplary embodiment. As shown in fig. 3, in the method for allocating hardware devices in the terminal, step 250 may include the following steps.
In step 251, according to the start of the hardware device associated with the service, a hardware device link relationship that is initial to the started hardware device is correspondingly obtained, and the hardware device link relationship is consistent with the hardware configuration of the terminal itself.
And with the starting of the hardware equipment related to the service, obtaining a hardware equipment link relation taking the hardware equipment as an initial hardware equipment according to the started hardware equipment.
As mentioned above, the link relation of the hardware device is denoted by stages, that is, the link relation formed by other hardware devices linked to a hardware device. Therefore, according to the started hardware device, the other hardware devices linked to the started hardware device can be obtained firstly, and the hardware device discovery of the first level is realized.
In step 253, hardware device discovery is performed step by step according to the link relationship of the hardware devices to obtain target device information, and a hardware device allocation application is sent to the corresponding device management object according to the target devices indicated in the target device information.
In the link relationship of the hardware devices, one hardware device serves as a source device and is linked to other hardware devices, namely a target device. Therefore, the hardware equipment discovery can be realized step by the link relation of the hardware equipment and the started hardware equipment, and further target equipment information for marking the target equipment is obtained.
In the step-by-step hardware device discovery, for the obtained target device information, a hardware device allocation application is sent to the corresponding device management object according to the target device indicated by the target device information, so that the target device is allocated for the service through the corresponding device management object.
It should be noted that, in the terminal, a device management object is created for each hardware device, so as to implement control of the hardware device. Each hardware device has a unique corresponding device management object.
And the hardware equipment allocation application is used for allocating the hardware equipment required by the currently triggered service request. Since the device management object is used for controlling the hardware device uniquely corresponding to the device management object, in the process of realizing the hardware device discovery of a level, after the required target device is found for the currently triggered service, the device management object sends a hardware device allocation application to the corresponding device management object, so that the target device can be started.
In step 255, the device management object that receives the hardware device allocation application allocates the target device indicated in the target device information to the service.
The allocation process of the target device is a process of issuing a control instruction to the target device by the device management object which receives the hardware device allocation application to control the operation of the target device.
The control instruction comprises an instruction for initializing the hardware equipment, an instruction for starting the hardware equipment, an instruction for closing the hardware equipment, a setting instruction and the like. Corresponding to a specific hardware device, also includes some characteristic control instructions. For example, for a video output device, a control instruction for adjusting the size of the screen is also included; for the local media device, a control instruction for setting the play speed is also included.
The target device is obtained and controlled step by step through the hardware device discovery and the target device allocation performed in the process, and a hardware device chain formed by the target devices at all levels is formed along with the continuous promotion of the hardware device discovery and the target device allocation performed step by step, wherein the hardware device chain is a hardware resource dynamically allocated for the service and is adaptive to the hardware configuration of the terminal.
FIG. 4 is a depiction of details of step 253, shown in accordance with an exemplary embodiment. As shown in fig. 4, in the method for allocating hardware devices in the terminal, step 253 may include the following steps.
In step 2531, source device information is obtained using the currently assigned hardware device as the source device.
Wherein, the currently allocated hardware device refers to a target device allocated for the service through hardware device discovery of the current hierarchy.
That is, the currently allocated hardware device, on the one hand, may be a hardware device associated with a service in an initial stage; on the other hand, in the subsequent stage-by-stage hardware device discovery performed through the link relationship of the hardware device, the target device is found by the previous stage. And the target equipment obtained by searching in the previous level is used as the source equipment discovered by the hardware equipment in the next level.
And obtaining source equipment information by taking the currently allocated hardware equipment as source equipment, wherein the source equipment information marks the source equipment for discovering the hardware equipment.
In step 2533, the target device information corresponding to the source device information is found in the link relationship of the hardware device.
As can be seen from the foregoing description, the link relationship of the hardware device is substantially formed by the link relationship of the source device and the target device. Therefore, the hardware device discovery is to search for the target device in the hardware device link relationship according to the source device indicated in the source device information, and then the target device can be determined, and the target device information indicating the target device is generated.
In step 2535, a hardware device allocation request is sent to the device management object corresponding to the target device information, where the device management object corresponds to the target device indicated in the target device information.
The target device information corresponding to the source device information is obtained through searching, the determined target device can be found by the current hardware device, a hardware device allocation application is sent to a device management object corresponding to the target device information according to the unique corresponding relation between the target device and the device management correspondence, and then the allocation process of the target device is initiated.
Through the above-mentioned process, a hardware device discovery process implemented by one level is provided, and for the link relationship of the hardware device, the hardware device discovery performed by levels will continuously follow the process until the hardware device discovery is completed for the last hardware device in the link relationship of the hardware device, at which time the hardware discovery process implemented by levels can be terminated.
Therefore, for the distribution of the hardware equipment in the terminal, the orderly distribution of the hardware equipment can be automatically realized for the service, and the service realization efficiency in the terminal is greatly improved.
In an exemplary embodiment, a description of the details of step 2533 is shown. This step 2533 may include the following steps.
And searching the target equipment in the link relation of the hardware equipment according to the self state of the target equipment marked in the link relation of the source equipment and the hardware equipment marked in the information of the source equipment to obtain the target equipment information corresponding to the information of the source equipment.
In the link relationship of the hardware devices, for the link relationship of the hardware devices of a hierarchy, the source device, the linked target device, and the state of the target device are indicated. The state of the target device itself includes an available state, an unavailable state, and a pending state. In the target device search performed by the hardware device link relationship, the target device marked as the available state needs to be searched, and then the target device information is correspondingly obtained.
For a source device, the number of target devices linked to the source device is one or more than two, and each target device indicates its own status.
In the process of searching for the target device according to the source device indicated in the source device information, if the source device indicated in the source device information cannot be searched for in the current hierarchy in the link relationship of the hardware device, the hardware device enters the first stage to continue searching until the link relationship of the source device indicated in the source device information is searched for.
The target device marked by the target device information is linked to the source device marked by the source device information, and the target device is in an available state.
Fig. 5 is a diagram illustrating a method for allocating hardware devices in a terminal according to an example embodiment. As shown in fig. 5, the method for allocating hardware devices in the terminal may include the following steps.
In step 310, hardware support information of the terminal is acquired.
The hardware support information records the hardware capability supported by the terminal, for example, for the local multimedia function, the supported hardware capability may be hardware separation or software separation. For another example, whether the decoding device supports one-way decoding or multi-way decoding, whether the video output device supports one window or multiple windows, and the like.
The hardware support information can be obtained from the driver through an interface function, or can be read from a configuration file preset by the terminal.
On one hand, when the terminal is started, hardware support information is obtained from a driver through an interface function; on the other hand, if the terminal does not support the interface function, the hardware support information is read from the preset configuration file.
The setting can be flexibly set according to the situation in the actual operation process, and is not limited herein.
In an exemplary embodiment, the obtained hardware support information may be in the form of a list.
In step 330, a hardware device link relationship is dynamically generated according to the hardware support information, and the states of the source device, the target device of the source device, and the target device themselves are indicated in the hardware device link relationship.
The state of each hardware device can be known according to the hardware support information, that is, whether the hardware device is available or not, so that a hardware resource link relationship is dynamically generated according to the hardware support information, and the state of the target device is indicated in the hardware device link relationship, so that the target device finally determined by hardware device discovery is enabled, invalid hardware device discovery is avoided, and higher implementation efficiency is ensured.
Optionally, in an exemplary embodiment, step 310 may include: and dynamically updating the state of the target equipment in the link relation of the hardware equipment configured by the terminal according to the hardware support information.
In an exemplary embodiment, the link relationship of the hardware device may be in the form of a list, that is, the link relationship of the hardware device indicated step by step in the link relationship of the hardware device will also be in the form of a list, that is, the link relationship list of a hardware device, that is, the source device, forms the link relationship of the corresponding hardware device in the link relationship of the hardware device.
Therefore, the link relation lists of the hardware devices form the link relation of the whole hardware device.
In an exemplary embodiment, the link relation list of the hardware device is sequentially arranged according to the basic service of the terminal, so as to improve the processing efficiency in the hardware device discovery process.
Through the above process, after the terminal is started, a real-time hardware device link relationship is generated in the memory of the terminal according to the above process, so that the subsequent triggering of any service can be performed through the real-time hardware device link relationship to allocate the hardware device.
According to the distribution method of the hardware equipment in the terminal, the equipment manager is realized for the terminal, the equipment manager can be automatically adapted to different hardware configurations, such as different types of terminals, through the equipment management object and the link state of the hardware equipment in the equipment manager, and the equipment manager can be applied to terminals with various hardware configurations without being changed.
Taking the terminal as an example of an intelligent television, and combining a specific application scene, a method for distributing hardware equipment in the terminal is described. In this application scenario, a description will be made from a specific implementation perspective of hardware device allocation in the smart television.
After the intelligent television is started, an initialization process of the device manager is carried out, in the process, the hardware support information of the intelligent television is obtained, and a real-time hardware device link relation is dynamically generated in the memory according to the hardware support information.
That is, the device manager is responsible for maintaining the link relationship of the hardware devices, i.e. the link relationship list of the hardware devices, and sorting the link relationship list, i.e. the link relationship of the whole hardware device is formed.
For the dynamic generation of the link relationship of the hardware device, the specific implementation process can be shown as the following description:
the state of each hardware device is obtained according to the hardware support information or static configuration to dynamically generate a link relationship list of each hardware device, for example, in the process, the link relationship list of the multimedia device shown in table 1 is generated.
TABLE 1 Link relationship List for multimedia devices
Figure BDA0001068745130000111
Similarly, for the smart tv supporting hardware separation, the generated link relation list of the multimedia device is shown in table 2, that is:
table 2 link relation list of multimedia device supporting hardware separation
Figure BDA0001068745130000112
For the smart tv supporting software separation, the generated link relation list of the multimedia device is shown in table 3, that is:
table 3 link relation list of multimedia device supporting software separation
Figure BDA0001068745130000121
In addition to this, a link relation list of the splitter device and a link relation list of the decoder will be generated, as shown in table 4 and table 5 in detail.
Table 4 link relation list of splitter devices
Figure BDA0001068745130000122
TABLE 5 Linked relationship List of decoders
At this time, the device manager sorts the obtained three link relationship lists, that is, the link relationship list of the multimedia device, the link relationship list of the splitter, and the link relationship list of the decoder according to the basic service, that is, the link relationship list of the multimedia device- "the link relationship list of the splitter-" the link relationship list of the decoder ", that is, the link relationship of the hardware device maintained by the device manager, and in the hardware device discovery, the three lists are respectively used as three levels to realize the level-by-level hardware device discovery.
When a user initiates local multimedia playing, namely a local multimedia playing service in the smart television is triggered, the application of the local multimedia playing service is realized, namely the multimedia player applies for allocating hardware resources to the device manager, namely a hardware device application request of the service is sent.
Through the application request of the hardware equipment, the local multimedia equipment associated with the local multimedia playing service is started at first.
Allocating a hardware device of a next hierarchy according to the local multimedia device, for example, for a smart television supporting hardware separation, determining that the hardware device of the next hierarchy is a separator 0 according to table 2; for a smart tv that supports only software separation, the hardware device of the next level is determined to be decoder 0 according to table 3.
At this time, a hardware device allocation application is transmitted to the corresponding device management object, so that the device management object issues a control instruction to the corresponding hardware device, and the allocation of the hardware device is further realized.
FIG. 6 is a schematic diagram illustrating operation of a device manager in accordance with an example embodiment. As shown in fig. 6, device manager 400 includes a local media device management object 410, a recorded media device management object 420, a streaming media device management object 430, a splitter device management object 440, a decoder device management object 450, a video output device management object 460, and an audio output device management object 470.
Where local media device management object 410 corresponds to local media device 510, recorded media device management object 420 corresponds to recorded media device 520, streaming media device management object 430 corresponds to streaming media device 530, splitter device management object 440 corresponds to splitter 540, decoder management object 450 corresponds to decoder 550, video output device management object 460 corresponds to video output device 560, and audio output device management object 470 corresponds to audio output device 570.
When any device management object receives the hardware device allocation application, it will issue a control instruction to the corresponding hardware device as indicated in fig. 6.
The device management object at the next stage also executes similar logic until the audio output device management object 470, so as to prepare the relevant resources for the implementation of the local multimedia playing service, i.e. forming a logical channel as indicated by an arrow in fig. 6, specifically the hardware device chain shown in fig. 7 and 8, for example, for supporting hardware separation, the hardware device chain supporting local multimedia hardware separation shown in fig. 7 is formed; for supporting software separation, a chain of hardware devices will be formed that supports local multimedia software separation as shown in fig. 8.
Through the specific implementation, the operation of the device manager in the smart television can be automatically adapted to various different hardware configurations, so that the development period of the smart television is shortened, and the cost caused by software change is reduced.
The following is an embodiment of the apparatus of the present disclosure, which may be used to execute an embodiment of a method for allocating hardware devices in a terminal executed by the terminal of the present disclosure. For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method for allocating hardware devices in the terminal of the present disclosure.
Fig. 9 is a diagram illustrating an apparatus for allocating hardware devices in a terminal according to an example embodiment. The allocation means of the hardware device in the terminal may be configured to perform all the steps of the allocation method of the hardware device in the terminal shown in fig. 2. As shown in fig. 9, the allocation means of the hardware device in the terminal includes but is not limited to: a request acquisition module 710, a device start-up module 730, and a progressive processing module 750.
The request obtaining module 710 is configured to obtain a request for application of a hardware device that obtains a service when the service in the terminal is triggered.
The device starting module 730 is configured to trigger the hardware device associated with the start service in the terminal through the hardware device application request.
And a step-by-step processing module 750, configured to, using the started hardware device as an initial, perform step-by-step discovery on the hardware device according to a hardware device link relationship that matches with a hardware configuration of the terminal itself, to obtain target device information, and allocate a target device indicated in the target device information to the service.
FIG. 10 is a depiction of details of a progressive processing module, shown in accordance with an exemplary embodiment. As shown in fig. 10, the progressive processing module 750 includes, but is not limited to: a link relationship obtaining unit 751, a device discovery unit 753, and a device assignment unit 755.
The link relation obtaining unit 751 is configured to obtain, according to the start of the hardware device associated with the service, a link relation that takes the started hardware device as an initial hardware device link relation, where the hardware device link relation conforms to the hardware configuration of the terminal itself.
The device discovery unit 753 is configured to discover the hardware devices step by step according to the link relationship of the hardware devices to obtain target device information, and send a hardware device allocation application to the corresponding device management object according to the target device indicated in the target device information.
The device allocating unit 755 is configured to allocate the target device indicated in the target device information to the service by receiving the device management object applied for hardware device allocation.
Fig. 11 is a description of details of the device discovery unit 753, according to an example embodiment. As shown in fig. 11, the device discovery unit 753 includes, but is not limited to: a source device information acquisition sub-unit 7531, a lookup sub-unit 7533, and an application transmission sub-unit 7535.
A source device information obtaining subunit 7531, configured to obtain source device information by using the currently allocated hardware device as a source device.
The searching subunit 7533 is configured to search for the target device information corresponding to the source device information in the hardware device link relationship.
An application sending subunit 7535, configured to send a hardware device allocation application to a device management object corresponding to the target device information, where the device management object corresponds to the target device indicated in the target device information.
Optionally, the searching subunit 7533 is further configured to search, according to the source device indicated in the source device information and the state of the target device indicated in the link relationship between the hardware device, the target device in the link relationship between the hardware device, so as to obtain the target device information corresponding to the source device information.
The target device marked by the target device information is linked to the source device marked by the source device information, and the target device is in an available state.
Fig. 12 is a diagram illustrating an apparatus for allocating hardware devices in a terminal according to an example embodiment. As shown in fig. 12, the allocation means of the hardware device in the terminal includes but is not limited to: a support information acquisition module 810 and a link generation module 830.
A support information obtaining module 810, configured to obtain hardware support information of the terminal.
The link generating module 830 is configured to dynamically generate a hardware device link relationship according to the hardware support information, where the hardware device link relationship indicates a source device, a target device of the source device, and a state of the target device itself.
Optionally, the present disclosure further provides an apparatus for allocating hardware devices in a terminal, where the apparatus for allocating hardware devices in a terminal may be used in the terminal in the implementation environment shown in fig. 1 to execute all or part of the steps of the method for allocating hardware devices in the terminal shown in any one of fig. 2, fig. 3, fig. 4, and fig. 5. The device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform:
acquiring a hardware equipment application request for obtaining a service when the service in the terminal is triggered;
triggering hardware equipment for starting service association in a terminal through a hardware equipment application request;
and taking the started hardware equipment as an initial, gradually discovering the hardware equipment according to the hardware equipment link relation conforming to the hardware configuration of the terminal to obtain target equipment information, and distributing the target equipment marked in the target equipment information for the service.
The specific manner in which the processor of the apparatus in this embodiment performs the operations has been described in detail in the embodiment related to the allocation method of the hardware device in the terminal, and will not be elaborated upon here.
In an exemplary embodiment, a storage medium is also provided that is a computer-readable storage medium, such as may be transitory and non-transitory computer-readable storage media, including instructions. The storage medium refers, for example, to the memory 204 comprising instructions executable by the processor 218 of the apparatus 200 to perform the method of assigning hardware devices in the terminal.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (9)

1. A method for distributing hardware equipment in a terminal comprises the following steps:
acquiring a hardware equipment application request for obtaining a service when the service in a terminal is triggered;
triggering and starting the hardware equipment associated with the service in the terminal through the hardware equipment application request;
correspondingly acquiring a hardware equipment link relation taking the started hardware equipment as an initial hardware equipment according to the start of the hardware equipment associated with the service, wherein the hardware equipment link relation is consistent with the hardware configuration of the terminal;
hardware equipment is discovered step by step according to the link relation of the hardware equipment to obtain target equipment information, and the hardware equipment allocation application is sent to a corresponding equipment management object according to the target equipment marked in the target equipment information;
and distributing the target equipment marked in the target equipment information for the service by receiving the equipment management object applied for the hardware equipment distribution.
2. The method according to claim 1, wherein the step of finding hardware devices stage by stage according to the link relationship of the hardware devices to obtain target device information, and sending the hardware device allocation application to the corresponding device management object according to the target devices indicated in the target device information comprises:
using the currently distributed hardware equipment as source equipment to obtain source equipment information;
searching for target equipment information corresponding to the source equipment information in the hardware equipment link relation;
and sending a hardware device allocation application to a device management object corresponding to the target device information, wherein the device management object corresponds to the target device marked in the target device information.
3. The method according to claim 2, wherein the step of finding the target device information corresponding to the source device information in the hardware device link relationship comprises:
searching for target equipment in the link relation of the hardware equipment according to the source equipment marked in the source equipment information and the self state of the target equipment marked in the link relation of the hardware equipment to obtain target equipment information corresponding to the source equipment information;
and the target equipment marked by the target equipment information is linked with the source equipment marked by the source equipment information, and the target equipment is in an available state.
4. The method of claim 1, further comprising:
acquiring hardware support information of the terminal;
and dynamically generating a hardware device link relation according to the hardware support information, wherein the hardware device link relation indicates the states of source equipment, target equipment of the source equipment and the target equipment.
5. The method according to claim 4, wherein the step of dynamically obtaining a dynamically updated hardware device link relationship according to the hardware support information comprises:
and dynamically updating the state of the target equipment in the link relation of the hardware equipment configured by the terminal according to the hardware support information.
6. An apparatus for allocating hardware devices in a terminal, comprising:
the request acquisition module is used for acquiring a hardware equipment application request for obtaining a service when the service in the terminal is triggered;
the equipment starting module is used for triggering and starting the hardware equipment related to the service in the terminal through the application request of the hardware equipment;
step-by-step processing module, the step-by-step processing module comprises:
a link relation obtaining unit, configured to correspondingly obtain, according to the start of the service-related hardware device, a hardware device link relation that takes the started hardware device as an initial hardware device, where the hardware device link relation conforms to a hardware configuration of a terminal itself;
the device discovery unit is used for discovering hardware devices step by step according to the link relation of the hardware devices to obtain target device information and sending the hardware device allocation application to a corresponding device management object according to the target devices marked in the target device information;
and the equipment allocation unit is used for allocating the target equipment marked in the target equipment information to the service by receiving the equipment management object applied by the hardware equipment allocation.
7. The apparatus of claim 6, wherein the device discovery unit comprises:
a source device information obtaining subunit, configured to obtain source device information by using currently allocated hardware devices as source devices;
the searching subunit is configured to search for target device information corresponding to the source device information in the hardware device link relationship;
and the application sending subunit is configured to send a hardware device allocation application to a device management object corresponding to the target device information, where the device management object corresponds to the target device indicated in the target device information.
8. The apparatus according to claim 7, wherein the searching subunit is further configured to search, according to the source device indicated in the source device information and the target device self-state indicated in the hardware device link relationship, for the target device in the hardware device link relationship, to obtain target device information corresponding to the source device information;
and the target equipment marked by the target equipment information is linked with the source equipment marked by the source equipment information, and the target equipment is in an available state.
9. The apparatus of claim 6, further comprising:
the support information acquisition module is used for acquiring hardware support information of the terminal;
and the link generation module is used for dynamically generating a hardware device link relation according to the hardware support information, wherein the hardware device link relation marks the source device, the target device of the source device and the state of the target device.
CN201610634146.0A 2016-08-03 2016-08-03 Distribution method and device of hardware equipment in terminal Active CN106227607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610634146.0A CN106227607B (en) 2016-08-03 2016-08-03 Distribution method and device of hardware equipment in terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610634146.0A CN106227607B (en) 2016-08-03 2016-08-03 Distribution method and device of hardware equipment in terminal

Publications (2)

Publication Number Publication Date
CN106227607A CN106227607A (en) 2016-12-14
CN106227607B true CN106227607B (en) 2020-01-24

Family

ID=57546976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610634146.0A Active CN106227607B (en) 2016-08-03 2016-08-03 Distribution method and device of hardware equipment in terminal

Country Status (1)

Country Link
CN (1) CN106227607B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8290762B2 (en) * 2001-08-14 2012-10-16 National Instruments Corporation Graphically configuring program invocation relationships by creating or modifying links among program icons in a configuration diagram
US7512948B2 (en) * 2003-11-20 2009-03-31 International Business Machines Corporation Method, system, and program for managing operation requests using different resources
CN102602125B (en) * 2012-03-20 2013-11-27 丹东金丸集团有限公司 Control device of direct plate making machine of nano material and control method thereof
US9594594B2 (en) * 2012-10-18 2017-03-14 Advanced Micro Devices, Inc. Media hardware resource allocation
CN105786612B (en) * 2014-12-23 2019-05-24 杭州华为数字技术有限公司 A kind of method for managing resource and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能电视操作系统服务性能与资源调度关键技术研究;王海威;《万方学位论文》;20110919;参见第36-63段 *

Also Published As

Publication number Publication date
CN106227607A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN105243318B (en) Method and device for determining control authority of user equipment and terminal equipment
US20200401286A1 (en) Method, apparatus and medium for switching application interfaces
EP2991275B1 (en) Making router management application compatible with router firmware
WO2017193612A1 (en) Apparatus employing mobile terminal to operate electronic apparatus, system, and method
CN109857551B (en) Service resource scheduling method and device based on cloud computing and electronic equipment
CN107526605B (en) Method and device for realizing application program loading service assembly
US20170068527A1 (en) Device control method and apparatus
EP4246924A1 (en) Bluetooth address allocation method for smart lamp, computer apparatus, and computer readable storage medium
WO2020211382A1 (en) Dynamic timeout period adjustment method and system for redis-based distributed lock
WO2020097845A1 (en) Method and device for using network slice
US20200374939A1 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
RU2654152C2 (en) Method and device for access to wireless network
CN106339260B (en) Task allocation method and device based on Jenkins platform
US20160119257A1 (en) Method and device for providing communication between multi-devices
WO2019227430A1 (en) Channel monitoring method, device, system and storage medium
WO2018191880A1 (en) Method and apparatus for controlling network access
CN107332971B (en) Method and device for controlling wireless display of intelligent display equipment
CN111078356A (en) GPU cluster resource control system, method, device, equipment and storage medium
CN113596175A (en) Scene synchronization method, terminal, server and system
CN106227607B (en) Distribution method and device of hardware equipment in terminal
CN107733674B (en) Component upgrading method and terminal
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
WO2020258050A1 (en) Method and apparatus for determining wireless resource
CN106911497B (en) method and device for identifying and adapting system updating equipment
CN112929247A (en) Method, device and system for accessing intelligent household electrical appliance to multiple servers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Video Technology Co.,Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20221014

Address after: 83 Intekte Street, Devon, Netherlands

Patentee after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee before: Hisense Video Technology Co.,Ltd.

TR01 Transfer of patent right