










技术领域technical field
本发明涉及一种远程控制技术,特别是用于将传统家电接入家庭网络的家电代理设备。The invention relates to a remote control technology, in particular to a home appliance agent device for connecting traditional home appliances to a home network.
背景技术Background technique
家庭网络技术通常用于远程控制用户家庭网络中的家电。在家庭网络中,通常设置有家庭服务器,家庭服务器通过局域网管理家庭网络内的家电;同时,它与互联网(Internet)连接。这样,用户可以通过PC或者具备互联网连接功能的移动终端(例如智能手机等)经互联网与家庭服务器通信,实现对家电的远程控制,以及获取家电的信息,包括状态信息等。Home networking technologies are often used to remotely control home appliances on a user's home network. In a home network, a home server is usually provided, and the home server manages home appliances in the home network through a local area network; meanwhile, it is connected to the Internet (Internet). In this way, the user can communicate with the home server via the Internet through a PC or a mobile terminal (such as a smart phone) with an Internet connection function to realize remote control of the home appliance and obtain information about the home appliance, including status information.
为了实现用户对家庭网络中的家电的远程控制,在现有的家庭网络中,需要被远程控制的家电必须具备一定的网络接口,例如蓝牙、以太网卡、IEEE1394等等,以接入家庭网络和家庭服务器并按照某种协议与家庭服务器通信。这样的家电通常被称作网络家电或智能家电。在现有的家庭网络中,家庭服务器只能与上述的智能家电通信,发送各种控制指令到智能家电,控制智能家电完成各种对应的操作。In order to realize the remote control of home appliances by users in the home network, in the existing home network, the home appliances that need to be remotely controlled must have certain network interfaces, such as Bluetooth, Ethernet card, IEEE1394, etc., to access the home network and The home server communicates with the home server according to some protocol. Such home appliances are generally called network home appliances or smart home appliances. In the existing home network, the home server can only communicate with the above-mentioned smart home appliances, send various control commands to the smart home appliances, and control the smart home appliances to complete various corresponding operations.
然而,目前用户家庭内使用的家电中存在不具备网络接口、或者具备一定的网络接口但不能执行需要的协议的家电,在这里,为了方便描述,而称之为传统家电。对于传统家电,用户只能在家庭内通过红外遥控器发射红外控制信号来操作它。如果用户需要通过网络以及设置在用户网络中的家庭服务器来控制传统家电,则需要对传统家电进行内部电路的改造并且增加相应的软件,而改造传统家电的内部电路和增加软件的过程很复杂,需要专业人士才能完成。这不便于非专业人士用户来执行这样的操作。However, currently there are home appliances used in users' homes that do not have a network interface, or that have a certain network interface but cannot implement a required protocol. Here, for convenience of description, they are referred to as traditional home appliances. For traditional home appliances, users can only operate it at home by emitting infrared control signals through infrared remote controllers. If the user needs to control the traditional home appliance through the network and the home server installed in the user network, it is necessary to modify the internal circuit of the traditional home appliance and add corresponding software, and the process of modifying the internal circuit of the traditional home appliance and adding software is very complicated. It takes a professional to do it. This is inconvenient for non-professional users to perform such operations.
中国第02145878.2号专利申请“可对传统家电进行远程无线控制的系统”中提出了一种可通过电话或互联网对传统家电进行远程控制的系统,该系统包括远程遥控单元、单一开关电力模块、红外线发射模块、感测模块、多组开关电力模块及集线模块等,该集线模块接收互联网或电话经由网关传来的信号,并传送至单一开关电力模块、红外线发射模块或多组开关电力模块,用以控制具有红外线或不具有红外线功能的传统家电的电源以及其他可被红外线遥控器控制的功能。China Patent Application No. 02145878.2 "System for Remote Wireless Control of Traditional Home Appliances" proposes a system for remote control of traditional home appliances via telephone or the Internet. The system includes a remote control unit, a single switch power module, an infrared ray Transmitting module, sensing module, multi-set switch power module and line-hub module, etc. The line-hub module receives signals from the Internet or telephone through the gateway, and transmits them to a single switch power module, infrared transmitter module or multiple sets of switch power modules , used to control the power of traditional home appliances with or without infrared functions and other functions that can be controlled by infrared remote controllers.
此专利申请虽然描述了可对传统家电进行远程无线控制的系统的结构、以及集线模块从互联网或电话接收远程控制指令到最后控制传统家电的过程,但是它没有描述用户如何从电话或与互联网连接的电脑上输入种类繁多的控制指令。事实上,家庭内的传统家电种类和数量较多,而且每个家电的控制指令也很多,用户很难记住这么多的指令。另外,此专利申请并未描述红外线发射模块如何将众多的操作指令转换成对应的红外信号。并且,新加入家庭内的传统家电对系统来说是未知的,系统如何知道这些家电的可控制的功能和红外信号,也是一个有待解决的问题。Although this patent application describes the structure of a system capable of remote wireless control of traditional home appliances, and the process by which the hub module receives remote control instructions from the Internet or telephone to finally control traditional home appliances, it does not describe how the user Enter a wide variety of control commands on the connected computer. In fact, there are many types and quantities of traditional home appliances in the family, and there are many control instructions for each appliance, and it is difficult for users to remember so many instructions. In addition, this patent application does not describe how the infrared emitting module converts numerous operation commands into corresponding infrared signals. Moreover, the traditional home appliances newly added to the family are unknown to the system, and how the system knows the controllable functions and infrared signals of these home appliances is also a problem to be solved.
发明内容Contents of the invention
本发明的目的是提供一种家电代理设备,用于将传统家电接入到家庭网络中,实现对传统家电的远程控制。The purpose of the present invention is to provide a home appliance agent device, which is used to connect traditional home appliances to a home network and realize remote control of the traditional home appliances.
根据本发明的家电代理设备,用于将传统家电接入到家庭网络中。该家电代理设备包括通信单元、红外信号处理单元以及存储单元。其中,存储单元预先存储传统家电的各项控制指令与红外信号处理单元控制传统家电的各个红外代码之间的对应关系的映射文件;通信单元用于从家庭网络接收用于控制传统家电的控制指令,并将控制指令发送给红外信号处理单元;以及,红外信号处理单元用于在接收到该控制指令后,根据映射文件将控制指令转换为对应的红外代码并发送相应的红外信号。The home appliance agent device according to the present invention is used for connecting traditional home appliances to a home network. The appliance agent device includes a communication unit, an infrared signal processing unit and a storage unit. Among them, the storage unit pre-stores the mapping file of the corresponding relationship between the various control instructions of the traditional home appliances and the infrared codes of the infrared signal processing unit to control the traditional home appliances; the communication unit is used to receive the control instructions for controlling the traditional home appliances from the home network , and send the control command to the infrared signal processing unit; and, after receiving the control command, the infrared signal processing unit converts the control command into a corresponding infrared code according to the mapping file and sends a corresponding infrared signal.
通过本发明提供的家电代理设备,用户可以在远端通过互联网获取传统家电的信息,并通过网络控制传统家电的操作。Through the home appliance proxy device provided by the invention, the user can remotely obtain the information of the traditional home appliances through the Internet, and control the operation of the traditional home appliances through the network.
附图说明Description of drawings
图1为本发明的远程控制传统家电的系统的结构示意图;FIG. 1 is a schematic structural diagram of a system for remotely controlling traditional home appliances of the present invention;
图2为依据本发明的家庭服务器的结构示意图;Fig. 2 is a schematic structural diagram of a home server according to the present invention;
图3为本发明第一实施例的家电代理的结构示意图;3 is a schematic structural diagram of a home appliance agent according to the first embodiment of the present invention;
图4为给出了各项功能与红外代码之间的示意性的对应关系的列表;FIG. 4 is a list showing the schematic correspondence between various functions and infrared codes;
图5为采用本发明第一实施例的家电代理将传统家电注册到家庭网络中的过程的流程图;Fig. 5 is a flow chart of the process of registering traditional home appliances into the home network by the home appliance agent according to the first embodiment of the present invention;
图6为采用本发明第一实施例的家电代理实现对传统家电的远程控制过程的流程图;Fig. 6 is a flow chart of the process of realizing remote control of traditional home appliances by using the home appliance agent in the first embodiment of the present invention;
图7为本发明第二实施例的家电代理的结构示意图;7 is a schematic structural diagram of a home appliance agent according to a second embodiment of the present invention;
图8为采用本发明第二实施例的家电代理将传统家电注册到家庭网络中的过程的流程图;Fig. 8 is a flow chart of the process of registering traditional home appliances in the home network by the home appliance agent according to the second embodiment of the present invention;
图9为采用本发明第二实施例的家电代理实现对传统家电的远程控制过程的流程图;Fig. 9 is a flow chart of the process of realizing remote control of traditional home appliances by using the home appliance agent in the second embodiment of the present invention;
图10为将传统家电加入家庭网络时的操作界面的图示;FIG. 10 is an illustration of an operation interface when adding a traditional home appliance to a home network;
图11是本发明互联网远程控制传统家电的序列图;Fig. 11 is a sequence diagram of Internet remote control of traditional household appliances in the present invention;
图12是本发明互联网远程控制传统家电过程中使用的网页的示意图。Fig. 12 is a schematic diagram of web pages used in the process of Internet remote control of traditional home appliances according to the present invention.
具体实施方式Detailed ways
以下结合附图详细描述本发明。The present invention will be described in detail below in conjunction with the accompanying drawings.
图1为本发明的远程控制传统家电的系统的结构示意图。如图1所示,该系统包括多个终端(例如,移动终端1或固定终端2),移动通信网络3,网关服务器4,互联网5以及家庭网络6。FIG. 1 is a schematic structural diagram of a system for remotely controlling traditional home appliances according to the present invention. As shown in FIG. 1 , the system includes multiple terminals (for example, mobile terminal 1 or fixed terminal 2 ),
终端1可以是智能手机、掌上电脑或者笔记本电脑等能通过移动通信网络3、网关服务器4连接到互联网5的设备,并安装了万维网(www)浏览器软件用于浏览网页。终端2是可以直接连接到互联网5的电脑,并安装了万维网浏览器软件用于浏览网页。终端1和终端2可以通过互联网5与远端的用户家庭内的家庭网络6通信。The terminal 1 can be a device such as a smart phone, a palmtop computer or a notebook computer that can be connected to the Internet 5 through the
具体的,作为智能手机、掌上电脑或者笔记本电脑的终端1,可以通过移动运营商提供的移动通信网络3以及负责连接移动通信网络3与互联网5的网关服务器4连接到互联网5,通过互联网5与家庭网络6进行通信,实现对家庭网络6中的家电的远程控制。另外,作为可以直接连接到互联网5的电脑的终端2,可以直接通过互联网5与家庭网络6通信,实现对家庭网络6中的家电的远程控制。Specifically, as a terminal 1 of a smart phone, a palmtop computer or a notebook computer, it can be connected to the Internet 5 through the
家庭网络6可以设置在用户的住宅里,该家庭网络6包括家庭服务器61、智能家电62、传统家电63、以及家电代理64,其中,家庭服务器61可以通过无线局域网或者局域网与智能家电62通信,以及通过无线局域网与家电代理64通信,家电代理64通过红外遥控等方法控制传统家电63。如图1中所示,家庭网络6可以进一步包括无线摄像机65,该无线摄像机65作为智能家电可以通过无线局域网与家庭服务器61通信。The
传统家电63是任何可以被红外信号控制的家电,例如电视、空调、DVD等等,在住宅内的数量、类型和品牌等由用户自行决定。
家电代理64用作不能连接到家庭网络6从而不能由家庭服务器61控制的传统家电63的代理,其可以通过类似遥控器之类的红外控制器控制传统家电,这需要被控制的传统家电63安装在其红外遥控范围之内。具体的,家电代理64可以将传统家电63的信息基于UPnP协议发布给家庭服务器61,并且基于UPnP协议接收家庭服务器61的控制指令,然后将对传统家电63的控制指令转换成对应的红外信号从而控制传统家电63。在将传统家电63注册到家庭网络中时,家电代理64将与传统家电63的设备描述信息和服务描述信息对应的(基于UPnP协议的)设备描述文件和服务描述文件、以及根据设备描述文件和服务描述文件生成的网页发送给家庭服务器61,家庭服务器61将该设备描述文件、服务描述文件以及网页存储在本地存储器(图未示)中,从而完成传统家电63到家庭网络6的注册。The
智能家电62是具备网络接口的可以连接局域网或无线局域网的家电,其支持UPnP(通用即插即用)协议与家庭服务器61通信,用户可以根据自己的需要在其住宅内设置不同数量和类型的智能家电。这里,无线摄像机65也为智能家电,具备无线通信接口并且支持UPnP协议。无线摄像机65通常和家电安装在同一个房间里,它可以通过无线局域网连接到家庭网络6从而与家庭服务器61通信,在本发明的家庭网络6中,无线摄像机65主要用于拍摄房间内家电(特别是传统家电)的状态并将拍摄的图像通过无线局域网传送给家庭服务器61,并由家庭服务器61通过互联网5反馈给用户的终端1或终端2,该图像显示在终端的显示屏上。The
家庭服务器61可以是一个连接到互联网5并安装了无线网络适配器的计算机。家庭服务器61将住宅内部的家庭网络6和互联网5连接起来,在家庭网络6和互联网5之间双向传递数据,从而控制家庭网络6内的智能家电62、家电代理64、以及无线摄像机65。The
在家电代理64将传统家电63注册到家庭网络时,家庭服务器61将从家电代理64接收的设备描述文件、服务描述文件以及网页存储在本地存储器(图未示)中。When the
在用户连接并通过认证后,家庭服务器61将家电列表以网页方式通过互联网发送到终端,该列表中包含了家庭网络中所有可远程控制的家电。在用户通过终端对家电进行远程控制时,一方面,家庭服务器61将终端1或2经互联网5发送的控制请求和控制指令,基于UPnP协议通过局域网或者无线局域网发送给家庭网络6内的智能家电,或者基于UPnP协议通过无线局域网发送给家电代理64,另一方面,其将基于UPnP协议接收的智能家电或者家电代理的反馈信息(包括与家电的设备描述信息和服务描述信息相关的网页,以及家电的状态信息),经互联网发送给用户的终端。After the user is connected and authenticated, the
具体的,当家庭服务器61接收到远端用户通过终端经互联网5发送的控制请求后,如果请求控制的对象是智能家电62,家庭服务器61根据UPnP协议将控制请求发送给智能家电62。智能家电62根据控制请求将与自身的设备描述信息和服务描述信息相关的网页发送给家庭服务器61,由家庭服务器61将该网页经由互联网发送给终端,并在终端上显示该网页。此时,用户可以通过选择终端上显示的控制功能从而发出对智能家电62进行控制的控制指令。当家庭服务器61接收到远端用户通过终端1或者2经互联网5发送的控制指令后,根据UPnP协议将控制指令发送给智能家电62,控制智能家电62执行相应的操作。另外,智能家电62可以根据UPnP协议向家庭服务器61返回指令的执行结果和自身的状态。家庭服务器61根据智能家电62反馈的执行结果和自身的状态生成网页,将网页经互联网5发送给终端1或终端2,用户可以依据网页显示的信息判断智能家电62的执行结果和状态。Specifically, when the
如果请求控制的对象是传统家电63,家庭服务器61根据UPnP协议和与传统家电63对应的家电代理64通信,发送基于UPnP协议的控制请求,家电代理64根据控制请求将与家电的设备描述信息和服务描述信息相关的网页发送给家庭服务器61,由家庭服务器61将该网页经由互联网发送给终端,并在终端上显示该网页。此时,用户可以通过选择终端上显示的各项控制功能从而发出对传统家电63进行控制的控制指令。在接收到来自终端的对传统家电63的控制指令后,家庭服务器61根据UPnP协议和与传统家电63对应的家电代理64通信,将控制指令基于UPnP协议发送给家电代理64,家电代理64将控制指令转换成对应的红外信号并发射,控制对应的传统家电63。由于传统终端自身不能返回控制指令的执行结果给家电代理64,家电代理64只能将红外信号是否已经发射的结果返回给家庭服务器61。如果用户想观察传统家电63被控制后的状态,她/他可以远程控制无线摄像机65来搜索被控的传统家电63并且在拍摄图像后将图像发送给家庭服务器61,家庭服务器61根据图像生成网页,将网页经互联网5发送给终端,用户可以依据图像信息判断传统家电63的状态。当然,在需要确认智能家电62的状态时,也可以采用同样的方式进行。If the object to be controlled is a
以下将结合附图详细说明家庭网络中的家庭服务器和家电代理。The home server and home appliance agent in the home network will be described in detail below with reference to the accompanying drawings.
图2为依据本发明的家庭服务器的结构示意图。如图2所示,家庭服务器61包括HTTP(超文本传输协议)服务器单元611、数据转换单元612、以及UPnP执行单元613。FIG. 2 is a schematic structural diagram of a home server according to the present invention. As shown in FIG. 2 , the
其中,HTTP服务器单元611一方面用于接收终端经互联网5发送的控制请求和控制指令,将控制请求和控制指令发送给数据转换单元612,另一方面,将来自数据转换单元612的基于HTTP协议的网页经互联网5发送给终端。Among them, the
具体的,HTTP服务器单元611接收到控制请求时,将控制请求发送给数据转换单元612,并接收来自数据转换单元612的对应于控制请求的网页以及将网页经由互联网发送给终端。当控制请求请求控制的对象为传统家电63时,该网页中为家电代理64对来自终端的控制请求的响应而发送的与传统家电的设备描述信息和服务描述信息相关的网页。当控制请求请求控制的对象为智能家电62时,该网页为智能家电62对来自终端的控制请求或控制指令的响应而发送的与自身的设备描述信息和服务描述信息相关的网页。Specifically, when the
HTTP服务器单元611接收到控制指令时,将控制指令发送给数据转换单元612。并且,在用户需要了解控制指令的执行情况时,HTTP服务器单元611接收数据转换单元612对应于控制指令的响应而生成的网页,并将网页经由互联网发送给终端。当控制指令控制的对象为传统家电63时,该网页中包含家电代理64关于是否执行了控制指令的信息。当控制指令控制的对象为智能家电62时,该网页包含智能家电62自身的状态信息。When the
数据转换单元612将来自HTTP服务器单元611的控制请求和控制指令(HTTP格式)转换为可由UPnP执行单元613处理的基于UPnP协议的控制请求和控制指令,并且将来自UPnP执行单元613的基于UPnP协议的响应转换为对应的HTTP格式的网页。The
UPnP执行单元613一方面与家电代理64或智能家电62基于UPnP协议通信,将来自数据转换单元612的基于UPnP协议的控制请求和控制指令发送给家电代理64或智能家电62,并从家电代理64或智能家电62接收对控制请求和控制指令的响应。另一方面,UPnP执行单元613与数据转换单元612通信,接收来自数据转换单元612的基于UPnP协议的控制请求和控制指令,并将来自家电代理64或智能家电62的对控制请求和控制指令的响应发送给数据转换单元612。On the one hand, the
家电代理64介于家庭服务器61和传统家电63之间,它通过无线局域网基于UPnP协议与家庭服务器61通信,一方面将传统家电63注册到家庭服务器61中,另一方面对来自家庭服务器61的控制请求和控制指令作出相应的响应。The
以下将参照图3详细描述依据本发明第一实施例的家电代理。The home appliance agent according to the first embodiment of the present invention will be described in detail below with reference to FIG. 3 .
图3为本发明第一实施例的家电代理的结构示意图。如图3所示,根据本发明第一实施例的家电代理64a包括UPnP设备单元641a、红外信号收发器642a、存储单元643a、设置单元644a以及输入单元645a。Fig. 3 is a schematic structural diagram of a home appliance agent according to the first embodiment of the present invention. As shown in FIG. 3 , the appliance agent 64a according to the first embodiment of the present invention includes a
其中,输入单元645a用于输入传统家电的设备描述信息和服务描述信息。其中,设备描述信息用于描述家电的类型、品牌、型号等信息,比如家电是电视或空调或DVD等等,并且,上述的服务描述信息用于描述家电可被控制的功能,如电视可以调台、调节音量、调节对比度;空调可以设置温度、设置风向、设置风力等等。Wherein, the
红外信号收发器642a用于接收和发送红外信号,一方面将从红外遥控装置(例如用于遥控传统家电63的红外遥控器)接收的红外信号转换为对应的红外代码,一方面将来自UPnP设备单元641a的控制指令转换为对应的红外代码从而发出对应于该红外代码的红外信号,从而控制传统家电63执行相应的功能。进一步,在需要将控制指令的执行状况反馈给终端时,红外信号收发器642a在发送红外信号后,将表示已发送红外信号的消息发送给UPnP设备单元641a,由UPnP设备单元641a发送给家庭服务器61。The
设置单元644a一方面根据输入单元645a输入的传统家电的设备描述信息和服务描述信息生成与设备描述信息和服务描述信息对应的设备描述文件和服务描述文件,进一步,利用设备描述文件和服务描述文件生成与设备描述文件和服务描述文件对应的网页。另一方面,设置单元644a根据输入单元645a输入的传统家电的服务描述信息的各项功能(对应于控制指令)、以及红外信号收发器642a转换的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系。以传统家电63为电视的情况为例,图4示意性地给出了各项功能与红外代码之间映射关系。其中,电源“power”对应的红外代码为65,声音递增“Vol+”对应的红外代码为66,声音递减“Vol-”对应的红外代码为67,频道递增“Prog+”对应的红外代码为68,频道递减“Prog-”对应的红外代码为69等等。On the one hand, the
存储单元643a用于上述的设备描述文件和服务描述文件、与设备描述文件和服务描述文件对应的网页、以及映射文件。红外信号收发器642a在接收到来自UPnP设备单元641a的控制指令时,根据映射文件将控制指令转换为对应的红外代码从而发出对应于该红外代码的红外信号。The
UPnP设备单元641a在将传统家电63加入家庭网络时将存储单元643a中的设备描述文件、服务描述文件和网页基于UPnP协议发送到家庭服务器61,在接收到用于请求控制传统家电63的控制请求时将存储单元643a中网页基于UPnP协议发送到家庭服务器61,以及,基于UPnP协议从家庭服务器61接收用于控制传统家电63的控制指令,并将控制指令发送给红外信号收发器642a。进一步,在需要将控制指令的执行状况反馈给终端时,UPnP设备单元641a将在红外信号收发器642a发送红外信号后从红外信号收发器642a接收的将表示已发送红外信号的消息发送给家庭服务器61。The
另外,为了便于用户通过输入单元645a输入传统家电63的设备描述信息和服务描述信息,家电代理64a还可以进一步包括显示单元646a,设置单元644a通过显示单元646a向用户显示图形用户界面。In addition, in order to facilitate the user to input the device description information and service description information of the
图5为采用本发明第一实施例的家电代理将传统家电注册到家庭网络中的过程的流程图。该流程包括以下步骤:Fig. 5 is a flow chart of the process of registering a traditional home appliance in a home network by the home appliance agent according to the first embodiment of the present invention. The process includes the following steps:
步骤S501,用户通过输入单元645a输入传统家电63的设备描述信息和服务描述信息,该服务描述信息中包含传统家电63的各项功能;Step S501, the user inputs device description information and service description information of the
步骤S502,用户对应于服务描述信息的各项功能操作传统家电63的红外遥控装置上的用于实现各项功能的按键,产生分别对应于各项功能的红外信号,红外信号收发器642a分别接收这些红外信号,并将其转换为对应的红外代码;Step S502, the user operates the buttons on the infrared remote control device of the
步骤S503,设置单元644a根据从输入单元645a输入的设备描述信息和服务描述信息生成对应的设备描述文件和服务描述文件,并且根据设备描述文件和服务描述文件生成包含设备描述信息和服务描述信息的网页,进一步,设置单元644a根据从输入单元645a输入的服务描述信息和从红外信号收发器642a输入的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系;In step S503, the
步骤S504,设置单元644a将上述的设备描述文件和服务描述文件、网页以及映射文件存储在存储单元643a中;Step S504, the
步骤S505,UPnP设备单元641a从存储单元643a中读取设备描述文件、服务描述文件和网页,并将这些文件发送到家庭服务器61中,从而将传统家电63注册到家庭网络6中。Step S505, the
上述步骤S501-S503中仅表示了一种获取与传统家电63相关的信息的过程,可以理解的是,本发明并不仅限于上述步骤S501-S503描述的过程。例如,还可以是,首先输入传统家电63的设备描述信息,然后输入传统家电63的服务描述信息中某一项功能,同时红外信号收发器接收对应于该项功能的红外信号并转换为对应的红外代码,随后由设置单元644a建立该项功能与该红外代码的映射关系。然后重复上述过程,直至每项功能和每个红外代码的映射关系均建立后形成映射文件,并根据设备描述信息和服务描述信息生成设备描述文件和服务描述文件进而根据生成的设备描述文件和服务描述文件生成网页。The above steps S501-S503 only show a process of acquiring information related to the
另外,在步骤S504-S505中,可以由设置单元644a将生成的网页发送给UPnP设备单元641a,而非UPnP设备单元641a从存储单元643a中读取网页。In addition, in steps S504-S505, the
图6为采用本发明第一实施例的家电代理实现对传统家电的远程控制过程的流程图,该过程包括以下步骤:Fig. 6 is a flow chart of the process of implementing remote control of traditional home appliances using the home appliance agent in the first embodiment of the present invention, the process includes the following steps:
步骤S601,在终端与家庭服务器61之间的连接和认证完成后,在用户端的终端上将显示家庭网络中可远程控制的家电(包括智能家电62和传统家电63)的列表,用户通过点击列表中的某一传统家电,发送用于控制该传统家电的控制请求;Step S601, after the connection and authentication between the terminal and the
步骤S602,家庭服务器61接收控制请求,将控制请求转换为基于UPnP协议的控制请求后发送给家电代理64a;Step S602, the
步骤S603,在家电代理64a中,UPnP设备单元641a在接收控制请求后,根据控制请求将存储单元643a中存储的由设备描述文件和服务描述文件生成的网页基于UPnP协议经无线局域网发送给家庭服务器61;Step S603, in the home appliance agent 64a, after receiving the control request, the
步骤S604,家庭服务器61在接收该网页后,将该网页发送给终端,从而在终端上显示该网页;Step S604, after receiving the webpage, the
步骤S605,用户根据终端上显示的网页的信息(包含将被控制的传统家电的各项功能),点击将被控制的传统家电的某项功能后发送对该传统家电的对应于该项功能的控制指令;Step S605, the user clicks on a function of the traditional home appliance to be controlled according to the information on the web page displayed on the terminal (including various functions of the traditional home appliance to be controlled), and then sends the corresponding message to the traditional home appliance corresponding to the function. Control instruction;
步骤S606,家庭服务器61接收控制指令,在将控制指令转换为基于UPnP协议的控制指令后发送给家电代理64a;Step S606, the
步骤S607,在家电代理64a中,UPnP设备单元641a接收控制指令,将控制指令发送给红外信号收发器642a,红外信号收发器642a根据存储单元643a中存储的映射文件,将控制指令转换为对应的红外代码后发射对应的红外信号,从而控制传统家电63执行相应的功能;Step S607, in the home appliance agent 64a, the
进一步,在需要将控制指令的执行状况反馈给终端时,如步骤S608所示,红外信号收发器642a在发送红外信号后,将表示已发送红外信号的消息发送给UPnP设备单元641a;Further, when it is necessary to feed back the execution status of the control command to the terminal, as shown in step S608, after sending the infrared signal, the
步骤S609,UPnP设备单元641a将表示已发送红外信号的消息发送给家庭服务器61,由家庭服务器61发送给终端,显示在终端上。In step S609, the
通过本发明第一实施例的家电代理,可以实现用户对传统家电的远程控制。Through the home appliance agent of the first embodiment of the present invention, users can remotely control traditional home appliances.
由于在将传统家电63注册到家庭网络6中时,家庭服务器61的本地存储器中已存储了根据设备描述文件和服务描述文件生成的网页,因此,对于上述流程中的步骤S602-S604,还可以是,家庭服务器61在接收到控制请求后,根据控制请求将本地存储器中的根据设备描述文件和服务描述文件生成的网页发送给终端,代替将控制请求发送给家电代理64并将从家电代理64接收的网页发送给终端。Since when the
另外,在本实施例中,可以为家庭服务器61提供根据设备描述文件和服务描述文件生成与设备描述文件和服务描述文件对应的网页这样的功能,即,将家庭代理64中设置单元644a的网页生成功能从家庭代理64中分离出来并设置在家庭服务器61中。在此情况下,由于对于传统家电63的注册而言,设备描述文件和服务描述文件已足够,因此,家庭代理不需要在注册传统家电63时将网页发送给家庭服务器61,而替代的是,家庭服务器61在接收到控制请求时直接根据传统家电的设备描述文件和服务描述文件生成对应的网页后发送给终端。这样,本发明第一实施例的家电代理中的设置单元644a可以仅生成设备描述文件、服务描述文件以及映射文件,而不必根据设备描述文件和服务描述文件生成网页,相应的,存储单元643a中也仅存储设备描述文件、服务描述文件以及映射文件,并且,UPnP设备单元641a仅将设备描述文件和服务描述文件发送给家庭服务器61。In addition, in this embodiment, the
并且,可以理解的是,可以在家电代理64的存储单元中预先存储各种传统家电的设备描述文件、服务描述文件和映射文件,如果必要,也可以预先存储根据设备描述文件和服务描述文件生成的网页。从而,可以进一步简化甚至省略用户在家电代理上的输入操作。在预先存储上述各种文件和/或网页的情况下,设置单元可以根据输入单元和红外信号收发器的输入生成新的设备描述文件、服务描述文件、映射文件(必要时包括网页),来更新存储其中预先存储的上述文件和/或网页。Moreover, it can be understood that the device description files, service description files, and mapping files of various traditional home appliances can be pre-stored in the storage unit of the
图7为本发明第二实施例的家电代理的结构示意图。如图7所示,第二实施例的家电代理64b包括UPnP设备单元641b、红外线收发器642b、存储单元643b、设置单元644b、输入单元645b以及网页生成单元646b。FIG. 7 is a schematic structural diagram of a home appliance agent according to a second embodiment of the present invention. As shown in FIG. 7 , the appliance agent 64b of the second embodiment includes a
其中,输入单元645b用于输入传统家电的设备描述信息和服务描述信息。Wherein, the
红外信号收发器642b用于接收和发送红外信号,一方面将从红外遥控装置(例如用于遥控传统家电63的红外遥控器)接收的红外信号转换为对应的红外代码,一方面将来自UPnP设备单元641b的控制信号转换为对应的红外代码从而发出对应于该红外代码的红外信号,从而控制传统家电63执行相应的功能。进一步,在需要将控制指令的执行状况反馈给终端时,红外信号收发器642b在发送红外信号后,将表示已发送红外信号的消息发送给UPnP设备单元641b,由UPnP设备单元641b发送给家庭服务器61。The
设置单元644b一方面根据输入单元645b输入的传统家电的设备描述信息和服务描述信息生成与设备描述信息和服务描述信息对应的设备描述文件和服务描述文件。另一方面,设置单元644b根据输入单元645b输入的传统家电的服务描述信息的各项功能(对应于控制指令)、以及红外信号收发器642a转换的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系,如图4所示。On the one hand, the
存储单元643b用于存储上述的设备描述文件、服务描述文件以及映射文件。红外信号收发器642b在接收到来自UPnP设备单元641b的控制指令时,根据映射文件将控制指令转换为对应的红外代码从而发出对应于该红外代码的红外信号。The
网页生成单元646b在接收到UPnP设备单元641b的网页生成请求时,根据存储单元643b中存储的设备描述文件和服务描述文件生成对应的网页,并发送给UPnP设备单元641b。When the web
UPnP设备单元641b在接收到用于请求控制传统家电63的控制请求时(或者,如果必要,在将传统家电63加入家庭网络时),将网页生成请求发送给网页生成单元646b,并将从网页生成单元646b接收的网页发送给家庭服务器61,以及,在基于UPnP协议从家庭服务器61接收到用于控制传统家电63的控制指令时,将控制指令发送给红外信号收发器642a。When the
进一步,为了便于用户通过输入单元645b输入传统家电63的设备描述信息和服务描述信息,家电代理64b还可以进一步包括显示单元647b,设置单元644b通过显示单元647b向用户显示图形用户界面。Further, in order to facilitate the user to input the device description information and service description information of the
图8为采用本发明第二实施例的家电代理将传统家电注册到家庭网络中的过程的流程图。该流程包括以下步骤:Fig. 8 is a flow chart of the process of registering traditional home appliances in the home network by the home appliance agent according to the second embodiment of the present invention. The process includes the following steps:
步骤S801,用户通过输入单元645b输入传统家电63的设备描述信息和服务描述信息,该服务描述信息中包含传统家电63的各项功能;Step S801, the user inputs device description information and service description information of the
步骤S802,用户对应于服务描述信息的各项功能操作传统家电63的红外遥控装置上的用于实现各项功能的按键,产生分别对应于各项功能的红外信号,红外信号收发器642b分别接收这些红外信号,并将其转换为对应的红外代码;Step S802, the user operates the buttons on the infrared remote control device of the
步骤S803,设置单元644b根据从输入单元645b输入的设备描述信息和服务描述信息生成对应的设备描述文件和服务描述文件,并且,根据从输入单元645b输入的服务描述信息和从红外信号收发器642b输入的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系;Step S803, the
步骤S804,设置单元644b将上述的设备描述文件、服务描述文件以及映射文件存储在存储单元643b中;Step S804, the
步骤S805,UPnP设备单元641b将存储单元643b中的设备描述文件和服务描述文件发送到家庭服务器61,从而将传统家电63注册到家庭网络6中。In step S805, the
进一步,该过程还可以包括:Further, the process may also include:
步骤S806,UPnP设备单元641b向网页生成单元646b发出网页生成请求;Step S806, the
步骤S807,网页生成单元646b根据存储单元643b中存储的设备描述文件和服务描述文件生成对应的网页并将生成的网页发送给UPnP设备单元641b;Step S807, the
步骤S808,UPnP设备单元641b将网页发送到家庭服务器61中。In step S808, the
值得说明的是,在需要执行上述步骤S806-S808时,上述步骤S806-S808也可以在步骤S804和S805之间进行。It is worth noting that, when the above steps S806-S808 need to be performed, the above steps S806-S808 may also be performed between steps S804 and S805.
图9为采用本发明第二实施例的家电代理实现对传统家电的远程控制过程的流程图,该过程包括以下步骤:Fig. 9 is a flow chart of the process of realizing the remote control of traditional home appliances by using the home appliance agent in the second embodiment of the present invention, the process includes the following steps:
步骤S901,在终端与家庭服务器61之间的连接和认证完成后,在用户端的终端上将显示家庭网络中可远程控制的家电(包括智能家电62和传统家电63)的列表,用户通过点击列表中的某一传统家电,发送用于控制该传统家电的控制请求;Step S901, after the connection and authentication between the terminal and the
步骤S902,家庭服务器61接收控制请求,将控制请求转换为基于UPnP协议的控制请求后发送给家电代理64b;Step S902, the
步骤S903,在家电代理64b中,UPnP设备单元641b在接收控制请求后,向网页生成单元646b发出网页生成请求;Step S903, in the home appliance agent 64b, after receiving the control request, the
步骤S904,网页生成单元646b在接收到网页生成请求后,根据存储单元643a中存储的设备描述文件和服务描述文件生成对应的网页,并将生成的网页发送给UPnP设备单元641b;Step S904, after receiving the webpage generation request, the
步骤S905,UPnP设备单元641b将该网页经无线局域网发送给家庭服务器61;Step S905, the
步骤S906,家庭服务器61在接收该网页后,将该网页发送给终端,从而在终端上显示该网页;Step S906, after receiving the webpage, the
步骤S907,用户根据终端上显示的网页的信息(包含将被控制的传统家电的各项功能),点击将被控制的传统家电的某项功能后发送对该传统家电的对应于该项功能的控制指令;Step S907, the user clicks on a function of the traditional home appliance to be controlled according to the information on the web page displayed on the terminal (including various functions of the traditional home appliance to be controlled), and then sends a message corresponding to the function to the traditional home appliance. Control instruction;
步骤S908,家庭服务器61接收控制指令,在将控制指令转换为基于UPnP协议的控制指令后发送给家电代理64b;Step S908, the
步骤S909,在家电代理64b中,UPnP设备单元641b接收控制指令,将控制指令发送给红外信号收发器642b,红外信号收发器642b根据存储单元643b中存储的映射文件,将控制指令转换为对应的红外代码后发射对应的红外信号,从而控制传统家电63执行相应的功能;Step S909, in the home appliance agent 64b, the
进一步,在需要将控制指令的执行状况反馈给终端时,如步骤S910所示,红外信号收发器642b在发送红外信号后,将表示已发送红外信号的消息发送给UPnP设备单元641b;Further, when it is necessary to feed back the execution status of the control command to the terminal, as shown in step S910, after sending the infrared signal, the
步骤S911,UPnP设备单元641b将表示已发送红外信号的消息发送给家庭服务器61,由家庭服务器61发送给终端,显示在终端上。In step S911, the
通过本发明第二实施例的家电代理,可以实现用户对传统家电的远程控制。Through the home appliance agent of the second embodiment of the present invention, the remote control of traditional home appliances by users can be realized.
与第一实施例同样的道理,由于在将传统家电63注册到家庭网络6中时,家庭服务器61的本地存储器中已存储了根据设备描述文件和服务描述文件生成的网页,因此,对于上述流程中的步骤S902-S906,还可以是,家庭服务器61在接收到控制请求后,根据控制请求将本地存储器中的根据设备描述文件和服务描述文件生成的网页发送给终端,代替将控制请求发送给家电代理64并将从家电代理64接收的网页发送给终端。Similar to the first embodiment, since the
另外,如同第一实施例所述,可以为家庭服务器61提供生成网页的功能,这种情况下对于将传统家电63注册到家庭网络6而言设备描述文件和服务描述文件已足够,从而,可以在接收到控制请求时,直接根据传统家电的设备描述文件和服务描述文件生成对应的网页后发送给终端。这样,本发明第二实施例的家电代理中的网页生成单元646b在将传统家电63注册到家庭网络6中时,可以不必根据设备描述文件和服务描述文件生成网页,这样,相应的,在将传统家电63注册到家庭网络6中时,UPnP设备单元641a不必向网页生成单元646b发出网页生成请求,只需将设备描述文件和服务描述文件发送给家庭服务器61。In addition, as described in the first embodiment, the
并且,可以理解的是,可以在家电代理64的存储单元中预先存储各种传统家电的设备描述文件、服务描述文件和映射文件,如果必要,也可以预先存储根据设备描述文件和服务描述文件生成的网页。从而,可以进一步简化甚至省略用户在家电代理上的输入操作。Moreover, it can be understood that the device description files, service description files and mapping files of various traditional home appliances can be pre-stored in the storage unit of the
另外,在远程控制传统家电后,如果用户需要确认控制后的传统家电的状态,则可以通过家庭服务器与监控传统家电的无线摄像机通信,由无线摄像机将传统家电的状态拍摄下来并且在拍摄图像后将图像发送给家庭服务器,家庭服务器根据图像生成网页,将网页经互联网发送给终端,用户可以依据图像信息判断传统家电的状态。In addition, after remotely controlling the traditional home appliances, if the user needs to confirm the status of the controlled traditional home appliances, he can communicate with the wireless camera monitoring the traditional home appliances through the home server, and the wireless camera will capture the status of the traditional home appliances and after taking the image The image is sent to the home server, and the home server generates a webpage based on the image, and sends the webpage to the terminal via the Internet, and the user can judge the status of the traditional home appliance based on the image information.
可以理解的是,本领域普通技术人员通过阅读上述两种实施例的家电代理及其变形后,可以对上述方案做出其他方式的变形,例如,可以通过由执行设置单元、网页生成单元的功能的软件程序,存储该软件程序的存储器(可以与上述的存储单元为同一存储设备)以及执行该软件程序的处理器代替设置单元和网页生成单元等来实现家电代理。It can be understood that those of ordinary skill in the art can make other modifications to the above scheme after reading the home appliance agents and their deformations in the above two embodiments, for example, by executing the functions of the setting unit and the web page generating unit The software program, the memory for storing the software program (which may be the same storage device as the above-mentioned storage unit) and the processor for executing the software program replace the setting unit and the web page generating unit to realize the home appliance agent.
接下来为了进一步理解本发明的实际操作过程,结合实例附图描述本发明中的一种具体的操作实例。Next, in order to further understand the actual operation process of the present invention, a specific operation example in the present invention will be described in conjunction with the accompanying drawings.
本操作实例分为两个过程,第一个过程是将一个新加入家庭的传统家电加入到家庭网络中,此操作只需要进行一次,在传统家电加入到家庭网络后,以后就不用再进行该过程的操作;第二个过程是用户执行远程控制家电的过程。This operation example is divided into two processes. The first process is to add a newly added traditional home appliance to the home network. This operation only needs to be performed once. After the traditional home appliance is added to the home network, there is no need to do this again The operation of the process; the second process is the process in which the user performs remote control of the home appliance.
在将传统家电加入到家庭网络的过程中,用户先在家电代理上执行设置单元,设置单元通过显示单元向用户显示一个图形用户界面(如图10A所示)。In the process of adding traditional home appliances to the home network, the user first executes the setting unit on the home appliance agent, and the setting unit displays a graphical user interface (as shown in FIG. 10A ) to the user through the display unit.
如果用户需要添加的传统家电没有显示在该界面中,则用户点击“增加”来输入新的类型的传统家电,从而进入图10B所示的界面,在图10B所示的界面中,用户输入新的家电名称(例如“红外遥控电灯”)后点击“确定”,从而完成新的设备类型的输入。如果图10A所示的界面中显示了用户需要添加的传统家电,则用户点击相应的栏目,例如本例中选择电视,此时进入到图10C所示的界面。If the traditional home appliance that the user needs to add is not displayed in this interface, then the user clicks "Add" to input a new type of traditional home appliance, thereby entering the interface shown in Figure 10B, in the interface shown in Figure 10B, the user inputs a new Click "OK" after the name of the appliance (such as "infrared remote control lamp") to complete the input of the new device type. If the interface shown in FIG. 10A shows the traditional household appliances that the user needs to add, the user clicks on the corresponding column, for example, selects TV in this example, and enters the interface shown in FIG. 10C .
在图10C所示的界面中,如果存在用户需要的品牌,则用户点击该品牌,进入图10D所示的界面,如果不存在用户需要的品牌,则用户可以通过点击“增加”来输入需要添加的品牌。In the interface shown in Figure 10C, if there is a brand that the user needs, the user clicks on the brand to enter the interface shown in Figure 10D, if there is no brand that the user needs, the user can click "Add" to input the brand that needs to be added. s brand.
在如图10D所示的界面中,可以预先定义了服务类型,即,将多个功能项分类组合成一个或多个服务,例如,电视可以提供的服务有两类,一是控制,包括调节音量、调台等;二是调整画面,包括调节明暗对比度、色彩饱和度等等;空调提供的服务为控制,即调节温度、风向等等。用户可以点击“编辑”按钮对服务名称进行编辑,或者点击“增加”按钮增加新的服务名称。如果设备类型不是图10A列举的设备类型,家电代理没有预先定义服务,用户需要点击“增加”按钮增加新的服务,如图10E。In the interface shown in Figure 10D, service types can be pre-defined, that is, multiple functional items can be classified and combined into one or more services. For example, there are two types of services that TV can provide, one is control, including adjustment Volume, channel adjustment, etc.; the second is to adjust the picture, including adjusting the contrast of light and dark, color saturation, etc.; the service provided by the air conditioner is control, that is, adjusting the temperature, wind direction, etc. Users can click the "Edit" button to edit the service name, or click the "Add" button to add a new service name. If the device type is not the device type listed in Figure 10A, the home appliance agent does not have a predefined service, and the user needs to click the "Add" button to add a new service, as shown in Figure 10E.
在用户上述输入完成后,即,设备描述信息和服务描述信息输入完成后,设置单元根据预先设定的设备描述文件模板和服务描述文件模板生成符合UPnP协议的设备描述文件和服务描述文件。After the above-mentioned input by the user is completed, that is, after the input of the device description information and service description information is completed, the setting unit generates a device description file and a service description file conforming to the UPnP protocol according to the preset device description file template and service description file template.
接下来,设置单元在显示单元上显示此设备类型的服务描述文件里描述的所有命令项,如图10F。在此界面下,用户可根据此传统家电的实际情况,编辑(增加、删除、修改)命令项,如图10G。然后,设置单元根据获取用户的编辑结果,更新服务描述文件。Next, the setting unit displays all command items described in the service description file of this device type on the display unit, as shown in FIG. 10F . In this interface, the user can edit (add, delete, modify) command items according to the actual situation of the traditional home appliance, as shown in Figure 10G. Then, the setting unit updates the service description file according to the editing result acquired by the user.
在将新的传统家电加入到家庭网络中时,通常有些功能并没有在设置单元提供的界面中得到反映,此时,需要重新建立这些功能与对应的红外代码之间的映射关系,也就是需要进行新功能的注册或者学习,这里称为“红外学习”,如图10F中所示。此时,用户可以首先点击图10F所示界面上的某个需要进行红外学习的命令项,在点击后,用户通过家电的红外遥控器向红外信号收发器发射红外信号,红外信号收发器接收该红外信号并将红外信号转换成对应的编码(红外代码),从而,设置单元可以在命令项和编码之间建立映射关系。When adding new traditional home appliances to the home network, usually some functions are not reflected in the interface provided by the setting unit. At this time, the mapping relationship between these functions and the corresponding infrared codes needs to be re-established, that is Register or learn new functions, which is called “infrared learning” here, as shown in FIG. 10F . At this point, the user can first click a certain command item that requires infrared learning on the interface shown in Figure 10F. The infrared signal is converted into a corresponding code (infrared code), so that the setting unit can establish a mapping relationship between the command item and the code.
然后,网页生成单元可以根据预先定义的网页模板生成网页,将家电的服务描述文件列举的命令项以图形用户界面的形式表示,如图10H。用户可根据个人需求对网页进行修改,如调整命令的位置,颜色等等,最终网页保存在存储单元中。Then, the webpage generation unit may generate a webpage according to a predefined webpage template, and display the command items listed in the service description file of the home appliance in the form of a graphical user interface, as shown in FIG. 10H . Users can modify the webpage according to their personal needs, such as adjusting the position and color of commands, etc., and finally the webpage is saved in the storage unit.
最后,UPnP设备单元根据UPnP协议将传统家电的设备描述文件和服务描述文件,必要时包括网页等发送给家庭服务器,至此,就完成了将传统家电加入到家电网络中。Finally, the UPnP device unit sends the device description file and service description file of the traditional home appliance, including web pages if necessary, to the home server according to the UPnP protocol. So far, the addition of the traditional home appliance to the home appliance network is completed.
本实例的第二个过程是用户远程控制传统家电的过程。图11描述了远程控制传统家电的过程。The second process in this example is the process in which the user remotely controls the traditional home appliance. Figure 11 describes the process of remote control of traditional home appliances.
步骤S1101,用户在终端1或者2的浏览器上输入自己住宅内家庭服务器的网络地址,通过互联网向家庭服务器发送连接请求CR1。In step S1101, the user inputs the network address of the home server in his residence on the browser of
步骤S1102,家庭服务器返回一个登录网页WP1,要求用户输入用户ID和密码,如图12A所示。Step S1102, the home server returns a login webpage WP1, requiring the user to input user ID and password, as shown in Figure 12A.
步骤S1103,用户输入用户ID号和密码然后发出认证请求GR1,家庭服务器的HTTP服务器单元接收到认证请求GR1并且对用户ID号和密码进行认证,检验其是否有效(步骤S1104)。Step S1103, the user inputs the user ID number and password and then sends an authentication request GR1, the HTTP server unit of the home server receives the authentication request GR1 and authenticates the user ID number and password, and checks whether they are valid (step S1104).
如果在步骤S1104认证通过,家庭服务器则将家庭网络内的家电列表的网页WP2发送给终端(步骤S1105),否则返回认证失败的消息。图12B是网页WP2的一个示例。虽然该家电列表中只显示了传统家电,但可以理解的是,这同样可以包含智能家电。If the authentication is passed in step S1104, the home server sends the webpage WP2 of the home appliance list in the home network to the terminal (step S1105), otherwise returns a message of authentication failure. FIG. 12B is an example of the web page WP2. While only traditional appliances are shown in this list of appliances, it is understandable that this could include smart appliances as well.
步骤S1106,用户在网页WP2上点击期望控制的家电,产生控制请求GR2并将控制请求GR2发送到家庭服务器。Step S1106, the user clicks on the home appliance desired to be controlled on the web page WP2, generates a control request GR2 and sends the control request GR2 to the home server.
家庭服务器的HTTP服务器单元接收到控制请求GR2,然后将控制请求GR2转到家庭服务器的数据转换单元,数据转换单元将此控制请求GR2进行转换,然后转发给UPnP执行单元,UPnP执行单元基于UPnP协议与家电对应的家电代理通信,发送控制请求UR1(步骤S1107)。The HTTP server unit of the home server receives the control request GR2, and then transfers the control request GR2 to the data conversion unit of the home server, and the data conversion unit converts the control request GR2, and then forwards it to the UPnP execution unit, which is based on the UPnP protocol The home appliance agent corresponding to the home appliance communicates and transmits a control request UR1 (step S1107).
家电代理将其设备描述文件和服务描述文件(必要时包括网页)等数据UD1基于UPnP协议发送给家庭服务器(步骤S1108),家庭服务器将与设备描述文件和服务描述文件相关的网页WP3发送到远端的终端(步骤S1109),如图12C是用户在图12B所示的网页中选择了“电视”后家庭服务器返回的网页。网页WP3列举了此家电的所有可控制的功能项,用户可以在此网页浏览和控制家电的各功能项。The home appliance agent sends data UD1 such as its device description file and service description file (including web pages if necessary) to the home server based on the UPnP protocol (step S1108), and the home server sends the web page WP3 related to the device description file and service description file to the remote server. 12C is the webpage returned by the home server after the user selects "TV" in the webpage shown in Fig. 12B. The web page WP3 lists all the controllable function items of the home appliance, and the user can browse and control each function item of the home appliance on this web page.
步骤S1110,用户通过网页WP3发送控制家电的控制指令GR3(例如调整电视的频道),家庭服务器的HTTP服务器单元接收到控制指令GR3,将此控制指令转发给数据转换单元,数据转换单元将此控制指令进行转换,并转发给UPnP执行单元,UPnP执行单元基于UPnP协议发送控制家电的控制指令UR2给家电对应的家电代理(步骤S1111)。Step S1110, the user sends a control command GR3 for controlling home appliances through the web page WP3 (such as adjusting the channel of the TV), the HTTP server unit of the home server receives the control command GR3, and forwards the control command to the data conversion unit, and the data conversion unit controls the The instruction is converted and forwarded to the UPnP execution unit, and the UPnP execution unit sends the control instruction UR2 for controlling the home appliance to the home appliance agent corresponding to the home appliance based on the UPnP protocol (step S1111).
家电代理的UPnP设备单元接收到控制指令UR2,将控制指令发送给红外信号收发器(步骤S1112),由红外信号收发器根据控制指令发送相应的红外信号,从而控制电视频道的调整。The UPnP device unit of the home appliance agent receives the control command UR2, and sends the control command to the infrared signal transceiver (step S1112), and the infrared signal transceiver sends a corresponding infrared signal according to the control command, thereby controlling the adjustment of the TV channel.
在用户需要确认执行结果的情况下,UPnP设备单元基于UPnP协议返回表示是否执行了发射红外信号的控制动作的消息给家庭服务器(步骤S1113),家庭服务器的UPnP执行单元接收到此消息后,将其转给数据转换单元,数据转换单元再转发给HTTP服务器单元,HTTP服务器单元将此结果生成一个网页WP4,经互联网发给远端的终端(步骤S1114),图12D是一个示例网页。In the case that the user needs to confirm the execution result, the UPnP device unit returns a message indicating whether the control action of emitting the infrared signal is performed to the home server based on the UPnP protocol (step S1113), after the UPnP execution unit of the home server receives this message, it will It forwards to the data conversion unit, and the data conversion unit forwards to the HTTP server unit again, and the HTTP server unit generates a webpage WP4 with this result, and sends it to the remote terminal (step S1114) through the Internet, and Fig. 12D is an example webpage.
如果用户希望确认家电是否按照控制指令完成了相应动作(例如,查看电视是否已经打开或者关闭),用户可以远程操作家庭网络内的无线互联网摄像机拍摄家电的静态图片并返回给终端,图12E是一个拍摄的画面的示例。因为无线互联网摄像机是支持UPnP协议的智能家电,控制无线互联网摄像机拍摄家电的静态图片的过程同上述步骤S1101-S1112,区别只在于无需经过家电代理,无线互联网摄像机直接从家庭服务器接收请求,自己完成控制指令拍摄图片,然后将图片返回给家庭服务器,家庭服务器将图片加入网页,经互联网将包含图片的网页发送给终端,用户即可观察家电的状态。If the user wants to confirm whether the home appliance has completed the corresponding action according to the control instruction (for example, check whether the TV is turned on or off), the user can remotely operate the wireless Internet camera in the home network to take a still picture of the home appliance and return it to the terminal. Figure 12E is a Example of captured footage. Because the wireless Internet camera is a smart home appliance that supports the UPnP protocol, the process of controlling the wireless Internet camera to take still pictures of the home appliance is the same as the above steps S1101-S1112, the difference is that the wireless Internet camera directly receives the request from the home server and completes it by itself without going through the home appliance agent. The control command takes a picture, and then returns the picture to the home server. The home server adds the picture to the webpage, and sends the webpage containing the picture to the terminal via the Internet, so that the user can observe the status of the home appliance.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be It is regarded as the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CNA2007101126308ACN101334932A (en) | 2007-06-25 | 2007-06-25 | Home appliance agent equipment | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CNA2007101126308ACN101334932A (en) | 2007-06-25 | 2007-06-25 | Home appliance agent equipment | 
| Publication Number | Publication Date | 
|---|---|
| CN101334932Atrue CN101334932A (en) | 2008-12-31 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CNA2007101126308APendingCN101334932A (en) | 2007-06-25 | 2007-06-25 | Home appliance agent equipment | 
| Country | Link | 
|---|---|
| CN (1) | CN101334932A (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN102006192A (en)* | 2010-11-24 | 2011-04-06 | 广州星海传媒有限公司 | Control system and control method for digital family network equipment | 
| CN102693624A (en)* | 2012-05-18 | 2012-09-26 | 程胜 | Network remote controller control system and control method for network remote control | 
| CN102811187A (en)* | 2012-08-01 | 2012-12-05 | 陈为人 | Home gateway system based on Web site and configuration method thereof | 
| CN102882749A (en)* | 2011-07-11 | 2013-01-16 | 华为终端有限公司 | Method and equipment for controlling information exhibition | 
| CN102915627A (en)* | 2012-09-25 | 2013-02-06 | 金同磊 | Method, system and household electrical appliance controller for controlling traditional household electrical appliances | 
| CN103186582A (en)* | 2011-12-29 | 2013-07-03 | 青岛海尔软件有限公司 | Device description file-based data analysis method | 
| CN103533706A (en)* | 2013-09-25 | 2014-01-22 | 浙江生辉照明有限公司 | Wireless LED (Light Emitting Diode) lighting device, wireless lighting control system and control method | 
| CN103716653A (en)* | 2012-10-01 | 2014-04-09 | 夏普株式会社 | Control apparatus, method for controlling, server, controlled apparatus, and control system | 
| CN104052641A (en)* | 2013-03-15 | 2014-09-17 | 佘培嘉 | Electric appliance network adapter networking method | 
| CN104219273A (en)* | 2013-05-30 | 2014-12-17 | 精联电子股份有限公司 | Universal plug and play system and universal plug and play adapter | 
| CN105245418A (en)* | 2015-10-12 | 2016-01-13 | 中国联合网络通信集团有限公司 | A control method, device and system for smart home devices | 
| CN105336151A (en)* | 2014-08-07 | 2016-02-17 | 杭州海康威视数字技术股份有限公司 | Infrared remote control device, infrared remote control signal learning method and infrared remote control method | 
| CN105743746A (en)* | 2014-12-29 | 2016-07-06 | 上海达禄信息科技有限公司 | Intelligent home electric appliance management method, management apparatus and management system | 
| CN106251613A (en)* | 2016-09-08 | 2016-12-21 | 四川长虹电器股份有限公司 | Non intelligent infrared electrical equipment realizes the system that Intelligent infrared controls | 
| CN108227521A (en)* | 2016-12-14 | 2018-06-29 | 佛山市顺德区美的电热电器制造有限公司 | Photoelectricity wireless control system, mobile terminal and smart machine and its control method | 
| WO2018126853A1 (en)* | 2017-01-03 | 2018-07-12 | 腾讯科技(深圳)有限公司 | Data transmission method and apparatus | 
| CN109450749A (en)* | 2018-11-26 | 2019-03-08 | 美的集团武汉制冷设备有限公司 | Communication switching electric-controlled plate, household appliance and appliance control system | 
| CN110244606A (en)* | 2019-05-30 | 2019-09-17 | 中国科学院长春光学精密机械与物理研究所 | Weapon launch control system and mounting platform with the launch control system | 
| CN113452589A (en)* | 2021-06-29 | 2021-09-28 | 张挺 | Wide area network intelligent home remote control system and working method thereof | 
| CN116580544A (en)* | 2023-07-12 | 2023-08-11 | 深圳市东明炬创电子股份有限公司 | Long-distance infrared data transmission method, system and terminal | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN102006192A (en)* | 2010-11-24 | 2011-04-06 | 广州星海传媒有限公司 | Control system and control method for digital family network equipment | 
| CN102882749A (en)* | 2011-07-11 | 2013-01-16 | 华为终端有限公司 | Method and equipment for controlling information exhibition | 
| CN102882749B (en)* | 2011-07-11 | 2015-05-13 | 华为终端有限公司 | Method and equipment for controlling information exhibition | 
| CN103186582A (en)* | 2011-12-29 | 2013-07-03 | 青岛海尔软件有限公司 | Device description file-based data analysis method | 
| CN102693624A (en)* | 2012-05-18 | 2012-09-26 | 程胜 | Network remote controller control system and control method for network remote control | 
| CN102811187A (en)* | 2012-08-01 | 2012-12-05 | 陈为人 | Home gateway system based on Web site and configuration method thereof | 
| CN102915627A (en)* | 2012-09-25 | 2013-02-06 | 金同磊 | Method, system and household electrical appliance controller for controlling traditional household electrical appliances | 
| CN103716653A (en)* | 2012-10-01 | 2014-04-09 | 夏普株式会社 | Control apparatus, method for controlling, server, controlled apparatus, and control system | 
| CN104052641A (en)* | 2013-03-15 | 2014-09-17 | 佘培嘉 | Electric appliance network adapter networking method | 
| CN104219273A (en)* | 2013-05-30 | 2014-12-17 | 精联电子股份有限公司 | Universal plug and play system and universal plug and play adapter | 
| CN103533706A (en)* | 2013-09-25 | 2014-01-22 | 浙江生辉照明有限公司 | Wireless LED (Light Emitting Diode) lighting device, wireless lighting control system and control method | 
| CN105336151A (en)* | 2014-08-07 | 2016-02-17 | 杭州海康威视数字技术股份有限公司 | Infrared remote control device, infrared remote control signal learning method and infrared remote control method | 
| CN105743746A (en)* | 2014-12-29 | 2016-07-06 | 上海达禄信息科技有限公司 | Intelligent home electric appliance management method, management apparatus and management system | 
| CN105245418A (en)* | 2015-10-12 | 2016-01-13 | 中国联合网络通信集团有限公司 | A control method, device and system for smart home devices | 
| CN106251613A (en)* | 2016-09-08 | 2016-12-21 | 四川长虹电器股份有限公司 | Non intelligent infrared electrical equipment realizes the system that Intelligent infrared controls | 
| CN108227521A (en)* | 2016-12-14 | 2018-06-29 | 佛山市顺德区美的电热电器制造有限公司 | Photoelectricity wireless control system, mobile terminal and smart machine and its control method | 
| WO2018126853A1 (en)* | 2017-01-03 | 2018-07-12 | 腾讯科技(深圳)有限公司 | Data transmission method and apparatus | 
| US10805380B2 (en) | 2017-01-03 | 2020-10-13 | Tencent Technology (Shenzhen) Company Limited | Data transmission method and device | 
| CN109450749A (en)* | 2018-11-26 | 2019-03-08 | 美的集团武汉制冷设备有限公司 | Communication switching electric-controlled plate, household appliance and appliance control system | 
| CN110244606A (en)* | 2019-05-30 | 2019-09-17 | 中国科学院长春光学精密机械与物理研究所 | Weapon launch control system and mounting platform with the launch control system | 
| CN113452589A (en)* | 2021-06-29 | 2021-09-28 | 张挺 | Wide area network intelligent home remote control system and working method thereof | 
| CN116580544A (en)* | 2023-07-12 | 2023-08-11 | 深圳市东明炬创电子股份有限公司 | Long-distance infrared data transmission method, system and terminal | 
| CN116580544B (en)* | 2023-07-12 | 2023-12-12 | 深圳市东明炬创电子股份有限公司 | Long-distance infrared data transmission method, system and terminal | 
| Publication | Publication Date | Title | 
|---|---|---|
| CN101334932A (en) | Home appliance agent equipment | |
| EP2401871B1 (en) | Remote user interface system and method | |
| KR101706479B1 (en) | Method and terminal for controlling internet of things and controlled electronic device | |
| KR101844021B1 (en) | Method and apparatus for transmitting message, and computer readable storage medium | |
| KR100803610B1 (en) | Method for controlling a device connected to a PNP home network via the Internet, and a system and apparatus therefor | |
| US20090160694A1 (en) | Interaction with autonomous consumer electronics devices | |
| CN103024503A (en) | System and method for achieving remote control through mobile communication equipment terminal | |
| WO2011086956A1 (en) | Information terminal device, control method using an information terminal device, and program | |
| JP2011109655A (en) | Display device, client terminal, and control method therefor | |
| WO2003063475A1 (en) | Remote wireless device with epg display, intercom and emulated control buttons | |
| CN101459564A (en) | Information processing device and home network system | |
| JP2001202317A (en) | Network control unit and remote display device | |
| EP4060965B1 (en) | Method and apparatus for controlling internet of things device, and medium | |
| CN113630656B (en) | Display device, terminal device and communication connection method | |
| CN103139271A (en) | System and method of controlling communication between terminals | |
| JP4377644B2 (en) | Home appliance remote control system, service providing server, and home appliance remote control method | |
| CN111405321A (en) | Video acquisition method, display device and server | |
| TWI458291B (en) | Network control device with pictures and related method | |
| JP2007316884A (en) | Control device, control method, and control program | |
| JP2005102060A (en) | Data structure, external server, home communication device, and command data communication method | |
| JP4754432B2 (en) | Remote operation system, communication terminal, server device, and computer program | |
| US7440775B2 (en) | Method for controlling printer using portable terminal for mobile communication in home network system | |
| JP2010211586A (en) | Information processing system, information processor, information processing method, control program, and recording medium | |
| CN111526392B (en) | Video acquisition method, display device, server | |
| CN116320564A (en) | Display device, terminal device, and device control method | 
| Date | Code | Title | Description | 
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication | Open date:20081231 |