CN104581364A - Data sharing and control method, equipment and system for android set-top box - Google Patents

Data sharing and control method, equipment and system for android set-top box Download PDF

Info

Publication number
CN104581364A
CN104581364A CN201410836323.4A CN201410836323A CN104581364A CN 104581364 A CN104581364 A CN 104581364A CN 201410836323 A CN201410836323 A CN 201410836323A CN 104581364 A CN104581364 A CN 104581364A
Authority
CN
China
Prior art keywords
top box
box device
audio
video data
remote terminal
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
CN201410836323.4A
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.)
Star Software Technology Co.,Ltd.
Original Assignee
STAR TIMES COMMUNICATION NETWORK TECHNOLOGY 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 STAR TIMES COMMUNICATION NETWORK TECHNOLOGY Co Ltd filed Critical STAR TIMES COMMUNICATION NETWORK TECHNOLOGY Co Ltd
Priority to CN201410836323.4A priority Critical patent/CN104581364A/en
Publication of CN104581364A publication Critical patent/CN104581364A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a data sharing and control method, data sharing and control method equipment and a data sharing and control method system for an android set-top box, and relates to the technical field of video services of android set-top boxes. The method comprises the following steps: synthesizing video data and audio data into audio-video data, and storing the audio-video data in an annular buffer zone of set-top box equipment; receiving a TCP (transmission control protocol) connection request sent by remote terminal equipment, and establishing a TCP connection with the remote terminal equipment; receiving an operation instruction sent by the remote terminal equipment, wherein the operation instruction comprises an audio-video data request or a control instruction of the set-top box equipment; when receiving the audio-video data request, sending the audio-video data corresponding to the audio-video data request to the remote terminal equipment according to the audio-video data request; when receiving the control instruction of the set-top box equipment, controlling the set-top box equipment to perform an operation corresponding to the control instruction of the set-top box equipment. Therefore, the problems that high-definition videos or network content provided by the android set-top box cannot be remotely watched and the android set-top box cannot be controlled at present are solved.

Description

The data sharing of android set top box and the method for control, equipment and system
Technical field
The present invention relates to android set top box video services technology field, particularly relate to a kind of data sharing of android set top box and method, the equipment and system of control.
Background technology
Growing along with network technology, the demand of consumer to information such as the video resources from Network Capture high image quality is also increasing.At present, the user such as a lot of family and enterprise is provided with android set top box.Android set top box has full open model platform, carry Android operation system, by user, the program provided with the third party service provider such as uninstall, game can be installed voluntarily, constantly the function of TV is expanded by this class method, and a kind of Set Top Box of surfing the web can be realized by netting twine, wireless network.Android set top box has the functions such as online and HD video.
But current android set top box has been difficult to the demand meeting user, such as user, when using android set top box watch HD video or surf the web, has carried out browsing and watching before all needing to be sitting in television set.When user leaves android set top box and television set, just cannot watch the HD video that android set top box provides or Web content, and cannot control android set top box.
Summary of the invention
The embodiment of the present invention provides a kind of data sharing of android set top box and method, the equipment and system of control, to solve in prior art when user leaves android set top box and television set, the HD video that android set top box provides or Web content cannot be watched, and the problem that cannot control android set top box.
In order to achieve the above object, the present invention adopts following technical scheme:
The data sharing of android set top box and a method for control, comprising:
The video data play in set-top box device and voice data are synthesized audio, video data, and is stored in the buffer circle of set-top box device;
Receive the TCP connection request that RTU (remote terminal unit) sends, carry out TCP with described RTU (remote terminal unit) and be connected;
Receive the operational order that RTU (remote terminal unit) sends; Described operational order comprises audio, video data request or set-top box device control command;
When described operational order comprises audio, video data request, according to described audio, video data request, send the described audio, video data corresponding to audio, video data request to described RTU (remote terminal unit), to make described RTU (remote terminal unit), described audio, video data is play;
When described operational order comprises set-top box device control command, control described set-top box device according to described set-top box device control command and carry out the operation corresponding with described set-top box device control command.
In addition, the video data play in set-top box device and voice data are being synthesized audio, video data, and before being stored in the buffer circle of set-top box device, comprising:
Intercept each frame video image in set-top box device system kernel before frambuffer process and the pcm audio flow data in set-top box device system kernel, and be stored in described buffer circle, and mark each frame video image and the system time corresponding to each section of pcm audio flow data.
Concrete, described the video data play in set-top box device and voice data are synthesized audio, video data, and be stored in the buffer circle of set-top box device, comprising:
By the ffmpeg code database in set-top box device system, described each frame video image is encoded to H264 standard data, and described pcm audio flow data is encoded to AAC formatted data;
According to described system time, by described ffmpeg code database, described H264 standard data and the synthesis of AAC formatted data are encapsulated as MP4 form audio, video data;
Described MP4 form audio, video data is stored in the buffer circle of set-top box device.
In addition, the TCP connection request receiving RTU (remote terminal unit) and send, carries out before TCP is connected, comprising with described RTU (remote terminal unit):
Timing carries out udp broadcast outside set-top box device; Wherein the content of udp broadcast comprises IP address and the port numbers of described set-top box device.
Concrete, described set-top box device control command comprises a RTU (remote terminal unit) operating data;
Describedly control described set-top box device according to described set-top box device control command and carry out the operation corresponding with described set-top box device control command, comprising:
Described RTU (remote terminal unit) operating data is converted to Android system key assignments;
Control described set-top box device according to described Android system key assignments and carry out the operation corresponding with described set-top box device control command.
Concrete, the operation of described correspondence comprise the television channel of switching machine set top box device, conditioner set top box device broadcast sound volume, electric program menu operation, close set-top box device, locking set-top box device and unlock set-top box device.
Further, after controlling described set-top box device according to described Android system key assignments and carrying out the operation corresponding with described set-top box device control command, comprising:
The state information of audio, video data or the set-top box device carried out after the operation of described correspondence is sent to described RTU (remote terminal unit).
A kind of set-top box device, comprising: audio, video data synthesis unit, TCP linkage unit, operational order receiving element, audio, video data transmitting element and set-top box device control unit;
Wherein, described audio, video data synthesis unit, for the video data play in set-top box device and voice data are synthesized audio, video data, and is stored in the buffer circle of set-top box device;
Described TCP linkage unit, for receiving the TCP connection request that RTU (remote terminal unit) sends, carrying out TCP with described RTU (remote terminal unit) and being connected;
Described operational order receiving element, for receiving the operational order that RTU (remote terminal unit) sends; Described operational order comprises audio, video data request or set-top box device control command;
When described operational order comprises audio, video data request, described audio, video data transmitting element, for according to described audio, video data request, send the described audio, video data corresponding to audio, video data request to described RTU (remote terminal unit), to make described RTU (remote terminal unit), described audio, video data is play;
When described operational order comprises set-top box device control command, described set-top box device control unit, carries out the operation corresponding with described set-top box device control command for controlling described set-top box device according to described set-top box device control command.
Further, described set-top box device also comprises:
Video image and audio stream data interception unit, for intercepting each frame video image in set-top box device system kernel before frambuffer process and the pcm audio flow data in set-top box device system kernel, and be stored in described buffer circle, and mark each frame video image and the system time corresponding to each section of pcm audio flow data.
Concrete, described audio, video data synthesis unit, comprising:
Coding module, for described each frame video image being encoded to H264 standard data by the ffmpeg code database in set-top box device system, and is encoded to AAC formatted data by described pcm audio flow data;
Synthesis package module, for according to described system time, is encapsulated as MP4 form audio, video data by described ffmpeg code database by described H264 standard data and the synthesis of AAC formatted data;
Memory module, for being stored in described MP4 form audio, video data in the buffer circle of set-top box device.
Further, described set-top box device, also comprises:
Radio unit, carries out udp broadcast for timing outside set-top box device; Wherein the content of udp broadcast comprises IP address and the port numbers of described set-top box device.
In addition, described set-top box device control command comprises a RTU (remote terminal unit) operating data;
Described set-top box device control unit, comprising:
Android system key assignments modular converter, for being converted to Android system key assignments by described RTU (remote terminal unit) operating data;
Set-top box device control module, carries out the operation corresponding with described set-top box device control command for controlling described set-top box device according to described Android system key assignments.
Concrete, the operation of the described correspondence in described set-top box device control module comprise the television channel of switching machine set top box device, conditioner set top box device broadcast sound volume, electric program menu operation, close set-top box device, locking set-top box device and unlock set-top box device.
Further, described set-top box device, also comprises:
State information and data feedback unit, for sending the state information of audio, video data or the set-top box device carried out after the operation of described correspondence to described RTU (remote terminal unit).
The data sharing of android set top box and a system for control, comprise set-top box device and RTU (remote terminal unit);
Wherein, described set-top box device, for the video data play in set-top box device and voice data are synthesized audio, video data, and is stored in the buffer circle of set-top box device; Receive the TCP connection request that RTU (remote terminal unit) sends, carry out TCP with described RTU (remote terminal unit) and be connected; Receive the operational order that RTU (remote terminal unit) sends; Described operational order comprises audio, video data request or set-top box device control command; When described operational order comprises audio, video data request, according to described audio, video data request, send the described audio, video data corresponding to audio, video data request to described RTU (remote terminal unit); When described operational order comprises set-top box device control command, control described set-top box device according to described set-top box device control command and carry out the operation corresponding with described set-top box device control command;
Described RTU (remote terminal unit), for sending described TCP connection request and described operational order to described set-top box device; And receive the audio, video data of described set-top box device transmission, described audio, video data is play.
The data sharing of the android set top box that the embodiment of the present invention provides and method, the equipment and system of control, the video data play in set-top box device and voice data can be synthesized audio, video data, and be stored in the buffer circle of set-top box device, and be connected by carrying out TCP with described RTU (remote terminal unit), when receiving audio, video data request, can according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit), play this audio, video data to make RTU (remote terminal unit); In addition, when receiving set-top box device control command, the operation corresponding with this set-top box device control command can be carried out according to set-top box device control command controller set top box device.Thus when user leaves set-top box device, the HD video that android set top box provides or Web content can be watched, and can control android set top box.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart one of the data sharing of the android set top box that Fig. 1 provides for the embodiment of the present invention and the method for control;
The flowchart 2 of the data sharing of the android set top box that Fig. 2 provides for the embodiment of the present invention and the method for control;
The structural representation one of the set-top box device that Fig. 3 provides for the embodiment of the present invention;
The structural representation two of the set-top box device that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the data sharing of the android set top box that Fig. 5 provides for the embodiment of the present invention and the system of control.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the data sharing of the android set top box that the embodiment of the present invention provides and the method for control, comprising:
Step 101, the video data play in set-top box device and voice data are synthesized audio, video data, and be stored in the buffer circle of set-top box device.
The TCP connection request that step 102, reception RTU (remote terminal unit) send, carries out TCP with RTU (remote terminal unit) and is connected.
The operational order that step 103, reception RTU (remote terminal unit) send, operational order comprises audio, video data request or set-top box device control command.
Step 104, when operational order comprises audio, video data request, according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit), to make RTU (remote terminal unit), audio, video data is play.
Step 105, when operational order comprises set-top box device control command, carry out the operation corresponding with set-top box device control command according to set-top box device control command controller set top box device.
What deserves to be explained is, the executive agent of the embodiment of the present invention is a kind of set-top box device, can be android set top box, also can be the intelligent TV set with set-top box functionality, but not only be confined to this.
The data sharing of the android set top box that the embodiment of the present invention provides and the method for control, the video data play in set-top box device and voice data can be synthesized audio, video data, and be stored in the buffer circle of set-top box device, and be connected by carrying out TCP with RTU (remote terminal unit), when receiving audio, video data request, can according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit), play this audio, video data to make RTU (remote terminal unit); In addition, when receiving set-top box device control command, the operation corresponding with this set-top box device control command can be carried out according to set-top box device control command controller set top box device.Thus when user leaves set-top box device, the HD video that android set top box provides or Web content can be watched, and can control android set top box.
What deserves to be explained is, the operation of above-mentioned correspondence comprises the television channel of switching machine set top box device, broadcast sound volume, electric program menu operation, closedown set-top box device, the locking set-top box device of conditioner set top box device and unlocks set-top box device etc., but is not only confined to this.
In order to make those skilled in the art better understand the present invention, enumerate a more specifically embodiment below, as shown in Figure 2, the data sharing of the android set top box that the embodiment of the present invention provides and the method for control, comprising:
Step 201, set-top box device intercept each frame video image in set-top box device system kernel before frambuffer process and the pcm audio flow data in set-top box device system kernel, and be stored in buffer circle, and mark each frame video image and the system time corresponding to each section of pcm audio flow data.
In the system of android set top box, the process of video image is, by the local Graph Manager of SurfaceFlinger module, different layer is synthesized a sub-picture, then be filled in back buffer module, fill completely when back buffer module and first the front buffer in system is set to back buffer, again original back buffer state is set to front buffer, then by the frame buffer zone (framebuffer) of system kernel, video image is shown on screen.And the voice data process in the system of android set top box is by Advanced Audio Coding (Advanced AudioCoding, being called for short AAC) audio conversion of form changes pulse code modulation (Pulse Code Modulation into, be called for short PCM) audio stream, and directly give audio frequency apparatus output sound by kernel.
Therefore, in above-mentioned steps 201, each frame video image before needing frambuffer process in system kernel intercepts, and is stored in buffer circle.Pcm audio flow data is intercepted simultaneously and be stored in buffer circle.So just obtain the initial data of Voice & Video.Also relate to the synchronous of Voice & Video herein, can be realized by mutual exclusion lock mode, namely lock for during sky at back buffer, until at release lock when back buffer is full.The thread simultaneously obtaining pcm audio flow data by one is deposited current pcm audio number flow data in buffer circle, and mark obtains the system time of each section of pcm audio flow data.So just can ensure the corresponding one section of pcm audio flow data of each frame video image.
Each frame video image is encoded to H264 standard data by the ffmpeg code database in set-top box device system by step 202, set-top box device, and pcm audio flow data is encoded to AAC formatted data.
H264 standard data and the synthesis of AAC formatted data, according to this system time, are encapsulated as MP4 form audio, video data by ffmpeg code database by step 203, set-top box device.
MP4 form audio, video data is stored in the buffer circle of set-top box device by step 204, set-top box device.
The timing of step 205, set-top box device carries out udp broadcast outside set-top box device.
Wherein, the content of udp broadcast comprises IP address and the port numbers of set-top box device.UDP in udp broadcast is User Datagram Protoco (UDP) (User Datagram Protocol is called for short UDP).
Step 206, RTU (remote terminal unit) send TCP connection request according to the IP address of set-top box device and port numbers to set-top box device.
Concrete, a transmission control protocol (Transmission ControlProtocol, TCP) virtual server can be pre-created in set-top box device, for receiving the TCP connection request that RTU (remote terminal unit) sends.
Step 207, set-top box device and RTU (remote terminal unit) are carried out TCP and are connected.
Step 208, RTU (remote terminal unit) are to set-top box device transmit operation instruction.
Wherein, operational order comprises audio, video data request or set-top box device control command.
When operational order comprises audio, video data request, perform step 209; When operational order comprises set-top box device control command, perform step 210.
Step 209, set-top box device, according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit), play to make RTU (remote terminal unit) to audio, video data.
Such as, when user leaves set-top box device, watch audio/video program if also need by this set-top box device, be then connected with the TCP of set-top box device by RTU (remote terminal unit), directly can obtain the audio, video data in set-top box device buffer circle.
RTU (remote terminal unit) operating data in set-top box device control command is converted to Android system key assignments by step 210, set-top box device.
Wherein, RTU (remote terminal unit) operating data can comprise the various content of operation to remote terminal, such as on a touch-screen mobile phone, can be left and right, upper inferior slip gesture, namely the operation corresponding to the correspondence on set-top box device that Android system key assignments completes can be and regulates volume or switching channels etc.
Step 211, set-top box device carry out the operation corresponding with set-top box device control command according to Android system key assignments controller set top box device.
What deserves to be explained is, the operation of above-mentioned correspondence comprises the television channel of switching machine set top box device, broadcast sound volume, electric program menu operation, closedown set-top box device, the locking set-top box device of conditioner set top box device and unlocks set-top box device etc., but is not only confined to this.
Step 212, set-top box device send the state information of carrying out audio, video data after corresponding operation or set-top box device to RTU (remote terminal unit).
Concrete, if the electric program menu that is operating as of such as correspondence operates, and have selected the program in electric program menu, then set-top box device will send corresponding audio, video data to RTU (remote terminal unit).If being operating as of correspondence is closed set-top box device, locking set-top box device or unlocks set-top box device, then set-top box device is by the state information to RTU (remote terminal unit) transmitter set top box device, such as the information such as " set-top box device is closed ", " set-top box device is locked ".
Carry out the operation corresponding with set-top box device control command by set-top box device according to Android system key assignments controller set top box device, the Long-distance Control to set-top box device can be realized.Such as, when the head of a family stays out, some children can see TV by set-top box device, and now the head of a family can pass through RTU (remote terminal unit) (as smart mobile phone) and controls set-top box device, as long-range closedown Set Top Box, remote lock Set Top Box etc.
The state information of the audio, video data carried out after corresponding operation or set-top box device shows by step 213, RTU (remote terminal unit).
The data sharing of the android set top box that the embodiment of the present invention provides and the method for control, the video data play in set-top box device and voice data can be synthesized audio, video data, and be stored in the buffer circle of set-top box device, and be connected by carrying out TCP with RTU (remote terminal unit), when receiving audio, video data request, can according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit), play this audio, video data to make RTU (remote terminal unit); In addition, when receiving set-top box device control command, the operation corresponding with this set-top box device control command can be carried out according to set-top box device control command controller set top box device.Thus when user leaves set-top box device, the HD video that android set top box provides or Web content can be watched, and can control android set top box.
Corresponding to the data sharing of above-mentioned android set top box and the method for control, as shown in Figure 3, the embodiment of the present invention also provides a kind of set-top box device, comprising: audio, video data synthesis unit 31, TCP linkage unit 32, operational order receiving element 33, audio, video data transmitting element 34 and set-top box device control unit 35.
Wherein, audio, video data synthesis unit 31, can synthesize audio, video data by the video data play in set-top box device and voice data, and be stored in the buffer circle of set-top box device.
TCP linkage unit 32, can receive the TCP connection request that RTU (remote terminal unit) sends, carry out TCP be connected with RTU (remote terminal unit).
Operational order receiving element 33, can receive the operational order that RTU (remote terminal unit) sends.
Wherein, this operational order comprises audio, video data request or set-top box device control command.
When operational order comprises audio, video data request, this audio, video data transmitting element 34, according to audio, video data request, the audio, video data corresponding to audio, video data request can be sent to RTU (remote terminal unit), to make RTU (remote terminal unit), audio, video data play.
When operational order comprises set-top box device control command, this set-top box device control unit 35, can carry out the operation corresponding with set-top box device control command according to set-top box device control command controller set top box device.
Further, as shown in Figure 4, this set-top box device can also comprise:
Video image and audio stream data interception unit 36, the each frame video image in set-top box device system kernel before frambuffer process and the pcm audio flow data in set-top box device system kernel can be intercepted, and be stored in buffer circle, and mark each frame video image and the system time corresponding to each section of pcm audio flow data.
Concrete, as shown in Figure 4, this audio, video data synthesis unit 31, can comprise:
Coding module 311, can be encoded to H264 standard data by the ffmpeg code database in set-top box device system by each frame video image, and pcm audio flow data is encoded to AAC formatted data.
Synthesis package module 312, according to system time, can be encapsulated as MP4 form audio, video data by ffmpeg code database by H264 standard data and the synthesis of AAC formatted data.
Memory module 313, can be stored in MP4 form audio, video data in the buffer circle of set-top box device.
Further, as shown in Figure 4, this set-top box device, also comprises:
Radio unit 37, timing can carry out udp broadcast outside set-top box device; Wherein the content of udp broadcast comprises IP address and the port numbers of set-top box device.
In addition, set-top box device control command comprises a RTU (remote terminal unit) operating data.
Concrete, this set-top box device control unit 35, comprising:
Android system key assignments modular converter 351, can be converted to Android system key assignments by RTU (remote terminal unit) operating data.
Set-top box device control module 352, can carry out the operation corresponding with set-top box device control command according to Android system key assignments controller set top box device.
Concrete, the operation of the correspondence in set-top box device control module 352 can comprise the television channel of switching machine set top box device, broadcast sound volume, electric program menu operation, closedown set-top box device, the locking set-top box device of conditioner set top box device and unlock set-top box device etc., but is not only confined to this.
Further, as shown in Figure 4, this set-top box device, can also comprise:
State information and data feedback unit 38, can send the state information of carrying out audio, video data after corresponding operation or set-top box device to RTU (remote terminal unit).
What deserves to be explained is, the set-top box device in the embodiment of the present invention, can be android set top box, also can be the intelligent TV set with set-top box functionality, but not only be confined to this.
The specific implementation of the set-top box device that the embodiment of the present invention provides see embodiment of the method corresponding to above-mentioned Fig. 1 and Fig. 2, can repeat no more herein.
The set-top box device that the embodiment of the present invention provides, the video data play in set-top box device and voice data can be synthesized audio, video data, and be stored in the buffer circle of set-top box device, and be connected by carrying out TCP with RTU (remote terminal unit), when receiving audio, video data request, according to audio, video data request, the audio, video data corresponding to audio, video data request can be sent to RTU (remote terminal unit), plays this audio, video data to make RTU (remote terminal unit); In addition, when receiving set-top box device control command, the operation corresponding with this set-top box device control command can be carried out according to set-top box device control command controller set top box device.Thus when user leaves set-top box device, the HD video that android set top box provides or Web content can be watched, and can control android set top box.
As shown in Figure 5, the data sharing of the android set top box that the embodiment of the present invention provides and the system of control, comprise set-top box device 41 and RTU (remote terminal unit) 42.
Wherein, set-top box device 41, can synthesize audio, video data by the video data play in set-top box device 41 and voice data, and be stored in the buffer circle of set-top box device 41; Receive the TCP connection request that RTU (remote terminal unit) 42 sends, carry out TCP with RTU (remote terminal unit) 42 and be connected; Receive the operational order that RTU (remote terminal unit) 42 sends; Operational order comprises audio, video data request or set-top box device control command; When operational order comprises audio, video data request, according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit) 42; When operational order comprises set-top box device control command, carry out the operation corresponding with set-top box device control command according to set-top box device control command controller set top box device.
RTU (remote terminal unit) 42, can send TCP connection request and operational order to set-top box device 41, and the audio, video data that receiving set up box equipment 41 sends, audio, video data is play.
What deserves to be explained is, the specific implementation of the data sharing of the android set top box that the embodiment of the present invention provides and the system of control see embodiment of the method corresponding to above-mentioned Fig. 1 and Fig. 2, can repeat no more herein.
The data sharing of the android set top box that the embodiment of the present invention provides and the system of control, the video data play in set-top box device and voice data can be synthesized audio, video data, and be stored in the buffer circle of set-top box device, and be connected by carrying out TCP with RTU (remote terminal unit), when receiving audio, video data request, can according to audio, video data request, send the audio, video data corresponding to audio, video data request to RTU (remote terminal unit), play this audio, video data to make RTU (remote terminal unit); In addition, when receiving set-top box device control command, the operation corresponding with this set-top box device control command can be carried out according to set-top box device control command controller set top box device.Thus when user leaves set-top box device, the HD video that android set top box provides or Web content can be watched, and can control android set top box.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Apply specific embodiment in the present invention to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, 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.

Claims (15)

1. the data sharing of android set top box and a method for control, is characterized in that, comprising:
The video data play in set-top box device and voice data are synthesized audio, video data, and is stored in the buffer circle of set-top box device;
Receive the TCP connection request that RTU (remote terminal unit) sends, carry out TCP with described RTU (remote terminal unit) and be connected;
Receive the operational order that RTU (remote terminal unit) sends; Described operational order comprises audio, video data request or set-top box device control command;
When described operational order comprises audio, video data request, according to described audio, video data request, send the described audio, video data corresponding to audio, video data request to described RTU (remote terminal unit), to make described RTU (remote terminal unit), described audio, video data is play;
When described operational order comprises set-top box device control command, control described set-top box device according to described set-top box device control command and carry out the operation corresponding with described set-top box device control command.
2. the data sharing of android set top box according to claim 1 and the method for control, it is characterized in that, the video data play in set-top box device and voice data are being synthesized audio, video data, and before being stored in the buffer circle of set-top box device, comprising:
Intercept each frame video image in set-top box device system kernel before frambuffer process and the pcm audio flow data in set-top box device system kernel, and be stored in described buffer circle, and mark each frame video image and the system time corresponding to each section of pcm audio flow data.
3. the data sharing of android set top box according to claim 2 and the method for control, it is characterized in that, described the video data play in set-top box device and voice data are synthesized audio, video data, and are stored in the buffer circle of set-top box device, comprising:
By the ffmpeg code database in set-top box device system, described each frame video image is encoded to H264 standard data, and described pcm audio flow data is encoded to AAC formatted data;
According to described system time, by described ffmpeg code database, described H264 standard data and the synthesis of AAC formatted data are encapsulated as MP4 form audio, video data;
Described MP4 form audio, video data is stored in the buffer circle of set-top box device.
4. the data sharing of android set top box according to claim 3 and the method for control, is characterized in that, the TCP connection request receiving RTU (remote terminal unit) and send, and carries out before TCP is connected, comprising with described RTU (remote terminal unit):
Timing carries out udp broadcast outside set-top box device; Wherein the content of udp broadcast comprises IP address and the port numbers of described set-top box device.
5. the data sharing of android set top box according to claim 4 and the method for control, is characterized in that, described set-top box device control command comprises a RTU (remote terminal unit) operating data;
Describedly control described set-top box device according to described set-top box device control command and carry out the operation corresponding with described set-top box device control command, comprising:
Described RTU (remote terminal unit) operating data is converted to Android system key assignments;
Control described set-top box device according to described Android system key assignments and carry out the operation corresponding with described set-top box device control command.
6. the data sharing of android set top box according to claim 5 and the method for control, it is characterized in that, the operation of described correspondence comprise the television channel of switching machine set top box device, conditioner set top box device broadcast sound volume, electric program menu operation, close set-top box device, locking set-top box device and unlock set-top box device.
7. the data sharing of android set top box according to claim 6 and the method for control, is characterized in that, after controlling described set-top box device according to described Android system key assignments and carrying out the operation corresponding with described set-top box device control command, comprising:
The state information of audio, video data or the set-top box device carried out after the operation of described correspondence is sent to described RTU (remote terminal unit).
8. a set-top box device, is characterized in that, comprising: audio, video data synthesis unit, TCP linkage unit, operational order receiving element, audio, video data transmitting element and set-top box device control unit;
Wherein, described audio, video data synthesis unit, for the video data play in set-top box device and voice data are synthesized audio, video data, and is stored in the buffer circle of set-top box device;
Described TCP linkage unit, for receiving the TCP connection request that RTU (remote terminal unit) sends, carrying out TCP with described RTU (remote terminal unit) and being connected;
Described operational order receiving element, for receiving the operational order that RTU (remote terminal unit) sends; Described operational order comprises audio, video data request or set-top box device control command;
When described operational order comprises audio, video data request, described audio, video data transmitting element, for according to described audio, video data request, send the described audio, video data corresponding to audio, video data request to described RTU (remote terminal unit), to make described RTU (remote terminal unit), described audio, video data is play;
When described operational order comprises set-top box device control command, described set-top box device control unit, carries out the operation corresponding with described set-top box device control command for controlling described set-top box device according to described set-top box device control command.
9. set-top box device according to claim 8, is characterized in that, described set-top box device also comprises:
Video image and audio stream data interception unit, for intercepting each frame video image in set-top box device system kernel before frambuffer process and the pcm audio flow data in set-top box device system kernel, and be stored in described buffer circle, and mark each frame video image and the system time corresponding to each section of pcm audio flow data.
10. set-top box device according to claim 9, is characterized in that, described audio, video data synthesis unit, comprising:
Coding module, for described each frame video image being encoded to H264 standard data by the ffmpeg code database in set-top box device system, and is encoded to AAC formatted data by described pcm audio flow data;
Synthesis package module, for according to described system time, is encapsulated as MP4 form audio, video data by described ffmpeg code database by described H264 standard data and the synthesis of AAC formatted data;
Memory module, for being stored in described MP4 form audio, video data in the buffer circle of set-top box device.
11. set-top box devices according to claim 10, is characterized in that, also comprise:
Radio unit, carries out udp broadcast for timing outside set-top box device; Wherein the content of udp broadcast comprises IP address and the port numbers of described set-top box device.
12. set-top box devices according to claim 11, is characterized in that, described set-top box device control command comprises a RTU (remote terminal unit) operating data;
Described set-top box device control unit, comprising:
Android system key assignments modular converter, for being converted to Android system key assignments by described RTU (remote terminal unit) operating data;
Set-top box device control module, carries out the operation corresponding with described set-top box device control command for controlling described set-top box device according to described Android system key assignments.
13. set-top box devices according to claim 12, it is characterized in that, the operation of the described correspondence in described set-top box device control module comprise the television channel of switching machine set top box device, conditioner set top box device broadcast sound volume, electric program menu operation, close set-top box device, locking set-top box device and unlock set-top box device.
14. set-top box devices according to claim 13, is characterized in that, also comprise:
State information and data feedback unit, for sending the state information of audio, video data or the set-top box device carried out after the operation of described correspondence to described RTU (remote terminal unit).
The data sharing of 15. 1 kinds of android set top box and the system of control, is characterized in that, comprises set-top box device and RTU (remote terminal unit);
Wherein, described set-top box device, for the video data play in set-top box device and voice data are synthesized audio, video data, and is stored in the buffer circle of set-top box device; Receive the TCP connection request that RTU (remote terminal unit) sends, carry out TCP with described RTU (remote terminal unit) and be connected; Receive the operational order that RTU (remote terminal unit) sends; Described operational order comprises audio, video data request or set-top box device control command; When described operational order comprises audio, video data request, according to described audio, video data request, send the described audio, video data corresponding to audio, video data request to described RTU (remote terminal unit); When described operational order comprises set-top box device control command, control described set-top box device according to described set-top box device control command and carry out the operation corresponding with described set-top box device control command;
Described RTU (remote terminal unit), for sending described TCP connection request and described operational order to described set-top box device; And receive the audio, video data of described set-top box device transmission, described audio, video data is play.
CN201410836323.4A 2014-12-29 2014-12-29 Data sharing and control method, equipment and system for android set-top box Pending CN104581364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410836323.4A CN104581364A (en) 2014-12-29 2014-12-29 Data sharing and control method, equipment and system for android set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410836323.4A CN104581364A (en) 2014-12-29 2014-12-29 Data sharing and control method, equipment and system for android set-top box

Publications (1)

Publication Number Publication Date
CN104581364A true CN104581364A (en) 2015-04-29

Family

ID=53096409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410836323.4A Pending CN104581364A (en) 2014-12-29 2014-12-29 Data sharing and control method, equipment and system for android set-top box

Country Status (1)

Country Link
CN (1) CN104581364A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954440A (en) * 2015-05-18 2015-09-30 烽火通信科技股份有限公司 Operation and maintenance system and method of Android set-top box
CN105516795A (en) * 2015-12-14 2016-04-20 四川长虹电器股份有限公司 Television screen sharing method under Android system
CN106303441A (en) * 2016-08-26 2017-01-04 山东康威通信技术股份有限公司 A kind of at subterranean tunnel system and method based on bluetooth highly-reliable transmission audio frequency and video
CN116071907A (en) * 2022-12-30 2023-05-05 广东辰奕智能科技股份有限公司 Bluetooth BLE multi-decoding audio transmission system and transmission method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206561A1 (en) * 2005-03-09 2006-09-14 Tul Corporation Personal multimedia on-line broadcasting system and method thereof
CN101080002A (en) * 2007-07-04 2007-11-28 圆刚科技股份有限公司 Method and system for providing broadcast video/audio programs
CN101894150A (en) * 2010-07-05 2010-11-24 优视科技有限公司 Internet web page audio/video acquisition method and system for mobile communication equipment terminal
CN102710985A (en) * 2012-01-17 2012-10-03 晨星软件研发(深圳)有限公司 Method and system for realizing television screen shift in home LAN (local area network) and television equipment
CN102790764A (en) * 2012-06-25 2012-11-21 林征 Media projection playing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206561A1 (en) * 2005-03-09 2006-09-14 Tul Corporation Personal multimedia on-line broadcasting system and method thereof
CN101080002A (en) * 2007-07-04 2007-11-28 圆刚科技股份有限公司 Method and system for providing broadcast video/audio programs
CN101894150A (en) * 2010-07-05 2010-11-24 优视科技有限公司 Internet web page audio/video acquisition method and system for mobile communication equipment terminal
CN102710985A (en) * 2012-01-17 2012-10-03 晨星软件研发(深圳)有限公司 Method and system for realizing television screen shift in home LAN (local area network) and television equipment
CN102790764A (en) * 2012-06-25 2012-11-21 林征 Media projection playing method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954440A (en) * 2015-05-18 2015-09-30 烽火通信科技股份有限公司 Operation and maintenance system and method of Android set-top box
CN104954440B (en) * 2015-05-18 2019-03-08 烽火通信科技股份有限公司 A kind of operational system and method for Android set-top box
CN105516795A (en) * 2015-12-14 2016-04-20 四川长虹电器股份有限公司 Television screen sharing method under Android system
CN106303441A (en) * 2016-08-26 2017-01-04 山东康威通信技术股份有限公司 A kind of at subterranean tunnel system and method based on bluetooth highly-reliable transmission audio frequency and video
CN106303441B (en) * 2016-08-26 2019-09-24 山东康威通信技术股份有限公司 It is a kind of in system and method for the subterranean tunnel based on bluetooth highly-reliable transmission audio-video
CN116071907A (en) * 2022-12-30 2023-05-05 广东辰奕智能科技股份有限公司 Bluetooth BLE multi-decoding audio transmission system and transmission method

Similar Documents

Publication Publication Date Title
US11019373B2 (en) Multimedia device and control method therefor
CN105191326B (en) Dynamic image distribution in wireless communication system
CN104115466B (en) Radio display with multi-screen service
CN103222271B (en) Virtual set-top box
CN101159577B (en) Apparatus for receiving adaptive broadcast signal and method thereof
EP2628306B1 (en) Streaming digital video between video devices using a cable television system
CN204929037U (en) Digital device
CN104602098A (en) Video barrage display method and equipment thereof
CN201312356Y (en) Digital television network media phone set terminal
TWI513315B (en) Method, system, and tv with picture re-producing function
US8607284B2 (en) Method of outputting video content from a digital media server to a digital media renderer and related media sharing system
CN104519386A (en) Realizing of a media request by a one-way set top box
CN108874337A (en) Screen mirror image method and device thereof
CN103024523A (en) Method and system for sharing television programs based on set top box (STB)
CN104918122A (en) A method and device for sharing and controlling a plurality of devices in a home network
CN104581364A (en) Data sharing and control method, equipment and system for android set-top box
CN104754422A (en) Control method for realizing smart home equipments based on STB (Set Top Box)
WO2015035742A1 (en) Method, terminal and system for audio and video sharing of digital television
CN107872721A (en) A kind of multimedia data transmission method, terminal and computer-readable medium
CN104954846B (en) Element method of adjustment, equipment and system
KR102380673B1 (en) System and method for providing cloud based user interfaces
CN102316386A (en) Double-screen interaction method based on digital television receiving device, and device and system
CN105451055A (en) Method and system for remotely controlling IPTV set-top box
CN102299900A (en) Game operating method based on real-time video stream media coding
CN101668172B (en) Method, system and device for playing service content

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160118

Address after: 100085, No. three, No. 002, Section 1, building No. 3, 3rd floor, information industry base, Beijing, Haidian District

Applicant after: Star Software Technology Co.,Ltd.

Address before: 100085, No. three, No. 305, Section 1, building No. 3, 3rd floor, information industry base, Beijing, Haidian District

Applicant before: STAR TIMES COMMUNICATION NETWORK TECHNOLOGY CO., LTD.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429