CN102255782B - Channel management method for digital television and digital home network system - Google Patents
Channel management method for digital television and digital home network system Download PDFInfo
- Publication number
- CN102255782B CN102255782B CN 201110161864 CN201110161864A CN102255782B CN 102255782 B CN102255782 B CN 102255782B CN 201110161864 CN201110161864 CN 201110161864 CN 201110161864 A CN201110161864 A CN 201110161864A CN 102255782 B CN102255782 B CN 102255782B
- Authority
- CN
- China
- Prior art keywords
- adapter
- channel
- home gateway
- sends
- television
- 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.)
- Expired - Fee Related
Links
- 238000007726 management method Methods 0.000 title abstract description 9
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000004891 communication Methods 0.000 abstract description 8
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 7
- 238000012790 confirmation Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明实施例公开了一种数字电视中频道的管理方法及数字家庭网络系统,其中,该方法包括:数字电视中的电视适配器将频道请求信息发送给家庭网关;所述家庭网关根据所述频道请求信息将频道地址发送给所述电视适配器;所述电视适配器根据所述频道地址向所述家庭网关发送连接请求;所述家庭网关根据所述连接请求与所述电视适配器建立数据连接;所述家庭网关将获取到的频道数据发送给所述电视适配器。实施本发明实施例,通过连接的建立、数据的传输和连接的释放可以实现数字电视和家庭网关之间的可靠通信,通过在消息帧中增加字段可以更有效地控制管理多个数字电视,可以解决不同数字电视的不同频道需求的问题,能够降低硬件成本,且开发简单。
The embodiment of the present invention discloses a channel management method in digital TV and a digital home network system, wherein the method includes: the TV adapter in the digital TV sends channel request information to the home gateway; The request information sends the channel address to the TV adapter; the TV adapter sends a connection request to the home gateway according to the channel address; the home gateway establishes a data connection with the TV adapter according to the connection request; the The home gateway sends the obtained channel data to the TV adapter. By implementing the embodiment of the present invention, reliable communication between the digital TV and the home gateway can be realized through connection establishment, data transmission and connection release, and multiple digital TVs can be controlled and managed more effectively by adding fields in the message frame. Solving the problem of different channel demands of different digital TVs can reduce hardware cost and is easy to develop.
Description
技术领域 technical field
本发明涉及数字家庭网络技术领域,尤其涉及一种数字电视中频道的管理方法及数字家庭网络系统。The invention relates to the technical field of digital home network, in particular to a channel management method in digital television and a digital home network system.
背景技术 Background technique
随着家庭数字化的发展,一个家庭内部存在着多台数字电视早已变得非常普遍,甚至还将有更多的无线智能终端加入数字家庭的行列。当前接入用户家庭的有线电视网(Community Antenna Television,CATV)是提供数字电视节目的一个主要途径,除此之外用户也可以通过互联网来获取自己感兴趣的电视节目。With the development of family digitization, it has become very common to have multiple digital TVs in one family, and even more wireless smart terminals will join the ranks of digital families. The cable network (Community Antenna Television, CATV) currently connected to the user's home is a main way to provide digital TV programs. In addition, users can also obtain the TV programs they are interested in through the Internet.
现有的数字家庭环境是以家庭网关为中心的家庭网络,其中家庭网关负责管理统筹整个家庭的网络,是家庭网络中的核心;而除了家庭网关之外还可以有数字电视、移动终端、水电气表等数字终端设备。家庭网关不仅担当网关的功能且具有多种服务器的功能,如流媒体服务器的功能。目前有多种流媒体服务器,例如RealNetworks公司的RealSystem、微软公司的Windows Media、IBM公司的VideoCharger、Apple公司的QuickTime以及开源的VLC等。VLC多媒体播放器支持众多音频与视频解码器及文件格式,并支持各类流式协议。VLC不仅功能强大,而且可以根据开发需要进行详细的定制修改。The existing digital home environment is a home network centered on the home gateway, in which the home gateway is responsible for managing and coordinating the network of the whole family, and is the core of the home network; in addition to the home gateway, there can also be digital TV, mobile terminals, water Digital terminal equipment such as electrical meters. The home gateway not only acts as a gateway but also has various server functions, such as streaming media server functions. There are multiple streaming media servers at present, such as RealSystem of RealNetworks, Windows Media of Microsoft, VideoCharger of IBM, QuickTime of Apple, and VLC of open source. VLC multimedia player supports many audio and video codecs and file formats, and supports various streaming protocols. VLC is not only powerful, but also can be customized and modified in detail according to development needs.
在涉及多用户数字电视同时向服务器请求数字电视节目时,如何管理、协作不同用户之间的需求一直是尚未解决的问题。目前,双频头机顶盒能够满足两个用户同时选择不同的频道进行观看,但是这种方法也只能满足两个用户的需求,而对于更多的用户则又会失效,而且双频头意味着更高的成本,因此从硬件上增加接收卡必然导致成本增加,且没有解决更多用户需求的问题。双频头是通过布置两个电视接收卡接收来至CATV的电视信号,然后分别推送给不同的电视用户。而采用VLC作为流媒体服务器也存在不同方案,有些方案对VLC本身的代码进行修改已达到特定场合需求的目的,这样做的前提是需要对VLC的代码进行深入的剖析和理解,且这种方案的开发周期长、风险大,在修改的过程容易出错。When multi-user digital TV requests digital TV programs from the server at the same time, how to manage and coordinate the needs of different users has always been an unsolved problem. At present, the dual-frequency head set-top box can satisfy two users to select different channels to watch at the same time, but this method can only meet the needs of two users, and it will fail for more users, and the dual-frequency head means Higher cost, so increasing the receiving card from the hardware will inevitably lead to an increase in cost, and does not solve the problem of more user needs. The dual-frequency head is to receive the TV signal from CATV by arranging two TV receiving cards, and then push them to different TV users respectively. There are also different schemes for using VLC as a streaming media server. Some schemes modify the code of VLC itself to meet the needs of specific occasions. The development cycle is long, the risk is high, and it is easy to make mistakes during the modification process.
发明内容 Contents of the invention
本发明的目的在于克服现有技术的不足,本发明提供了一种数字电视中频道的管理方法及数字家庭网络系统,可以解决不同数字电视的不同频道需求的问题,能够降低硬件成本,且开发简单。The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a channel management method in digital TV and a digital home network system, which can solve the problem of different channel requirements of different digital TVs, reduce hardware costs, and develop Simple.
为了解决上述问题,本发明提出了一种数字电视中频道的管理方法,所述方法包括:In order to solve the above problems, the present invention proposes a method for managing channels in a digital television, said method comprising:
数字电视中的电视适配器中的主适配器将频道请求信息发送给家庭网关;The main adapter in the TV adapter in the digital TV sends the channel request information to the home gateway;
所述家庭网关根据所述频道请求信息将频道地址发送给所述电视适配器中的主适配器;The home gateway sends the channel address to the main adapter in the TV adapter according to the channel request information;
所述电视适配器中的主适配器根据所述频道地址向所述家庭网关发送连接请求;The main adapter in the TV adapter sends a connection request to the home gateway according to the channel address;
所述家庭网关根据所述连接请求与所述电视适配器中的主适配器建立数据连接;The home gateway establishes a data connection with the main adapter in the TV adapter according to the connection request;
所述家庭网关将获取到的频道数据发送给所述电视适配器中的主适配器;The home gateway sends the obtained channel data to the main adapter in the TV adapter;
所述家庭网关锁住所述电视适配器中的主适配器所请求获得的频道地址对应的频道所在的频点;The home gateway locks the frequency point where the channel corresponding to the channel address requested by the main adapter in the TV adapter is located;
所述电视适配器中的从适配器向所述家庭网关发送频道请求信息;The slave adapter in the TV adapter sends channel request information to the home gateway;
所述家庭网关判断所述频道请求信息对应的频道是否在所述主适配器所请求获得的频道地址对应的频道所在的频点;The home gateway determines whether the channel corresponding to the channel request information is at the frequency of the channel corresponding to the channel address requested by the main adapter;
若是,则所述家庭网关向所述从适配器发送频道数据;If so, the home gateway sends channel data to the slave adapter;
若否,则所述家庭网关向所述从适配器发送所述主适配器所请求获得的频道地址对应的频道所在的频点中的所有频道地址。If not, the home gateway sends all channel addresses in the frequency point where the channel corresponding to the channel address requested by the master adapter is located to the slave adapter.
优选地,所述家庭网关根据所述频道请求信息将频道地址发送给所述电视适配器中的主适配器的步骤包括:Preferably, the step of the home gateway sending the channel address to the main adapter in the TV adapter according to the channel request information includes:
所述家庭网关的网关控制点根据所述频道请求信息查询并获得所述频道请求信息对应的频点信息;The gateway control point of the home gateway queries and obtains frequency point information corresponding to the channel request information according to the channel request information;
所述网关控制点将所获得的频点信息发送给所述家庭网关的流媒体服务器;The gateway control point sends the obtained frequency point information to the streaming media server of the home gateway;
所述流媒体服务器根据所述频点信息获得频点信息对应的频道地址;The streaming media server obtains a channel address corresponding to the frequency point information according to the frequency point information;
所述流媒体服务器将所获得的频道地址发送给所述网关控制点;The streaming media server sends the obtained channel address to the gateway control point;
所述网关控制点将所述频道地址发送给所述电视适配器中的主适配器中的适配器控制点。The gateway control point sends the channel address to the adapter control point in the main adapter in the TV adapter.
优选地,所述电视适配器中的主适配器根据所述频道地址向所述家庭网关发送连接请求的步骤包括:Preferably, the step of the main adapter in the TV adapter sending a connection request to the home gateway according to the channel address includes:
所述电视适配器中的主适配器的流媒体播放器接收发自所述适配器控制点的频道地址;The streaming media player of the main adapter in the TV adapter receives the channel address sent from the adapter control point;
所述主适配器的流媒体播放器根据所述频道地址向所述家庭网关的流媒体服务器发送连接请求。The streaming media player of the main adapter sends a connection request to the streaming media server of the home gateway according to the channel address.
优选地,在所述家庭网关将获取到的频道数据发送给所述电视适配器的主适配器的步骤之后,还包括:Preferably, after the step of the home gateway sending the obtained channel data to the main adapter of the TV adapter, it further includes:
所述电视适配器的主适配器向所述家庭网关发送释放连接消息;The main adapter of the TV adapter sends a release connection message to the home gateway;
所述家庭网关根据所述释放连接消息断开所述家庭网关与所述电视适配器的主适配器之间的连接。The home gateway disconnects the connection between the home gateway and the main adapter of the TV adapter according to the release connection message.
优选地,在所述家庭网关向所述从适配器发送所述主适配器所请求获得的频道地址对应的频道所在的频点中的所有频道地址给所述从适配器的步骤之后,还包括:Preferably, after the step of the home gateway sending to the slave adapter all the channel addresses in the frequency point corresponding to the channel address requested by the master adapter to the slave adapter, it further includes:
所述从适配器在所述所有频道地址中选择任一频道,并根据该频道对应的频道地址将连接请求发送给所述家庭网关;The slave adapter selects any channel among all the channel addresses, and sends a connection request to the home gateway according to the channel address corresponding to the channel;
所述家庭网关根据所述连接请求与所述从适配器建立数据连接。The home gateway establishes a data connection with the slave adapter according to the connection request.
相应地,本发明实施例还公开了一种数字家庭网络系统,所述数字家庭网络系统包括家庭网关及至少一个数字电视,其特征在于,所述数字电视包括电视适配器,所述电视适配器包括主适配器和从适配器,所述主适配器和从适配器均包括流媒体播放器和适配器控制点,所述家庭网关包括网关控制点和流媒体服务器;其中,Correspondingly, the embodiment of the present invention also discloses a digital home network system, the digital home network system includes a home gateway and at least one digital TV, and it is characterized in that the digital TV includes a TV adapter, and the TV adapter includes a main An adapter and a slave adapter, the master adapter and the slave adapter all include a streaming media player and an adapter control point, and the home gateway includes a gateway control point and a streaming media server; wherein,
数字电视中的电视适配器中的主适配器将频道请求信息发送给家庭网关;The main adapter in the TV adapter in the digital TV sends the channel request information to the home gateway;
所述家庭网关根据所述频道请求信息将频道地址发送给所述电视适配器中的主适配器;The home gateway sends the channel address to the main adapter in the TV adapter according to the channel request information;
所述电视适配器中的主适配器根据所述频道地址向所述家庭网关发送连接请求;The main adapter in the TV adapter sends a connection request to the home gateway according to the channel address;
所述家庭网关根据所述连接请求与所述电视适配器中的主适配器建立数据连接;The home gateway establishes a data connection with the main adapter in the TV adapter according to the connection request;
所述家庭网关将获取到的频道数据发送给所述电视适配器中的主适配器;The home gateway sends the obtained channel data to the main adapter in the TV adapter;
所述家庭网关锁住所述电视适配器中的主适配器所请求获得的频道地址对应的频道所在的频点;The home gateway locks the frequency point where the channel corresponding to the channel address requested by the main adapter in the TV adapter is located;
所述电视适配器中的从适配器向所述家庭网关发送频道请求信息;The slave adapter in the TV adapter sends channel request information to the home gateway;
所述家庭网关判断所述频道请求信息对应的频道是否在所述主适配器所请求获得的频道地址对应的频道所在的频点;The home gateway determines whether the channel corresponding to the channel request information is at the frequency of the channel corresponding to the channel address requested by the main adapter;
若是,则所述家庭网关向所述从适配器发送频道数据;If so, the home gateway sends channel data to the slave adapter;
若否,则所述家庭网关向所述从适配器发送所述主适配器所请求获得的频道地址对应的频道所在的频点中的所有频道地址;If not, the home gateway sends all channel addresses in the frequency point where the channel corresponding to the channel address requested by the master adapter is located to the slave adapter;
其中,家庭网关的网关控制点根据频道请求信息查询并获得频道请求信息对应的频点信息;网关控制点将所获得的频点信息发送给家庭网关的流媒体服务器;流媒体服务器根据频点信息获得频点信息对应的频道地址;流媒体服务器将所获得的频道地址发送给网关控制点;网关控制点将频道地址发送给电视适配器中的适配器控制点;电视适配器中的流媒体播放器接收发自适配器控制点的频道地址;流媒体播放器根据频道地址向媒体网关中的流媒体服务器发送连接请求。Among them, the gateway control point of the home gateway queries and obtains the frequency point information corresponding to the channel request information according to the channel request information; the gateway control point sends the obtained frequency point information to the streaming media server of the home gateway; Obtain the channel address corresponding to the frequency point information; the streaming media server sends the obtained channel address to the gateway control point; the gateway control point sends the channel address to the adapter control point in the TV adapter; the streaming media player in the TV adapter receives the sent The channel address of the self-adapter control point; the streaming media player sends a connection request to the streaming media server in the media gateway according to the channel address.
优选地,所述从适配器在所述所有频道地址中选择任一频道,并根据该频道对应的频道地址将连接请求发送给所述家庭网关;所述家庭网关根据所述连接请求与所述从适配器建立数据连接。Preferably, the slave adapter selects any channel among all the channel addresses, and sends a connection request to the home gateway according to the channel address corresponding to the channel; the home gateway communicates with the slave according to the connection request The adapter establishes a data connection.
实施本发明实施例,通过连接的建立、数据的传输和连接的释放可以实现数字电视和家庭网关之间的可靠通信,通过在消息帧中增加如“DEVID”等字段可以更有效地控制管理多个数字电视(具体是电视适配器),可以解决不同数字电视的不同频道需求的问题,能够降低硬件成本,且开发简单。Implementing the embodiment of the present invention, the reliable communication between the digital TV and the home gateway can be realized through the establishment of the connection, the transmission of the data and the release of the connection, and the more effective control and management of multiple A digital TV (specifically, a TV adapter) can solve the problem of different channel requirements of different digital TVs, can reduce hardware costs, and is easy to develop.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例的数字电视中频道的管理方法的流程示意图;1 is a schematic flow diagram of a channel management method in a digital television according to an embodiment of the present invention;
图2是本发明方法实施例中数据连接的建立过程示意图;Fig. 2 is a schematic diagram of the establishment process of the data connection in the method embodiment of the present invention;
图3是本发明方法实施例中数据交换的过程示意图;Fig. 3 is a schematic diagram of the process of data exchange in the method embodiment of the present invention;
图4是本发明方法实施例中多个电视适配器的配置示意图;Fig. 4 is a schematic configuration diagram of a plurality of television adapters in a method embodiment of the present invention;
图5是本发明方法实施例中连接释放的过程示意图;Fig. 5 is a schematic diagram of the process of connection release in the method embodiment of the present invention;
图6是本发明实施例的数字家庭网络系统结构组成示意图。FIG. 6 is a schematic diagram of the structure and composition of the digital home network system according to the embodiment of the present invention.
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图1是本发明实施例的数字电视中频道的管理方法的流程示意图,如图1所示,该方法包括:Fig. 1 is a schematic flow chart of a channel management method in a digital television according to an embodiment of the present invention. As shown in Fig. 1, the method includes:
S101,数字电视中的电视适配器将频道请求信息发送给家庭网关;S101, the TV adapter in the digital TV sends the channel request information to the home gateway;
S102,家庭网关根据频道请求信息将频道地址发送给电视适配器;S102, the home gateway sends the channel address to the TV adapter according to the channel request information;
S103,电视适配器根据频道地址向家庭网关发送连接请求;S103, the TV adapter sends a connection request to the home gateway according to the channel address;
S104,家庭网关根据连接请求与电视适配器建立数据连接;S104, the home gateway establishes a data connection with the TV adapter according to the connection request;
S105,家庭网关将获取到的频道数据发送给电视适配器。S105. The home gateway sends the obtained channel data to the TV adapter.
进一步地,S102包括:Further, S102 includes:
家庭网关的网关控制点根据频道请求信息查询并获得频道请求信息对应的频点信息;网关控制点将所获得的频点信息发送给家庭网关的流媒体服务器;流媒体服务器根据频点信息获得频点信息对应的频道地址;流媒体服务器将所获得的频道地址发送给网关控制点;网关控制点将频道地址发送给电视适配器中的适配器控制点。The gateway control point of the home gateway queries and obtains the frequency point information corresponding to the channel request information according to the channel request information; the gateway control point sends the obtained frequency point information to the streaming media server of the home gateway; the streaming media server obtains the frequency point information according to the frequency point information The channel address corresponding to the point information; the streaming media server sends the obtained channel address to the gateway control point; the gateway control point sends the channel address to the adapter control point in the TV adapter.
在本发明实施例中,流媒体服务器为VLC(VideoLan Client);网关控制点用以流媒体服务器和客户端之间的通信加以监督管理。电视适配器包含有适配器控制点和客户端流媒体播放器,本发明实施例采用VLC播放器来作为流媒体的播放器,适配器控制点用以监控电视适配器的通信,包括适配器控制点与流媒体播放器之间的通信、电视适配器与家庭网关之间的通信。In the embodiment of the present invention, the streaming media server is a VLC (VideoLan Client); the gateway control point supervises and manages the communication between the streaming media server and the client. The TV adapter includes an adapter control point and a client streaming media player. The embodiment of the present invention uses a VLC player as a streaming media player, and the adapter control point is used to monitor the communication of the TV adapter, including the adapter control point and the streaming media player. Communication between devices, communication between TV adapter and home gateway.
下面通过实例对本发明方法的频道请求过程进行详细描述。该过程包括以下步骤:The channel request process of the method of the present invention will be described in detail below with an example. The process includes the following steps:
步骤1:用户通过遥控器进行节目的频道选择,电视适配器中的监听模块接收到红外信号,将该信号转交给解析模块进行解析,解析获得频道请求信息;Step 1: The user selects the channel of the program through the remote control, the monitoring module in the TV adapter receives the infrared signal, and transfers the signal to the analysis module for analysis, and obtains the channel request information through analysis;
步骤2:适配器控制点将频道请求信息发送给家庭网关;Step 2: The adapter control point sends the channel request information to the home gateway;
步骤3:家庭网关的网关控制点接收到频道请求信息,查表进行频点对应,并且将所查找得到的频点信息提交给流媒体服务器;Step 3: The gateway control point of the home gateway receives the channel request information, looks up the table for frequency point correspondence, and submits the found frequency point information to the streaming media server;
步骤4:流媒体服务器根据频点得出其对应的频道地址,然后将该频道地址返回给网关控制点;Step 4: The streaming media server obtains its corresponding channel address according to the frequency point, and then returns the channel address to the gateway control point;
步骤5:网关控制点将频道地址发送给电视适配器中的适配器控制点;Step 5: the gateway control point sends the channel address to the adapter control point in the TV adapter;
步骤6:适配器控制点将地址转发给适配器中的客户端流媒体播放器,客户端流媒体播放器根据该频道地址向流媒体服务器发送连接请求。Step 6: The adapter control point forwards the address to the client streaming media player in the adapter, and the client streaming media player sends a connection request to the streaming media server according to the channel address.
在本发明实施例中,主要是在应用层上进行可靠传输设计。In the embodiment of the present invention, reliable transmission design is mainly performed on the application layer.
用于连接请求的消息帧结构的定义如表1,包含协议的版本号(Version),标识客户端的设备号(DevID),命令字段(Command),数据字段(Length)长度(Data)。The definition of the message frame structure used for the connection request is shown in Table 1, including the version number (Version) of the protocol, the device number (DevID) identifying the client, the command field (Command), and the data field (Length) length (Data).
表1消息帧结构定义表Table 1 Message frame structure definition table
消息帧结构的详细定义表如表2所示。The detailed definition table of the message frame structure is shown in Table 2.
表2帧结构详细定义表Table 2 Frame structure detailed definition table
如表1所示,版本号只需要1个字节就足够;因为在家庭中用户数量还是有限的,但是用1字节可以分配256个用户。As shown in Table 1, only 1 byte is enough for the version number; because the number of users in a family is still limited, but 256 users can be allocated with 1 byte.
进一步的,S103可包括:电视适配器中的流媒体播放器接收发自适配器控制点的频道地址;流媒体播放器根据频道地址向媒体网关中的流媒体服务器发送连接请求。Further, S103 may include: the streaming media player in the TV adapter receives the channel address sent from the adapter control point; the streaming media player sends a connection request to the streaming media server in the media gateway according to the channel address.
这里的流媒体播放器为电视适配器中的客户端流媒体播放器。The streaming media player here is a client streaming media player in the TV adapter.
图2是本发明方法实施例中数据连接的建立过程示意图,开始阶段适配器控制点与网关控制点两端都处于关闭(CLOSED)状态。图2中在对象下面的方框分别示出了适配器控制点与网关控制点各自所处的状态。家庭网关开机经初始化后处于监听状态,等待其它设备(如数字电视)的连接请求。在数字电视开关后,电视适配器中的适配器控制点给家庭网关的网关控制点发送一个“HELLO”消息,表示连接请求,然后处于“SYNSENT”状态,如果适配器控制点在规定的时间内没有得到回复,则适配器控制点一直处于“SYNSENT”状态,继续向网关控制点发送连接请求。家庭网关的网关控制点接收到“HELLO”消息后,对适配器控制点回复一个确认消息“ACK=1”,同时给该适配器控制点所在的适配器分配一个唯一的设备号“DEV=XXX”,发送完之后网关控制点处于“SYNRCVD”状态。适配器接收到网关发来的确认信息和设备号分配之后,回复一个确认消息“ACK=1”,然后处于连接建立的状态,即“ESTABLISHED”状态。网关控制点收到来自适配器控制点的确认消息“ACK=1”后,也处于连接建立的状态(“ESTABLISHED”状态)。至此,完成了连接建立的3次握手过程,后续可以进行数据交换。上述连接建立过程的具体步骤如下:FIG. 2 is a schematic diagram of the establishment process of the data connection in the method embodiment of the present invention. In the initial stage, both ends of the adapter control point and the gateway control point are in the closed (CLOSED) state. The boxes below the object in FIG. 2 respectively show the respective states of the adapter control point and the gateway control point. After being initialized, the home gateway is in a listening state, waiting for connection requests from other devices (such as digital TV). After the digital TV is switched on, the adapter control point in the TV adapter sends a "HELLO" message to the gateway control point of the home gateway, indicating a connection request, and then it is in the "SYNSENT" state. If the adapter control point does not get a reply within the specified time , the adapter control point is always in the "SYNSENT" state, and continues to send connection requests to the gateway control point. After the gateway control point of the home gateway receives the "HELLO" message, it replies an acknowledgment message "ACK=1" to the adapter control point, and at the same time assigns a unique device number "DEV=XXX" to the adapter where the adapter control point is located, and sends After the gateway control point is in the "SYNRCVD" state. After the adapter receives the confirmation message from the gateway and the allocation of the device number, it replies with a confirmation message "ACK=1", and then is in the state of connection establishment, that is, the "ESTABLISHED" state. After the gateway control point receives the acknowledgment message "ACK=1" from the adapter control point, it is also in the connection establishment state ("ESTABLISHED" state). So far, the three-way handshake process of connection establishment has been completed, and data exchange can be performed subsequently. The specific steps of the above connection establishment process are as follows:
步骤1:家庭网关开机后经过一系列初始化,由“CLOSED”状态转为“LISTEN”状态,适配器经过初始化后,向网关控制点发送连接请求(“HELLO”消息),并处于“SYN-SENT”状态;Step 1: After the home gateway is turned on, it goes through a series of initializations, from the "CLOSED" state to the "LISTEN" state. After the adapter is initialized, it sends a connection request ("HELLO" message) to the gateway control point and is in the "SYN-SENT" state. state;
步骤2:网关控制点收到“HELLO”消息之后向适配器控制点回复一个确认消息并且给该适配器控制点所在的适配器分配一个设备号,“ACK=1,DEVID=XXX”,则网关控制点进入“SYN-RCVD”状态;Step 2: After receiving the "HELLO" message, the gateway control point replies a confirmation message to the adapter control point and assigns a device number to the adapter where the adapter control point is located, "ACK=1, DEVID=XXX", then the gateway control point enters "SYN-RCVD" state;
步骤3:适配器控制点接收到该确认消息后进入“ESTABLISHED”状态,同时向网关控制点发送一个“ACK=1”消息确认连接建立;网关控制点收到适配器控制点发送的“ACK=1”消息后进入连接建立状态“ESTABLISHED”,至此连接的建立过程结束。Step 3: The adapter control point enters the "ESTABLISHED" state after receiving the confirmation message, and at the same time sends an "ACK=1" message to the gateway control point to confirm the establishment of the connection; the gateway control point receives the "ACK=1" sent by the adapter control point After the message, enter the connection establishment state "ESTABLISHED", and the establishment process of the connection is over.
表3是消息帧结构中“命令字”字段的分配表,该命令字字段标识该数据包的意义。Table 3 is an allocation table of the "command word" field in the message frame structure, and the command word field identifies the meaning of the data packet.
表3消息帧结构中“命令字”字段的分配表Table 3 Allocation table of the "command word" field in the message frame structure
具体实施中,如图3所示,S105的实现如下描述。In specific implementation, as shown in FIG. 3 , the implementation of S105 is described as follows.
图3所示的是一次典型的数据交换过程。首先由适配器控制点发送一个对P1频道的请求消息即“Request P1”,这个P1频道可以是由用户通过遥控操作,适配器控制点所接收并解析得到;网关控制点接收到该请求信息后,判断该频道是否属于当前频点,如果是则返回该频道的频道地址;适配器控制点获得频道地址后将该频道地址发送给适配器控制点所在适配器的流媒体播放器;流媒体播放器通过频道地址“rtsp:P1”向流媒体服务器发送媒体数据请求;流媒体服务器接收到流媒体数据请求后向流媒体播放器发送流媒体数据(频道数据)。具体实施中,在适配器控制点和网关控制点之间可以存在心跳检测,以便双方确认对方的存在,这个心跳时间可以设为1分钟或者其它。Figure 3 shows a typical data exchange process. First, the adapter control point sends a request message for the P1 channel, that is, "Request P1". This P1 channel can be obtained by the user through remote control, and the adapter control point receives and parses it; after receiving the request message, the gateway control point judges Whether the channel belongs to the current frequency point, if so, return the channel address of the channel; after the adapter control point obtains the channel address, send the channel address to the streaming media player of the adapter where the adapter control point is located; the streaming media player passes the channel address " rtsp:P1" sends a media data request to the streaming media server; the streaming media server sends the streaming media data (channel data) to the streaming media player after receiving the streaming media data request. In a specific implementation, there may be a heartbeat detection between the adapter control point and the gateway control point, so that both parties can confirm the existence of the other party, and the heartbeat time can be set to 1 minute or other.
当本发明实施例的数字家庭网络系统包括多个适配器时,本发明实施例的方法还可以包括:When the digital home network system in the embodiment of the present invention includes multiple adapters, the method in the embodiment of the present invention may also include:
家庭网关锁住电视适配器中的主适配器所请求获得的频道地址对应的频道所在的频点;The home gateway locks the frequency point of the channel corresponding to the channel address requested by the main adapter in the TV adapter;
电视适配器中的从适配器向家庭网关发送频道请求信息;The slave adapter in the TV adapter sends channel request information to the home gateway;
家庭网关判断频道请求信息对应的频道是否主适配器所请求获得的频道地址对应的频道所在的频点;The home gateway judges whether the channel corresponding to the channel request information is the frequency point where the channel corresponding to the channel address requested by the master adapter is located;
若是,则家庭网关向从适配器发送频道数据;If so, the home gateway sends channel data to the slave adapter;
若否,则家庭网关向从适配器发送主适配器所请求获得的频道地址对应的频道所在的频点中的所有频道地址给从适配器。If not, the home gateway sends all channel addresses in the frequency point corresponding to the channel address requested by the master adapter to the slave adapter to the slave adapter.
如图4所示,该过程实现如下:As shown in Figure 4, the process is implemented as follows:
在上述数据交换过程中涉及到该请求是否为当前频点的问题,如果不是当前频点这需要另外处理。在单个用户(单个电视适配器)的情况下,流媒体服务器可以通过切换频点,然后返回相应的频道地址信息;但是在有着多个用户(多个电视适配器)的数字家庭网络环境中,当前的流媒体服务器每次只能锁住一个频点,而每个频点包含7个数字电视频道,每次传输是一个频点的所有信息。主适配器和从适配器是由数据连接建立时确定的,即由适配器所获的设备号DEVID来决定,先和家庭网关A建立数据连接的适配器为主适配器B,之后的为从适配器C。主适配器B请求P1频道时,家庭网关A锁住P1所在的F1频点,然后向主适配器B传输F1的数据,主适配器B在F1中的数据中解码出P1频道数据。从适配器C对家庭网关A请求P2频道,家庭网关A判断该P2频道是否属于F1频点内,如果是,向从适配器C传送F1数据,然后从适配器C在F1中解码出P2频道数据;如果P2频道不属于频点F1内,那么家庭网关A对从适配器C返回一个F1的所有频道的信息,从适配器C在F1提供的7个频道内重新选择。从适配器C可以选择F1中的任何一个频道,也可以选择放弃,退出。In the above data exchange process, the question of whether the request is the current frequency point is involved. If it is not the current frequency point, it needs to be processed separately. In the case of a single user (single TV adapter), the streaming media server can switch the frequency point, and then return the corresponding channel address information; but in a digital home network environment with multiple users (multiple TV adapters), the current The streaming media server can only lock one frequency point at a time, and each frequency point contains 7 digital TV channels, and each transmission is all information of one frequency point. The master adapter and the slave adapter are determined when the data connection is established, that is, determined by the device number DEVID obtained by the adapter. The adapter that first establishes a data connection with the home gateway A is the master adapter B, and the latter is the slave adapter C. When the main adapter B requests the P1 channel, the home gateway A locks the F1 frequency point where P1 is located, and then transmits the F1 data to the main adapter B, and the main adapter B decodes the P1 channel data from the data in the F1. The slave adapter C requests the P2 channel from the home gateway A, and the home gateway A judges whether the P2 channel belongs to the F1 frequency point, and if so, transmits the F1 data to the slave adapter C, and then decodes the P2 channel data from the adapter C in F1; if The P2 channel does not belong to the frequency point F1, then the home gateway A reselects the information of all channels of an F1 returned from the adapter C from the 7 channels provided by the adapter C. From adapter C, you can choose any channel in F1, or you can choose to give up and exit.
在S105之后,还可以包括以下步骤:After S105, the following steps may also be included:
电视适配器向家庭网关发送释放连接消息;The TV adapter sends a release connection message to the home gateway;
家庭网关根据释放连接消息断开家庭网关与电视适配器之间的连接。The home gateway disconnects the connection between the home gateway and the TV adapter according to the release connection message.
图5示出了本发明方法的连接释放过程。Fig. 5 shows the connection release process of the method of the present invention.
当主适配器B要退出时,向家庭网关A发送一个“GOODBYE”消息;家庭网关A收到主适配器B的退出消息后停止对主适配器B的数据传输,并且撤销主适配器B的设备号;家庭网关A选择原来的其中一个从适配器为新的主设备,如图5所示,可以选择适配器C,向适配器C发送选定通知消息;适配器C返回一个确认消息;这样就完成了主适配器B的退出和一个新主适配器C的选定。如果退出的是一个从适配器,例如从适配器C,则只需要进行连接的释放过程,而不涉及主适配器的更选过程。When main adapter B is about to exit, send a "GOODBYE" message to home gateway A; home gateway A stops data transmission to main adapter B after receiving main adapter B's exit message, and revokes the device number of main adapter B; home gateway A selects one of the original slave adapters as the new master device, as shown in Figure 5, can select adapter C and send a selection notification message to adapter C; adapter C returns a confirmation message; thus completing the exit of master adapter B and a new primary adapter C selected. If it is a slave adapter, such as slave adapter C, only the process of releasing the connection is required, and the process of changing the master adapter is not involved.
需要注意的是,如果一个适配器意外退出,家庭网关可以通过心跳检测来确认该适配器是否存在。如果不存在,撤销其设备号。如果家庭网关出现意外,则适配器也可以通过心跳检测来确认家庭网关是否存在。It should be noted that if an adapter is unexpectedly removed, the home gateway can confirm the presence of the adapter through heartbeat detection. If it does not exist, revoke its device number. If the home gateway is unexpected, the adapter can also confirm the presence of the home gateway through heartbeat detection.
在本发明实施例中,通过连接的建立、数据的传输和连接的释放可以实现数字电视和家庭网关之间的可靠通信,通过在消息帧中增加如“DEVID”等字段可以更有效地控制管理多个数字电视(具体是电视适配器),另外,可以实现快速开发的目的。In the embodiment of the present invention, reliable communication between the digital TV and the home gateway can be realized through connection establishment, data transmission and connection release, and more effective control and management can be achieved by adding fields such as "DEVID" in the message frame. Multiple digital TVs (specifically, TV adapters), in addition, can achieve the purpose of rapid development.
相应地,本发明实施例还公开了一种数字家庭网络系统,如图6所示,该数字家庭网络系统包括家庭网关1及至少一个数字电视(图中未示出),数字电视包括电视适配器2,电视适配器2包括流媒体播放器21和适配器控制点20,家庭网关包括网关控制点10和流媒体服务器11;其中,Correspondingly, the embodiment of the present invention also discloses a digital home network system, as shown in Figure 6, the digital home network system includes a
数字电视中的电视适配器2将频道请求信息发送给家庭网关1;The
家庭网关1根据频道请求信息将频道地址发送给电视适配器2;The
电视适配器1根据频道地址向家庭网关1发送连接请求;
家庭网关1根据连接请求与电视适配器2建立数据连接;The
家庭网关1将获取到的频道数据发送给电视适配器2。The
另外,当存在多个电视适配器时,家庭网关锁住电视适配器中的主适配器所请求获得的频道地址对应的频道所在的频点;电视适配器中的从适配器向家庭网关发送频道请求信息;家庭网关判断频道请求信息对应的频道是否主适配器所请求获得的频道地址对应的频道所在的频点;若是,则家庭网关向从适配器发送频道数据;若否,则家庭网关向从适配器发送主适配器所请求获得的频道地址对应的频道所在的频点中的所有频道地址给从适配器。从适配器在所有频道地址中选择任一频道,并根据该频道对应的频道地址将连接请求发送给家庭网关;家庭网关根据连接请求与从适配器建立数据连接。In addition, when there are multiple TV adapters, the home gateway locks the frequency point of the channel corresponding to the channel address requested by the main adapter in the TV adapter; the slave adapter in the TV adapter sends channel request information to the home gateway; the home gateway Determine whether the channel corresponding to the channel request information is the frequency point of the channel corresponding to the channel address requested by the master adapter; if so, the home gateway sends channel data to the slave adapter; if not, the home gateway sends the master adapter to the slave adapter. All the channel addresses in the frequency point corresponding to the obtained channel address are given to the slave adapter. The slave adapter selects any channel from all channel addresses, and sends a connection request to the home gateway according to the channel address corresponding to the channel; the home gateway establishes a data connection with the slave adapter according to the connection request.
上述系统还可以UTI卡12,用于从CATV中获取频道数据,流媒体服务器11通过UTI卡12获取电视适配器2所请求的频道数据。The above system can also use a
关于本发明实施例中的数字家庭网络系统中的家庭网关与电视适配器之间的连接建立、数据传输、连接释放的实现过程可参见本发明方法实施例中的相关描述,这里不再赘述。For the implementation process of connection establishment, data transmission, and connection release between the home gateway and the TV adapter in the digital home network system in the embodiment of the present invention, please refer to the relevant description in the method embodiment of the present invention, which will not be repeated here.
以上对本发明实施例所提供的数字电视中频道的管理方法及数字家庭网络系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The channel management method and digital home network system in digital TV provided by the embodiment of the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110161864 CN102255782B (en) | 2011-06-15 | 2011-06-15 | Channel management method for digital television and digital home network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110161864 CN102255782B (en) | 2011-06-15 | 2011-06-15 | Channel management method for digital television and digital home network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102255782A CN102255782A (en) | 2011-11-23 |
CN102255782B true CN102255782B (en) | 2012-12-05 |
Family
ID=44982787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110161864 Expired - Fee Related CN102255782B (en) | 2011-06-15 | 2011-06-15 | Channel management method for digital television and digital home network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102255782B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105407547A (en) * | 2015-11-30 | 2016-03-16 | 重庆金鑫智慧科技有限公司 | Multipurpose Internet of things cloud gateway |
CN105846998A (en) * | 2016-04-27 | 2016-08-10 | 江苏利鼎微系统有限公司 | Asynchronous LED display control card management system and encryption method |
CN107579882A (en) * | 2017-08-14 | 2018-01-12 | 苏州众天力信息科技有限公司 | A kind of intelligent home device adds the communication anti-interference method that logout is closed |
CN111050206B (en) * | 2018-10-12 | 2023-05-23 | 深圳市茁壮网络股份有限公司 | Method and device for acquiring video and audio data |
CN111667678B (en) * | 2020-05-11 | 2022-01-18 | 深圳蚁石科技有限公司 | Remote controller and airplane short-distance code matching method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201118728Y (en) * | 2007-11-16 | 2008-09-17 | 上海华韧光电科技有限公司 | STB for simultaneous control of two TV sets |
CN101854464A (en) * | 2010-06-09 | 2010-10-06 | 华为终端有限公司 | Receiving method, device and system of digital television |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100656526B1 (en) * | 2005-09-09 | 2006-12-11 | 삼성전자주식회사 | Bandwidth guarantee system and method for video on demand service using token allocation |
KR101138395B1 (en) * | 2006-09-22 | 2012-04-27 | 삼성전자주식회사 | Method and apparatus for sharing access right of content |
-
2011
- 2011-06-15 CN CN 201110161864 patent/CN102255782B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201118728Y (en) * | 2007-11-16 | 2008-09-17 | 上海华韧光电科技有限公司 | STB for simultaneous control of two TV sets |
CN101854464A (en) * | 2010-06-09 | 2010-10-06 | 华为终端有限公司 | Receiving method, device and system of digital television |
Also Published As
Publication number | Publication date |
---|---|
CN102255782A (en) | 2011-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103428556B (en) | The method and system of multi-screen interactive | |
CN102739779B (en) | A kind of digital home's exchange method based on DLNA, system and relevant device | |
CN107707533B (en) | Company's wheat method, system and storage medium based on Web | |
CN102255782B (en) | Channel management method for digital television and digital home network system | |
CN107005797A (en) | It was found that and management be directed to wireless display system in multiple places isochronous audio or video streaming services | |
CN103533389A (en) | Video pushing method and video pushing system | |
CN102571461B (en) | Method and system for managing access network cluster based on gigabit Ethernet passive optical network and Ethernet over coax (GEPON+EoC) system | |
US10757195B2 (en) | Device interconnection and service discovery via a communication cloud | |
US20230388754A1 (en) | Communication method and apparatus for multicast and broadcast service, medium, and electronic device | |
CN105763898A (en) | Method and system for controlling IPTV set-top box by voice | |
CN108234518A (en) | A kind of method, apparatus, terminal and the storage medium of terminal communication | |
US20110138425A1 (en) | Method and system for sharing channel map of digital broadcast in home network | |
CN102571615B (en) | Quality of service (QOS) strategy realizing method based on Ethernet over coax (EOC) terminal | |
CN102571409A (en) | Service request management system and method for realizing service across-terminal application | |
CN104093045A (en) | Method and system for processing OTT TV playing request based on source return | |
CN104023253A (en) | Method and system for transforming one-way set-top box into two-way set-top box | |
CN101521852B (en) | Mobile digital television broadcasting method of mobile digital TV broadcasting system | |
CN104735475A (en) | Video-on-demand method, back-stage management server and video-on-demand system | |
US10587569B2 (en) | Streaming service providing method and device | |
CN109936563A (en) | A kind of data processing method and device of simultaneous interpretation | |
CN101945059A (en) | IP-based digital home common gateway system | |
CN105812909A (en) | Video transmission method and device | |
CN102170439B (en) | Application service expansion system | |
CN102244657B (en) | The register method of multipoint control unit cascade conference and system | |
CN101632261A (en) | Full mesh rates transaction in the network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121205 Termination date: 20150615 |
|
EXPY | Termination of patent right or utility model |