Summary of the invention
The embodiment of the invention provides method of attachment, the device between a kind of isomery household network equipment and connects bridge, can not be connected communication to solve between the home network of using the IGRS agreement and the home network of using the CCP agreement, the equipment between described two kinds of isomery household networks can't be realized the problem of interoperability.
For addressing the above problem, the embodiment of the invention provides the method for attachment between a kind of isomery household network equipment, comprises step:
Receive the facility information that described target side network sends;
Resolve described facility information, encapsulate again according to described initiation side network application agreement;
Store the described facility information of encapsulation again;
Receive the object run equipment query solicited message that described initiation side network sends;
Comprise described object run facility information in the facility information of determining to store;
Send described object run facility information to initiating the side network;
Receive and initiate the Equipment Control message that the side network sends;
Resolve described Equipment Control message, encapsulate again according to target side network application agreement;
Send described Equipment Control message to described target side network.
Preferably, if do not comprise described object run facility information in the facility information of storage, described method also comprises:
Obtain described object run facility information at described target side network;
Resolve described object run facility information, encapsulate again according to initiating side network application agreement;
The object run facility information that sends described encapsulation again is to described initiation side network.
Method of attachment between a kind of isomery household network equipment comprises:
Receive the equipment online message that described target side network sends;
Resolve described equipment online message, encapsulate again according to described initiation side network application agreement;
According to described equipment online message, obtain the facility information of the online equipment of described target side network;
Resolve described facility information, encapsulate again and store according to described initiation side network application agreement;
The equipment online message that sends described encapsulation again is to initiating the side network;
Receive the object run facility information request message that described initiation side network sends;
Send the object run facility information to initiating the side network;
Receive and initiate the Equipment Control message that the side network sends;
Resolve described Equipment Control message, encapsulate again according to target side network application agreement;
Send described Equipment Control message to described target side network.
Preferably, described initiation side network is the network of the shared cooperation with service IGRS agreement of application message device resource, and described target side network is for using the network of common communication protocol CCP, perhaps
Described initiation side network is for using the network of CCP agreement, and described target side network is for using the network of IGRS agreement.
Correspondingly, the embodiment of the invention also provides the jockey between a kind of isomery household network equipment, comprising:
Receiving element is used to receive the Equipment Control message of initiating the transmission of side network;
Resolution unit is used to resolve described Equipment Control message;
Encapsulation unit is used for encapsulating described Equipment Control message again according to target side network application agreement;
Transmitting element is used to send described Equipment Control message to described target side network; Memory cell is used to store the described facility information of encapsulation again;
Determining unit when receiving the object run equipment query solicited message of described initiation side transmission, is used for determining that described memory cell comprises described object run facility information, and notice is carried out and sent described object run facility information to initiating side network step.
Preferably, described device also comprises:
Acquiring unit, in described memory cell, do not comprise under the situation of described object run facility information, be used for obtaining described object run facility information at described target side network, notice is carried out and is resolved, encapsulates and send described object run facility information to initiating side network step.
Preferably, described initiation side network is for using the network of IGRS agreement, and described target side network is for using the network of CCP, perhaps
Described initiation side network is for using the network of CCP agreement, and described target side network is for using the network of IGRS agreement.
Correspondingly, the embodiment of the invention also provides a kind of connection bridge, and described connection bridge comprises the jockey between the aforesaid isomery household network equipment.
Compared with prior art, method of attachment between the isomery household network equipment that the embodiment of the invention provides, device and connection bridge can be changed accordingly with using the message that sends between the different agreement home network, realize the interconnected and interoperability of equipment in described two kinds of networks.
Embodiment
Below in conjunction with drawings and Examples the present invention is done detailed explanation.See also and Figure 1 shows that and specifically comprise step by embodiment of the invention method flow diagram:
Step S101: receive and initiate the Equipment Control message that the side network sends;
Step S102: resolve described Equipment Control message, encapsulate again according to target side network application agreement;
Step S103: send described Equipment Control message to described target side network.
In a preferred embodiment of the invention, described two home networks are respectively the network of using the IGRS agreement and the network of using the CCP agreement, wherein, resolving to field in the information of described IGRS agreement and the CCP protocol data bag realizes by predefined mapping relations, specifically see also as following table 1 to shown in the table 3, wherein table 1 is field in the CCP packet and the mapping relations between the IGRS device description, table 2 is field in the CCP packet and the mapping relations between the IGRS service describing, and table 3 is field in the CCP packet and the mapping relations between the IGRS message.
Table 1
Table 2
Table 3
According to above-mentioned mapping relations, can realize field and the conversion of the parsing between the description of IGRS protocol devices, service describing and the message in the CCP protocol data bag.The concrete application sees also the preferred embodiments of the present invention.
The communication flow diagram of first preferred embodiment of the invention sees also shown in Figure 2, wherein initiate the side network for using the network of IGRS agreement, the target side network is for using the network of CCP agreement, and the IGRS side network equipment transmits control message to the CCP side network equipment, and concrete implementation procedure is as follows:
Family information server in the step 201:CCP network (Home Information Server, HIS) log-on message of the reception CCP network equipment;
In the CCP network, the registration of equipment and management are by family network management agreement (Home networkmanagement protocol, HNMP) realize, described HNMP agreement is the signaling protocol based on packet, after facility registration request DEV_REG_REQ message is received in described connection net connection, described HIS Returning equipment registration response DEV_REG_RES message is finished the registration of described equipment to the equipment of described transmission register requirement;
Step 202: connect bridge and send registration message to described HIS;
Described connection bridge is at control of the HIS of CCP network device registration and monitor service CCPMonitorService, and by this service of registration, described connection bridge can get access to the described CCP facility information of registering on described HIS;
Step 203: described HIS sends the CCP facility information of registration to described connection bridge;
Step 204: described connection net connects receives described CCP facility information, and according to predefined mapping relations, resolving and encapsulating described information again is the IGRS form, stores;
Described connection bridge is receiving described CCP facility information, by resolving, can obtain address, the device id of described CCP equipment and the information of being supported such as operating list.For each CCP equipment, described connection bridge according to corresponding IGRS service description language (sdl) (Web Service DescriptionLanguage, WSDL) description document is provided with IGRS equipment;
The step 205:IGRS network equipment sends the request of object run equipment query to described connection bridge, query aim operating equipment information;
Step 206: described connection bridge judges self whether to store described object run facility information, if, direct execution in step 208, if not, execution in step 207;
Step 207: described connection bridge sends object run equipment query message to described HIS, and receives the object run facility information that described HIS replys;
Step 208: described connection bridge is replied described object run facility information to the described IGRS network equipment;
Step 209: the described IGRS network equipment is according to described object run facility information, and the transmitting apparatus control messages is to described connection bridge;
Step 210: described connection bridge is resolved described Equipment Control message, is encapsulated as the CCP protocol format again, is sent to described object run equipment, thereby realizes the control to described object run equipment.
In first preferred embodiment of the invention, described connection bridge stores the facility information of the CCP network equipment, after receiving the control messages of the IGRS network equipment to the CCP network equipment, resolve and encapsulate again described Equipment Control message, and be sent to the target control equipment of CCP network, thereby realize of the operation control of the IGRS network equipment to the CCP network equipment.
The communication flow diagram of second preferred embodiment of the invention sees also shown in Figure 3, wherein initiate the side network for using the network of CCP agreement, the target side network is for using the network of IGRS agreement, and the CCP side network equipment transmits control message to the IGRS side network equipment, and concrete implementation procedure is as follows:
Step 301:IGRS network equipment transmitting apparatus online message is to connecting bridge;
When described IGRS equipment deviated from network, also can send deferred information to described connection bridge, therefore described connection bridge can be understood the online situation of the IGRS network equipment immediately;
Step 302: CCP protocol data packet format is resolved and be encapsulated as again to described connection bridge according to predefined mapping relations with described IGRS equipment online message;
In the IGRS network, IGRS device description template is supported in increases the defined various field of CCP consensus standard in the facility information of IGRS, both IGRS equipment can be described to realize same description document, also the form of IGSR equipment with CCP equipment can be described simultaneously, therefore in described connection bridge, what described IGRS equipment was represented is a CCP equipment;
Step 303: described connection bridge obtains described IGRS facility information according to the online message of described IGRS equipment, comprises device name, the network address etc., resolves and is encapsulated as again the CCP protocol format, and store;
Step 304: described connection bridge sends the HIS of described IGRS equipment online message to the CCP network;
The step 305:CCP network equipment sends object run equipment query message to described HIS, and whether inquire about described object run equipment online, if the described CCP network equipment sends object run facility information request message to described connection bridge;
Step 306: described connection bridge reply described object run facility information via HIS to the described CCP network equipment;
Step 307: described CCP network equipment transmitting apparatus control messages is to described connection bridge;
Step 308: described connection bridge is resolved described Equipment Control message, sends to described object run equipment after the encapsulation again, thereby realizes the control to described object run equipment.
Use two methods that preferred embodiment provided of the present invention, can realize to use the network and the interconnection even of the network of using the CCP agreement of IGRS agreement, described two internetwork message are changed, thereby realized the interoperability of equipment in described two networks.
Correspondingly, the embodiment of the invention also provides the jockey between a kind of isomery household network equipment, sees also shown in Figure 4ly, comprising: receiving element 401 is used to receive and initiates the Equipment Control message that the side network sends; Resolution unit 402 is used to resolve described Equipment Control message; Encapsulation unit 403 is used for encapsulating described Equipment Control message again according to target side network application agreement; Transmitting element 404 is used to send described Equipment Control message to described target side network.
In addition, described device also comprises memory cell 405, is used to store the described facility information of encapsulation again; Determining unit 406, when receiving the object run equipment query solicited message of described initiation side transmission, be used for determining that described memory cell comprises described object run facility information, notice is carried out and is sent described object run facility information to initiating side network step; Acquiring unit 407, in described memory cell, do not comprise under the situation of described object run facility information, be used for obtaining described object run facility information at described target side network, notice is carried out and is resolved, encapsulates and send described object run facility information to initiating side network step.
In third preferred embodiment of the invention, jockey between the described isomery household network equipment connects IGRS network and CCP network, the described IGRS network equipment transmits control message, be sent to CCP network objectives operating equipment via described isomery household network jockey, realization is to the control of described object run equipment, and concrete implementation procedure is as follows:
The HIS of CCP network at first receives the log-on message of the CCP network equipment, by said process, in described HIS, promptly stores the information of the described CCP network equipment.Jockey between the described isomery household network equipment sends registration message to described HIS, at described HIS device registration control and monitor service CCPMonitorService, gets access to the CCP facility information that described HIS goes up registration.
After described device receives described CCP facility information, according to predefined mapping relations, utilize resolution unit 402 to resolve described facility information, by encapsulation unit 403 described facility information is encapsulated as the IGRS protocol format again, and is stored in the memory cell 405.By above-mentioned analyzing step, described device can obtain address, the device id of described CCP equipment and the information of being supported such as operating list, for each CCP equipment, described connection bridge is provided with IGRS equipment according to corresponding IGRS WSDL description document.
IGRS network equipment transmitting apparatus query requests is to described device, query aim operating equipment information.Then described device judges whether store described object run facility information in the memory cell 405 by determining unit 406, if, directly reply described object run facility information to the described IGRS network equipment, if not, then send object run equipment query message to described HIS, and receive the object run facility information that described HIS replys, be sent to the described IGRS network equipment.
The described IGRS network equipment is according to described object run information, and the transmitting apparatus control messages is to described device.Described device receives described Equipment Control message by receiving element 401, use resolution unit 402 with its parsing, and use encapsulation unit 403 to be encapsulated as the CCP protocol architecture again, be sent to described object run equipment by transmitting element 404 at last, thereby realize of the control of the described IGRS network equipment the object run equipment in the CCP network.
Initiation side network in the invention described above the 3rd preferred embodiment is the IGRS network, and the target side network is the CCP network, has realized the control of the IGRS network equipment to object run equipment in the CCP network.In the 4th preferred embodiment of the present invention, the jockey between the described isomery household network equipment receives the Equipment Control message that the CCP network equipment sends, and is sent to the object run equipment of IGRS network, and concrete implementation procedure is as follows:
IGRS network equipment transmitting apparatus online message is to described isomery household network equipment jockey, if when described IGRS equipment deviated from network, also can send deferred information to described device, therefore described device can be recognized the online situation of the IGRS network equipment immediately.
Described device is resolved described IGRS equipment online message, and is encapsulated as the CCP protocol format again according to predefined mapping relations.In the IGRS network, IGRS device description template is supported in increases the defined various field of CCP consensus standard in the facility information of IGRS, both IGRS equipment can be described to realize same description document, also the form of IGSR equipment with CCP equipment can be described simultaneously, therefore in described device, what described IGRS equipment was represented is a CCP equipment.
Described device is according to the online message of described IGRS equipment, get access to described IGRS facility information, comprise device name, the network address etc., resolve by resolution unit 402, and use encapsulation unit 403 to be encapsulated as the CCP protocol format again, and be stored in the memory cell 405.
Described device sends the HIS of described IGRS equipment online message to the CCP network, makes described HIS obtain the online situation of equipment of IGRS network.When the CCP network equipment sends the object run query messages to described HIS, whether the query aim operating equipment is online, if online, then described HIS sends object run facility information request message to described device.
Described device is according to the object run facility information request message that described HIS sends, reply corresponding object run equipment message via described HIS to the described CCP network equipment.
The described CCP network equipment gets access to described object run equipment message, the transmitting apparatus control messages, via described HIS to described device, described device receives described Equipment Control message by receiving element 401, resolve by resolution unit 402, and use encapsulation unit 403 to be encapsulated as the IGRS protocol format again, be sent to object run equipment in the IGRS network by transmitting element 404 at last, thereby realize of the control of the CCP network equipment the object run equipment in the described IGRS network.
Use the device that the preferred embodiment of the present invention provided, can realize to use the network and the interconnection that the network of using the CCP agreement connects of IGRS agreement, described two internetwork message are changed, thereby realize the interoperability of equipment in described two networks.
Correspondingly, the embodiment of the invention also provides a kind of connection bridge, comprise the jockey between the described isomery household network equipment, it realizes being connected of equipment in IGRS network and the CCP network and the detailed process of interoperability sees also the invention described above the 3rd, the 4th preferred embodiment, does not repeat them here.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.