One kind is from bed detection system
Technical field
The invention belongs to ancillary equipment fields of sleeping, more particularly, to one kind from bed detection system.
Background technique
With the continuous improvement of civilization of human society degree, people increasingly pay close attention to the development and health of itself, and sleep is made
Essential a part for people's lives, is increasingly taken seriously.
On Vehicles Collected from Market, there is a series of dormant smartwatch of detections and bracelet, the principle followed are usual
All it is:It is detected simultaneously by the bluetooth equipment of smartwatch or bracelet detection user's heart rate or activity or both, with this
To judge whether user is in sleep state.But detection heart rate or activity are simultaneously not accurate enough, are easy to appear false judgment, and
It can not judge whether user sleeps in fixed-site, can not also judge user in non-sleep state whether from bed.
The patent of publication number CN107157444A provides a kind of sleep bracelet and its sleep monitor method, this method pass through
The heart rate value of user is monitored simultaneously and the generation during sleep acts, to accurately analyze the sleep state of user.This side
Method realizes the low power design of sleep bracelet, while also making sleep monitor more accurate, but is unable to judge accurately that user is non-to sleep
Whether from bed when dormancy state, it can not also judge whether user sleeps in fixed-site, and heart rate value can not accurately illustrate user
Sleep state, be easy to appear erroneous judgement.
The patent of publication number CN105513294A provides a kind of from bed intelligent early-warning system and its method for early warning, this method
Pressure signal is acquired by the way that pressure inductor is arranged in bed, issues alarm signal when pressure signal is less than given threshold.It should
Method can be issued more in time reminds from bed, but pressure inductor durability is not permanent enough, is easily damaged.
Summary of the invention
For the disadvantages described above and Improvement requirement of the prior art, the present invention provides one kind from bed detection method and system,
Its purpose is to provide a kind of more accurate from bed detection method and system, monitoring range of the existing technology is thus solved
It is extremely limited, and the technical issues of can not accurately determine from bed.
To achieve the above object, the present invention provides one kind from bed detection method, including step:
Receive the smartwatch of smartwatch detection and the linking number of indoor bluetooth equipment;
If linking number is different from initial number, judge from bed.
It further, further include step:
When linking number is identical as initial number, the smartwatch of receiving sensor detection and the indoor bluetooth having connected
The distance between equipment;
If exceeding initial value error range, judge from bed.
Further, it is also wrapped before the linking number of the smartwatch for receiving smartwatch detection and indoor bluetooth equipment
Include step:
The Heart Rate States for receiving smartwatch detection receive smartwatch and indoor bluetooth equipment in sleep state
Linking number is set as initial number.
Further, receiving sensor detection smartwatch between the indoor bluetooth equipment having connected at a distance from it
Before further include step:
Receive smartwatch detection Heart Rate States, in sleep state, receiving sensor detection smartwatch with
The distance between indoor bluetooth equipment of connection, is set as initial value.
Further, it is also wrapped before the linking number of the smartwatch for receiving smartwatch detection and indoor bluetooth equipment
Include step:
The Heart Rate States for receiving smartwatch detection then start to receive smartwatch and interior are blue in non-sleep state
The linking number of tooth equipment.
Correspondingly, a kind of system from bed detection is also provided, including:
First receiving module, for receiving the smartwatch of smartwatch detection and the linking number of indoor bluetooth equipment;
First judgment module, it is whether identical as initial number for judging linking number, if it is different, then judging from bed.
Further, further include:
Second receiving module, between the smartwatch detected for receiving sensor and the indoor bluetooth equipment having connected
Distance;
Second judgment module, for judging that whether in error range distance, if exceeding error range, is sentenced with initial value
Dialysis bed.
Further, further include:
Third receiving module, in sleep state, receives smartwatch for receiving the Heart Rate States of smartwatch detection
With the linking number of indoor bluetooth equipment;
First setting module, will be in sleep state, and the linking number of received smartwatch and indoor bluetooth equipment is set
It is set to initial number.
Further, further include:
4th receiving module, for receiving the Heart Rate States of smartwatch detection, in sleep state, receiving sensor inspection
The smartwatch of survey and the distance between the indoor bluetooth equipment having connected;
Second setting module, will be in sleep state, the smartwatch of received sensor detection and the interior having connected
The distance between bluetooth equipment is set as initial value.
Further, further include:
5th receiving module receives the Heart Rate States of smartwatch detection, and in non-sleep state, starting described first is sentenced
Disconnected module.
Compared with prior art, the present invention having the following advantages:
On the basis of detecting heart rate, by increasing linking number and intelligence to smartwatch and indoor bluetooth equipment
Can wrist-watch and the distance between the indoor bluetooth equipment that has connected detection, efficiently solve only through detection heart rate or inspection
It surveys activity and judges the dormant inaccuracy of user, and user can also be judged whether in fixed-site sleep and non-
Whether user is from bed when sleep state, and detection range is wider, and testing result is also more acurrate.
Detailed description of the invention
Fig. 1 is a kind of from bed detection method flow chart of the offer of embodiment one;
Fig. 2 is a kind of from bed detection system schematic diagram of the offer of embodiment one;
Fig. 3 is a kind of from bed detection method flow chart of the offer of embodiment two;
Fig. 4 is a kind of from bed detection system schematic diagram of the offer of embodiment two.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
A kind of method from bed detection is present embodiments provided, as shown in Figure 1, including step:
S11. the smartwatch of smartwatch detection and the linking number of indoor bluetooth equipment are received;
If S12. linking number is different from initial number, judge from bed.
Smartwatch or bracelet currently on the market has the function of rhythm of the heart and activity detection mostly, can be anti-
The sleep state of user is reflected, but as user is higher and higher to sleep quality detection requirement and the shakiness of rhythm of the heart itself
Qualitative, simple detection heart rate and activity can no longer meet user demand.
This embodiment provides a method for detecting bed departure,it can improve the accuracy of detecting user sleep status,, but also
Can judge user whether fixed-site sleep and user be in non-sleep state when whether have left fixed-site.
Place several bluetooth equipments everywhere indoors, user itself wears smartwatch, because also containing indigo plant in smartwatch
Tooth equipment, and the bluetooth equipment in smartwatch need to could be attached within the scope of a certain distance with indoor bluetooth equipment,
It then will disconnect connection beyond a certain distance range, therefore, pass through the linking number between smartwatch and indoor bluetooth equipment
It may determine that user whether from bed.The movement that position is had when lying on a bed due to people may cause the variation of linking number, solution
Certainly the method for this problem is:Several same number of set apart from identical and closer bluetooth is respectively placed in the right and left of bed
It is standby, then place it is several same number of apart from farther away bluetooth equipment, when making one to sleep in bed, from the midline position of bed to bed
Marginal position within the scope of, the bluetooth equipment of fixed number can be connected, for example, the right and left in bed respectively places 3 distances
Identical and closer bluetooth equipment with other 2 apart from farther away bluetooth equipment, user bed midline position to the left side of bed
Marginal position can connect 3 indoor bluetooth equipments on the left side;User bed right half part to the right side edge position of bed
It is then disconnected with the indoor bluetooth equipment in 3, the left side, then connects 3 indoor bluetooth equipments on the right of bed;If user, can from bed
It is attached with other 2 apart from farther away bluetooth equipment, linking number can then generate variation.From bed detection system independently into
Before the capable detection from bed, system initial value setting need to be carried out, method is:When user in bed during sleep because user is in
Sleep state can determine whether that not from bed, the smartwatch that user wears at this time is connect with indoor bluetooth equipment, such as connection has gone up 3
A bluetooth equipment, i.e. linking number are 3, illustrate the indoor bluetooth equipment that can be connected in this distance range that user lies on a bed
Number is 3, then linking number 3 is initial number.If the smartwatch that user wears in the future is set with more indoor bluetooths
In standby connection or the smartwatch of user's wearing is connect with less indoor bluetooth equipment, and linking number is no longer initial
Number 3 then can determine whether from bed.
Specifically, further including step before step S11:
The Heart Rate States for receiving smartwatch detection receive smartwatch and indoor bluetooth equipment in sleep state
Linking number is set as initial number.
The step is mainly used for before the first use of system or in use, carries out the setting of initial value, facilitates day laggard
The capable control from bed detection.For example, user's Heart Rate States for detecting of smartwatch show that user is in sleep state, intelligence at this time
The linking number of energy wrist-watch and indoor bluetooth equipment is 3, then is set as initial number for 3.
Specifically, further including step before step S11:
The Heart Rate States for receiving smartwatch detection then start to receive smartwatch and interior are blue in non-sleep state
The linking number of tooth equipment.
In sleep state, it is possible to determine that user is not from bed, therefore, only when the Heart Rate States that smartwatch detects are shown
When showing that user is in non-sleep state, server just starts to receive the smartwatch of smartwatch detection and indoor bluetooth equipment
Then linking number carries out judging from bed.
Correspondingly, the present embodiment also provides a kind of system from bed detection, as shown in Fig. 2, including:
First receiving module 11, for receiving the smartwatch of smartwatch detection and the connection number of indoor bluetooth equipment
Mesh;
First judgment module 12, it is whether identical as initial number for judging linking number, if it is different, then judging from bed.
First receiving module 11 is the module being present in server with data receiver function, and reception is worn by user
The Bluetooth signal comprising smartwatch and indoor bluetooth equipment linking number information that is issued of smartwatch.
First receiving module 11 relays information to first judgment module 12 after receiving above- mentioned information immediately, by judgement mould
Block carries out data comparison, judges whether linking number at this time and initial number are identical, if it is different, then judging from bed.For example, the
The linking number that one receiving module receives is 2, and initial number is 3, then judgment module is judged as from bed.
Specifically, further including:
Third receiving module 13, in sleep state, receives intelligent hand for receiving the Heart Rate States of smartwatch detection
The linking number of table and indoor bluetooth equipment;
First setting module 14, will be in sleep state, the linking number of received smartwatch and indoor bluetooth equipment
It is set as initial number.
Third receiving module 13 is the module with data receiver function being present in server, mainly apply to from
Bed detection system when first used, secondary setup initial number.For example, user for the first time use from bed detection system before,
In sleep state, smartwatch is connected to 3 indoor bluetooth equipments, and linking number 3 is sent to third and received by smartwatch
Module 13, third receiving module 13 give the message transport to the first setting module 14 immediately, and the first setting module 14 is just set as 3
Initial number.
Specifically, further including:
5th receiving module 15 receives the Heart Rate States of smartwatch detection, in non-sleep state, starting described first
Judgment module 12.
5th receiving module 15 is the module with data receiver function being present in server, and smartwatch detection is used
The Heart Rate States at family send the 5th receiving module 15 to, if what the 5th receiving module 15 received is non-sleep state, start
The first judgment module 12;Otherwise, do not start.
Embodiment two
A kind of method from bed detection is present embodiments provided, as shown in figure 3, including step:
S21. the smartwatch of smartwatch detection and the linking number of indoor bluetooth equipment are received;
If S22. linking number is different from initial number, judge from bed.
If S23. linking number is identical as initial number, the smartwatch of receiving sensor detection and the interior having connected
The distance between bluetooth equipment;
If S24. distance exceeds error range, judge from bed.
What is different from the first embodiment is that further including step S23, S24.
The smartwatch that user wears is connect with indoor bluetooth equipment, at the same time, the sensing of bed quadrangle or bed surrounding
Device detection smartwatch sends server to the distance between the indoor bluetooth equipment having connected;When the received intelligence of server
The linking number of wrist-watch transmission is identical as initial number, when accurately can not judge from bed, then again passes received sensor
The distance sent is compared with initial value, when comparing result, which is shown, is more than error range, is then judged from bed.
Specifically, further including step before step S23:
Receive smartwatch detection Heart Rate States, in sleep state, receiving sensor detection smartwatch with
The distance between indoor bluetooth equipment of connection, is set as initial value.
The step is mainly used for before the first use of system or in use, carries out the setting of initial value, facilitates day laggard
The capable control from bed detection.The Heart Rate States for the smartwatch detection user that user wears simultaneously send server to, sensor inspection
It surveys the distance between smartwatch and the indoor bluetooth equipment having connected and sends server to, if user is in sleep shape at this time
State, then the smartwatch that received sensor detects is set as just by server with the distance between the indoor bluetooth equipment having connected
Initial value.
For example, four angles of bed or surrounding place sensor L1, L2, L3, L4, the bluetooth equipment in room surrounding holding chamber
N1, N2, N3, N4, N5, user carry the smartwatch equipment W1 with bluetooth equipment.Firstly, being examined by smartwatch equipment W1
User's heart rate situation is surveyed, when user is in sleep state, detects the interior that smartwatch equipment W1 is connected when user falls asleep
Bluetooth equipment, it is assumed that be N2, N3, N4, then by sensor measurement smartwatch equipment W1 to indoor bluetooth equipment N2, N3, N4
Distance R2, R3, R4, R2, R3, R4 are initial value.
The linking number and distance of connection equipment are detected at regular intervals, when there is no becoming for linking number
Change, the distance for connecting equipment changes, and when exceeding initial value error range, determines from bed.
The present embodiment compare with embodiment one, the advantage is that:
When only whether being unable to judge accurately user from bed by the number connected, then the intelligence worn by detection user
The distance between wrist-watch and the indoor bluetooth equipment that has connected further judge that user whether from bed, makes from bed detection system more
It adds standby.
Correspondingly, the present embodiment also provides a kind of system from bed detection, as shown in Figure 4.Including:
First receiving module 21, for receiving the smartwatch of smartwatch detection and the connection number of indoor bluetooth equipment
Mesh;
First judgment module 22, it is whether identical as initial number for judging linking number, if it is different, then judging from bed.
Second receiving module 23, between the smartwatch detected for receiving sensor and the indoor bluetooth equipment having connected
Distance;
Second judgment module 24, for judge distance with initial value whether in error range, if exceed error range,
Judge from bed.
Third receiving module 25, in sleep state, receives intelligent hand for receiving the Heart Rate States of smartwatch detection
The linking number of table and indoor bluetooth equipment;
First setting module 26, will be in sleep state, the linking number of received smartwatch and indoor bluetooth equipment
It is set as initial number.
4th receiving module 27, for receiving the Heart Rate States of smartwatch detection, in sleep state, receiving sensor
The smartwatch of detection and the distance between the indoor bluetooth equipment having connected;
Second setting module 28, will be in sleep state, the smartwatch of received sensor detection and the room having connected
The distance between interior bluetooth equipment is set as initial value.
5th receiving module 29 receives the Heart Rate States of smartwatch detection, in non-sleep state, starting described first
Judgment module.
What is different from the first embodiment is that further including the second receiving module 23, the second judgment module 24, the 4th receiving module
27, the second setting module 28.
4th receiving module 27 and the second setting module 28 are used for when first used from bed detection system, at the beginning of set distance
Initial value.When first use is from bed detection system, the smartwatch that user is worn detects user's heart rate, will test result transmission
To the 4th receiving module 27, if the 4th receiving module 27 receives user and is in sleep state, the sensing that will be received at this time
Device user's smartwatch detected transfers to the second setting module 28 with the distance between the indoor bluetooth equipment being connect, the
Received distance value is set as initial value by two setting modules 28.
The distance between the smart phone of second receiving module, 23 receiving sensor transmission and indoor bluetooth equipment information, will
The range information transfers to the second judgment module 24, and the second judgment module 24 will be from 23 distance received from the second receiving module
Information is compared with initial value, if exceeding error range, is judged from bed.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.