A kind of distributed sensor monitoring method and system based on speaker
Technical field
The present invention relates to the communications field more particularly to a kind of distributed sensor monitoring methods and system based on speaker.
Background technique
With the development of science and technology and Internet of Things it is universal, requirement of the people to living environment is higher and higher, i.e. people
It is hoped that there will be one comfortably, conveniently, safely and efficiently living environment spread out therewith with the rapid development of smart home technology
A series of intelligent sound box equipment is born, is brought great convenience to people's lives.Intelligent sound box is in smart home industry
It yields unusually brilliant results, greatly facilitates people's lives, also increase the enjoyment of life.
Intelligent sound box can be used in addition to having basic interactive voice and media play function, also embeddable various kinds of sensors
It reminds or the various abnormal conditions of alarm, such as smog, coal gas, theft etc..But these intelligent sound boxes be all will be built in sensor
In sound box, when sensor detects ambient enviroment, sound box shell has certain shielding to make the induction of sensor
With, therefore require that sensor precision is higher than general external sensor requirements in the environment, leads to higher cost, and
It since sound box is bulky, can only lay flat indoors, so the detection range of sensor is just by the limit of speaker placement region
System, and the data of a position can only be monitored, coverage shortcoming.
The patent of Publication No. CN106885332A discloses the regulation method, apparatus and speaker of a kind of indoor environment,
Wherein this method includes:Indoor indoor temperature information and/or humidity information are occupied where speaker detection speaker;Speaker judgement is indoor
Whether temperature information and/or humidity information meet preset condition;If it is determined that indoor temperature information and/or humidity information are not met
Preset condition, then speaker according to indoor temperature information and/or humidity information control corresponding household electrical appliance to indoor temperature and/
Or humidity is adjusted.The regulation method of the indoor environment of the embodiment of the present invention can be controlled according to room temperature, humidity condition
Corresponding household electrical appliances automatic adjustment room temperature and/or humidity, the user experience is improved.Although the program can use speaker to detect
Indoor temperature and humidity, and the temperature and humidity that corresponding household electrical appliances come in automatic regulation room can be controlled, but this method
Middle Temperature Humidity Sensor is still built in speaker, causes to the required precision height of Temperature Humidity Sensor at high cost, and is detected
Range is influenced by sound box shell and speaker placement location.
Summary of the invention
The purpose of the present invention is in view of the drawbacks of the prior art, provide a kind of distributed sensor monitoring based on speaker
Method and system, by speaker can monitoring distributed sensor real-time detection multiple positions data, and distributed sensing
Device can be placed freely, and detection range is not influenced by sound box and position.
In order to achieve the goal above, the present invention uses following technical scheme:
A kind of distributed sensor monitoring method based on speaker, including step:
S1. unlatching BLE function is established BLE with the distributed sensor for having turned on BLE function and is connect;
S2. the real time data of the distributed sensor detection is received;
S3. the real time data that the distributed sensor detects is sent to server.
It further, further include step after the step S3:
S4. judge whether to receive that the distributed sensor sends is abnormal situation signal, if so, jumping to step
Rapid S5;
S5. pass through abnormal conditions described in voice broadcast and send alert message to terminal device.
Further, the distributed sensor can sound when detecting abnormal conditions alarm and lights warning lamp.
Further, the terminal device can check the real-time number of the distributed sensor detection by the server
According to.
Further, the distributed sensor be integrated with acceleration transducer, smoke sensor device, luminance sensor, away from
From sensor, Temperature Humidity Sensor and carbon monoxide transducer;The distributed sensor is using sucker suction in wall, forms
Or other any adsorbable places.
Correspondingly, a kind of distributed sensor monitoring system based on speaker is also provided, including:
Link block is established, establishing BLE with the distributed sensor for having turned on BLE function for opening BLE function connect;
Receiving module, for receiving the real time data of the distributed sensor detection;
Sending module, the real time data for detecting the distributed sensor are sent to server.
Further, further include:
Judgment module, for judging whether to receive, the distributed sensor sent is abnormal situation signal;
Alarm module, for passing through abnormal conditions described in voice broadcast when being abnormal situation and sending alert message extremely
Terminal device.
Further, the distributed sensor can sound when detecting abnormal conditions alarm and lights warning lamp.
Further, the terminal device can check the real-time number of the distributed sensor detection by the server
According to.
Further, the distributed sensor be integrated with acceleration transducer, smoke sensor device, luminance sensor, away from
From sensor, Temperature Humidity Sensor and carbon monoxide transducer;The distributed sensor is using sucker suction in wall, forms
Or other any adsorbable places.
Compared with prior art, the present invention by speaker can monitoring distributed sensor real-time detection multiple positions number
According to, and distributed sensor can be placed freely, and detection range is not influenced by sound box and position, and distributed sensing
The required precision of device is not high, at low cost.
Detailed description of the invention
Fig. 1 is a kind of distributed sensor monitoring method flow chart based on speaker that embodiment one provides;
Fig. 2 is a kind of distributed sensor monitoring system structure chart based on speaker that embodiment one provides;
Fig. 3 is a kind of distributed sensor monitoring method flow chart based on speaker that embodiment two provides;
Fig. 4 is a kind of distributed sensor monitoring system structure chart based on speaker that embodiment two provides.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment
Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation
Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel
It is likely more complexity.
The present invention provides a kind of distributed sensor monitoring method based on speaker aiming at the defect of the prior art
And system, by speaker can monitoring distributed sensor real-time detection multiple positions data, and distributed sensor can
It freely places, detection range is not influenced by sound box and position, and the required precision of distributed sensor is not high, cost
It is low.
Embodiment one
The distributed sensor monitoring method based on speaker that the present embodiment provides a kind of, as shown in Figure 1, including step:
S11. unlatching BLE function is established BLE with the distributed sensor for having turned on BLE function and is connect;
S12. the real time data of the distributed sensor detection is received;
S13. the real time data that the distributed sensor detects is sent to server.
The executing subject of the distributed sensor monitoring method based on speaker of the present embodiment is intelligent sound box.
It should be noted that the intelligent sound box in the present embodiment is Android operation system, it is built-in with Bluetooth chip, is propped up
It holds BLE (Bluetooth Low Energy communication), built-in WIFI chip, wireless communication is supported, in the present embodiment in distributed sensor
It is equipped with Bluetooth chip, is supported BLE (Bluetooth Low Energy communication), connection is established by BLE and the intelligent sound box.
Specifically, the central apparatus that intelligent sound box is communicated as BLE first needs the distributed sensing with distribution throughout
Device establishes BLE connection, could carry out data transmission with the distributed sensor of distribution throughout, so intelligent sound box will be opened first
The BLE function of itself is opened, then the distributed sensor around scanning, at this time if distributed sensor has already turned on BLE function
Can, BLE can be established with it to the distributed sensor for having been switched on BLE function to intelligent sound box scanning and connect, so
All distributed sensors for opening BLE function can establish BLE with intelligent sound box and connect.
Further, the distributed sensor be integrated with acceleration transducer, smoke sensor device, luminance sensor, away from
From sensor, Temperature Humidity Sensor and carbon monoxide transducer, such distributed sensor can be achieved with a variety of detection function (
Shake detection function, fire detection function, Temperature and Humidity function etc.), for example, being integrated with acceleration transducer distributed sensing
Device can detect earthquake using acceleration transducer, because seismic wave can cause to vibrate in earthquake, will generate add at this time
Speed, acceleration transducer can detect the acceleration;Cigarette can be utilized by being integrated with smoke sensor device distributed sensor
Mist sensor detects whether that fire occurs.
Further, the distributed sensor is using sucker suction in wall, forms or other any adsorbable ground
Side.Specifically, the distributed sensor bottom is provided with sucker, it can be adsorbed anywhere using sucker in this way, side
Just the installation of distributed sensor, for example, the case where any each room at home can be distributed, detect each room.
It is established after BLE connect after the intelligent sound box and distribution distributed sensor throughout, intelligent sound box can
To receive real time data (such as indoor data of the Temperature and Humidity module, an indoor oxygen of the distributed sensor detection of distribution throughout
Change carbon content data etc.), such intelligent sound box can monitor distributed sensor everywhere in real time, understand temperature everywhere in real time
Humidity condition, carbon monoxide levels in air etc..
The intelligent sound box can be by the reality after receiving the real time data that the distributed sensor of distribution throughout detects
When data be sent to server.Further, terminal device can check the distributed sensor detection by the server
Real time data.
It should be noted that the intelligent sound box is wirelessly transferred with server by wireless network, specifically, described
Terminal device can be checked and be downloaded to the real time data about distributed sensor detection in server by APP, this
Sample user can check the real time data of distributed sensor detection in terminal device, and user is facilitated remotely to monitor.
Correspondingly, the present embodiment also provides a kind of distributed sensor monitoring system based on speaker, as shown in Fig. 2, packet
It includes:
Link block 11 is established, establishes BLE company with the distributed sensor for having turned on BLE function for opening BLE function
It connects;
Receiving module 12, for receiving the real time data of the distributed sensor detection;
Sending module 13, the real time data for detecting the distributed sensor are sent to server.
Further, the distributed sensor be integrated with acceleration transducer, smoke sensor device, luminance sensor, away from
From sensor, Temperature Humidity Sensor and carbon monoxide transducer.
Further, the distributed sensor is using sucker suction in wall, forms or other any adsorbable ground
Side.
Further, terminal device can check the real time data of the distributed sensor detection by the server.
The present embodiment by speaker can monitoring distributed sensor real-time detection multiple positions data, and it is distributed
Sensor can be placed freely, and detection range is not influenced by sound box and position, and the required precision of distributed sensor
It is not high, it is at low cost.
Embodiment two
The distributed sensor monitoring method based on speaker that the present embodiment provides a kind of, as described in Figure 3, including step:
S21. unlatching BLE function is established BLE with the distributed sensor for having turned on BLE function and is connect;
S22. the real time data of the distributed sensor detection is received;
S23. the real time data that the distributed sensor detects is sent to server;
S24. judge whether to receive that the distributed sensor sends is abnormal situation signal, if so, jumping to
Step S25;
S25. pass through abnormal conditions described in voice broadcast and send alert message to terminal device.
The executing subject of the distributed sensor monitoring method based on speaker of the present embodiment is intelligent sound box.
It should be noted that the intelligent sound box in the present embodiment is Android operation system, it is built-in with Bluetooth chip, is propped up
It holds BLE (Bluetooth Low Energy communication), built-in WIFI chip, wireless communication is supported, in the present embodiment in distributed sensor
It is equipped with Bluetooth chip, is supported BLE (Bluetooth Low Energy communication), connection is established by BLE and the intelligent sound box.
Specifically, the central apparatus that intelligent sound box is communicated as BLE first needs the distributed sensing with distribution throughout
Device establishes BLE connection, could carry out data transmission with the distributed sensor of distribution throughout, so intelligent sound box will be opened first
The BLE function of itself is opened, then the distributed sensor around scanning, at this time if distributed sensor has already turned on BLE function
Can, BLE can be established with it to the distributed sensor for having been switched on BLE function to intelligent sound box scanning and connect, so
All distributed sensors for opening BLE function can establish BLE with intelligent sound box and connect.
Further, the distributed sensor be integrated with acceleration transducer, smoke sensor device, luminance sensor, away from
From sensor, Temperature Humidity Sensor and carbon monoxide transducer, such distributed sensor can be achieved with a variety of detection function (
Shake detection function, fire detection function, Temperature and Humidity function etc.), for example, being integrated with acceleration transducer distributed sensing
Device can detect earthquake using acceleration transducer, because seismic wave can cause to vibrate in earthquake, will generate add at this time
Speed, acceleration transducer can detect the acceleration;Cigarette can be utilized by being integrated with smoke sensor device distributed sensor
Mist sensor detects whether that fire occurs.
Further, the distributed sensor is using sucker suction in wall, forms or other any adsorbable ground
Side.Specifically, the distributed sensor bottom is provided with sucker, it can be adsorbed anywhere using sucker in this way, side
Just the installation of distributed sensor, for example, the case where any each room at home can be distributed, detect each room.
It is established after BLE connect after the intelligent sound box and distribution distributed sensor throughout, intelligent sound box can
To receive real time data (such as indoor data of the Temperature and Humidity module, an indoor oxygen of the distributed sensor detection of distribution throughout
Change carbon content data etc.), such intelligent sound box can monitor distributed sensor everywhere in real time, understand temperature everywhere in real time
Humidity condition, carbon monoxide levels in air etc..
The intelligent sound box can be by the reality after receiving the real time data that the distributed sensor of distribution throughout detects
When data be sent to server.Further, terminal device can check the distributed sensor detection by the server
Real time data.
It should be noted that the intelligent sound box is wirelessly transferred with server by wireless network, specifically, described
Terminal device is checked and is downloaded to the real time data about distributed sensor detection in server by APP, in this way
User can check the real time data of distributed sensor detection in terminal device, and user is facilitated remotely to monitor.
The intelligent sound box of the present embodiment also determines whether to receive that the distributed sensor sends is abnormal feelings
Condition signal.
Specifically, the abnormal conditions include temperature and humidity exception, it is excessively high that fire, CO in Air solubility occurs
Deng, user can preset the range of each data value in the distributed sensor according to the actual situation, then by distribution pass
The value of each data in the real time data of sensor detection is compared with the range for presetting each data value, if all numbers
According to all within the scope of default value, then there is no abnormal conditions, and if wherein there is the value of an item data not in present count
It is worth in range, then explanation there are abnormal conditions, and the abnormal conditions will be sent to intelligent sound box by distributed sensor at this time.Example
Such as, user's preset range of preset carbon monoxide solubility in the distributed sensor is 0mg/m3-10mg/m3, and such as
The solubility of the carbon monoxide detected in fruit distributed sensor is meant that around the distributed sensor to more than 10mg/m3
Carbon monoxide solubility is excessively high, abnormal conditions occurs.
In case of the abnormal conditions, then the intelligent sound box by abnormal conditions described in voice broadcast and will be sent
Alert message is to terminal device, such as the carbon monoxide solubility of distributed sensor detection being distributed in kitchen is excessively high, intelligence
Speaker will broadcast " carbon monoxide solubility is excessively high in kitchen, it may occur however that gas leak " by voice.User can in this way
Corresponding counter-measure is taken to obtain abnormal conditions at the first time, and intelligent sound box can also will be described when being abnormal
Abnormal conditions are sent to terminal device, and the user near intelligent sound box equipment can not be obtained by terminal device in this way
To relevant abnormalities situation, corresponding counter-measure can also be taken in time, avoids unnecessary loss.
Further, the distributed sensor can sound when detecting abnormal conditions alarm and lights warning lamp.This
Sample is abnormal situation if can also learn at the first time when user is near distributed sensor, is answered accordingly with taking
To measure.
Correspondingly, the present embodiment also provides a kind of distributed sensor monitoring system based on speaker, as shown in figure 4, packet
It includes:
Link block 21 is established, establishes BLE company with the distributed sensor for having turned on BLE function for opening BLE function
It connects;
Receiving module 22, for receiving the real time data of the distributed sensor detection;
Sending module 23, the real time data for detecting the distributed sensor are sent to server;
Judgment module 24, for judging whether to receive, the distributed sensor sent is abnormal situation signal;
Alarm module 25, for passing through abnormal conditions described in voice broadcast when being abnormal situation and sending alert message
To terminal device.
Further, the distributed sensor be integrated with acceleration transducer, smoke sensor device, luminance sensor, away from
From sensor, Temperature Humidity Sensor and carbon monoxide transducer.
Further, the distributed sensor is using sucker suction in wall, forms or other any adsorbable ground
Side.
Further, terminal device can check the real time data of the distributed sensor detection by the server.
Further, the distributed sensor can sound when detecting abnormal conditions alarm and lights warning lamp.
The present embodiment by speaker can monitoring distributed sensor real-time detection multiple positions data, and it is distributed
Sensor can be placed freely, and detection range is not influenced by sound box and position, and the required precision of distributed sensor
It is not high, it is at low cost, and when detecting abnormal conditions can by speaker, distributed sensor, three kinds of modes of terminal device into
Row alarm, allow user first be in take counter-measure, promote user experience.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.