Broadcasting command collision processing method and the device of network digital broadcast
Technical field
The present invention relates to technical field of data processing, particularly a kind of network digital broadcast is wideBroadcast order collision processing method and device.
Background technology
Along with the continuous increase of the passenger traffic volume, in order to realize passenger station, passenger transportation management's business is carried outCentralized Control, for passenger transportation management's work of passenger station provides in time, management accurately and efficientlyAnd control. The broadcast playback mode of at present Adoption Network digital broadcasting, to passenger transportation management's businessRelevant information is carried out information broadcasting.
Broadcast system work is at present mainly that a large amount of original broadcast orders are handed down to broadcast playback dressPut, adopt the mode of operation of directly broadcasting command being carried out, carry out the execution of broadcasting commandPlay, to complete broadcast playback task.
By above description, at present, broadcast system is direct without any processing by broadcasting commandCarry out broadcasting command, cause a large amount of broadcasting commands carry out time, occur broadcasting command simultaneously wantAsk and carry out broadcast playback, thereby occur broadcasting command execution collision problem, restricted passenger station tripThe quality of customer service business.
Summary of the invention
(1) technical problem that will solve
Broadcasting command collision processing method and dress that the embodiment of the present invention is broadcasted by network digitalPut, can solve existing network digital broadcasting and have collision problem in broadcasting command is carried out.
(2) technical scheme
For addressing the above problem, the present invention proposes the broadcasting command hit-treatment of network digital broadcastMethod, comprising:
Step S1, the order of Real-time Obtaining broadcast subregion original broadcast, comprise: service broadcast order,Special topic broadcasting command, artificial broadcasting command;
Step S2, foundation broadcast information source model, broadcast partition model, setting broadcast information source district isPi, broadcast subregion is Sj, broadcasting command model is Ci, Ci(Pi, Sj) represent to broadcast and orderOrder is carried out broadcast subregion and is carried out the information source of playing;
Step S3, by Ci(Pi, Sj) determine that whether broadcast subregion is in seizure condition, asFruit is to determine and have broadcasting command collision;
Step S4, original broadcast order described in broadcast subregion is entered with the broadcasting command of carrying outRow major level is queued up, if just in execution priority higher than original broadcast order, according to preferentiallyLevel continues to play, otherwise the broadcasting command that stops carrying out, carries out according to prioritizationBroadcasting command.
Further, described to original broadcast order according to the broadcasting command priority bag of rankingDraw together:
Be highest according to artificial broadcasting command, service broadcast order is middle rank, special topic broadcast lifeOrder, for the order of final stage, is carried out priority queueing from high to low.
Further, described multiple original broadcast orders are arranged according to broadcasting command priorityTeam comprises: for the order of same type, carry out priority queueing according to time order and function order.
Further, described method, is further included in while carrying out service broadcast order, to industryBusiness broadcasting command carries out effectual time judgement,
When in effectual time, carry out this service broadcast order;
When outside effectual time, give up this service broadcast order.
On the other hand, the present invention also provides broadcasting command collision place a kind of and network digital broadcastThe device of reason method, comprising:
Command acquisition unit, for the former broadcasting command of real-time acquisition system;
Set up model unit, for setting up broadcast sectorization broadcast implementation status model, set broadcastInformation source district is that parameter is Pi, and broadcast partitioned parameters is Sj, and broadcasting command model is Ci, Ci(Pi, Sj) represents broadcasting command execution broadcast subregion and carries out the information source of play command;
Collision detection unit, for by MODEL C i(Pi, Sj) judge broadcast subregion whether inSeizure condition, if so, determines and has broadcasting command collision, stops ongoing broadcastPlay;
Priority queueing unit, carries out prioritization to the broadcasting command of broadcast subregion.
Further, described prioritization unit, for broadcasting command according to preferentially gradingRow is queued up, and artificial broadcasting command is set for highest, and service broadcast order is middle rank, and special topic is wideBroadcasting order is final stage order, carries out priority queueing from high to low.
Further, described prioritization unit, for the broadcasting command to same type,The preceding order of setup times is that priority is higher than posterior broadcasting command of time.
Further, described device, further comprises effectual time judging unit, for holdingBefore industry business broadcasting command, effectual time judgement is set, judges whether this service broadcast order is locatedIn effectual time, if so, broadcast system is carried out this service broadcast order, if not,Broadcast system is given up this service broadcast order.
(3) beneficial effect
As seen from the above technical solutions, the embodiment of the present invention has following beneficial effect:
One,, in the embodiment of the present invention, carry out method design mainly for broadcasting command collision problem,By obtaining original broadcast order; And according to broadcasting command collision situation, to original broadcast orderBroadcasting command priority is set; By the setting of priority, determine that the execution of broadcasting command is complied withAccording to, carry out the hit-treatment of broadcasting command according to embodiment of the present invention method, effectively avoidThe collision of broadcasting command. Compared with broadcasting command being play-overed with prior art, have wideBroadcast the basis for estimation of the priority of command execution, avoided command execution collision.
Two, by artificial broadcasting command being set for highest, service broadcast order is middle rank, speciallyTopic broadcasting command is final stage. According to priority by senior to the rudimentary broadcasting command that carries out. By sameOne priority, ranks according to time order and function order, has determined the reality of the broadcasting of broadcasting commandBorder is worth and has improved the timely row of broadcast playback, has improved the service quality of broadcast service system.
Three, before carrying out service broadcast order, carry out effectual time judgement, thereby reduce in a large numberExecution to failure service broadcasting command, improved broadcast playback quality and reduce broadcast playbackWorkload.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, belowTo the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, aobvious andEasily insight, the accompanying drawing in the following describes is only some embodiments of the present invention, for this areaThose of ordinary skill, is not paying under the prerequisite of creative work, can also be according to theseAccompanying drawing obtains other accompanying drawing.
Fig. 1 is the broadcasting command collision processing method step of network digital broadcast in the embodiment of the present inventionSuddenly;
Fig. 2 is the idiographic flow frame that in the embodiment of the present invention, broadcasting command carries out collision processing methodFigure;
Detailed description of the invention
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, will tie belowClose the accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present invention carry out clear,Intactly describe, obviously, described embodiment is the present invention's part embodiment, instead ofWhole embodiment. Based on the embodiment in the present invention, those of ordinary skill in the art are not havingMake the every other embodiment obtaining under creative work prerequisite, all belong to the present invention's protectionScope.
Network digital broadcast in commuter service comprises: artificial broadcast, service broadcast and special topic are wideBroadcast, the order of playing these contents accordingly for controlling broadcasting device is: manually broadcastLife, service broadcast order and thematic broadcasting command.
Artificial broadcasting command refers to, the crowd of broadcast service is due to accident or emergency management,Need to carry out instant broadcast playback by broadcast, reach the broadcast message content of Information Communication,For example: search notice, the contents such as notice of looking for a thing. Because this class content, establishes by artificial incisionThe broadcast system of putting, carries out artificial broadcast playback, so claim this broadcasting command for artificial broadcastOrder;
Service broadcast order refers to, the content of broadcast playback is the business letter relevant with coverageBreath, for example station ticket checking, train arrival, the train time delay broadcast such as arrive at a station, such broadcastThere is the associated of any with the time, often exceed certain period, just lose the meaning of broadcast playback,This is also a main feature of service broadcast.
Special topic broadcasting command refer to, culture and propaganda action and the business service of being undertaken by broadcast playback refer toLead item, mainly comprise: civilization publicity, safety notice, the ticketing broadcast such as guide of getting ticketsContent.
Collision, is exactly conflict, refers to the broadcast playback of carrying out in network digital broadcastTime, if receive new broadcast order, between these broadcasting commands, just there will be soMutually destroy, or cannot determine the problem of correlation, cause broadcasting command to carry out unordered,Or broadcasting command can not be carried out, cause broadcasting command to carry out unsuccessfully, or information dropoutProblem.
First the embodiment of the present invention proposes the broadcasting command collision processing method of network digital broadcast,Comprise:
The order of Real-time Obtaining broadcast subregion original broadcast, comprises: service broadcast order, special topic are extensivelyBroadcast order, artificial broadcasting command;
Set up broadcast information source model, broadcast partition model, setting broadcast information source district is Pi, broadcastSubregion is Sj, and original broadcast order is Ci, Ci(Pi, Sj) represent that broadcasting command execution is wideBroadcast subregion and carry out the information source of playing;
By Ci(Pi, Sj) determine that whether broadcast subregion is in seizure condition, if so, trueSurely there is broadcasting command collision;
Original broadcast order described in broadcast subregion is carried out to priority with the broadcasting command of carrying outQueue up, if just in execution priority higher than original broadcast order, continue to broadcast according to priorityPut, otherwise the broadcasting command that stops carrying out, carries out broadcasting command according to prioritization.
Therefore first the embodiment of the present invention proposes a kind of broadcasting command collision place of network digital broadcastReason method, known with reference to accompanying drawing 2, method comprises the following steps:
Step S201, obtain the order of each broadcast subregion original broadcast in real time, the real-time net that passes throughThe original broadcast order that network digit broadcasting system active obtaining Tourist Information system sends, formerBeginning broadcast schedule based order comprises: artificial broadcasting command, service broadcast order and thematic broadcasting command;
Step S202, foundation broadcast information source, broadcast subregion basic model, set broadcast information source districtFor Pi, broadcast subregion Sj, original broadcast planning directive Ci, Ci(Pi,Sj) can determine extensivelyBroadcast plan execution area and carry out content.
Step S203, when obtain broadcast subregion original broadcast order after, according to Ci(Pi,Sj)Determine that whether broadcast subregion is in seizure condition, if in seizure condition, have broadcast lifeOrder collision.
Step S204, by the original broadcast order of acquisition and the broadcasting command of carrying out, carry outPriority arrangement, the principle of arrangement is: be the superlative degree, service broadcast according to artificial broadcasting commandOrder is middle rank, and the order that thematic broadcasting command is final stage is carried out priority row from high to lowTeam. If belong to the priority of same class grade, carry out priority arrangement according to time order and function.After queuing completes, carry out broadcasting command according to priority.
If the broadcasting command priority that step S205 is carrying out is the highest, continuing to carry out shouldBroadcasting command, the original broadcast order of acquisition is ranked and is carried out broadcast life according to priority ordersOrder play, if the broadcasting command priority of carrying out lower than the original broadcast order of obtaining,Queue up from high to low according to priority.
Step S206, carry out broadcasting command according to priority queueing order, when carrying out industryWhen business broadcasting command, carry out effectual time judgement, the execution in effectual time is play, otherwiseAbandon playing.
Step S206, in the time that system receives new broadcasting command and will enter this broadcast subregion, returnTo step S201, carry out periodic duty.
Another one embodiment of the present invention proposes a kind of broadcasting command collision place of network digital broadcastThe device of reason method, comprising:
Command acquisition unit, for the former broadcasting command of real-time acquisition system;
Set up model unit, for setting up broadcast sectorization broadcast implementation status model, set broadcastInformation source district parameter is Pi, and broadcast partitioned parameters is Sj, and original broadcast order is that model is Ci,Ci(Pi, Sj) expression broadcasting command execution broadcast subregion and the information source of carrying out play command;
Collision detection unit, for by MODEL C i(Pi, Sj) judge broadcast subregion whether inSeizure condition, if so, determines and has broadcasting command collision, stops ongoing broadcastPlay;
Priority queueing unit, carries out prioritization to the broadcasting command of broadcast subregion.
Prioritization unit, for broadcasting command is ranked according to priority, arranges peopleWork broadcasting command is highest, and service broadcast order is middle rank, and thematic broadcasting command is final stage order,Carry out priority queueing from high to low. To the broadcasting command of same type, setup times is frontOrder be that priority is higher than posterior broadcasting command of time.
This device, also comprises effectual time judging unit, for before the order of execution service broadcast,Effectual time judgement is set, judges that this service broadcast order is whether in effectual time, ifBe, broadcast system is carried out this service broadcast order, if not, broadcast system is given up this businessBroadcasting command.
Below with reference to specific embodiment, the inventive method is described in detail.
Embodiment 1:
Carry out the example of broadcasting command says in detail below in conjunction with passenger station, somewhere broadcast subregionBright, passenger station, somewhere broadcast subregion 1 is being carried out the service broadcast order 1 in information source district 1, now obtainsObtain information source 2, information source 3, information source 4 to broadcast subregion 1, within the same period, sent people respectivelyWork broadcasting command 2, thematic broadcasting command 3, artificial broadcasting command 4, artificial broadcasting command 2 is existingHave artificial broadcasting command 4, service broadcast order effectual time is effective in three minutes, every broadcastOrder playing duration is two minutes.
By the real-time original broadcast order that obtains broadcast subregion, information source 2,3,4 is sameThe broadcasting command sending in period is all acquired.
By being Pi to broadcast subregion according to broadcast information source district, broadcast subregion Sj, original broadcast lifeMake Ci, Ci(Pi, Sj) represent broadcasting command execution broadcast subregion and carry out the information source of playingSet up model, can broadcast partition model is C1(P1, S1) represent broadcast subregion 1 holdingThe service broadcast order 1 in row information source district 1.
By C1(P1, S1) can judge that broadcast subregion 1 is used for execution information source 1 and sends toThe broadcasting command 1 of this subregion, while therefore receiving new broadcasting command, judges and has broadcast collision.
Broadcasting command 1 and original broadcast order 2,3,4 are carried out to priority queueing, according to peopleWork broadcasting command is highest, and service broadcast order is middle rank, and thematic broadcasting command is final stageSequentially, carry out priority queueing from high to low. For the order of same type, according to the timeSequencing carries out priority queueing. Artificial broadcasting command 2,4 is the high broadcast order of priority,Service broadcast order 1 is priority middle rank, and thematic broadcasting command 3 is final stage broadcasting command, because ofFor artificial broadcasting command 2 is prior to artificial broadcasting command 4, therefore broadcasting command 2 priority are according to sameOne rank priority queueing is higher than broadcasting command 4. Finally definite prioritization is: manually wideBroadcast order 2, artificial broadcasting command 4, service broadcast order 1, thematic broadcasting command 3.
Because service broadcast command prioritization, lower than artificial broadcasting command, is therefore carried out broadcasting commandBe stopped, broadcast subregion 1 is carried out artificial broadcasting command 2 two minutes, there is no new broadcast lifeOrder adds broadcast subregion, carries out artificial broadcasting command 4 two minutes.
In the time carrying out service broadcast order 1 and replay, because it is service broadcast order, because ofThis need to judge effectual time, because artificial broadcasting command 2 and 4 broadcastings have occupied wideBroadcast subregion 1 four minutes, therefore service broadcast order 1 was lost efficacy, and gave up execution broadcasting command,Directly carry out the broadcasting command 3 of next priority.
Embodiment 2:
Carry out the example of broadcasting command says in detail below in conjunction with passenger station, somewhere broadcast subregionBright, passenger station, somewhere information source 1 is carried out broadcasting command at broadcast subregion 1,2, and information source 2 is in broadcastSubregion 2,3 is carried out broadcasting command, broadcasts now subregion just at play service broadcasting command 1, andInformation source 1 has been sent artificial broadcasting command 2 to broadcast subregion 1,2, and service broadcast order 3,Information source 2 has been sent service broadcast order 4 and thematic broadcasting command 5, industry to broadcast subregion 2,3Business broadcasting command 3 elder generations and service broadcast order 4. Service broadcast order effectual time is in three minutesEffectively, every broadcasting command playing duration is two minutes.
It should be noted that, part is broadcasted subregion to be needed some broadcasting commands to be carried out to the while simultaneouslyPlay, if therefore there is broadcast collision, carry out, after priority ordering, need to arranging according to priorityBe listed as the most complicated broadcast subregion playing sequence and determine that other broadcast subregions and it is play at synchronizationIdentical broadcasts order.
By the real-time original broadcast order that obtains broadcast subregion, information source 1,2 is in the same periodThe broadcasting command of interior transmission is all acquired. Be artificial broadcasting command 2, service broadcast order 3, industryBusiness broadcasting command 4 and thematic broadcasting command 5.
By being Pi to broadcast subregion according to broadcast information source district, broadcast subregion Sj, original broadcast lifeMake Ci, Ci(Pi, Sj) represent broadcasting command execution broadcast subregion and carry out the information source of playingSet up model, can broadcast partition model is C1(P1, S2) represent broadcast subregion 2 holdingThe service broadcast order 1 in row information source district 1.
By C1(P1, S2) can judge that broadcast subregion 2 is used for by information source 1 and sends to thisThe broadcasting command 1 of subregion takies, and therefore receives the artificial broadcast of new broadcasting command information source 1Order 2, service broadcast order 3, and the service broadcast order 4 of information source 2 and special topic broadcast lifeMake at 5 o'clock, judge that this broadcast subregion exists broadcast collision.
By C1(P1, S1) can judge that broadcast subregion 1 is used for by information source 1 and sends to thisThe broadcasting command 1 of subregion takies, and therefore receives the artificial broadcast of new broadcasting command information source 1Order 2, service broadcast order 3, judge that this broadcast subregion exists broadcast collision.
By carrying out respectively priority queueing to above 3:
Broadcast subregion 2 has following broadcasting command: the service broadcast order 1 carried out, obtain in real timeArtificial broadcasting command 2, the service broadcast order 3 of getting, service broadcast order 4 and special topic broadcast lifeMake 5, carry out priority queueing and time order and function according to type and carry out priority queueing and determine its queuingOrder is: artificial broadcasting command 2, and service broadcast order 1, service broadcast order 3, business is wideBroadcast order 4, thematic broadcasting command 5.
Broadcast subregion 1 has following broadcasting command: the service broadcast order 1 carried out, obtain in real timeArtificial broadcasting command 2, the service broadcast order 3 of getting, according to type carry out priority queueing and timeBetween successively carry out priority queueing and determine that its Queue sequence is: artificial broadcasting command 2, service broadcastOrder 1, service broadcast order 3.
Play according to priority queueing, service broadcast order effectual time is to have in three minutesEffect, every broadcasting command playing duration is two minutes.
Therefore broadcast subregion 1 and stop service broadcast order 1, carry out artificial broadcasting command 2, businessBroadcasting command 1, carries out service broadcast order 3.
Because need to play when broadcast subregion 1 and 2 has identical broadcasts order simultaneously, therefore excellentWhen first level sequence is identical, carry out play command, in the time that broadcast subregion has not identical broadcasts order, pressAccording to prioritization, play the high broadcasting command of priority, another broadcast subregion is in waiting for shapeState. Broadcast subregion 1 stops service broadcast order 1, carries out artificial broadcasting command 2, service broadcastOrder 1, carries out service broadcast order and within 3,4 o'clock, passes through to lose efficacy, and play-overs special topic broadcast lifeMake 5.
Because in broadcast subregion 2, service broadcast order 4 was lost efficacy, so industry in broadcast subregion 3Business broadcasting command 4 also lost efficacy, and 3 remaining thematic broadcasting commands 5 of broadcast subregion, do not exist broadcastCollision, directly carries out thematic broadcasting command 5.
Therefore, the beneficial effect of the embodiment of the present invention is:
1, in the embodiment of the present invention, carry out method design for broadcasting command collision problem, obtainAfter original broadcast order, according to broadcasting command collision situation, to original broadcast, order is broadcastedCommand prioritization is queued up; By priority queueing order, determine the execution foundation of broadcasting command,Carry out the hit-treatment of broadcasting command according to embodiment of the present invention method, the broadcast of effectively avoidingThe collision of order. Compared with broadcasting command being play-overed with prior art, there is broadcast lifeThe basis for estimation of the priority that order is carried out, has avoided broadcasting command to carry out collision.
2, according to priority by senior to rudimentary broadcasting command queuing strategy and the same priority of carrying outArrange according to time order and function, when having improved the actual play value of broadcasting command broadcasting, carryThe timely row of high broadcast playback, has comprehensively improved the service quality of broadcast service system.
3, before carrying out broadcasting command, carry out effectual time judgement, thereby reduced in a large number losingThe execution of efficient broadcast order, has improved broadcast playback quality and has reduced unnecessary broadcast playbackContent.
It should be noted that two tools that collide for the broadcasting command of network digital broadcast hereinThe processing method of style is analyzed as specific embodiment, in this article, term " comprises "," comprise " or its any other variant is intended to contain comprising of nonexcludability, thereby make to compriseProcess, the method for a series of key elements not only comprise those key elements, but also do not comprise clearly rowOther key elements that go out, or be also included as this process, method and intrinsic key element. ?In the absence of more restrictions, the key element being limited by statement " at least one ... ", does not arrangeExcept also having other identical element in the process of described key element, method comprising.
Each embodiment in this description all adopts relevant mode to describe, each embodiment itBetween identical similar part mutually referring to, what each embodiment stressed is and otherThe difference of embodiment.
The foregoing is only preferred embodiment of the present invention, be not intended to limit of the present inventionProtection domain. All any amendments of doing within the spirit and principles in the present invention, be equal to replacement,Improve etc., be all included in protection scope of the present invention.
Embodiments of the invention provide for example with for the purpose of describing, and are not nothing leftThat leak or limit the invention to disclosed form. Many modifications and variations are for this areaThose of ordinary skill is apparent. Selecting and describing embodiment is for better explanationPrinciple of the present invention and practical application, and those of ordinary skill in the art can understand thisThereby bright design is suitable for the various embodiment with various amendments of special-purpose.