CN106652068B - Duration recording method, Bluetooth slave devices and duration record system - Google Patents
Duration recording method, Bluetooth slave devices and duration record system Download PDFInfo
- Publication number
- CN106652068B CN106652068B CN201610884222.3A CN201610884222A CN106652068B CN 106652068 B CN106652068 B CN 106652068B CN 201610884222 A CN201610884222 A CN 201610884222A CN 106652068 B CN106652068 B CN 106652068B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- devices
- slave devices
- target
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C1/00—Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
- G07C1/02—Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people not involving the registering, indicating or recording of other data
Abstract
The invention discloses a kind of duration recording method, Bluetooth slave devices and durations to record system, and method is executed by Bluetooth slave devices, searches for other bluetooth equipments including the adjacent domain in Bluetooth slave devices;When searching target Bluetooth devices and target Bluetooth devices are leave state, time of occurrence t1 of the current time as target Bluetooth devices is obtained, and is adjacent states by the status modifier of target Bluetooth devices;When not searching target Bluetooth devices and target Bluetooth devices are adjacent states, time departure t2 of the current time as target Bluetooth devices is obtained, and is leave state by the status modifier of target Bluetooth devices;Server is sent by bluetooth by t1 and t2, so that server calculates get along duration and the record of Bluetooth slave devices within a preset period of time with target Bluetooth devices according to t1 and t2.The present invention by Bluetooth slave devices simply and easily record between user get along duration or user a certain place stay time.
Description
Technical field
The present invention relates to acquisition of information and record field, and in particular to a kind of duration recording method, Bluetooth slave devices and when
Long record system.
Background technique
As civilization degree is higher and higher, there is a growing awareness that the time importance, concept of time is increasingly heavier.
For example, during contacts, lovers wonder their two people the time that past some day gets along have how long;Worked
Cheng Zhong, company need to collect the time waited in office employee's some day, the working time as this employee.These times letter
Breath is all to signify the duration of getting along of two people whithin a period of time, or signify someone at some by special meaning
The duration that place is waited for.
These information in order to obtain generally require user purposely or initiatively go to record, such as clock in and out, use
Family may have forgotten record or record wrong or record unsuccessful, therefore bring many inconvenience for user.
Summary of the invention
It is an object of the present invention to provide a kind of duration recording method, Bluetooth slave devices and duration of getting along to obtain system, passes through
Bluetooth slave devices simply and easily record between user get along duration or user a certain place stay time.
In order to solve the above technical problems, first aspect of the embodiment of the present invention provides a kind of duration recording method, by bluetooth from
Equipment executes, which comprises
Other bluetooth equipments are searched in the adjacent domain of the Bluetooth slave devices according to the operating mode of setting;
Target Bluetooth devices are searched during other bluetooth equipments around search, and the target Bluetooth is set
When for being leave state, time of occurrence t1 of the current time as the target Bluetooth devices is obtained, and the target is blue
The status modifier of tooth equipment is adjacent states;
When search around other bluetooth equipments during do not search the target Bluetooth devices, and the mesh
When to mark bluetooth equipment be adjacent states, time departure t2 of the current time as the target Bluetooth devices is obtained, and by institute
The status modifier for stating target Bluetooth devices is leave state;
The first bluetooth master is sent by bluetooth by t1 and t2 and service is forwarded to by first bluetooth master
Device, so that the server calculates the Bluetooth slave devices and the target Bluetooth devices within a preset period of time according to t1 and t2
Get along duration and record;
Wherein, the operating mode according to setting is searched for other bluetooths in the adjacent domain of the Bluetooth slave devices and is set
It is standby, it specifically includes:
After having executed one search operation, a broadcast operation is executed;Wherein, described search operation is for described
The adjacent domain of Bluetooth slave devices searches for other bluetooth equipments, and each search operation continues the first preset duration;The setting-up exercises to music
Broadcast data packet is acted on so that the Bluetooth slave devices are searched by other Bluetooth slave devices, each broadcast operation continues second
Preset duration;
Before the primary broadcast operation in office terminates, the motion state of the Bluetooth slave devices is judged;
When it is static for determining the Bluetooth slave devices, the broadcast operation is executed again;
When determining the Bluetooth slave devices to move, described search operation is executed again.
Optionally, the operating mode according to setting is searched for other bluetooths in the adjacent domain of the Bluetooth slave devices and is set
It is standby, specifically:
Alternately execute search operation and broadcast operation;Wherein, described search operation is in the Bluetooth slave devices
Adjacent domain searches for other bluetooth equipments, and each search operation continues the first preset duration;The broadcast operation is for broadcasting number
According to packet so that the Bluetooth slave devices are searched by other bluetooth equipments, each broadcast operation continues the second preset duration.
Optionally, described by t1 and t2 the first bluetooth master to be sent by bluetooth and by first bluetooth master
It is forwarded to server, so that the server calculates the Bluetooth slave devices with the target Bluetooth devices pre- according to t1 and t2
If get along duration and record in the period, specifically:
The first bluetooth master is sent by bluetooth by t1 and t2 and service is forwarded to by first bluetooth master
Device makes the server calculate the bluetooth from setting according to the earlier one between t1 and t3 and the earlier one between t2 and t4
Standby get along duration and record with the target Bluetooth devices within a preset period of time;Wherein, the target Bluetooth devices
For with the Bluetooth slave devices in functional structure identical another Bluetooth slave devices;T3 is that the target Bluetooth devices are got
The Bluetooth slave devices time of occurrence, t4 is when the leaving of the Bluetooth slave devices that gets of the target Bluetooth devices
Between, t3 and t4 are sent to the second bluetooth master by bluetooth by the target Bluetooth devices and are forwarded to the server.
Optionally, the Bluetooth slave devices and the target Bluetooth devices are Intelligent bracelet;First bluetooth master
It is communication terminal with second bluetooth master.
First aspect of the embodiment of the present invention provides a kind of Bluetooth slave devices, comprising:
Bluetooth operational module, the adjacent domain for the operating mode according to setting in the Bluetooth slave devices search for other
Bluetooth equipment;
Time of occurrence obtains module, searches target Bluetooth during for working as other bluetooth equipments around search
Equipment, and the target Bluetooth devices be leave state when, obtain appearance of the current time as the target Bluetooth devices
Time t1, and be adjacent states by the status modifier of the target Bluetooth devices;
Time departure obtains module, for described when not searching during other bluetooth equipments of search surrounding
Target Bluetooth devices, and when the target Bluetooth devices are adjacent states, obtain the current time sets as the target Bluetooth
Standby time departure t2, and be leave state by the status modifier of the target Bluetooth devices;
Time data transmission blocks, for sending the first bluetooth master by bluetooth for t1 and t2 and by described first
Bluetooth master is forwarded to server, so that the server calculates the Bluetooth slave devices according to t1 and t2 and the target is blue
Get along duration and the record of tooth equipment within a preset period of time;
Wherein, the bluetooth operational module specifically includes:
Broadcast operation execution unit, for executing a broadcast operation after having executed one search operation;Wherein,
For searching for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, each search operation continues for described search operation
One preset duration;The broadcast operation is for broadcast data packet so that the Bluetooth slave devices are searched for by other Bluetooth slave devices
It arrives, each broadcast operation continues the second preset duration;
Motion state judging unit judges the Bluetooth slave devices before terminating for the primary broadcast operation in office
Motion state;
The secondary execution unit of broadcast operation, it is described wide for being executed again when it is static for determining the Bluetooth slave devices
Broadcast operation;
Search operation execution unit, for executing described search behaviour again when determining the Bluetooth slave devices to move
Make.
Optionally, the bluetooth operational module is specifically used for: alternately executing search operation and broadcast operation;Wherein, institute
It states adjacent domain of the search operation in the Bluetooth slave devices and searches for other bluetooth equipments, each search operation continues first
Preset duration;The broadcast operation is used for broadcast data packet so that the Bluetooth slave devices are searched by other Bluetooth slave devices,
Each broadcast operation continues the second preset duration.
Optionally, the time data transmission blocks are specifically used for: sending the first bluetooth master by bluetooth for t1 and t2
Equipment is simultaneously forwarded to server by first bluetooth master, make the server according between t1 and t3 earlier one, with
And the earlier one between t2 and t4 calculate the Bluetooth slave devices with the target Bluetooth devices getting along within a preset period of time
Duration simultaneously records;Wherein, the target Bluetooth devices are identical another in functional structure with the Bluetooth slave devices
Bluetooth slave devices;T3 is the time of occurrence for the Bluetooth slave devices that the target Bluetooth devices are got, and t4 is the target
The time departure for the Bluetooth slave devices that bluetooth equipment is got, t3 and t4 are sent by the target Bluetooth devices by bluetooth
To the second bluetooth master and it is forwarded to the server.
Optionally, the Bluetooth slave devices and the target Bluetooth devices are Intelligent bracelet;First bluetooth master
It is communication terminal with second bluetooth master.
The third aspect of the embodiment of the present invention provides a kind of duration record system, including above-mentioned Bluetooth slave devices, the indigo plant
Tooth passes through the first bluetooth master of bluetooth connection and service from the target Bluetooth devices of equipment, with the Bluetooth slave devices
Device.
Compared with the prior art, the beneficial effects of the present invention are: the present invention provides a kind of duration recording methods, bluetooth
Record system from equipment and duration, method is executed by Bluetooth slave devices, including the operating mode according to setting the bluetooth from
The adjacent domain of equipment searches for other bluetooth equipments;It is blue when searching target during other bluetooth equipments of search surrounding
Tooth equipment, and the target Bluetooth devices be leave state when, obtain the current time as the target Bluetooth devices go out
T1 between current, and be adjacent states by the status modifier of the target Bluetooth devices;When other bluetooth equipments around search
During do not search the target Bluetooth devices, and when the target Bluetooth devices are adjacent states, obtain current
Time departure t2 of the time as the target Bluetooth devices, and be to leave shape by the status modifier of the target Bluetooth devices
State;The first bluetooth master is sent by bluetooth by t1 and t2 and server is forwarded to by first bluetooth master, is made
It obtains the server and the phase of the Bluetooth slave devices within a preset period of time with the target Bluetooth devices is calculated according to t1 and t2
Locate duration and records.When executing the method for the embodiment of the present invention, Bluetooth slave devices obtain target Bluetooth devices automatically
Time of occurrence and time departure will not be perceived without user's manual operation or even user and have recorded these information, greatly improve
The convenience of record duration, and time of occurrence due to target Bluetooth devices and time departure automatically obtain, finally
The duration of getting along calculated is also accurate enough.
Detailed description of the invention
Fig. 1 is the flow diagram of duration recording method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of Bluetooth slave devices provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, it is the flow diagram of duration recording method provided in an embodiment of the present invention.The duration note
Recording method is executed by Bluetooth slave devices, comprising:
S1 searches for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices according to the operating mode of setting;
S2 searches target Bluetooth devices during other bluetooth equipments around search, and the target is blue
When tooth equipment is leave state, time of occurrence t1 of the current time as the target Bluetooth devices is obtained, and by the mesh
The status modifier for marking bluetooth equipment is adjacent states;
S3, when search around other bluetooth equipments during do not search the target Bluetooth devices, and institute
State target Bluetooth devices be adjacent states when, obtain time departure t2 of the current time as the target Bluetooth devices, and
It is leave state by the status modifier of the target Bluetooth devices;
S4 sends the first bluetooth master by bluetooth for t1 and t2 and is forwarded to clothes by first bluetooth master
Business device, so that the server calculates the Bluetooth slave devices and the target Bluetooth devices in preset time period according to t1 and t2
Interior get along duration and record.The preset time period can be 1 day.
Bluetooth technology is a kind of very mature mechanics of communication, and bluetooth equipment includes bluetooth master and Bluetooth slave devices.It is blue
Tooth main equipment is usually the Bluetooth slave devices around actively search, and sends linking request to specified Bluetooth slave devices;Bluetooth
It is then the linking request that the bluetooth master around monitoring is sent from equipment.For example, bluetooth master is mobile phone, Bluetooth slave devices
For Intelligent bracelet, after the two establishes connection, collected information is passed through Bluetooth feedback to mobile phone by Intelligent bracelet;Alternatively, bluetooth
Main equipment is mobile phone, and Bluetooth slave devices are bluetooth headset, and after the two establishes connection, mobile phone sends audio signal to by bluetooth
Bluetooth headset plays out.Therefore, in the prior art, Bluetooth slave devices be usually by bluetooth master discovery then both into
Row interaction, and Bluetooth slave devices will not then find other bluetooth masters or other Bluetooth slave devices.
Due to it is an object of the invention to easily record between user get along duration or user a certain place stop
Duration needs equipment just to may be implemented according to certain search pattern removal search target Bluetooth devices, and bluetooth master (such as hand
Machine) it is usually to need just to scan for when connecting with Bluetooth slave devices, therefore bluetooth master is not suitable for being applied to the present invention in fact
Apply the time of occurrence and time departure for going to obtain target Bluetooth devices in example.On the contrary, this point may be implemented in Bluetooth slave devices.
Since Bluetooth slave devices are usually some portable equipment, such as Intelligent bracelet, intelligent ring, intelligence ring etc., because
This characteristic of Bluetooth slave devices is utilized in this embodiment of the present invention, sets the operating mode according to setting for Bluetooth slave devices
Other bluetooth equipments are searched in the adjacent domain of the Bluetooth slave devices, when obtaining the time of occurrence of target Bluetooth devices and leaving
Between server is sent to by the first bluetooth master so that server calculates the Bluetooth slave devices and sets with the target Bluetooth
Getting along between standby and is recorded duration.Bluetooth slave devices obtain target when executing the method for the embodiment of the present invention automatically
The time of occurrence and time departure of bluetooth equipment will not be perceived without user's manual operation or even user and have recorded these letters
Breath substantially increases the convenience of record duration, and time of occurrence due to target Bluetooth devices and time departure are automatic
It obtains, the duration of getting along finally calculated is also accurate enough.
A kind of embodiment of the step S1 specifically: alternately execute search operation and broadcast operation;Wherein, described
Search operation is used to search for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, and it is pre- that each search operation continues first
If duration;The broadcast operation is for broadcast data packet so that the Bluetooth slave devices are searched by other bluetooth equipments, every time
Broadcast operation continues the second preset duration.Why alternately execute search operation and broadcast operation is in order in the indigo plant
It, also can (including bluetooth master and other bluetooths be from setting by other bluetooth equipments when tooth searches for target Bluetooth devices from equipment
It is standby) it searches.
The another embodiment of the step S1 specifically includes:
After having executed one search operation, a broadcast operation is executed;Wherein, described search operation is for described
The adjacent domain of Bluetooth slave devices searches for other bluetooth equipments, and each search operation continues the first preset duration;The setting-up exercises to music
Broadcast data packet is acted on so that the Bluetooth slave devices are searched by other Bluetooth slave devices, each broadcast operation continues second
Preset duration;
Before the primary broadcast operation in office terminates, the motion state of the Bluetooth slave devices is judged;
When it is static for determining the Bluetooth slave devices, the broadcast operation is executed again;
When determining the Bluetooth slave devices to move, described search operation is executed again.
Since the power consumption of search operation is far longer than the power consumption of broadcast operation, according to another embodiment party for stating step S1
Formula, if the Bluetooth slave devices remain static, such as the Bluetooth slave devices rest on always a place, then described
Bluetooth slave devices are executing always the broadcast operation and are executing search operation without going, and thus greatly reduce the bluetooth from setting
Standby power consumption.When the Bluetooth slave devices execute search operation again, to obtain the time of occurrence of the target Bluetooth devices
Or time departure.For example, first preset duration is 1 second, second preset duration is 1 minute, i.e., each search operation
It is for 1 seconds, and broadcast operation continues 1 minute every time.
It should be noted that how to judge that the motion state of the Bluetooth slave devices is very conventional technique, such as pass through
Acceleration transducer obtains the acceleration information of the Bluetooth slave devices, judges the Bluetooth slave devices further according to acceleration information
For static or movement.Those skilled in the art will be apparent that the related content of this part, thus repeat no more in the present invention.
In step s 2, the device id of the target Bluetooth devices is pre-configured in the Bluetooth slave devices, thus institute
The target Bluetooth devices can be recognized during other bluetooth equipments around search by stating Bluetooth slave devices.The mesh
The original state of mark bluetooth equipment is configured as leave state.When the target Bluetooth devices enter the Bluetooth slave devices
Adjacent domain, when the Bluetooth slave devices being enabled to search the target Bluetooth devices, the Bluetooth slave devices judge institute
Stating target Bluetooth devices is leave state, and is revised as adjacent states, then the time at this time is exactly the target just
The time of occurrence of bluetooth equipment.
In step s3, when the target Bluetooth devices have left the adjacent domain of the Bluetooth slave devices, so that described
When Bluetooth slave devices can not search the target Bluetooth devices, the Bluetooth slave devices judge that the target Bluetooth devices are
Adjacent states, and be revised as leave state, then the time at this time is exactly when leaving of the target Bluetooth devices just
Between.
When can be accurately obtained the time of occurrence of the target Bluetooth devices by step S2 and step S3 and leave
Between.
It is highly preferred that the step S4 specifically: by bluetooth send the first bluetooth master for t1 and t2 and by institute
State the first bluetooth master and be forwarded to server, make the server according between t1 and t3 earlier one and t2 and t4 it
Between earlier one calculate the Bluetooth slave devices and the target Bluetooth devices getting along within a preset period of time and duration and record
Get up;Wherein, the target Bluetooth devices be with the Bluetooth slave devices in functional structure identical another Bluetooth slave devices;
T3 is the time of occurrence for the Bluetooth slave devices that the target Bluetooth devices are got, and t4 is target Bluetooth devices acquisition
The time departure of the Bluetooth slave devices arrived, t3 and t4 are sent to the second bluetooth master by bluetooth by the target Bluetooth devices
Equipment is simultaneously forwarded to the server.
Due to the target Bluetooth devices be with the Bluetooth slave devices in functional structure identical another bluetooth from setting
It is standby, the available time of occurrence t1 and time departure t2 to the target Bluetooth devices of the Bluetooth slave devices, the target
Bluetooth equipment also available time of occurrence t3 and time departure t4 to the Bluetooth slave devices.In the ideal case, target
The time of occurrence t1 of bluetooth equipment should be equal to the time of occurrence t3 of the Bluetooth slave devices, the time departure of target Bluetooth devices
T2 should be equal to the time departure t4 of the Bluetooth slave devices.But target Bluetooth devices close to Bluetooth slave devices when, it is possible to
Target Bluetooth devices can get the time of occurrence t3 of Bluetooth slave devices, and Bluetooth slave devices because carry out broadcast operation without
Can get the time of occurrence t1 of target Bluetooth devices until until could obtain.At this moment the time of occurrence t3 of Bluetooth slave devices is
It is standard and more early than the time of occurrence t1 of the target Bluetooth devices.Similarly, for the time departure of target Bluetooth devices
The time departure t4 of t2 and the Bluetooth slave devices are also such.Therefore in order to accurately calculate Bluetooth slave devices and target Bluetooth
Duration of getting along between equipment configures target Bluetooth devices to identical another in functional structure with the Bluetooth slave devices
Bluetooth slave devices, so that the target Bluetooth devices also available time of occurrence t3 to the Bluetooth slave devices and when leaving
Between t4.Server can be according between the time of occurrence t1 of target Bluetooth devices and the time of occurrence t3 of the Bluetooth slave devices
Earlier one between the time departure t4 of the time departure t2 and the Bluetooth slave devices of earlier one and target Bluetooth devices is come
Calculate the duration of getting along between Bluetooth slave devices and target Bluetooth devices.
In order to clearly demonstrate the course of work of the embodiment of the present invention, it is illustrated below with two situations.
Situation one: Bluetooth slave devices are the Intelligent bracelet that user A is worn, and target Bluetooth devices are the intelligence that user B is worn
Bracelet, and the function of the two is identical.Bluetooth slave devices and target Bluetooth devices are in user A and user B close to each other
The time of occurrence t1 of target Bluetooth devices and the time of occurrence t3 of Bluetooth slave devices, Bluetooth slave devices and target Bluetooth are obtained respectively
Equipment obtained respectively when user A and user B leave each other target Bluetooth devices time departure t2 and Bluetooth slave devices from
ETAD expected time of arrival and departure t4.Bluetooth slave devices send the mobile phone of user A for t1 and t2 by bluetooth and are forwarded to server, and target Bluetooth is set
Standby to send the mobile phone of user B for t3 and t4 by bluetooth and be forwarded to server, server is according to relatively early between t1 and t3
Earlier one between person and t2 and t4 calculates the duration of getting along between Bluetooth slave devices and target Bluetooth devices.If pre-
If the period is that can then calculate user A and user B in the duration of getting along of some day in one day.
Situation two: Bluetooth slave devices are the Intelligent bracelet that user C is worn, and target Bluetooth devices are be fixed on office one
A equipment.For user C when entering office, Bluetooth slave devices obtain the time of occurrence t1 of target Bluetooth devices, when user C leaves
When office, Bluetooth slave devices obtain the time departure t2 of target Bluetooth devices.Bluetooth slave devices are sent out t1 and t2 by bluetooth
Be sent to the mobile phone of user C and be forwarded to server, server according to t1 and t2 calculate user C in one day office when
It is long to be used as operating time.
It should be noted that the two above situations are two citings of the embodiment of the present invention, the present disclosure additionally applies for
Other need to record between two users get along duration or user the stay time in a certain place situation.For example, situation two
In office can be changed to gymnasium, then correspondingly stay time of the record user in gymnasium is intraday as user
Temper duration.
As shown in Fig. 2, it is a kind of structural block diagram of Bluetooth slave devices provided in an embodiment of the present invention, comprising:
Bluetooth operational module 1, the adjacent domain for the operating mode according to setting in the Bluetooth slave devices search for it
His bluetooth equipment;
Time of occurrence obtains module 2, for blue when searching target during other bluetooth equipments of search surrounding
Tooth equipment, and the target Bluetooth devices be leave state when, obtain the current time as the target Bluetooth devices go out
T1 between current, and be adjacent states by the status modifier of the target Bluetooth devices;
Time departure obtains module 3, does not search institute during for working as other bluetooth equipments around search
It states target Bluetooth devices, and when the target Bluetooth devices are adjacent states, obtains the current time as the target Bluetooth
The time departure t2 of equipment, and be leave state by the status modifier of the target Bluetooth devices;
Time data transmission blocks 4, for sending the first bluetooth master by bluetooth for t1 and t2 and by described
One bluetooth master is forwarded to server, so that the server calculates the Bluetooth slave devices and the target according to t1 and t2
Get along duration and the record of bluetooth equipment within a preset period of time.
In one embodiment, the bluetooth operational module 1 is specifically used for: alternately executing search operation and setting-up exercises to music
Make;Wherein, described search operation is for searching for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, and search is grasped every time
Work continues the first preset duration;The broadcast operation be used for broadcast data packet so that the Bluetooth slave devices by other bluetooths from setting
Standby to search, each broadcast operation continues the second preset duration.
In another embodiment, the bluetooth operational module 1 specifically includes:
Broadcast operation execution unit, for executing a broadcast operation after having executed one search operation;Wherein,
For searching for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, each search operation continues for described search operation
One preset duration;The broadcast operation is for broadcast data packet so that the Bluetooth slave devices are searched for by other Bluetooth slave devices
It arrives, each broadcast operation continues the second preset duration;
Motion state judging unit judges the Bluetooth slave devices before terminating for the primary broadcast operation in office
Motion state;
The secondary execution unit of broadcast operation, it is described wide for being executed again when it is static for determining the Bluetooth slave devices
Broadcast operation;
Search operation execution unit, for executing described search behaviour again when determining the Bluetooth slave devices to move
Make.
It is highly preferred that the time data transmission blocks 4 are specifically used for: sending the first bluetooth by bluetooth for t1 and t2
Main equipment is simultaneously forwarded to server by first bluetooth master, make the server according between t1 and t3 earlier one,
And the earlier one between t2 and t4 calculates the Bluetooth slave devices and the phase of the target Bluetooth devices within a preset period of time
Locate duration and records;Wherein, the target Bluetooth devices are identical another in functional structure with the Bluetooth slave devices
One Bluetooth slave devices;T3 is the time of occurrence for the Bluetooth slave devices that the target Bluetooth devices are got, and t4 is the mesh
The time departure for the Bluetooth slave devices that mark bluetooth equipment is got, t3 and t4 are sent out by the target Bluetooth devices by bluetooth
It is sent to the second bluetooth master and is forwarded to the server.
Preferably, the Bluetooth slave devices and the target Bluetooth devices are Intelligent bracelet;First bluetooth master
It is communication terminal with second bluetooth master.
It should be noted that Bluetooth slave devices provided in an embodiment of the present invention are for executing above-mentioned duration recording method
All method and steps, working principle and beneficial effect correspond, thus repeat no more.
The embodiment of the invention also provides a kind of duration record system, including above-mentioned Bluetooth slave devices, the bluetooth from
The target Bluetooth devices of equipment, the first bluetooth master and server for passing through bluetooth connection with the Bluetooth slave devices.
Compared with the prior art, the beneficial effects of the present invention are: the present invention provides a kind of duration recording methods, bluetooth
Record system from equipment and duration, method is executed by Bluetooth slave devices, including the operating mode according to setting the bluetooth from
The adjacent domain of equipment searches for other bluetooth equipments;It is blue when searching target during other bluetooth equipments of search surrounding
Tooth equipment, and the target Bluetooth devices be leave state when, obtain the current time as the target Bluetooth devices go out
T1 between current, and be adjacent states by the status modifier of the target Bluetooth devices;When other bluetooth equipments around search
During do not search the target Bluetooth devices, and when the target Bluetooth devices are adjacent states, obtain current
Time departure t2 of the time as the target Bluetooth devices, and be to leave shape by the status modifier of the target Bluetooth devices
State;The first bluetooth master is sent by bluetooth by t1 and t2 and server is forwarded to by first bluetooth master, is made
It obtains the server and the phase of the Bluetooth slave devices within a preset period of time with the target Bluetooth devices is calculated according to t1 and t2
Locate duration and records.When executing the method for the embodiment of the present invention, Bluetooth slave devices obtain target Bluetooth devices automatically
Time of occurrence and time departure will not be perceived without user's manual operation or even user and have recorded these information, greatly improve
The convenience of record duration, and time of occurrence due to target Bluetooth devices and time departure automatically obtain, finally
The duration of getting along calculated is also accurate enough.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (9)
1. a kind of duration recording method, which is characterized in that executed by Bluetooth slave devices, which comprises
Other bluetooth equipments are searched in the adjacent domain of the Bluetooth slave devices according to the operating mode of setting;
Target Bluetooth devices are searched during other bluetooth equipments around search, and the target Bluetooth devices are
When leave state, time of occurrence t1 of the current time as the target Bluetooth devices is obtained, and the target Bluetooth is set
Standby status modifier is adjacent states;
The target Bluetooth devices are not searched during other bluetooth equipments around search, and the target is blue
When tooth equipment is adjacent states, time departure t2 of the current time as the target Bluetooth devices is obtained, and by the mesh
The status modifier for marking bluetooth equipment is leave state;
The first bluetooth master is sent by bluetooth by t1 and t2 and server is forwarded to by first bluetooth master, is made
It obtains the server and the phase of the Bluetooth slave devices within a preset period of time with the target Bluetooth devices is calculated according to t1 and t2
Locate duration and records;
Wherein, the operating mode according to setting searches for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, tool
Body includes:
After having executed one search operation, a broadcast operation is executed;Wherein, described search operation is in the bluetooth
Other bluetooth equipments are searched for from the adjacent domain of equipment, each search operation continues the first preset duration;The broadcast operation is used
In broadcast data packet so that the Bluetooth slave devices are searched by other Bluetooth slave devices, it is default that each broadcast operation continues second
Duration;
Before the primary broadcast operation in office terminates, the motion state of the Bluetooth slave devices is judged;
When it is static for determining the Bluetooth slave devices, the broadcast operation is executed again;
When determining the Bluetooth slave devices to move, described search operation is executed again.
2. duration recording method as described in claim 1, which is characterized in that the operating mode according to setting is in the indigo plant
Tooth searches for other bluetooth equipments from the adjacent domain of equipment, specifically:
Alternately execute search operation and broadcast operation;Wherein, described search operation is in the neighbouring of the Bluetooth slave devices
Other bluetooth equipments of range searching, each search operation continue the first preset duration;The broadcast operation is used for broadcast data packet
So that the Bluetooth slave devices are searched by other bluetooth equipments, each broadcast operation continues the second preset duration.
3. duration recording method as claimed in claim 1 or 2, which is characterized in that described to send t1 and t2 to by bluetooth
First bluetooth master is simultaneously forwarded to server by first bluetooth master, so that the server is calculated according to t1 and t2
Get along duration and record of the Bluetooth slave devices with the target Bluetooth devices within a preset period of time, specifically:
The first bluetooth master is sent by bluetooth by t1 and t2 and server is forwarded to by first bluetooth master, is made
The server calculates the Bluetooth slave devices and institute according to the earlier one between t1 and t3 and the earlier one between t2 and t4
State get along duration and the record of target Bluetooth devices within a preset period of time;Wherein, the target Bluetooth devices for institute
State Bluetooth slave devices identical another Bluetooth slave devices in functional structure;T3 gets described for the target Bluetooth devices
The time of occurrence of Bluetooth slave devices, t4 are the time departure for the Bluetooth slave devices that the target Bluetooth devices are got, t3
The second bluetooth master is sent to by bluetooth by the target Bluetooth devices with t4 and is forwarded to the server.
4. duration recording method as claimed in claim 3, which is characterized in that the Bluetooth slave devices are set with the target Bluetooth
Standby is Intelligent bracelet;First bluetooth master and second bluetooth master are communication terminal.
5. a kind of Bluetooth slave devices characterized by comprising
Bluetooth operational module searches for other bluetooths in the adjacent domain of the Bluetooth slave devices for the operating mode according to setting
Equipment;
Time of occurrence obtains module, searches target Bluetooth during for working as other bluetooth equipments around search and sets
It is standby, and the target Bluetooth devices be leave state when, when obtaining appearance of the current time as the target Bluetooth devices
Between t1, and by the status modifier of the target Bluetooth devices be adjacent states;
Time departure obtains module, does not search the target during for working as other bluetooth equipments around search
Bluetooth equipment, and the target Bluetooth devices be adjacent states when, obtain the current time as the target Bluetooth devices
Time departure t2, and be leave state by the status modifier of the target Bluetooth devices;
Time data transmission blocks, for sending the first bluetooth master by bluetooth for t1 and t2 and by first bluetooth
Main equipment is forwarded to server, sets so that the server calculates the Bluetooth slave devices according to t1 and t2 with the target Bluetooth
Standby get along duration and record within a preset period of time;
Wherein, the bluetooth operational module specifically includes:
Broadcast operation execution unit, for executing a broadcast operation after having executed one search operation;Wherein, described
Search operation is used to search for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, and it is pre- that each search operation continues first
If duration;The broadcast operation is for broadcast data packet so that the Bluetooth slave devices are searched by other Bluetooth slave devices, often
Secondary broadcast operation continues the second preset duration;
Motion state judging unit judges the movement of the Bluetooth slave devices before terminating for the primary broadcast operation in office
State;
The secondary execution unit of broadcast operation, for executing the setting-up exercises to music again when it is static for determining the Bluetooth slave devices
Make;
Search operation execution unit, for executing described search operation again when determining the Bluetooth slave devices to move.
6. Bluetooth slave devices as claimed in claim 5, which is characterized in that the bluetooth operational module is specifically used for: alternately
Execute search operation and broadcast operation;Wherein, described search operation is for searching for it in the adjacent domain of the Bluetooth slave devices
His bluetooth equipment, each search operation continue the first preset duration;The broadcast operation is for broadcast data packet so that the indigo plant
Tooth is searched from equipment by other Bluetooth slave devices, and each broadcast operation continues the second preset duration.
7. such as Bluetooth slave devices described in claim 5 or 6, which is characterized in that the time data transmission blocks are specifically used for:
The first bluetooth master is sent by bluetooth by t1 and t2 and server is forwarded to by first bluetooth master, is made described
Server calculates the Bluetooth slave devices and the mesh according to the earlier one between t1 and t3 and the earlier one between t2 and t4
Get along duration and the record of mark bluetooth equipment within a preset period of time;Wherein, the target Bluetooth devices are and the indigo plant
Tooth identical another Bluetooth slave devices in functional structure from equipment;T3 is the bluetooth that the target Bluetooth devices are got
From the time of occurrence of equipment, t4 is the time departure for the Bluetooth slave devices that the target Bluetooth devices are got, t3 and t4
The second bluetooth master is sent to by bluetooth by the target Bluetooth devices and is forwarded to the server.
8. Bluetooth slave devices as claimed in claim 7, which is characterized in that the Bluetooth slave devices and the target Bluetooth devices
For Intelligent bracelet;First bluetooth master and second bluetooth master are communication terminal.
9. a kind of duration records system, which is characterized in that including the described in any item Bluetooth slave devices of such as claim 5~8, institute
State the target Bluetooth devices of Bluetooth slave devices, with the Bluetooth slave devices by the first bluetooth master of bluetooth connection and
Server.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610884222.3A CN106652068B (en) | 2016-10-09 | 2016-10-09 | Duration recording method, Bluetooth slave devices and duration record system |
PCT/CN2016/113606 WO2018064867A1 (en) | 2016-10-09 | 2016-12-30 | Duration recording method, bluetooth slave device and duration recording system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610884222.3A CN106652068B (en) | 2016-10-09 | 2016-10-09 | Duration recording method, Bluetooth slave devices and duration record system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106652068A CN106652068A (en) | 2017-05-10 |
CN106652068B true CN106652068B (en) | 2019-04-30 |
Family
ID=58853826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610884222.3A Active CN106652068B (en) | 2016-10-09 | 2016-10-09 | Duration recording method, Bluetooth slave devices and duration record system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106652068B (en) |
WO (1) | WO2018064867A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114268897B (en) * | 2020-09-15 | 2023-05-26 | Oppo广东移动通信有限公司 | Positioning service method and related device |
CN115942429B (en) * | 2022-11-30 | 2023-10-03 | 深圳市鑫宇鹏电子科技有限公司 | Method and device for controlling public household appliances, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101493957A (en) * | 2008-01-24 | 2009-07-29 | 林小翀 | Apparatus for sensing contact time and method for counting contact time using the same |
CN101938853A (en) * | 2009-06-30 | 2011-01-05 | 英华达(上海)电子有限公司 | Wireless network card having timing function |
GB201201251D0 (en) * | 2012-01-25 | 2012-03-07 | Haul It Nationwide Ltd | Personnel activity recording terminal personnel management system and method for controlling such a system |
CN103886651A (en) * | 2014-04-11 | 2014-06-25 | 北京极科极客科技有限公司 | Attendance method based on router and attendance router |
CN203759759U (en) * | 2014-04-03 | 2014-08-06 | 北京理工大学珠海学院 | Bluetooth checking-in device based on cloud |
CN204389907U (en) * | 2014-12-25 | 2015-06-10 | 深圳市易联智通科技有限公司 | A kind ofly to get along the device of time by counting user |
CN204614046U (en) * | 2015-04-17 | 2015-09-02 | 安徽理工大学 | Novel building office attendance checking system |
CN105561566A (en) * | 2015-12-23 | 2016-05-11 | 木牙(天津)科技有限公司 | Child sport accompanying time statistical system and method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571160A (en) * | 2012-01-16 | 2012-07-11 | 华为终端有限公司 | Bluetooth searching method and equipment |
CN104484046B (en) * | 2014-12-26 | 2017-08-15 | 小米科技有限责任公司 | Duration monitoring method and device |
US9849336B2 (en) * | 2015-02-27 | 2017-12-26 | Polar Electro Oy | Team sport monitoring system |
CN104703148A (en) * | 2015-03-16 | 2015-06-10 | 安徽华米信息科技有限公司 | Information feedback method and device |
CN105050049A (en) * | 2015-08-17 | 2015-11-11 | 深圳奇沃智联科技有限公司 | Information exchange system utilizing gesture of electronic watch |
CN105120499B (en) * | 2015-08-21 | 2019-01-01 | 深圳Tcl数字技术有限公司 | The method and system that bluetooth master slave mode automatically switches |
CN105376708B (en) * | 2015-10-09 | 2019-06-07 | Oppo广东移动通信有限公司 | A kind of connection method and system of bluetooth equipment selection target equipment |
-
2016
- 2016-10-09 CN CN201610884222.3A patent/CN106652068B/en active Active
- 2016-12-30 WO PCT/CN2016/113606 patent/WO2018064867A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101493957A (en) * | 2008-01-24 | 2009-07-29 | 林小翀 | Apparatus for sensing contact time and method for counting contact time using the same |
CN101938853A (en) * | 2009-06-30 | 2011-01-05 | 英华达(上海)电子有限公司 | Wireless network card having timing function |
GB201201251D0 (en) * | 2012-01-25 | 2012-03-07 | Haul It Nationwide Ltd | Personnel activity recording terminal personnel management system and method for controlling such a system |
CN203759759U (en) * | 2014-04-03 | 2014-08-06 | 北京理工大学珠海学院 | Bluetooth checking-in device based on cloud |
CN103886651A (en) * | 2014-04-11 | 2014-06-25 | 北京极科极客科技有限公司 | Attendance method based on router and attendance router |
CN204389907U (en) * | 2014-12-25 | 2015-06-10 | 深圳市易联智通科技有限公司 | A kind ofly to get along the device of time by counting user |
CN204614046U (en) * | 2015-04-17 | 2015-09-02 | 安徽理工大学 | Novel building office attendance checking system |
CN105561566A (en) * | 2015-12-23 | 2016-05-11 | 木牙(天津)科技有限公司 | Child sport accompanying time statistical system and method |
Also Published As
Publication number | Publication date |
---|---|
CN106652068A (en) | 2017-05-10 |
WO2018064867A1 (en) | 2018-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5442851B2 (en) | Wireless network connection control method and application program control method using device impact and device | |
CN104604250B (en) | Intelligent Notification tool for earphone | |
CN106121370B (en) | The based reminding method and device of intelligent door lock | |
CN105210396B (en) | A kind of method and device of selection information push terminal | |
CN108401064A (en) | A kind of terminal works control method, device and terminal | |
WO2008059534A3 (en) | System and method for facilitating a ready social network | |
CN106652068B (en) | Duration recording method, Bluetooth slave devices and duration record system | |
CN104822132B (en) | A kind of position sharing method | |
CN103945253B (en) | Method for controlling volume and equipment, control method for playing multimedia and equipment | |
CN103561074B (en) | Point out the carry-on location method and device that equipment arrives at the most on time, system | |
CN105682011A (en) | Playback device Bluetooth module control method and device, and audio and video playing system | |
CN101694585A (en) | Device and method for realizing remote monitoring | |
CN109287511A (en) | The method, apparatus of training pet control equipment and the wearable device of pet | |
CN109995623A (en) | Intelligent home equipment control method and smart home system | |
CN104854889A (en) | Terminal and method for grouping contact persons | |
CN107071701B (en) | Method for discovering target Bluetooth slave device by Bluetooth slave device and Bluetooth slave device | |
CN105872191A (en) | Call reminder setting method, call reminder setting device and related equipment | |
WO2002021305A3 (en) | A system and a method to access and organise information available from a network | |
CN105812904B (en) | The bluetooth module control method and audio-video frequency playing system of playback equipment | |
CN104571502B (en) | A kind of information processing method and wearable electronic equipment | |
CN107331130A (en) | Method for seeking help, emergency device and intelligent article of footwear | |
KR101212928B1 (en) | Device and method for establishing connections and controlling application via physical contact between devices | |
CN108933715A (en) | A kind of exchange method, device and smart machine | |
CN107896283A (en) | Positioning connection method, device and system and wearable device | |
Mehmood et al. | An ontology driven software framework for the healthcare applications based on ANT+ protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |