Background technology
Intelligent development along with television set, the traditional tv remote controller exposes the defect in the inputs such as mouse, gesture, voice gradually, this just make the mobile phone of one of staff or Pad control TV become a kind of may, utilize three screen interaction techniques still can realize that TV, mobile phone, the content above Pad share, the functions such as real-time Transmission simultaneously.And, along with the appearance of a series of files of the integration of three networks and the announcement of experimental city list, the integration of three networks at present is to have entered the implementation stage.For television operator, under the national policy framework, can with the IPTV business of telecom operators' cooperation development based on video screen, simultaneously in conjunction with the mobile TV box internet video business of having carried out, carry out towards the fusing interdynamic business of Mobile phone screen, PC screen and TV screen, improve greatly convenience recreational and operation.Market survey shows, exploitation and the realizations of three screen interaction techniques have prospect widely, and the exploitation of intelligent television is from now on played an important role.
Existing family TV in the use, due to remote-controller function limited, can only carry out the simple operation of selecting, and mode of operation is single, the operation that can make seldom, interactive inadequate in the process of using, and because present mobile phone, computer and TV belongs to different operators, their standard is different, can not be well compatible, this has just caused between the three can not well carry out interaction, can not meet the requirement above interactive application, has affected convenience and interest that people use.
Therefore, be necessary to provide a kind of interaction systems based on Android and Linux intelligent television to satisfy the demands.
Summary of the invention
The purpose of this invention is to provide a kind of interaction systems based on Android and Linux intelligent television, another operation scenario is provided, strengthen the operating function of enriching of intelligent use experience.
Therefore, the invention provides a kind of interaction systems based on Android and Linux intelligent television, for realizing the interaction between mobile phone terminal and intelligent television, the intelligent television end includes Android end and Linux end, wherein,
Described mobile phone terminal includes and gets rid of panel module, virtual remote control module and retrieval, link block, the described panel module that gets rid of is for the filtration that realizes the mobile phone terminal file and the broadcasting of preview and local multimedia file, for opening the Web Server(webserver of a Http) download the mobile phone terminal resource for the intelligent television end, finally the multimedia file in mobile phone terminal this locality is transferred to the intelligent television end with the url form; TCP(Transmission Control Protocol, transmission control protocol are used in described retrieval, link block) clean culture sets up man-to-man reliable connection of intelligent television end and mobile phone terminal; Described virtual remote control module is caught the press key message that the user presses, and is converted into the press key message that intelligent television needs, and by setting up the socket connection, sends to intelligent television;
Described intelligent television Android end includes Android UI(User Interface, user interface) module, control service module and voice service module, described control service module is after mobile phone terminal is initiated the multicast searching message, by UDP(User Datagram Protocol, User Datagram Protoco (UDP)) multicast client is receiveed the response to mobile phone terminal, simultaneously after retrieval, the TCP server end of communicating by letter with the intelligent television end as mobile phone terminal, can guarantee that a plurality of mobile phones connect an intelligent television simultaneously, by virtual remote control, mouse shields with getting rid of the user's service module that sends to intelligent television Linux to hold after the command process assembling, finally speech data is sent to voice service module and by result feedback to Android UI resume module,
Described intelligent television Linux end includes user's service module, playback interface, virtual key interface and virtual drive module, and described user's service module is for receiving the message that the Android end is controlled service module in the Linux termination; Described virtual key interface is for receiving virtual key message; The media resource that described playback interface sends for receiving and play the Android end; Described virtual drive module is for realizing in the simulation of intelligent television end virtual key, mouse, the sensor messages that mobile phone terminal sends over.
Preferably, the button that the virtual key module of described intelligent television Linux end is held at Linux obtains and comprises: at first, obtain virtual key Archive sit descriptor; Secondly, block the button data that reads the virtual key Archive sit; Then, mapping key set code; Finally sending button mapping code processes to user's service module.
Compared with prior art, the interaction systems based on Android and Linux intelligent television of the present invention, provide another operation scenario, strengthens the operating function of enriching of intelligent use experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under the creative work prerequisite, belong to the scope of protection of the invention.
The objective of the invention is in interactive application, another operation scenario is provided, strengthen the operating function of enriching of intelligent use experience, intelligent television in order to provide the global function operating experience under primary system UI, mobile phone terminal can be also remote controller, design can be integrated track Trackpad, MEMS dynamically responds to or carry gyrostatic smart mobile phone, allows the user can utilize the smart mobile phone of large-screen also can carry out complicated networking or entertainment applications.
Particularly, with reference to figure 1, the interaction systems based on Android and Linux intelligent television of the embodiment of the present invention, for realizing the interaction between mobile phone terminal and intelligent television, the intelligent television end includes Android end and Linux end.
Wherein, described mobile phone terminal includes and gets rid of panel module, virtual remote control module and retrieval, link block, the described panel module that gets rid of is for the filtration that realizes the mobile phone terminal file and the broadcasting of preview and local multimedia file, download the mobile phone terminal resource for the Web Server that opens a Http for the intelligent television end, finally the multimedia file in mobile phone terminal this locality is transferred to the intelligent television end with the url form, it can " get rid of the file of mobile phone terminal " to intelligent television, then on intelligent television, plays; Described retrieval, link block adopt the ip multicast technology to carry out the design of mobile phone terminal to the retrieval of intelligent television end, and then use the TCP clean culture to set up man-to-man reliable connection of intelligent television and mobile phone terminal.Mobile phone terminal is as the multicast server end, at first initiate the multicast request of retrieval, and the wait intelligent television is replied platform name and IP address, after mobile phone terminal retrieves television listing, if the mobile phone terminal user clicks a certain IP option in TV IP list, main program will separately be opened a thread and be responsible for the intelligent television corresponding with this IP specially and set up man-to-man connection.Certainly, this wherein needs the intelligent television end first to open the server end of connection, then at corresponding ports, monitors the connection request from mobile phone terminal.Described virtual remote control module is after mobile phone terminal and intelligent television connect, at first mobile phone terminal UI program is caught the user and is pressed Button message, then it is converted to the press key message that intelligent television needs, by the socket that has established before connection, sends to intelligent television; The slip of intelligent television mouse and the judgement of gesture are all that mobile phone terminal UI program is carried out the data of the movement of analog mouse and gesture by system acquisition touch-screen slip data, then mobile data (comprising direction and distance) are packaged into to slip message, by socket, send to the intelligent television end; The sensed data that the virtual remote control module produces the gravity sensor carried in mobile phone terminal is passed to intelligent television, simulate some Android game operations, the voice server of passing to intelligent television by mobile phone terminal typing speech data carries out speech recognition operation and control.
Described intelligent television Android end includes Android UI module, control service module and voice service module, described control service module is after mobile phone terminal is initiated the multicast searching message, by UDP multicast client, receive the response to mobile phone terminal, simultaneously after retrieval, the TCP server end of communicating by letter with the intelligent television end as mobile phone terminal, can guarantee that a plurality of mobile phones connect an intelligent television simultaneously, by virtual remote control, mouse shields with getting rid of the user's service module that sends to intelligent television Linux to hold after the command process assembling, finally speech data is sent to voice service module and by result feedback to Android UI resume module, the technical scheme of described voice service module is that to intelligent television, intelligent television is transmitted to the high in the clouds voice server again, by cloud server, identifies speech data, then result is fed back to the intelligent television end at mobile phone terminal transmission speech data.
Described intelligent television Linux end includes user's service module, playback interface, virtual key interface and virtual drive module, described user's service module is controlled the message of service module and calls physical layer interface and go to process these message for receive the Android end in the Linux termination, its essence is an intermediary interface layer, in order to realize above function, the embodiment of the present invention is separately opened an independent thread and is carried out receipt message in host process, process the control service message of reception simultaneously in order to call more flexibly lower layer interface, can adopt the mode of registered callbacks class to realize.Described virtual key interface is for receiving virtual key message; The media resource that described playback interface sends for receiving and play the Android end; Described virtual drive module is for realizing in the simulation of intelligent television end virtual key, mouse, the sensor messages that mobile phone terminal sends over.
In order in the Linux host process, to accept virtual key message, need in the Main function, increase the thread that reads of a virtual key.This thread groundwork flow process is as follows: at first, obtain virtual key Archive sit descriptor; Secondly, block the button data that reads the virtual key Archive sit; Then, mapping key set code; Finally sending button mapping code processes to user's service module.
The interaction systems based on Android and Linux intelligent television of the embodiment of the present invention can be realized three screen interactions, using mobile phone terminal or PC as operating terminal, using intelligent television as display terminal, operating terminal and display terminal are bound mutually, and establish a communications link by three screen interaction protocol; Operating terminal sends a message to display terminal by three screen interaction protocol, and the display terminal receipt message is also resolved message, then according to type of message, is correspondingly processed.
Three shield the main network communications technology of using in interactive process comprises: ip multicast technology, HTTP Web Server technology and Socket socket technology.They are respectively used to mobile phone terminal and get rid of the message communicating shielded between intelligent television broadcasting, process to retrieval in the local area network (LAN) of intelligent television, by the mobile phone terminal media content.Three screens are with seeing technology: presenting identical live, on-demand content on different terminals for the user, is that the user crosses over the restriction of time and terminal to the use of video traffic; Virtual drive technology: in the simulation of intelligent television end, realizing virtual key, mouse, the sensor messages that mobile phone terminal sends over; Play Technique for Multimedia: for play respectively the multimedia file of mobile phone terminal at mobile phone terminal and intelligent television end; Speech recognition and synthetic technology: be respectively used to identify the user recording data of mobile phone terminal and the word content that synthetic intelligent television end need to be reported.
Intelligent television for Android and Linux dual system, mobile phone terminal is responsible for retrieval and is connected intelligent television, and the virtual key of mobile phone terminal, mouse, gesture, transducer and speech data are sent to the control service module (Control Service) of intelligent television end, and open a Http WebServer and downloads and play the interior media file of mobile phone terminal SD card for the Linux playback interface of intelligent television end.The main message of being responsible for receiving mobile phone terminal of intelligent television Android end, and process respectively or pass to the playback interface that Linux holds.Intelligent television Linux end is main is responsible for the media resource received and Play Control service module biography is come, and the message maps of response virtual drive equipment.
Three screen interactive services main manifestations the business form be pass through the shared and intercommunication that Mobile phone screen, PC screen and TV shield 3 kinds of screens, make the user at any time, any place all can be used business, greatly improves user's experience.
TV is the basic business of broadcasting and TV enterprise, and mobile phone and the Internet are the basic businesses of telecommunications enterprise; If both sides are excessive competition in basic business, will shake development foundation separately; And the interaction between three screens has enlarged operational space, brought brand-new business scope, will greatly promote the enthusiasm of mutual cooperation.
Telecom operators utilize existing platform and resource, take the user as core, form the unification that good video information is transmitted and served between three screens, thereby promote the lifting that each screen is worth, and this is the value place of three screen interactions.But the beginning of its to be only also operator prize great market that the integration of three networks breeds, mobile video can bring operator brand-new business development space with the associated of intelligent television business.
The above interaction systems based on Android and Linux intelligent television that the embodiment of the present invention is provided, be described in detail, applied specific case in the present invention principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention simultaneously.