A kind of network topology structure of Smart Home communication system and method for building up thereof
Technical field
The present invention relates to Smart Home field, particularly a kind of network topology structure of Smart Home communication system and method for building up thereof.
Background technology
Communication protocol between current intelligent household terminal has a variety of, such as RS485, X-10, ZigBee and Z-wave etc.The communication process of different agreements is also different, such as the communication protocol having be self with fixing transmitter code, by code stream journey being completed to the foundation of intelligent home network, the shortcoming of this network is unstable, easy repeated code, a little less than antijamming capability.Have plenty of from setting up vertical network, by the physical I D of different node definitions, and nearest Principle of Communication (RSSI signal strength signal intensity), and the network of spontaneous foundation, the shortcoming of this network is some complexity, if directly used in the family, the network problem occurring, user is not easy the link of the problem of judging, and user need to participate in networking flow process, manually setting certain node is router or terminal, need to load what application etc.Therefore, the networking method of existing Smart Home communication network all cannot reach user's demand.
Summary of the invention
The object of the invention is: the network topology structure and the method for building up thereof that propose a kind of Smart Home communication system, with the network topology structure that solves existing Smart Home communication system when running into communication issue, problem identificatioin link, and the problem of repairing fast network link fast and accurately.
The technical solution adopted for the present invention to solve the technical problems is:
A network topology structure for Smart Home communication system, consists of user side, server end, telegon end, router side and terminal;
Wherein, described user side carries out interactive communication by http protocol and described server end, for gathering facility information and the geographical location information of described telegon end, described router side and described terminal;
Described server end communicates by HTTPS agreement and described telegon end, for storing data information with carry out network node analysis;
Described telegon end and described router side communicate by one or more communications and described router side, and can obtain data message from server end, under send instructions;
Described router side is divided into again: the first router end and the second router end; Described the first router end and the direct communication of described telegon end, it is father node that described the second router end be take described the first router end, described the second router end and described terminal communicate by one or more communications and described controlled terminal, described the first router end and the second router end, for forwarding or carrying out instruction or reporting information, can not directly send instruction;
Described terminal can only be for carrying out instruction or reporting information.
Further, described user side is one to have loaded the intelligent terminal of user function software, and described intelligent terminal specifically can adopt smart mobile phone, computer or panel computer.
Further, described telegon end Wei Yi family control device.
Further, described router side and described terminal are Intellectualized Switchgear.
A method for building up for the network topology structure of Smart Home communication system, described Smart Home communication system comprises: client, server, family's control device and home intelligent terminal; Described method for building up comprises the steps:
Steps A: the information gathering of client, specifically comprises: user is by equipment list information and the geographical location information of family's control device described in client typing and home intelligent terminal, and information and personal code work and password are sent to described server;
Step B: the generation of the Information Authentication of server end and multidimensional list, specifically comprise: described server authentication personal code work and password, if by checking, equipment list information and the geographical location information of described family control device and home intelligent terminal are saved to database, and generate a multidimensional list corresponding with this user;
Step C: the generation of the cyberrelationship list of server end; Specifically comprise: described server reads described multidimensional list, by with database in the comparison of the house type numerical map stored, the two-dimensional coordinate system that family's control device is initial point is take in foundation, and be described family control device and described home intelligent terminal distribution network role and definite set membership according to described two-dimensional coordinate, generate a cyberrelationship list;
Described distribution network role, comprise the steps: the network role of family's control device to be defined as telegon, under same room with them numbering, the network role of the home intelligent terminal of first numbering is defined as to router, the network role of all the other home intelligent terminals is defined as to terminal;
Described definite set membership, comprises the steps:
The router that is less than N rice from described telegon is defined as to the first router;
For remaining router, will be made as its father node with self the first router in same quadrant;
For terminal, by the router definition recently and in same quadrant is made as its father node with self;
Step D: the acquisition of information of family's control device end and sending to the information of home intelligent terminal, specifically comprise: open described family control device, the physical I D that described family control device sends self to described server carries out authentication, if by checking, from the database of described server, read described cyberrelationship list, and the network role in described cyberrelationship list and set membership information are sent to described home intelligent terminal;
Step e: family's control device end is to the configuration of the set membership of home intelligent terminal; Specifically comprise: described family control device will be defined as telegon by self according to the network role information in described network list, described home intelligent terminal is according to receiving network role information for self defining corresponding network role, and described family control device is configured to corresponding home intelligent terminal according to set membership information by the address information of father node;
Step F: the signal debugging of home intelligent terminal and the change of father node, specifically comprise: described home intelligent terminal communicates according to the network role and the set membership that configure, if find, communication intensity between two nodes is with default inconsistent, information is fed back to described family control device and carry out father node address change, network role remains unchanged.
Further, equipment list information and the geographical location information of described family control device and home intelligent terminal comprise: the numbering of place room number, home intelligent terminal and physical I D, home intelligent terminal equipment are to the distance of described family control device and the physical I D of described family control device.
Further, every row format of described multidimensional list is: the physical I D of room number, home intelligent terminal, the numbering of home intelligent terminal, home intelligent terminal are to the distance of family's control device.
The invention has the beneficial effects as follows: the network topology structure that adopts the method for the invention to set up, when in network, certain node goes wrong, user can obtain by the diagnostic program in server the communications status between each node, thereby problem identificatioin link, repairs accordingly accurately.
Accompanying drawing explanation
Fig. 1 is a kind of network topology structure figure of Smart Home communication system.
Fig. 2 is a kind of method for building up flow chart of network topology structure of Smart Home communication system.
Embodiment
In conjunction with the accompanying drawings, the present invention is further detailed explanation.
As shown in Figure 1, a kind of network topology structure of Smart Home communication system, consists of user side, server end, telegon end, router side and terminal;
Wherein, described user side carries out interactive communication by http protocol and described server end, for gathering facility information and the geographical location information of described telegon end, described router side and described terminal;
Described server end communicates by HTTPS agreement and described telegon end, for storing data information with carry out network node analysis;
Described telegon end and described router side communicate by one or more communications and described router side, and can obtain data message from server end, under send instructions;
Described router side is divided into again: the first router end and the second router end; Described the first router end and the direct communication of described telegon end, it is father node that described the second router end be take described the first router end, described the second router end and described terminal communicate by one or more communications and described controlled terminal, described the first router end and the second router end, for forwarding or carrying out instruction or reporting information, can not directly send instruction;
Described terminal can only be for carrying out instruction or reporting information.
Further, described user side is one to have loaded the intelligent terminal of user function software, and described intelligent terminal specifically can adopt smart mobile phone, computer or panel computer.
Further, family of described telegon end Wei Yi family control device.
Further, described router side and described controlled terminal are Intellectualized Switchgear.
What Fig. 2 showed is a kind of method for building up of network topology structure of Smart Home communication system, and described Smart Home communication system comprises: client, server, family's control device and home intelligent terminal; Described method for building up comprises the steps:
Steps A: the information gathering of client, specifically comprises: user is by equipment list information and the geographical location information of family's control device described in client typing and home intelligent terminal, and itself and personal code work and password are sent to described server; Equipment list information and the geographical location information of described family control device and home intelligent terminal comprise: the numbering of place room number, home intelligent terminal and physical I D, home intelligent terminal equipment are to the distance of described family control device and the physical I D of described family control device;
Step B: the generation of the Information Authentication of server end and multidimensional list, specifically comprise: described server authentication personal code work and password, if by checking, equipment list information and the geographical location information of described family control device and described home intelligent terminal are saved to database, and generate a multidimensional list corresponding with this user; Every row format of described multidimensional list is: the physical I D of room number, home intelligent terminal, the numbering of home intelligent terminal, home intelligent terminal are to the distance of family's control device;
Step C: the generation of the cyberrelationship list of server end; Specifically comprise: described server reads described multidimensional list, by with database in the comparison of the house type numerical map stored, the two-dimensional coordinate system that family's control device is initial point is take in foundation, and be described family control device and described home intelligent terminal distribution network role and definite set membership according to described two-dimensional coordinate, generate a cyberrelationship list;
Described distribution network role, comprise the steps: the network role of family's control device to be defined as telegon, under same room with them numbering, the network role of the home intelligent terminal of first numbering is defined as to router, the network role of all the other home intelligent terminals is defined as to terminal;
Described definite set membership, comprises the steps:
For all routers, the router that is less than 7 meters from described telegon is defined as to the first router;
For remaining router, will be made as its father node with self the first router in same quadrant;
For terminal, by the router definition recently and in same quadrant is made as its father node with self;
Step D: the acquisition of information of family's control device end and sending to the information of home intelligent terminal, specifically comprise: open described family control device, the physical I D that described family control device sends self to described server carries out authentication, if by checking, from the database of described server, read described cyberrelationship list, and the network role in described cyberrelationship list and set membership information are sent to described home intelligent terminal;
Step e: family's control device end is to the configuration of the set membership of home intelligent terminal; Specifically comprise: described family control device will be defined as telegon by self according to the network role information in described network list, described home intelligent terminal is according to receiving network role information for self defining corresponding network role, and described family control device is configured to corresponding home intelligent terminal according to set membership information by the address information of father node.
Step F: the signal debugging of home intelligent terminal and the change of father node, specifically comprise: described home intelligent terminal communicates according to the network role and the set membership that configure, if find, communication intensity between two nodes is with default inconsistent, information is fed back to described family control device and carry out father node address change, network role remains unchanged.
In the time of the normal work of intelligent home network, if user reflects that certain node work is undesired, user can submit by user interface the information of undesired node to server, when submitting to, need to there be personal code work and password, the numbering of abnormal node, then whether server is validated user by this personal code work and password authentification, if, remote diagnosis analysis module in server just according to the node serial number of submitting to as index, at lane database, find the address information of the father node that this node is corresponding, if this father node also has father node, also will be this father node information search out, until search out family's control device, then to family's control device, send the diagnostic message of these nodes, described diagnostic message comprises each address of node information and status enquiry instruction, family's control device issues status enquiry instruction to each node below again, these nodes are received after inquiry instruction, by the status information feedback front yard control device of going home, family's control device is obtained after these diagnostic messages, this diagnostic message is split into a plurality of instructions, and each node being asked is an independent instruction, by the state information of collecting, the mode by HTTPS sends to server to family's control device, server is deposited database by state information, the state information that remote diagnosis analysis module in server arrives according to data base querying, according to the node that principle analysis is gone wrong of reviewing in path, then the nodename of notifying user interface to go wrong in the mode of notice, and provide several possible restorative procedures.
User just very intuitively finds the node ging wrong by user interface like this, may be the node ging wrong itself just submitted to may be also its father node work is undesired causes, and according to the restorative procedure self-healing of prompting.
The above-described preferred embodiment of utilizing describes the present invention in detail, but not limits the scope of the invention.Those skilled in the art can make trickle change and adjustment by reading after the present invention, and the main idea of the present invention of will can yet be regarded as place, does not also depart from the spirit and scope of the present invention.