Movatterモバイル変換


[0]ホーム

URL:


CN101334932A - Home appliance agent equipment - Google Patents

Home appliance agent equipment
Download PDF

Info

Publication number
CN101334932A
CN101334932ACNA2007101126308ACN200710112630ACN101334932ACN 101334932 ACN101334932 ACN 101334932ACN A2007101126308 ACNA2007101126308 ACN A2007101126308ACN 200710112630 ACN200710112630 ACN 200710112630ACN 101334932 ACN101334932 ACN 101334932A
Authority
CN
China
Prior art keywords
home
home appliance
traditional
unit
infrared signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2007101126308A
Other languages
Chinese (zh)
Inventor
叶涛
鲁时雨
三宅滋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi LtdfiledCriticalHitachi Ltd
Priority to CNA2007101126308ApriorityCriticalpatent/CN101334932A/en
Publication of CN101334932ApublicationCriticalpatent/CN101334932A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供一种家电代理设备,用于将传统家电接入到家庭网络中,实现对传统家电的远程控制。该家电代理设备包括通信单元、红外信号处理单元以及存储单元。其中,存储单元预先存储传统家电的各项控制指令与红外信号处理单元控制传统家电的各个红外代码之间的对应关系的映射文件;通信单元用于从家庭网络接收用于控制传统家电的控制指令,并将控制指令发送给红外信号处理单元;以及,红外信号处理单元用于在接收到该控制指令后,根据映射文件将控制指令转换为对应的红外代码并发送相应的红外信号。通过本发明提供的家电代理设备,用户可以在远端通过互联网获取传统家电的信息,并通过网络控制传统家电的操作。

Figure 200710112630

The invention provides a home appliance agent device, which is used for connecting traditional home appliances to a home network to realize remote control of the traditional home appliances. The appliance agent device includes a communication unit, an infrared signal processing unit and a storage unit. Wherein, 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.

Figure 200710112630

Description

Translated fromChinese
家电代理设备Home appliance agent equipment

技术领域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 ),mobile communication network 3 , gateway server 4 , Internet 5 andhome network 6 .

终端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 themobile communication network 3 and the gateway server 4, and the World Wide Web (www) browser software is installed for browsing web pages. Theterminal 2 is a computer that can be directly connected to the Internet 5, and a World Wide Web browser software is installed for browsing webpages. The terminal 1 and theterminal 2 can communicate with thehome network 6 in the remote user's home through the Internet 5 .

具体的,作为智能手机、掌上电脑或者笔记本电脑的终端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 themobile communication network 3 provided by the mobile operator and the gateway server 4 responsible for connecting themobile communication network 3 and the Internet 5. Thehome network 6 communicates to realize remote control of home appliances in thehome network 6 . In addition, theterminal 2 as a computer that can be directly connected to the Internet 5 can directly communicate with thehome network 6 through the Internet 5 to realize remote control of home appliances in thehome network 6 .

家庭网络6可以设置在用户的住宅里,该家庭网络6包括家庭服务器61、智能家电62、传统家电63、以及家电代理64,其中,家庭服务器61可以通过无线局域网或者局域网与智能家电62通信,以及通过无线局域网与家电代理64通信,家电代理64通过红外遥控等方法控制传统家电63。如图1中所示,家庭网络6可以进一步包括无线摄像机65,该无线摄像机65作为智能家电可以通过无线局域网与家庭服务器61通信。Thehome network 6 can be set in the residence of the user, and thehome network 6 includes ahome server 61, asmart home appliance 62, atraditional home appliance 63, and ahome appliance agent 64, wherein thehome server 61 can communicate with thesmart home appliance 62 through a wireless local area network or a local area network, And communicate with thehome appliance agent 64 through the wireless local area network, and thehome appliance agent 64 controls thetraditional home appliance 63 through methods such as infrared remote control. As shown in FIG. 1 , thehome network 6 may further include awireless camera 65 , which, as a smart home appliance, can communicate with thehome server 61 through a wireless local area network.

传统家电63是任何可以被红外信号控制的家电,例如电视、空调、DVD等等,在住宅内的数量、类型和品牌等由用户自行决定。Traditional home appliances 63 are any home appliances that can be controlled by infrared signals, such as TVs, air conditioners, DVDs, etc., and the quantity, type and brand in the house are determined by the user.

家电代理64用作不能连接到家庭网络6从而不能由家庭服务器61控制的传统家电63的代理,其可以通过类似遥控器之类的红外控制器控制传统家电,这需要被控制的传统家电63安装在其红外遥控范围之内。具体的,家电代理64可以将传统家电63的信息基于UPnP协议发布给家庭服务器61,并且基于UPnP协议接收家庭服务器61的控制指令,然后将对传统家电63的控制指令转换成对应的红外信号从而控制传统家电63。在将传统家电63注册到家庭网络中时,家电代理64将与传统家电63的设备描述信息和服务描述信息对应的(基于UPnP协议的)设备描述文件和服务描述文件、以及根据设备描述文件和服务描述文件生成的网页发送给家庭服务器61,家庭服务器61将该设备描述文件、服务描述文件以及网页存储在本地存储器(图未示)中,从而完成传统家电63到家庭网络6的注册。Thehome appliance proxy 64 is used as a proxy for thetraditional home appliances 63 that cannot be connected to thehome network 6 and thus cannot be controlled by thehome server 61. within the range of its infrared remote control. Specifically, thehome appliance agent 64 can publish the information of thetraditional home appliance 63 to thehome server 61 based on the UPnP protocol, and receive the control command from thehome server 61 based on the UPnP protocol, and then convert the control command to thetraditional home appliance 63 into a corresponding infrared signal so that Control traditional home appliances63. When registering thetraditional home appliance 63 in the home network, thehome appliance agent 64 will correspond to the device description information and service description information of the traditional home appliance 63 (based on the UPnP protocol) device description file and service description file, and according to the device description file and The webpage generated by the service description file is sent to thehome server 61, and thehome server 61 stores the device description file, the service description file and the webpage in a local storage (not shown), thereby completing the registration of thetraditional home appliance 63 to thehome network 6 .

智能家电62是具备网络接口的可以连接局域网或无线局域网的家电,其支持UPnP(通用即插即用)协议与家庭服务器61通信,用户可以根据自己的需要在其住宅内设置不同数量和类型的智能家电。这里,无线摄像机65也为智能家电,具备无线通信接口并且支持UPnP协议。无线摄像机65通常和家电安装在同一个房间里,它可以通过无线局域网连接到家庭网络6从而与家庭服务器61通信,在本发明的家庭网络6中,无线摄像机65主要用于拍摄房间内家电(特别是传统家电)的状态并将拍摄的图像通过无线局域网传送给家庭服务器61,并由家庭服务器61通过互联网5反馈给用户的终端1或终端2,该图像显示在终端的显示屏上。Thesmart home appliance 62 is a home appliance with a network interface that can be connected to a local area network or a wireless local area network. It supports the UPnP (Universal Plug and Play) protocol to communicate with thehome server 61. Users can set different numbers and types of smart home appliances in their houses according to their own needs. Smart Appliances. Here, thewireless camera 65 is also a smart home appliance, which has a wireless communication interface and supports the UPnP protocol. Thewireless camera 65 is usually installed in the same room with the home appliance, and it can be connected to thehome network 6 through a wireless local area network to communicate with thehome server 61. In thehome network 6 of the present invention, thewireless camera 65 is mainly used to photograph the home appliances in the room ( Especially the status of traditional home appliances) and the captured image is transmitted to thehome server 61 through the wireless local area network, and is fed back to the user's terminal 1 orterminal 2 through the Internet 5 by thehome server 61, and the image is displayed on the display screen of the terminal.

家庭服务器61可以是一个连接到互联网5并安装了无线网络适配器的计算机。家庭服务器61将住宅内部的家庭网络6和互联网5连接起来,在家庭网络6和互联网5之间双向传递数据,从而控制家庭网络6内的智能家电62、家电代理64、以及无线摄像机65。Thehome server 61 may be a computer connected to the Internet 5 and equipped with a wireless network adapter. Thehome server 61 connects thehome network 6 inside the residence with the Internet 5 , and bidirectionally transmits data between thehome network 6 and the Internet 5 , thereby controlling thesmart appliances 62 ,appliance agents 64 , andwireless cameras 65 in thehome network 6 .

在家电代理64将传统家电63注册到家庭网络时,家庭服务器61将从家电代理64接收的设备描述文件、服务描述文件以及网页存储在本地存储器(图未示)中。When thehome appliance proxy 64 registers thetraditional home appliance 63 with the home network, thehome server 61 stores the device description file, service description file and web page received from thehome appliance proxy 64 in a local storage (not shown).

在用户连接并通过认证后,家庭服务器61将家电列表以网页方式通过互联网发送到终端,该列表中包含了家庭网络中所有可远程控制的家电。在用户通过终端对家电进行远程控制时,一方面,家庭服务器61将终端1或2经互联网5发送的控制请求和控制指令,基于UPnP协议通过局域网或者无线局域网发送给家庭网络6内的智能家电,或者基于UPnP协议通过无线局域网发送给家电代理64,另一方面,其将基于UPnP协议接收的智能家电或者家电代理的反馈信息(包括与家电的设备描述信息和服务描述信息相关的网页,以及家电的状态信息),经互联网发送给用户的终端。After the user is connected and authenticated, thehome server 61 sends the home appliance list to the terminal via the Internet in the form of a webpage, and the list includes all remotely controllable home appliances in the home network. When the user remotely controls the home appliance through the terminal, on the one hand, thehome server 61 sends the control request and control command sent by theterminal 1 or 2 via the Internet 5 to the smart home appliance in thehome network 6 through a local area network or a wireless local area network based on the UPnP protocol. , or based on the UPnP protocol through the wireless local area network to thehome appliance agent 64, on the other hand, it will receive based on the UPnP protocol smart home appliances or the feedback information of the home appliance agent (including the webpages related to the device description information and service description information of the home appliance, and The status information of home appliances) is sent to the user's terminal via the Internet.

具体的,当家庭服务器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 thehome server 61 receives the control request sent by the remote user through the terminal via the Internet 5, if the object to be controlled is thesmart home appliance 62, thehome server 61 sends the control request to thesmart home appliance 62 according to the UPnP protocol. Thesmart home appliance 62 sends a webpage related to its own device description information and service description information to thehome server 61 according to the control request, and thehome server 61 sends the webpage to the terminal via the Internet, and displays the webpage on the terminal. At this point, the user can issue a control command to control thesmart home appliance 62 by selecting a control function displayed on the terminal. After thehome server 61 receives the control command sent by the remote user through theterminal 1 or 2 via the Internet 5, it sends the control command to thesmart home appliance 62 according to the UPnP protocol, and controls thesmart home appliance 62 to perform corresponding operations. In addition, thesmart home appliance 62 can return the execution result of the instruction and its own status to thehome server 61 according to the UPnP protocol. Thehome server 61 generates a web page according to the execution result fed back by thesmart home appliance 62 and its own status, and sends the web page to the terminal 1 orterminal 2 via the Internet 5, and the user can judge the execution result and status of thesmart home appliance 62 according to the information displayed on the web page.

如果请求控制的对象是传统家电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 atraditional home appliance 63, thehome server 61 communicates with thehome appliance agent 64 corresponding to thetraditional home appliance 63 according to the UPnP protocol, and sends a control request based on the UPnP protocol, and thehome appliance agent 64 communicates with the device description information and The webpage related to the service description information is sent to thehome server 61, and thehome server 61 sends the webpage to the terminal via the Internet, and displays the webpage on the terminal. At this time, the user can issue a control command to control thetraditional home appliance 63 by selecting various control functions displayed on the terminal. After receiving the control instruction to thetraditional home appliance 63 from the terminal, thehome server 61 communicates with thehome appliance agent 64 corresponding to thetraditional home appliance 63 according to the UPnP protocol, and sends the control instruction to thehome appliance agent 64 based on the UPnP protocol, and thehome appliance agent 64 will control The command is converted into a corresponding infrared signal and emitted to control the correspondingtraditional home appliance 63 . Since the traditional terminal itself cannot return the execution result of the control command to thehome appliance agent 64, thehome appliance agent 64 can only return the result of whether the infrared signal has been emitted to thehome server 61. If the user wants to observe the state after thetraditional home appliance 63 is controlled, she/he can remotely control thewireless camera 65 to search for the controlledtraditional home appliance 63 and send the image to thehome server 61 after taking the image, and thehome server 61 generates a web page according to the image , the webpage is sent to the terminal via the Internet 5, and the user can judge the state of thetraditional home appliance 63 according to the image information. Of course, when it is necessary to confirm the state of thesmart home appliance 62, the same method can also be used.

以下将结合附图详细说明家庭网络中的家庭服务器和家电代理。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 , thehome server 61 includes an HTTP (Hypertext Transfer Protocol)server unit 611 , adata conversion unit 612 , and aUPnP execution unit 613 .

其中,HTTP服务器单元611一方面用于接收终端经互联网5发送的控制请求和控制指令,将控制请求和控制指令发送给数据转换单元612,另一方面,将来自数据转换单元612的基于HTTP协议的网页经互联网5发送给终端。Among them, theHTTP server unit 611 is used to receive the control request and control instruction sent by the terminal via the Internet 5 on the one hand, and send the control request and control instruction to thedata conversion unit 612; The webpage of is sent to the terminal via the Internet 5.

具体的,HTTP服务器单元611接收到控制请求时,将控制请求发送给数据转换单元612,并接收来自数据转换单元612的对应于控制请求的网页以及将网页经由互联网发送给终端。当控制请求请求控制的对象为传统家电63时,该网页中为家电代理64对来自终端的控制请求的响应而发送的与传统家电的设备描述信息和服务描述信息相关的网页。当控制请求请求控制的对象为智能家电62时,该网页为智能家电62对来自终端的控制请求或控制指令的响应而发送的与自身的设备描述信息和服务描述信息相关的网页。Specifically, when theHTTP server unit 611 receives the control request, it sends the control request to thedata conversion unit 612, receives a web page corresponding to the control request from thedata conversion unit 612, and sends the web page to the terminal via the Internet. When the object to be controlled by the control request is thetraditional home appliance 63, the webpage is the webpage related to the device description information and service description information of the traditional home appliance sent by thehome appliance agent 64 in response to the control request from the terminal. When the object to be controlled by the control request is thesmart home appliance 62, the webpage is a webpage related to its own device description information and service description information sent by thesmart home appliance 62 in response to the control request or control instruction from the terminal.

HTTP服务器单元611接收到控制指令时,将控制指令发送给数据转换单元612。并且,在用户需要了解控制指令的执行情况时,HTTP服务器单元611接收数据转换单元612对应于控制指令的响应而生成的网页,并将网页经由互联网发送给终端。当控制指令控制的对象为传统家电63时,该网页中包含家电代理64关于是否执行了控制指令的信息。当控制指令控制的对象为智能家电62时,该网页包含智能家电62自身的状态信息。When theHTTP server unit 611 receives the control command, it sends the control command to thedata converting unit 612 . Moreover, when the user needs to know the execution of the control command, theHTTP server unit 611 receives the webpage generated by thedata conversion unit 612 corresponding to the response to the control command, and sends the webpage to the terminal via the Internet. When the object controlled by the control instruction is atraditional home appliance 63, the web page includes information about whether the control instruction has been executed by thehome appliance agent 64. When the object controlled by the control instruction is thesmart home appliance 62 , the webpage includes status information of thesmart home appliance 62 itself.

数据转换单元612将来自HTTP服务器单元611的控制请求和控制指令(HTTP格式)转换为可由UPnP执行单元613处理的基于UPnP协议的控制请求和控制指令,并且将来自UPnP执行单元613的基于UPnP协议的响应转换为对应的HTTP格式的网页。Thedata conversion unit 612 converts the control request and the control instruction (HTTP format) from theHTTP server unit 611 into a control request and a control instruction based on the UPnP protocol that can be processed by theUPnP execution unit 613, and converts the UPnP protocol-based control request from theUPnP execution unit 613 The response is converted into a web page in the corresponding HTTP format.

UPnP执行单元613一方面与家电代理64或智能家电62基于UPnP协议通信,将来自数据转换单元612的基于UPnP协议的控制请求和控制指令发送给家电代理64或智能家电62,并从家电代理64或智能家电62接收对控制请求和控制指令的响应。另一方面,UPnP执行单元613与数据转换单元612通信,接收来自数据转换单元612的基于UPnP协议的控制请求和控制指令,并将来自家电代理64或智能家电62的对控制请求和控制指令的响应发送给数据转换单元612。On the one hand, theUPnP execution unit 613 communicates with thehome appliance agent 64 or thesmart home appliance 62 based on the UPnP protocol, sends the control request and control instruction based on the UPnP protocol from thedata conversion unit 612 to thehome appliance agent 64 or thesmart home appliance 62, and receives the information from thehome appliance agent 64. Or thesmart home appliance 62 receives responses to control requests and control commands. On the other hand, theUPnP execution unit 613 communicates with thedata conversion unit 612, receives the UPnP protocol-based control request and control instruction from thedata conversion unit 612, and converts the control request and control instruction from thehome appliance agent 64 orsmart home appliance 62 The response is sent to thedata conversion unit 612 .

家电代理64介于家庭服务器61和传统家电63之间,它通过无线局域网基于UPnP协议与家庭服务器61通信,一方面将传统家电63注册到家庭服务器61中,另一方面对来自家庭服务器61的控制请求和控制指令作出相应的响应。Thehome appliance agent 64 is between thehome server 61 and thetraditional home appliance 63. It communicates with thehome server 61 based on the UPnP protocol through the wireless local area network. On the one hand, thetraditional home appliance 63 is registered in thehome server 61; Control requests and control commands respond accordingly.

以下将参照图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 aUPnP device unit 641a, aninfrared signal transceiver 642a, astorage unit 643a, asetting unit 644a and aninput unit 645a.

其中,输入单元645a用于输入传统家电的设备描述信息和服务描述信息。其中,设备描述信息用于描述家电的类型、品牌、型号等信息,比如家电是电视或空调或DVD等等,并且,上述的服务描述信息用于描述家电可被控制的功能,如电视可以调台、调节音量、调节对比度;空调可以设置温度、设置风向、设置风力等等。Wherein, theinput unit 645a is used for inputting device description information and service description information of traditional home appliances. Among them, the device description information is used to describe the type, brand, model and other information of the home appliance. Taiwan, adjust the volume, adjust the contrast; the air conditioner can set the temperature, set the wind direction, set the wind and so on.

红外信号收发器642a用于接收和发送红外信号,一方面将从红外遥控装置(例如用于遥控传统家电63的红外遥控器)接收的红外信号转换为对应的红外代码,一方面将来自UPnP设备单元641a的控制指令转换为对应的红外代码从而发出对应于该红外代码的红外信号,从而控制传统家电63执行相应的功能。进一步,在需要将控制指令的执行状况反馈给终端时,红外信号收发器642a在发送红外信号后,将表示已发送红外信号的消息发送给UPnP设备单元641a,由UPnP设备单元641a发送给家庭服务器61。Theinfrared signal transceiver 642a is used for receiving and sending infrared signals. On the one hand, it converts the infrared signals received from the infrared remote control device (such as the infrared remote control used to remotely control the traditional home appliances 63) into corresponding infrared codes; The control command of theunit 641a is converted into a corresponding infrared code to send out an infrared signal corresponding to the infrared code, thereby controlling theconventional home appliance 63 to perform corresponding functions. Further, when it is necessary to feed back the execution status of the control command to the terminal, theinfrared signal transceiver 642a sends a message indicating that the infrared signal has been sent to theUPnP device unit 641a after sending the infrared signal, and theUPnP device unit 641a sends it to thehome server 61.

设置单元644a一方面根据输入单元645a输入的传统家电的设备描述信息和服务描述信息生成与设备描述信息和服务描述信息对应的设备描述文件和服务描述文件,进一步,利用设备描述文件和服务描述文件生成与设备描述文件和服务描述文件对应的网页。另一方面,设置单元644a根据输入单元645a输入的传统家电的服务描述信息的各项功能(对应于控制指令)、以及红外信号收发器642a转换的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系。以传统家电63为电视的情况为例,图4示意性地给出了各项功能与红外代码之间映射关系。其中,电源“power”对应的红外代码为65,声音递增“Vol+”对应的红外代码为66,声音递减“Vol-”对应的红外代码为67,频道递增“Prog+”对应的红外代码为68,频道递减“Prog-”对应的红外代码为69等等。On the one hand, thesetting unit 644a generates a device description file and a service description file corresponding to the device description information and service description information according to the device description information and service description information of traditional home appliances input by theinput unit 645a, and further, uses the device description file and the service description file Generate web pages corresponding to the device description file and the service description file. On the other hand, thesetting unit 644a generates a mapping file according to the functions (corresponding to the control instructions) of the service description information of the traditional household appliances input by theinput unit 645a and the infrared code converted by theinfrared signal transceiver 642a, and the mapping file describes the traditional household appliances. The mapping relationship between each function of the home appliance and each infrared code. Taking the case where thetraditional home appliance 63 is a TV as an example, FIG. 4 schematically shows the mapping relationship between various functions and infrared codes. Among them, the infrared code corresponding to the power supply "power" is 65, the infrared code corresponding to the voice increasing "Vol+" is 66, the infrared code corresponding to the voice decreasing "Vol-" is 67, the infrared code corresponding to the channel increasing "Prog+" is 68, Channel decrement "Prog-" corresponds toinfrared code 69 and so on.

存储单元643a用于上述的设备描述文件和服务描述文件、与设备描述文件和服务描述文件对应的网页、以及映射文件。红外信号收发器642a在接收到来自UPnP设备单元641a的控制指令时,根据映射文件将控制指令转换为对应的红外代码从而发出对应于该红外代码的红外信号。Thestorage unit 643a is used for the above-mentioned device description files and service description files, web pages corresponding to the device description files and service description files, and mapping files. When theinfrared signal transceiver 642a receives the control command from theUPnP device unit 641a, it converts the control command into a corresponding infrared code according to the mapping file, so as to send out an infrared signal corresponding to the infrared code.

UPnP设备单元641a在将传统家电63加入家庭网络时将存储单元643a中的设备描述文件、服务描述文件和网页基于UPnP协议发送到家庭服务器61,在接收到用于请求控制传统家电63的控制请求时将存储单元643a中网页基于UPnP协议发送到家庭服务器61,以及,基于UPnP协议从家庭服务器61接收用于控制传统家电63的控制指令,并将控制指令发送给红外信号收发器642a。进一步,在需要将控制指令的执行状况反馈给终端时,UPnP设备单元641a将在红外信号收发器642a发送红外信号后从红外信号收发器642a接收的将表示已发送红外信号的消息发送给家庭服务器61。TheUPnP device unit 641a sends the device description file, the service description file and the web page in thestorage unit 643a to thehome server 61 based on the UPnP protocol when thetraditional home appliance 63 is added to the home network. At the same time, the webpage in thestorage unit 643a is sent to thehome server 61 based on the UPnP protocol, and the control instruction for controlling thetraditional home appliance 63 is received from thehome server 61 based on the UPnP protocol, and the control instruction is sent to theinfrared signal transceiver 642a. Further, when it is necessary to feed back the execution status of the control command to the terminal, theUPnP device unit 641a will send the message indicating that the infrared signal has been sent from theinfrared signal transceiver 642a received after theinfrared signal transceiver 642a sends the infrared signal to the home server. 61.

另外,为了便于用户通过输入单元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 thetraditional home appliance 63 through theinput unit 645a, the home appliance agent 64a may further include adisplay unit 646a, and thesetting unit 644a displays a graphical user interface to the user through thedisplay unit 646a.

图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 thetraditional home appliance 63 through theinput unit 645a, and the service description information includes various functions of thetraditional home appliance 63;

步骤S502,用户对应于服务描述信息的各项功能操作传统家电63的红外遥控装置上的用于实现各项功能的按键,产生分别对应于各项功能的红外信号,红外信号收发器642a分别接收这些红外信号,并将其转换为对应的红外代码;Step S502, the user operates the buttons on the infrared remote control device of thetraditional home appliance 63 for realizing various functions corresponding to various functions of the service description information, and generates infrared signals respectively corresponding to various functions, and theinfrared signal transceiver 642a respectively receives These infrared signals and convert them into corresponding infrared codes;

步骤S503,设置单元644a根据从输入单元645a输入的设备描述信息和服务描述信息生成对应的设备描述文件和服务描述文件,并且根据设备描述文件和服务描述文件生成包含设备描述信息和服务描述信息的网页,进一步,设置单元644a根据从输入单元645a输入的服务描述信息和从红外信号收发器642a输入的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系;In step S503, thesetting unit 644a generates a corresponding device description file and service description file according to the device description information and service description information input from theinput unit 645a, and generates a file containing the device description information and service description information according to the device description file and the service description file. Further, thesetting unit 644a generates a mapping file according to the service description information input from theinput unit 645a and the infrared code input from theinfrared signal transceiver 642a, and the mapping file describes the relationship between each function of a traditional home appliance and each infrared code. Mapping relations;

步骤S504,设置单元644a将上述的设备描述文件和服务描述文件、网页以及映射文件存储在存储单元643a中;Step S504, thesetting unit 644a stores the above-mentioned device description file and service description file, web page and mapping file in thestorage unit 643a;

步骤S505,UPnP设备单元641a从存储单元643a中读取设备描述文件、服务描述文件和网页,并将这些文件发送到家庭服务器61中,从而将传统家电63注册到家庭网络6中。Step S505, theUPnP device unit 641a reads the device description file, service description file and web page from thestorage unit 643a, and sends these files to thehome server 61, thereby registering thetraditional home appliance 63 in thehome network 6.

上述步骤S501-S503中仅表示了一种获取与传统家电63相关的信息的过程,可以理解的是,本发明并不仅限于上述步骤S501-S503描述的过程。例如,还可以是,首先输入传统家电63的设备描述信息,然后输入传统家电63的服务描述信息中某一项功能,同时红外信号收发器接收对应于该项功能的红外信号并转换为对应的红外代码,随后由设置单元644a建立该项功能与该红外代码的映射关系。然后重复上述过程,直至每项功能和每个红外代码的映射关系均建立后形成映射文件,并根据设备描述信息和服务描述信息生成设备描述文件和服务描述文件进而根据生成的设备描述文件和服务描述文件生成网页。The above steps S501-S503 only show a process of acquiring information related to thetraditional home appliance 63, it should be understood that the present invention is not limited to the process described in the above steps S501-S503. For example, it is also possible to first input the device description information of thetraditional home appliance 63, and then input a certain function in the service description information of thetraditional home appliance 63, and the infrared signal transceiver receives the infrared signal corresponding to the function and converts it into a corresponding function. Infrared code, then thesetting unit 644a establishes the mapping relationship between the function and the infrared code. Then repeat the above process until the mapping relationship between each function and each infrared code is established to form a mapping file, and generate a device description file and a service description file according to the device description information and service description information. The description file generates the web page.

另外,在步骤S504-S505中,可以由设置单元644a将生成的网页发送给UPnP设备单元641a,而非UPnP设备单元641a从存储单元643a中读取网页。In addition, in steps S504-S505, thesetting unit 644a may send the generated webpage to theUPnP device unit 641a, and thenon-UPnP device unit 641a reads the webpage from thestorage unit 643a.

图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 thehome server 61 are completed, a list of remotely controllable home appliances (includingsmart home appliances 62 and traditional home appliances 63) in the home network will be displayed on the terminal at the user end, and the user can click on the list to Send a control request for controlling a traditional home appliance in the traditional home appliance;

步骤S602,家庭服务器61接收控制请求,将控制请求转换为基于UPnP协议的控制请求后发送给家电代理64a;Step S602, thehome server 61 receives the control request, converts the control request into a control request based on the UPnP protocol, and sends it to the home appliance agent 64a;

步骤S603,在家电代理64a中,UPnP设备单元641a在接收控制请求后,根据控制请求将存储单元643a中存储的由设备描述文件和服务描述文件生成的网页基于UPnP协议经无线局域网发送给家庭服务器61;Step S603, in the home appliance agent 64a, after receiving the control request, theUPnP device unit 641a sends the webpage generated by the device description file and the service description file stored in thestorage unit 643a to the home server via the wireless LAN based on the UPnP protocol according to thecontrol request 61;

步骤S604,家庭服务器61在接收该网页后,将该网页发送给终端,从而在终端上显示该网页;Step S604, after receiving the webpage, thehome server 61 sends the webpage to the terminal, thereby displaying the webpage on the terminal;

步骤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, thehome server 61 receives the control command, and sends it to the home appliance agent 64a after converting the control command into a control command based on the UPnP protocol;

步骤S607,在家电代理64a中,UPnP设备单元641a接收控制指令,将控制指令发送给红外信号收发器642a,红外信号收发器642a根据存储单元643a中存储的映射文件,将控制指令转换为对应的红外代码后发射对应的红外信号,从而控制传统家电63执行相应的功能;Step S607, in the home appliance agent 64a, theUPnP device unit 641a receives the control command, and sends the control command to theinfrared signal transceiver 642a, and theinfrared signal transceiver 642a converts the control command into a corresponding After the infrared code, a corresponding infrared signal is emitted, thereby controlling thetraditional home appliance 63 to perform corresponding functions;

进一步,在需要将控制指令的执行状况反馈给终端时,如步骤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, theinfrared signal transceiver 642a sends a message indicating that the infrared signal has been sent to theUPnP device unit 641a;

步骤S609,UPnP设备单元641a将表示已发送红外信号的消息发送给家庭服务器61,由家庭服务器61发送给终端,显示在终端上。In step S609, theUPnP device unit 641a sends a message indicating that the infrared signal has been sent to thehome server 61, and thehome server 61 sends it to the terminal and displays it on the terminal.

通过本发明第一实施例的家电代理,可以实现用户对传统家电的远程控制。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 thetraditional home appliance 63 is registered in thehome network 6, thehome server 61 has stored the webpage generated according to the device description file and the service description file in the local memory, therefore, for steps S602-S604 in the above process, it is also possible to Yes, after receiving the control request, thehome server 61 sends the webpage generated according to the device description file and the service description file in the local storage to the terminal according to the control request, instead of sending the control request to thehome appliance agent 64 and sending thehome appliance agent 64 The received web page is sent to the terminal.

另外,在本实施例中,可以为家庭服务器61提供根据设备描述文件和服务描述文件生成与设备描述文件和服务描述文件对应的网页这样的功能,即,将家庭代理64中设置单元644a的网页生成功能从家庭代理64中分离出来并设置在家庭服务器61中。在此情况下,由于对于传统家电63的注册而言,设备描述文件和服务描述文件已足够,因此,家庭代理不需要在注册传统家电63时将网页发送给家庭服务器61,而替代的是,家庭服务器61在接收到控制请求时直接根据传统家电的设备描述文件和服务描述文件生成对应的网页后发送给终端。这样,本发明第一实施例的家电代理中的设置单元644a可以仅生成设备描述文件、服务描述文件以及映射文件,而不必根据设备描述文件和服务描述文件生成网页,相应的,存储单元643a中也仅存储设备描述文件、服务描述文件以及映射文件,并且,UPnP设备单元641a仅将设备描述文件和服务描述文件发送给家庭服务器61。In addition, in this embodiment, thehome server 61 can be provided with the function of generating a web page corresponding to the device description file and the service description file according to the device description file and the service description file, that is, the web page of thesetting unit 644a in thehome agent 64 The generation function is separated from thehome agent 64 and provided in thehome server 61 . In this case, since the device description file and the service description file are sufficient for the registration of thetraditional home appliance 63, the home agent does not need to send a web page to thehome server 61 when registering thetraditional home appliance 63, but instead, When thehome server 61 receives the control request, it directly generates a corresponding web page according to the device description file and service description file of the traditional home appliance, and then sends it to the terminal. In this way, thesetting unit 644a in the home appliance agent in the first embodiment of the present invention can only generate device description files, service description files, and mapping files, instead of generating web pages according to the device description files and service description files. Correspondingly, thestorage unit 643a Only the device description file, the service description file and the mapping file are stored, and theUPnP device unit 641 a only sends the device description file and the service description file to thehome server 61 .

并且,可以理解的是,可以在家电代理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 theappliance agent 64, and if necessary, can also be pre-stored according to the device description files and service description files. webpage. Therefore, the user's input operation on the appliance agent can be further simplified or even omitted. In the case of storing the above-mentioned various files and/or web pages in advance, the setting unit can generate new device description files, service description files, and mapping files (including web pages if necessary) according to the input of the input unit and the infrared signal transceiver to update The above-mentioned files and/or web pages pre-stored therein are stored.

图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 aUPnP device unit 641b, aninfrared transceiver 642b, astorage unit 643b, asetting unit 644b, aninput unit 645b, and awebpage generating unit 646b.

其中,输入单元645b用于输入传统家电的设备描述信息和服务描述信息。Wherein, theinput unit 645b is used for inputting device description information and service description information of traditional home appliances.

红外信号收发器642b用于接收和发送红外信号,一方面将从红外遥控装置(例如用于遥控传统家电63的红外遥控器)接收的红外信号转换为对应的红外代码,一方面将来自UPnP设备单元641b的控制信号转换为对应的红外代码从而发出对应于该红外代码的红外信号,从而控制传统家电63执行相应的功能。进一步,在需要将控制指令的执行状况反馈给终端时,红外信号收发器642b在发送红外信号后,将表示已发送红外信号的消息发送给UPnP设备单元641b,由UPnP设备单元641b发送给家庭服务器61。Theinfrared signal transceiver 642b is used for receiving and sending infrared signals. On the one hand, it converts the infrared signals received from the infrared remote control device (such as the infrared remote control used for remote control of traditional home appliances 63) into corresponding infrared codes; The control signal of theunit 641b is converted into a corresponding infrared code to send out an infrared signal corresponding to the infrared code, thereby controlling theconventional home appliance 63 to perform corresponding functions. Further, when it is necessary to feed back the execution status of the control command to the terminal, after sending the infrared signal, theinfrared signal transceiver 642b sends a message indicating that the infrared signal has been sent to theUPnP device unit 641b, and theUPnP device unit 641b sends it to thehome server 61.

设置单元644b一方面根据输入单元645b输入的传统家电的设备描述信息和服务描述信息生成与设备描述信息和服务描述信息对应的设备描述文件和服务描述文件。另一方面,设置单元644b根据输入单元645b输入的传统家电的服务描述信息的各项功能(对应于控制指令)、以及红外信号收发器642a转换的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系,如图4所示。On the one hand, thesetting unit 644b generates a device description file and a service description file corresponding to the device description information and service description information according to the device description information and service description information of the traditional household appliances input by theinput unit 645b. On the other hand, thesetting unit 644b generates a mapping file according to the functions (corresponding to the control instructions) of the service description information of the traditional household appliances input by theinput unit 645b and the infrared code converted by theinfrared signal transceiver 642a, and the mapping file describes the traditional household appliances. The mapping relationship between each function of the home appliance and each infrared code is shown in Figure 4.

存储单元643b用于存储上述的设备描述文件、服务描述文件以及映射文件。红外信号收发器642b在接收到来自UPnP设备单元641b的控制指令时,根据映射文件将控制指令转换为对应的红外代码从而发出对应于该红外代码的红外信号。Thestorage unit 643b is used for storing the above-mentioned device description file, service description file and mapping file. When theinfrared signal transceiver 642b receives the control instruction from theUPnP device unit 641b, it converts the control instruction into a corresponding infrared code according to the mapping file, so as to send out an infrared signal corresponding to the infrared code.

网页生成单元646b在接收到UPnP设备单元641b的网页生成请求时,根据存储单元643b中存储的设备描述文件和服务描述文件生成对应的网页,并发送给UPnP设备单元641b。When the webpage generation unit 646b receives the web page generation request from theUPnP device unit 641b, it generates a corresponding web page according to the device description file and the service description file stored in thestorage unit 643b, and sends it to theUPnP device unit 641b.

UPnP设备单元641b在接收到用于请求控制传统家电63的控制请求时(或者,如果必要,在将传统家电63加入家庭网络时),将网页生成请求发送给网页生成单元646b,并将从网页生成单元646b接收的网页发送给家庭服务器61,以及,在基于UPnP协议从家庭服务器61接收到用于控制传统家电63的控制指令时,将控制指令发送给红外信号收发器642a。When theUPnP device unit 641b receives a control request for requesting control of the traditional home appliance 63 (or, if necessary, when thetraditional home appliance 63 is added to the home network), a webpage generation request is sent to thewebpage generation unit 646b, and the webpage is generated from the webpage. The web page received by thegeneration unit 646b is sent to thehome server 61, and when a control command for controlling thetraditional home appliance 63 is received from thehome server 61 based on the UPnP protocol, the control command is sent to theinfrared signal transceiver 642a.

进一步,为了便于用户通过输入单元645b输入传统家电63的设备描述信息和服务描述信息,家电代理64b还可以进一步包括显示单元647b,设置单元644b通过显示单元647b向用户显示图形用户界面。Further, in order to facilitate the user to input the device description information and service description information of thetraditional home appliance 63 through theinput unit 645b, the home appliance agent 64b may further include adisplay unit 647b, and thesetting unit 644b displays a graphical user interface to the user through thedisplay unit 647b.

图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 thetraditional home appliance 63 through theinput unit 645b, and the service description information includes various functions of thetraditional home appliance 63;

步骤S802,用户对应于服务描述信息的各项功能操作传统家电63的红外遥控装置上的用于实现各项功能的按键,产生分别对应于各项功能的红外信号,红外信号收发器642b分别接收这些红外信号,并将其转换为对应的红外代码;Step S802, the user operates the buttons on the infrared remote control device of thetraditional home appliance 63 for realizing various functions corresponding to various functions of the service description information, and generates infrared signals respectively corresponding to various functions, and theinfrared signal transceiver 642b respectively receives These infrared signals and convert them into corresponding infrared codes;

步骤S803,设置单元644b根据从输入单元645b输入的设备描述信息和服务描述信息生成对应的设备描述文件和服务描述文件,并且,根据从输入单元645b输入的服务描述信息和从红外信号收发器642b输入的红外代码生成映射文件,该映射文件描述了传统家电的各项功能与各个红外代码之间的映射关系;Step S803, thesetting unit 644b generates a corresponding device description file and service description file according to the device description information and service description information input from theinput unit 645b, and, according to the service description information input from theinput unit 645b and theinfrared signal transceiver 642b The input infrared code generates a mapping file, which describes the mapping relationship between each function of the traditional home appliance and each infrared code;

步骤S804,设置单元644b将上述的设备描述文件、服务描述文件以及映射文件存储在存储单元643b中;Step S804, thesetting unit 644b stores the above-mentioned device description file, service description file and mapping file in thestorage unit 643b;

步骤S805,UPnP设备单元641b将存储单元643b中的设备描述文件和服务描述文件发送到家庭服务器61,从而将传统家电63注册到家庭网络6中。In step S805, theUPnP device unit 641b sends the device description file and the service description file in thestorage unit 643b to thehome server 61, thereby registering thetraditional home appliance 63 in thehome network 6.

进一步,该过程还可以包括:Further, the process may also include:

步骤S806,UPnP设备单元641b向网页生成单元646b发出网页生成请求;Step S806, theUPnP device unit 641b sends a webpage generation request to thewebpage generation unit 646b;

步骤S807,网页生成单元646b根据存储单元643b中存储的设备描述文件和服务描述文件生成对应的网页并将生成的网页发送给UPnP设备单元641b;Step S807, thewebpage generation unit 646b generates a corresponding webpage according to the device description file and the service description file stored in thestorage unit 643b and sends the generated webpage to theUPnP device unit 641b;

步骤S808,UPnP设备单元641b将网页发送到家庭服务器61中。In step S808, theUPnP device unit 641b sends the webpage to thehome server 61.

值得说明的是,在需要执行上述步骤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 thehome server 61 are completed, a list of remotely controllable home appliances (includingsmart home appliances 62 and traditional home appliances 63) in the home network will be displayed on the terminal at the user end, and the user can click on the list to Send a control request for controlling a traditional home appliance in the traditional home appliance;

步骤S902,家庭服务器61接收控制请求,将控制请求转换为基于UPnP协议的控制请求后发送给家电代理64b;Step S902, thehome server 61 receives the control request, converts the control request into a control request based on the UPnP protocol, and sends it to the home appliance agent 64b;

步骤S903,在家电代理64b中,UPnP设备单元641b在接收控制请求后,向网页生成单元646b发出网页生成请求;Step S903, in the home appliance agent 64b, after receiving the control request, theUPnP device unit 641b sends a webpage generation request to thewebpage generation unit 646b;

步骤S904,网页生成单元646b在接收到网页生成请求后,根据存储单元643a中存储的设备描述文件和服务描述文件生成对应的网页,并将生成的网页发送给UPnP设备单元641b;Step S904, after receiving the webpage generation request, thewebpage generation unit 646b generates a corresponding webpage according to the device description file and service description file stored in thestorage unit 643a, and sends the generated webpage to theUPnP device unit 641b;

步骤S905,UPnP设备单元641b将该网页经无线局域网发送给家庭服务器61;Step S905, theUPnP device unit 641b sends the webpage to thehome server 61 via the wireless local area network;

步骤S906,家庭服务器61在接收该网页后,将该网页发送给终端,从而在终端上显示该网页;Step S906, after receiving the webpage, thehome server 61 sends the webpage to the terminal, thereby displaying the webpage on the terminal;

步骤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, thehome server 61 receives the control instruction, and sends the control instruction to the home appliance agent 64b after converting the control instruction into a control instruction based on the UPnP protocol;

步骤S909,在家电代理64b中,UPnP设备单元641b接收控制指令,将控制指令发送给红外信号收发器642b,红外信号收发器642b根据存储单元643b中存储的映射文件,将控制指令转换为对应的红外代码后发射对应的红外信号,从而控制传统家电63执行相应的功能;Step S909, in the home appliance agent 64b, theUPnP device unit 641b receives the control command, and sends the control command to theinfrared signal transceiver 642b, and theinfrared signal transceiver 642b converts the control command into a corresponding After the infrared code, a corresponding infrared signal is emitted, thereby controlling thetraditional home appliance 63 to perform corresponding functions;

进一步,在需要将控制指令的执行状况反馈给终端时,如步骤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, theinfrared signal transceiver 642b sends a message indicating that the infrared signal has been sent to theUPnP device unit 641b;

步骤S911,UPnP设备单元641b将表示已发送红外信号的消息发送给家庭服务器61,由家庭服务器61发送给终端,显示在终端上。In step S911, theUPnP device unit 641b sends a message indicating that the infrared signal has been sent to thehome server 61, and thehome server 61 sends it to the terminal and displays it on the terminal.

通过本发明第二实施例的家电代理,可以实现用户对传统家电的远程控制。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 thehome server 61 has stored the web pages generated according to the device description file and the service description file when registering thetraditional home appliance 63 in thehome network 6, the above process In steps S902-S906, after receiving the control request, thehome server 61 may send the webpage generated according to the device description file and the service description file in the local storage to the terminal according to the control request, instead of sending the control request to Thehome appliance agent 64 sends the web page received from thehome appliance agent 64 to the terminal.

另外,如同第一实施例所述,可以为家庭服务器61提供生成网页的功能,这种情况下对于将传统家电63注册到家庭网络6而言设备描述文件和服务描述文件已足够,从而,可以在接收到控制请求时,直接根据传统家电的设备描述文件和服务描述文件生成对应的网页后发送给终端。这样,本发明第二实施例的家电代理中的网页生成单元646b在将传统家电63注册到家庭网络6中时,可以不必根据设备描述文件和服务描述文件生成网页,这样,相应的,在将传统家电63注册到家庭网络6中时,UPnP设备单元641a不必向网页生成单元646b发出网页生成请求,只需将设备描述文件和服务描述文件发送给家庭服务器61。In addition, as described in the first embodiment, thehome server 61 can be provided with the function of generating web pages. In this case, the device description file and the service description file are sufficient for registering thetraditional home appliance 63 with thehome network 6, so that When a control request is received, a corresponding web page is generated directly according to the device description file and service description file of the traditional home appliance, and then sent to the terminal. In this way, when the webpage generation unit 646b in the home appliance proxy of the second embodiment of the present invention registers thetraditional home appliance 63 in thehome network 6, it is not necessary to generate a web page according to the device description file and the service description file. When thetraditional home appliance 63 is registered in thehome network 6, theUPnP device unit 641a does not need to send a webpage generation request to thewebpage generation unit 646b, but only needs to send the device description file and service description file to thehome server 61.

并且,可以理解的是,可以在家电代理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 theappliance agent 64, and if necessary, can also be pre-stored according to the device description files and service description files. webpage. Therefore, the user's input operation on the appliance agent can be further simplified or even omitted.

另外,在远程控制传统家电后,如果用户需要确认控制后的传统家电的状态,则可以通过家庭服务器与监控传统家电的无线摄像机通信,由无线摄像机将传统家电的状态拍摄下来并且在拍摄图像后将图像发送给家庭服务器,家庭服务器根据图像生成网页,将网页经互联网发送给终端,用户可以依据图像信息判断传统家电的状态。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 ofterminal 1 or 2, and sends a connection request CR1 to the home server through the Internet.

步骤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.

Claims (9)

Translated fromChinese
1.一种家电代理设备,用于将传统家电接入到家庭网络中,其特征在于,该家电代理设备包括通信单元、红外信号处理单元以及存储单元,其中,1. A home appliance proxy device, used to connect traditional home appliances to a home network, characterized in that the home appliance proxy device includes a communication unit, an infrared signal processing unit, and a storage unit, wherein,存储单元预先存储传统家电的各项控制指令与红外信号处理单元控制传统家电的各个红外代码之间的对应关系的映射文件;The storage unit pre-stores the mapping file of the corresponding relationship between various control commands of traditional home appliances and infrared codes of traditional home appliances controlled by the infrared signal processing unit;通信单元用于从家庭网络接收用于控制传统家电的控制指令,并将控制指令发送给红外信号处理单元;以及The communication unit is used to receive control instructions for controlling traditional home appliances from the home network, and send the control instructions to the infrared signal processing unit; and红外信号处理单元用于在接收到该控制指令后,根据映射文件将控制指令转换为对应的红外代码并发送相应的红外信号。The infrared signal processing unit is used for converting the control instruction into a corresponding infrared code according to the mapping file and sending a corresponding infrared signal after receiving the control instruction.2.如权利要求1所述的家电代理设备,其特征在于,进一步包括:2. The household appliance agent device according to claim 1, further comprising:输入单元,用于输入传统家电的设备描述信息和服务描述信息;以及an input unit for inputting device description information and service description information of the conventional home appliance; and设置单元,用于根据输入的传统家电的设备描述信息和服务描述信息,生成设备描述文件和服务描述文件,a setting unit, configured to generate a device description file and a service description file according to the input device description information and service description information of traditional home appliances,其中,存储单元存储生成的设备描述文件和服务描述文件,通信单元将生成的设备描述文件和服务描述文件发送给家庭网络。Wherein, the storage unit stores the generated device description file and service description file, and the communication unit sends the generated device description file and service description file to the home network.3.如权利要求2所述的家电代理设备,其特征在于,红外信号处理单元为红外信号收发器,其进一步接收控制传统家电的各个红外信号,并将接收的各个红外信号转换为对应的红外代码。3. The home appliance agent device according to claim 2, wherein the infrared signal processing unit is an infrared signal transceiver, which further receives and controls each infrared signal of a traditional home appliance, and converts each received infrared signal into a corresponding infrared signal. code.4.如权利要求3所述的家电代理设备,其特征在于,设置单元进一步生成传统家电的各项控制指令与红外信号收发器控制传统家电的各个红外代码之间的对应关系的映射文件,4. The household appliance agent device according to claim 3, wherein the setting unit further generates a mapping file of correspondence between each control command of the traditional household appliance and each infrared code of the traditional household appliance controlled by the infrared signal transceiver,其中,该映射文件存储在存储单元中以更新预先存储的映射文件。Wherein, the mapping file is stored in the storage unit to update the pre-stored mapping file.5.如权利要求4所述的家电代理设备,其特征在于,设置单元进一步生成设备描述文件和服务描述文件对应的网页,并且,通信单元将该网页发送给家庭网络。5. The home appliance proxy device according to claim 4, wherein the setting unit further generates a webpage corresponding to the device description file and the service description file, and the communication unit sends the webpage to the home network.6.如权利要求5所述的家电代理设备,其特征在于,设置单元将生成的网页存储在存储单元中,通信单元从存储单元中获取网页后发送给家庭网络。6. The home appliance agent device according to claim 5, wherein the setting unit stores the generated webpage in the storage unit, and the communication unit obtains the webpage from the storage unit and sends it to the home network.7.如权利要求2所述的家电代理设备,其特征在于,进一步包括网页生成单元,用于当通信单元向其发出网页生成请求时,根据存储单元存储的设备描述文件和服务描述文件生成对应的网页,通信单元将生成的网页发送给家庭网络。7. The home appliance proxy device according to claim 2, further comprising a webpage generation unit, configured to generate a corresponding webpage according to the device description file and the service description file stored in the storage unit when the communication unit sends a webpage generation request to it. the webpage, and the communication unit sends the generated webpage to the home network.8.如权利要求2至7任一项所述的家电代理设备,其特征在于,进一步包括显示单元,设置单元在该显示单元上显示图形用户界面。8. The appliance agent device according to any one of claims 2 to 7, further comprising a display unit, on which the setting unit displays a graphical user interface.9.如权利要求1所述的家电代理设备,其特征在于,红外信号处理单元发送红外信号后,向通信单元反馈表示已发送红外信号的消息,通信单元将该消息发送给家庭网络。9. The appliance agent device according to claim 1, wherein after the infrared signal processing unit sends the infrared signal, it feeds back a message indicating that the infrared signal has been sent to the communication unit, and the communication unit sends the message to the home network.
CNA2007101126308A2007-06-252007-06-25 Home appliance agent equipmentPendingCN101334932A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CNA2007101126308ACN101334932A (en)2007-06-252007-06-25 Home appliance agent equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CNA2007101126308ACN101334932A (en)2007-06-252007-06-25 Home appliance agent equipment

Publications (1)

Publication NumberPublication Date
CN101334932Atrue CN101334932A (en)2008-12-31

Family

ID=40197511

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CNA2007101126308APendingCN101334932A (en)2007-06-252007-06-25 Home appliance agent equipment

Country Status (1)

CountryLink
CN (1)CN101334932A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102006192A (en)*2010-11-242011-04-06广州星海传媒有限公司Control system and control method for digital family network equipment
CN102693624A (en)*2012-05-182012-09-26程胜Network remote controller control system and control method for network remote control
CN102811187A (en)*2012-08-012012-12-05陈为人Home gateway system based on Web site and configuration method thereof
CN102882749A (en)*2011-07-112013-01-16华为终端有限公司Method and equipment for controlling information exhibition
CN102915627A (en)*2012-09-252013-02-06金同磊Method, system and household electrical appliance controller for controlling traditional household electrical appliances
CN103186582A (en)*2011-12-292013-07-03青岛海尔软件有限公司Device description file-based data analysis method
CN103533706A (en)*2013-09-252014-01-22浙江生辉照明有限公司Wireless LED (Light Emitting Diode) lighting device, wireless lighting control system and control method
CN103716653A (en)*2012-10-012014-04-09夏普株式会社Control apparatus, method for controlling, server, controlled apparatus, and control system
CN104052641A (en)*2013-03-152014-09-17佘培嘉Electric appliance network adapter networking method
CN104219273A (en)*2013-05-302014-12-17精联电子股份有限公司Universal plug and play system and universal plug and play adapter
CN105245418A (en)*2015-10-122016-01-13中国联合网络通信集团有限公司 A control method, device and system for smart home devices
CN105336151A (en)*2014-08-072016-02-17杭州海康威视数字技术股份有限公司Infrared remote control device, infrared remote control signal learning method and infrared remote control method
CN105743746A (en)*2014-12-292016-07-06上海达禄信息科技有限公司Intelligent home electric appliance management method, management apparatus and management system
CN106251613A (en)*2016-09-082016-12-21四川长虹电器股份有限公司Non intelligent infrared electrical equipment realizes the system that Intelligent infrared controls
CN108227521A (en)*2016-12-142018-06-29佛山市顺德区美的电热电器制造有限公司Photoelectricity wireless control system, mobile terminal and smart machine and its control method
WO2018126853A1 (en)*2017-01-032018-07-12腾讯科技(深圳)有限公司Data transmission method and apparatus
CN109450749A (en)*2018-11-262019-03-08美的集团武汉制冷设备有限公司Communication switching electric-controlled plate, household appliance and appliance control system
CN110244606A (en)*2019-05-302019-09-17中国科学院长春光学精密机械与物理研究所 Weapon launch control system and mounting platform with the launch control system
CN113452589A (en)*2021-06-292021-09-28张挺Wide area network intelligent home remote control system and working method thereof
CN116580544A (en)*2023-07-122023-08-11深圳市东明炬创电子股份有限公司Long-distance infrared data transmission method, system and terminal

Cited By (23)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102006192A (en)*2010-11-242011-04-06广州星海传媒有限公司Control system and control method for digital family network equipment
CN102882749A (en)*2011-07-112013-01-16华为终端有限公司Method and equipment for controlling information exhibition
CN102882749B (en)*2011-07-112015-05-13华为终端有限公司Method and equipment for controlling information exhibition
CN103186582A (en)*2011-12-292013-07-03青岛海尔软件有限公司Device description file-based data analysis method
CN102693624A (en)*2012-05-182012-09-26程胜Network remote controller control system and control method for network remote control
CN102811187A (en)*2012-08-012012-12-05陈为人Home gateway system based on Web site and configuration method thereof
CN102915627A (en)*2012-09-252013-02-06金同磊Method, system and household electrical appliance controller for controlling traditional household electrical appliances
CN103716653A (en)*2012-10-012014-04-09夏普株式会社Control apparatus, method for controlling, server, controlled apparatus, and control system
CN104052641A (en)*2013-03-152014-09-17佘培嘉Electric appliance network adapter networking method
CN104219273A (en)*2013-05-302014-12-17精联电子股份有限公司Universal plug and play system and universal plug and play adapter
CN103533706A (en)*2013-09-252014-01-22浙江生辉照明有限公司Wireless LED (Light Emitting Diode) lighting device, wireless lighting control system and control method
CN105336151A (en)*2014-08-072016-02-17杭州海康威视数字技术股份有限公司Infrared remote control device, infrared remote control signal learning method and infrared remote control method
CN105743746A (en)*2014-12-292016-07-06上海达禄信息科技有限公司Intelligent home electric appliance management method, management apparatus and management system
CN105245418A (en)*2015-10-122016-01-13中国联合网络通信集团有限公司 A control method, device and system for smart home devices
CN106251613A (en)*2016-09-082016-12-21四川长虹电器股份有限公司Non intelligent infrared electrical equipment realizes the system that Intelligent infrared controls
CN108227521A (en)*2016-12-142018-06-29佛山市顺德区美的电热电器制造有限公司Photoelectricity wireless control system, mobile terminal and smart machine and its control method
WO2018126853A1 (en)*2017-01-032018-07-12腾讯科技(深圳)有限公司Data transmission method and apparatus
US10805380B2 (en)2017-01-032020-10-13Tencent Technology (Shenzhen) Company LimitedData transmission method and device
CN109450749A (en)*2018-11-262019-03-08美的集团武汉制冷设备有限公司Communication switching electric-controlled plate, household appliance and appliance control system
CN110244606A (en)*2019-05-302019-09-17中国科学院长春光学精密机械与物理研究所 Weapon launch control system and mounting platform with the launch control system
CN113452589A (en)*2021-06-292021-09-28张挺Wide area network intelligent home remote control system and working method thereof
CN116580544A (en)*2023-07-122023-08-11深圳市东明炬创电子股份有限公司Long-distance infrared data transmission method, system and terminal
CN116580544B (en)*2023-07-122023-12-12深圳市东明炬创电子股份有限公司Long-distance infrared data transmission method, system and terminal

Similar Documents

PublicationPublication DateTitle
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

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C02Deemed withdrawal of patent application after publication (patent law 2001)
WD01Invention patent application deemed withdrawn after publication

Open date:20081231


[8]ページ先頭

©2009-2025 Movatter.jp