CN102681905A - Method and system for intercommunication between tasks - Google Patents

Method and system for intercommunication between tasks Download PDF

Info

Publication number
CN102681905A
CN102681905A CN2011100566379A CN201110056637A CN102681905A CN 102681905 A CN102681905 A CN 102681905A CN 2011100566379 A CN2011100566379 A CN 2011100566379A CN 201110056637 A CN201110056637 A CN 201110056637A CN 102681905 A CN102681905 A CN 102681905A
Authority
CN
China
Prior art keywords
task
telecommand
goal
manager
name
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.)
Pending
Application number
CN2011100566379A
Other languages
Chinese (zh)
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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2011100566379A priority Critical patent/CN102681905A/en
Publication of CN102681905A publication Critical patent/CN102681905A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method and a system for intercommunication between tasks. A source task transmits remote control commands to a remote control command receiver via a transmitting module, the remote control commands comprises target task names and task executing manners which include initiating, stopping and triggering. The remote control command receiver transmits the remote control commands to a task manager in a pushing manner. The task manager transmits the remote control commands to a target task according to the target task names in the remote control commands, the target task receives the remote control commands via a receiving module, executes the remote control commands according to the task executing manners, and returns the executing results to the source task. By the aid of the method for intercommunication between the tasks, the intercommunication between the tasks is realized according to the remote control commands.

Description

The mutual means of communication and system between a kind of task
Technical field
The present invention relates to the mutual means of communication and system between a kind of task, be applicable to that there is the occasion of automatic broadcast information demand in TV station, airport, stock exchange etc.
Background technology
The demand of broadcasting for image-text information is very big, and demand is multifarious, is directed to each individual event demand, all need programme to write code and realize concrete function, and workload is big, and program is difficult for revising, not easy care.
At present the method for control task has only beginning and stops, and task is merely able to Be Controlled, can not control each other between the task.This mode is being broadcasted in the information process automatically, and some demand can't satisfy.For example, accurately control the synchronous operation of two tasks.If let communication each other between the task, just can realize two functions such as tasks synchronization operation very flexibly.
Summary of the invention
To the defective that exists in the prior art, technical matters to be solved by this invention provides the mutual means of communication and the system between a kind of task, and these method and system can make between the task and communicate with one another, thus the mutual control between can the realization task.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is following:
The mutual means of communication between a kind of task may further comprise the steps:
(1) originating task sends to the conmmand reciver of remote-control through sending module with telecommand, and said telecommand comprises goal task name and task executive mode, and said task executive mode comprises beginning, stops and triggering;
(2) conmmand reciver of remote-control is pushed to task manager with telecommand;
(3) task manager sends to goal task according to the said telecommand of goal task star in the telecommand; Goal task receives telecommand through receiver module; Carry out telecommand according to the task executive mode in the telecommand, and execution result is returned to originating task.
The mutual means of communication between the aforesaid task, the middle conmmand reciver of remote-control of step (2) is pushed to telecommand before the task manager, judges whether comprise task name in the telecommand earlier, as not, then returns the illegal mistake of telecommand.
The mutual means of communication between the aforesaid task wherein, are provided with task list in task manager, the task name of said all tasks of task list storage.
After task manager received telecommand in the mutual means of communication between the aforesaid task, step (3), first query task tabulation confirmed according to the goal task name in the telecommand whether goal task exists; As do not exist, then directly return and do not find the target instruction target word mistake.
Mutual communication system between a kind of task comprises the conmmand reciver of remote-control that is used for telecommand that the reception task sends and the telecommand that receives is pushed to task manager;
Be used for sending to the task manager of goal task according to the said telecommand of goal task star of telecommand;
Include the sending module and the receiver module that is used to receive telecommand that are used to send telecommand in each task.
Mutual communication system between the aforesaid task, wherein, the conmmand reciver of remote-control also comprises and is used for judging whether telecommand comprises the judge module of task name; As do not comprise task name, then return the illegal mistake of telecommand.
Mutual communication system between the aforesaid task, wherein, said task manager comprises that also being used for query task tabulates, and confirms the enquiry module whether goal task exists according to the goal task name in the telecommand; As do not exist, then directly return and do not find the target instruction target word mistake.
The method of the invention and system; Realized the mutual communication between the task through telecommand; Make the ability that has had mutual control between the task; Changed task and had only Be Controlled or can only send condition of information, realized more easily needing functions such as a plurality of tasks cooperatively interact, improved the dirigibility that configurable task is carried out greatly to the main control module.
Description of drawings
Fig. 1 is the structured flowchart of the mutual communication system between the task in the embodiment;
Fig. 2 is the process flow diagram of the mutual means of communication between the task in the embodiment;
Fig. 3 is an on-screen display (osd) area synoptic diagram in the embodiment;
Fig. 4 is a drama task synoptic diagram in the instance 1;
Fig. 5 is a drama task synoptic diagram in the instance 2.
Embodiment
Describe the present invention below in conjunction with embodiment and accompanying drawing.
As shown in Figure 1, the mutual communication system in this embodiment between the task comprises the conmmand reciver of remote-control 11 and task manager 12.The conmmand reciver of remote-control 11 comprises judge module 111, and task manager 12 comprises enquiry module 121.Comprise sending module 13 and receiver module 14 in each task.
The conmmand reciver of remote-control 11 is used for the telecommand of reception task transmission and the telecommand that receives is pushed to task manager 12.Judge module 111 is used for judging whether telecommand comprises task name, as not comprising task name, then returns the illegal mistake of telecommand.Task manager 12 is used for sending to goal task according to the said telecommand of goal task star of telecommand.Enquiry module 121 is used for the query task tabulation, confirms according to the goal task name in the telecommand whether goal task exists; If do not exist, then directly return and do not find the target instruction target word mistake.Sending module 13 is used to send telecommand.Receiver module 14 is used to receive telecommand.
As shown in Figure 2, adopt the mutual means of communication between the system shown in Figure 1 realization task may further comprise the steps:
(1) originating task sends to the conmmand reciver of remote-control 11 through sending module 13 with telecommand.
Said telecommand is a packets of information, comprises goal task name and task executive mode.Said task executive mode is the operation that need carry out goal task, comprises beginning, stops and triggering, and can be an enumerated variable, and 3 values are arranged, and each is worth corresponding a kind of operation.
(2) conmmand reciver of remote-control 11 is pushed to task manager 12 with telecommand.
Preferably; Before the conmmand reciver of remote-control 11 is pushed to task manager 12 with telecommand, judge by judge module 111 whether telecommand is legal earlier, promptly whether comprise task name in the telecommand; If do not comprise task name, then return the illegal mistake of telecommand.
(3) task manager 12 sends to goal task according to the said telecommand of goal task star in the telecommand; Goal task receives telecommand through receiver module 14; Carry out telecommand according to the task executive mode in the telecommand, and execution result is returned to originating task.
Preferably, in task manager 12, task list is set, the task name of said all tasks of task list storage.After task manager 12 receives telecommand, by the tabulation of enquiry module 121 query tasks, confirm according to the goal task name in the telecommand whether goal task exists earlier; As do not exist, then directly return and do not find the target instruction target word mistake.
The concrete application of said method is described through instantiation below.
Instance 1
As shown in Figure 3, on a screen, broadcast multiple different information simultaneously.In zone one, turn over the K line chart that screen broadcasts every the stock in stock markets of Shanghai, in zone two, turn over the K line chart that screen broadcasts every the stock in Shenzhen stock market.Content is turned over screen simultaneously in the requirement zone one and regional two.For realizing the demand, need following 3 tasks:
Task 1 (stock markets of Shanghai): be responsible for the broadcast of all stock markets of Shanghai stock K line charts, be set to not turn over automatically screen;
Task 2 (Shenzhen stock market): be responsible for the broadcast of all Shenzhen stock market stock K line charts, be set to not turn over automatically screen;
Task 3 (drama): be responsible for preceding two tasks of control and when start broadcasting, when break, when turn over screen.
Be provided with as follows for task 1 and task 2: when receiving <beginning>instruction, begin to broadcast the K line chart of first stock; When receiving < triggering>instruction, broadcast the K line chart of next stock; When receiving < stopping>instruction, stop to broadcast, and empty this zone of screen.
Carry out setting as shown in Figure 4 for task 3.When receiving <beginning>instruction, from sequence number 1 beginning, order is carried out the instruction in the tabulation downwards.When receiving < stopping>instruction, leap to label < Exit>order and carry out the instruction in the tabulation downwards.
As shown in Figure 4, drama is receiving <beginning>when instruction, all instructs beginning to two tasks earlier.At this moment, stock markets of Shanghai, Shenzhen stock market stock K line chart all appear on the screen.Afterwards, carry out sequence number 4, wait for 2000 milliseconds, promptly stock information stops 2 second time on screen.After 2 seconds, carry out sequence number 5,6, two tasks are sent < triggering>instruction.At this moment, stock markets of Shanghai, Shenzhen stock market stock have one and turn over the screen effect, carry out the transition to next stock.Afterwards, carry out sequence number 7, jump to sequence number 3, continue down to carry out.So just infinite loop go down, stock information also shields with regard to one, automatically broadcasts.Drama directly jumps to sequence number 8 when receiving < stopping>instruction, down carry out sequence number 9,10, and two tasks are stopped, and has also just stopped whole broadcast.
In the drama task, the operation task in the script is exactly to send < telecommand>to other tasks.In this instance, send out the mode of < triggering command>simultaneously to two broadcast tasks through utilizing the drama task, that has realized two tasks turns over screen synchronously.
Instance 2
In the zone five of screen shown in Figure 3, broadcast stock markets of Shanghai, Shenzhen stock market stock price.Require to turn over earlier screen and broadcast all stock markets of Shanghai stock price, broadcast all Shenzhen stock market stock prices afterwards one time, broadcast all stock markets of Shanghai stock prices afterwards again one time, so move in circles.
For realizing the demand, need following 3 tasks:
Task 1 (stock markets of Shanghai), task 2 (Shenzhen stock market): be set to turn over screen automatically in 2000 seconds, and be provided with broadcast 1 time all data after, stop automatically, and send < triggering>instruction to the drama task.Being provided with of task 3 (drama) is as shown in Figure 5.
The workflow of drama is following:
Beginning < left side is red down>suspends afterwards and carries out up to being triggered;
< left side is red down>stops because of being provided with automatically, after having broadcasted one time, stops automatically, and sent < triggering>instruction to drama;
Drama is carried out sequence number 4 after receiving < triggering>instruction, and beginning < left side is purple down>suspends afterwards and carries out up to being triggered;
< left side is purple down>stops because of being provided with automatically, after having broadcasted one time, stops automatically, and sent < triggering>instruction to drama;
Drama is carried out sequence number 6 after receiving < triggering>instruction, jumps to Start, has so promptly formed a circulation, broadcasts always.
This instance is to send the interspersed broadcast that < telecommand>realizes a plurality of tasks through task < left side is red down>and task < left side is purple down>to drama.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technology thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1. the mutual means of communication between the task is characterized in that, may further comprise the steps:
(1) originating task sends to the conmmand reciver of remote-control through sending module with telecommand, and said telecommand comprises goal task name and task executive mode, and said task executive mode comprises beginning, stops and triggering;
(2) conmmand reciver of remote-control is pushed to task manager with telecommand;
(3) task manager sends to goal task according to the said telecommand of goal task star in the telecommand; Goal task receives telecommand through receiver module; Carry out telecommand according to the task executive mode in the telecommand, and execution result is returned to originating task.
2. the mutual means of communication between the task as claimed in claim 1; It is characterized in that: the middle conmmand reciver of remote-control of step (2) is pushed to telecommand before the task manager; Earlier judge whether comprise task name in the telecommand,, then return the illegal mistake of telecommand as not.
3. the mutual means of communication between the task as claimed in claim 1 is characterized in that: task list is set, the task name of said all tasks of task list storage in task manager.
4. the mutual means of communication between the task as claimed in claim 3 is characterized in that: after task manager received telecommand in the step (3), first query task tabulation confirmed according to the goal task name in the telecommand whether goal task exists; As do not exist, then directly return and do not find the target instruction target word mistake.
5. the mutual communication system between the task is characterized in that: comprise the conmmand reciver of remote-control (11) that is used for telecommand that the reception task sends and the telecommand that receives is pushed to task manager;
Be used for sending to the task manager (12) of goal task according to the said telecommand of goal task star of telecommand;
Include sending module (13) that is used to send telecommand and the receiver module (14) that is used to receive telecommand in each task.
6. the mutual communication system between the task as claimed in claim 5 is characterized in that: the said conmmand reciver of remote-control (11) also comprises and is used for judging whether telecommand comprises the judge module of task name (111); As do not comprise task name, then return the illegal mistake of telecommand.
7. like the mutual communication system between claim 5 or the 6 described tasks; It is characterized in that: said task manager (12) comprises that also being used for query task tabulates, and confirms the enquiry module (121) whether goal task exists according to the goal task name in the telecommand; As do not exist, then directly return and do not find the target instruction target word mistake.
CN2011100566379A 2011-03-09 2011-03-09 Method and system for intercommunication between tasks Pending CN102681905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100566379A CN102681905A (en) 2011-03-09 2011-03-09 Method and system for intercommunication between tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100566379A CN102681905A (en) 2011-03-09 2011-03-09 Method and system for intercommunication between tasks

Publications (1)

Publication Number Publication Date
CN102681905A true CN102681905A (en) 2012-09-19

Family

ID=46813873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100566379A Pending CN102681905A (en) 2011-03-09 2011-03-09 Method and system for intercommunication between tasks

Country Status (1)

Country Link
CN (1) CN102681905A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119999A (en) * 2015-09-07 2015-12-02 广东欧珀移动通信有限公司 Methods and system for running same application program synchronously, master mobile terminal and slave mobile terminal
CN114648869A (en) * 2022-03-10 2022-06-21 东方电子股份有限公司 Remote control instruction operation method for electric power protection measurement and control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5926635A (en) * 1997-02-05 1999-07-20 Hewlett Packard Company Method for reducing complexities when communicating between tasks
CN1816800A (en) * 2003-05-07 2006-08-09 索尼株式会社 Program processing system, program processing method, and computer program
CN101141417A (en) * 2007-10-24 2008-03-12 中兴通讯股份有限公司 Inter-task message communicating method in equipment
CN101482814A (en) * 2008-01-08 2009-07-15 黄伟 Instruction display, input and storage method used for embedded system
CN101976208A (en) * 2010-10-25 2011-02-16 中兴通讯股份有限公司 Method and device for delivering information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5926635A (en) * 1997-02-05 1999-07-20 Hewlett Packard Company Method for reducing complexities when communicating between tasks
CN1816800A (en) * 2003-05-07 2006-08-09 索尼株式会社 Program processing system, program processing method, and computer program
CN101141417A (en) * 2007-10-24 2008-03-12 中兴通讯股份有限公司 Inter-task message communicating method in equipment
CN101482814A (en) * 2008-01-08 2009-07-15 黄伟 Instruction display, input and storage method used for embedded system
CN101976208A (en) * 2010-10-25 2011-02-16 中兴通讯股份有限公司 Method and device for delivering information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119999A (en) * 2015-09-07 2015-12-02 广东欧珀移动通信有限公司 Methods and system for running same application program synchronously, master mobile terminal and slave mobile terminal
CN114648869A (en) * 2022-03-10 2022-06-21 东方电子股份有限公司 Remote control instruction operation method for electric power protection measurement and control device
CN114648869B (en) * 2022-03-10 2023-03-14 东方电子股份有限公司 Remote control instruction operation method for power protection measurement and control device

Similar Documents

Publication Publication Date Title
US20200174466A1 (en) Drone communication system and communication system of drone server
CN101827250B (en) Implementation method and system of interactive business of mobile terminal television
EP2563039B1 (en) Device control system
US20080229364A1 (en) System and Method for the Construction of Electronic Program Guide Through Cooperative Transmission of Electronic Program Guide Data
CN102694797A (en) Information play control system applied to traffic platform screen door
US20160286270A1 (en) Kind of interactive sharing platform integrating tv broadcasting and mobile communication
CN102681905A (en) Method and system for intercommunication between tasks
CN102256050A (en) Intelligent studio view broadcast control system and method
CN104580834A (en) Cloud broadcast system, blending broadcast system and cloud broadcast method
CN102497499B (en) Method, device and system for broadcast television broadcasting control of primary and secondary program series-connection lists
CN103873739A (en) Multi-equipment cooperative control method and equipment
KR102000109B1 (en) Method for providing interactive services
CN103491453B (en) A kind of cloud broadcast system and method
CN102457775A (en) Wired digital television system and method for data interaction through wireless terminal
CN104168406A (en) Studio linkage broadcasting controlling system and method
US8558954B2 (en) Video display device, video display system, and video display method
CN104992290A (en) Concrete enterprise intelligent duty scheduling management system and management method
CN102332948A (en) Method and system for controlling main micro/nano satellite communication
CN101924865B (en) Method for quickly obtaining data of set top box
CN102395046A (en) Broadcast television broadcasting control method with main and replacing program series lists, and apparatus thereof and system thereof
KR102242624B1 (en) Method for setting a preferred channel and set top box thereof
CN202084283U (en) Studio display system
CN102707936A (en) Application method of trigger instruction to information broadcasting task
CN204498133U (en) Based on the emergency broadcase system of Multipath Transmission
CN103428557A (en) Control method of set top box, set top box and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20120919

RJ01 Rejection of invention patent application after publication