Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of intelligent home network automatic device discovery method and network system, for solving in prior art intelligent home network to the equipment of new access network, need to carry out multinomial configuration in advance, automatically can not identify and add the problem of the equipment of new access network.
For achieving the above object and other relevant objects, the invention provides a kind of intelligent home network automatic device discovery method, comprise the steps: that the first network terminal node of access network issues first network destination node information; Via node receives described first network destination node information, and issues described first network destination node information after adding the information of self wherein; Second network terminal node receives the described first network destination node information from described via node and it is reported to Controlling vertex; Described Controlling vertex, according to described first network destination node information, calculates the routing information of the described first network terminal node of access and stores described routing information, and finding message according to described routing information to described first network terminal node transmitting apparatus; When there being first network terminal node described in equipment access, described first network terminal node forwards described device discovery message to described equipment; After described equipment receives described device discovery message, to described Controlling vertex feedback device information; Described Controlling vertex receives described facility information and stores.
Optionally, described via node is at least 3, and makeup ring mesh network connects.
Optionally, described routing information is at least 2, described Controlling vertex, according to the timestamp field in described first network destination node information, calculate the spended time in each path of the described first network terminal node of access, and the path selecting spended time minimum sends described device discovery message.
Optionally, after described via node receives the first network destination node information comprising self information, no longer described first network destination node information is forwarded.
Optionally, the active of described equipment or the passive step leaving described network is also comprised; The step that described equipment initiatively leaves described network comprises: described first network terminal node, to described Controlling vertex transmitting apparatus leave message, after described Controlling vertex receives described leave message, deletes described facility information; The passive step leaving described network of described equipment comprises: described Controlling vertex sends query statement with the time cycle of presetting to described first network terminal node, described first network terminal node receives the backward described Controlling vertex of described query statement and replys the response message preset, when described Controlling vertex does not receive any response message or the response message that receives is improper response message, then delete described facility information.
For achieving the above object and other relevant objects, the present invention also provides a kind of intelligent house network system, comprising: first network terminal node, adds after network to Web Publishing first network destination node information; Via node, receives described first network destination node information, issues described first network destination node information after adding the information of self in described first network destination node information; Second network terminal node, receives the described first network destination node information from described via node and it is reported to Controlling vertex; Described Controlling vertex, according to described first network destination node information, calculates the routing information of the described first network terminal node of access and stores described routing information, and finding message according to described routing information to described network transmitting apparatus; When there being first network terminal node described in equipment access, described first network terminal node forwards described device discovery message to described equipment; After described equipment receives described device discovery message, to described Controlling vertex feedback device information; Described Controlling vertex receives described facility information and stores.
Optionally, described via node is at least 3, and makeup ring mesh network connects.
Optionally, described routing information is more than 2, described Controlling vertex, according to the timestamp field in described first network destination node information, calculate the spended time in each path of the described first network terminal node of access, and the path selecting spended time minimum sends described device discovery message.
Optionally, after described via node receives the first network destination node information comprising self information, no longer described first network destination node information is forwarded.
Optionally, the active of described equipment or the passive mode of operation leaving described network is also comprised; The mode of operation that described equipment initiatively leaves described network is: described first network terminal node, to described Controlling vertex transmitting apparatus leave message, after described Controlling vertex receives described leave message, deletes described facility information; The passive mode of operation leaving described network of described equipment is: described Controlling vertex sends query statement with the time cycle of presetting to described first network terminal node, described first network terminal node receives the backward described Controlling vertex of described query statement and replys the response message preset, when described Controlling vertex does not receive any response message or the response message that receives is improper response message, then delete described facility information.
As mentioned above, a kind of intelligent home network automatic device discovery method of the present invention and network system, automatically can identify and add the equipment of new access network, realize the zero configuration networking of intelligent home network, intelligent home network is made to become dynamic group net from static networking, save manual operation cost, the intellectuality etc. of networking flexibility, internet security, network stabilization and network all has a distinct increment.
Embodiment
By particular specific embodiment, embodiments of the present invention are described below, person skilled in the art scholar the content disclosed by this specification can understand other advantages of the present invention and effect easily.
Refer to Fig. 1 to Fig. 4.Notice, structure, ratio, size etc. that this specification institute accompanying drawings illustrates, content all only in order to coordinate specification to disclose, understand for person skilled in the art scholar and read, and be not used to limit the enforceable qualifications of the present invention, therefore the not technical essential meaning of tool, the adjustment of the modification of any structure, the change of proportionate relationship or size, do not affecting under effect that the present invention can produce and the object that can reach, still all should drop on disclosed technology contents and obtain in the scope that can contain.Simultaneously, quote in this specification as " on ", D score, "left", "right", " centre " and " one " etc. term, also only for ease of understanding of describing, and be not used to limit the enforceable scope of the present invention, the change of its relativeness or adjustment, under changing technology contents without essence, when being also considered as the enforceable category of the present invention.
The present invention, before the automatic discovery realizing the network equipment, carries out abstract to the network equipment and function thereof at software view, defines the function of each layer abstract component and characteristic and inter-module reciprocal process.Refer to Fig. 1, be shown as a kind of schematic diagram of network software abstract architecture, comprise layers of physical devices, logical device layer, service layer and operation layer.
Described layers of physical devices: contain all physical equipments in network, such as physical equipment 1 ~ physical equipment N, these equipment possess different functions and characteristic.From software view, the functional software of equipment and OS (Operation System, operating system), driving all belong to this one deck.This layer of equipment and manipulation system and programming language have nothing to do, and between each physical equipment, connected mode contains wired, Wireless IP network, the mode such as Zigbee, bluetooth, USB, CAN, LIN.In layers of physical devices, communication between devices follows agreement corresponding to respective physical connection mode (such as IP network equipment connection, equipment follows IEEE802.3, IP/TCP agreement, for Zigbee network equipment connection, follows IEEE802.15.4 or Zigbee protocol).
Described logical device layer: physical equipment, by function and role in a network, is split as some logical device (i.e. virtual unit), i.e. logical device 1 ~ logical device N.Such as a smart mobile phone is smart mobile phone in layers of physical devices, logically can be considered as the set of controller, gateway device and some terminal equipments (display, camera, storage etc.).Logical device is at software view, and abstract representations is operation: the affairs representing single logical unit of work.Executable operations usually can cause reading and writing or revise one or more persistent data, namely calls physical device interface.Logical device can comprise multiple network node, such as Controlling vertex, gateway node, terminal equipment node etc.Following information can be comprised: node description, addressable address, network type, network end nodes type, heart time, cipher key field, timestamp field etc. in nodal information.
Described service layer: the logic groups of representative operation, comprises service 1 ~ service N.If broadcasting music is looked service, so to the configuration operation that just representative is relevant of player, power amplifier, audio amplifier.
Described operation layer: comprise services set, event, information bank.Event is used for Trigger services collection.Services set is and realizes specific transactions target and the set performed or activity, and a services sets can comprise multiple service, and a service can be under the jurisdiction of multiple services sets.Information bank is used for the nodal information of storage networking node.
Refer to Fig. 2, be shown as a kind of intelligent home network automatic device discovery method of the present invention schematic flow sheet in one embodiment, comprise the steps:
S11: the first network terminal node of access network issues first network destination node information; Described first network destination node information such as comprises the address, timestamp field, node type etc. of described first network terminal node, and described node is such as CAN node.
S12: via node receives described first network destination node information, and after adding the information of self wherein, issue described first network destination node information;
S13: second network terminal node receives the described first network destination node information from described via node and it reported to Controlling vertex;
S14: described Controlling vertex is according to described first network destination node information, calculate the routing information of the described first network terminal node of access and store described routing information, and finding message according to described routing information to described first network terminal node transmitting apparatus; Preferably, described Controlling vertex can be software node or hardware node, when it is hardware, can be smart mobile phone or panel computer etc.Preferably, described via node is at least 3, and makeup ring mesh network connects.Preferably, described via node is at least 3, and makeup ring mesh network connects.Described routing information is more than 2, as shown in Figure 3, for via node network of the present invention structural representation in one embodiment, comprise four via nodes, makeup ring mesh network, be respectively A, B, C, and D, described via node D is receiving described first network destination node information, issue after adding the information of self, after via node C and B receives the information from described via node D, forward respectively to described via node A after adding the information of self, after described via node A receives the information from described via node B and C, issue after adding the information of self.Second network terminal node receives the described first network destination node information from described via node A and it is reported to Controlling vertex, described Controlling vertex is according to the timestamp field in described first network destination node information, calculate the spended time in each path of the described first network terminal node of access, and the path selecting spended time minimum sends described device discovery message, such as by comparing the spended time size of path A BD and path A CD, and then the optimal path selecting spended time minimum.
Preferably, after described via node receives the first network destination node information comprising self information, no longer described first network destination node information is forwarded.The via node network of loop connecting can be prevented to be absorbed in endless loop state.
When there being first network terminal node described in equipment access, described first network terminal node forwards described device discovery message to described equipment; After described equipment receives described device discovery message, to described Controlling vertex feedback device information; Described Controlling vertex receives described facility information and stores.Described equipment is such as intelligent refrigerator, desk lamp or air-conditioning etc.
Optionally, the active of described equipment or the passive mode of operation leaving described network is also comprised; The mode of operation that described equipment initiatively leaves described network is: described first network terminal node, to described Controlling vertex transmitting apparatus leave message, after described Controlling vertex receives described leave message, deletes described facility information; The passive mode of operation leaving described network of described equipment is: described Controlling vertex sends query statement with the time cycle of presetting to described first network terminal node, described first network terminal node receives the backward described Controlling vertex of described query statement and replys the response message preset, when described Controlling vertex does not receive any response message or the response message that receives is improper response message, then delete described facility information.
Refer to Fig. 4, be shown as intelligent house network system of the present invention modular structure schematic diagram in one embodiment, described intelligent house network system 1 comprises Controlling vertex 14, second network terminal node 13, via node 12 and first network terminal node 11.
Described first network terminal node 11, adds after network to Web Publishing first network destination node information; Described first network destination node information such as comprises the address, timestamp field, node type etc. of described first network terminal node 11, and described node is such as CAN node.
Described via node 12, receives described first network destination node information, issues described first network destination node information after adding the information of self in described first network destination node information;
Described second network terminal node 13, receives the described first network destination node information from described via node 12 and it is reported to Controlling vertex 14;
Described Controlling vertex 14, according to described first network destination node information, calculates the routing information of the described first network terminal node 11 of access and stores described routing information, and finding message according to described routing information to described network transmitting apparatus;
Preferably, described Controlling vertex 14 can be software node or hardware node, when it is hardware, can be smart mobile phone or panel computer etc.Preferably, described via node is at least 3, and makeup ring mesh network connects.Preferably, described via node 13 is at least 3, and makeup ring mesh network connects.Described routing information is more than 2, as shown in Figure 3, for via node network of the present invention structural representation in one embodiment, comprise four via nodes, makeup ring mesh network, be respectively A, B, C, and D, described via node D is receiving described first network destination node information, issue after adding the information of self, after via node C and B receives the information from described via node D, forward respectively to described via node A after adding the information of self, after described via node A receives the information from described via node B and C, issue after adding the information of self.Described second network terminal node 13 receives the described first network destination node information from described via node A and it is reported to Controlling vertex, described Controlling vertex 14 is according to the timestamp field in described first network destination node information, calculate the spended time in each path of the described first network terminal node of access, and the path selecting spended time minimum sends described device discovery message, such as by comparing the spended time size of path A BD and path A CD, and then the optimal path selecting spended time minimum.
Preferably, after described via node 14 receives the first network destination node information comprising self information, no longer described first network destination node information is forwarded.The via node network of loop connecting can be prevented to be absorbed in endless loop state.
When there being first network terminal node 11 described in equipment access, described first network terminal node 11 forwards described device discovery message to described equipment; After described equipment receives described device discovery message, to described Controlling vertex 14 feedback device information; Described facility information is such as device descriptive information and the service description information of described equipment.Described Controlling vertex 14 receives described facility information and stores.Described equipment is such as intelligent refrigerator, desk lamp or air-conditioning etc.
Optionally, the active of described equipment or the passive mode of operation leaving described network is also comprised; The mode of operation that described equipment initiatively leaves described network is: described first network terminal node 11, to described Controlling vertex transmitting apparatus leave message, after described Controlling vertex 14 receives described leave message, deletes described facility information; The passive mode of operation leaving described network of described equipment is: described Controlling vertex 14 sends query statement with the time cycle of presetting to described first network terminal node 11, described first network terminal node 11 receives the backward described Controlling vertex 14 of described query statement and replys the response message preset, when described Controlling vertex 14 does not receive any response message or the response message that receives is improper response message, then delete described facility information.
In sum, a kind of intelligent home network automatic device discovery method of the present invention and network system, automatically can identify and add the equipment of new access network, realize the zero configuration networking of intelligent home network, intelligent home network is made to become dynamic group net from static networking, save manual operation cost, the intellectuality etc. of networking flexibility, internet security, network stabilization and network all has a distinct increment.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.