基于 TCP/IP网络的远程电视调谐控制系统及方法 技术领域 TCP / IP network-based remote television tuning control system and method
本发明涉及通信领域, 尤其涉及一种基于 TCP/IP网络的远程电视调谐控制 系统及方法。 背景技术 The present invention relates to the field of communications, and in particular, to a remote television tuning control system and method based on a TCP / IP network. Background technique
随着信息家电以及多媒体技术的发展, 家用电器信息化已成为一个不可阻 挡的趋势, 另外, 网络技术的迅速普及, 为传统的电视传输提供了新的媒介一 一互联网, 各种网络电视应运而生; 目前的远程网络电视一般^ ^于节目緩冲 With the development of information appliances and multimedia technology, the informatization of household appliances has become an unstoppable trend. In addition, the rapid popularization of network technology has provided a new medium for traditional TV transmission. The Internet, various Internet TVs came into being. Health; the current remote network TV is generally ^ ^ in the program buffer
(TV Program buffering)的原理, 即将电视节目的内容捕捉, 存放到硬盘, 访问者 从远程读取这些节目的数据流来播放, 这种方式存在很多缺点, 比如要占用很 大的硬盘空间, 实时性较差, 无法进行电视频道调谐等缺点。 发明内容 The principle of (TV Program buffering) is to capture and store the content of TV programs to a hard disk, and the visitors read the data streams of these programs from a remote location for playback. This method has many disadvantages, such as taking up a large amount of hard disk space, Poor performance, such as the inability to tune TV channels. Summary of the invention
本发明的目的就是提出一种基于 TCP/IP网络的远程电视调谐控制系统及方 法, 以解决现有 IPTV技术中实时性差, 无法进行即时调谐的缺点。 为此, 本发 明采用如下方案: The purpose of the present invention is to propose a remote TV tuning control system and method based on the TCP / IP network, so as to solve the shortcomings of poor real-time performance and unable to perform instant tuning in the existing IPTV technology. To this end, the present invention adopts the following scheme:
一种基于 TCP/IP网络的远程电视调谐控制系统, 其特征在于包括通过互联 网连接的主机端模块和客户端模块; A remote television tuning control system based on a TCP / IP network, which is characterized by including a host-side module and a client-side module connected through the Internet;
所述的主机端模块连接有带有电视调谐器的电视卡, 通过该电视卡与电视 天线相连接, 接收并解释客户端通过互联网发送的命令, 对客户端的电视进行 相应的操作; The host-side module is connected with a TV card with a TV tuner, and the TV card is connected to the TV antenna through the TV card, receives and interprets commands sent by the client through the Internet, and performs corresponding operations on the client's TV;
所述的客户端模块安装有客户程序, 用以播放来自主机端模块的视频 /音频 数据, 并通过互联网发送控制命令给主机端模块; The client module is installed with a client program for playing video / audio data from the host module, and sending control commands to the host module via the Internet;
所述的主机端模块和客户端模块通过 TCP/IP协议进行通讯。
所述的主机端模块进一步包括: The host-side module and the client-side module communicate through the TCP / IP protocol. The host-side module further includes:
套接字收发器模块、命令编码 /解码器模块和 DirectShow电视调谐执行单元 模块; Socket transceiver module, command encoder / decoder module and DirectShow TV tuning execution unit module;
所述套接字收发器模块接收来自客户端模块的控制命令并将该控制命令传 递给命令编码 /解码器模块; 接收来自天线端的视频 /音频数据, 并将该数据编码 后通过互联网发送给客户端模块; The socket transceiver module receives a control command from a client module and passes the control command to a command encoder / decoder module; receives video / audio data from an antenna end, and encodes the data and sends it to a client through the Internet End module
所述命令编码 /解码器模块把套接字收发器模块接收到的控制命令解码并触 发 DirectShow电视调谐执行单元执行相应的命令; 并将相应的调谐结果反馈信 息通过套接字收发器模块发送给客户端模块; 据命令编码 /解码器模块传递的控制命令实现对电视调谐器的控制。 The command encoder / decoder module decodes the control command received by the socket transceiver module and triggers the DirectShow television tuning execution unit to execute the corresponding command; and sends the corresponding tuning result feedback information to the socket transceiver module to the Client module; Controls the TV tuner according to the control commands passed by the command encoder / decoder module.
所述的客户端模块进一步包括: 电视调谐器界面模拟模块、 命令编码器模 块、 套接字收发器模块; The client module further includes: a television tuner interface simulation module, a command encoder module, and a socket transceiver module;
所述的电视调谐器界面模拟模块完成用户控制命令的输入; The television tuner interface simulation module completes the input of user control commands;
所述的命令编码器模块把用户的控制命令组装成数据包文并经套接字收发 器模块发送给主机端模块; The command encoder module assembles the user's control command into a data packet and sends it to the host-side module via the socket transceiver module;
所述的套接字收发器模块经互联网发送或者接收来自主机端模块的数据。 所述的命令包括频道扫描、 频道切换、 频道增加、 频道减少中的一个或多 个的组合。 The socket transceiver module sends or receives data from the host-side module via the Internet. The command includes a combination of one or more of channel scanning, channel switching, channel increasing, and channel decreasing.
所述的电视天线, 可以是有线电视天线, 也可以是普通电视天线。 The television antenna may be a cable television antenna or an ordinary television antenna.
所述的互联网连接, 可以是有线连接, 也可以是无线连接。 The Internet connection may be a wired connection or a wireless connection.
一种基于 TCP/IP 网络的电视调谐远程控制方法, 主机端安装有 Microsoft A remote control method for TV tuning based on TCP / IP network, Microsoft is installed on the host side
DirectShow程序, 通过互联网与客户端通讯, 对电视调谐器进行控制, 其特征 在于包括: The DirectShow program, which communicates with the client through the Internet to control the TV tuner, is characterized by:
编码步骤: 客户端将控制命令进行编码; Encoding step: The client encodes the control command;
发送步骤: 经互联网通过套接字模块将编码后的数据发送给主机端;
解码步骤: 主机端接收客户端发送的数据, 将其进行解码; Sending steps: Send the encoded data to the host end via the socket module via the Internet; Decoding step: the host receives the data sent by the client and decodes it;
执行步骤: 主机端根据解码后的控制命令, 执行相应的操作; Execution steps: The host performs corresponding operations according to the decoded control command;
接收步骤: 客户端经互联网接 ifc主机端发送的数据; Receiving steps: The client receives the data sent by the ifc host through the Internet;
播放步骤: 客户端播放主机端 送的视频 /音频数据。 Playback steps: The client plays the video / audio data sent by the host.
所述的控制命令包括频道扫描、 频道切换、 频道增加、 频道减少中的一种 或多种的组合。 The control command includes one or a combination of channel scanning, channel switching, channel increasing, and channel decreasing.
所述的方法, 还包括: The method further includes:
响应步骤: 主机端执行操作后, 向客户端发送响应消息。 Response steps: After the host performs the operation, it sends a response message to the client.
所述的响应消息中, 包括执行是否成功的标志。 The response message includes a flag indicating whether the execution is successful.
所述的控制命令, 采用单独的协、议承载。 The control command is carried by a separate protocol.
所述的方法, 主机端与客户端遏过互联网的连接, 可以是有线连接, 也可 以是无线连接。 In the method, the connection between the host and the client over the Internet may be a wired connection or a wireless connection.
所述的主机端进一步执行以下步骤: The host side further performs the following steps:
初始化步骤: 初始化 DirectShow程序, 搜索出电视调谐器所在的捕捉卡所 对应的设备别名; Initialization steps: Initialize the DirectShow program, and search for the device alias corresponding to the capture card where the TV tuner is located;
构建步骤: 构建 CaptureBuilder2并创建视频捕捉器 (Filter)图; Construction steps: Build CaptureBuilder2 and create a video capturer (Filter) map;
捆绑步骤: 把捕捉卡所对应的设备别名和 Filter捆绑; Bundle steps: Bundle the device alias corresponding to the capture card with the Filter;
关联步骤: 把 Filter图与 CaptureBuilder2相关联; Association steps: Associate the Filter graph with CaptureBuilder2;
加入步驟: 把 Filter加入图中; Adding steps: Add Filter to the diagram;
确定指针步驟: 从 Filter中找到电视调谐器控制接口(IID—IAM TV Tuner)指 针; Steps for determining the pointer: Find the TV tuner control interface (IID-IAM TV Tuner) pointer from the Filter;
创建套接字步骤: 创建一个服务器 Socket; Steps to create a socket: Create a server Socket;
调用接口指针步驟: 接收到客户端的电视调谐消息后, 调用 TV Tuner控制 接口指针的函数 put— channel去执行相应的调谐动作。 Step of calling the interface pointer: After receiving the TV tuning message from the client, call the TV Tuner control function of the interface pointer put-channel to perform the corresponding tuning action.
本发明提供了 IP网络上远程电枧调谐技术解决方案, 它具有实时, 全面的 优点, 它能够让用户调谐主机端与闭路电视或天线相连接的接收器所能接收的
所有频道, 而且不受电视制式的限制。 附图说明 The invention provides a remote electric tuning technology solution on an IP network. It has real-time and comprehensive advantages. It enables users to tune the receiver that the host end is connected to a closed-circuit television or antenna to receive. All channels, and not limited by TV system. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是本发明的系统连接示意图; FIG. 1 is a schematic diagram of a system connection of the present invention;
图 2是本发明主机端模块的结构示意图; 2 is a schematic structural diagram of a host-side module according to the present invention;
图 3是本发明客户端模块的结构示意图; 3 is a schematic structural diagram of a client module of the present invention;
图 4是本发明用户端电视调谐器仿真图形界面示意图; 4 is a schematic diagram of a graphical interface of a user-side television tuner emulation according to the present invention;
图 5是本发明通讯协议栈的示意图; 5 is a schematic diagram of a communication protocol stack according to the present invention;
图 6是本发明的一个流程图; FIG. 6 is a flowchart of the present invention;
图 7是本发明一具体实施方式中, 远程控制的客户端的流程示意图; 图 8是本发明一具体实施方式中, 远程控制的主机端的流程示意图。 具体实施方式 FIG. 7 is a schematic flowchart of a client for remote control in a specific embodiment of the present invention; FIG. 8 is a schematic flowchart of a host for remote control in a specific embodiment of the present invention. detailed description
下面结合说明书附图来说明本发明的具体实施方式。 The following describes specific embodiments of the present invention with reference to the accompanying drawings.
如图 1所示, 是本发明的基于 TCP/IP网络的远程电视调谐控制系统连接示 意图。 As shown in FIG. 1, it is a schematic diagram of the connection of a remote television tuning control system based on the TCP / IP network of the present invention.
从图中可以看出, 本发明包括有两个不同的模块: 主机端模块(Host ) 和 客户端模块(Client )。其中主机端模块运行在支持 DirectShow 8.0以上的 OS上 (一般为 Microsoft Windows 系列 Windows 98/ME/2000/XP/2003 Server or later)。 其上加载了 Microsoft DirectShow程序。 该 Microsoft DirectShow提供了控制硬 件, 直接驱动电视卡的功能; As can be seen from the figure, the present invention includes two different modules: a host module (Host) and a client module (Client). The host-side module runs on an OS that supports DirectShow 8.0 or higher (generally Microsoft Windows series Windows 98 / ME / 2000 / XP / 2003 Server or later). It loads the Microsoft DirectShow program. The Microsoft DirectShow provides the function of controlling hardware to directly drive the TV card;
该主机端模块有一块 DirectShow可识别的电视卡 , 该电视卡和闭路电视或 者天线相连; The host-side module has a DirectShow-recognizable TV card, which is connected to a closed-circuit TV or an antenna;
该客户端模块运行在支持 TCP/IP操作系统上,该操作系统可以是 Microsoft PC Windows系列, 也可以是 Unix, Linux, Mac OS, 也可以是 Windows CE, Palm OS , OS9000等嵌入式操作系统。
主机端模块和客户端模 ¾1都和互联网相驳接, 其连接媒介可以为无线亦可 为有线, 依具体环境及条件而定。 The client module runs on a supported TCP / IP operating system. The operating system can be Microsoft PC Windows series, Unix, Linux, Mac OS, Windows CE, Palm OS, OS9000 and other embedded operating systems. Both the host module and the client module ¾ are connected to the Internet. The connection medium can be wireless or wired, depending on the specific environment and conditions.
本发明对于客户端模块, 可以是 PC, MAC, SUN Workstation和 PocketPC, 需满足两个条件: For the client module of the present invention, it can be PC, MAC, SUN Workstation, and PocketPC, which need to meet two conditions:
1、 操作系统必须支持 TCP/IP协议; 1. The operating system must support the TCP / IP protocol;
2、 须和互联网相驳接,无论是有线还是无线; 2. Must be connected to the Internet, whether wired or wireless;
对于主机端模块, 必须支持 DirectX 8.0以上,一般为 Microsoft Windows 系 列(可为 Window 98, Windows ME, Windows 2000, Windows XP, Windows Server 2003 or later), 必须有 DirectShow能够识别的电视调谐设备并且该设备和 闭路电视或电视天线相连。 客户端模块需要和互联网相驳接, 主机端模块的 IP 可以为全球 IP地址, 也可以是局域网的 Π5地址,但这种情况下只有本局域网内 的客户端才可访问到。 For the host-side module, it must support DirectX 8.0 or higher, generally Microsoft Windows series (can be Windows 98, Windows ME, Windows 2000, Windows XP, Windows Server 2003 or later). It must have a TV tuning device recognized by DirectShow and the device Connected to CCTV or TV antenna. The client module needs to be connected to the Internet. The IP of the host module can be a global IP address or a Π 5 address of the local area network. However, only clients in the local area network can access it.
如图 2所示, 是本发明的主机端模块的逻辑结构示意图, 从图中可以看到, 本发明的主机端模块主要包括: 套接字收发器模块、 命令编码 /解码器模块和 DirectShow电视调谐执行单元模块, 其中: As shown in Figure 2, it is a schematic diagram of the logical structure of the host-side module of the present invention. As can be seen from the figure, the host-side module of the present invention mainly includes: a socket transceiver module, a command encoder / decoder module, and a DirectShow television Tuning execution unit module, where:
套接字收发器模块接收来自客户端模块的控制命令并将该控制命令传递给 命令编码 /解码器模块; 接收来自天线端的视频 /音频数据, 并将该数据编码后通 过互联网发送给客户端模块; The socket transceiver module receives the control command from the client module and passes the control command to the command encoder / decoder module; receives the video / audio data from the antenna, and encodes the data and sends it to the client module via the Internet ;
命令编码 /解码器模块把套接字收发器模块接收到的控制命令解码并触发 DirectShow 电视调谐执行单元执行相应的命令; 并将相应的调谐结果反馈信息 通过套接字收发器模块发送 客户端模块; The command encoder / decoder module decodes the control command received by the socket transceiver module and triggers the DirectShow TV tuning execution unit to execute the corresponding command; and sends the corresponding tuning result feedback information to the client module through the socket transceiver module ;
DirectShow电视调谐执 单元调用 Microsoft DirectShow, 居命令编码 /解 码器模块传递的控制命令实现对电视调谐器的控制。 The DirectShow TV Tuning Unit calls Microsoft DirectShow, and the control command passed by the command encoder / decoder module implements control of the TV tuner.
如图 3所示, 是本发明的客户端模块的逻辑结构示意图, 从图中可以看出, 其主要包括电视调谐器界面模拟模块、 命令编码器模块、 套接字收发器模块, 其中:
电视调谐器界面模拟模块完成用户控制命令的输入; As shown in FIG. 3, it is a schematic diagram of the logical structure of the client module of the present invention. As can be seen from the figure, it mainly includes a television tuner interface simulation module, a command encoder module, and a socket transceiver module, where: The TV tuner interface simulation module completes the input of user control commands;
命令编码器模块把用户的控制命令组装成数据包文并经套接字收发器模块 发送给主机端模块; The command encoder module assembles user control commands into data packets and sends them to the host-side module via the socket transceiver module;
套接字收发器模块经互联网发送或者接收来自主机端模块的数据。 The socket transceiver module sends or receives data from the host-side module via the Internet.
如图 4所示, 是本发明用户端电视调谐器仿真图形界面示意图, 用户端电 视调谐器的界面模拟是电视调谐器仿真图形界面, 也可以是纯粹的命令字符串, 比如, 用户敲入命令 "12", Client便向 Host发送切换到 12频道命令。 As shown in FIG. 4, it is a schematic diagram of a user-side television tuner simulation graphical interface according to the present invention. The interface simulation of the user-side television tuner is a television tuner simulation graphical interface, or it may be a pure command string. "12", the client sends a command to the host to switch to 12 channels.
本发明的客户端模块和主机端模块通过 TCP/IP或 UDP/IP进行通讯, 但是 在 TCP 或 UDP 的上面一层, 我们添加了一层自己的协议, 可以称之为 CP (Command Protocol 如图 5所示, 是本发明协议栈的示意图。 其中 CP是位于 TCP或 UDP之上的一层协议, 一个或者多个 CP数据包可以作为 TCP或 UDP 待传送的 raw data0 The client module and the host module of the present invention communicate through TCP / IP or UDP / IP, but on top of TCP or UDP, we have added a layer of its own protocol, which can be called CP (Command Protocol as shown in Figure Figure 5 is a schematic diagram of the protocol stack of the present invention, where CP is a layer of protocol over TCP or UDP, and one or more CP data packets can be used as TCP or UDP raw data to be transmitted. 0
在本实施列中, 对 CP的各字段定义如下: In this implementation column, the fields of the CP are defined as follows:
包头结构定义: Baotou structure definition:
struct CPacketHj { struct CPacketHj {
USHORT msgld; 111 USHORT msgld; 111
USHORT msgLen; 111 USHORT msgLen; 111
ULONG srcAddr; 〃4 Source IP address ULONG srcAddr; 〃4 Source IP address
ULONG dstAddr; 〃4 Destination IP address ULONG dstAddr; 〃4 Destination IP address
USHORT tranNum; 111 Transaction number USHORT tranNum; 111 Transaction number
UCHAR *pData; //msgLen - 14 Data UCHAR * pData; // msgLen-14 Data
}; };
消息标识符定义: Message identifier definition:
msgld是预定义的消息标志符,对于电视调谐器的远程控制, 本实施例中定 义了如下的消息标志符: msgld is a predefined message identifier. For remote control of a TV tuner, the following message identifiers are defined in this embodiment:
#defme REQ— CH— TVCHAN OxlOlB #defme REQ— CH— TVCHAN OxlOlB
// Data 0: 0 -> AutoTune, l-> Inc, 2->Dec,3 -〉 Set
II If Data 0 is 3, Data 1 is the channel to be set 0 - OxFF // Data 0: 0-> AutoTune, l-> Inc, 2-> Dec, 3-> Set II If Data 0 is 3, Data 1 is the channel to be set 0-OxFF
该消息用于 Client向 Host发送电视调谐命令。如果第一位数据是 0,则 Host 进行频道扫描;如果第一位数据为 1,则表示增加一个频道;如果第一位数据为 2, 则表示减少一个频道; 如果第一位数据是 3, 则表示改变当前频道为第二位数据 所指示的频道, 频道值可为 0-255。 This message is used by the Client to send a TV tuning command to the Host. If the first bit of data is 0, the host performs channel scanning; if the first bit of data is 1, it means to add a channel; if the first bit of data is 2, it means to decrease one channel; if the first bit of data is 3, It means that the current channel is changed to the channel indicated by the second data, and the channel value can be 0-255.
#define RSP_CH_TVCHA OxlOlC #define RSP_CH_TVCHA OxlOlC
// Data 0: 0 -Ok, 1 Failed // Data 0: 0 -Ok, 1 Failed
该消息用于 Host向 Client发送确认消息, 如果其后笫一位数据的值为 0, 则表示命令执行成功, 其他值为失败。 This message is used by the host to send a confirmation message to the client. If the value of the next bit of data is 0, it indicates that the command was executed successfully, and the other values were failed.
消息长度定义: msgLen; Message length definition: msgLen;
该变量为数据包的长度, 最大值为 65500 bytes; This variable is the length of the data packet, and the maximum value is 65500 bytes;
源地址定义: srcAddr; Source address definition: srcAddr;
该 量为源 IP地址。一般的 IP地址的格式为 xxx.xxx.xxx.xxx ,我们把每个 域值转换为十六进制, 这样就变成 OxFFFFFFFF,以一个 unsigned long类型的数 据即可表示。 This quantity is the source IP address. The general format of an IP address is xxx.xxx.xxx.xxx. We convert each field value to hexadecimal, so that it becomes OxFFFFFFFF, which can be represented by an unsigned long data.
目的地址定义: dstAddr; Destination address definition: dstAddr;
该变量为目标 IP地址, 其格式同于 srcAddr; This variable is the destination IP address, and its format is the same as srcAddr;
数据包序列定义: tranNum; Packet sequence definition: tranNum;
该变量可用于 录该数据包的 transaction number,以便接受方 track成功和失 败的数据包。 This variable can be used to record the transaction number of the packet so that the receiver can track successful and failed packets.
数据部分定义: pData; Data part definition: pData;
此为该数据包的数据部分, 其长度为 msgLen - 14, 14为非数据部分包头的 长度。 This is the data part of the packet, and its length is msgLen-14, 14 is the length of the non-data part header.
如图 6 所示, 是本发明的一个流程示意图, 从图中可见, 本发明使用中可 以包括如下步骤: As shown in FIG. 6, it is a schematic flowchart of the present invention. As can be seen from the figure, the use of the present invention may include the following steps:
S1 : 客户端将控制命令进行编码;
客户端模块根据需求, 将欲发送的命令进行编码, 编码方式可以使用本实 施例前面描述过的内容; S1: the client encodes the control command; The client module encodes the command to be sent according to the requirements, and the encoding method can use the content described earlier in this embodiment;
S2: 经互联网通过套接字模块将编码后的数据发送给主机端; S2: Send the encoded data to the host through the socket module via the Internet;
客户端模块经互联网将上述数据发送给主机端; The client module sends the above data to the host via the Internet;
S3: 主机端接收客户端发送的数据, 将其进行解码; S3: The host receives the data sent by the client and decodes it;
主机端根据编码规则, 对接收的数据予以解码处理, 得到客户端的原始命 令; The host end decodes the received data according to the encoding rules to obtain the client's original command;
S4: 主机端根据解码后的控制命令, 执行相应的操作; S4: The host performs corresponding operations according to the decoded control command;
主机端根据控制命令内容, 执行相应的操作, 包括频道切换等内容; The host performs corresponding operations according to the content of the control command, including content such as channel switching;
S5: 客户端经互联网接收主机端发送的数据; S5: The client receives data sent by the host via the Internet;
主机端将命令执行后的操作内容, 通过互联网再传递给客户端; The host sends the content of the operation after the command is executed to the client through the Internet;
S6: 客户端播放主机端发送的视频 /音频数据。 S6: The client plays the video / audio data sent by the host.
如图 7及图 8所示, 是本发明采用上述协议结构的一个具体实施方式的流 程示意图, 从图中可以看出, 一个远程电视调谐控制的主机端及客户端处理的 详细过程可以包括: As shown in FIG. 7 and FIG. 8, they are schematic flowcharts of a specific implementation manner of the foregoing protocol structure according to the present invention. As can be seen from the figure, the detailed process of the host and client processes of a remote TV tuning control may include:
对于客户端模块包括以下步骤: For the client module includes the following steps:
笫一步: 初始化 Socket,创建主机端 IP 和 Port的客户 Socket; Step one: Initialize the socket and create a client socket for the host-side IP and Port;
第二步: 创建用户界面, 如果客户端要播放来自主机端的视频, 还需作相 应的播放器的初始化; Step 2: Create the user interface. If the client wants to play the video from the host, you need to initialize the corresponding player.
第三步: 如果用户与相应的命令控件交互, 把相应的命令进行编码, 通过 Socket发送给主机端 Step 3: If the user interacts with the corresponding command control, encode the corresponding command and send it to the host through the socket
对于主机端模块包括以下步骤: For host-side modules include the following steps:
第一步: 初始化 DirectShow, 搜索出电视调谐器所在的捕捉卡所对应的设 别名; Step 1: Initialize DirectShow, search for the alias of the capture card where the TV tuner is located;
第二步: 构建 CaptureBuilder2并创建 Filter图; Step 2: Build CaptureBuilder2 and create a Filter diagram;
第三步: 把数码摄影机所对应的设备别名和视频捕捉器 (Filter)捆绑;
第四步: 把 Filter图与 CaptureBuilder2相关联; Step 3: Bundle the device alias corresponding to the digital camera with the video filter (Filter); Step 4: Associate the Filter graph with CaptureBuilder2;
第五步: 把视频捕捉器 (Filter)加入图中; Step 5: Add the video capturer (Filter) to the picture;
第六步: 从视频捕捉器 (Filter)中找到电视调谐器控制接口 (IID—IAM TV Tuner) 指针; Step 6: Find the TV tuner control interface (IID—IAM TV Tuner) pointer from the video capturer (Filter);
第七步: 如果上述皆成功的话创建一个服务器 Socket, 等待客户端的数据; 第八步: 如果接收到客户端的电视调谐消息, 调用 TV Tuner控制接口指针 的函数 put—chamiel去执行相应的调谐动作, 并向客户端发送响应消息, 其第一 位数据位包含上述动作的成功与否。 Step 7: If all of the above are successful, create a server socket and wait for data from the client; Step 8: If a TV tuning message from the client is received, call the function put_chamiel of the TV Tuner control interface pointer to perform the corresponding tuning action A response message is sent to the client, whose first data bit contains the success or failure of the above action.
本发明采用网络远程控制技术及方法, 具有如下积极效果: The present invention adopts network remote control technology and method, and has the following positive effects:
操作简单灵活, 通过网络远程控制的引入, 可以使得电视调谐器的使用灵 活方便, 摆脱手工操控带来的距离的障碍; The operation is simple and flexible, and the introduction of remote control through the network can make the use of the TV tuner flexible and convenient, and get rid of the obstacle of the distance brought by manual control;
实现筒单, 本发明所使用的操作平台, 可以与现有技术中的远程网络控制 所使用平台一致, 所使用操作系统也为常用的操作系统, 实现起来不必做太多 的改进。 To implement the order, the operating platform used in the present invention can be consistent with the platform used in the remote network control in the prior art, and the operating system used is also a commonly used operating system, and there is no need to make much improvement in implementation.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应该以权利要求书的保护范围为准。
The above descriptions are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or changes within the technical scope disclosed by the present invention. Replacement should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.