The content of the invention
The technical problems to be solved by the invention are:A kind of data visualization integritied monitoring and controling system of smart home is provided,
The overall operation conditions of intelligent domestic system can quickly be understood.
In order to solve the above technical problems, the present invention is adopted the following technical scheme that:
A kind of data visualization integritied monitoring and controling system of smart home, the monitoring system includes:Server, client;
The server includes data acquisition module, data analysis module, message sink and sending module;The client
Including message delivery and reception module, data analysis and process module;
The data acquisition module depends on database, is used to control gateway that its running status periodically is reported into clothes
Business device, while recording all intelligent household terminal equipment for having networked under gateway;For the intelligent household terminal for having networked
Equipment, data acquisition module also requires that it periodically reports running state information, and gateway and its subordinate's facility information are preserved
To database;
The data analysis module according to the information being collected into data acquisition module, while according to the difference of each user
It is required that, distributed according to setting weights, calculate the overall scoring of intelligent domestic system;
The message sink and sending module are used to receive the message of the acquisition request system scoring of client, and are returned
It is multiple;The reception of message uses MQTT agreements with transmission;
The message delivery and reception module is used to receive the message of the acquisition request system scoring of client, and is returned
It is multiple;The reception of message uses MQTT agreements with transmission;
The data analysis and process module is used to replying message according to server, and according to local computing warning message
And unread message, so as to calculate final system scoring;
The equipment that the data acquisition module is relied on includes:PM2.5 detectors, temperature-humidity monitor, intrusion detector,
Area network safety detector;Intrusion detector includes door sensor equipment, Infrared Detectors, and area network safety detector includes smoke alarm, combustible gas
Body alarm, Water immersion detector;
Server needs the running status of monitoring device simultaneously, once discovering device goes offline, device damage, need also exist for by
Information is distributed by weights, charges to visualization data;Here, it is necessary to distinguish different device damages, such as:The equipment of security type
Damage, common device damage, the tired device damage of sensor, the weights shared by them are different;
For specific user, to user profile, account safety information equally by server statistics, is checked, according to weights point
Match somebody with somebody, by unsafe factor, be converted into visual data;Including:Software version is too low, and user cipher intensity is too low, outer net
Do not deployed troops on garrison duty under state;
Weights are distributed;Weights distribution uses subtraction, and following event often occurs one, i.e., subtracts this from gross score
Fraction, last remaining as final intelligent domestic system scoring;Assuming that a certain must be scored at x, then when condition meets, x
=1, conversely, x=0;
Weights are allocated as follows by the influence degree according to different event for intelligent domestic system:
(1) software version is too low:0.02;Reason:Software version has backward compatible characteristic, and too low version can cause
Many New functions cannot be used, and old bug is not solved, and is belonging to influence what user used, nonessential;
(2) user cipher intensity is too low:0.01;Reason:Cipher Strength is too low to have potential potential safety hazard, may hold very much
Easily attacked, so as to cause the paralysis of intelligent domestic system;
(3) unread message is had:0.02;Reason:Reminding user has untreated event, belongs to important event;
(4) security type equipment alarm is had first:0.2;Reason:Infrared Detectors is alarmed, and representing may someone's invasion, door sensor
Similarly, water logging alarm means family leak, and smog alarm means that family may have occurred fire, combustible gas alarm for alarm
Mean gas leak;These are all belonging to major accident, and in addition to the intelligent domestic system urgent precautionary measures in itself, being must
The information that must be informed the user, particularly if user stays out;
(5) it is non-to have security type equipment alarm first:0.05;Reason:If user have received warning message, next
Warning message as just one notice effect, warning message first is not played a part of, so only arrange 5 points;
(6) PM2.5 detectors are lacked:0.01;Reason:PM2.5 detectors belong to nonessential equipment, improve whole intelligence man
Occupy the monitoring effect of system;
(7) Temperature and Humidity device:0.01;Reason:With PM2.5 detectors, in being intelligent domestic system, the life of people is allowed
The finer equipment of environment, but it is not required;
(8) without intrusion detector:0.05;Reason:The intrusion alarm system of intelligent domestic system, belongs to critically important peace
Full monitoring device;
(9) without area network safety detector:0.05;Reason:The household safe monitoring device of intelligent domestic system;
(10) gateway is damaged:0.3;Reason:Gateway is the core of intelligent domestic system, if gateway is damaged, All Alerts will
User can not be reached, all devices are uncontrollable, whole intelligent domestic system will trigger state of paralysis;All this account for greatly
Proportion, it is necessary to notify that user changes gateway in time;
(11) security type device damage:0.05;Reason:Such device damage, the warning function of intelligent domestic system will be in
State of paralysis;
(12) conventional equipment is damaged:0.01;Reason:Device damage will cause the device-dependent scene, control, automation control
Function processed cannot be realized normally;
(13) sensor kind equipment is damaged:0.01;Reason:Such device damage will cause the system cannot to monitor home environment;
(14) node device goes offline:0.01;Reason:The device-dependent function will be unable to realize, it is necessary to notify to use after going offline
Family, the equipment is networked again;
(15) do not laid under outer net state:0.2;Reason:After laying system is opened, intrusion detector and area network safety detector just meeting
Normal work, pushes warning message to user;Under outer net state --- leave home, it is necessary to which unlatching lays, and otherwise there will be important
Security of the lives and property hidden danger;
The acquisition of above-mentioned each weights by client and server realize, in above-mentioned item, (3), (4), (5) by client meter
Calculate, remaining is calculated by server;
Assuming that being respectively x1~x15 from (1)~score (15), then the message delivery and reception module of client is to service
Device ask, and waiting for server reply, what is got must be divided into A;The computing formula of A is:
A=100* (1*0.02+x2*0.01+x6*0.01+x7*0.01+x8*0.05+x9*0.05+x10*0.3+x 11*
0.05+x12*0.01+x13*0.01+x14*0.01+x15*0.2)。
The data analysis and process module of client, calculates local score B;
The computing formula of B is:B=100* (x3*0.02*N+x4*0.2+x5*0.05*M)
Wherein, N is the number of unread message, and number range is:1~5;M is the message number of repetition of alarms, span
For:1~5;
Can finally draw, intelligent domestic system is scored at:100-A-B;If this score value is less than 10 points, according to 10
Divide and calculate;
Simultaneously for:(6), (7), (8), (9) this 4, user can voluntarily select to ignore this option, ignore item and give tacit consent to corresponding x
Score value is 0, makes scoring function more flexibleization, embodies the personalization under different user varying environment.
A kind of data visualization integritied monitoring and controling system of smart home, the monitoring system includes:Server, client;
The server includes data acquisition module, data analysis module, message sink and sending module;The client
Including message delivery and reception module, data analysis and process module;
The data acquisition module is used to control gateway that its running status periodically is reported into server, while recording gateway
Under all intelligent household terminal equipment for having networked;For the intelligent household terminal equipment for having networked, data acquisition module
Also require that it periodically reports running state information, and gateway and its subordinate's facility information are saved in database;
The data analysis module according to the information being collected into data acquisition module, while according to the difference of each user
It is required that, distributed according to setting weights, calculate the overall scoring of intelligent domestic system;
The message sink and sending module are used to receive the message of the acquisition request system scoring of client, and are returned
It is multiple;The reception of message uses MQTT agreements with transmission;
The message delivery and reception module is used to receive the message of the acquisition request system scoring of client, and is returned
It is multiple;The reception of message uses MQTT agreements with transmission;
The data analysis and process module is used to replying message according to server, and according to local computing warning message
And unread message, so as to calculate final system scoring.
Used as a preferred embodiment of the present invention, server also automatically updates module comprising a weights;Server can root
According to the hobby demand of the behavioural analysis user of user, so that more rational weights allocation proportion is provided for different user, from
And more reasonably visual control is made to the intelligent domestic system of user;
The big data analysis module of server can analyze the behavior of user;According to the height of frequency, incline for weights
Skew adjustment;The specific method of salary distribution is as follows:
Record respectively (6), (7), (8), (9) behavior number C6, C7, C8, the C9 of item user, are sorted, to total with numerical values recited
Weights Q carries out weights distribution;Here minimum weights are specified for 0.01, except non-user is actively ignored, otherwise will not actively will be a certain
Weights are set to 0;Assuming that being according to the new sequences after resequencing from small to large:C1, C2, C3, C4 (C1, C2, C3, C4 and C6,
C7, C8, but C9 is unordered one-to-one relation), then the weights after redistributing are respectively:
Note C=C1+C2+C3+C4;
Q1=Q*C1/C;
Q2=Q*C2/C;
Q3=Q*C3/C;
Q4=Q-Q6-Q7-Q8;
Weights automatically update the weights after module will can be redistributed and notify data analysis module, while being saved in data
Storehouse.
Used as a preferred embodiment of the present invention, the monitoring system also includes:Weight selected module, is used to allow user certainly
The main every corresponding weights of selection;It is implemented as follows:
Client offer selection interface, including (2)~(9) have 8 options altogether;Remainder is intelligent domestic system stabilization
Necessary part is run, or is the alarm behavior of device damage, do not allow user to change;
Wherein (2)~(9) each single item, the weights scope of user's selection is 0~40, but all total value has to after selection
Equal to 40;
Client notifies server according to the selection of user by client message sending module;The message of server connects
Data analysis module can be passed data to after being received message by module, data analysis module protects new weights distribution condition
Database is stored to, while this modification is applied into current system monitoring scoring, i.e., data analysis module can be according to new weights
The overall scoring of system is recalculated in distribution, and notifies client.As a preferred embodiment of the present invention, the monitoring system
Also include:Weights automatically update module, are used to obtain the hobby or usage scenario of user, are set automatically according to correspondence hobby or scene
Fixed corresponding weights.
Used as a preferred embodiment of the present invention, the monitoring system also includes:Weight selected module, is used to allow user certainly
The main every corresponding weights of selection.
Used as a preferred embodiment of the present invention, the data acquisition module includes:PM2.5 detectors, temperature and humidity monitor
Device, intrusion detector, area network safety detector;Intrusion detector includes door sensor equipment, Infrared Detectors, and area network safety detector includes smog
Alarm, flammable gas alarm, Water immersion detector;
Server needs the running status of monitoring device simultaneously, once discovering device goes offline, device damage, need also exist for by
Information is distributed by weights, charges to visualization data;Here, it is necessary to distinguish different device damages, such as:The equipment of security type
Damage, common device damage, the tired device damage of sensor, the weights shared by them are different;
For specific user, to user profile, account safety information equally by server statistics, is checked, according to weights point
Match somebody with somebody, by unsafe factor, be converted into visual data;Including:Software version is too low, and user cipher intensity is too low, outer net
Do not deployed troops on garrison duty under state;
Weights are distributed;Weights distribution uses subtraction, and following event often occurs one, i.e., subtracts this from gross score
Fraction, last remaining as final intelligent domestic system scoring;Assuming that a certain must be scored at x, then when condition meets, x
=1, conversely, x=0;
Weights are allocated as follows by the influence degree according to different event for intelligent domestic system:
(1) software version is too low:0.02;Reason:Software version has backward compatible characteristic, and too low version can cause
Many New functions cannot be used, and old bug is not solved, and is belonging to influence what user used, nonessential;
(2) user cipher intensity is too low:0.01;Reason:Cipher Strength is too low to have potential potential safety hazard, may hold very much
Easily attacked, so as to cause the paralysis of intelligent domestic system;
(3) unread message is had:0.02;Reason:Reminding user has untreated event, belongs to important event;
(4) security type equipment alarm is had first:0.2;Reason:Infrared Detectors is alarmed, and representing may someone's invasion, door sensor
Similarly, water logging alarm means family leak, and smog alarm means that family may have occurred fire, combustible gas alarm for alarm
Mean gas leak;These are all belonging to major accident, and in addition to the intelligent domestic system urgent precautionary measures in itself, being must
The information that must be informed the user, particularly if user stays out;
(5) it is non-to have security type equipment alarm first:0.05;Reason:If user have received warning message, next
Warning message as just one notice effect, warning message first is not played a part of, so only arrange 5 points;
(6) PM2.5 detectors are lacked:0.01;Reason:PM2.5 detectors belong to nonessential equipment, are to whole intelligence man
Occupy making something perfect even more perfect for system;
(7) Temperature and Humidity device:0.01;Reason:With PM2.5 detectors, in being intelligent domestic system, the life of people is allowed
The finer equipment of environment, but it is not required;
(8) without intrusion detector:0.05;Reason:The intrusion alarm system of intelligent domestic system, belongs to critically important peace
Full monitoring device;
(9) without area network safety detector:0.05;Reason:The household safe monitoring device of intelligent domestic system;
(10) gateway is damaged:0.3;Reason:Gateway is the core of intelligent domestic system, if gateway is damaged, All Alerts will
User can not be reached, all devices are uncontrollable, whole intelligent domestic system will trigger state of paralysis;All this account for greatly
Proportion, it is necessary to notify that user changes gateway in time;
(11) security type device damage:0.05;Reason:Such device damage, the warning function of intelligent domestic system will be in
State of paralysis;
(12) conventional equipment is damaged:0.01;Reason:Device damage will cause the device-dependent scene, control, automation control
Function processed cannot be realized normally;
(13) sensor kind equipment is damaged:0.01;Reason:Such device damage will cause the system cannot to monitor home environment;
(14) node device goes offline:0.01;Reason:The device-dependent function will be unable to realize, it is necessary to notify to use after going offline
Family, the equipment is networked again;
(15) do not laid under outer net state:0.2;Reason:After laying system is opened, intrusion detector and area network safety detector just meeting
Normal work, pushes warning message to user;Under outer net state --- leave home, it is necessary to which unlatching lays, and otherwise there will be important
Security of the lives and property hidden danger;
The acquisition of above-mentioned each weights by client and server realize, in above-mentioned item, (3), (4), (5) by client meter
Calculate, remaining is calculated by server;
Assuming that being respectively x1~x15 from (1)~score (15), then the message delivery and reception module of client is to service
Device ask, and waiting for server reply, what is got must be divided into A;The computing formula of A is:
A=100* (1*0.02+x2*0.01+x6*0.01+x7*0.01+x8*0.05+x9*0.05+x10*0.3+x 11*
0.05+x12*0.01+x13*0.01+x14*0.01+x15*0.2)。
The data analysis and process module of client, calculates local score B;
The computing formula of B is:B=100* (x3*0.02*N+x4*0.2+x5*0.05*M)
Wherein, N is the number of unread message, and number range is:1~5;M is the message number of repetition of alarms, span
For:1~5;Finally draw, intelligent domestic system is scored at:100-A-B;If this score value is less than 10 points, according to 10 points of meters
Calculate.
The beneficial effects of the present invention are:The data visualization integritied monitoring and controling system of smart home proposed by the present invention, phase
Compared with traditional display system unexpected message one by one, visual data are more beneficial for user intuitively, quickly understand intelligent family
Occupy the overall operation conditions of system.Accomplish to know what's what, then specifically check again where problem, targetedly handle it,
Avoid and have ignored the loss that important information brings because of unexpected.The present invention represents the form of intelligent domestic system fraction
To user, operation conditions is got information about.
Embodiment one
Fig. 1 is referred to, present invention is disclosed a kind of data visualization integritied monitoring and controling system of smart home, the monitoring system
System includes:Server 1, client 2;
The server 1 includes data acquisition module 11, data analysis module 12, message sink and sending module 13;Institute
Stating client 2 includes message delivery and reception module 21, data analysis and process module 22;
The data acquisition module 11 depends on database (for example:PostgreSQL, red i s, mongodb,
Mysq l etc., the present embodiment uses postgreSQL, therefore hereafter replaces database using postgreSQL), it is used to control
Its running status is periodically reported to server by gateway processed, while all intelligent household terminals for having networked set under recording gateway
It is standby;For the intelligent household terminal equipment for having networked, data acquisition module also requires that it periodically reports running state information,
And gateway and its subordinate's facility information are saved in postgreSQL;
The data analysis module 12 according to the information being collected into data acquisition module, while according to each user not
With requiring, distributed according to setting weights, calculate the overall scoring of intelligent domestic system;
The message sink and sending module 13 are used to receive the message of the acquisition request system scoring of client, and give
Reply;The reception of message uses MQTT agreements with transmission;
The message delivery and reception module 21 is used to receive the message of the acquisition request system scoring of client, and gives
Reply;The reception of message uses MQTT agreements with transmission;
The data analysis and process module 22 is used to replying message according to server, and is disappeared according to local computing alarm
Breath and unread message, so as to calculate final system scoring;
The data acquisition module includes:PM2.5 detectors, temperature-humidity monitor, intrusion detector, area network safety detector;
Intrusion detector includes door sensor equipment, Infrared Detectors, and area network safety detector includes smoke alarm, flammable gas alarm, water
Leaching detector;
Server needs the running status of monitoring device simultaneously, once discovering device goes offline, device damage, need also exist for by
Information is distributed by weights, charges to visualization data;Here, it is necessary to distinguish different device damages, such as:The equipment of security type
Damage, common device damage, the tired device damage of sensor, the weights shared by them are different;
For specific user, to user profile, account safety information equally by server statistics, is checked, according to weights point
Match somebody with somebody, by unsafe factor, be converted into visual data;Including:Software version is too low, and user cipher intensity is too low, outer net
Do not deployed troops on garrison duty under state;
Weights are distributed;Weights distribution uses subtraction, and following event often occurs one, i.e., subtracts this from gross score
Fraction, last remaining as final intelligent domestic system scoring;Assuming that a certain must be scored at x, then when condition meets, x
=1, conversely, x=0;
Weights are allocated as follows by the influence degree according to different event for intelligent domestic system:
(1) software version is too low:0.02;Reason:Software version has backward compatible characteristic, and too low version can cause
Many New functions cannot be used, and old bug is not solved, and is belonging to influence what user used, nonessential;
(2) user cipher intensity is too low:0.01;Reason:Cipher Strength is too low to have potential potential safety hazard, may hold very much
Easily attacked, so as to cause the paralysis of intelligent domestic system;
(3) unread message is had:0.02;Reason:Reminding user has untreated event, belongs to important event;
(4) security type equipment alarm is had first:0.2;Reason:Infrared Detectors is alarmed, and representing may someone's invasion, door sensor
Similarly, water logging alarm means family leak, and smog alarm means that family may have occurred fire, combustible gas alarm for alarm
Mean gas leak;These are all belonging to major accident, and in addition to the intelligent domestic system urgent precautionary measures in itself, being must
The information that must be informed the user, particularly if user stays out;
(5) it is non-to have security type equipment alarm first:0.05;Reason:If user have received warning message, next
Warning message as just one notice effect, warning message first is not played a part of, so only arrange 5 points;
(6) PM2.5 detectors are lacked:0.01;Reason:PM2.5 detectors belong to nonessential equipment, are to whole intelligence man
Occupy making something perfect even more perfect for system;
(7) Temperature and Humidity device:0.01;Reason:With PM2.5 detectors, in being intelligent domestic system, the life of people is allowed
The finer equipment of environment, but it is not required;
(8) without intrusion detector:0.05;Reason:The intrusion alarm system of intelligent domestic system, belongs to critically important peace
Full monitoring device;
(9) without area network safety detector:0.05;Reason:The household safe monitoring device of intelligent domestic system;
(10) gateway is damaged:0.3;Reason:Gateway is the core of intelligent domestic system, if gateway is damaged, All Alerts will
User can not be reached, all devices are uncontrollable, whole intelligent domestic system will trigger state of paralysis;All this account for greatly
Proportion, it is necessary to notify that user changes gateway in time;
(11) security type device damage:0.05;Reason:Such device damage, the warning function of intelligent domestic system will be in
State of paralysis;
(12) conventional equipment is damaged:0.01;Reason:Device damage will cause the device-dependent scene, control, automation control
Function processed cannot be realized normally;
(13) sensor kind equipment is damaged:0.01;Reason:Such device damage will cause the system cannot to monitor home environment;
(14) node device goes offline:0.01;Reason:The device-dependent function will be unable to realize, it is necessary to notify to use after going offline
Family, the equipment is networked again;
(15) do not laid under outer net state:0.2;Reason:After laying system is opened, intrusion detector and area network safety detector just meeting
Normal work, pushes warning message to user;Under outer net state --- leave home, it is necessary to which unlatching lays, and otherwise there will be important
Security of the lives and property hidden danger;
The acquisition of above-mentioned each weights by client and server realize, in above-mentioned item, (3), (4), (5) by client meter
Calculate, remaining is calculated by server;
Assuming that being respectively x1~x15 from (1)~score (15), then the message delivery and reception module of client is to service
Device ask, and waiting for server reply, what is got must be divided into A;The computing formula of A is:
A=100* (1*0.02+x2*0.01+x6*0.01+x7*0.01+x8*0.05+x9*0.05+x10*0.3+x 11*
0.05+x12*0.01+x13*0.01+x14*0.01+x15*0.2)。
The data analysis and process module of client, calculates local score B;
The computing formula of B is:B=100* (x3*0.02*N+x4*0.2+x5*0.05*M)
Wherein, N is the number of unread message, and number range is:1~5;M is the message number of repetition of alarms, span
For:1~5;
Can finally draw, intelligent domestic system is scored at:100-A-B;If this score value is less than 10 points, according to 10
Divide and calculate;
Simultaneously for:(6), (7), (8), (9) this 4, user can voluntarily select to ignore this option, ignore item and give tacit consent to corresponding x
Score value is 0, makes scoring function more flexibleization, embodies the personalization under different user varying environment.
Additionally, in one embodiment of the present invention, server also automatically updates module comprising a weights;Server meeting
The hobby demand of the behavioural analysis user according to user, so that more rational weights allocation proportion is provided for different user,
So as to the intelligent domestic system to user makes more reasonably visual control;
The big data analysis module of server can analyze the behavior of user;According to the height of frequency, incline for weights
Skew adjustment;The specific method of salary distribution is as follows:
Record respectively (6), (7), (8), (9) behavior number C6, C7, C8, the C9 of item user, are sorted, to total with numerical values recited
Weights Q carries out weights distribution;Here minimum weights are specified for 0.01, except non-user is actively ignored, otherwise will not actively will be a certain
Weights are set to 0;Assuming that being according to the new sequences after resequencing from small to large:C1, C2, C3, C4 (C1, C2, C3, C4 and C6,
C7, C8, but C9 is unordered one-to-one relation), then the weights after redistributing are respectively:
Note C=C1+C2+C3+C4;
Q1=Q*C1/C;
Q2=Q*C2/C;
Q3=Q*C3/C;
Q4=Q-Q6-Q7-Q8;
Weights automatically update the weights after module will can be redistributed and notify data analysis module, while being saved in data
Storehouse.
In one embodiment of the present invention, the monitoring system also includes:Weight selected module, is used to make user autonomous
Select every corresponding weights;It is implemented as follows:
Client offer selection interface, including (2)~(9) have 8 options altogether;Remainder is intelligent domestic system stabilization
Necessary part is run, or is the alarm behavior of device damage, do not allow user to change;
Wherein (2)~(9) each single item, the weights scope of user's selection is 0~40, but all total value has to after selection
Equal to 40;
Client notifies server according to the selection of user by client message sending module;The message of server connects
Data analysis module can be passed data to after being received message by module, data analysis module protects new weights distribution condition
Database is stored to, while this modification is applied into current system monitoring scoring, i.e., data analysis module can be according to new weights
The overall scoring of system is recalculated in distribution, and notifies client.