Embodiment
Figure 1A is a kind of definite method in geographical location based on client-side that one exemplary embodiment of the application provides
Flow chart.As shown in Figure 1A, this method is applied to terminal device (such as hand for being provided with the client end AP P of default communication applications
The electronic equipments such as machine, tablet) on, the terminal device is configurable for realizing the client of the technical solution of the application;Should
Method may comprise steps of:
Step 102A, obtains the notice message for the beacon equipment transmitting that terminal device scans arrive, is wrapped in the notice message
Installation site information containing the beacon equipment.
In the present embodiment, interacted between terminal device and beacon equipment using near-field communication mode, including terminal
Scanning of the equipment to the beacon equipment, and transmitting operation of the beacon equipment to notice message.For example, near-field communication mode
It can include Bluetooth Low Energy (Bluetooth Low Energy, BLE) technology, then notice message can be based on BLE technologies
Announcement frame (Advertising) message etc..
In the present embodiment, management user in advance can configure beacon equipment, for example be configured for the beacon equipment
Corresponding installation site information, equipment unique mark (such as UUID (Universally Unique Identifier, it is general unique
Identification code) etc.), function type mark etc. so that these information are contained in the preset field in notice message.
Step 104A, by the positioning component assembled in the terminal device, determines the location information of the terminal device.
In the present embodiment, positioning component can be including the GPS chip built in terminal device, Big Dipper chip etc., the application
Limited not to this.
In the present embodiment, although step 104 is arranged after step 102, positioning component can be realized at any time
Detection operation to location information, and between step 102 and there is no inevitable dependence or sequencing.
Step 106A, the client-side program by presetting communication applications is sent to the server-side of the default communication applications please
Seek message, the installation site information and the location information included in the request message, with by the server-side according to institute
Installation site information and the location information are stated, determines whether the terminal user that the client-side program logs in is geographical in presetting
Position.
In one embodiment, the preset geographical position includes:The corresponding predefined installation site of the beacon equipment, with
And predefined terminal location;When the installation site information matches are in the predefined installation site, and the location information
When being matched with the predefined terminal location, the terminal user is judged as being in the preset geographical position.So, lead to
The installation site information to beacon equipment, the location information of terminal device respectively is crossed to be compared and verify, can be more accurate
Ground determines whether terminal user is located at preset geographical position.
In another embodiment, the preset geographical position includes:Predefined positional information;When the installation position confidence
When breath, the location information are consistent with the predefined positional information, the terminal user is judged as presetting in described
Geographical location.In the case of one kind, directly installation site information, location information and predefined positional information three can be carried out
Compare;In another case, it can incited somebody to action first by installation site information compared with location information, when both are consistent
The consistent information compared with predefined positional information, and when installation site information and location information it is inconsistent when, can
It can be due to that terminal user discharges beacon equipment or forged virtual location information, can directly be determined as that terminal user does not locate
In preset geographical position, so as to simplify processing procedure.
In the present embodiment, notice message can also include function type and identify, and function type mark is also added
Add in the request message, so that the server-side chooses corresponding preset geographical position according to function type mark.
For example, the corresponding processing function of function type mark can be including at least one following:Attendance checking function, function of registering.To examine
Exemplified by diligent function, identified by the function type included in notice message corresponding to attendance checking function so that server-side can incite somebody to action
The geographical location of terminal user is applied to attendance checking function, such as by the geographical location and the place of working of the pre-configured terminal user
Point is compared, so as to perform automatic attendance operation when both are consistent;Similarly, by taking meeting signature function as an example, by
The function type mark corresponding to the function of registering of certain meeting is included in notice message so that server-side can be by terminal user
Geographical location be applied to register function, such as by the geographical location with pre-configured meeting-place compared with, so that ought two
Performed when person is consistent and be automatically signing in operation.
In the present embodiment, the equipment unique mark of beacon equipment can be included in notice message;So, when predefined
When the condition of arousing is satisfied, the client-side program can be aroused automatically;Wherein, the condition of arousing can include:It is described
Equipment unique mark is associated to the default communication applications in advance.
In one embodiment, each management user in advance carries out beacon equipment with postponing, can be by the beacon equipment
Equipment unique mark uploads and is stored in server-side, then all equipment unique marks for being stored in server-side, can be by
It is judged to associating to this in advance and presets communication applications.
In another embodiment, when management user is there are during corporate home, that is, manage user only can to affiliated group into
During row management, if the equipment unique mark of a certain beacon equipment is uploaded to server-side by management user, server-side can set this
Standby unique mark and the affiliated group of management user are associated.So, when terminal user belongs to any group, client
The equipment unique mark for all beacon equipments that program can obtains from server-side corresponding to any group is held, using as advance
The equipment unique mark of communication applications is preset in association to this.
In the present embodiment, in order to ensure the success to client is aroused, the condition of arousing can also include:What is scanned
The equipment unique mark of beacon equipment associated in advance to this preset communication applications while, it is pre- also to detect that terminal device occurs
The spatial movement of definition, such as the spatial movement can include " shaking " or " horizontal reciprocating movement " etc.;Further, may be used also
By terminal user according to the actual requirements to the spatial movement into edlin and self-defined.
In the present embodiment, terminal device can determine the acquisition moment of the notice message;Wherein, when the acquisition
When carving in the predefined automatic positioning period, the notice message can be handled, to generate and send described ask
Seek message;And when being not in the automatic positioning period at the acquisition moment, the notice message can be ignored.That
, for the event with time-bounded demand such as attendance, meeting signature, it is possible to reduce terminal device is non-automatic
Control process operation in positioning time section, contributes to the power consumption of reduction terminal device, extension to use duration.
In the present embodiment, terminal device can receive the response message of server-side return, and work as the response message table
When the bright installation site information, the location information pre-configured place corresponding with the terminal user are consistent, to described
Terminal user plays default prompting audio.By taking attendance scene as an example, the corresponding pre-configured place of terminal user can be place of working
Point, and when installation site information, location information are consistent with the job site, show that the terminal user determines to have arrived at work
Make place, the prompting audio such as " good morning ", " you have a long day " can be played to the terminal user;In fact, it is based on this Shen
Technical solution please, terminal user pass through appropriate audio possibly even without performing any operation on the terminal device
Prompting, can make terminal user know attendance success, play corresponding suggesting effect.
In the present embodiment, terminal device can read the default flag bit in the terminal device, the default mark
Position is reset to be not carried out state according to predetermined period;When getting the notice message, if the default flag bit is in
It is described to be not carried out state, then the notice message is handled, to generate and send the request message;Wherein, when described
When request message make it that the server-side determines the geographical location of the terminal user, the default flag bit is configured as
Execution state;When getting the notice message, if the default flag bit is in the executed state, ignore described
Notice message.So, by switching to the state for presetting flag bit, terminal device can be made only to be performed in same predetermined period
Once to the definite operation in the geographical location of terminal user, the power consumption that avoiding repetitive operation causes terminal device is lifted, and is kept away
Exempt to transmit substantial amounts of garbage to server-side.
So, when the technical solution of the application is applied to the automatic attendance process under business administration scene, Tu1BShi
The flow chart of the definite method in another geographical location based on end side that one exemplary embodiment of the application provides.Such as Figure 1B
Shown, this method is applied to be provided with the terminal device of client end AP P of default communication applications, is configured the terminal device
To be used for realization the client of the technical solution of the application;This method may comprise steps of:
Step 102B, obtains the notice message for the beacon equipment transmitting that terminal device scans arrive, is wrapped in the notice message
Installation site information containing the beacon equipment.
Step 104B, by the positioning component assembled in the terminal device, determines the location information of the terminal device.
Step 106B, the client-side program by presetting communication applications is sent to the server-side of the default communication applications please
Seek message, the installation site information and the location information included in the request message, with by the server-side according to institute
Installation site information and the location information are stated, realizes that the attendance of the terminal user logged in the client-side program is handled.
In the technical program, terminal device is examined by the installation site information and GPS chip for obtaining beacon equipment respectively
The location information measured, and the installation site information and the location information are sent to server-side so that server-side can be by it
Compared with predefined attendance place, so as to automatically determine whether the terminal user is located at attendance place;When judgement terminal
When user is located at attendance place, server-side can be performed automatically the attendance processing to the terminal user.
Further, by arousing to the automatic of client-side program, terminal user even without enabling terminal device manually
On client-side program, you can by the interaction between the terminal device, beacon equipment and server-side, realize and the terminal used
The full-automatic work attendance processing at family, greatly simplified user's operation, improve attendance efficiency.
Correspondingly, Fig. 2 be one exemplary embodiment of the application provide it is a kind of based on service side geographical location really
Determine the flow chart of method.As shown in Fig. 2, this method is applied on server, it is configured with the server and is used for realization the application
Technical solution server-side;This method may comprise steps of:
Step 202, the request message that terminal device is sent by presetting the client-side program of communication applications is received, it is described
The installation site information of beacon equipment arrived in request message comprising the terminal device scans and the positioning of the terminal device
Information;Wherein, the installation site information is contained in the notice message that the beacon equipment is sent to the terminal device,
The location information is determined to obtain by the terminal device by built-in positioning component.
Step 204, according to the installation site information and the location information, the end that the client-side program logs in is determined
Whether end subscriber is in preset geographical position.
In one embodiment, when the preset geographical position includes:The corresponding predefined installation site of the beacon equipment,
And during predefined terminal location, if the installation site information matches in the predefined installation site, and the positioning
Information matches then judge that the terminal user is in the preset geographical position in the predefined terminal location.
In another embodiment, when the preset geographical position includes predefined positional information, by the installation position
Confidence is ceased compared with the location information;It is when the installation site information is consistent with the location information, this is consistent
Positional information further compared with the predefined positional information, and when result for it is consistent when judge that the terminal is used
Family is in the preset geographical position.
In the present embodiment, when also the function type comprising the beacon equipment identifies the request message, according to institute
State function type mark and choose corresponding preset geographical position.Wherein, function type identifies corresponding processing function and can include
At least one of:Attendance checking function, function of registering etc..For example, when function type mark corresponds to attendance checking function, geography is preset
Position can be predefined attendance place, such as office;When function type mark, which corresponds to, registers function, geography is preset
Position can be predefined place of registering, such as meeting room etc..
In the present embodiment, when server-side receives the configuration message of management user's transmission of any group, and the configuration
When the equipment unique mark of some beacon equipments is included in message, server-side can be by the equipment unique mark in the configuration message
Associate to any group.So, when the equipment unique mark included in the notice message that client-side program receives is advance
When associating to the affiliated group of terminal user, which can be judged as association in advance to the default communication should
With so that the client-side program is aroused and in response to the notice message automatically.
By above technical scheme as it can be seen that the application is by being scanned neighbouring beacon equipment by terminal device so that
The installation site information of the beacon equipment can be applied to the positioning action to terminal user, to lift the positioning to terminal user
Accuracy;Meanwhile by the way that the installation site information of beacon equipment is combined with the location information of terminal device, the installation can be made
Be mutually authenticated between positional information and the location information, and can avoid being used alone installation site information or location information and
The corrupt practice easily formed.
Fig. 3 is a kind of scene signal in geographical location for automatically determining user that one exemplary embodiment of the application provides
Figure.As shown in Figure 3, it is assumed that a beacon equipment 31 is installed at the foreground A points of Enterprise portal, which can be in scope
Transmitting notice message in 32;For example, when the beacon equipment 31 uses the ibeacon agreements in correlation technique, the notice message
Can be announcement frame message, certain the application is limited not to this.On the one hand, can by enterprise management user by
Mobile phone 33 is used at B points, and by the interaction between the mobile phone 33 and beacon equipment 31, server 34, is realized to the letter
The configuration operation of marking device 31;On the other hand, based on the beacon equipment 31 for having completed configuration, when enterprise staff enters along circuit 35
During enterprises, the notice that mobile phone 36 which uses can receive the transmitting of beacon equipment 31 at such as C points disappears
Breath, and the automatic attendance operation to the enterprise staff is realized accordingly, operated without the enterprise staff active adversary machine 36
And processing.
In order to make it easy to understand, separately below for mobile phone 33 to the configuration process of beacon equipment 31, and mobile phone 36 from
Dynamic attendance process is described in detail.
Fig. 4 is a kind of flow chart for configuration beacon equipment that one exemplary embodiment of the application provides.As shown in figure 4, should
Flow may comprise steps of:
Step 402, the transmitting of beacon equipment 31 acquiescence notice frame message.
In this embodiment it is assumed that beacon equipment 31 uses ibeacon agreements, which be not configured it
Before, acquiescence notice frame message can be launched according to default configuration, i.e. beacon equipment 31 according to default cycles and gives tacit consent to transmission power,
Transmitting acquiescence notices frame message repeatedly in acquiescence launch channel.
Step 404,33 starting device management function of mobile phone.
In the present embodiment, by installing the client-side program of default communication applications on mobile phone 33, for managing user
By the client-side program starting device management function, so as to fulfill the configuration operation to beacon equipment 31;Similarly, by
The client-side program of the default communication applications is installed on mobile phone 36, is realized by the client-side program for enterprise staff and examined automatically
The business administration function such as diligent.
Default communication applications can be any type;In one embodiment, default communication applications can be enterprise's Instant Messenger
News application, since enterprise instant communication application can know that the enterprises such as enterprise organization structure, enterprise's attendance management scheme are believed
Breath, thus can realize accordingly:Identification user identity (management user or common enterprise staff), judge whether attendance succeeds
Deng so as to be adapted to carry out the various business administration functions under enterprise's scene.
By taking enterprise instant communication application " nail nail (DING Talk) " as an example.Fig. 5 shows the interface of nail nail client-side program
Schematic diagram, can include " Intelligent office " option in " work " Shipping Options Page, after management user triggers the option, Ke Yizhuan
Enter the device management pages of the Intelligent office shown in Fig. 6;Wherein, nail nail client-side program can control intelligence of the mobile phone 33 to surrounding
Energy office equipment is scanned, for example can be scanned based on Bluetooth Low Energy technology.
Step 406, mobile phone 33 receives the acquiescence notice frame message of the transmitting of beacon equipment 31.
In the present embodiment, after mobile phone 33 is scanned the Intelligent office equipment of surrounding, the intelligence scanned can be done
Postulate for being showed in the device management pages shown in Fig. 6;Wherein, by taking beacon equipment 31 as an example, when mobile phone 33 receives the letter
During the acquiescence notice frame message that marking device 31 is launched, determine that the beacon equipment 31 is arrived in scanning, and the beacon equipment 31 is showed in
In device management pages shown in Fig. 6.
As shown in fig. 6, at the title of each Intelligent office equipment, can show " to connect " option;When management user touches
After sending out corresponding " connection " option of Intelligent office equipment any, it is assumed that corresponding " connection " the option quilt of beacon equipment 31 " CCCCCC "
Triggering, above-mentioned " connection " option can be changed to " configure " and "off" option etc., then " match somebody with somebody when managing user and triggering this
Put " option when, you can realize to the beacon equipment 31 configuration operation.
Step 408, mobile phone 33 carries out beacon equipment 31 configuration operation, and corresponding configuration message is back to beacon and is set
Standby 31.
In the present embodiment, when detecting that management user triggers corresponding " configuration " option of beacon equipment 31, Ke Yizhuan
Enter the configuration page shown in Fig. 7.As shown in fig. 7, " UUID ", " Major ", " Minor ", " hair can be included in the configuration page
The project such as radio frequency rate " and " transmission power ", can carry out Edition Contains to each project by managing user, be set so as to fulfill to beacon
Standby 31 configuration operates.
" UUID " is the universal unique identifier of the beacon equipment 31, such as the UUID=123456789 in Fig. 7, when
The character length of UUID may be so defined in different communications protocol, for example UUID is defined in ibeacon agreements as 128
The identifier of position, only illustrates by taking " 123456789 " as an example herein.
" Major " and " Minor " can freely be filled in by managing user.For example, " Major " can be used for expressing the letter
The installation site information of marking device 31, such as the Major=Office in Fig. 7, it is office to show installation site, and is worked as
Show installation site for meeting room etc. during Major=Meeting;And " Minor " can be used for the work(for expressing the beacon equipment 31
Can type identification, i.e., behind the geographical location for the member of enterprise determined in the application, function type mark correspondence can be used
Processing function the geographical location information is handled, such as the Minor=001 in Fig. 7, may indicate that corresponding processing work(
It can be attendance checking function, and show corresponding processing function for meeting signature function etc. as Minor=002.
" tranmitting frequency " and " transmission power " is used for the signal transmitting behavior for limiting the beacon equipment 31 so that the beacon is set
Standby 31 using configuration " transmission power (can be by the specific magnitude of power of management user configuration;Wherein, when transmission power is higher, disappear
Cease transmitting scope 32 it is bigger) ", according to configuration " tranmitting frequency (can be by the specific magnitude of power of management user configuration;Work as hair
When radio frequency rate is higher, show that the transmitting behavior of beacon equipment 31 is more frequent) ".
Wherein, in the above-mentioned field of notice frame message, except being included in the installation site information of beacon equipment 31
Outside " Office ", " xx mansions " or similar plan position information, elevation information can also be included in installation site information,
Such as " Office-4F ", " xx mansions xx floor " etc., do not include so as to make up in the location information that GPS chip etc. detects
The defects of elevation information, realize the three-dimensional positioning to terminal user.
Step 410, beacon equipment 31 preserves the configuration content in configuration message;And 31 one side of beacon equipment is to hand
Machine 33 returns to success notification, on the other hand launches particular announcement frame message.
Step 412, mobile phone 33 sends the notification message operated for above-mentioned configuration to server 34, and right by server 34
Relevant information is associated record.
In the present embodiment, UUID, Major, Minor etc. are the default fields of the notice frame message under ibeacon agreements,
The configuration message thus sent according to mobile phone 33, beacon equipment 31 can carry out editor's configuration to acquiescence notice frame message, so that
Obtain with the particular announcement frame message that postpones so that the field such as UUID, Major, Minor in the particular announcement frame message it is interior
Appearance is consistent with the fill substance shown in Fig. 7, such as UUID=123456789, Major=Office, Minor=001 etc..
In the present embodiment, can be to mobile phone 33 after beacon equipment 31 completes configuration according to the configuration message received
Success notification is returned, such as dedicated for expressing the message of " success " implication;Alternatively, beacon equipment 31 can be directly initiated to spy
Surely the transmitting of frame message is noticed, then mobile phone 33 is when receiving the particular announcement frame message, you can has determined beacon equipment 31
Successfully complete configuration.Certainly, beacon equipment 31 can also use other modes, and the configuration operation to mobile phone 33 is fed back, example
The audio such as such as " set successfully, welcome into cloud and time of cell-phone " as beacon equipment 31 can play.
In the present embodiment, nail nail server-side is configured with server 34.Mobile phone 33 is notified by being sent to server 34
Message so that server 34 can will be associated record between the enterprise belonging to relevant configuration content and management user.Lift
For example, mobile phone 33 can be associated record for the UUID=123456789 that the beacon equipment 31 configures and above-mentioned enterprise,
So as the UUID=123456789 in the notice frame message that the member of enterprise of the enterprise receives, it may be determined that the notice
Frame message comes from beacon equipment 31.
Fig. 8 is a kind of flow chart for realizing automatic attendance that one exemplary embodiment of the application provides.As shown in figure 8, should
Flow may comprise steps of:
Step 802, beacon equipment 31 launches particular announcement frame message.
In the present embodiment, the embodiment shown in Fig. 4-7 is undertaken in, beacon equipment 31 is in the configuration operation via mobile phone 33
Afterwards, it periodically can outwards launch particular announcement frame message, can include in the particular announcement frame message:UUID、Major、Minor
Etc. field, and field contents are as shown in fig. 7, details are not described herein again.
Step 804, mobile phone 36 performs scan operation.
In the present embodiment, mobile phone 36, which can be periodically executed, operates the reception for noticing frame message, i.e., to corresponding beacon
The scan operation of equipment.The scan period of the transmit cycle of beacon equipment 31 and mobile phone 36 is simultaneously often not consistent, then works as hand
When machine 36 performs scan operation, lucky beacon equipment 31 is also performing transmitting operation, then mobile phone 36 can be achieved to the beacon
The scanning of equipment 31, so as to receive the particular announcement frame message of the beacon equipment 31 transmitting.
Step 806, when mobile phone 36 receives particular announcement frame message, the nail nail client installed on the mobile phone 36 is aroused
Program.
In the present embodiment, for the automatic attendance checking function realized desired by nail nail client-side program, nail nail client
Program can obtain the owned enterprise that is associated to the enterprise customer according to the enterprise customer currently logged at server 34
The information of all beacon equipments, such as the UUID values of these beacon equipments, so that mobile phone 36 is to these corresponding letters of UUID values
Marking device is monitored.
So, when mobile phone 36 receives particular announcement frame message, by reading what is included in the particular announcement frame message
UUID fields, and by the numerical value of the UUID fields compared with the UUID values that above-mentioned nail nail client-side program provides, if depositing
(show that the sender i.e. beacon equipment 31 of the particular announcement frame message is associated to the enterprise customer's in the UUID values to match
Owned enterprise), then mobile phone 36 arouses nail nail client-side program to realize automatic attendance.
Certainly, arousing for nail nail client-side program, can be only to arouse operation from the background, and not appear in mobile phone 36
On screen so that the whole process of automatic attendance is invisible for enterprise customer, silent completion.
Further, can also be by being superimposed other conditions so that hand on the basis of particular announcement frame message is received
Machine 36 determines the need for arousing nail nail client-side program.For example, the other conditions can include:Mobile phone 36 occurs predefined
Spatial movement, such as " shaking " etc.;So, mobile phone 36 meets to receive particular announcement frame message at the same time and occurs " to shake one
Shake " spatial movement when, just perform to nail nail client-side program arouse.In fact, by configuring some, to be different from user normal
The spatial movement of usage behavior is advised, than " shaking " described above, more can clearly give expression to the operational requirements of user, can
More precisely to determine whether enterprise customer needs mobile phone 36 to arouse nail nail client-side program really.Certainly, except above-mentioned
Spatial movement outside, any one or more other condition can also be used, the application be limited not to this.
Step 808, mobile phone 36 reads the flag bit corresponding to attendance checking function.
In the present embodiment, after mobile phone 36 receives particular announcement frame message, can read in the particular announcement frame message
Comprising Minor fields, the contents of the Minor fields is function type mark;For example, as Minor=001, show beacon
The processing function that equipment 31 is employed is attendance checking function, i.e., nail nail client-side program needs to realize automatic attendance checking function accordingly.Again
For example as Minor=002, showing that the processing function that beacon equipment 31 is employed is meeting signature function, i.e., nail follows closely client
Program needs to realize that automatic conference is registered function accordingly.Certainly, if nail nail client-side program is only used for realizing simple function, than
As only realized automatic attendance checking function, then can not also be identified in particular announcement frame message comprising above-mentioned function type.
By taking attendance checking function as an example.The flag bit corresponding to attendance checking function can be preset with nail nail client-side program, when this
Represent to be not carried out state when flag bit is 0, i.e., nail nail client-side program has not carried out automatic attendance operation, then nail nail client journey
Sequence should perform the automatic attendance to enterprise customer based on the notice frame message that mobile phone 36 receives;And when the flag bit is 1
Represent executed state, i.e., nail nail client-side program has been carried out automatic attendance operation, then nail nail client-side program should be whole
Only handle, avoid repeating attendance.In fact, attendance operation has periodically, only need to perform attendance behaviour in each cycle
Make, then in the cycle that nail nail client-side program can be operated according to the attendance, periodically above-mentioned flag bit is reset to and is not carried out
State, is operated with ensuring that each cycle can smoothly perform automatic attendance.
Step 810, mobile phone 36 determines current time;If current time belongs to the predefined automatic attendance period, turn
Enter step 812, otherwise termination.
In the present embodiment, attendance operation has timeliness.For example, to the hilllock moment it is 8 a.m. 30 as defined in the enterprise
Timesharing, normal attendance operation should 8: 30/preceding completion, and should be at least the same day, then to hilllock oneself
Dynamic attendance operation can correspond to the automatic attendance period of " 30 minutes " at 0 point to 8 points.Similarly, when leaving the post as defined in enterprise
Carve as 17: 30 timesharing in afternoon, normal attendance operation should 17: 30/it is rear complete, and same day hair should be at least
It is raw, then the automatic attendance operation left the post can correspond to the automatic attendance period of " " at 17 points at 30 minutes to 24 points.
So, after nail nail client-side program is aroused by mobile phone 36, nail nail client-side program can obtain current time, and
Judge that current time was in the above-mentioned automatic attendance period;For example, current time is 8: 10 timesharing, belong at " 0 point to 8 points
30 points " the automatic attendance period, automatic attendance operation can be performed, and current time is 14: 20 timesharing, is not belonging to any
The automatic attendance period, because without automatic attendance operation should be performed.
Step 812, mobile phone 36 determines the location information of itself by built-in GPS chip.
Step 814, mobile phone 36 sends request message to server 34.
Step 816, server 34 determines the geographical location of corresponding enterprise customer according to request message.
In the present embodiment, in the present embodiment, can be included in request message:The installation that particular announcement frame message includes
The location information that positional information and GPS chip detect.
It is assumed that installation site information is the content of above-mentioned Major fields, for example the content can be " Office ", show
The installation site of beacon equipment 31 is enterprise office, and the detailed of the enterprise office can be prerecorded with server 34
Address.And the location information that GPS chip detects can be " xx mansions " etc., then by by the enterprise office in detail
Location is compared with being somebody's turn to do " xx mansions ", you can determines the uniformity between installation site information and location information.
Wherein, can be using the consistent place as enterprise customer's when installation site information is consistent with location information
Geographical location;And when installation site information and location information are inconsistent, it is understood that there may be enterprise customer unloads beacon equipment 31
The corrupt practice such as take away or there are other improper factors, server 34 can terminate automatic attendance operation.
Step 818, server 34 is compared the geographical location of enterprise customer and the job site that its owned enterprise configures
Compared with being determined as attendance success when both are consistent, and be transferred to step 820.
Step 820, server 34 returns to the successful notification message of attendance to mobile phone 36.
In the present embodiment, the owned enterprise of enterprise customer is provided with job site in advance, for example the job site is same
It can be configured by above-mentioned management user;So, the work configured when the geographical location of enterprise customer with its owned enterprise
During place consistent (such as identical or deviation is less than preset value), it is possible to determine that it is successful for attendance, and return to notification message.
Wherein, above-mentioned function type can be included in request message to identify, i.e. Minor fields in particular announcement frame message
Content so that server 34 is it will be seen that the request message is used to perform automatic attendance operation.It is, of course, also possible to disappear in request
The message content of other forms is included in breath, is applied to realize that automatic attendance operates to express the request message, the application is not
This is limited.
Certainly, except the attendance place determination mode shown in step 816-818, can also use at other modes
Reason.For example, server 34 can will be managed in the UUID fields that user configures for beacon equipment 31 in above-mentioned step 412
Equipment unique mark, the advance associated storage of carry out such as installation site information in Major fields so that server 34 is according to step
The equipment unique mark included in rapid 814 request messages received, can find out pre-stored installation site accordingly, so that
Compare the uniformity between installation site information and the pre-stored installation site.Meanwhile server 34 can obtain request message
In the location information that includes, and the job site (i.e. attendance place) that the enterprise customer owned enterprise is set, and determine that this is determined
Uniformity between position information and the job site.So, when installation site information is consistent with the pre-stored installation site, positioning
When information is consistent with job site, it may be determined that for attendance success.
In addition, when the job site in the geographical location of enterprise customer and the configuration of its owned enterprise is inconsistent, it is judged to examining
Diligent failure, server 34 can return to the notification message of attendance failure to mobile phone 36.
Step 822, mobile phone 36 informs its automatic attendance success by playing preset audio to enterprise customer.
In the present embodiment, mobile phone 36 can be by when playing such as " good morning ", leaving the post attendance during the attendance of hilllock
Play contents such as " you have a long day " so that enterprise customer obtains good application experience.
Certainly, in addition to playing preset audio, mobile phone 36 can also use the forms such as displaying PUSH message, Xiang Qi
Industry user informs its automatic attendance success, and the application is limited not to this.
Step 824, flag bit of the renewal of mobile phone 36 corresponding to attendance checking function.
In the present embodiment, when automatic attendance operates successfully, mobile phone 36 can be executed shape by updating flag bit
State so that even if enterprise customer when carrying mobile phone 36 is by near the beacon equipment 31 again, will not repeat attendance behaviour
Make.
In addition, the automatic attendance operation in the application, does not conflict between the manual attendance operation in correlation technique.With
Family still can follow closely the attendance checking function (than " attendance " option in interface as shown in Figure 5) in nail client-side program by startup,
To realize that manual attendance operates.Also, after manual attendance operation is performed in user, above-mentioned flag bit is updated to
Execution state, performs to avoid automatic attendance checking function and repeats attendance.
In the above-mentioned technical proposal of the application, beacon equipment can be applied to automatically determine the geographical location of user,
And further realize that default processing function, such as automatic attendance, automatic conference are registered.And in another technical solution, letter
Marking device in itself and is not exclusively suitable for automatically determining the geographical location of user, but when the terminal device that terminal user uses can not essence
Certainly position when, can aid in completing positioning function by means of beacon equipment.Correspondingly, Fig. 9 is one exemplary implementation of the application
The flow chart of the definite method in another geographical location based on client-side that example provides.As shown in figure 9, this method is applied to
On terminal device, it may comprise steps of:
Step 902, by the positioning component assembled in terminal device, the location information of the terminal device is detected.
In the present embodiment, positioning component can be GPS chip built in terminal device etc., can be used for detecting the end
The location information of end equipment.
Step 904, when the positioning auxiliary function that communication applications are preset in the terminal device is triggered by user, institute is judged
The distance that differs stated between location information and the actual geographic position of the terminal device exceeds pre-determined distance, and starts near
Beacon equipment scan function.
In the present embodiment, terminal user can be transferred to shown in Figure 10 either manually or by all " attendance " options as shown in Figure 5
The attendance page, and by click on " checking card " button realize manual attendance.After the attendance page shown in Figure 10 is transferred to, terminal is set
It is standby to periodically detect location information, until completing manual attendance operation;Wherein, terminal device can be determined what is detected
Position information is compared with the attendance place that terminal user owned enterprise configures, the gap between location information and attendance place
When larger, it can show " being not presently within the range of attendance " shown in Figure 10, then pressed even if terminal user triggers " checking card "
Button, which also can not be successfully, realizes manual attendance.
In fact, terminal user may be had been positioned near attendance place, only because the positioning component in terminal device
There are certain error, causes location information inaccurate, or even there are relatively large deviation between attendance place.So, in order to ensure
In this case, terminal user can smoothly complete attendance operation, " auxiliary attendance " option shown in Figure 10 can be provided, when the choosing
When item is chosen by terminal user, show that above-mentioned positioning auxiliary function is triggered, then terminal device can set neighbouring beacon
It is standby to be scanned.
Wherein, for the scan operation of beacon equipment, the embodiment shown in Fig. 1-4 is may be referred to, details are not described herein again.
Step 906, when any beacon equipment is arrived in scanning, the notice message of any beacon equipment transmitting, institute are obtained
State the equipment unique mark or installation site information that the beacon equipment is included in notice message.
In the present embodiment, the functions such as beacon equipment not be used to completing automatic attendance originally or automatic conference is registered,
For example the beacon equipment is applied to provide notice information automatically originally so that when near enterprise customer's approach beacon equipment,
It can know the bulletin by receiving the notice frame message for including the notice information (or the content such as chained address of notice information)
The content of information.
In one case, when the installation site information that the beacon equipment is included in the notice frame message that beacon equipment is sent
When, since beacon equipment is typically installed at fixed position, and notices frame message and obtained by management user configuration, thus announcement frame
Installation site information in message can accurately show the present position of the beacon equipment, so by by the installation site information
Send to server-side, the geographical location that server-side can be by it directly as terminal user.
In another case, UUID fields are necessarily included in the notice frame message that beacon equipment is sent, i.e. the beacon is set
Standby equipment unique mark.So, if management user is when being pre-configured with the beacon equipment, by the beacon equipment
Installation site informs server-side, then the correspondence between the UUID fields and installation site should be recorded in server-side,
Thus by sending to server-side, server-side and can determine corresponding installation position according to above-mentioned correspondence the UUID fields
Put, so that using the installation site as the geographical location of terminal user.
Step 908, request message is sent to the server-side of the default communication applications;Wherein, when in the request message
During comprising the equipment unique mark, the positional information of pre-association to the equipment unique mark is recorded as institute by the server-side
The geographical location of the terminal user logged in default communication applications is stated, when including the installation site information in the request message
When, geographical location of the server-side by the installation site information record for the terminal user.
Figure 11 shows the schematic configuration diagram of the electronic equipment of the exemplary embodiment according to the application.It refer to figure
11, in hardware view, the electronic equipment include processor 1102, internal bus 1104, network interface 1106, memory 1108 and
Nonvolatile memory 1110, is also possible that the required hardware of other business certainly.Processor 1102 is deposited from non-volatile
Corresponding computer program is read in reservoir 1110 into memory 1102 and then is run, geographical location is formed on logic level
Determining device.Certainly, in addition to software realization mode, the application is not precluded from other implementations, such as logical device suppression
Or mode of software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each logic unit,
Can also be hardware or logical device.
2 are please referred to Fig.1, in Software Implementation, the determining device in the geographical location can include message retrieval unit
1201st, information determination unit 1202 and automatic positioning unit 1203.Wherein:
Message retrieval unit 1201, obtains the notice message for the beacon equipment transmitting that terminal device scans arrive, the notice
The installation site information of the beacon equipment is included in message;
Information determination unit 1202, by the positioning component assembled in the terminal device, determines the terminal device
Location information;
Unit 1203 is automatically positioned, by presetting service of the client-side program of communication applications to the default communication applications
End sends request message, the installation site information and the location information is included in the request message, with by the service
End determines whether the terminal user that the client-side program logs in is according to the installation site information and the location information
Preset geographical position.
Optionally, further include:
Moment determination unit 1204, determines the acquisition moment of the notice message;
Message processing unit 1205, when being in the predefined automatic positioning period at the acquisition moment, to described logical
Accuse message to be handled, to generate and send the request message;And when the acquisition moment is not in the automatic positioning
During the period, ignore the notice message.
Optionally, further include:
Message reception units 1206, receive the response message that the server-side returns;
Audio playing unit 1207, when the response message show the installation site information, the location information with
When the corresponding pre-configured place of the terminal user is consistent, default prompting audio is played to the terminal user.
Optionally, further include:
Flag bit reading unit 1208, reads the default flag bit in the terminal device, the default flag bit according to
Predetermined period is reset to be not carried out state;
Wherein, when get the notice message and the default flag bit be in it is described be not carried out state when, it is described from
Dynamic positioning unit 1203 is in response to the notice message, to generate and send the request message;Wherein, when the request message
During so that the server-side determining the geographical location of the terminal user, the default flag bit is configured as executed shape
State.
Optionally, the equipment unique mark of the beacon equipment is also included in the notice message;Arouse when predefined
When condition is satisfied, the client-side program is aroused automatically;Wherein, the condition of arousing includes:The equipment unique mark
Associated in advance to the default communication applications.
Optionally, the condition of arousing further includes:Detect that predefined spatial movement occurs for the terminal device.
Optionally, further include:
Mark acquiring unit 1209, when the terminal user belongs to any group, makes the client-side program from institute
State server-side obtain corresponding to any group all beacon equipments equipment unique mark, using as associated in advance to
The equipment unique mark of the default communication applications.
Optionally, the preset geographical position includes:The corresponding predefined installation site of the beacon equipment, and it is predetermined
The terminal location of justice;When the installation site information matches are in the predefined installation site, and the location information is matched with
During the predefined terminal location, the terminal user is judged as being in the preset geographical position.
Optionally, the preset geographical position includes:Predefined positional information;When the installation site information, described
When location information is consistent with the predefined positional information, the terminal user is judged as in the default geographical position
Put.
Optionally, the notice message is also identified comprising function type, and function type mark is also added into institute
State in request message, so that the server-side chooses corresponding preset geographical position according to function type mark.
Optionally, the function type identifies corresponding processing function including at least one following:Attendance checking function, work(of registering
Energy.
Figure 13 shows the schematic configuration diagram of the electronic equipment of the exemplary embodiment according to the application.It refer to figure
13, in hardware view, the electronic equipment include processor 1302, internal bus 1304, network interface 1306, memory 1308 and
Nonvolatile memory 1310, is also possible that the required hardware of other business certainly.Processor 1302 is deposited from non-volatile
Corresponding computer program is read in reservoir 1310 into memory 1302 and then is run, geographical location is formed on logic level
Determining device.Certainly, in addition to software realization mode, the application is not precluded from other implementations, such as logical device suppression
Or mode of software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each logic unit,
Can also be hardware or logical device.
4 are please referred to Fig.1, in Software Implementation, the determining device in the geographical location can include request message and receive
Unit 1401 and position recording unit 1402.Wherein:
Request message receiving unit 1401, receives what terminal device was sent by presetting the client-side program of communication applications
Request message, the installation site information of the beacon equipment arrived comprising the terminal device scans in the request message and the end
The location information of end equipment;Wherein, the installation site information is contained in the beacon equipment and is sent to the terminal device
Notice message in, the location information is determined to obtain by the terminal device by built-in positioning component;
Position determination unit 1402, according to the installation site information and the location information, determines the client journey
Whether the terminal user that sequence logs in is in preset geographical position.
Optionally, the position determination unit 1402 is specifically used for:
When the preset geographical position includes:The corresponding predefined installation site of the beacon equipment, and it is predefined
During terminal location, if the installation site information matches, in the predefined installation site, and the location information is matched with institute
Predefined terminal location is stated, then judges that the terminal user is in the preset geographical position.
Optionally, the position determination unit 1402 is specifically used for:
When the preset geographical position includes predefined positional information, by the installation site information and the positioning
Information is compared;
When the installation site information is consistent with the location information, by the consistent positional information further with it is described
Predefined positional information is compared, and judges that the terminal user is in the default geographical position when result is consistent
Put.
Optionally, when also the function type comprising the beacon equipment identifies the request message, according to the function
Type identification chooses corresponding preset geographical position.
Optionally, further include:
Message reception units 1403 are configured, receive the configuration message that the management user of any group sends, the configuration
The equipment unique mark of some beacon equipments is included in message;
Associative cell 1404, the equipment unique mark in the configuration message is associated to any group;
Wherein, when the equipment unique mark included in the notice message is associated to belonging to the terminal user in advance
During group, which is judged as associating to the default communication applications in advance, so that the client-side program quilt
Automatically arouse and in response to the notice message.
Figure 15 shows the schematic configuration diagram of the electronic equipment of the exemplary embodiment according to the application.It refer to figure
15, in hardware view, the electronic equipment include processor 1502, internal bus 1504, network interface 1506, memory 1508 and
Nonvolatile memory 1510, is also possible that the required hardware of other business certainly.Processor 1502 is deposited from non-volatile
Corresponding computer program is read in reservoir 1510 into memory 1502 and then is run, geographical location is formed on logic level
Determining device.Certainly, in addition to software realization mode, the application is not precluded from other implementations, such as logical device suppression
Or mode of software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each logic unit,
Can also be hardware or logical device.
Please refer to Fig.1 6, in Software Implementation, the determining device in the geographical location can include detection unit 1601,
Start unit 1602, acquiring unit 1603 and transmitting element 1604.Wherein:
Detection unit 1601, by the positioning component assembled in terminal device, detects the location information of the terminal device;
Start unit 1602, when the positioning auxiliary function that communication applications are preset in the terminal device is triggered by user,
Judge that the distance that differs between the location information and the actual geographic position of the terminal device exceeds pre-determined distance, and start
To the scan function of neighbouring beacon equipment;
Acquiring unit 1603, when any beacon equipment is arrived in scanning, the notice for obtaining any beacon equipment transmitting disappears
Cease, the equipment unique mark or installation site information of the beacon equipment are included in the notice message;
Transmitting element 1604, request message is sent to the server-side of the default communication applications;Wherein, when the request disappears
When the equipment unique mark is included in breath, the server-side records the positional information of pre-association to the equipment unique mark
Geographical location for the terminal user logged in the default communication applications, when including the installation site in the request message
During information, geographical location of the server-side by the installation site information record for the terminal user.
Figure 17 shows the schematic configuration diagram of the electronic equipment of the exemplary embodiment according to the application.It refer to figure
17, in hardware view, the electronic equipment include processor 1702, internal bus 1704, network interface 1706, memory 1708 and
Nonvolatile memory 1710, is also possible that the required hardware of other business certainly.Processor 1702 is deposited from non-volatile
Corresponding computer program is read in reservoir 1710 into memory 1702 and then is run, geographical location is formed on logic level
Determining device.Certainly, in addition to software realization mode, the application is not precluded from other implementations, such as logical device suppression
Or mode of software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each logic unit,
Can also be hardware or logical device.
Please refer to Fig.1 8, in Software Implementation, the determining device in the geographical location can include acquiring unit 1801,
Determination unit 1802 and transmitting element 1803.Wherein:
Acquiring unit 1801, obtains the notice message for the beacon equipment transmitting that terminal device scans arrive, the notice message
In include the installation site information of the beacon equipment;
Determination unit 1802, by the positioning component assembled in the terminal device, determines the positioning of the terminal device
Information;
Transmitting element 1803, is sent out by the client-side program for presetting communication applications to the server-side of the default communication applications
Request message is sent, the installation site information and the location information are included in the request message, with by the server-side root
According to the installation site information and the location information, at the attendance for realizing the terminal user logged in the client-side program
Reason.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical element in the process of element, method, commodity or equipment.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.