CN103455328A - Media playing controller, media player and media playing method based on multiple hierarchical state machines - Google Patents

Media playing controller, media player and media playing method based on multiple hierarchical state machines Download PDF

Info

Publication number
CN103455328A
CN103455328A CN2013103580235A CN201310358023A CN103455328A CN 103455328 A CN103455328 A CN 103455328A CN 2013103580235 A CN2013103580235 A CN 2013103580235A CN 201310358023 A CN201310358023 A CN 201310358023A CN 103455328 A CN103455328 A CN 103455328A
Authority
CN
China
Prior art keywords
player
controller
message
state machine
media
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.)
Granted
Application number
CN2013103580235A
Other languages
Chinese (zh)
Other versions
CN103455328B (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.)
Intersystems Software (xi'an) Co Ltd
Original Assignee
Intersystems Software (xi'an) 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 Intersystems Software (xi'an) Co Ltd filed Critical Intersystems Software (xi'an) Co Ltd
Priority to CN201310358023.5A priority Critical patent/CN103455328B/en
Publication of CN103455328A publication Critical patent/CN103455328A/en
Application granted granted Critical
Publication of CN103455328B publication Critical patent/CN103455328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a media playing controller, a media player and a media playing method based on multiple hierarchical state machines. The media playing controller mainly comprises a panel controller agent module, a video player agent module and/or an audio player agent module, a secondary controller agent module and a processing module, wherein the panel controller agent module, the video player agent module and/or the audio player agent module and the secondary controller agent module are all hierarchical state machines, each hierarchical state machine corresponds to a corresponding abstract control device and is used for maintaining and managing all stages of a control device corresponding to the corresponding abstract control device, messages and data are received through the processing module, and internal states and actions of the hierarchical state machines are driven through events; the processing module is used for receiving and processing the messages and the data, and a master controller sends the messages to all the managed hierarchical state machines through the processing module, so that the management and control on sub-device agent state machines are realized. According to the media playing controller, the media player and the media playing method, the defects that a large number of codes are consumed, more storage space is occupied and the extension is difficult can be overcome, and the system resource utilization ratio of the media playing controller and the media player are increased.

Description

Controlling media play device, player and player method based on multi-level state machine
Technical field
The present invention relates to the interactive system based on the software state machine theory, relate in particular to controlling media play device, player and player method thereof based on multi-level state machine.
Background technology
Since David Hare proposes the state machine theory in order to after describing complicated interactive system, the state machine theory is just accepted soon widely very much, and is introduced in many software systems.According to the state machine theory, most important state machine mainly is divided into two kinds of finite state machine (FSM, Finite-State Machine) and level state machines (HSM).Wherein:
Finite state machine (FSM) system, refer to the system that can present different running statuses in different phase, and these states are limited, nonoverlapping.Such system state in its all states that at a time is bound to, now its receives the input that a part allows, and produces the response that a part is possible, and moves to the state that a part is possible.Finite state machine is widely used in modelling application behavior, ware circuit design, soft project, the research of compiler, procotol and calculating and language.Wherein, in digital circuit, FSM can also realize with programmable logic device, programmable logic controller (PLC), logic gate and trigger or relay.
And level state machine (HSM) belongs to a kind of of FSM, but use level state machine (HSM) can effectively reduce the quantity of state, making between state has the succession effect, can provide good support to the otherness programming.Therefore can be widely used in some embedded systems or in the equipment of scarcity of resources.In addition, use level state machine (HSM) management equipment, can also utilize efficiently the logic realization logical multiplexing of having developed, be with good expansibility.When increasing an equipment, only need running status and the handoff relation between them of this equipment of design and design corresponding state machine, process the physical device communications message under this state in state, increase this agent equipment and can realize the management to this equipment by message mechanism in the state machine manager.This unified model is convenient to increase new equipment, is system is had good extensibility.
State machine approach has specific requirement to event handling handle and method, that be exactly they must be RTC(Run To Complete) the processing function of type, if not, can cause state to block, system just can not follow-up message and the state handoff request of respective handling, so state machine approach, the higher requirement to being designed with of the message processing function in state.
Visible, use finite state machine (FSM) management equipment, the difficulty that can make that number of states in state machine is restive, the state switching becomes, adopt the method for level state machine (HSM) can effectively reduce number of states, the switching of state is become and be easy to process, and take system resource still less, therefore be applicable to very much being applied in the such embedded device of media controller, media player.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of controlling media play device, player and player method thereof based on multi-level state machine, need expend a large amount of codes and take more storage space and be difficult for the defect of expanding when working to solve existing level state machine, make controlling media play device and player in the situation that system resource takies less, still can control a plurality of media resources and play in a plurality of zones, and improve the utilization factor of system resource.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of controlling media play device based on multi-level state machine, mainly comprise that panel controller proxy module, video player proxy module are or/and audio player proxy module, inferior controller proxy module and processing module; Wherein:
Described panel controller proxy module, video player proxy module are or/and audio player proxy module and inferior controller proxy module are a level state machine, the corresponding a kind of corresponding abstract opertaing device of described each level state machine, be used for maintenance and management all states of corresponding opertaing device with it, by described processing module receipt message and data, and by event-driven described level state machine internal state and action;
Described processing module, for reception and processing messages and data, and for master controller by send message to all level state machines that are managed to realize management and the control of antithetical phrase proxy for equipment state machine.
Wherein, described panel controller proxy module, comprise broadcast source chooser module, played file chooser module, volume control submodule and Play Control submodule, the steering order of sending for the treatment of control panel and control message.
Described processing module, comprise message sink submodule, call treatment submodule and addressing and process submodule, for receiving control message and steering order, and sends result by messaging bus after processing accordingly.
Described event is that the mode with message defines, and mainly comprises following two parts: the parameter of event flag ID, event and message content.
A kind of media player that comprises the described controlling media play device based on multi-level state machine of claim 1, also comprise that panel controller, inferior controller, video player are or/and audio player and messaging bus; Wherein:
Described controlling media play device, for the operation managing and coordinate each equipment room with communicate by letter;
Described panel controller, be mainly used in displaying video and audio media files;
Described video player and audio player, video player proxy module and audio player proxy module in the corresponding controlling media play device of difference, for instruction selection and playing video file and the audio file according to sending by the panel controller proxy module; And
Described controlling media play device with time controller by messaging bus pass-along message, realize the interconnected of equipment room and communicate by letter.
Wherein, described messaging bus adopts the RNET Data Transport Protocol.Described controlling media play device can articulate a plurality of opertaing devices and playback equipment.
A kind of media playing method of the controlling media play device based on multi-level state machine, is characterized in that, comprising:
A, media player is powered on, generating the master controller state supervisor in Play System is the controlling media play device;
B, described controlling media play device find control panel and audio player and are connected into described Play System according to the link situation of Play System, generate corresponding controller panel proxy module and video or/and the audio player proxy module, to realize the management to this equipment;
C, the described equipment of described controlling media play device initialization, and make it enter separately running status;
D, by panel controller, at run mode, enumerate system resource, it is presented on panel, and show the resource that current system articulates on panel, comprise and show described media player;
E, on described panel controller, select media player as broadcast source, panel controller is by sending message to the controlling media play device, and the controlling media play device passes to the media player proxy module according to the ID in message by message;
F, described panel controller, by sending message to described media player, obtain all playlists; Described playlist is presented on control panel, for the user, selects to play media file;
G, the audio frequency select to intend play on panel controller, or/and video media file is play, and are transmitted to media player by corresponding message and data by the controlling media play device;
H, audio or video playing controller proxy module are followed the tracks of all states of corresponding player, comprise the size state of broadcast state, sound;
I, described panel controller timed sending message give described controlling media play device to obtain up-to-date broadcast state and progress.
Wherein, the described equipment of step B is by corresponding ID unique identification.
Controlling media play device, player and player method thereof based on multi-level state machine provided by the present invention, manage and control a plurality of media controller and media player by utilizing multi-level state machine, make the management of equipment that theoretical foundation arranged, controller has had good extensibility, succession between state and multiplexing higher level's state logic and message processing function, make otherness be programmed in system development and the larger effect of expansion performance.Simultaneously, also have the following advantages:
1) the unified implementation model provided for equipment, utilize the equipment that the level state machine is abstract and the agency is concrete and then realized the management to entity device.
2) can form large media play system by the cascade between the controlling media play device.
3) application level state machine in the controlling media play device, can support the switching of broadcast source and the switching of playback equipment easily.
4) area identification comprised in message (ZoneID), the grouping of support equipment easily, such as the control of broadcast source broadcasting music different in multizone, many rooms.
5) the systematic unity broadcast source is provided support, such as playback equipments all under call state automatically switches to the broadcast source of system appointment.
The accompanying drawing explanation
Fig. 1 the present invention is based on the controlling media play device of multi-level state machine and the system architecture schematic diagram of player;
The media play process schematic diagram that Fig. 2 is system;
The schematic diagram that Fig. 3 is level state machine shown in Fig. 1;
The data structure that Fig. 4 is the level state machine corresponding with Fig. 3 and the hierarchical relationship figure of state;
The state that the master controller that Fig. 5 is system of the present invention comprises and state transition event schematic diagram thereof;
Fig. 6 is master controller state and handoff procedure schematic diagram;
Fig. 7 is the hierarchical relationship schematic diagram between the master controller state.
Embodiment
Below in conjunction with accompanying drawing and embodiments of the invention, controlling media play device of the present invention, player and player method are described in further detail.
Core concept of the present invention is: utilize multi-level state machine to realize the management to playback equipment and playback control device, utilize operation between state machine manager administration Mediation Device and communicate by letter.The management of controller to subset, by the level state machine controller, complete, each subset is assigned with a unique identification (device id), and be abstracted into an agent equipment in master controller or inferior controller, the management of each agency's equipment completes by the level state machine, the agency of certain equipment will join in level state machine manager, and all agent equipments in manager administration after generating.Each agency's equipment is inherited from identical level state machine, therefore to the processing of message with the transfer of state is controlled is to adopt unified implementation model.
Fig. 1 the present invention is based on the controlling media play device of multi-level state machine and the system architecture schematic diagram of player.
The present invention adopts level state machine manager administration many levels state machines (HSM), and described each level state machine (HSM) is abstract to a kind of opertaing device, for all states of certain corresponding opertaing device of maintenance and management.And the state of level state machine inside presents stratification, can effectively reduce the quantity of state, thereby can make equipment control become simple and clear, program code also has good maintainability.
Here, the internal state of described level state machine and action are by event driven, can reduce the coupling between state and state like this.Described event is (the referring to aftermentioned) that the mode with message defines.Level state machine manager can be by sending broadcast to all state machines be managed, thereby realize management and control to subset.
The proxy module of each equipment shown in Fig. 1 (as panel controller proxy module 11, video player proxy module 12 etc.) is an abstract opertaing device of corresponding physical equipment, and this abstract opertaing device is also realized by the level state machine.Master controller level state machine manager (being " controlling media play device " in the present embodiment), for realizing management and the control of antithetical phrase proxy for equipment state machine, by being sent to message, described master controller level state machine manager realizes management and the control to its auxiliary device, itself also is abstracted into the level state machine each equipment, use theory and the method for level state machine, realized management and control to whole equipment collection.As, panel controller 3 can be by after messaging bus 2 and master controller link and powering on, system can generate the abstract agent (being panel controller proxy module 11) of corresponding this panel controller in master controller, the instruction of sending for the treatment of this control panel and message, master controller level state machine manager 1(is by processing module 15) according to the kind of described instruction and message, process accordingly.
Controlling media play device 1, come coordination between management of media player and controller and the switching between state thereof by multi-level state machine.Controller is divided into primary controller (main control equipment corresponding with described controlling media play device) and time controller 5, and master controller is " nerve center " of coordinating time controller 5, and each controlling media play device can articulate a plurality of opertaing devices and playback equipment.
Here, controlling media play device 1, mainly utilize multi-level state machine to realize the management to playback control device and playback equipment, by the operation that utilizes the state machine manager administration and coordinate each equipment room with communicate by letter; And by messaging bus realize between equipment interconnected with communicate by letter.Described controlling media play device (master controller level state machine manager) 1 control message sent and steering order are by the RNET bus transfer.The RNET Data Transport Protocol is the basis of various parts intercommunication of the present invention.
Here, described RNET Data Transport Protocol, for the specific message format of communicating by letter between system equipment, be equipment the most basic extendible supporting assembly, and the formal definition of RNET protocol package is as shown in table 1:
Table 1:
Figure 861767DEST_PATH_IMAGE001
1, one message of reference table can be divided into protocol header, message body and agreement tail.Wherein:
Message header has defined promoter's source device ID, the receiving end target device ID of message of message transmission and the type of message.Each equipment in system can have corresponding ID to identify this equipment.As, target device ID is if 0x7F means all face equipments, if 0x7E means all controllers, if 0x7D means all equipment.The definition of these specific installations ID is mainly used in broadcast.
The type definition of message is as shown in table 2:
Table 2:
Below to the present invention, utilize messaging bus to realize that the interconnected of equipment room describes with the process of communicating by letter.
As shown in Figure 1, the message queue of definition is arranged in described level state machine manager, when the equipment of being acted on behalf of has message to produce, described message just starts to queue up, and to enter this message queue medium pending.As previously mentioned, the substance of message comprises parameter (as d1, d2, sData) of the source of message and target (device id), message etc., and the occurrence of d1 and d2 is relevant with the type of message, for example, played songs message, can comprise the information such as song title in sData.Its basic Message Processing flow process is as follows:
Step 11: equipment produces message and issues described message by messaging bus;
Step 12: the message queue of described message being put into to level state machine manager is medium pending;
Step 13: by message distributor, by described message distribution, give corresponding proxy for equipment module;
Step 14: utilize the message processing facility of proxy for equipment module (being corresponding level state machine) to process described message;
Step 15: if state transition message is by level state machine transition state, if common message is processed by corresponding state processing function;
Step 16: according to the different Message Processing result of step 15 correspondence, the described Message Processing state of mark.
Like this, above-mentioned master controller (the main control equipment corresponding with described controlling media play device, accordingly, can corresponding master controller level state machine manager) and time controller 5 by messaging bus 2, undertaken interconnected, can realize a larger cascade effect with the device id comprised in message (corresponding distinct device), form the cascade media play system, can break through the number restriction that each controller connects media player.
As shown in Figure 1, media player system based on multi-level state machine in specific embodiments of the invention, mainly comprise controlling media play device (master controller level state machine manager) 1, messaging bus 2, panel controller 3, video player 4, inferior controller 5 and audio player 6.Wherein:
Described video player 4, or/and audio player 6 is combined with inferior controller 5, messaging bus 2 and controlling media play device 1 respectively, just can form the media player of a complete function.As, the controlling media play device 1 of described media player is with together with time controller 5 is interconnected at by messaging bus 2 pass-along messages, but just can form the media play system of a larger cascade, can break through the restricted number that each controller connects media player.
Here, described controlling media play device 1, mainly comprise that panel controller proxy module 11, video player proxy module 12 are or/and audio player proxy module 14, inferior controller proxy module 13 and processing module 15.
Described panel controller proxy module 11, mainly comprise that broadcast source chooser module 111, played file chooser module 112, volume control submodule 113 and Play Control submodule 114, for the treatment of the steering order of sending by panel controller 3 and control message.
Described processing module 15, mainly comprise message sink submodule 151, call treatment submodule 152 and addressing processing submodule 153.Here, described message sink submodule 151, for receiving control message and steering order; Described call treatment submodule 152, for being processed request instruction; 153 address assignment and addressing functions for realizing corresponding instruction and data of submodule are processed in described addressing.
The agency of described panel controller 3 corresponding its generations is panel controller proxy module 11, is mainly used in the multimedia files such as displaying video and audio frequency.
Described video player 4 and audio player 5, the corresponding video player proxy module 12 of difference and audio player proxy module 14, for instruction selection and playing video file and the audio file according to sending from panel controller proxy module 11.
Fig. 2 utilizes controlling media play device of the present invention to carry out the process flow diagram flow chart of media play.With reference to figure 1, suppose that controlling media play device 1 is connected with audio player 6/ video player 4 with panel controller 3, forms a simple audio/video playback system.Described controlling media play device 1 can with the broadcasting that walks abreast of a plurality of audio players and a plurality of video player.The audio/video playback process of below take describes as example, and this media play process comprises:
Step 201: media play system powers on, and it is the controlling media play device that master controller generates the master controller state supervisor in described system.
Step 202: master controller finds control panel and audio/video player to be connected into described Play System according to the link situation of system, and generate corresponding controller panel proxy module audio/video player proxy module, thereby realize the management to these 2 equipment of correspondence.
Here, in media play system, these two equipment all can have corresponding ID to carry out unique identification.
Step 203: master controller passes through these two equipment of proxy module initialization corresponding to these two equipment, and enters separately running status.
Step 204: panel controller can be enumerated system resource at run mode, is presented on panel, shows the resource that current system articulates on panel, comprises and shows described media player.
Step 205: on panel controller, select media player as broadcast source, panel controller is by sending message to master controller, and master controller can transmit the information to according to the ID in message the media player proxy module.
Step 206: panel controller, by sending message to media player, obtains all playlists; Described playlist may be displayed on control panel, for the user, selects to play media file.
Step 207: the user can select the audio/video media file that will play to play on panel controller, and these message and data are all to be transmitted to described media player by master controller.
Step 208: utilize the controller proxy module to follow the tracks of all states of player, as the size state of broadcast state, sound etc.
Step 209: panel controller timed sending message to master controller to obtain up-to-date broadcast state and progress.
The schematic diagram that Fig. 3 is level state machine shown in Fig. 1, the data structure that Fig. 4 is the level state machine corresponding with Fig. 3 and the hierarchical relationship figure of state.
State in level state machine of the present invention is the elementary cell of level state machine management, and the state defined in program includes the name Name_ of state, points to the pointer Super_ of higher level's state and the Message Processing handle Hndlr_ of this state.The Message Processing handle is passed to the message that this stateful example is concerned about in order to process this state to it in the structural regime example.
The Super_ pointer defined in state machine is the key point that the level state machine forms level state father and son state relation, and these hierarchical relationships are to generate in the state machine definition.Each proxy for equipment is an independently state machine in system, and they can be according to the characteristic of physical equipment, thereby realizes that own different conditions and state transition realize the management to equipment.
As shown in Figure 3, state s2 is higher level's state of state s21 and state s22, and state s1 and s2 are subordinate's states of higher level's state (Top), can see between doing well and present a kind of level state, if can understand like this system in the s22 state, system is also simultaneously in s2 and Top state so, and namely s2 is higher level's state of s22 and the Top state is higher level's state of s2.
Switching between state is event driven, such as the e1 event is that system has been switched to s21 by state s1, and e4 is state, by s21, has been switched to s22.
As shown in Figure 4, the data structure of five kinds of states in Fig. 3 has formed an one-way tree, the Super pointed Last status that each state is corresponding, thereby formed a hierarchical structure, state Super sensing s2 state as S21, and the Super of s1 points to the Top state, and the Top state is top level status, and its Super points to Null.
Here, system event is divided into two kinds: common event and state transition event.Wherein:
Common event can not cause the migration of state, and the state transition event can cause between state and switch, as PageTriggerSense(d1=0) be exactly common event, it is the internal event of calling out the perception state.System wake-up event System_Wake event can initiating system switching to family's movie theatre idle condition by holding state (StandBy).
Described event is that the mode with message defines, and mainly comprises 2 parts:
1) event flag ID;
2) parameter of event and message content.
State machine usually can manage simultaneously a plurality of states, supervisor status migration, be responsible for transmission system message to the state processing function, be responsible for the entrance of state and exit processing etc.Level state machine (HSM) is the base class of device abstract class, has namely defined basic act and the Active Interface of all devices abstract class in the system.This class can management state machine interpolation, delete broadcast to all state machines to realize the management to whole system.Be also the key point of the system expandability, master controller is realized the media device all to the locking equipment proxy management by master controller level state machine manager, is easy to expansion.
The state that the master controller that Fig. 5 is system of the present invention comprises and state transition event schematic diagram thereof.As shown in Figure 5, described controlling media play device 1, have 11 states, respectively top state (Top), open state (Startup), running status (On), idle condition (Idle), home theater circulation idle condition (HomeTheatreWhileIdle), holding state (standby), produce init state (FactoryInit), off-mode (Shutdown), call state (Page), call out triggering state (TriggeredPage) and call out perception state etc.Wherein:
Running status: carry out media play, fast forwarding and fast rewinding, next song, a upper song, and the operation of data source switching etc., to loud minor adjustment of data source etc.
Idle condition: " occupied with nothing " at system place, now system generally can be moved the work of garbage reclamation etc.
Home theater circulation idle condition: under this home theater idle condition, controller is generally done a little and broadcasting music and the irrelevant operation of video playback.
Holding state: be that system enters battery saving mode, power consumption drops to minimum, and removing necessary circuit needs power supply to maintain, and other circuit are closed, and waiting system is exchanged for again.
Dispatch from the factory and just enter init state: under this state, controller is returned to factory state to setting, and all users arrange and can be capped.
Off-mode: system is just at off-mode, and under this state, system can be prepared shutdown, and under off-mode, system can be processed such as picture is preserved the operations such as process data is set.
Call state: controller is supported cascade, can form the media system of a cascade, and under call state, the broadcasting stream of all media player devices is suspended then playing calling information.
Call out the triggering state: be the sub-state of call state, be for the treatment of calling be triggered rear system need to be processed, Media Stream, as turn to audio frequency to flow to call audio stream.
Call out the perception state: being also the sub-state of a call state, is an of short duration state.
Switching between described these states is by event driven accordingly, as the switching from starting state (Startup) to idle condition (Idle) (Addr AssignComplete) event " device address distribution " completes is carried out.Again such as player is respectively to trigger at event call perceptual signal (PageSigalSense) and calling the switching that perception events (PageTiggeredSense) completes from running status (On) to calling out triggering state (TriggerPage) and calling out perception state (sensedPage).
Fig. 6 is master controller state and handoff procedure schematic diagram.As shown in Figure 6, controlling media play device stateful switchover process is as follows:
1) the controlling media play device powers on and enters open state, and the controlling media play device starts main control equipment for this reason and distributes address, until address completes distribution (Addr_Assign_Complete).
2) system enters running status (On) and idle condition (Idle).
3) under idle condition, if the event of receiving " is upgraded the system commencing signal " (Update_System_On), system is moved to system operation (On) by idle (Idle), and the renewal of completion system operation.
4) if system receives that system wait signal (SYSTEM_STANDBY) system can be by idle (Idle) state to system standby state conversion (Standby).
5), if receive the initializing signal that dispatches from the factory (FactoryInit) at system running state (On), system is switched to system initialization state (FactoryInit) by system running state (On).
6) if enter " idle condition " after system running state (On) is receiving " system update starts " signal (d1=0 in signal).
7) complete the init state of dispatching from the factory after (Factory_Init_Complete) system prepare shutdown to system closedown state transition.
8) receive the home theater trigger pip from system standby state (Standby), system can be switched to the home theater state by holding state.
9) system, after holding state (Standby) receives system wake-up (SYSTEM_WAKE) signal, can be switched to idle condition (Idle).
10) system running state (On) is received the calling perceptual signal, and system has system running state to call state switching (Page).
Hierarchical relationship between state is the basis of logical multiplexing, it is the key point that realizes otherness programming (Programming By Difference), if such as system under the home theater idle condition, system also exists simultaneously so: top state, system running state and idle condition, this equal the home theater idle pulley multiplexing top state, the processing logic under system running state and idle condition, realized the succession of state and multiplexing and then realized the differentiation programming in logic.
Fig. 7 is the hierarchical relationship schematic diagram between the master controller state.As shown in Figure 7, the hierarchical relationship between the master controller state, this relation is a kind of unidirectional tree hierarchy relation.Such as broadcast calls, system can make system enter call state by the broadcast calls trigger pip, under call state, the signal of the media device of other of system can by temporarily masking then play the broadcast calls audio stream from but each playback equipment is play call audio.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.

Claims (9)

1. the controlling media play device based on multi-level state machine, is characterized in that, mainly comprises that panel controller proxy module, video player proxy module are or/and audio player proxy module, inferior controller proxy module and processing module; Wherein:
Described panel controller proxy module, video player proxy module are or/and audio player proxy module and inferior controller proxy module are a level state machine, the corresponding a kind of corresponding abstract opertaing device of described each level state machine, be used for maintenance and management all states of corresponding opertaing device with it, by described processing module receipt message and data, and by event-driven described level state machine internal state and action;
Described processing module, for reception and processing messages and data, and for master controller by send message to all level state machines that are managed to realize management and the control of antithetical phrase proxy for equipment state machine.
2. the controlling media play device based on multi-level state machine according to claim 1, it is characterized in that, described panel controller proxy module, comprise broadcast source chooser module, played file chooser module, volume control submodule and Play Control submodule, the steering order of sending for the treatment of control panel and control message.
3. the controlling media play device based on multi-level state machine according to claim 1, it is characterized in that, described processing module, comprise message sink submodule, call treatment submodule and addressing and process submodule, for receiving control message and steering order, and send result by messaging bus after processing accordingly.
4. the controlling media play device based on multi-level state machine according to claim 1, is characterized in that, described event is that the mode with message defines, and mainly comprises following two parts: the parameter of event flag ID, event and message content.
5. a media player that comprises the described controlling media play device based on multi-level state machine of claim 1, is characterized in that, also comprises that panel controller, inferior controller, video player are or/and audio player and messaging bus; Wherein:
Described controlling media play device, for the operation managing and coordinate each equipment room with communicate by letter;
Described panel controller, be mainly used in displaying video and audio media files;
Described video player and audio player, video player proxy module and audio player proxy module in the corresponding controlling media play device of difference, for instruction selection and playing video file and the audio file according to sending by the panel controller proxy module; And
Described controlling media play device with time controller by messaging bus pass-along message, realize the interconnected of equipment room and communicate by letter.
6. the media player of the controlling media play device based on multi-level state machine according to claim 5, is characterized in that, described messaging bus adopts the RNET Data Transport Protocol.
7. the media player of the controlling media play device based on multi-level state machine according to claim 5, is characterized in that, described controlling media play device can articulate a plurality of opertaing devices and playback equipment.
8. the media playing method of the controlling media play device based on multi-level state machine, is characterized in that, comprising:
A, media player is powered on, generating the master controller state supervisor in Play System is the controlling media play device;
B, described controlling media play device find control panel and audio player and are connected into described Play System according to the link situation of Play System, generate corresponding controller panel proxy module and video or/and the audio player proxy module, to realize the management to this equipment;
C, the described equipment of described controlling media play device initialization, and make it enter separately running status;
D, by panel controller, at run mode, enumerate system resource, it is presented on panel, and show the resource that current system articulates on panel, comprise and show described media player;
E, on described panel controller, select media player as broadcast source, panel controller is by sending message to the controlling media play device, and the controlling media play device passes to the media player proxy module according to the ID in message by message;
F, described panel controller, by sending message to described media player, obtain all playlists; Described playlist is presented on control panel, for the user, selects to play media file;
G, the audio frequency select to intend play on panel controller, or/and video media file is play, and are transmitted to media player by corresponding message and data by the controlling media play device;
H, audio or video playing controller proxy module are followed the tracks of all states of corresponding player, comprise the size state of broadcast state, sound;
I, described panel controller timed sending message give described controlling media play device to obtain up-to-date broadcast state and progress.
9. the media playing method of the controlling media play device based on multi-level state machine according to claim 8, is characterized in that, the described equipment of step B is by corresponding ID unique identification.
CN201310358023.5A 2013-08-16 2013-08-16 The player method of the controlling media play device based on multi-level state machine Active CN103455328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310358023.5A CN103455328B (en) 2013-08-16 2013-08-16 The player method of the controlling media play device based on multi-level state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310358023.5A CN103455328B (en) 2013-08-16 2013-08-16 The player method of the controlling media play device based on multi-level state machine

Publications (2)

Publication Number Publication Date
CN103455328A true CN103455328A (en) 2013-12-18
CN103455328B CN103455328B (en) 2017-06-06

Family

ID=49737735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310358023.5A Active CN103455328B (en) 2013-08-16 2013-08-16 The player method of the controlling media play device based on multi-level state machine

Country Status (1)

Country Link
CN (1) CN103455328B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814726A (en) * 2019-02-28 2019-05-28 亮风台(上海)信息科技有限公司 A kind of method and apparatus executing intelligent interaction processing module
CN111988667A (en) * 2020-08-18 2020-11-24 视若飞信息科技(上海)有限公司 Intelligent terminal media player management method and system
CN112910556A (en) * 2021-03-05 2021-06-04 深圳市达特文化科技股份有限公司 Optical communication method and system
CN113821279A (en) * 2021-11-24 2021-12-21 深圳市永联科技股份有限公司 State transition method and device and embedded equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299546A (en) * 1998-05-08 2001-06-13 索尼电子有限公司 Media manager for controlling data flow of autonomous media devices within a network environment
US20080046817A1 (en) * 2006-08-18 2008-02-21 Bitrouter Hierarchical state programming with a markup language
US7797672B2 (en) * 2006-05-30 2010-09-14 Motorola, Inc. Statechart generation using frames
CN102929697A (en) * 2012-10-09 2013-02-13 Tcl集团股份有限公司 State machine, scheduling method and device and universal serial bus (USB) media play control device
CN104581365A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Method for controlling multi-media file pushing, slave device, main device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299546A (en) * 1998-05-08 2001-06-13 索尼电子有限公司 Media manager for controlling data flow of autonomous media devices within a network environment
US7797672B2 (en) * 2006-05-30 2010-09-14 Motorola, Inc. Statechart generation using frames
US20080046817A1 (en) * 2006-08-18 2008-02-21 Bitrouter Hierarchical state programming with a markup language
CN102929697A (en) * 2012-10-09 2013-02-13 Tcl集团股份有限公司 State machine, scheduling method and device and universal serial bus (USB) media play control device
CN104581365A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Method for controlling multi-media file pushing, slave device, main device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王竞: "基于构件的嵌入式软件框架与设计模式的研究", 《万方学术期刊数据库》, 31 December 2009 (2009-12-31) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814726A (en) * 2019-02-28 2019-05-28 亮风台(上海)信息科技有限公司 A kind of method and apparatus executing intelligent interaction processing module
CN109814726B (en) * 2019-02-28 2022-07-01 亮风台(上海)信息科技有限公司 Method and equipment for executing intelligent interactive processing module
CN111988667A (en) * 2020-08-18 2020-11-24 视若飞信息科技(上海)有限公司 Intelligent terminal media player management method and system
CN112910556A (en) * 2021-03-05 2021-06-04 深圳市达特文化科技股份有限公司 Optical communication method and system
CN113821279A (en) * 2021-11-24 2021-12-21 深圳市永联科技股份有限公司 State transition method and device and embedded equipment

Also Published As

Publication number Publication date
CN103455328B (en) 2017-06-06

Similar Documents

Publication Publication Date Title
CN102833141B (en) CAN (control area network) open slave station system based on DSP (digital signal processor) 28335
CN103455328A (en) Media playing controller, media player and media playing method based on multiple hierarchical state machines
CN105183458A (en) Software platform development method and apparatus
CN103294641A (en) Finite state machine for system management
CN202486575U (en) Numerical control machine tool control interface device using EtherCAT bus
CN102253860A (en) Asynchronous operation method and asynchronous operation management device
CN102200801B (en) Integrated machine
CN102256050B (en) Intelligent studio view broadcast control system and method
CN102375759B (en) Utilize the method that finite state machine prevents code rewriting
JP2006119802A (en) Multiprocessor system
CN114138488A (en) Cloud-native implementation method and system based on elastic high-performance computing
CN105578505A (en) State management method of wireless communication module and wireless communication module
CN101201755A (en) Method, system and equipment for managing software module of digital receiving terminal
CN108495175A (en) A kind of method and apparatus for controlling communication message when smart television interconnection external equipment
CN106878927A (en) Multifunctional Bluetooth equipment and attaching method thereof
CN207560297U (en) A kind of intelligent sound box
CN102902638A (en) Hardware equipment control method and driving module
WO2022111457A1 (en) Core cluster synchronization method, core cluster synchronization control method, data processing method, and electronic device
CN109032674A (en) A kind of multi-process management method, system and the network equipment
CN104461599A (en) Integration method of multiple desktop starters
CN101526843B (en) Method for managing power source of multi-microcontroller system
CN114422336A (en) Control plane debugging method, device, node and storage medium
CN102572592A (en) Set-top box standby control method based on system dynamic clock management
CN106354486A (en) Nand flash equipment management method and system
CN105812935A (en) Method and device for controlling playing in audio-video playing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant