Summary of the invention
The purpose of the present invention is to provide a kind of method, apparatus for realizing television set Parallel signal processing and corresponding sub- equipment
Choosing method can break through the defect of conventional television software frame, rapidly adapt to the signal processing requirement constantly updated and hardware
Evolution.The invention proposes a kind of concatenate rules of new method setting television equipment network neutron device nodes, and according to even
It connects rule and establishes or abandon media play access, executed, be switched fast and dynamic adaptation hardware configuration parallel with reaching maximum
Purpose thoroughly solves the design limitation of traditional scheme quotient, adapts to the signal processing requirement and hardware evolution constantly updated.
In order to solve above-mentioned first technical problem, the technical scheme adopted by the invention is as follows:
A kind of method of television set multiple signals parallel processing, comprising:
Give the respective equipment routing node of every sub- device definition;The equipment routing node includes by the institute of the sub- equipment of correspondence
Active node destination node state corresponding with the matrix channel that all destination nodes form and each channel, the destination node
State is one of no equipment state, idle state and connection status, and the source node is the input of the sub- equipment, the mesh
Mark node is the output of the sub- equipment;
It is the son that the distribution of each Parallel signal processing needs by the communication paths established between the equipment routing node
Device resource: if the not source node of signal processing requirement in the matrix channel, corresponding sub- equipment failure is distributed, if active
Node, polling targets node queue then distribute correspondence if there is the destination node for the idle state for meeting concatenate rule
Equipment success, the sub- equipment of whole in the resource needed for a signal processing are allocated successfully, then signal processing distribution resource at
Otherwise function fails;The concatenate rule is according to sub- equipment and signal processing actual pairing feature definitions;
Execute the successful Parallel signal processing of all distribution resources.
The all or part of above-mentioned every sub- equipment is the sub- equipment with multiple hardware entities, has a hardware entities
The sub- equipment of multiplexer channel or the virtual unit of multiplexer channel, can just execute parallel in this way, but most of also have a fixed number
Amount limitation.In addition, at present, there are also a handful of special sub- equipment not to support to execute parallel completely in television set.
In order to solve above-mentioned second technical problem, the technical scheme adopted by the invention is as follows:
A kind of device for realizing television set multiple signals parallel processing characterized by comprising
Signal processing chooses module, needs all signal processings of parallel processing corresponding with each signal processing for choosing
Sub- device resource;
Sub- equipment management and distribution module are each signal for the communication paths by establishing between equipment routing node
Processing distribution is idle and meets the sub- device resource of concatenate rule;The equipment routing node includes by all of the sub- equipment of correspondence
Source node destination node state corresponding with the matrix channel that all destination nodes form and each channel, the destination node shape
State is one of no equipment state, idle state and connection status, and the source node is the input of the sub- equipment, the target
Node is the output of the sub- equipment;The concatenate rule is according to sub- equipment and signal processing actual pairing feature definitions;
Parallel processing module, for executing the successful Parallel signal processing of all distribution resources.
In order to solve above-mentioned third technical problem, the technical scheme adopted by the invention is as follows:
A kind of sub- equipment choosing method of TV characterized by comprising
Give the respective equipment routing node of every sub- device definition;The equipment routing node includes by the institute of the sub- equipment of correspondence
Active node destination node state corresponding with the matrix channel that all destination nodes form and each channel, the destination node
State is one of no equipment state, idle state and connection status, and the source node is the input of the sub- equipment, the mesh
Mark node is the output of the sub- equipment;
It is the sub- device resource that the distribution of each Parallel signal processing needs: the square by being connected to the equipment routing node
If the source node of not no signal processing requirement in battle array channel, corresponding sub- equipment failure, if active node, polling targets knot are distributed
Point queue then distributes the correspondence sub- equipment success, otherwise loses if there is the destination node for the idle state for meeting concatenate rule
It loses;The concatenate rule is according to sub- equipment and signal processing actual pairing feature definitions.
The technical solution that the embodiment of the present invention provides can include the following benefits:
1, concatenate rule flexibly defines, can the configuration of dynamic adaptive hardware, therefore the present invention is hard to all smart televisions
Part can be general, to reduce additional development cost;
2, by extension concatenate rule, the signal processing requirement and hardware expanding constantly updated are adapted to, due to without right
The software of conventional television framework scheme is reconstructed, therefore shortens the development cycle and reduce cost;
3, realize that sub- device resource is rationally called and distributed by establishing equipment routing node and concatenate rule, therefore can be fast
Speed processing hardware conflicts and maximum utilize sub- device resource, realize parallel execute.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Firstly, brief description starting point of the present invention and thinking:
1, network model is established: by sub- equipment connection/combination as a kind of special equipment route network model;
2, it establishes routing node model: every sub- equipment being regarded as the routing section in above equipment route network model
Point: equipment routing node, and routed according to the parallel characteristics such as tables of equipment/multichannel equipment corresponding with the definition of signal processing parallel characteristics
The concatenate rule of node and limitation;
3, sub- device resource allocation is realized using establishing Router Simulation in a model: being that concrete signal handles and distributes son and set
It is standby, it regards as and establishes an equipment routing access in above equipment route network model, so as to the road routed by equipment
It is established by selection method and rule, reaches the sub- equipment of distribution, maximum executes multiple signal processings parallel, be switched fast and dynamic is suitable
Purpose with hardware configuration.
Moreover, because concatenate rule is distributed into this way according to sub- equipment and signal processing actual pairing feature definitions
Software and hardware conflict will not necessarily occur for the sub- equipment of function, so that meeting the parallel of media play executes requirement.
Second, the present invention will be described in detail realizes sub- device resource allocation by establishing equipment routing node and concatenate rule
Method and concrete model:
(i) sub- device network model
Fig. 1 is the schematic diagram of a TV example neutron device network.The example is a kind of act of particular hardware configuration
Example, it is other similar.
It is laterally IEEE Std serial highway, any one TV service is combined by multiple sub- equipment in the sub- device network
It is common to complete, it is successively from left to right high frequency chieftain equipment, the sub- equipment of descrambling, demultiplex equipment, solution numeral equipment and output
Sub- equipment, 5 column boxes in corresponding diagram 1.Longitudinal is IEEE Std parallel highway, any one sub- equipment has multiple (being physically present multiple)
Or multichannel (physically one, but internal hardware has multiple accesses), it in most cases can be with concurrent working, i.e. in Fig. 1
As soon as each box be an entity or channel that the column correspond to sub- equipment, this, which shows how many box, corresponding number
Parallel channel.
When a new processing television signals are established, it is necessary to according to certain concatenate rule, suitable son be selected to set
It is standby, media play access is got through.
In another TV example, further includes that export in sub- equipment further include memory module, television recording may be implemented
With playback etc..
(ii) equipment routing node model
The control of any one equipment will be realized by equipment routing node in Fig. 1, the selection of sub- equipment be helped, with table
Illustrate equipment routing node for the routing node of high frequency head apparatus shown in 1:
Table 1
Such as table 1, an equipment routing node includes following a few parts:
Source node: source node is the input of equipment routing node: can be an equipment routing node, is also possible to most
The signal of beginning inputs;
Destination node: destination node is the output of equipment routing node: it can be next equipment routing node, it can also be with
It is final signal output;
Destination node state: including no equipment [X], idle [O] and three states of connection [connection serial number];
Concatenate rule: according to the corresponding source node of input source, the corresponding destination node queue of input source is found, then basis
General rule and ad hoc rules, the selection target node in destination node queue.
Equipment routing node connected rule: the destination node of a upper device network network is the source of next device network network
Node.As shown in table 2 below, the partial target node of table 1 is the source node of 2 descrambler device routing node of table, if C_T_0 is in high frequency
It is purpose node in head apparatus routing node, and in descrambler device routing node is source node.
|
C_T_0 |
C_T_1 |
S_0 |
S_1 |
CAM_0 |
[dbjective state] |
[X] |
[connection serial number] |
|
CAM_1 |
[O] |
|
|
|
Table 2
(iii) concatenate rule model
The concatenate rule of broad sense is exactly to define set of rule how to realize according to input source node, passes through equipment routing node
Accessed path figure eventually finds the idle destination node that can be used.As shown in table 3 below, if input is the letter of source node 2
Number, it is searched in routing node path profile by certain rule, finally found that idle destination node: destination node 2.The present invention is total
All concatenate rules for having tied TV design basic demand and several general concatenate rules, and provide and how to realize that extension connects
Concatenate rule described in the method for connecing rule, general concatenate rule and extension concatenate rule, that is, technical solution of the present invention.
|
Source node 1 |
Source node 2 |
Source node 3 |
Source node 4 |
Destination node 1 |
|
[connection serial number] |
|
|
Destination node 2 |
|
Idle [O] |
|
|
Destination node 3 |
|
[X] |
|
|
Table 3
1. basic demand
Shown in table 3 as above, source node and destination node collectively form a matrix, after input source is come in:
If there is no the source node, connection failure in matrix.
If active node, polling targets node queue, if there is the node of idle state, then to find target.It is no
Then, connection failure.
Concatenate rule is all on the basis of basic demand below, that is to say, that finds idle node meeting basic demand
Afterwards, it is also necessary to meet concatenate rule in detail below, can just think to find destination node.
2. concatenate rule
Rule 1: lateral mutual exclusion rule
Table 4
The principle of lateral mutual exclusion rule is: destination node can only be used by a source node, once it is some source node
It occupies, the destination node of other idle states, hereinafter referred to as idle destination node can only be selected.Shown in table 4 as above, for example, it is defeated
Entering source is source node 3, because destination node 1 occupies (connection status) by source node 2, horizontal exclusion shadow region, so can only
Select the destination node 2 in idle destination node.Many actual physical devices and physical vlan equipment all use this in TV
Rule: DEMUX, player, HDMI etc..
Rule 2: longitudinal mutual exclusion rule
Table 5
The principle of longitudinal mutual exclusion rule is: although supporting multiplexer channel on hardware, signal processing itself can only pass through one
A channel executes, and does not support multi-channel parallel to execute.Shown in table 5 as above, such as input source is source node 3, because of source node 3
There is a destination node 3 to be in connection status.According to longitudinal mutual exclusion rule, longitudinal repulsion shadow region, it may be assumed that source node 3 its
He requests, and can only fail.In TV, such scene is the demand that network flow-medium part plays scene, some piece of video stream
The same channel can only be used to send.In TV, such scene is the demand that network flow-medium part plays scene, some
Piece of video stream can only use the same channel to send.
Rule 3: intersect mutual exclusion rule
Table 6
The principle for intersecting mutual exclusion rule is: source node and destination node all cannot achieve parallel, monopolize.Shown in table 6 as above,
Such as input source is source node 3, because source node 3 has a destination node 1 to be in connection status, the region repelled is to hand over
Pitch shadow region.According to mutual exclusion rule is intersected, other requests of source node 3 can only fail.Other source nodes, such as source node 2
It is unable to selection target node 1.In TV, such scene is the selection of tuner.
Rule 4: specified path rule
Table 7
The principle of specified path rule is: some source node can only use or cannot use some destination node.As above
In table 7, source node 3 can only use destination node 1;Source node 2 cannot use destination node 2.In TV, such as due to hardware
Design or cost limitation, only CAM0 can descramble certain code stream TS0, this just meets specified path rule.
Rule 5: fixed batch of mutual exclusion rule
Table 8
The principle of fixed batch of mutual exclusion rule is: as long as certain class destination node has a node to use, most is mutually similar
Other source node and destination node be unable to using.In table 8 as above, because source node 3 uses destination node 1, lead to source node
1/2/3, it can not be used destination node 1/2/3, see shadow region.In TV, analog hardware resource is uniquely, only with a kind of
Simulation input source uses, and other simulation input sources can not be used, and belongs to this rule.
Fig. 2 is the hierarchical structure signal for the broad sense concatenate rule example that the sub- equipment of TV of the present invention includes including basic demand
Figure.Based on basic demand and above-mentioned 5 general concatenate rules, behind can be according to the design and evolution of hardware, easily
Carry out the extension of rule.
This extension can be the concatenate rule for inheriting front, such as: extension rule 1 and extension rule 3;It is also possible to directly
Independent connection rule under basic demand, such as: extension rule 2.
Fig. 3 is the sub- device network concatenate rule implementation diagram of TV of the present invention, i.e., the present invention implements sub- equipment money
The method of source distribution.By the specific concatenate rule application implementation in Fig. 2 to corresponding equipment routing node, since concatenate rule is
According to sub- equipment and signal processing actual pairing feature definitions, software and hardware will not necessarily occur for the sub- equipment being allocated successfully in this way
Conflict, to meet the execution requirement of parallel media broadcasting.
Above-mentioned sub- equipment actual pairing characteristic includes whether sub- equipment supports multichannel, could support up several roads etc., above-mentioned signal
Processing parallel characteristics include whether signal processing supports multichannel etc., referring specifically to the previously described concatenate rule model of the present invention.
Finally, further illustrating specific implementation of the invention in conjunction with preferred embodiment:
(i) hardware circuit
As shown in figure 4, smart television of the present invention includes being sequentially connected electrically for choosing all signals for needing parallel processing
The signal processing for handling sub- device resource corresponding with each signal processing chooses module 11, for by establishing the equipment road
It is the sub- equipment that each signal processing distributes sub- device resource that is idle and meeting concatenate rule by the communication paths between node
Parallel processing module 13 of the management with distribution module 12 and for executing all distribution successful Parallel signal processings of resource.It is above-mentioned
3 functional modules: signal processing chooses module 11, sub- equipment management and distribution module 12 and parallel processing module 13.
(ii) program is controlled
Load operating Parallel signal processing controls program in smart television of the present invention control chip, it is specific as shown in figure 5,
The following steps are included:
200) start;
201) processing television signals of parallel processing are selected;
202) the sub- device network access of media play, the sub- equipment of distribution are established for each signal processing;
203) judge whether to be assigned? it is otherwise return step 202 in next step);
204) all signal processings being allocated successfully are executed parallel;
205) terminate.
In step 202, sub- device network access is established for each signal processing all use routing algorithm, the routing algorithm
In include specific choice to each equipment routing node.
In step 202, routing algorithm is transplanting, improvement or the synthesis of Intelligent routing algorithm, can be calculated by multiple,
It is final to realize that maximum utilizes sub- equipment, realize parallel execute.
In preferred embodiment above, step 204 can increase notifies distribution failure signal to handle nothing by man-machine interface
The code that method executes, guarantee most signal processing in this way executes, and realizes necessary notice.
In preferred embodiment above, Parallel signal processing controls program can also be by other routine call.
In Parallel signal processing of the present invention control program routing algorithm it is practical particularly directed to each signal processing one by one into
Row, it may be assumed that needing repeatedly to call is that the control program of access is established in single signal processing, the program it is specific as shown in fig. 6, include with
Lower step:
300) start;
301) the sub- equipment collection for realizing this processing television signals is obtained;
302) each sub- equipment is chosen by equipment routing node by connection precedence;
303) judge whether all to choose successfully? it is that in next step, otherwise 305) distribution failure, enters step;
304) it is allocated successfully;
305) terminate.
In preferred embodiment above, the control program record for establishing access for single signal processing meets front at the same time
The corresponding all feasible paths of each signal processing in the case of signal processing.
In preferred embodiment above, when simultaneously, meeting this signal processing under preceding signal disposition does not have feasible path
When, other feasible paths of preceding signal processing are selected, establish access again for this signal processing, it may be assumed that Intelligent routing algorithm.
The present invention is that single signal processing establishes the control program reality of access particularly directed to each equipment routing node
Carry out one by one, it may be assumed that need repeatedly to call and be connected to current sub- facility control program, the control program it is specific as shown in fig. 7, comprises with
Lower step:
400) start;
401) it inquires current sub- equipment and corresponds to equipment routing node;
402) the source node of signal processing requirement is judged whether there is? it is in next step, otherwise to enter step 406);
403) judge whether available free destination node? it is in next step, otherwise to enter step 406);
Does 404) destination node for determining whether idle state meet corresponding concatenate rule? it is in next step, otherwise to enter step
It is rapid 406);
405) it is current value that next sub- equipment, which is arranged, to correspond to equipment routing node, is entered step 407);
406) connection failure;
407) terminate.
In step 405, all idle destination nodes for meeting corresponding concatenate rule are recorded.
In preferred embodiment above, when be connected to failure when, select previous equipment routing node other meet it is corresponding
The idle destination node of concatenate rule is connected to sub- equipment again for this signal processing, it may be assumed that Intelligent routing algorithm.
In preferred embodiment above, when know through routing algorithm all to execute parallel, then according to user setting
Selection at most can Parallel signal processing correspondence signal processing and access, or guarantee main signal processing execute on the basis of select
Select at most can Parallel signal processing correspondence signal processing and access.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.