Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of method and system of registering based on indoor positioning technology, can realize identification by indoor positioning technology, and realizes and on and off dutyly automatically registering according to the distance value of subscriber equipment and indoor positioning base station.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of method of registering based on indoor positioning technology is provided, the method comprises: subscriber equipment is in the base station signal coverage of indoor positioning base station time, by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and facility information corresponding subscriber equipment and distance value are sent to indoor positioning base station; Indoor positioning base station receiver equipment information and distance value, and facility information and distance value are sent to identified server; Identified server receiving range value and facility information, and judge according to facility information whether subscriber equipment is registered; If judge that subscriber equipment is registered, whether the further judging distance value of identified server meets pre-conditionedly, if so, judges that subscriber equipment registers successfully; Identified server registering the time current time as subscriber equipment, record is registered the time, and transmission is registered the time to subscriber equipment.
Wherein, subscriber equipment is in the base station signal coverage of indoor positioning base station time, before distance value by Beacon commercial measurement subscriber equipment and indoor positioning base station, method also comprises: subscriber equipment sends corresponding facility information to identified server, and identified server is registered facility information and facility information is stored in register list.
Wherein, judge that according to facility information whether subscriber equipment is registered, and comprising: whether judgment device information is stored in register list; If so, judge that subscriber equipment is registered.
Wherein, it is pre-conditioned whether the further judging distance value of identified server meets, if, judge that subscriber equipment registers successfully, comprise: whether identified server judging distance value is less than predeterminable range value, wherein, predeterminable range value is less than the radius of base station signal coverage; If so, judge that subscriber equipment working registers successfully.
Wherein, it is pre-conditioned whether the further judging distance value of identified server meets, if, judge that subscriber equipment registers successfully, comprise: whether identified server judging distance value is greater than predeterminable range value, wherein, predeterminable range value is less than the radius of base station signal coverage; If so, judge subscriber equipment come off duty register successfully.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of system of registering based on indoor positioning technology is provided, this system comprises subscriber equipment, indoor positioning base station and identified server, indoor positioning base station is connected with subscriber equipment and identified server signal respectively, and subscriber equipment is connected with identified server signal; Wherein: subscriber equipment comprises measurement module, equipment receiver module and equipment sending module, measurement module is connected with equipment receiver module and equipment sending module respectively, subscriber equipment is in the base station signal coverage of indoor positioning base station time, measurement module is for passing through the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and equipment sending module is for being sent to indoor positioning base station by facility information corresponding subscriber equipment and distance value; Indoor positioning base station comprises base station receiver module and base station sending module, and base station receiver module is for receiving equipment information and distance value, and base station sending module is for being sent to identified server by facility information and distance value; Identified server comprises server receiver module, Registering modules, judge module, the module of registering and server sending module, server receiver module is connected with Registering modules, Registering modules is connected with judge module, judge module is connected with the module of registering, the module of registering is connected with server sending module, wherein: server receiver module is for receiving range value and facility information; Registering modules is for judging according to facility information whether subscriber equipment is registered; Whether judge module meets pre-conditioned for judging distance value in the time that Registering modules judges that subscriber equipment is registered; The module of registering judges when pre-conditioned for meeting in judge module judging distance value that subscriber equipment registers successfully, and registering the time current time as subscriber equipment, and record is registered the time; Server sending module for sending and register the time to subscriber equipment in the time that the module of registering judges that subscriber equipment is registered success; The time of registering and the position of registering that equipment receiver module sends for reception server sending module.
Wherein, equipment sending module is also for sending corresponding facility information to identified server, and Registering modules is also for registering facility information and facility information being stored in to register list.
Wherein, whether Registering modules is also stored in register list for judgment device information, and Registering modules is also for judging that in the time that judgment device information is stored in register list subscriber equipment is registered.
Wherein, whether judge module is less than predeterminable range value for judging distance value, and wherein, predeterminable range value is less than the radius of base station signal coverage; The module of registering is registered successfully for judge subscriber equipment working in the time that judge module judging distance value is less than predeterminable range value.
Wherein, whether judge module is greater than predeterminable range value for judging distance value, and wherein, predeterminable range value is less than the radius of base station signal coverage; The module of registering is registered successfully for judging that in the time that judge module judging distance value is greater than predeterminable range value subscriber equipment is come off duty.
The invention has the beneficial effects as follows: the situation that is different from prior art, the present invention is by subscriber equipment in the base station signal coverage of indoor positioning base station time, by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and facility information corresponding subscriber equipment and distance value are sent to indoor positioning base station; Indoor positioning base station receiver equipment information and distance value, and facility information and distance value are sent to identified server; Identified server receiving range value and facility information, and judge according to facility information whether subscriber equipment is registered; If judge that subscriber equipment is registered, whether the further judging distance value of identified server meets pre-conditionedly, if so, judges that subscriber equipment registers successfully; Identified server registering the time current time as subscriber equipment, record is registered the time, and transmission is registered the time to subscriber equipment.By the way, the present invention can and realize the identification of subscriber equipment by the distance value of indoor positioning commercial measurement subscriber equipment and indoor positioning base station, and further realize and on and off dutyly automatically registering according to the distance value of subscriber equipment and indoor positioning base station after identification, effectively improve employee's efficiency of registering of checking card.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
As shown in Figure 1, Fig. 1 is the schematic flow sheet that the present invention is based on the first embodiment of the method for registering of indoor positioning technology.The method comprises the following steps:
Step S101: subscriber equipment is in the base station signal coverage of indoor positioning base station time, by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and facility information corresponding subscriber equipment and distance value are sent to indoor positioning base station.
In the present embodiment, indoor positioning base station is preferably iBeacon base station.It first creates a signal area (base station signal coverage) by use low-power consumption Bluetooth technology, and with broadcast type transmitting base station signal in signal area.When behind subscriber equipment entering signal region, in subscriber equipment, support that the positioning function application program of Beacon technology is activated, thus user device responsive base station signal, to make indoor positioning base station to detect and to have subscriber equipment in base station signal coverage.
Before step S101, subscriber equipment preferentially sends facility information that subscriber equipment is corresponding to identified server, to make identified server facility information be registered and after registration, facility information is stored in register list.Wherein, facility information comprises subscriber identity information or subscriber equipment No. ID, is stored in register list for No. ID of the subscriber identity information of registered subscriber equipment or subscriber equipment.
Certainly, in other embodiments, subscriber equipment is preferably installed the application program with positioning function, automatically opens the application program with positioning function in subscriber equipment very first time section on weekdays; Transmitting base station signal in the preferred very first time section on weekdays in indoor positioning base station.Indoor positioning base station is with when broadcast transmitting base station signal, when indoor positioning base station is detected while having subscriber equipment in base station signal coverage, firing order is to subscriber equipment, so that subscriber equipment is by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station.As be on duty the stage, subscriber equipment the morning on Monday to Friday 8:00-9:30 during this period of time, automatically open the application program with positioning function, simultaneously indoor positioning base station also the morning on Monday to Friday 8:00-9:30 during this period of time in transmitting base station signal.In the next stage, subscriber equipment the afternoon on Monday to Friday 5:00-7:30 during this period of time, automatically open the application program with positioning function, simultaneously indoor positioning base station also the afternoon on Monday to Friday 5:00-7:30 during this period of time in transmitting base station signal.
In addition, the present embodiment also can be in working time section be opened online, such as 8:00-in morning 20:00 in evening, by real-time detection subscriber equipment whether in base station signal coverage, real-time working state, the position etc. of carrying out recording user equipment with this, improve practicality.
Step S102: indoor positioning base station receiver equipment information and distance value, and facility information and distance value are sent to identified server.
Step S103: identified server receiving range value and facility information, and judge according to facility information whether subscriber equipment is registered.
In step S103, preferably whether be stored in register list by judgment device information, if so, judge that subscriber equipment is registered; If not, judge that subscriber equipment do not register.As register list stores the facility information of subscriber equipment, in register list, there are the subscriber identity information of subscriber equipment or No. ID of subscriber equipment, judge that subscriber equipment is registered.
Step S104: if judge that subscriber equipment is registered, whether the further judging distance value of identified server meets pre-conditionedly, if so, judges that subscriber equipment registers successfully.
In the present embodiment, check card while registering when being on duty, whether identified server judging distance value is less than predeterminable range value; If so, judge that subscriber equipment working registers successfully.When checking card while registering coming off duty, whether identified server judging distance value is greater than predeterminable range value; If so, judge subscriber equipment come off duty register successfully.Wherein predeterminable range value is self-defining value, and predeterminable range value is less than the radius of base station signal coverage, specifically need to determine according to actual conditions.
Step S105: identified server registering the time current time as subscriber equipment, record is registered the time, and transmission is registered the time to subscriber equipment.
In step S105, subscriber equipment can be confirmed to check card to register successfully after receiving the time of registering.
As shown in Figure 2, Fig. 2 is the schematic flow sheet that the present invention is based on the second embodiment of the method for registering of indoor positioning technology.The method comprises the following steps:
Step S201: subscriber equipment is detected in indoor positioning base station.
Wherein, the preferred very first time section on weekdays in indoor positioning base station is interior with broadcast type transmitting base station input subscriber equipment, as the 8:00-9:30 transmitting base station input subscriber equipment in morning on Monday to Friday.Subscriber equipment is preferably opened the application program with positioning function in very first time section on weekdays automatically, as the 8:00-9:30 in morning on Monday to Friday opens the application program with positioning function automatically.
Step S202: judge whether to detect and have subscriber equipment in base station signal coverage.
Wherein, subscriber equipment can receive base station signal in base station signal coverage.After family equipment enough receives base station signal, transmitting response signal, to indoor positioning base station, detects and has subscriber equipment so that indoor positioning base station is judged in base station signal coverage.
In the time judging that detection does not have subscriber equipment in base station signal coverage, return to step S201.In the time judging that detection has subscriber equipment in base station signal coverage, execution step S203: by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and facility information corresponding subscriber equipment and distance value are sent to indoor positioning base station
Wherein, in the time judging that detection has subscriber equipment in base station signal coverage, indoor positioning base station preferentially sends a command to subscriber equipment, so that obtain the distance value of user's device measuring subscriber equipment and indoor positioning base station; Indoor positioning base station also sends a command to identified server simultaneously, to make identified server open the function of registering of checking card.
After execution of step S203, execution step S204: indoor positioning base station receiver equipment information and distance value, and facility information and distance value are sent to identified server.
Identified server receives after facility information and distance value, execution step S205: identified server judges according to facility information whether subscriber equipment is registered.
Do not register if identified server judges subscriber equipment, return to step S201.If it is registered that identified server judges subscriber equipment, continue execution step S206: whether identified server judging distance value is less than predeterminable range value.
If identified server judging distance value is not less than predeterminable range value, continue to return step S206.If identified server judging distance value is less than predeterminable range value, perform step S207: judge that subscriber equipment working registers successfully.
After working is registered successfully, continue execution step S208: identified server is using current time as the time of registering, record register time and the position of registering, and transmission is registered time and the position of registering to subscriber equipment.
In the present embodiment, subscriber equipment receives the time of registering of identified server transmission and registers behind position, and demonstration user working is registered successfully, and subscriber equipment cuts out the application program with positioning function this moment.In addition, when the time of registering and the position of registering of not receiving in subscriber equipment very first time section on weekdays that identified server sends, or subscriber equipment is not received the base station signal that indoor positioning base station sends and is gone to work and register, and automatically shows that working is late or shows the late countdown of working.Identified server exceedes after workaday very first time section, automatically closes attendance function with power saving.
Employee punches in and registers is very first time section on weekdays, as 8:00-9:30 in morning; And employee clocks out, to register be the second time period on weekdays.After a period of time of execution of step S208, continue execution step S209: subscriber equipment is detected in indoor positioning base station.
In step S209, preferred the second time period on weekdays of indoor positioning base station is interior with broadcast type transmitting base station input subscriber equipment, as the 5:00-7:30 transmitting base station input subscriber equipment in afternoon on Monday to Friday.Subscriber equipment is preferably opened the application program with positioning function in the second time period on weekdays automatically, as the 5:00-7:30 in afternoon on Monday to Friday opens the application program with positioning function automatically.
Step S210: judge whether to detect and have subscriber equipment in base station signal coverage.
In step S210, subscriber equipment is this moment in base station signal coverage, and it can receive the base station signal of indoor positioning base station transmitting.To this, subscriber equipment receives after base station information, and indoor positioning base station just can judge in base station signal coverage and detect and have subscriber equipment.
In the time judging that detection does not have subscriber equipment in base station signal coverage, return to step S209.In the time judging that detection has subscriber equipment in base station signal coverage, execution step S211: by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and facility information corresponding subscriber equipment and distance value are sent to indoor positioning base station.
Wherein, in the time judging that detection has subscriber equipment in base station signal coverage, indoor positioning base station preferentially sends a command to subscriber equipment, so that obtain the distance value of user's device measuring subscriber equipment and indoor positioning base station; Indoor positioning base station also sends a command to identified server simultaneously, to make identified server open the function of registering of checking card.
After execution of step S211, execution step S212: indoor positioning base station receiver equipment information and distance value, and facility information and distance value are sent to identified server.
Identified server receives after facility information and distance value, execution step S213: identified server judges according to facility information whether subscriber equipment is registered.
Do not register if identified server judges subscriber equipment, return to step S209.If it is registered that identified server judges subscriber equipment, continue execution step S214: whether identified server judging distance value is greater than predeterminable range value.
If identified server judging distance value is not greater than predeterminable range value, continue to return step S214.If identified server judging distance value is greater than predeterminable range value, perform step S215: judge subscriber equipment come off duty register successfully.
After coming off duty and registering successfully, continue execution step S216: identified server is using current time as the time of registering, record register time and the position of registering, and transmission is registered time and the position of registering to subscriber equipment.
In the present embodiment, subscriber equipment receives the time of registering of identified server transmission and registers behind position, and demonstration user comes off duty and registers successfully, and subscriber equipment cuts out the application program with positioning function this moment.Identified server exceeded after workaday the second time period, automatically closed attendance function with power saving.Certainly, in other embodiments, subscriber equipment also can be on weekdays set time point after a direct-open there is the application program of positioning function, as a direct-open after 5:00 in afternoon on weekdays has the application program of positioning function, until receive identified server send the time of registering and the position of registering after and show user come off duty register successfully, just close the application program with positioning function.Identified server also can be on weekdays set time point after a direct-open attendance function, as a direct-open attendance function after 5:00 in afternoon on weekdays, until all employee comes off duty after registering successfully and just automatically closes attendance function.
For example, on Monday to Friday morning 8:00-9:30, indoor positioning base station within this time period with broadcast type transmitting base station signal, wherein base station signal coverage is 50m (rice), and while subscriber equipment also within this time period, starts positioning function and identified server also activates to open function in this time period.In the time that subscriber equipment is 50m apart from the distance value of indoor positioning base station, subscriber equipment is in base station signal coverage this moment, receive base station signal, subscriber equipment passes through in real time the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station after response base station signal simultaneously.Subscriber equipment transmission range value and facility information are to indoor positioning base station subsequently, and distance value and facility information are sent to identified server by indoor positioning base station.Identified server receives after distance value and facility information, and whether subscriber equipment corresponding to first judgment device information is registered, and if so, whether the further judging distance value of identified server is less than predeterminable range value.If distance value is 50m, predeterminable range value is 20m, and distance value is greater than predeterminable range value this moment, continues to receive subscriber equipment that subscriber equipment measures and the distance value of indoor positioning base station, and continues judging distance value and whether be less than predeterminable range value.When distance value is 19m, distance value is less than predeterminable range value this moment, and judgement working is registered successfully, and subscriber equipment cuts out positioning function.And identified server and indoor positioning base station are continued other subscriber equipmenies judge to go to work and registered, until the time exceedes 9:30, identified server stops opening function and indoor positioning base station stops transmitting base station signal.When to Monday to Friday afternoon 5:00-7:30, indoor positioning base station within this time period with broadcast type transmitting base station signal, wherein base station signal coverage is 50m, and while subscriber equipment also within this time period, starts positioning function and identified server also activates to open function in this time period.Subscriber equipment, in base station signal coverage, receives base station signal this moment, and subscriber equipment passes through in real time the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station after response base station signal simultaneously.Subscriber equipment transmission range value and facility information are to indoor positioning base station subsequently, and distance value and facility information are sent to identified server by indoor positioning base station.Identified server receives after distance value and facility information, and whether subscriber equipment corresponding to first judgment device information is registered, and if so, whether the further judging distance value of identified server is greater than predeterminable range value.If distance value is 10m, predeterminable range value is 20m, and distance value is less than predeterminable range value this moment, continues to receive subscriber equipment that subscriber equipment measures and the distance value of indoor positioning base station, and continues judging distance value and whether be greater than predeterminable range value.When distance value is 21m, distance value is greater than predeterminable range value this moment, and judgement is come off duty and registered successfully, and subscriber equipment cuts out positioning function.And identified server and indoor positioning base station continue other subscriber equipmenies to judge next registering, until the time exceedes 9:30, identified server stops opening function and indoor positioning base station stops transmitting base station signal, or until after all employee comes off duty and registers successfully, identified server stops opening function and indoor positioning base station stops transmitting base station signal.
As shown in Figure 3, Fig. 3 is the structural representation that the present invention is based on the system of registering of indoor positioning technology, and the system of registering based on indoor positioning technology in Fig. 3 is corresponding with the method for registering based on indoor positioning technology of above-mentioned Fig. 1 and Fig. 2.This system comprises subscriber equipment 11, indoor positioning base station 12 and identified server 13, and indoor positioning base station 12 is connected with subscriber equipment 11 and identified server 13 signals respectively, and subscriber equipment 11 is connected with identified server 13 signals.As shown in Figure 4, subscriber equipment 11 comprises equipment receiver module 111, measurement module 112 and equipment sending module 113.Measurement module 112 is connected with equipment receiver module 111 and equipment sending module 113 respectively.Certainly, measurement module 112 can be installed the application program with positioning function, opens the application program with positioning function in measurement module 112 very first time section on weekdays or in the second time period.
Equipment receiver module 111 is for the base station signal that receives indoor positioning base station 12 and launch and receive the time of registering and the position of registering that identified server 13 sends.
Subscriber equipment 11 is in the base station signal coverage of indoor positioning base station 12 time, and measurement module 112 is for the distance value with indoor positioning base station 12 by Beacon commercial measurement subscriber equipment 11.
Equipment sending module 113 is for being sent to indoor positioning base station 12 by the facility information of subscriber equipment 11 correspondences and distance value.Wherein, equipment sending module 113 is also for sending corresponding facility information to identified server 13, to make identified server 13 facility information be registered and facility information is stored in register list.
As shown in Figure 5, indoor positioning base station 12 comprises base station receiver module 121 and base station sending module 122.The facility information that base station receiver module 121 sends for receiving equipment sending module 113 and distance value.Base station sending module 122 is for being sent to identified server 13 with broadcast type transmitting base station signal and by facility information and distance value, in base station sending module 122 very first time section on weekdays or in the second time period with broadcast type transmitting base station signal, or after set time point on weekdays with broadcast type transmitting base station signal.
As shown in Figure 6, identified server 13 comprises server receiver module 131, Registering modules 132, judge module 133, the module of registering 134 and server sending module 135.Server receiver module 131 is connected with Registering modules 132, and Registering modules 132 is connected with judge module 133, and judge module 133 is connected with the module 134 of registering, and the module of registering 134 is connected with server sending module 135.
Distance value and facility information that server receiver module 131 sends for receiving base station sending module 122.
Registering modules 132 is for registering facility information and facility information being stored in to register list.Registering modules 132 is for judging according to facility information whether subscriber equipment 11 is registered, and preferably, whether Registering modules 132 is stored in register list to judge whether subscriber equipment 11 is registered for judgment device information.In the time that facility information is stored in register list, Registering modules 132 judges that subscriber equipment 11 is registered.
Whether judge module 133 meets pre-conditioned for judging distance value in the time that Registering modules 132 judges that subscriber equipment 11 is registered.Wherein, whether judge module 133 is less than predeterminable range value for judging distance value and whether judge module 133 is greater than predeterminable range value for judging distance value.
The module of registering 134 judges when pre-conditioned for meeting in judge module 133 judging distance values that subscriber equipment 11 registers successfully.Wherein, the module of registering 134 is registered successfully for judge subscriber equipment 11 workings in the time that judge module 133 judging distance values are less than predeterminable range value, registering the time current time as subscriber equipment 11 simultaneously, and record is registered the time.The module of registering 134 is registered successfully for judging that in the time that judge module 133 judging distance values are greater than predeterminable range value subscriber equipment 11 is come off duty, while registering the time current time as subscriber equipment 11, and record is registered the time.Wherein, a direct-open attendance function in the module of registering 134 very first time section on weekdays or in the second time period, i.e. the function of registering on and off duty, or after set time point on weekdays with a direct-open attendance function.
Server sending module 135 for sending and register the time to subscriber equipment 11 in the time that the module 134 of registering judges that subscriber equipment 11 is registered success, and to make to point out, user is on and off duty to register successfully.
It should be noted that, the subscriber equipment 11 of the present embodiment can be mobile phone or panel computer, and corresponding facility information can be the sequence number of mobile phone, or is located at the identifier etc. of the SIM card in mobile phone, to facilitate user to carry also convenient operation.
In sum, the present invention is by subscriber equipment in the base station signal coverage of indoor positioning base station time, by the distance value of Beacon commercial measurement subscriber equipment and indoor positioning base station, and facility information corresponding subscriber equipment and distance value are sent to indoor positioning base station; Indoor positioning base station receiver equipment information and distance value, and facility information and distance value are sent to identified server; Identified server receiving range value and facility information, and judge according to facility information whether subscriber equipment is registered; If judge that subscriber equipment is registered, whether the further judging distance value of identified server meets pre-conditionedly, if so, judges that subscriber equipment registers successfully; Identified server registering the time current time as subscriber equipment, record is registered the time, and transmission is registered the time to subscriber equipment.By the way, the present invention can and realize the identification of subscriber equipment by the distance value of indoor positioning commercial measurement subscriber equipment and indoor positioning base station, and further realize and on and off dutyly automatically registering according to the distance value of subscriber equipment and indoor positioning base station after identification, effectively improve employee's efficiency of registering of checking card.
The foregoing is only embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.