Summary of the invention
The present invention proposes in order to address the above problem, purpose is to provide a kind of gateway apparatus, this gateway apparatus connects thereby realization is connected the terminal machine of the communication network of different agreement each other validly by gateway function is carried out commonization and standardization.
In order to achieve the above object, the gateway apparatus that the present invention relates to, between the network of two or more agreements, connect, these two or more agreements comprise diverse first agreement and second agreement at least, wherein, comprising: the template holding unit keeps template, the standard that this template is used according to described second agreement is recorded and narrated, and is written into the information of the terminal machine of the relevant network that is connected described first agreement in this template; Obtain the unit, obtain the information of described terminal machine from the terminal machine of the network that is connected described first agreement, the information of this terminal machine is based on the information of the standard that described first agreement uses; Template is recorded and narrated and is made processing unit, obtains the described template that described template holding unit keeps, and writes the information of the relevant described terminal machine of described acquisition unit acquisition in described template, thereby makes terminal machine information description; Protocol conversion table holding unit keeps the protocol conversion table, and according to the title of described terminal machine, the taking the form of of the pairing information of described terminal machine in first and second agreement is associated in this protocol conversion table; Conversion unit of protocol is with reference to described protocol conversion table, at the control device of the network that is connected described second agreement be connected the conversion of carrying out agreement under the situation about communicating between the described terminal machine of network of described first agreement; And communication unit, can be sent in described template to the described control device of the network that is connected described second agreement and record and narrate and make the terminal machine information description that processing unit is updated.
And, the described template holding unit of the gateway apparatus that the present invention relates to comprises: equipment records and narrates the template maintaining part and the template maintaining part is recorded and narrated in service, described equipment is recorded and narrated template maintaining part maintenance equipment and is recorded and narrated template, and this equipment is recorded and narrated template was recorded and narrated and be written into the described terminal machine of the network that is connected described first agreement according to the standard of described second agreement use machine information; Described service is recorded and narrated the template maintaining part and is kept service to record and narrate template, and the information on services that described terminal machine provides is recorded and narrated and be written into to the standard that this service record template is used according to described second agreement; Described template record makes processing unit and comprises: equipment is recorded and narrated to make handling part and serve to record and narrate and is made handling part, described equipment record makes handling part and obtains described equipment record template from described equipment record template maintaining part, rule according to the rules automatically writes the facility information that described acquisition unit obtains in described equipment is recorded and narrated template, describe to make facility information; Described service record makes handling part and obtains described service record template from described service record template maintaining part, and rule is is according to the rules automatically recorded and narrated template in described service and write the information on services that described acquisition unit obtains, to make the information on services description.
According to said structure, can openly be suitable for the terminal machine information description of the standard of second agreement to the control device of the network that is connected second agreement, this terminal machine information description is to record and narrate in template according to the information of relevant terminal machine to make processing unit and make automatically, and the information of this relevant terminal machine obtains and records and narrates on the template of the standard that is suitable for first agreement from the terminal machine of the network that is connected first agreement.Thereby, can make and realize following gateway apparatus, promptly realize being connected between the terminal machine based on the communication network of different agreement interconnecting.
And, the template maintaining part is recorded and narrated in the described service of the gateway apparatus that the present invention relates to, also keep service to record and narrate template, this service is recorded and narrated template and is defined by each attribute type, this attribute type is that described terminal machine is connected in the network of described first agreement according to the controlling models of the pattern classification of the described terminal machine of control; Described service is recorded and narrated the information categorization that makes the relevant service that handling part obtains described acquisition unit to the regular described attribute type of predesignating according to the rules, and recording and narrating the template maintaining part from described service selects to record and narrate template with the corresponding service of this attribute type, make described information on services according to rule and describe, this rule is each service record template defined by this.
According to this structure, make handling part in the service record, attribute information that attribute that each machine is kept and service are machine and machine and information on services are divided into the attribute type as control model, and make based on the information on services of the standard of second agreement and describe, describe to the control device of the network that is connected described second agreement this information on services open, thereby can disclose following information easily to the terminal installation that is connected heterogeneous networks, the machine information and each machine that promptly comprise network configuration can corresponding information on services.
And, gateway apparatus involved in the present invention also comprises the Internet connection unit, this Internet connection unit connects the Internet, obtain to record and narrate template, described service record template with the corresponding described protocol conversion table of described terminal installation difference, described equipment from server apparatus, described terminal installation is connected in described first agreement.
According to this structure, below the Internet connection unit obtains by the Internet: the title of described terminal machine, the form of expression of each agreement of the described service of described terminal machine correspondence is carried out the corresponding protocols map table, is used to make the equipment that described facility information describes and records and narrates template, be used to make the service that described information on services describes and record and narrate template, like this, even under the situation that has increased new service and new terminal machine, obtain up-to-date template, the also connection between the network of corresponding different agreement validly by the Internet.
And, the control device that the present invention relates to, be connected the network of second agreement, be used for the terminal machine of control connection at the network of first agreement, wherein, comprise: equipment is recorded and narrated and is detected processing unit, confirm to become the connection situation of terminal machine of the network of described first agreement of being connected of controlling object, and detect the described terminal machine become controlling object and be connected network, and obtain and keep facility information to describe, it is the machine information of described terminal machine that this facility information is described; The device analysis processing unit is analyzed described facility information and is described; Service record and narrate to detect processing unit, and to the terminal machine request of the network that is connected described first agreement and obtain information on services and describe, this information on services is described and recorded and narrated the described information on services that has the described terminal machine that becomes controlling object to keep; The service analysis processing unit is analyzed described information on services and is described; Incident receives processing unit, when the described terminal machine that becomes controlling object is received the notification data of off status, record and narrate the detection processing unit from described equipment and obtain described facility information description, and record and narrate from described service and to detect processing unit and obtain described information on services and describe, thereby analyze the content of the described notification data of receiving; The Equipment Control processing unit, in order to control the described terminal machine that becomes controlling object, detect processing unit from described equipment record and obtain described facility information description, and obtain described information on services description, make the communication data that is used to control from described service record detection processing unit; Data holding unit, maintenance becomes the described facility information description and the description of described information on services of all described terminal machines of controlling object at least; And picture display unit, display frame, this picture is used for the user to be described and described information on services is described the state of confirming described terminal machine and controlled described terminal machine from the described facility information of the described terminal machine that becomes controlling object.
And, the described picture display unit of the control device that the present invention relates to, keep the window member set, each attribute type that this window member set is described by described information on services generates the framework of picture, and the set of described window member embedded described picture, thus the framework of picture generated, and according to the rule of described window member set, the data that comprise in the described information on services description are write described window member set, thereby generate described picture.
According to these structures, the controller machine that is connected heterogeneous networks receives this information on services that is disclosed when describing, control device uses the window member set in picture display unit, thereby can make user interface easily, corresponding each attribute type of this window member set as each control model.And the mode of the control device that the present invention relates to is not limited only to certain protocol, can use when interconnecting between various different agreements.
In addition, in order to achieve the above object, it is that the method for connecting network of step realizes that perhaps realize as program, this program is to make computer carry out the program of each step that the present invention can be used as characteristic unit with gateway apparatus.And described program is certainly distributed by transfer mediums such as recording mediums such as CD-ROM or the Internets.
The publicity pattern of gateway apparatus according to the present invention, promptly the machine on different agreement discloses the connection situation of machine and the publicity pattern of the service that each machine can be corresponding, as long as the service of each machine is referred in the attribute type as controlling models, facilitate machine on different agreement each machine is disclosed can corresponding service, can realize being connected interconnecting between the terminal machine on the communication network of different agreement validly.
Also have, the control device that receives about information on services to the machine that is connected heterogeneous networks, as long as this control device keep with each controlling models be the corresponding user interface parts of attribute type, then be convenient to make application program.
Embodiment
With reference to the accompanying drawings embodiments of the invention are described.
(embodiment 1)
Fig. 1 is the system construction drawing of the home network be made up of various protocols in the home network of the embodiment of the invention 1.
Two kinds of agreements shown in Fig. 1, for example to establish agreement A12 be UPnP, establish agreement B13 is ECHONET.The structure of home network is such: control device 14 is connected agreement A12, and terminal 15, terminal 16, terminal 17 are connected agreement B13.
Terminal 15, terminal 16, terminal 17 are machines such as air-conditioning or refrigerator for example.And domestic network system comprises the gateway apparatus 11 that is connected agreement A12 and agreement B13 both sides.The terminal 15,16,17 that is connected the control device 14 of agreement A12 and is connected agreement B13 realizes interconnecting between the different agreements by gateway apparatus 11.
Control device 14 obtains to be connected the information of machine of agreement B13 and the information that obtains the service that each machine can carry out from gateway apparatus 11.According to these information, control device 14 sends communication data to gateway apparatus 11, this communication data is used for the machine of control connection at agreement B13, gateway apparatus 11 is converted to the communication data of protocol compliant B with the communication data of receiving, and this communication data is sent to the terminal 15 that is connected agreement B13.
Also have, the terminal 15 that is connected agreement B13 can notify status when ego state changes, perhaps notify status termly.Gateway apparatus 11 is converted to the communication data of protocol compliant A with the communication data of receiving, and this communication data is sent to the control device 14 that is connected agreement A12.
Also have, when the machine that gateway apparatus 11 makes new advances in detection is connected agreement B13, send notification data to agreement A12, this notification data represents that new engine is connected agreement 13, the control device 14 of receiving this notification data to gateway apparatus 11 these new engines of inquiry can be corresponding service and obtain this service, thereby can control the machine of new connection.
Fig. 2 is protocol stack (protocol stack) figure that is connected the gateway apparatus 11 of various protocols network in the home network of the embodiment of the invention 1.As an example, gateway apparatus 11 is connected two kinds of different agreement A12 and agreement B13 in Fig. 2.
Gateway apparatus 11 comprise agreement A communication process portion 21, agreement B communication process portion 22, protocol conversion process portion 23, equipment record and narrate make handling part 24, equipment record and narrate template maintaining part 25, service record and narrate make handling part 26, template maintaining part 27, protocol conversion table maintaining part 28, machine construction management department 29 are recorded and narrated in service.
Agreement A communication process portion 21 has the function with the other machines transmitting-receiving communication data that is connected agreement A12, if during from protocol conversion process portion 23 reception data, communication data is changed to the communication template of agreement A12, and send communication data to the other machines that is connected agreement A12.Also have,, analyze the communication data of receiving and be submitted to protocol conversion process portion 23 afterwards under the other machines received communication data conditions that is connected in agreement A12.
Agreement B communication process portion 22 has the function with the other machines transmitting-receiving communication data that is connected agreement B13, if during from protocol conversion process portion 23 reception data, communication data is changed to the communication template of agreement B13, and send communication data to the other machines that is connected agreement B13.Also have,, analyze the communication data of receiving and be submitted to protocol conversion process portion 23 afterwards under the other machines received communication data conditions that is connected in agreement B13.
Secondly, illustrate to agreement A and openly be connected the information of machine of agreement B13 and the situation of service.
Receive from the control device that is connected agreement A12 at gateway apparatus 11 under the situation of communication data of requesting service information data, these facility information data are recorded and narrated the structure (facility information that particularly is following explanation is described) that the machine that is connected agreement B is arranged, in these cases, protocol conversion process portion 23 slave units are recorded and narrated and are made handling part 24 receiving equipment information datas, and in order promptly to have asked the control device answer facility information data of facility information data to the transmission source, to agreement A communication process portion 21, these facility information data are to have recorded and narrated the data of the information of the machine that is connected agreement B13 with extensible markup language (XML:Extensible Markup Language) with data delivery.
Secondly, receive under the situation of the communication data of asking service information data from the control device that is connected agreement A12 at gateway apparatus 11, this service information data is recorded and narrated the service (information on services that particularly is following explanation is described) that each machine of being connected agreement B13 can be corresponding, in this case, protocol conversion process portion 23 records and narrates from service and makes handling part 26 reception service information datas, and in order promptly to have asked the control device answer service information data of service information data to the transmission source, to agreement A communication process portion 21, this service information data is data of having recorded and narrated the information on services of each machine maintenance that is connected agreement B13 with XML with data delivery.
Secondly, receive the request control connection at gateway apparatus 11 under the situation of the control data of the machine of agreement B from the control device that is connected in agreement A12, protocol conversion process portion 23 is from protocol conversion table maintaining part 28 reception information described later, this information is used for control data from the data transaction that adapts to agreement A12 to the data that adapt to agreement B13, and the address that is used for agreement B13 from the qualified machine of machine construction management department's 29 receptions described later, the row address of going forward side by side conversion, the title of machine, attribute, the conversion of data etc., and for control connection at the machine of agreement 13 and control data is delivered to agreement B communication process portion 22.
Secondly, at gateway apparatus 11 under the situation of the notification data of the machine reception notification machine state that is connected in agreement B13, protocol conversion process portion 23 is from protocol conversion table maintaining part 28 reception information, this information is used for control data from the data transaction that adapts to agreement B13 to the data that adapt to agreement A12, and from machine structure management portion 29 reception information, this information is used for the address transition of adaptation agreement B13 of the machine that will meet to the address that adapts to agreement A12, the row address of going forward side by side conversion, the title of machine, attribute, the conversion of data etc., and in order to be connected the data of the machine of agreement B13 to the controller notice that is connected agreement A12, and notification data is delivered to agreement A communication process portion.
Also have, protocol conversion process portion 23 is when agreement B communication process portion 22 receives that agreement B13 is connected with the information of machine, records and narrates to equipment and makes handling part 24 and machine construction management department 29 submits this information.
Also have, protocol conversion process portion 23 is receiving the manufacturer of machine, when producing the information of machines such as number, is making handling part 24 to the equipment record equally and submit the data of receiving.
Also have, when protocol conversion process portion 23 receives that from agreement B communication process portion 22 agreement B13 is connected with the information of machine, record and narrate to equipment and to make handling part 24 and machine construction management department 29 submits this information.
Also have, when protocol conversion process portion 23 obtains the relevant information of the data that can control with the machine that is connected agreement B13, make handling part 26 to the service record and submit the data of receiving.
Equipment is recorded and narrated and to be made handling part 24 system of agreement B13 is made the facility information data as root device, the terminal 15 that will be connected agreement B13 as embedded device (built-in device).Equipment is recorded and narrated and is made handling part 24 when acquisition New Deal B13 is connected with the information of machine, records and narrates the template that template maintaining part 25 obtains to be used to make the facility information data from equipment described later, and makes the facility information data according to certain transformation rule.Make or the situation of the information data of updating the equipment under, equipment is recorded and narrated and is made handling part 24 and submit the facility information data to protocol conversion process portion 23.Also have, when the acquisition request of facility information data is received by protocol conversion process portion 23, submit the facility information data to protocol conversion process portion 23.The facility information data for example are to represent to be connected the data of structure of the machine of agreement B13 with XML.
The service record makes handling part 26 can make service information data by corresponding service, attribute, data value at the terminal 15 that is connected agreement B13.Attribute is the data of representing mode of operation, controlling object such as place being set; Can corresponding service be the data of representing control, state reference, having or not incident; The ON of data representation operating state (opening), OFF concrete controlling values such as (passes).Service is recorded and narrated and to be made handling part 26 when information such as the service of the machine that obtains to be connected agreement B13, attribute, data, machine that will meet and attribute are delivered to service described later and record and narrate template maintaining part 27, and in order to make service information data, record and narrate the template that template maintaining part 27 obtains to meet machine and attribute from service, certain transformation rule of stipulating according to each template makes service information data.Under the situation of the acquisition request that receives service information data from protocol conversion process portion 23, service information data is delivered to protocol conversion process portion 23.For example, service information data is data of representing to be connected service, attribute and data value thereof that the machine of agreement B13 can be corresponding with XML.
Equipment is recorded and narrated template maintaining part 25 maintenance equipment and is recorded and narrated and make the template that handling part 24 is used to make the facility information data, when making these facility information data with the system of agreement B13 as root device, be connected the terminal 15 of agreement B13 as embedded device.When equipment record template maintaining part 25 slave units are recorded and narrated the request that makes handling part 24 reception templates acquisitions, template is delivered to the equipment record makes handling part 24, this template is the template that is used to make the facility information data.For example, the template that is used to make the facility information data is recorded and narrated with XML.
Service is recorded and narrated template maintaining part 27 and is kept service that can be corresponding to the terminal 15 that is connected agreement B13, the template of service information data that attribute, data value made.And control model carry out controlling modelsization by the pattern of control machine is classified to come.
Also have, service is recorded and narrated template maintaining part 27 by the template of carrying out modeled each control model maintenance service information data.For example can enumerate four template examples as the example of template and keep, these four templates have following attribute respectively: keep for example attribute of ON, OFF switching-type data of operating state; The data that attributes such as place such as parlor, entrance hall, kitchen are set are enumerated the attribute of expression; With the design temperature attribute that keeps as data of simulation value for example; To relevant timer is that timer ON setting, timer ON setting-up time, timer OFF setting, timer OFF setting-up time and a plurality of attribute are concentrated as a template.Service is recorded and narrated template maintaining part 27 and is kept described these templates, if record and narrate when making the handling part 26 receptions data relevant and receiving the acquisition request of template with machine and attribute from service, the template that is fit to this attribute is delivered to the service record makes handling part 26, described template is the template that is used to make service information data.For example, the template that is used to make service information data is recorded and narrated with XML.
28 the requests of protocol conversion table maintaining part according to protocol conversion process portion 23, with the record language conversion of agreement A12 is the record language of agreement B13, data delivery is arrived protocol conversion process portion 23, perhaps the record language conversion with agreement B13 is the record language of agreement A12, and data delivery is arrived protocol conversion process portion 23.
Protocol conversion table maintaining part 28 keeps two kinds of tables.First kind is machine name conversion table 51, and this table is the table about machine name, also is the table that the transformation rule at agreement A12 and agreement B13 makes.Fig. 5 shows the example of machine name conversion table 51.Second kind is attribute conversion table 61,71, and this table is about attribute and the table that meets the data of this attribute, also is the table that makes at the transformation rule among agreement A12 and the agreement B12.Fig. 6 and Fig. 7 show the object lesson of attribute conversion table.Attribute conversion table 71 is the transformation rule that unit has concentrated attribute and data with each machine.Also have, at as operating state and the attribute conversion table 61 that the attribute that the common uses of all machines such as place are set makes, do not put down in writing the title of machine in the title of machine, Common is common to show in record.
The machine construction that machine construction management department 29 will be connected agreement B12 keeps as ATT 81.The example of Fig. 8 presentation address conversion table.
Under the situation of slave controller device 14 control terminals 15 or gateway apparatus notification data that terminal 15 is sent to be sent to the situation of control device inferior, protocol conversion process portion 23 is from machine structure management portion 29 address acquisition transitional informations.Under the situation of for example slave controller device 14 control terminals 15, information of address conversion represents that with reference to ATT 81, machine information is converted to the group of ECHONET address and ECHONET object; Under the situation of control device 14 notify status, information of address conversion represents that with reference to ATT 81 group of ECHONET address and ECHONET object is converted to machine information in terminal 15.
Also have, the feature of the gateway apparatus 11 that present embodiment 1 relates to is as follows, considers the ECHONET attribute to be classified according to the content of property value the constructing of the application program at UPnP control point, and sorting result is defined as attribute type.The ECHONET attribute can be divided into following 8 kinds of attribute types that illustrate, and the type is the type of classifying according to following classifying rules.Figure 11 is an exemplary plot, and an example of the ECHONET attribute type that gateway apparatus 11 that present embodiment 1 relates to classified is shown.Below each attribute type is described.
(1) numeric type: the attribute that comes the representation attribute value with numerical value.Different Data Type according to the desirable scope of numerical value occur different.Particularly, decide Data Type according to the byte-sized that is integer value or the numerical value below the decimal point, whether pays coding, data.
(2) date type: the attribute that keeps the data on expression date.Data Type is Date.Data format is the yyyy-mm-dd (year-moon-Ri) according to the ISO8601 form under situation about recording and narrating with XML Description.
(3) moment type: keep constantly or the attribute of time.Data Type is Time.Data format is hh-mm-ss (time-minute-second) according to the ISO8601 form under situation about recording and narrating with XMLDescription.
(4) rank type: control the ECHONET machine or with reference to the attribute of the state of ECHONET machine with the data of representing magnitude relationship that are not numerical value.For example, detection threshold rank etc.DataType is String (character string).
(5) textual representation type: the data that obtain from the ECHONET machine are that text strings or the data of controlling the ECHONET machine are the attribute of text strings.For example, can enumerate commercial product code and produce number etc.Data Type is String.
(6) restoration type: the ECHONET machine is controlled the attribute that uses under the situation of certain state that resets in a unique value that is defined by use.Data Type is String.
(7) switch type: control the ECHONET machine by switching two values, perhaps obtain the attribute of a certain value two values from the ECHONET machine.For example, can enumerate operating state, generation state etc. unusually.Data Type is String.
(8) selection type:, perhaps obtain the attribute of a certain value the value more than three from the ECHONET machine by from the value more than three, selecting to control the ECHONET machine.For example, can enumerate place etc. is set.Data Type is String.
Like this, the gateway apparatus 11 that present embodiment 1 relates to is classified according to the ECHONET attribute type, should " according to classification of ECHONET attribute type " be meant according to the content of the property value ECHONET attribute of classifying, by each ECHONET attribute regulation attribute type.And, by the naming rule of each attribute type regulation " VariableName " (variable name) and " Action ".Also have, the application program of control machine becomes the service record template of the embryo of application program by the attribute type maintenance of each regulation, thereby also can automatically construct application program when increasing machine newly.
Figure 12 is a reference diagram, the relation that classification and naming rule according to the ECHONET attribute type are shown attribute type, classification of type, purpose language, Action prefix, datatype.
In gateway apparatus 11, when the UPnP network discloses the executable service of ECHONET machine, in order the ECHONET attribute mechanically to be mapped to XML service describing (XML ServiceDescription), be necessary to define the element structure, " dataType ", the naming rule of " VariableName ", the naming rule of " Act ion " of XML Service Description." naming rule of VariableName, the naming rule of Action " classifies according to the ECHONET attribute type, thereby can shine upon.Also have, " element structure, dataType " classifies according to the data type of ECHONET attribute, thereby can shine upon.
In addition, can enumerate as the naming standard of " VariableName ": the VariableName as UPnP does not have inharmonious sense, can mechanically name, can infer the meaning, add that Action prefix literal number is still in 32 words as English.Thereby, make according to the following rule that illustrates.
Set " the purpose language " that property content is shown by attribute type at first, as shown in figure 12.For VariableName, but Property Name is divided into the word of express meaning, and this word is arranged from the outset in order, and set the purpose language of Figure 12 regulation at the end.These names result is remembered that ECHONET standard book is on " AppendixB " (accessories B).
Also have, the naming rule of establishing " Action " is for adding VariableName to the Action prefix.
Also have, DataType is prescribed according to the classification by data type.DataType about AVR type, Value type is judged by codomain, the size of data of ECHONET attribute.Also have, differentiate Data type or Time type from the content of ECHONET attribute equally about the Date type.
Figure 13 shows the figure of an example that equipment is recorded and narrated the form of template 1300, and this equipment is recorded and narrated the equipment that template 1300 remains on the gateway apparatus 11 of present embodiment 1 and recorded and narrated template maintaining part 25.In addition, the specification of each key element is according to UPnP Device Architechture Ver.1.0.
The domain name of recording and narrating in equipment is recorded and narrated template 1300 as the distinctive key element of ECHONET is made as " echonet-gr-jp ".And " UDN " records and narrates about the key element name.Detecting the ECHONET machine at the ECHONET-UPnP gateway is connected under the situation on the network, record and narrate template 1300 inside at equipment and record and narrate, so that universal unique identifier (UUID:Universally Unique Identifier) becomes the ECHONET machine is intrinsic.Also have, outside the XML of equipment template records and narrates, also record and narrate the record 1301 of the kind that is used for determining the ECHONET machine, in the past about the record 1302~1304 of the address information of ECHONET machine.
In addition, equipment is recorded and narrated template 1300 and can be registered in advance when making gateway apparatus 11, also can obtain from the outside by network.Also have, gateway apparatus 11 makes handling part 24 in the equipment record and writes the machine information that obtains from the terminal machine of agreement A side to equipment record template 1300, thereby making facility information describes, and disclose this facility information to the control device that the UPnP according to agreement A side communicates and describe, thereby control device can obtain to be connected the machine information of the terminal machine of agreement B side.
Figure 14 shows the figure of an example of serving the form record of recording and narrating template 1400, and the service record template maintaining part 27 that template 1400 remains on the gateway apparatus of present embodiment 1 is recorded and narrated in this service.
The form that template 1400 is recorded and narrated in the service of using is determined according to the ECHONET attribute type.In addition, the specification of each key element is according to UPnP Device Architechture Ver.1.0.
The domain name of recording and narrating in template 1400 is recorded and narrated in service as the distinctive key element of ECHONET is " echonet-gr-jp ".Also have, as shown in the drawing, at attribute type is numeric type, the date type, moment type, recorded and narrated under the situation of textual representation type "<name〉SetVariableName</name〉" (1401), at attribute type be recorded and narrated under the situation of rank type "<name〉WriteVariableName</name " (1402), the service of gateway apparatus 11 is recorded and narrated and is made handling part 26, the Template Information of recording and narrating according to the ECHONET standard that obtains from the terminal machine of agreement B side automatically covers above-mentioned record and makes information on services and describe, and disclose described information on services to the control device that the UPnP according to agreement A side communicates and describe, thereby control device can obtain to be connected the information on services of the terminal machine of agreement B side.
Figure 15 shows the flow chart of the job order of the gateway apparatus 11 that present embodiment 1 relates to.
At first, from the machine acquisition template (S1501) of ECHONET side, this template is recorded and narrated the end message that has according to the ECHONET standard.Secondly, in gateway apparatus 11, will be divided into 8 attribute types (S1502) as the ECHONET attribute of each end message.And, record and narrate at equipment and to make handling part 24 and service and record and narrate and make handling part 26 and obtain and the corresponding templates of each attribute type, and write (S1503) such as information on services and attribute informations.Secondly, affirmation agreement A side is whether the control device of UPnP side has asked to obtain each template (S1504), asking to obtain under the situation of each template (S1504 is a "Yes"), sending to control device that the facility information that makes among the S1503 is described and information on services is described (S1505).
Figure 10 is the figure that has recorded and narrated publicity pattern, and the disclosure mode is the mode of the information of the open ECHONET machine of the machine on UPnP in the home network of the embodiment of the invention 1.
Set the situation that connects 2 in air-conditioning, 1 in refrigerator, 1 of scrubbing-and-drying unit among Figure 10 as an example.For the information of concentrating each ECHONET machine as making the forming apparatus template to being connected the disclosed information of machine on the UPnP.The information of ECHONET machine is as being used for to the disclosed layout strategy of UPnP side, as root device 101, open to UPnP with the information of ECHONET machine with each ECHONET machine.Each ECHONET machine keeps name to be called the COS of " ECHONET Service102 " respectively.
At first, the title of definition ECHONET machine.In order to be that the ECHONET machine is open to UPnP with root device, be " ECHONET_Appliance " with device type definition.In fact each ECHONET machine is open when UPnP goes up, record and narrate at the equipment of above-mentioned Figure 13 on " Appliance " of template 1300 and write the intrinsic title of ECHONET machine.For example openly record and narrate under the situation of air-conditioning and be " ECHONET_HomeAirConditioner ".
Secondly, in order to concentrate information on services that the ECHONET machine keeps as to the disclosed information of the machine that is connected UPnP, and template 1400 is recorded and narrated in the service shown in described Figure 14 that defines.The title of the COS that the ECHONET machine is kept is defined as " ECHONET_Service102 ".COS defines " Variable Name " by the pattern of each control ECHONET machine.The title and the ECHONET Property Name of the pattern of " Variable Name " Combination Control machine are recorded and narrated.For example,, switch two values with trigger and control under the situation of pattern of machine, " Variable Name " is defined as " Switch_property " as ON, OFF.For example operating state etc. belongs to this control model.Also have, under the situation of the pattern of using positive integer control machine, " Variable Name " is defined as " AnalogValue_uil_property ".For example design temperature of air-conditioning etc. belongs to this control model.Also have, under the situation of the pattern of using positive negative integer controller device, " Variable Name " is defined as " AnalogValue_il_property ".For example outdoor temperature etc. belongs to this control model.Also have, under the situation of the pattern of from a plurality of options, selecting a data controller device, " Variable Name " is defined as " DataList_property ".For example operational mode setting of air-conditioning etc. belongs to this control model.In addition, the control of Ji Shuing here not only comprises the control machine, also comprises the state with reference to machine.In that " text strings of Property input is the ECHONET Property Name.For example, ECHONET Property Name in working order is under the situation of " Status ", and " Variable Name " records and narrates and be " Switch_Status ".
Secondly, at " VariableName " regulation of definition: action during the control machine, state with reference to the time action, its argument (Argument).
At first, the naming rule of moving when the control machine is with the prefix of Set as " MODE name of control ".For example, can enumerate actions such as " SetSwitch ", " SetAnalogValue_uil ", " SetAnalogValue_il ", " SetDataList ".And, the naming rule of definition " Argument ", " relatedStateVariable ", the argument of necessity when this " Argument ", " relatedStateVariable " are the control machine.The naming rule of " Argument " is with the prefix of New as " MODE name of control and property ".For example, be under the situation of " Switch " in the MODE name of controlling machine, become " NewSwitch_property ".Also have, under the situation of the pattern of controlling other machines, become " NewAnalogValue_uil_property ", " NewAnalogValue_il_property ", " NewDataList_property " respectively.Text strings in " property " input is the ECHONET Property Name.Property when being example with the operating state (attribute) is Status (state), so " Argument " becomes " NewSwitch_Status ".The naming rule of " relatedStateVariable " is identical with " Variable Name ", also is that the title and the ECHONET Property Name of the pattern of Combination Control machine recorded and narrated.
Secondly, the naming rule of moving during with reference to machine state is with the prefix of Get as " title of the pattern of control ".For example, can enumerate actions such as " GetSwitch ", " GetAnalogValue_uil ", " GetAnalogValue_il ", " GetDataList ".And, the naming rule of definition " Argument ", " relatedStateVariable ", the argument of necessity when this " Argument ", " relatedStateVariable " are the control machine.The naming rule of " Argument " is the prefix with " Current " conduct " MODE name of control and property ".For example, be under the situation of " Switch " in the MODE name of controlling machine, become " CurrentSwitch_property ".Also have, under the situation of the pattern of controlling other machines, become " CurrentAnalogValue_uil_property ", " CurrentAnalogValue_il_property ", " CurrentDataList_property " respectively.Text strings in " property " input is the ECHONET Property Name.Property is Status when being example with the operating state, so " Argument " becomes " CurrentSwitch_Status ".The naming rule of " relatedStateVariable " is identical with " Variable Name ", also is that the title and the ECHONET Property Name of the pattern of Combination Control machine recorded and narrated.
As mentioned above, in the gateway apparatus 11 that present embodiment 1 relates to, about the information of ECHONET machine and the information on services of this machine maintenance, the parameter (parameter) of Appliance, property of being known as does not define each machine, but define, thereby can make ECHONET machine common equipment template and service moulding plate as common parameter.
And then, the information of ECHONET machine and the information on services of this machine maintenance are automatically shone upon, be used for to the disclosed information of the machine that is connected UPnP thereby can automatically make.Therefore, under the situation of the service that the information of new regulation machine and this machine keep in the ECHONET agreement, also by shining upon information and information on services automatically to the open machine of UPnP side.
Also have, as described, the facility information that is used for open UPnP virtual unit in the gateway apparatus 11 and the information on services of information on services are described and are made to according to certain rule, this certain rule is prescribed by each attribute type, and this each attribute type is meant the ECHONET attribute is carried out all types of of classification of type.Therefore, when making novel machine standard, only when standard makes, the ECHONET attributive classification is become attribute type, just can mechanically be mapped to the information on services that becomes XML Descritpion from the ECHONET attribute describes, and make commonization of gateway function, standardization, just can realize being connected according to interconnecting between the terminal machine on the communication network of different agreement.
(embodiment 2)
Embodiments of the invention 2 are described with reference to the accompanying drawings.
Fig. 3 is the structure chart that the protocol stack of control device 14 is shown, and in the home network of the embodiment of the invention 2, the network that this control device 14 connects is different from the network of the agreement of terminal 15 connections, and this terminal 15 is controlling object.
Control device 14 comprises that agreement A communication process portion 30, equipment record detect handling part 31, device analysis handling part 32, service record detection handling part 33, service analysis handling part 34, incident Return Reception Dept. 35, Equipment Control handling part 36, data maintaining part 37.
Equipment is recorded and narrated and is detected handling part 31 when control device 14 is connected network, to be connected the equipment on the network and to send the discovery request msg in order to detect, and when receiving that data are answered in discovery, to find to answer data delivery to device analysis handling part 32 described later, the result that receiving equipment analyzing and processing portion 32 analyzes.Also have, equipment is recorded and narrated and is detected handling part 31, be connected at the equipment of receiving under the situation of the information on the network, with the data delivery that receives to device analysis handling part 32, the result of receiving equipment analyzing and processing portion 32 analyses.
Device analysis handling part 32 is analyzed slave unit and is recorded and narrated the data that detect handling part 31 receptions, and the machine of system configuration and connection is analyzed, and analysis result is delivered to the equipment record detects handling part 31.For example, these data are made by XML, and the XML parser function of Analysis of X ML is also kept by device analysis handling part 32.
Service is recorded and narrated and is detected handling part 33 after control device 14 detects the equipment that is connected on the network, perhaps detect after the information of notifying when the equipment that connects network is connected on the network, to the machine request that meets openly can be corresponding attribute and service and obtain it.And, public informations such as the attribute that obtains and service are delivered to service analysis handling part 34, receive the result that service analysis handling part 34 is analyzed.
Service analysis handling part 34 is analyzed to record and narrate from service and is detected the data that handling part 33 receives, and the analysis and Control subject machine can corresponding attribute and service, analysis result is delivered to service records and narrates and detect handling part 33.For example, these data are made by XML, and the XML parser function of Analysis of X ML is also kept by service analysis handling part 34.
Incident Return Reception Dept. 35 is when receiving the notification data of other machines transmission, notification data is delivered to equipment records and narrates detection handling part 31 and service record detection handling part 33, the information of the machine in acquisition notification data transmission source and attribute, the data value of notification data are delivered to data maintaining part 37 described later.
Equipment Control handling part 36 is under the situation of control machine, slave unit is recorded and narrated the information such as address that handling part 31 obtains the controlling object machine that detect, record and narrate attribute and the data value that detects handling part 33 acquisition controlling object machines from service, the controlling object machine is sent the control request data.Also have, received from the controlling object machine under the situation of answering, will control the result and be delivered to data maintaining part 37 at Equipment Control handling part 36.
The attribute of the machine that data maintaining part 37 retentive control apparatuses 14 are controlled and the current data value of corresponding attribute.
Fig. 4 is the structure chart that the protocol stack of control device 14 is shown, and in the home network of the embodiment of the invention 2, the network that this control device 14 connects is different from the network of the agreement of terminal 15 connections, and this terminal 15 is controlling object.
Control device 14 shown in Fig. 4 also has and is used for to the structure of user's display device or the picture display part 41 of state except the structure with the control device 14 shown in Fig. 3.Picture display part 41 has the function of display frame, and the user comes control terminal 15, terminal 16, terminal 17 by this picture.
Picture display part 41 decides the picture displayed structure by record and narrate detection handling part 33 reception service information datas from service.Promptly, service information data is the controlling models that control model is classified, picture display part 41 keeps the window member set (widgetset) of each controlling models, by being gathered, this window member is embedded on the picture, thus the framework (framework) of generation picture.And then, picture display part 41 in window member set, write slave unit record and narrate the information such as title that detect the machine that handling part 31 obtains, from service record and narrate the attribute that detects the controlling object machine that handling part 33 obtains, the data of the controlling object machine that obtains from data maintaining part 37, thereby can generate picture.
Figure 16 is an exemplary plot, shows an example of picture display part 41 picture displayed of the control device 14 that present embodiment 2 relates to.Picture according to above-mentioned method makes for example with shown in Figure 16 A~Figure 16 D, can be shown as and the corresponding picture demonstration of the type (rank type, selection type, switch type, textual representation type) of ECHONET attribute type.
Figure 17 is a flow chart, shows the job order that the picture of the control device 14 that present embodiment 2 relates to shows.
At first, the information on services that obtains to record and narrate with XML from gateway apparatus is described (S1701).Secondly, the content of Analysis Service information description (S1702) is determined the corresponding ECHONET attribute type of terminal machine (S1703) with the ECHONET side.And, utilize window member set carrying out picture to show (S1704) at each ECHONET attribute type.
As mentioned above, in the control device that present embodiment 2 relates to, for picture, as long as keep window member set in advance as each ECHONET attribute of controlling models, just can freely generate picture, so can generate such picture, that is, even be connected in the picture of the machine on the network of variety of protocol also the state of display device simply or can control the picture of machine.
(embodiment 3)
Embodiments of the invention 3 are described with reference to the accompanying drawings.
Fig. 9 is a system construction drawing, shows the system configuration of the home network that is made of various protocols in the home network of embodiments of the invention 3.
Gateway apparatus 11 receives common attribute and the conversion table 61 of data, the attribute of relevant each machine and the conversion table 71 of data of protocol conversion table 51, associated machine of associated machine title by the Internet 92 from central server 91, and upgrades each table that protocol conversion table maintaining part 28 keeps.
Equally, gateway apparatus 11 is by the Internet 92 during from the template of central server 91 receiving equipment information datas, and equipment is recorded and narrated more new template or append as new template of template maintaining part 25.
And, gateway apparatus 11 by the Internet 92 when central server 91 receives the template of service information datas, service is recorded and narrated the template of template maintaining part 19 update service information datas or is appended as the template of new service information data.
As mentioned above, the gateway apparatus 11 that present embodiment 3 relates to, even kind, attribute, data as the machine of controlling object increase or the situation of change under, as long as only append the template of protocol conversion table and facility information data, the template of service information data, just can realize interconnecting between the heterogeneous networks.
For example in the domestic network system that different agreement mix to exist, gateway apparatus of the present invention is useful as connecting device between the network.