[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106652068A - Duration recording method, Bluetooth slave device and duration recording system - Google Patents

Duration recording method, Bluetooth slave device and duration recording system Download PDF

Info

Publication number
CN106652068A
CN106652068A CN201610884222.3A CN201610884222A CN106652068A CN 106652068 A CN106652068 A CN 106652068A CN 201610884222 A CN201610884222 A CN 201610884222A CN 106652068 A CN106652068 A CN 106652068A
Authority
CN
China
Prior art keywords
bluetooth
devices
slave devices
target
duration
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.)
Granted
Application number
CN201610884222.3A
Other languages
Chinese (zh)
Other versions
CN106652068B (en
Inventor
张享隆
陆晖
詹明东
朱朝永
陈星宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201610884222.3A priority Critical patent/CN106652068B/en
Priority to PCT/CN2016/113606 priority patent/WO2018064867A1/en
Publication of CN106652068A publication Critical patent/CN106652068A/en
Application granted granted Critical
Publication of CN106652068B publication Critical patent/CN106652068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/02Registering, 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a duration recording method, Bluetooth slave equipment and a duration recording system, wherein the method is executed by the Bluetooth slave equipment and comprises the steps of searching other Bluetooth equipment in the adjacent area of the Bluetooth slave equipment; when the target Bluetooth device is searched and the target Bluetooth device is in a leaving state, acquiring the current time as the appearance time t1 of the target Bluetooth device, and modifying the state of the target Bluetooth device to be in a neighboring state; when the target Bluetooth device is not searched and is in the adjacent state, acquiring the current time as the leaving time t2 of the target Bluetooth device, and modifying the state of the target Bluetooth device into the leaving state; and transmitting t1 and t2 to the server through Bluetooth, so that the server calculates the duration of the phase of the Bluetooth slave device and the target Bluetooth device in a preset time period according to t1 and t2 and records the duration. The invention simply and conveniently records the duration of the phase place between users or the duration of the stay of the users in a certain place through the Bluetooth slave equipment.

Description

Duration recording method, Bluetooth slave devices and duration record system
Technical field
The present invention relates to acquisition of information with record field, and in particular to a kind of duration recording method, Bluetooth slave devices and when Long record system.
Background technology
With civilization degree more and more higher, there is a growing awareness that the importance of time, concept of time is increasingly weighed. For example, during contacts, lovers wonder that how long their two people have in the time that past some day gets along;Worked Cheng Zhong, company needs to collect the time treated in office employee's some day, used as the working time of this employee.These time letters Breath is all, by special meaning, to signify get along duration of two people within a period of time, or signifies someone at certain The duration that place is treated.
In order to obtain these information, generally require user purposely or remove record on one's own initiative, such as clock in and out, use Family may have forgotten record or record wrong or record unsuccessful, therefore bring many inconvenience for user.
The content of the invention
It is an object of the present invention to provide a kind of duration recording method, Bluetooth slave devices obtain system with duration of getting along, pass through Bluetooth slave devices simply and easily record the stay time of duration or user in a certain place of getting along between user.
To solve above technical problem, embodiment of the present invention first aspect provides a kind of duration recording method, by bluetooth from Equipment is performed, and methods described includes:
Mode of operation according to setting searches for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices;
Target Bluetooth devices are searched during other bluetooth equipments around search, and the target Bluetooth sets During for being leave state, the current time is obtained as the time of occurrence t1 of the target Bluetooth devices, and the target is blue The status modifier of tooth equipment is adjacent states;
The target Bluetooth devices, and the mesh are not searched during other bluetooth equipments around search When mark bluetooth equipment is adjacent states, current time is obtained as the time departure t2 of the target Bluetooth devices, and by institute The status modifier for stating target Bluetooth devices is leave state;
T1 and t2 by bluetooth is sent into the first bluetooth master and service is forwarded to by first bluetooth master Device so that the server calculates the Bluetooth slave devices with the target Bluetooth devices in preset time period according to t1 and t2 Get along duration and record.
Alternatively, the mode of operation according to setting is searched for other bluetooths and is set in the adjacent domain of the Bluetooth slave devices It is standby, specially:
Alternately perform search operation and broadcast operation;Wherein, the search operation is used 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 used to broadcast number According to bag so that the Bluetooth slave devices are searched by other bluetooth equipments, each broadcast operation continues the second preset duration.
Alternatively, the mode of operation according to setting is searched for other bluetooths and is set in the adjacent domain of the Bluetooth slave devices It is standby, specifically include:
After one search operation has been performed, a broadcast operation is performed;Wherein, the search operation is used 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 once described broadcast operation in office terminates, the motion state of the Bluetooth slave devices is judged;
When the Bluetooth slave devices are judged as static, the broadcast operation is performed again;
When the Bluetooth slave devices are judged as motion, the search operation is performed again.
Alternatively, it is described that t1 and t2 is sent into the first bluetooth master and by first bluetooth master by bluetooth 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 the record in the time period, specially:
T1 and t2 by bluetooth is sent into the first bluetooth master and service is forwarded to by first bluetooth master Device, makes the server calculate the bluetooth from setting according to the more early person between the more early person and t2 and t4 between t1 and t3 Standby get along duration and record with the target Bluetooth devices in preset time period;Wherein, the target Bluetooth devices Be with the Bluetooth slave devices in functional structure another Bluetooth slave devices of identical;T3 gets for the target Bluetooth devices The Bluetooth slave devices time of occurrence, t4 is when the leaving of the Bluetooth slave devices that the target Bluetooth devices get Between, t3 and t4 is sent to the second bluetooth master and is forwarded to the server by the target Bluetooth devices by bluetooth.
Alternatively, the Bluetooth slave devices and the target Bluetooth devices are Intelligent bracelet;First bluetooth master It is communication terminal with second bluetooth master.
Embodiment of the present invention first aspect provides a kind of Bluetooth slave devices, including:
Bluetooth operational module, for searching for other in the adjacent domain of the Bluetooth slave devices according to the mode of operation of setting Bluetooth equipment;
Time of occurrence acquisition module, for searching target Bluetooth during other bluetooth equipments around search Equipment, and the target Bluetooth devices are when being leave state, obtain current time as the appearance of the target Bluetooth devices Time t1, and be adjacent states by the status modifier of the target Bluetooth devices;
Time departure acquisition module, it is described for not searching during other bluetooth equipments around search Target Bluetooth devices, and the target Bluetooth devices are when being adjacent states, obtain 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 sending module, for by bluetooth t1 and t2 to be sent into the first bluetooth master and by described first Bluetooth master is forwarded to server so that it is blue with the target that the server calculates the Bluetooth slave devices according to t1 and t2 Get along duration and record of the tooth equipment in preset time period.
Alternatively, the bluetooth operational module specifically for:Alternately perform search operation and broadcast operation;Wherein, institute State search operation and search for other bluetooth equipments for the adjacent domain in the Bluetooth slave devices, 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, Every time broadcast operation continues the second preset duration.
Alternatively, the bluetooth operational module is specifically included:
Broadcast operation performance element, for after one search operation has been performed, performing a broadcast operation;Wherein, The search operation is used to search for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, and each search operation continues the One preset duration;The broadcast operation is used for broadcast data packet so that the Bluetooth slave devices are searched for by other Bluetooth slave devices Arrive, each broadcast operation continues the second preset duration;
Motion state judging unit, before terminating for once described broadcast operation in office, judges the Bluetooth slave devices Motion state;
The secondary performance element of broadcast operation, it is described wide for when the Bluetooth slave devices are judged as static, performing again Broadcast operation;
Search operation performance element, for when the Bluetooth slave devices are judged as motion, performing the search behaviour again Make.
Alternatively, the time data sending module specifically for:T1 and t2 is sent into the first bluetooth master by bluetooth Equipment is simultaneously forwarded to server by first bluetooth master, make the server according to the more early person between t1 and t3, with And more early person between t2 and t4 calculate the Bluetooth slave devices with the target Bluetooth devices getting along in preset time period Duration simultaneously records;Wherein, the target Bluetooth devices are that identical is another in functional structure with the Bluetooth slave devices Bluetooth slave devices;T3 is the time of occurrence of the Bluetooth slave devices that the target Bluetooth devices get, and t4 is the target The time departure of the Bluetooth slave devices that bluetooth equipment gets, t3 and t4 is sent by the target Bluetooth devices by bluetooth To the second bluetooth master and it is forwarded to the server.
Alternatively, the Bluetooth slave devices and the target Bluetooth devices are Intelligent bracelet;First bluetooth master It is communication terminal with second bluetooth master.
The embodiment of the present invention third aspect provides a kind of duration record system, including above-mentioned Bluetooth slave devices, the indigo plant Tooth passes through the first bluetooth master and the service of bluetooth connection from the target Bluetooth devices and the Bluetooth slave devices of equipment Device.
Compared to prior art, the beneficial effects of the present invention is:The invention provides a kind of duration recording method, bluetooth From equipment and duration record system, method is performed by Bluetooth slave devices, including the mode of operation according to setting the bluetooth from The adjacent domain of equipment searches for other bluetooth equipments;Target is searched during other bluetooth equipments around search blue Tooth equipment, and the target Bluetooth devices are when being leave state, obtain current time going out as the target Bluetooth devices 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 the target Bluetooth devices are when being adjacent states, obtain current Time as the target Bluetooth devices time departure t2, and by the status modifier of the target Bluetooth devices to leave shape State;T1 and t2 by bluetooth is sent into the first bluetooth master and server is forwarded to by first bluetooth master, made Obtain the server and phase of the Bluetooth slave devices with the target Bluetooth devices in preset time period is calculated according to t1 and t2 Place's duration simultaneously records.When the method for the embodiment of the present invention is performed, Bluetooth slave devices obtain target Bluetooth devices automatically Time of occurrence and time departure, it is manually operated without the need for user, or even user will not perceive and have recorded these information, greatly improve The convenience of record duration, and because the time of occurrence and time departure of target Bluetooth devices are to obtain automatically, finally The duration of getting along for calculating is also accurate enough.
Description of the drawings
Fig. 1 is the schematic flow sheet of duration recording method provided in an embodiment of the present invention;
Fig. 2 is a kind of structured flowchart of Bluetooth slave devices provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, it is the schematic flow sheet of duration recording method provided in an embodiment of the present invention.The duration note Recording method is performed by Bluetooth slave devices, including:
S1, other bluetooth equipments are searched for according to the mode of operation of setting in the adjacent domain of the Bluetooth slave devices;
S2, searches target Bluetooth devices during other bluetooth equipments around search, and the target is blue When tooth equipment is leave state, current time is obtained as the time of occurrence t1 of the target Bluetooth devices, and by the mesh The status modifier of mark bluetooth equipment is adjacent states;
S3, during other bluetooth equipments around search the target Bluetooth devices, and institute are not searched State target Bluetooth devices for adjacent states when, obtain current time as the time departure t2 of the target Bluetooth devices, and It is leave state by the status modifier of the target Bluetooth devices;
S4, by bluetooth is sent to t1 and t2 the first bluetooth master and is forwarded to clothes by first bluetooth master Business device so that the server calculates the Bluetooth slave devices with 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 ripe 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 to monitor the linking request that the bluetooth master of surrounding sends from equipment.For example, bluetooth master is mobile phone, Bluetooth slave devices For Intelligent bracelet, both are set up after connection, and Intelligent bracelet is by the information for collecting by Bluetooth feedback to mobile phone;Or, bluetooth Main equipment is mobile phone, and Bluetooth slave devices are bluetooth earphone, and both are set up after connection, and mobile phone is sent to audio signal by bluetooth Bluetooth earphone is played out.Therefore, in the prior art, Bluetooth slave devices are usually to find that then both enter by bluetooth master 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 the stop of duration or user in a certain place of getting along between user Duration, need equipment according to certain search pattern removal search target Bluetooth devices just it is achieved that and bluetooth master (such as hand Machine) usually need just to be scanned for when being connected with Bluetooth slave devices, therefore bluetooth master is not suitable for being applied to the present invention in fact Apply and the time of occurrence and time departure that obtain target Bluetooth devices are removed in example.On the contrary, Bluetooth slave devices can realize this point. Because Bluetooth slave devices are usually the equipment that some are carried with, such as Intelligent bracelet, intelligent ring, intelligence ring etc., because This embodiment of the present invention make use of this characteristic of Bluetooth slave devices, and Bluetooth slave devices are set into the mode of operation according to setting 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 automatically when the method for the embodiment of the present invention is performed The time of occurrence and time departure of bluetooth equipment, it is manually operated without the need for user, or even user will not perceive have recorded these letter Breath, substantially increases the convenience of record duration, and because the time of occurrence and time departure of target Bluetooth devices are automatic Obtain, the duration of getting along for finally calculating is also accurate enough.
A kind of embodiment of step S1 is specially:Alternately perform search operation and broadcast operation;Wherein, it is 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 used 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.It is in order in the indigo plant with broadcast operation why alternately to perform search operation Tooth from equipment search for target Bluetooth devices when, it is also possible to by other bluetooth equipments (including bluetooth master and other bluetooths from setting It is standby) search.
The another embodiment of step S1 is specifically included:
After one search operation has been performed, a broadcast operation is performed;Wherein, the search operation is used 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 once described broadcast operation in office terminates, the motion state of the Bluetooth slave devices is judged;
When the Bluetooth slave devices are judged as static, the broadcast operation is performed again;
When the Bluetooth slave devices are judged as motion, the search operation is performed again.
Because the power consumption of search operation is far longer than the power consumption of broadcast operation, according to another kind of embodiment party for stating step S1 Formula, if the Bluetooth slave devices remain static, such as described Bluetooth slave devices rest on always a place, then described Bluetooth slave devices are performing always the broadcast operation and are not removing to perform search operation, so as to greatly reduce the bluetooth from setting Standby power consumption.When the Bluetooth slave devices perform again search operation, to obtain the time of occurrence of the target Bluetooth devices Or time departure.For example, first preset duration is 1 second, and second preset duration is 1 minute, i.e., each search operation Continue 1 second, and every time broadcast operation continues 1 minute.
It should be noted that the motion state for how judging the Bluetooth slave devices is very conventional technique, for example, pass through Acceleration transducer obtains the acceleration information of the Bluetooth slave devices, and further according to acceleration information the Bluetooth slave devices are judged For static or motion.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, so as to institute Stating Bluetooth slave devices can recognize the target Bluetooth devices during other bluetooth equipments around search.The mesh The original state of mark bluetooth equipment is configured to leave state.When the target Bluetooth devices enter the Bluetooth slave devices Adjacent domain so that when the Bluetooth slave devices can search the target Bluetooth devices, the Bluetooth slave devices judge institute It is leave state to state target Bluetooth devices, and is revised as adjacent states, then the time now 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 now 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 and leave by step S2 and step S3 Between.
It is highly preferred that step S4 is specially:T1 and t2 is sent into the first bluetooth master and by institute by bluetooth State the first bluetooth master and be forwarded to server, make the server according to the more early person and t2 between t1 and t3 and t4 it Between more early person calculate the Bluetooth slave devices getting along in preset time period and record duration with the target Bluetooth devices Get up;Wherein, the target Bluetooth devices be with the Bluetooth slave devices in functional structure another Bluetooth slave devices of identical; T3 is the time of occurrence of the Bluetooth slave devices that the target Bluetooth devices get, and t4 is target Bluetooth devices acquisition The time departure of the Bluetooth slave devices for arriving, t3 and t4 is sent to the second bluetooth master by the target Bluetooth devices by bluetooth Equipment is simultaneously forwarded to the server.
Due to the target Bluetooth devices be with the Bluetooth slave devices in functional structure another bluetooth of identical from setting Standby, the Bluetooth slave devices can get the time of occurrence t1 and time departure t2 of the target Bluetooth devices, the target Bluetooth equipment can also get the time of occurrence t3 and time departure t4 of 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 near 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 and not The time of occurrence t1 of target Bluetooth devices can be got could be obtained after.At this moment the time of occurrence t3 of Bluetooth slave devices is Standard and time of occurrence t1 than the target Bluetooth devices is early.In the same manner, for the time departure of target Bluetooth devices T2 is also such with the time departure t4 of the Bluetooth slave devices.Therefore in order to accurately calculate Bluetooth slave devices and target Bluetooth Duration of getting along between equipment, target Bluetooth devices are configured to the Bluetooth slave devices identical is another in functional structure Bluetooth slave devices so that when the target Bluetooth devices can also get the time of occurrence t3 of the Bluetooth slave devices and leave 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 More early person between more early person, and the time departure t2 of target Bluetooth devices and the time departure t4 of the Bluetooth slave devices comes 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, illustrated with two situations below.
Situation one:Bluetooth slave devices are the Intelligent bracelet that user A wears, and target Bluetooth devices are the intelligence that user B wears Bracelet, and both functions are 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 obtain respectively when user A and user B mutually leave the time departure t2 of target Bluetooth devices and Bluetooth slave devices from ETAD expected time of arrival and departure t4.T1 and t2 are sent to the mobile phone of user A and are forwarded to server by Bluetooth slave devices by bluetooth, and target Bluetooth sets Standby that t3 and t4 are sent into the mobile phone of user B by bluetooth and server is forwarded to, server is according to more early between t1 and t3 More early person between person, and t2 and t4 is calculating the duration of getting along between Bluetooth slave devices and target Bluetooth devices.If it is pre- If the time period is one day in, then the duration of getting along of user A and user B in some day can be calculated.
Situation two:Bluetooth slave devices are the Intelligent bracelet that user C wears, and target Bluetooth devices are be fixed on office one Individual equipment.When into office, Bluetooth slave devices obtain the time of occurrence t1 of target Bluetooth devices to user C, when user C leaves During 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 whne when Length is used as operating time.
It should be noted that two situations of the above are two citings of the embodiment of the present invention, the present disclosure additionally applies for Other need to record the situation of duration or user in the stay time in a certain place of getting along between two users.For example, situation two In office can be changed to gymnasium, then correspondingly record stay time of the user in gymnasium intraday as user Temper duration.
As shown in Fig. 2 it is a kind of structured flowchart of Bluetooth slave devices provided in an embodiment of the present invention, including:
Bluetooth operational module 1, for searching for it in the adjacent domain of the Bluetooth slave devices according to the mode of operation of setting His bluetooth equipment;
Time of occurrence acquisition module 2, it is blue for searching target during other bluetooth equipments around search Tooth equipment, and the target Bluetooth devices are when being leave state, obtain current time going out as the target Bluetooth devices T1 between current, and be adjacent states by the status modifier of the target Bluetooth devices;
Time departure acquisition module 3, for not searching institute during other bluetooth equipments around search State target Bluetooth devices, and the target Bluetooth devices are when being adjacent states, obtain 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 sending module 4, for by bluetooth t1 and t2 to be sent into the first bluetooth master 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 record of the bluetooth equipment in preset time period.
In one embodiment, the bluetooth operational module 1 specifically for:Alternately perform search operation and setting-up exercises to music Make;Wherein, the search operation is used to search for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, every time search behaviour 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 is specifically included:
Broadcast operation performance element, for after one search operation has been performed, performing a broadcast operation;Wherein, The search operation is used to search for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices, and each search operation continues the One preset duration;The broadcast operation is used for broadcast data packet so that the Bluetooth slave devices are searched for by other Bluetooth slave devices Arrive, each broadcast operation continues the second preset duration;
Motion state judging unit, before terminating for once described broadcast operation in office, judges the Bluetooth slave devices Motion state;
The secondary performance element of broadcast operation, it is described wide for when the Bluetooth slave devices are judged as static, performing again Broadcast operation;
Search operation performance element, for when the Bluetooth slave devices are judged as motion, performing the search behaviour again Make.
It is highly preferred that the time data sending module 4 specifically for:T1 and t2 is sent into the first bluetooth by bluetooth Main equipment is simultaneously forwarded to server by first bluetooth master, make the server according to the more early person between t1 and t3, And the more early person between t2 and t4 calculates phase of the Bluetooth slave devices with the target Bluetooth devices in preset time period Place's duration simultaneously records;Wherein, the target Bluetooth devices are that identical is another in functional structure with the Bluetooth slave devices One Bluetooth slave devices;T3 is the time of occurrence of the Bluetooth slave devices that the target Bluetooth devices get, and t4 is the mesh The time departure of the Bluetooth slave devices that mark bluetooth equipment gets, t3 and t4 is 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 used to perform above-mentioned duration recording method All method and steps, its operation principle is corresponded with beneficial effect, thus is repeated no more.
The embodiment of the present invention additionally provides a kind of duration record system, including above-mentioned Bluetooth slave devices, the bluetooth from The first bluetooth master and server that the target Bluetooth devices of equipment and the Bluetooth slave devices pass through bluetooth connection.
Compared to prior art, the beneficial effects of the present invention is:The invention provides a kind of duration recording method, bluetooth From equipment and duration record system, method is performed by Bluetooth slave devices, including the mode of operation according to setting the bluetooth from The adjacent domain of equipment searches for other bluetooth equipments;Target is searched during other bluetooth equipments around search blue Tooth equipment, and the target Bluetooth devices are when being leave state, obtain current time going out as the target Bluetooth devices 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 the target Bluetooth devices are when being adjacent states, obtain current Time as the target Bluetooth devices time departure t2, and by the status modifier of the target Bluetooth devices to leave shape State;T1 and t2 by bluetooth is sent into the first bluetooth master and server is forwarded to by first bluetooth master, made Obtain the server and phase of the Bluetooth slave devices with the target Bluetooth devices in preset time period is calculated according to t1 and t2 Place's duration simultaneously records.When the method for the embodiment of the present invention is performed, Bluetooth slave devices obtain target Bluetooth devices automatically Time of occurrence and time departure, it is manually operated without the need for user, or even user will not perceive and have recorded these information, greatly improve The convenience of record duration, and because the time of occurrence and time departure of target Bluetooth devices are to obtain automatically, finally The duration of getting along for calculating is also accurate enough.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be Related hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (RandomAccess Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (11)

1. a kind of duration recording method, it is characterised in that performed by Bluetooth slave devices, methods described includes:
Mode of operation according to setting searches for other bluetooth equipments in the adjacent domain of the Bluetooth slave devices;
Target Bluetooth devices are searched during other bluetooth equipments around search, and the target Bluetooth devices are During leave state, the current time is obtained as the time of occurrence t1 of the target Bluetooth devices, 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, current time is obtained as the time departure t2 of the target Bluetooth devices, and by the mesh The status modifier of mark bluetooth equipment is leave state;
T1 and t2 by bluetooth is sent into the first bluetooth master and server is forwarded to by first bluetooth master, made Obtain the server and phase of the Bluetooth slave devices with the target Bluetooth devices in preset time period is calculated according to t1 and t2 Place's duration simultaneously records.
2. duration recording method as claimed in claim 1, it is characterised in that the mode of operation according to setting is in the indigo plant Tooth searches for other bluetooth equipments from the adjacent domain of equipment, specially:
Alternately perform search operation and broadcast operation;Wherein, the search operation is used in the neighbouring of the Bluetooth slave devices Range searching other bluetooth equipments, each search operation continues 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, it is characterised in that the mode of operation according to setting is in the indigo plant Tooth searches for other bluetooth equipments from the adjacent domain of equipment, specifically includes:
After one search operation has been performed, a broadcast operation is performed;Wherein, the search operation is used 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, each broadcast operation continues second to be preset Duration;
Before once described broadcast operation in office terminates, the motion state of the Bluetooth slave devices is judged;
When the Bluetooth slave devices are judged as static, the broadcast operation is performed again;
When the Bluetooth slave devices are judged as motion, the search operation is performed again.
4. the duration recording method as described in claims 1 to 3, it is characterised in that described to be sent to t1 and t2 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 in preset time period, specially:
T1 and t2 by bluetooth is sent into the first bluetooth master and server is forwarded to by first bluetooth master, made The server calculates the Bluetooth slave devices and institute according to the more early person between the more early person and t2 and t4 between t1 and t3 State get along duration and record of the target Bluetooth devices in preset time period;Wherein, the target Bluetooth devices are and institute State another Bluetooth slave devices of Bluetooth slave devices identical in functional structure;T3 be the target Bluetooth devices get it is described The time of occurrence of Bluetooth slave devices, t4 is the time departure of the Bluetooth slave devices that the target Bluetooth devices get, t3 The second bluetooth master is sent to by bluetooth by the target Bluetooth devices with t4 and the server is forwarded to.
5. duration recording method as claimed in claim 4, it is characterised in that the Bluetooth slave devices set with the target Bluetooth Standby is Intelligent bracelet;First bluetooth master is communication terminal with second bluetooth master.
6. a kind of Bluetooth slave devices, it is characterised in that include:
Bluetooth operational module, for searching for other bluetooths in the adjacent domain of the Bluetooth slave devices according to the mode of operation of setting Equipment;
Time of occurrence acquisition module, sets for searching target Bluetooth during other bluetooth equipments around search It is standby, and the target Bluetooth devices are when being leave state, obtain current time as the target Bluetooth devices appearance when Between t1, and by the status modifier of the target Bluetooth devices be adjacent states;
Time departure acquisition module, for not searching the target during other bluetooth equipments around search Bluetooth equipment, and the target Bluetooth devices are when being adjacent states, obtain 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 sending module, for by bluetooth t1 and t2 to be sent into the first bluetooth master and by first bluetooth Main equipment is forwarded to server so that the server calculates the Bluetooth slave devices and sets with the target Bluetooth according to t1 and t2 Standby get along duration and record in preset time period.
7. Bluetooth slave devices as claimed in claim 6, it is characterised in that the bluetooth operational module specifically for:Alternately Perform search operation and broadcast operation;Wherein, the search operation is used to search for it in the adjacent domain of the Bluetooth slave devices His bluetooth equipment, each search operation continues the first preset duration;The broadcast operation is used 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.
8. Bluetooth slave devices as claimed in claim 6, it is characterised in that the bluetooth operational module is specifically included:
Broadcast operation performance element, for after one search operation has been performed, performing a broadcast operation;Wherein, it is 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 used 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, before terminating for once described broadcast operation in office, judges the motion of the Bluetooth slave devices State;
The secondary performance element of broadcast operation, for when the Bluetooth slave devices are judged as static, the setting-up exercises to music being performed again Make;
Search operation performance element, for when the Bluetooth slave devices are judged as motion, the search operation being performed again.
9. Bluetooth slave devices as described in claim 6~8, it is characterised in that the time data sending module specifically for: T1 and t2 by bluetooth is sent into the first bluetooth master and server is forwarded to by first bluetooth master, made described Server calculates the Bluetooth slave devices and the mesh according to the more early person between the more early person and t2 and t4 between t1 and t3 Get along duration and record of the mark bluetooth equipment in preset time period;Wherein, the target Bluetooth devices are and the indigo plant Tooth another Bluetooth slave devices of the identical in functional structure from equipment;T3 is the bluetooth that the target Bluetooth devices get From the time of occurrence of equipment, t4 is the time departure of the Bluetooth slave devices that the target Bluetooth devices get, t3 and t4 The second bluetooth master is sent to by bluetooth by the target Bluetooth devices and the server is forwarded to.
10. Bluetooth slave devices as claimed in claim 9, it is characterised in that the Bluetooth slave devices set with the target Bluetooth Standby is Intelligent bracelet;First bluetooth master is communication terminal with second bluetooth master.
A kind of 11. duration record systems, it is characterised in that include Bluetooth slave devices as described in any one of claim 6~10, The target Bluetooth devices of the Bluetooth slave devices and the Bluetooth slave devices by the first bluetooth master of bluetooth connection, with And server.
CN201610884222.3A 2016-10-09 2016-10-09 Duration recording method, Bluetooth slave device and duration recording system Active CN106652068B (en)

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 device and duration recording 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 device and duration recording system

Publications (2)

Publication Number Publication Date
CN106652068A true CN106652068A (en) 2017-05-10
CN106652068B 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 device and duration recording system

Country Status (2)

Country Link
CN (1) CN106652068B (en)
WO (1) WO2018064867A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
CN106652068B (en) 2019-04-30
WO2018064867A1 (en) 2018-04-12

Similar Documents

Publication Publication Date Title
CN104885387B (en) Ultrasonic communication system
HK1137092A1 (en) Method for processing authentication request message in social network and device thereof
WO2008059534A3 (en) System and method for facilitating a ready social network
TW200518525A (en) System and method for wireless data communications
FI20041653A (en) An Energy Efficient Wireless Sensor Network, Node Devices for it, and a Method for Organizing Telecommunications in a Wireless Sensor Network
WO2004100428A3 (en) Managing contacts in a communication network
CN109800098A (en) Service exception node positioning method, device, computer equipment and storage medium
CN103561074B (en) Point out the carry-on location method and device that equipment arrives at the most on time, system
CN105635449A (en) Alarm clock control method and mobile terminal
ATE548825T1 (en) METHOD AND SYSTEM FOR CONNECTING USER DEVICES TO A COMMUNICATIONS NETWORK
CN107872494A (en) A kind of information push method and device
CN109768869A (en) A kind of traffic forecast method, system and computer storage medium
Cabero et al. Acquisition of human traces with Bluetooth technology: Challenges and proposals
CN101005663A (en) Mobile terminal with lost tracking function and lost tracking method of mobile terminal
CN106652068A (en) Duration recording method, Bluetooth slave device and duration recording system
CN104869217A (en) Method and terminal for marking communication information
CN107610259A (en) A kind of Work attendance method and device based on surrounding environment marker
CN106407794B (en) A method of prevent beacon equipment to be forged or replicate
CN109287511A (en) The method, apparatus of training pet control equipment and the wearable device of pet
CN106487410B (en) A kind of authority control method and device of message interruption-free
CN104811560A (en) Message reminding method and message reminding device
Goggin Disability, mobiles, and social policy: New modes of communication and governance
CN107566447A (en) A kind of method for managing security and Internet of Things server
CN106658658A (en) Wireless configuration method and device for intelligent terminal equipment
CN106453894A (en) Method for sensing whether communication device is forgotten or not

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