技术领域technical field
本发明实施例涉及控制领域技术,尤其涉及一种机顶盒终端设备的控制方法及装置。Embodiments of the present invention relate to technologies in the field of control, and in particular, to a control method and device for a set-top box terminal device.
背景技术Background technique
为了满足用户收看电视操作体验的新需求,近年来,Wifi装置逐渐成为机顶盒的标配,机顶盒的功能也日趋智能化。In order to meet the new needs of users for viewing TV operation experience, in recent years, Wifi devices have gradually become the standard configuration of set-top boxes, and the functions of set-top boxes have become increasingly intelligent.
机顶盒通过Wifi装置与手持端设备建立连接,通过手机、平板等手持端设备的触摸屏实现对机顶盒的操作控制,改变了用户通过遥控器操作机顶盒收看电视的传统方式。而现实生活中往往存在一个家庭中同时拥有多个相同的机顶盒设备的情况,这些设备分布在客厅、卧室中,由于这些机顶盒设备为同一个生产商所提供,他们通常具有相同的设备命名,在这种情况下,用户采用手持终端对机顶盒设备进行互动控制时,就会存在着由于设备名称相同而导致无法选择目标设备进行控制的问题。The set-top box establishes a connection with the handheld device through the Wifi device, and realizes the operation control of the set-top box through the touch screen of the mobile phone, tablet and other handheld devices, which changes the traditional way that users operate the set-top box to watch TV through the remote control. In real life, there are often situations in which a family has multiple identical set-top box devices at the same time. These devices are distributed in the living room and bedroom. Since these set-top box devices are provided by the same manufacturer, they usually have the same device name. In this case, when the user uses the handheld terminal to interactively control the set-top box device, there will be a problem that the target device cannot be selected for control due to the same device name.
发明内容Contents of the invention
本发明实施例提供一种机顶盒终端设备的控制方法及装置,解决当前由于设备名称相同而导致无法选择目标设备进行控制的问题。Embodiments of the present invention provide a method and device for controlling a set-top box terminal device, which solves the current problem that a target device cannot be selected for control due to the same device name.
第一方面,本发明实施例提供了一种机顶盒终端设备的控制方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling a set-top box terminal device, the method comprising:
机顶盒终端设备监测到通过数据线连接显示设备时,读取所述数据线传送的显示设备数据;When the set-top box terminal device detects that the display device is connected through the data line, it reads the display device data transmitted by the data line;
机顶盒终端设备根据所述显示设备数据,获取显示设备的用户化名称;The STB terminal device acquires the customized name of the display device according to the display device data;
机顶盒终端设备根据所述用户化名称,确定机顶盒终端设备的设备名称,并替换本地存储的设备名称。The set-top box terminal device determines the device name of the set-top box terminal device according to the user-defined name, and replaces the locally stored device name.
进一步的,该方法还包括:Further, the method also includes:
机顶盒终端设备接收主控设备基于近距离无线通信协议发送的发现广播数据包;The set-top box terminal device receives the discovery broadcast data packet sent by the main control device based on the short-range wireless communication protocol;
所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包,所述反馈数据包至少包括:设备名称;The set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet, and the feedback data packet includes at least: a device name;
所述机顶盒终端设备与所述主控设备基于近距离无线通信协议建立连接;The set-top box terminal device establishes a connection with the main control device based on a short-range wireless communication protocol;
所述机顶盒终端设备接收所述主控设备基于所述设备名称所发送的控制指令。The set-top box terminal device receives the control instruction sent by the main control device based on the device name.
进一步的,所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,还包括:Further, after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet, it further includes:
所述主控设备接收至少两个机顶盒终端设备发送的反馈数据包,并解析获取设备名称;The main control device receives feedback data packets sent by at least two set-top box terminal devices, and parses and obtains device names;
如果存在相同的设备名称,主控设备根据相同设备名称的机顶盒终端设备的IP地址信息,向机顶盒终端设备发送命名冲突通知消息。If the same device name exists, the main control device sends a naming conflict notification message to the set-top box terminal device according to the IP address information of the set-top box terminal device with the same device name.
进一步的,所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,还包括:Further, after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet, it further includes:
所述机顶盒终端设备接收到主控设备发送的命名冲突通知消息时,控制在显示设备上弹出设备名称选项列表;When the set-top box terminal device receives the naming conflict notification message sent by the main control device, it controls to pop up a device name option list on the display device;
所述机顶盒终端设备接收用户在设备名称选项列表中的命名,更新为设备名称。The set-top box terminal device receives the user's naming in the device name option list, and updates it to the device name.
进一步的,所述机顶盒终端设备根据所述显示设备数据,获取显示设备的用户化名称包括:Further, said set-top box terminal device obtaining the customized name of the display device according to the display device data includes:
机顶盒终端设备根据所述显示设备数据,提取显示设备的至少一个特征信息;The set-top box terminal device extracts at least one characteristic information of the display device according to the display device data;
机顶盒终端设备根据所述至少一个特征信息,查表获取显示设备的用户化名称。The set-top box terminal device looks up a table to obtain the customized name of the display device according to the at least one feature information.
其中,所述特征信息至少包括:显示设备的厂商名称、生产年份、生产周期、产品代码和产品序号。Wherein, the characteristic information at least includes: the manufacturer name, production year, production cycle, product code and product serial number of the display device.
第二方面,本发明实施例还提供了一种机顶盒终端设备的控制装置,该装置包括:In a second aspect, an embodiment of the present invention also provides a control device for a set-top box terminal device, the device comprising:
显示设备数据读取模块,配置于机顶盒终端设备中,用于监测到通过数据线连接显示设备时,读取所述数据线传送的显示设备数据;The display device data reading module is configured in the set-top box terminal device, and is used to read the display device data transmitted by the data line when it is detected that the display device is connected through the data line;
用户化名称获取模块,配置于机顶盒终端设备中,用于根据所述显示设备数据,获取显示设备的用户化名称;A customized name obtaining module, configured in the set-top box terminal device, for obtaining the customized name of the display device according to the display device data;
设备名称确定模块,配置于机顶盒终端设备中,用于根据所述用户化名称,确定机顶盒终端设备的设备名称,并替换本地存储的设备名称。The device name determining module is configured in the set-top box terminal device, and is used to determine the device name of the set-top box terminal device according to the user-defined name, and replace the locally stored device name.
进一步的,该装置还包括:Further, the device also includes:
发现广播数据包接收模块,配置于机顶盒终端设备中,用于接收主控设备基于近距离无线通信协议发送的发现广播数据包;The discovery broadcast data packet receiving module is configured in the set-top box terminal device, and is used to receive the discovery broadcast data packet sent by the main control device based on the short-range wireless communication protocol;
反馈数据包发送模块,配置于机顶盒终端设备中,用于向所述主控设备发送反馈数据包以响应所述发现广播数据包,所述反馈数据包至少包括:设备名称;The feedback data packet sending module is configured in the set-top box terminal device, and is used to send a feedback data packet to the main control device in response to the discovery broadcast data packet, and the feedback data packet includes at least: a device name;
连接建立模块,配置于机顶盒终端设备中,用于与所述主控设备基于近距离无线通信协议建立连接;A connection establishment module, configured in a set-top box terminal device, for establishing a connection with the main control device based on a short-range wireless communication protocol;
控制指令接收模块,配置于机顶盒终端设备中,用于接收所述主控设备基于所述设备名称所发送的控制指令。The control command receiving module is configured in the set-top box terminal device, and is used for receiving the control command sent by the main control device based on the device name.
进一步的,该装置还包括:Further, the device also includes:
设备名称解析模块,配置于主控设备中,用于在所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,接收至少两个机顶盒终端设备发送的反馈数据包,并解析获取设备名称;A device name parsing module, configured in the main control device, configured to receive feedback sent by at least two set-top box terminal devices after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet Data packet, and parse to obtain the device name;
如果存在相同的设备名称,根据相同设备名称的机顶盒终端设备的IP地址信息,向机顶盒终端设备发送命名冲突通知消息。If the same device name exists, a naming conflict notification message is sent to the set-top box terminal device according to the IP address information of the set-top box terminal device with the same device name.
进一步的,该装置还包括:Further, the device also includes:
设备名称更新模块,配置于机顶盒终端设备中,用于在所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,接收到主控设备发送的命名冲突通知消息时,控制在显示设备上弹出设备名称选项列表;A device name update module, configured in a set-top box terminal device, configured to receive a naming conflict notification sent by the master control device after the set-top box terminal device sends a feedback data packet to the master control device in response to the discovery broadcast data packet When a message is displayed, the control pops up a device name option list on the display device;
接收用户在设备名称选项列表中的命名,更新为设备名称。Receive the user's name in the device name option list and update it to the device name.
进一步的,所述用户化名称获取模块具体用于:Further, the user-defined name acquiring module is specifically used for:
根据所述显示设备数据,提取显示设备的至少一个特征信息;Extracting at least one characteristic information of the display device according to the display device data;
根据所述至少一个特征信息,查表获取显示设备的用户化名称。According to the at least one piece of feature information, the user-defined name of the display device is obtained by looking up a table.
其中,所述特征信息至少包括:显示设备的厂商名称、生产年份、生产周期、产品代码和产品序号。Wherein, the characteristic information at least includes: the manufacturer name, production year, production cycle, product code and product serial number of the display device.
本发明实施例通过自动采集机顶盒设备所连接的显示设备数据,将显示设备的用户化名称替换机顶盒终端设备本地存储的设备名称,避免了多个机顶盒终端设备的本地存储的设备名称相同时难以区分的问题,实现了机顶盒终端设备的自动命名,提高了机顶盒终端设备的区分性,由于显示设备的用户化名称较机顶盒终端设备本地存储的设备名称更便于用户查看,因而将机顶盒终端设备的设备名称替换为显示设备的用户化名称,可以提高对机顶盒终端设备的控制效率。The embodiment of the present invention automatically collects the display device data connected to the set-top box device, and replaces the user-defined name of the display device with the device name stored locally in the set-top box terminal device, so that it is difficult to distinguish when the locally stored device names of multiple set-top box terminal devices are the same In this way, the automatic naming of the set-top box terminal equipment is realized, and the differentiation of the set-top box terminal equipment is improved. Since the user-defined name of the display device is more convenient for the user to view than the device name stored locally, the device name of the set-top box terminal equipment is changed to Substituting it with the customized name of the display device can improve the control efficiency of the set-top box terminal device.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明实施例一提供的一种机顶盒终端设备的控制方法的流程示意图;FIG. 1 is a schematic flowchart of a method for controlling a set-top box terminal device provided in Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种机顶盒终端设备的控制方法的流程示意图;FIG. 2 is a schematic flowchart of a method for controlling a set-top box terminal device provided in Embodiment 2 of the present invention;
图3是本发明实施例三提供的一种机顶盒终端设备的控制方法的流程示意图;FIG. 3 is a schematic flowchart of a method for controlling a set-top box terminal device provided in Embodiment 3 of the present invention;
图4是本发明实施例四提供的一种机顶盒终端设备的控制方法的流程示意图;FIG. 4 is a schematic flowchart of a method for controlling a set-top box terminal device provided in Embodiment 4 of the present invention;
图5是本发明实施例五提供的一种机顶盒终端设备的控制装置的结构示意图。FIG. 5 is a schematic structural diagram of a control device for a set-top box terminal device according to Embodiment 5 of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,以下将参照本发明实施例中的附图,通过实施方式清楚、完整地描述本发明的技术方案,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through implementation with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the embodiment of the present invention. Some, but not all, embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一Embodiment one
图1是本发明实施例一提供的一种机顶盒终端设备的控制方法的流程图。本实施例的技术方案可以适用于机顶盒终端设备进行控制的情况。该方法可以由本发明实施例提供的一种机顶盒终端设备的控制装置来执行,该装置可以采用软件和/或硬件的方式实现,一般集成于机顶盒终端设备中。该方法具体包括如下操作:FIG. 1 is a flow chart of a method for controlling a set-top box terminal device provided by Embodiment 1 of the present invention. The technical solution of this embodiment can be applied to the situation where the set-top box terminal equipment performs control. The method can be executed by a control device of a set-top box terminal device provided in an embodiment of the present invention. The device can be implemented in software and/or hardware, and is generally integrated in a set-top box terminal device. The method specifically includes the following operations:
S110、机顶盒终端设备监测到通过数据线连接显示设备时,读取所述数据线传送的显示设备数据。S110. When the set-top box terminal device detects that the display device is connected through the data line, read the display device data transmitted by the data line.
其中,数据线可以是HDMI(High Definition Multimedia Interface,高清晰度多媒体接口)数据线、VGA(Video Graphics Array,视频图形阵列)数据线或DVI(DigitalVisual Interface,数字视频接口)数据线中的任意一种,优选为HDMI数据线。显示设备可以是任意具备显示功能的电子器件,例如可以是电视机。机顶盒终端设备通过数据线与显示设备相连,具体的,机顶盒终端设备通过HPD(Hot Plug Detection,热插拔检测)引脚的高低电平判断机顶盒终端设备是否通过数据线与显示设备相连。当检测到HPD引脚的电平为高时,可以确定机顶盒终端设备与显示设备相连。机顶盒终端设备通过调用通过新驱动接口,获取数据线传输的显示设备数据,显示设备数据中包括可以表征显示设备的各种类型的参数的数据,例如可以是EDID(Extended Display Identification Data,扩展显示标识数据)。EDID是HDMI数据线中传输的显示设备数据,包含数据设备的基本参数,如制造厂商、产品名称、最大行场频以及可支持的分辨率等。Wherein, the data line can be any one of HDMI (High Definition Multimedia Interface, High Definition Multimedia Interface) data line, VGA (Video Graphics Array, Video Graphics Array) data line or DVI (Digital Visual Interface, digital video interface) data line Type, preferably an HDMI data cable. The display device may be any electronic device with a display function, such as a TV. The set-top box terminal device is connected to the display device through the data line. Specifically, the set-top box terminal device judges whether the set-top box terminal device is connected to the display device through the data line through the high or low level of the HPD (Hot Plug Detection, hot plug detection) pin. When it is detected that the level of the HPD pin is high, it can be determined that the set-top box terminal device is connected to the display device. The set-top box terminal device obtains the display device data transmitted by the data line by calling the new driver interface. The display device data includes data that can characterize various types of parameters of the display device, such as EDID (Extended Display Identification Data, extended display identification data). EDID is the display device data transmitted in the HDMI data cable, including the basic parameters of the data device, such as manufacturer, product name, maximum line and field frequency, and supported resolution.
S120、机顶盒终端设备根据所述显示设备数据,获取显示设备的用户化名称。S120. The STB terminal device acquires a customized name of the display device according to the display device data.
显示设备的用户化名称可以是便于用户识别的名称信息,例如可以是创维32E7BRE(创维32寸LED电视)。机顶盒终端设备根据显示设备数据,通过查找显示设备数据与显示设备的用户化名称的对应关系数据库,确定显示设备的用户化名称。或者,用户化名称也可以是从显示设备数据中直接提取的信息,只要能够对机顶盒终端设备加以个性化区分即可。The customized name of the display device may be name information that is convenient for the user to identify, for example, it may be Skyworth 32E7BRE (Skyworth 32-inch LED TV). The set-top box terminal device determines the customized name of the display device by searching the database of correspondence between the display device data and the customized name of the display device according to the display device data. Alternatively, the customized name may also be information directly extracted from the display device data, as long as the set-top box terminal device can be individually distinguished.
S130、机顶盒终端设备根据所述用户化名称,确定机顶盒终端设备的设备名称,并替换本地存储的设备名称。S130. The set-top box terminal device determines the device name of the set-top box terminal device according to the user-defined name, and replaces the locally stored device name.
具体的,机顶盒终端设备将显示设备的用户化名称作为机顶盒设备的设备名称,并替换本地存储的设备名称。本地存储的设备名称由于是机顶盒终端设备出厂时的名称,多个机顶盒终端设备会存在名称相同的问题,因此将机顶盒终端设备的设备名称替换为显示设备的用户化名称,可以提高机顶盒终端设备的区分性,方便用户选择所需的机顶盒终端设备。另外,由于显示设备的用户化名称较机顶盒终端设备本地存储的设备名称更便于用户查看,因而将机顶盒终端设备的设备名称替换为显示设备的用户化名称,可以提高对机顶盒终端设备的控制效率。Specifically, the set-top box terminal device will display the customized name of the device as the device name of the set-top box device, and replace the locally stored device name. Since the device name stored locally is the name of the set-top box terminal device when it leaves the factory, multiple set-top box terminal devices may have the same name. Therefore, replacing the device name of the set-top box terminal device with the customized name of the display device can improve the security Distinguishing, convenient for users to choose the desired set-top box terminal equipment. In addition, since the user-defined name of the display device is more convenient for the user to view than the device name stored locally on the set-top box terminal device, replacing the device name of the set-top box terminal device with the user-defined name of the display device can improve the control efficiency of the set-top box terminal device.
本发明实施例通过将显示设备的用户化名称替换机顶盒终端设备本地存储的设备名称,避免了多个机顶盒终端设备的本地存储的设备名称相同时难以区分的问题,实现了机顶盒终端设备的自动命名,提高了机顶盒终端设备的区分性,由于显示设备的用户化名称较机顶盒终端设备本地存储的设备名称更便于用户查看,因而将机顶盒终端设备的设备名称替换为显示设备的用户化名称,可以提高对机顶盒终端设备的控制效率。The embodiment of the present invention replaces the device name locally stored in the set-top box terminal device with the user-defined name of the display device, avoiding the problem that the locally stored device names of multiple set-top box terminal devices are the same and are difficult to distinguish, and realizes the automatic naming of the set-top box terminal device , which improves the differentiation of set-top box terminal equipment. Since the user-defined name of the display device is more convenient for users to view than the device name stored locally on the set-top box terminal equipment, replacing the device name of the set-top box terminal equipment with the user-defined name of the display device can improve Control efficiency of set-top box terminal equipment.
实施例二Embodiment two
图2是本发明实施例二提供的一种机顶盒终端设备的控制方法的流程图。本发明实施例在上述实施例的基础上,进一步将所述机顶盒终端设备根据所述显示设备数据,获取显示设备的用户化名称优化为:机顶盒终端设备根据所述显示设备数据,提取显示设备的至少一个特征信息;机顶盒终端设备根据所述至少一个特征信息,查表获取显示设备的用户化名称。Fig. 2 is a flow chart of a method for controlling a set-top box terminal device provided by Embodiment 2 of the present invention. In this embodiment of the present invention, on the basis of the foregoing embodiments, further optimizing the user-defined name of the display device acquired by the set-top box terminal device according to the display device data is as follows: the set-top box terminal device extracts the name of the display device according to the display device data At least one piece of feature information; the set-top box terminal device looks up a table to obtain the customized name of the display device according to the at least one piece of feature information.
相应的,本实施例的方法包括:Correspondingly, the method of this embodiment includes:
S210、机顶盒终端设备监测到通过数据线连接显示设备时,读取所述数据线传送的显示设备数据。S210. When the set-top box terminal device detects that the display device is connected through the data line, read the display device data transmitted by the data line.
S220、机顶盒终端设备根据所述显示设备数据,提取显示设备的至少一个特征信息。S220. The set-top box terminal device extracts at least one characteristic information of the display device according to the display device data.
S230、机顶盒终端设备根据所述至少一个特征信息,查表获取显示设备的用户化名称。S230. According to the at least one feature information, the set-top box terminal device looks up a table to obtain the customized name of the display device.
所述特征信息至少包括:显示设备的厂商名称、生产年份、生产周期、产品代码和产品序号。例如,通过显示设备数据提取的特征信息为:厂商名称为AOC,生产年份:2013,生产周期:10,产品代码:B860,产品序号:1234,通过查询显示设备数据与电视用户化名称对应关系表,获取到显示设备的用户名称为创维32E7BRE(创维32寸LED电视)。示例性的,显示设备数据与显示设备的用户化名称对应关系表如表1所示。以表的形式存储显示设备数据与显示设备的用户化名称,提高了显示设备用户化名称的查找速度。The feature information at least includes: the manufacturer's name, production year, production cycle, product code and product serial number of the display device. For example, the feature information extracted by displaying device data is: manufacturer name is AOC, production year: 2013, production cycle: 10, product code: B860, product serial number: 1234, and display the corresponding relationship table between device data and TV customized name by querying , the obtained user name of the display device is Skyworth 32E7BRE (Skyworth 32-inch LED TV). Exemplarily, the correspondence table between display device data and the customized name of the display device is shown in Table 1. The display device data and the user-defined name of the display device are stored in the form of a table, which improves the search speed of the user-defined name of the display device.
表1显示设备数据与显示设备的用户化名称对应关系表Table 1 shows the corresponding relationship between the device data and the user-defined name of the display device
S240、机顶盒终端设备根据所述用户化名称,确定机顶盒终端设备的设备名称,并替换本地存储的设备名称。S240. The set-top box terminal device determines the device name of the set-top box terminal device according to the user-defined name, and replaces the locally stored device name.
本发明实施例通过机顶盒终端设备从显示设备数据中提取至少一个显示设备的特征信息,并查表得到显示设备的用户化名称,提高了显示设备用户化名称的查找速度,进而将将显示设备的用户化名称替换机顶盒终端设备本地存储的设备名称,提高了机顶盒终端设备的区分性和控制效率。In the embodiment of the present invention, the feature information of at least one display device is extracted from the display device data by the set-top box terminal device, and the user-defined name of the display device is obtained by looking up the table, which improves the search speed of the user-defined name of the display device, and then converts the display device The user-defined name replaces the device name locally stored in the set-top box terminal device, which improves the differentiation and control efficiency of the set-top box terminal device.
实施例三Embodiment three
图3是本发明实施例三提供的一种机顶盒终端设备的控制方法的流程图。本实施例可以是在上述任意实施例的基础上执行,引入了机顶盒终端设备与主控设备进行配合的过程。该方法包括:Fig. 3 is a flow chart of a method for controlling a set-top box terminal device provided by Embodiment 3 of the present invention. This embodiment may be implemented on the basis of any of the foregoing embodiments, and a process of cooperating between a set-top box terminal device and a main control device is introduced. The method includes:
S310、机顶盒终端设备接收主控设备基于近距离无线通信协议发送的发现广播数据包。S310. The set-top box terminal device receives the discovery broadcast data packet sent by the main control device based on the short-range wireless communication protocol.
主控设备可以是任意的手持终端,例如可以是手机、平板电脑或智能遥控器。近距离无线通信协议可以是WIFI、蓝牙或者ZigBee。主控设备与机顶盒终端设备同处在同一局域网内,通过近距离无线通信协议,主控设备可以向机顶盒终端设备发送发现广播数据包,对同一局域网内的所有机顶盒终端设备进行间隔性的搜索和扫描,以获取机顶盒终端设备的特征信息。The main control device can be any handheld terminal, such as a mobile phone, a tablet computer or an intelligent remote control. The short-range wireless communication protocol can be WIFI, Bluetooth or ZigBee. The main control device and the set-top box terminal equipment are in the same local area network. Through the short-range wireless communication protocol, the main control device can send discovery broadcast data packets to the set-top box terminal equipment, and perform interval search and search for all set-top box terminal equipment in the same local area network. Scan to obtain the characteristic information of the set-top box terminal equipment.
S320、所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包,所述反馈数据包至少包括:设备名称。S320. The set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet, where the feedback data packet includes at least: a device name.
反馈数据包中包含机顶盒设备的特征信息,至少包括:设备名称,还可以包括:IP地址、网络端口号和当前工作状态等信息。The feedback data packet includes characteristic information of the set-top box device, at least including: device name, and may also include: information such as IP address, network port number, and current working status.
S330、所述机顶盒终端设备与所述主控设备基于近距离无线通信协议建立连接。S330. The set-top box terminal device establishes a connection with the main control device based on a short-range wireless communication protocol.
主控设备通过机顶盒终端设备发送的反馈数据包,获得了机顶盒终端设备的特征信息,根据机顶盒终端设备的特征信息,主控设备与机顶盒终端设备建立连接。The main control device obtains the characteristic information of the set-top box terminal device through the feedback data packet sent by the set-top box terminal device, and establishes a connection with the set-top box terminal device according to the characteristic information of the set-top box terminal device.
S340、所述机顶盒终端设备接收所述主控设备基于所述设备名称所发送的控制指令。S340. The set-top box terminal device receives the control instruction sent by the main control device based on the device name.
主控设备通过机顶盒终端设备的设备名称,向机顶盒终端设备发送控制指令,设备名称与机顶盒终端设备的其他特征信息相互关联,例如设备名称与IP地址相互连接,主控设备接收用户选择的设备名称,并查找与该设备名称对应的IP地址,根据IP地址,将控制指令发到IP地址对应的机顶盒终端设备上,控制机顶盒终端设备的工作状态。例如发送控制打开或者关闭的指令,控制机顶盒终端设备的开启和关闭。设备名称可以方便用户确定所需控制的机顶盒终端设备。The main control device sends control instructions to the set-top box terminal device through the device name of the set-top box terminal device. The device name is related to other characteristic information of the set-top box terminal device. For example, the device name and IP address are connected to each other. The main control device receives the device name selected by the user , and find the IP address corresponding to the device name, according to the IP address, send the control command to the set-top box terminal device corresponding to the IP address, and control the working status of the set-top box terminal device. For example, sending an instruction to control opening or closing, and controlling the opening and closing of the set-top box terminal device. The device name can facilitate the user to determine the set-top box terminal device to be controlled.
本实施例中通过近距离无线通信协议,主控设备获取机顶盒终端设备的反馈数据包,当用户选择机顶盒终端设备的设备名称时,主控设备能够根据该设备名称快速查找反馈数据包中机顶盒的其他特征信息,并根据特征信息控制机顶盒终端设备,从而提高了控制效率。In this embodiment, the main control device obtains the feedback data packet of the set-top box terminal device through the short-range wireless communication protocol. When the user selects the device name of the set-top box terminal device, the main control device can quickly search for the set-top box in the feedback data packet according to the device name Other characteristic information, and control the set-top box terminal equipment according to the characteristic information, thereby improving the control efficiency.
本实施例优选在上述任意实施例提供的机顶盒终端设备的控制方法之后执行,通过机顶盒终端设备将显示设备的用户化名称替换本地存储的设备名称,方便用户根据设备名称选择所需机顶盒终端设备,主控设备与机顶盒终端设备通过近距离无线通信协议建立连接,提高了控制效率。This embodiment is preferably executed after the control method of the set-top box terminal device provided in any of the above-mentioned embodiments, and the user-defined name of the display device is replaced by the locally stored device name through the set-top box terminal device, so that the user can select the desired set-top box terminal device according to the device name, The main control device and the set-top box terminal device are connected through a short-distance wireless communication protocol, which improves the control efficiency.
实施例四Embodiment Four
图4是本发明实施例四提供的一种机顶盒终端设备的控制方法的流程图。本发明实施例在上述任意实施例的基础上,增加了在所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后的操作。Fig. 4 is a flow chart of a method for controlling a set-top box terminal device provided by Embodiment 4 of the present invention. On the basis of any of the foregoing embodiments, the embodiment of the present invention adds an operation after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet.
相应的,本实施例的方法包括:Correspondingly, the method of this embodiment includes:
S410、机顶盒终端设备接收主控设备基于近距离无线通信协议发送的发现广播数据包。S410. The set-top box terminal device receives the discovery broadcast data packet sent by the main control device based on the short-range wireless communication protocol.
S420、所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包,所述反馈数据包至少包括:设备名称。S420. The set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet, where the feedback data packet includes at least: a device name.
S430、所述主控设备接收至少两个机顶盒终端设备发送的反馈数据包,并解析获取设备名称。S430. The main control device receives feedback data packets sent by at least two set-top box terminal devices, and parses to obtain device names.
同一局域网中所有的机顶盒终端设备均向主控设备发送反馈数据包。All set-top box terminal devices in the same local area network send feedback data packets to the main control device.
S440、如果存在相同的设备名称,主控设备根据相同设备名称的机顶盒终端设备的IP地址信息,向机顶盒终端设备发送命名冲突通知消息,并返回执行S430,等待机顶盒终端设备解决命名冲突问题后,重新发送的反馈数据包,直至不存在相同的设备命名为止,或直至用户确认忽略命名冲突为止。S440. If there is the same device name, the main control device sends a naming conflict notification message to the set-top box terminal device according to the IP address information of the set-top box terminal device with the same device name, and returns to execute S430, and waits for the set-top box terminal device to resolve the naming conflict problem. Feedback packets are resent until no identical device naming exists, or until the user confirms to ignore naming conflicts.
主控设备根据解析出的设备名称,检测接收到的所有机顶盒终端设备反馈数据包中是否有相同的设备名称,当有相同的设备名称时,主控设备根据相同的设备名称查找接收到的反馈数据包中与该相同的设备名称对应的所有IP地址信息,并逐一根据IP地址信息向IP地址信息对应的机顶盒终端设备发送命名冲突通知消息。主控设备可以根据预设策略,向具有相同设备名称的两个机顶盒终端设备都发送命名冲突通知消息,或者,也可以只向后接收到反馈数据包的机顶盒终端设备发送命名冲突通知消息。Based on the parsed device name, the main control device detects whether there is the same device name in the feedback data packets received from all set-top box terminal devices. If there is the same device name, the main control device searches for the received feedback according to the same device name. All IP address information corresponding to the same device name in the data packet, and send a naming conflict notification message to the set-top box terminal device corresponding to the IP address information one by one according to the IP address information. The main control device may send a naming conflict notification message to both set-top box terminal devices with the same device name according to a preset policy, or may only send a naming conflict notification message to the set-top box terminal device that receives the feedback data packet.
S450、如果不存在相同的设备名称,所述机顶盒终端设备与所述主控设备基于近距离无线通信协议建立连接。S450. If the same device name does not exist, the set-top box terminal device establishes a connection with the main control device based on a short-range wireless communication protocol.
S460、所述机顶盒终端设备接收所述主控设备基于所述设备名称所发送的控制指令。S460. The set-top box terminal device receives the control instruction sent by the main control device based on the device name.
本发明实施例通过主控设备向具有相同设备名称的机顶盒终端设备发送命名冲突通知消息,实现了利用主控设备自动识别机顶盒终端设备的命名冲突,并提示进行命名冲突的解决,增强了对机顶盒终端设备名称的管理,可作为辅助自动命名的一种方式。In the embodiment of the present invention, the main control device sends a naming conflict notification message to the set-top box terminal device with the same device name, which realizes the use of the main control device to automatically identify the naming conflict of the set-top box terminal device, and prompts for the resolution of the naming conflict, which enhances the control of the set-top box. The management of terminal device names can be used as a way to assist automatic naming.
在本实施例的另一优选实施方式中,在所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,还包括:In another preferred implementation of this embodiment, after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet, it further includes:
所述机顶盒终端设备接收到主控设备发送的命名冲突通知消息时,控制在显示设备上弹出设备名称选项列表。When the set-top box terminal device receives the naming conflict notification message sent by the main control device, it controls to pop up a device name option list on the display device.
所述机顶盒终端设备接收用户在设备名称选项列表中的命名,更新为设备名称。The set-top box terminal device receives the user's naming in the device name option list, and updates it to the device name.
用户可以在显示设备上弹出的设备名称选项列表中选择已有的名称,也可以自定义命名,并将自定义命名添加到名称选项列表中。将用户在设备名称选项列表中的命名更新为设备名称,由此可以解决机顶盒终端设备的设备名称冲突的问题,方便用户根据设备名称唯一的选择所需要的机顶盒终端设备,提高了控制的准确度。The user can select an existing name in the device name option list that pops up on the display device, or customize the name, and add the custom name to the name option list. Update the user's name in the device name option list to the device name, which can solve the problem of device name conflicts for set-top box terminal devices, and facilitate users to uniquely select the required set-top box terminal device according to the device name, improving the accuracy of control .
通过将用户在设备名称选项列表中的命名更新为设备名称,解决机顶盒终端设备的设备名称冲突的问题,方便用户根据设备名称唯一的选择所需要的机顶盒终端设备,提高了控制的准确度。By updating the user's name in the device name option list to the device name, the problem of the device name conflict of the set-top box terminal device is solved, and it is convenient for the user to uniquely select the required set-top box terminal device according to the device name, and the control accuracy is improved.
上述方案提供了由用户自主选择机顶盒终端设备名称的方式来解决命名冲突问题,或者,也可以由机顶盒终端设备基于显示设备数据获取备选的设备名称来进行替换。用户自主命名的方式可以与基于显示设备数据命名的方式单独采用或结合采用。The solution above provides a way for the user to independently select the name of the set-top box terminal device to solve the problem of naming conflicts, or, the set-top box terminal device can obtain an alternative device name based on the display device data for replacement. The method of user-independent naming may be used alone or in combination with the method of naming based on display device data.
实施例五Embodiment five
图5是本发明实施例五提供的一种机顶盒终端设备的控制装置的结构框图。该装置用于执行上述任意实施例所提供的一种机顶盒终端设备的控制装置方法。该装置包括:Fig. 5 is a structural block diagram of a control device of a set-top box terminal device provided by Embodiment 5 of the present invention. The apparatus is used to implement the method of a control apparatus of a set-top box terminal device provided in any of the above embodiments. The unit includes:
显示设备数据读取模块510,配置于机顶盒终端设备中,用于监测到通过数据线连接显示设备时,读取所述数据线传送的显示设备数据;The display device data reading module 510, configured in the set-top box terminal device, is used to read the display device data transmitted by the data line when it is detected that the display device is connected through the data line;
用户化名称获取模块520,配置于机顶盒终端设备中,用于根据所述显示设备数据,获取显示设备的用户化名称;The customized name obtaining module 520 is configured in the set-top box terminal device, and is used to obtain the customized name of the display device according to the display device data;
设备名称确定模块530,配置于机顶盒终端设备中,用于根据所述用户化名称,确定机顶盒终端设备的设备名称,并替换本地存储的设备名称。The device name determining module 530 is configured in the set-top box terminal device, and is configured to determine the device name of the set-top box terminal device according to the user-defined name, and replace the locally stored device name.
进一步的,该装置还包括:Further, the device also includes:
发现广播数据包接收模块,配置于机顶盒终端设备中,用于接收主控设备基于近距离无线通信协议发送的发现广播数据包;The discovery broadcast data packet receiving module is configured in the set-top box terminal device, and is used to receive the discovery broadcast data packet sent by the main control device based on the short-range wireless communication protocol;
反馈数据包发送模块,配置于机顶盒终端设备中,用于向所述主控设备发送反馈数据包以响应所述发现广播数据包,所述反馈数据包至少包括:设备名称;The feedback data packet sending module is configured in the set-top box terminal device, and is used to send a feedback data packet to the main control device in response to the discovery broadcast data packet, and the feedback data packet includes at least: a device name;
连接建立模块,配置于机顶盒终端设备中,用于与所述主控设备基于近距离无线通信协议建立连接;A connection establishment module, configured in a set-top box terminal device, for establishing a connection with the main control device based on a short-range wireless communication protocol;
控制指令接收模块,用于所述机顶盒终端设备接收所述主控设备基于所述设备名称所发送的控制指令。The control command receiving module is used for the set-top box terminal device to receive the control command sent by the main control device based on the device name.
进一步的,该装置还包括:Further, the device also includes:
设备名称解析模块,配置于主控设备中,用于在所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,接收至少两个机顶盒终端设备发送的反馈数据包,并解析获取设备名称;A device name parsing module, configured in the main control device, configured to receive feedback sent by at least two set-top box terminal devices after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet Data packet, and parse to obtain the device name;
如果存在相同的设备名称,根据相同设备名称的机顶盒终端设备的IP地址信息,向机顶盒终端设备发送命名冲突通知消息。If the same device name exists, a naming conflict notification message is sent to the set-top box terminal device according to the IP address information of the set-top box terminal device with the same device name.
进一步的,该装置还包括:Further, the device also includes:
设备名称更新模块,配置于机顶盒终端设备中,用于在所述机顶盒终端设备向所述主控设备发送反馈数据包以响应所述发现广播数据包之后,The device name update module is configured in the set-top box terminal device, and is configured to, after the set-top box terminal device sends a feedback data packet to the main control device in response to the discovery broadcast data packet,
接收到主控设备发送的命名冲突通知消息时,控制在显示设备上弹出设备名称选项列表;When receiving the naming conflict notification message sent by the master control device, control the device name option list to pop up on the display device;
接收用户在设备名称选项列表中的命名,更新为设备名称。Receive the user's name in the device name option list and update it to the device name.
进一步的,所述用户化名称获取模块520具体用于:Further, the customized name acquiring module 520 is specifically used for:
根据所述显示设备数据,提取显示设备的至少一个特征信息;Extracting at least one characteristic information of the display device according to the display device data;
根据所述至少一个特征信息,查表获取显示设备的用户化名称。According to the at least one piece of feature information, the user-defined name of the display device is obtained by looking up a table.
其中,所述特征信息至少包括:显示设备的厂商名称、生产年份、生产周期、产品代码和产品序号。Wherein, the characteristic information at least includes: the manufacturer name, production year, production cycle, product code and product serial number of the display device.
本发明实施例五提供的机顶盒终端设备的控制装置,实现了机顶盒终端设备的自动命名,提高了机顶盒终端设备的区分性,提高了对机顶盒终端设备的控制效率。The control device of the set-top box terminal equipment provided by the fifth embodiment of the present invention realizes the automatic naming of the set-top box terminal equipment, improves the differentiation of the set-top box terminal equipment, and improves the control efficiency of the set-top box terminal equipment.
本发明实施例所提供的机顶盒终端设备的控制装置可执行本发明任意实施例所提供的机顶盒终端设备的控制方法,具备执行方法相应的功能模块和有益效果。The control device of the set-top box terminal device provided by the embodiment of the present invention can execute the control method of the set-top box terminal device provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710128843.3ACN106851373B (en) | 2017-03-06 | 2017-03-06 | Control method and device for set top box terminal equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710128843.3ACN106851373B (en) | 2017-03-06 | 2017-03-06 | Control method and device for set top box terminal equipment |
| Publication Number | Publication Date |
|---|---|
| CN106851373Atrue CN106851373A (en) | 2017-06-13 |
| CN106851373B CN106851373B (en) | 2020-03-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710128843.3AActiveCN106851373B (en) | 2017-03-06 | 2017-03-06 | Control method and device for set top box terminal equipment |
| Country | Link |
|---|---|
| CN (1) | CN106851373B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107566885A (en)* | 2017-09-01 | 2018-01-09 | 北京雷石天地电子技术有限公司 | STB terminal and the method and device of peripheral hardware safety communication |
| CN110599949A (en)* | 2019-09-20 | 2019-12-20 | 深圳市洲明科技股份有限公司 | LED box body and system card and display module thereof |
| CN111478831A (en)* | 2020-03-24 | 2020-07-31 | 青岛海尔多媒体有限公司 | Method for naming smart appliances and smart appliances |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080066139A1 (en)* | 2006-09-07 | 2008-03-13 | New Silicon, Inc. | Television, television box, and apparatus for transmitting a multimedia stream to a remote device |
| EP2582150A1 (en)* | 2011-10-11 | 2013-04-17 | LG Electronics Inc. | Remote controller and control method for a multimedia device |
| CN104660685A (en)* | 2015-01-30 | 2015-05-27 | 小米科技有限责任公司 | Method and device for obtaining equipment information |
| CN105681877A (en)* | 2014-11-20 | 2016-06-15 | 中国移动通信集团公司 | Set-top box, television, platform, remote controller and method and apparatus for establishing connection |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080066139A1 (en)* | 2006-09-07 | 2008-03-13 | New Silicon, Inc. | Television, television box, and apparatus for transmitting a multimedia stream to a remote device |
| EP2582150A1 (en)* | 2011-10-11 | 2013-04-17 | LG Electronics Inc. | Remote controller and control method for a multimedia device |
| CN105681877A (en)* | 2014-11-20 | 2016-06-15 | 中国移动通信集团公司 | Set-top box, television, platform, remote controller and method and apparatus for establishing connection |
| CN104660685A (en)* | 2015-01-30 | 2015-05-27 | 小米科技有限责任公司 | Method and device for obtaining equipment information |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107566885A (en)* | 2017-09-01 | 2018-01-09 | 北京雷石天地电子技术有限公司 | STB terminal and the method and device of peripheral hardware safety communication |
| CN110599949A (en)* | 2019-09-20 | 2019-12-20 | 深圳市洲明科技股份有限公司 | LED box body and system card and display module thereof |
| CN111478831A (en)* | 2020-03-24 | 2020-07-31 | 青岛海尔多媒体有限公司 | Method for naming smart appliances and smart appliances |
| CN111478831B (en)* | 2020-03-24 | 2024-01-09 | 青岛海尔多媒体有限公司 | Intelligent household appliance naming method and intelligent household appliance |
| Publication number | Publication date |
|---|---|
| CN106851373B (en) | 2020-03-17 |
| Publication | Publication Date | Title |
|---|---|---|
| EP2559269B1 (en) | Device capable of notifying operation state change thereof through network and communication method of the device | |
| CN107683465B (en) | Control terminal device, audio system, and audio system control method | |
| EP1655665B1 (en) | Method and system for identifying a device on a universal plug and play network and playing content using the device | |
| EP3799404B1 (en) | Device capable of notifying operation state change thereof through network and communication method of the device | |
| US20070258718A1 (en) | Method and system for extending internet protocol remote control to non-internet protocol devices | |
| US10671817B2 (en) | Electronic device, user input apparatus controlling the same, and control method thereof | |
| US9307375B2 (en) | Methods for connecting devices and devices using the same | |
| CN107371044A (en) | Electronic equipment interactive method, electronic equipment, user terminal and server | |
| CN108833979B (en) | Pre-configuration file importing method of dual-system convergence terminal and dual-system convergence terminal | |
| CN106851373B (en) | Control method and device for set top box terminal equipment | |
| KR20150049360A (en) | network apparatus and control method thereof | |
| CN105491431B (en) | Control system for LED television complete machine | |
| US20120198098A1 (en) | Apparatus and method for bidirectional pairing between devices | |
| KR20080005622A (en) | Control Point and Preferred Device Registration Method in JPNP Network | |
| CN114286166A (en) | Display device, signal receiving device and media asset playing method | |
| CN112866771A (en) | Display device and method for establishing Bluetooth connection | |
| EP2507936B1 (en) | Method and apparatus for acquiring rui-based specialized control user interface | |
| US20180007427A1 (en) | Method for controlling ip-based hdmi device | |
| WO2022148056A1 (en) | Display device and driving method | |
| KR102176484B1 (en) | Method of controlling electonic device, eletronic device, method of controlling access point and access point | |
| KR20140082298A (en) | Image display apparatus and message display method thereof | |
| CN113965350A (en) | Terminal device and login control method for terminal device | |
| KR20050091418A (en) | Method and apparatus for reallizing (a) controll menu of home network system | |
| CN111432253B (en) | Electronic device and operating method thereof | |
| CN116264032A (en) | Device control method, device, storage medium and electronic device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |