Disclosure of Invention
The application provides an intelligent home early warning system, method and device, which are used for early warning surrounding dangers for users of intelligent homes and improving the reliability of intelligent home early warning.
The application also discloses intelligent house early warning system includes: alarm sensor, warning gateway and cloud service platform, wherein:
the alarm sensor is an alarm node device and is used for sending out a danger alarm to the alarm gateway when an alarm event is detected;
the alarm gateway is used for receiving an alarm sent by the alarm sensor, uploading corresponding alarm information to the cloud service platform according to the alarm, and broadcasting an early warning data packet to other alarm gateways around in a wireless mode;
the cloud service platform is used for receiving alarm information from the alarm gateway, and generating early warning information according to the alarm information and pushing the early warning information to other alarm gateways around the alarm position.
Preferably, the alarm gateway is further configured to upload an identification ID of the alarm gateway and a location set by a user to the cloud service platform;
and the cloud service platform is also used for confirming the position of the corresponding user according to the alarm gateway ID in the received alarm information and pushing the early warning information to other alarm gateways around the position.
Preferably, the alarm gateway is configured to broadcast the encrypted early warning data packet to other alarm gateways around through an RF433/WIFI/Zigbee wireless protocol, where a key used for encryption is a key negotiated in advance between the alarm gateways.
Preferably, the alarm gateway is further configured to receive an early warning data packet broadcast by the alarm gateway around, receive early warning information pushed by the cloud service platform, combine the early warning data packet with the early warning information, confirm that there is a danger around, and send a danger prompt to a user corresponding to the alarm gateway.
The application also discloses an intelligent home warning method, which comprises the following steps:
the alarm gateway receives an alarm from the alarm sensor, uploads corresponding alarm information to the cloud service platform according to the alarm, and broadcasts an early warning data packet to other alarm gateways around in a wireless mode;
and after the alarm information is received by the cloud service platform, the cloud service platform generates early warning information and pushes the early warning information to other alarm gateways around the alarm position.
Preferably, the method further comprises:
the alarm gateway uploads the ID of the alarm gateway and the position set by the user to the cloud service platform;
the alarm information comprises the ID of the alarm gateway, and the ID of the alarm gateway is used for confirming the position of the corresponding user by the cloud service platform so as to push early warning information to other alarm gateways around the position.
Preferably, the alarm gateway broadcasts the encrypted early warning data packet to other alarm gateways around through an RF433/WIFI/Zigbee wireless protocol, wherein the encryption key is a key negotiated in advance between the alarm gateways.
Preferably, the method further comprises:
the warning gateway receives warning data packets broadcasted by surrounding warning gateways, receives warning information pushed by a cloud service platform, combines the warning data packets with the warning information, confirms that danger exists around the warning gateway, and sends danger prompts to users corresponding to the warning gateway.
The application also discloses an alarm gateway device, including: a processor and a communication module, the processor to:
receiving an alarm from an alarm sensor through the communication module, and generating alarm information according to the alarm;
uploading the alarm information to a cloud service platform through the communication module;
and broadcasting the early warning data packet to other surrounding warning gateways in a wireless mode through the communication module.
Preferably, the processor is specifically configured to:
and uploading the ID of the user and the position set by the user to the cloud service platform through the communication module.
Preferably, the processor is specifically configured to:
and broadcasting the encrypted early warning data packet to other surrounding alarm gateways through the communication module based on an RF433/WIFI/Zigbee wireless protocol, wherein the encryption key is a key negotiated in advance between the alarm gateways.
Preferably, the processor is further configured to:
the communication module is used for receiving early warning data packets broadcasted by surrounding alarm gateways, the communication module is used for receiving early warning information pushed by a cloud service platform, the early warning data packets and the early warning information are combined to confirm surrounding danger, and the communication module is used for sending danger prompts to users corresponding to the alarm gateways.
The application also discloses a non-volatile computer-readable storage medium storing instructions which, when executed by a processor, cause the processor to perform the steps of the smart home warning method as described above.
The application also discloses an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
According to the technical scheme, the early warning method and the early warning system provided by the application utilize the signal attenuation characteristic of the wireless data packet, the wireless early warning data packet is sent to other surrounding alarm gateways by the alarm gateway which finds the alarm, and the early warning information sent by the cloud service platform based on the alarm occurrence position is combined, so that whether danger exists around a user can be accurately predicted, and missing report, misinformation and hacker attack are effectively avoided.
The early warning scheme provided by the invention can enable a user to predict that danger exists around under the condition that the sensor of the user does not give an alarm, so that preparation measures are made in advance, life safety is prevented, and an important ring is added for future intelligent home and happy and comfortable life.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below by referring to the accompanying drawings and examples.
The invention provides an intelligent home warning system, as shown in fig. 1, the warning system comprises: the system comprises an alarm sensor, an alarm gateway and a cloud service platform; wherein:
1) alarm sensors are alarm node devices that issue hazard alerts to alarm gateways when an alarm event is detected.
The alarm sensor can be a smoke alarm, a water immersion sensor, an acousto-optic sensor and the like, and when corresponding alarm events such as smoke, water immersion, sound, light and the like are detected, an alarm is sent to the alarm gateway based on wireless protocols such as RF433/WIFI/Zigbee and the like.
2) The alarm gateway is used for receiving an alarm sent by the alarm sensor, uploading corresponding alarm information to the cloud service platform according to the alarm, and sending early warning data packets to other alarm gateways around in the ways of RF433/WIFI/Zigbee and the like.
In order to prevent hackers from attacking and cracking the early warning data packet and attacking the early warning network, encryption keys can be negotiated among the alarm gateways in advance, and the early warning data packet is encrypted by the encryption keys and then sent.
In addition, the alarm gateway can also be used for receiving early warning information pushed by the cloud service platform and controlling the state of the alarm sensor. The alarm gateway can be various current intelligent gateway devices supporting RF433/WIFI/Zigbee and other wireless protocols.
3) The cloud service platform is used for receiving alarm information from the alarm gateway, and generating early warning information according to the alarm information and pushing the early warning information to other alarm gateways around the alarm position through a network.
The cloud service platform may be various cloud servers. After receiving the alarm information from the alarm gateway, the cloud service platform can also push the alarm information to the APP of the terminal of the relevant user through the network.
In the invention, when an alarm occurs, the alarm gateway broadcasts the early warning data packet to other alarm gateways around by adopting wireless modes such as RF433/WIFI/Zigbee and the like, and the signal attenuation characteristic of the wireless broadcast packet is utilized to ensure that the alarm gateway which can receive the early warning data packet is basically controlled within 100 meters of a square circle, thereby realizing targeted early warning for users around the alarm. In addition, in order to enhance the reliability of early warning, the cloud service platform also sends early warning information to the alarm gateways around the position based on the position where the alarm occurs, so that the alarm gateways receiving the early warning data packet and the early warning information can combine the two information to further confirm the reliability of the alarm information.
Based on the system shown in fig. 1, the invention provides an intelligent home early warning method, which is applied to an alarm gateway and comprises the following steps:
the alarm gateway receives an alarm from the alarm sensor, uploads corresponding alarm information to the cloud service platform according to the alarm, and broadcasts an early warning data packet to other alarm gateways around in a wireless mode;
and after the alarm information is received by the cloud service platform, the cloud service platform generates early warning information and pushes the early warning information to other alarm gateways around the alarm position.
Preferably, the alarm gateway uploads the ID of the alarm gateway and the position set by the user to the cloud service platform;
the alarm information comprises the ID of the alarm gateway, and the ID of the alarm gateway is used for confirming the position of the corresponding user by the cloud service platform so as to push early warning information to other alarm gateways around the position.
Preferably, the alarm gateway broadcasts the encrypted early warning data packet to other alarm gateways around through an RF433/WIFI/Zigbee wireless protocol, wherein the encryption key is a key negotiated in advance between the alarm gateways.
Preferably, the method may further include: the warning gateway receives warning data packets broadcasted by surrounding warning gateways, receives warning information pushed by a cloud service platform, combines the warning data packets with the warning information, confirms that danger exists around the warning gateway, and sends danger prompts to users corresponding to the warning gateway.
In practical application, when a user needs to use the alarm gateway, the position of the user is preset through an APP on a terminal (if the position is not set, the default IP address for logging in by using the alarm gateway is confirmed), and the ID (product ID) of the user and the position set by the user are uploaded to a cloud service platform by the alarm gateway. When a fire disaster in a user home is detected by the smoke sensor, the alarm gateway of the user receives an alarm sent by the smoke sensor, reports alarm information (specifically, a fire alarm event) to the cloud service platform, and informs the owner of the alarm. Meanwhile, the alarm gateway sends encrypted early warning data packets to the surroundings in a wireless mode such as WIFI and RF433, and due to the fact that the transmission capability of wireless equipment such as WIFI and RF433 is limited, the early warning data packets can be received only by other alarm gateways which are close to each other (basically within 100 meters of a square circle). Meanwhile, after receiving the alarm information, the cloud service platform searches the corresponding position information of the user through the ID of the alarm gateway and issues early warning information to the alarm gateways around the user. And the surrounding alarm gateways combine the early warning data packet received from the alarm gateway of the user and the early warning information issued by the cloud service platform to confirm that the surrounding danger exists, and immediately send out an alarm to the corresponding users to remind the users of withdrawing.
The flow of the smart home warning system performing the warning in the embodiment of the present invention is shown in fig. 2, which illustrates the following:
s100, when a user uses the alarm gateway (also called a gateway host, an alarm host and the like) for the first time, the APP is used for adding the alarm sensor, and then the APP reminds the user to set the position information of the alarm gateway (if the user is not set, the network IP address is used by default to confirm the basic position information). And after the alarm gateway is connected with the network, the product ID and the position information are reported to the cloud service platform.
S101, when a fire disaster occurs in a user home, the fire disaster is reported to an alarm gateway after being detected by a smoke sensor, the alarm gateway immediately sends an alarm, meanwhile, on-site alarm information is reported to a cloud service platform, and an encrypted early warning data packet is sent in a WIFI/RF433/ZigBee mode and the like.
S102, after receiving the alarm information, the cloud platform confirms the specific position of the alarm gateway through the product ID of the alarm gateway, searches the alarm gateways around the position, and pushes the early warning information to the alarm gateways around the position. Meanwhile, the APP of the terminal of the user corresponding to the alarm is pushed to alarm information through the network.
And S103, the alarm gateways around the fire position receive the surrounding data packets, decrypt the data packets and confirm the data packets as early warning data packets.
And S104, the alarm gateways around the fire position confirm that danger exists around according to the early warning information pushed by the cloud service platform and the received wireless early warning data packet.
And S105, after confirming the danger, the alarm gateways around the fire position respectively send out an alarm to remind corresponding users to pay attention to the surrounding danger.
Based on the technical scheme provided by the invention, the method can be further refined, and the cooperative processing of the alarm system and the cloud service is provided for different systems and scenes, for example, after an accident occurs in a cell or a public place, a sensor on a user receives a wireless early warning data packet, and the early warning information received by a mobile phone APP is combined to confirm that a danger exists around the user.
The processing executed by the alarm gateway of the present invention is shown in fig. 3, and includes:
when an alarm occurs around, receiving an encrypted wireless early warning data packet from a surrounding alarm gateway, and receiving corresponding early warning information from a cloud service platform; then, confirming surrounding danger by combining the wireless early warning data packet and early warning information pushed by the cloud service platform, and sending an alarm signal indicating that the surrounding danger exists to a user;
when the alarm sensor related to the alarm gateway gives an alarm, alarm information is reported to the cloud service platform, and an alarm signal is sent to a user.
On the basis of the above technical solution, the present application further provides an alarm gateway device, whose composition structure is shown in fig. 4, and includes: a processor and a communication module, the processor to:
receiving an alarm from an alarm sensor through the communication module, and generating alarm information according to the alarm;
uploading the alarm information to a cloud service platform through the communication module;
and broadcasting the early warning data packet to other surrounding warning gateways in a wireless mode through the communication module.
Preferably, the processor is specifically configured to: and uploading the ID of the user and the position set by the user to the cloud service platform through the communication module.
Preferably, the processor is specifically configured to: and broadcasting the encrypted early warning data packet to other surrounding alarm gateways through the communication module based on an RF433/WIFI/Zigbee wireless protocol, wherein the encryption key is a key negotiated in advance between the alarm gateways.
Preferably, the processor is further configured to: the communication module is used for receiving early warning data packets broadcasted by surrounding alarm gateways, the communication module is used for receiving early warning information pushed by a cloud service platform, the early warning data packets and the early warning information are combined to confirm surrounding danger, and the communication module is used for sending danger prompts to users corresponding to the alarm gateways.
Under the condition that the intelligent home is widely popularized, many residents of buildings have alarm gateways. By adopting the intelligent home warning technical scheme provided by the invention, after a user gives an abnormal warning, other users confirm whether dangerous conditions are around or not through the warning data packet sent by the abnormal warning gateway and the warning information sent by the cloud service, thereby reminding the user of evacuating in advance. According to the scheme, whether danger exists around a user is accurately predicted by mainly combining position early warning information of cloud service through the signal attenuation characteristic of a wireless data packet (the wireless equipment has limited transmission capacity, and the user capable of receiving the early warning data packet is basically within 100 meters square and round), so that false alarm, missed alarm and illegal attack are effectively avoided.
On the basis of the above scheme, the present application further provides a non-volatile computer-readable storage medium, where the non-volatile computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the processor executes the steps of the smart home warning method described above.
Further, the present application provides an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.