Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method, an apparatus and a system for joint defense of smart home, which can solve the abnormality occurring in home in time, reduce the economic loss of users, and improve the intelligence and practicability of joint defense of home.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides an intelligent home joint defense method, which comprises the following steps:
after receiving a joint defense user query request message of a terminal, searching a corresponding terminal to be queried according to a user identifier to be queried carried in the query request message, and mutually setting the searched terminal to be queried and the terminal as a joint defense terminal;
when the alarm information of the family equipment of the joint defense terminal is received, the alarm information is notified to the corresponding user of the joint defense terminal according to the grade information corresponding to the alarm information.
In the above solution, after the searched terminal to be queried and the terminal are set as joint defense terminals, the method further includes:
setting level information of alarm information of the household equipment, and setting receiving user information of the alarm information according to the level information of the alarm information; the receiving user is the user of the terminal and the user corresponding to the joint defense terminal of the terminal.
In the above scheme, the method further comprises:
the joint defense terminal monitors the working state of the household equipment through a sensor arranged on the household equipment and acquires alarm information generated by the household equipment through the sensor.
In the above scheme, the setting of the receiving user information of the alarm information according to the level information of the alarm information includes:
when the level of the alarm information is low or the like, the receiving user of the alarm information is the user of the terminal sending the alarm information;
when the level of the alarm information is medium, the receiving users of the alarm information are the users of the terminal sending the alarm information and the set partial joint defense terminal of the terminal;
when the level of the alarm information is high, the receiving users of the alarm information are the terminals sending the alarm information and the users of all joint defense terminals of the terminals.
In the above solution, before the searched terminal to be queried and the terminal are set as joint defense terminals, the method further includes:
and sending a joint defense user adding request to the user of the terminal to be inquired, and setting the terminal to be inquired and the terminal as a joint defense terminal after receiving a response message of the user of the terminal to be inquired for agreeing to add.
The invention also provides an intelligent home joint defense device, which comprises: the device comprises a first receiving module, a searching module, a setting module, a second receiving module and a notification module; wherein,
the first receiving module is used for receiving a joint defense user inquiry request message of a terminal;
the search module is used for searching the corresponding terminal to be inquired according to the user identification to be inquired carried in the inquiry request message;
the setting module is used for setting the searched terminal to be inquired and the terminal as a joint defense terminal;
the second receiving module is used for receiving the alarm information of the household equipment of the joint defense terminal;
and the notification module is used for notifying the alarm information to the corresponding joint defense terminal user according to the grade information corresponding to the alarm information.
In the above scheme, the setting module is further configured to set level information of the warning information of the home device, and set user information of the receiving of the warning information according to the level information of the warning information; the receiving user is the user of the terminal and the user corresponding to the joint defense terminal of the terminal.
In the above scheme, the device further includes a monitoring and acquiring module, configured to monitor a working state of the home device through a sensor disposed on the home device, and acquire alarm information generated by the home device.
In the above scheme, the setting module is further configured to set a receiving user of the alarm information as a user of a terminal that sends the alarm information when the level of the alarm information is low or the like;
when the level of the alarm information is medium, setting a receiving user of the alarm information as a terminal for sending the alarm information and a user of a part of joint defense terminals of the terminal;
and when the grade of the alarm information is high, setting the receiving user of the alarm information as the terminal sending the alarm information and the users of all joint defense terminals of the terminal.
In the above scheme, the device further includes a first transmission module, configured to send a joint defense user adding request to the user of the terminal to be queried, and trigger the setting module after receiving a response message agreeing to add from the user of the terminal to be queried.
The invention also provides an intelligent home joint defense method, which comprises the following steps:
receiving a user identifier to be inquired of a joint defense user input by a user, and sending an inquiry request message carrying the user identifier to be inquired to an intelligent home application platform;
and monitoring the working state of the household equipment, and sending alarm information generated by the household equipment to the intelligent household application platform.
In the above solution, after sending the query request message carrying the to-be-queried user identifier, the method further includes:
and receiving and outputting the online state information of the user to be inquired returned by the intelligent household application platform.
The invention also provides an intelligent home joint defense device, which comprises: a second transmission module and a monitoring and transmission module; wherein,
the second transmission module is used for receiving a user identifier to be inquired of a joint defense user input by a user and sending an inquiry request message carrying the user identifier to be inquired to the intelligent home application platform;
and the monitoring and transmission module is used for monitoring the working state of the household equipment and sending the alarm information generated by the household equipment to the intelligent household application platform.
In the above scheme, the apparatus further comprises: and the receiving and outputting module is used for receiving and outputting the online state information of the user to be inquired, which is returned by the intelligent household application platform.
The invention also provides an intelligent home joint defense system, which comprises: the intelligent home joint defense device of any preceding, and the intelligent home joint defense device of any preceding.
According to the intelligent home joint defense method, the intelligent home joint defense device and the intelligent home joint defense system, after a platform side receives a joint defense user inquiry request message of a terminal, a corresponding terminal to be inquired is searched according to a user identification to be inquired carried in the inquiry request message, and the searched terminal to be inquired and the terminal are mutually set as the joint defense terminal; when the platform side receives the warning information of the household equipment of the joint defense terminal, the warning information is notified to the corresponding user of the joint defense terminal according to the grade information corresponding to the warning information. By utilizing the technical scheme of the invention, a plurality of families close to each other in the area can be used as joint defense users, when abnormal conditions such as gas leakage and stranger intrusion in the family occur in the family of any user at the joint defense terminal, and when no person is in the family, other users in the joint defense relation can help to solve the abnormality, so that the abnormality can be effectively solved in time, the economic loss brought to the user by the abnormality is reduced, and the intellectualization and the practicability of the home joint defense are improved.
Detailed Description
The invention discloses an intelligent home joint defense method, as shown in fig. 1, the method comprises the following steps:
step 11: after receiving a joint defense user query request message of a terminal, an intelligent home application platform (platform side in the invention) searches a corresponding terminal to be queried according to a user identifier to be queried carried in the query request message, and mutually sets the searched terminal to be queried and the terminal as a joint defense terminal.
In the description of the present embodiment, the description will be made in units of households.
When a user (family) of a current terminal wants to establish a relationship of a joint defense user with a user of a terminal to be inquired (a terminal in an adjacent family), a family gateway side receives a user identification to be inquired input by the current user and sends an inquiry request message carrying the user identification to be inquired to a platform side, the platform side searches the terminal to be inquired corresponding to the user identification to be inquired, when the terminal to be inquired is searched, a joint defense user adding request is sent to the user to be inquired, and after a response message of the user agreeing to add is received, the terminal to be inquired and the terminal of the current user are mutually set as the joint defense terminal, namely, the user of the current terminal and the user of the terminal to be inquired are mutually in the relationship of the joint defense user at the moment.
The user identifier to be queried may be unique identifier information used by the user to be queried when registering a network, such as a name, an Internet Protocol (IP) number, a home gateway ID number (ID, Identity), and the like of the user to be queried.
The platform side sets corresponding grade information and receiving user information corresponding to the grade information for the warning information of the household equipment; wherein the receiving user comprises: the method comprises the steps of a user of a current terminal and a user corresponding to a joint defense terminal of the current terminal. Specifically, as shown in table 1:
alarm information |
Grade |
User receiving alarm |
The lamp is not turned off on time |
Low grade |
Household user with electric lamp not turned off on time |
Gas leakage |
Medium and high grade |
Household user with gas leakage and neighbor users thereof |
Intruder into stranger at home |
High, etc |
All joint defense users |
TABLE 1
As can be seen from table 1, when the level of the alarm information is low or the like, the receiving user of the alarm information may be set as a user who transmits the alarm information to the current terminal on the platform side.
When the level of the alarm information is medium or medium, the receiving user of the alarm information can be set to be the user who sends the alarm information to the current terminal at the platform side and the user of a part of joint defense terminals of the current terminal.
When the level of the alarm information is high, the receiving user of the alarm information can be set to be the user who sends the alarm information to the current terminal at the platform side and the users of all joint defense terminals of the current terminal. Wherein, the receiving user corresponding to the warning information is flexibly set according to the will of the user and the actual living environment.
Here, the contents shown in table 1 are only an example, and do not represent all cases of the level information and the received user information corresponding to the level information, and the contents set in table 1 may be set by the user according to the actual needs of the user.
Step 12: when receiving the warning information of the household equipment of the joint defense terminal, the platform side informs the warning information to the corresponding user of the joint defense terminal according to the grade information corresponding to the warning information.
The joint defense terminal monitors the working state of the household equipment through a sensor or an infrared module arranged on the household equipment, acquires alarm information generated by the household equipment through the sensor or the infrared module and sends the alarm information to the platform side.
And the platform side receives the alarm information, inquires the alarm level corresponding to the alarm information in the table 1, and sends the alarm information to a corresponding receiving user according to the set receiving user information of the alarm information.
Here, the alarm information is usually sent to the corresponding receiving user by means of short message, mail, voice, and the like.
Here, it is general to set a low level of alarm information to be sent only to the user who has the abnormality at home; sending the medium-level alarm information to the user with the abnormality and the neighboring neighbor users; sending the high-grade alarm to all joint defense users; can be set according to the actual requirements of users and the living environment thereof. In addition, the alarm with low grade can be accumulated to N (N is a positive integer) and then sent to the corresponding user; the alarm information is set to be sent to the corresponding user immediately after the abnormity occurs, and in addition, the alarm information can be set to be sent to the corresponding user after a certain time is prolonged.
In the embodiment of the present invention, the terminal may be a home gateway, or a Device configured with a client supporting the joint defense function, such as a Personal computer, a Personal Digital Assistant (PDA), a Personal network Access Device (IPAD), and the like, and the terminals may communicate with the platform side through the client installed in the terminals; the terminal is provided with a human-computer interaction interface.
Fig. 2 is a diagram of a specific embodiment of the intelligent home joint defense method of the present invention, and the present invention is further described with reference to fig. 2 by taking a home gateway in which a user of a current terminal is a user a and a terminal to be queried is a user B as an example.
Step 201: the user A wants to establish a joint defense user relationship with the user B, inputs a user identifier of the user B, specifically a home gateway ID of the user B, at a home gateway side, and packages a joint defense user query request message carrying the identifier into a message to be sent to a platform side.
Step 202: the platform side analyzes the user identification in the joint defense user query request message, searches whether the online terminal with the user identification exists in the peripheral area of the user A or not, and executes the step 204 when the online terminal with the user identification exists; otherwise step 203 is performed.
Step 203: the current processing flow is ended.
Step 204: the platform side sends a joint defense user adding request to the user B, and after receiving a response message of the user B agreeing to add the joint defense request, the current terminal, the home gateway of the user A and the home gateway of the user B are set as joint defense terminals, and the user A and the user B become joint defense users.
Here, when the platform searches for the user B, the searched online status information about the user B, such as the name of the user B, the network IP, the gateway ID, and the like, may also be sent to the home gateway side of the user a, and the home gateway side of the user a receives and displays the information, so as to facilitate manual confirmation and viewing of the user a.
Step 205: the platform side sets the level information as shown in table 1 and the receiving user information corresponding to the level information for all alarms that may occur to the home device.
If the receiving users of the medium alarm of gas leakage are set as a user A and a user B; the receiving user who sets the low alarm that the electric lamp is not turned off on time is only user a, etc.
Step 206: the home gateway of the user A monitors the working state of the home equipment of the user A through a sensor arranged on the home equipment, acquires alarm information corresponding to the abnormity when the abnormity of the home equipment is monitored, and sends the alarm information to the platform side after packaging.
Step 207: and the platform side analyzes the alarm information and determines the grade of the alarm information.
Step 208: and sending the medium alarm information of gas leakage to the user A and the user B corresponding to the grade according to the determined grade of the alarm information.
The alarm information can be sent to the user A and the user B in a short message mode, an email mode or a voice mode.
The embodiment is a description of an intelligent home joint defense method between two users, namely a user a and a user B, and the joint defense method between a plurality of users is similar to the above description, and is not described here again. Due to the sequential arrangement of houses in villages and towns, every ten adjacent families or twenty adjacent families can be in a joint defense relationship. Aiming at the gas leakage abnormality at home of the user A, even if the user A cannot timely return to home for processing, the user B at home or other joint defense users can help the user A to timely solve the abnormality, so that the economic loss of the user A is reduced, and the mutual assistance spirit between the neighborhood and the lining is reflected.
Based on the above intelligent home joint defense method, the present invention further describes an intelligent home joint defense apparatus, as shown in fig. 3, the apparatus includes: a first receiving module 10, a searching module 11, a setting module 12, a second receiving module 13 and a notification module 14; wherein,
the first receiving module 10 is configured to receive a joint defense user query request message of a terminal;
the search module 11 is configured to search a corresponding terminal to be queried according to the user identifier to be queried carried in the query request message;
the setting module 12 is configured to set the searched terminal to be queried and the terminal as a joint defense terminal;
the second receiving module 13 is configured to receive alarm information of the home device of the joint defense terminal;
the notifying module 14 is configured to notify the warning information to a user of a corresponding joint defense terminal according to the level information corresponding to the warning information.
Further, as shown in fig. 3 and 4, the apparatus further includes: a first transmission module 16, a second transmission module 20, a receiving and output module 21, a monitoring and transmission module 22; wherein,
the second transmission module 20 is configured to receive a user identifier to be queried input by a user of a current terminal, package a joint defense user query request message carrying the identifier into a message, and send the message to the first receiving module 10.
Correspondingly, the first receiving module 10 is configured to receive and analyze the joint defense user query request message carrying the user identifier to be queried in the message, and trigger the searching module 11.
The search module 11 is configured to search whether an on-network terminal having the identifier exists in a peripheral network of the current terminal, trigger the setting module 12 when the on-network terminal having the identifier exists, and set the searched terminal having the identifier and the current terminal as a joint defense terminal by the setting module 12, that is, a user of the current terminal and a user of the terminal having the identifier are mutual joint defense users.
Here, when the search module 11 searches for the terminal with the identifier, the first transmission module 16 may further send a joint defense user adding request to the terminal with the identifier, and after receiving a response message of agreeing to add the joint defense request returned by the user of the terminal with the identifier, trigger the setting module 12.
When the search module 10 searches for the terminal with the identifier, the first transmission module 16 sends the searched online status information of the user related to the terminal with the identifier, such as the name, gateway ID, and network IP of the user, to the receiving and outputting module 21, and the receiving and outputting module 21 is configured to receive and display the information, so as to facilitate manual confirmation and viewing.
The user identifier to be queried may be unique identifier information used by the user to be queried when registering a network, such as a name, an IP number, a home gateway ID number, and the like of the user to be queried.
As shown in table 1, the setting module 12 is further configured to set level information of the warning information of the home device, and set user information of receiving the warning information according to the level information of the warning information; the receiving users are users of the current terminal and users corresponding to the joint defense terminal of the current terminal; specifically, when the level of the alarm information is low or the like, the receiving user of the alarm information is set as the user of the terminal that sends the alarm information to the first receiving module 10; when the level of the alarm information is medium, setting a receiving user of the alarm information as a user of a terminal for sending the alarm information to the first receiving module 10 and a part of joint defense terminals of the terminal; when the level of the alarm information is high, the receiving user of the alarm information is set to be the user who sends the alarm information to the terminal of the first receiving module 10 and all joint defense terminals of the terminal.
The monitoring and transmitting module 22 is configured to monitor abnormalities such as gas leakage and lamp failure in time occurring in the home equipment through a sensor or an infrared module disposed on the home equipment, acquire alarm information corresponding to the abnormalities through the sensor or the infrared module, and send the alarm information to the second receiving module 13.
Correspondingly, the second receiving module 13 is further configured to receive and analyze the alarm information, and trigger the notifying module 14.
The notification module 14 is further configured to send the level information corresponding to the warning information to a receiving user corresponding to the level in a short message manner, an email manner, or a voice manner.
In the embodiment of the invention, the terminal can be a home gateway or a device such as a personal computer, a PDA, an IPAD and the like configured with a client supporting the joint defense function, and the terminals can communicate with the platform side through the client installed on the terminals; the terminal is provided with a human-computer interaction interface.
The first receiving module 10, the searching module 11, the setting module 12, the second receiving module 13, the notification module 14 and the first transmission module 16 are all located on the side of the intelligent home application platform; the second transmission module 20, the receiving and outputting module 21, and the monitoring and transmitting module 22 are located at a joint defense terminal side, such as a home gateway side.
Meanwhile, the invention also discloses an intelligent home joint defense system comprising the intelligent home joint defense device, and further the system comprises: the system comprises an intelligent home platform and a terminal; the terminal can be a home gateway;
wherein, intelligent house platform including: the first receiving module 10, the searching module 11, the setting module 12, the second receiving module 13, the notifying module 14, and the first transmitting module 16 shown in fig. 3;
the terminal is configured with a client supporting the joint defense function, and specifically comprises: such as the second transmission module 20, the receiving and outputting module 21, and the monitoring and transmitting module 22 shown in fig. 4.
Those skilled in the art will understand that the implementation functions of each processing module in the intelligent home joint defense device shown in fig. 3 and 4 can be understood by referring to the related description of the intelligent home joint defense method. Those skilled in the art will understand that the functions of the processing modules in the smart home joint defense apparatus shown in fig. 3 and 4 can be implemented by a program running on a processor, and can also be implemented by a specific logic circuit.
According to the intelligent home joint defense method, the intelligent home joint defense device and the intelligent home joint defense system, after a platform side receives a joint defense user inquiry request message of a terminal, a corresponding terminal to be inquired is searched according to a user identification to be inquired carried in the inquiry request message, and the searched terminal to be inquired and the terminal are mutually set as the joint defense terminal; when the platform side receives the warning information of the household equipment of the joint defense terminal, the warning information is notified to the corresponding user of the joint defense terminal according to the grade information corresponding to the warning information. By utilizing the technical scheme of the invention, a plurality of families close to each other in the area can be used as joint defense users, when abnormal conditions such as gas leakage and stranger intrusion in the family occur in the family of any joint defense terminal user, and when no person is in the family of the user, other users in the joint defense relation can help to solve the abnormal conditions, so that the abnormal conditions can be timely and effectively solved, the economic loss brought to the user by the abnormal conditions is further reduced, and the intellectualization and the practicability of the household joint defense are improved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.