[go: up one dir, main page]

CN108882207B - Method and device for realizing near-field trigger function - Google Patents

Method and device for realizing near-field trigger function Download PDF

Info

Publication number
CN108882207B
CN108882207B CN201710317973.1A CN201710317973A CN108882207B CN 108882207 B CN108882207 B CN 108882207B CN 201710317973 A CN201710317973 A CN 201710317973A CN 108882207 B CN108882207 B CN 108882207B
Authority
CN
China
Prior art keywords
preset
range
function
trigger
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710317973.1A
Other languages
Chinese (zh)
Other versions
CN108882207A (en
Inventor
任爱松
李文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710317973.1A priority Critical patent/CN108882207B/en
Priority to PCT/CN2018/085018 priority patent/WO2018205860A1/en
Publication of CN108882207A publication Critical patent/CN108882207A/en
Application granted granted Critical
Publication of CN108882207B publication Critical patent/CN108882207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a method and a device for realizing a near field trigger function, wherein the method comprises the following steps: determining whether the electronic equipment enters a preset protection range around the beacon equipment; and triggering a preset function when the electronic equipment enters a preset triggering range for the first time within the time period when the electronic equipment is continuously in the preset protection range, wherein the preset protection range is larger than the preset triggering range. Through the technical scheme, smooth realization of the near field trigger function can be ensured under the condition of low distance measurement precision, and false triggering of the near field trigger function is avoided.

Description

Method and device for realizing near-field trigger function
Technical Field
The present application relates to the field of near field communication technologies, and in particular, to a method and an apparatus for implementing a near field trigger function.
Background
In the related technology, along with the continuous development and application of near field communication technologies such as Bluetooth and ZigBee, the convenience of daily life of people is greatly improved. For example, for a conventional attendance device, a manager needs to perform setting operation on the attendance device, for example, information of group members is input into the attendance device, but the attendance device supports a single interaction mode and limited operation functions, so that the setting process is extremely complicated and long, and errors are easily caused.
Therefore, a Bluetooth communication function is added to the attendance device in the related technology, so that the attendance device can emit Bluetooth signals in a near field range outwards, and a manager receives the Bluetooth signals through electronic devices such as a mobile phone and a tablet, determines the distance between the electronic devices and the attendance device based on the strength of the Bluetooth signals, and actively pops out a setting page aiming at the attendance device on the electronic devices when the distance is smaller than a preset trigger distance, so that the manager can efficiently realize the setting operation of the attendance device on the electronic devices.
However, the above-mentioned near field communication technologies such as bluetooth have certain drawbacks. For example, when the attendance device transmits a bluetooth signal to the outside, the boundary of the bluetooth signal is easy to fluctuate, and different electronic devices have a certain difference in their sensitivity to the bluetooth signal, so that the electronic device of the manager cannot accurately and stably recognize the distance. In particular, when the distance measured by the electronic device repeatedly fluctuates around the preset trigger distance, even if the manager is actually located near the attendance device, the electronic device may be mistakenly determined as the manager repeatedly approaching and departing from the attendance device, so that the electronic device repeatedly pops up the setting page, the setting operation of the manager is affected, and the efficiency of the setting operation is reduced or the setting operation is wrong.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for implementing a near field trigger function, which can ensure smooth implementation of the near field trigger function and avoid false triggering of the near field trigger function under the condition of low ranging accuracy.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect of the present application, a method for implementing a near field trigger function is provided, including:
determining whether the electronic equipment enters a preset protection range around the beacon equipment;
and triggering a preset function when the electronic equipment enters a preset triggering range for the first time within the time period when the electronic equipment is continuously in the preset protection range, wherein the preset protection range is larger than the preset triggering range.
According to a second aspect of the present application, an apparatus for implementing a near field trigger function is provided, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining whether the electronic equipment enters a preset protection range around the beacon equipment;
and the triggering unit is used for triggering a preset function when the electronic equipment enters a preset triggering range for the first time within a time period when the electronic equipment is continuously in the preset protection range, wherein the preset protection range is larger than the preset triggering range.
According to a third aspect of the present application, a method for implementing a near field trigger function is provided, including:
determining whether the electronic equipment enters a preset protection range around the beacon equipment;
and triggering a preset function when the electronic equipment is in the preset protection range and when the electronic equipment enters a preset trigger range for the first time, wherein the preset protection range is larger than the preset trigger range.
According to a fourth aspect of the present application, an apparatus for implementing a near field trigger function is provided, including:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining whether the electronic equipment enters a preset protection range around the beacon equipment;
the triggering unit is used for triggering a preset function when the electronic equipment is in the preset protection range and the electronic equipment enters the preset triggering range for the first time, wherein the preset protection range is larger than the preset triggering range.
According to a fifth aspect of the present application, a method for implementing a near field trigger function is provided, including:
determining whether the electronic equipment enters a preset protection range around the attendance checking equipment;
when the electronic equipment is in the preset protection range and when the electronic equipment enters a preset trigger range for the first time, a function setting interface for the attendance checking equipment is displayed on the electronic equipment, wherein the preset protection range is larger than the preset trigger range.
According to a sixth aspect of the present application, an apparatus for implementing a near field trigger function is provided, including:
the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining whether the electronic equipment enters a preset protection range around the attendance checking equipment or not;
the display unit displays a function setting interface aiming at the attendance checking equipment on the electronic equipment when the electronic equipment is in the preset protection range and the electronic equipment enters a preset trigger range for the first time, wherein the preset protection range is larger than the preset trigger range.
According to the technical scheme, the preset protection range and the preset trigger range are simultaneously arranged around the beacon device, and the preset function is triggered only when the electronic device continuously enters the preset trigger range within the time period of the preset protection range, so that misjudgment of the electronic device can be reduced or eliminated even if the distance detected by the electronic device fluctuates in value, and repeated triggering of the preset function related to the beacon device is avoided.
Drawings
Fig. 1 is a schematic diagram of an architecture of a near field communication system according to an exemplary embodiment of the present application.
Fig. 2 is a schematic structural diagram of another nfc system according to an exemplary embodiment of the present application.
Fig. 3 is a flowchart of an implementation method of a near field trigger function according to an exemplary embodiment of the present application.
Fig. 4 is a flowchart illustrating setting of an attendance checking device according to an exemplary embodiment of the present application.
Fig. 5 is a schematic diagram of an attendance checking apparatus according to an exemplary embodiment of the present application.
Fig. 6 is a schematic diagram of a relative positional relationship between a mobile phone and an attendance checking device according to an exemplary embodiment of the present application.
Fig. 7 is a schematic diagram of another relative position relationship between a mobile phone and an attendance checking device according to an exemplary embodiment of the present application.
Fig. 8 is a schematic diagram of a relative positional relationship between a mobile phone and an attendance checking device according to an exemplary embodiment of the present application.
Fig. 9 is a schematic diagram of a display interface of a user client according to an exemplary embodiment of the present application.
Fig. 10 is a schematic diagram of a relative position relationship between a mobile phone and an attendance checking device according to a second exemplary embodiment of the present application.
Fig. 11 is a schematic diagram of a display interface of another user client provided in an exemplary embodiment of the present application.
Fig. 12 is a flowchart of an implementation method of another near field trigger function according to an exemplary embodiment of the present application.
Fig. 13 is a flowchart of a method for implementing a near field trigger function according to an exemplary embodiment of the present application.
Fig. 14 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Fig. 15 is a block diagram of an apparatus for implementing a near field trigger function according to an exemplary embodiment of the present application.
Fig. 16 is a block diagram of an apparatus for implementing another near field trigger function according to an exemplary embodiment of the present application.
Fig. 17 is a block diagram of an apparatus for implementing a near field trigger function according to an exemplary embodiment of the present application.
Detailed Description
Fig. 1 is a schematic diagram of an architecture of a near field communication system according to an exemplary embodiment of the present application. As shown in fig. 1, the system may include a beacon device such as an attendance device 11 and an electronic device such as a cell phone 12.
Attendance checking equipment 11 outwards transmits near field signals based on the near field communication technology. For example, when bluetooth technology is used, the near-field signal is a bluetooth signal; of course, other near field communication technologies such as ZigBee, WIFI, RFID, etc. may also be applied to the present application, and the present application is not limited thereto. The near field signal may include device identification information of the attendance device 11, so as to indicate that a sender of the near field signal is the attendance device 11. The beacon device transmits the near field signal to instruct an electronic device such as the mobile phone 12 and the like to trigger a preset function related to the beacon device after receiving the near field signal, for example, the preset function related to the attendance device 11 may include an attendance function, a setting function of the attendance device and the like; the attendance device 11 is only one type of beacon device that can be used, for example, the beacon device may also be an access control device, and the preset function related to the access control device may include an access control opening function, a setting function of the access control device, and the like, although the device type of the beacon device is not limited in this application. The beacon device may run a program on the beacon device side of an application to implement a related service function of the application, for example, when the beacon device runs a program on a mobile group office platform, the beacon device may be implemented as a beacon device client of the mobile group office platform, so that the beacon device 11 may transmit a near field signal under the control of the beacon device client.
The handset 12 is but one type of electronic device that a user may use. In fact, it is obvious that the user can also use electronic devices of the type such as: tablet devices, notebook computers, Personal Digital Assistants (PDAs), wearable devices (such as smart glasses, smart watches, etc.), etc., which are not limited in this application. In the operation process, the electronic device may operate a client-side program of an application to implement a related service function of the application, for example, when the electronic device operates a program of a mobile community office platform, the electronic device may be implemented as a user client of the mobile community office platform, so that the electronic device may detect a distance to a beacon device, trigger a preset function related to the beacon device, and the like.
Meanwhile, wireless communication connection can be established between the beacon device and the electronic device based on a near field communication technology, and the electronic device can perform wireless communication with the beacon device based on the wireless communication connection. For example, when the preset function related to the attendance device 11 is an attendance function, the mobile phone 12 may record corresponding attendance success information through wireless communication with the attendance device 11; alternatively, when the preset function related to the attendance device 11 is a setting function, the mobile phone 12 may transmit the setting result to the attendance device 11, so that the attendance device 11 performs function configuration on itself according to the setting result.
Taking a user client of the mobile enterprise office platform as an example (also applicable to other clients such as a beacon device client on a beacon device), an application program of the user client may be installed in advance on an electronic device such as the mobile phone 12, so that the user client may be started and run on the mobile phone 12; of course, when an online "client" such as HTML5 technology is employed, the user client can be obtained and run without installing the corresponding application on handset 12.
Fig. 2 is a schematic structural diagram of another nfc system according to an exemplary embodiment of the present application. As shown in fig. 2, the system may include a server 21, a network 22, an electronic device such as a cell phone 23, a beacon device such as an attendance device 24, and the like.
The server 21 may be a physical server comprising an independent host, or the server 21 may be a virtual server carried by a cluster of hosts, or the server 21 may be a cloud server. In the operation process, the server 21 may operate a server-side program of a certain application to implement a related service function of the application, for example, when the server 21 operates a program of a mobile group office platform, the server may be implemented as a server of the mobile group office platform.
The network 22 may include various types of wired or wireless networks. In one embodiment, the Network 22 may include the Public Switched Telephone Network (PSTN) and the Internet. The beacon devices such as the electronic device such as the mobile phone 23 and the attendance device 24 can communicate with the server 21 through the network 22.
Therefore, the electronic device such as the mobile phone 23 does not need to establish wireless communication connection with the beacon device such as the attendance device 24, and only needs to emit a near-field signal to the outside by the beacon device and receive the near-field signal by the electronic device. Taking the attendance device 24 as an example, when the preset function related to the attendance device 24 is the setting function, the mobile phone 23 may upload the setting result to the server 21 through the network 22, and the server 21 pushes the setting result or the configuration instruction based on the setting result to the attendance device 24 through the network 22, so that the attendance device 24 performs the function configuration on itself according to the setting result or the configuration instruction.
It should be noted that: the mobile enterprise office platform is a comprehensive platform, can realize a communication function, and can be used as an integrated functional platform with various other functions, for example, for processing enterprise internal events such as approval events (e.g., approval events such as leave requests, office article application, finance and the like), attendance events, task events, log events and the like, and further processing enterprise external events such as ordering, purchasing and the like, the application is not limited thereto. For example, the beacon device client of the mobile enterprise office platform running on the attendance device 11 or 24 may implement an attendance function, that is, process the attendance event.
More specifically, the mobile Enterprise office platform may be supported by an Instant Messaging application in the related art, such as an Enterprise Instant Messaging (EIM) application, For example, Skype For
Figure BDA0001288986020000061
Figure BDA0001288986020000062
Figure BDA0001288986020000063
Figure BDA0001288986020000064
And the like. Certainly, the instant messaging function is only one of the communication functions supported by the mobile enterprise office platform, and the enterprise office platform can also implement more other functions such as those described above, which will not be described herein again.
Based on the near field communication system shown in fig. 1 or fig. 2, in the process of implementing the technical solution of the present application, the receiving and processing process of the near field signal by the electronic device after the beacon device transmits the near field signal is mainly involved, and the processing logic of the electronic device is described below with reference to fig. 3.
Fig. 3 is a flowchart of an implementation method of a near field trigger function according to an exemplary embodiment of the present application. As shown in fig. 3, the method applied to the electronic device may include the following steps:
step 302, determine whether the electronic device enters a preset protection range around the beacon device.
In this embodiment, the electronic device may receive a near-field signal transmitted by the beacon device, and determine a distance between the electronic device and the beacon device according to a signal strength of the near-field signal, where the distance is negatively correlated with the signal strength; and then, determining whether the electronic equipment enters the preset protection range or the preset trigger range according to the distance, the protection distance corresponding to the preset protection range and the trigger distance corresponding to the preset trigger range. The Signal Strength may be a Received Signal Strength Indication (RSSI) value measured by the electronic device, and the distance between the electronic device and the beacon device is calculated according to a conversion formula between a predefined RSSI value and the distance.
In this embodiment, since the preset protection range is greater than the preset trigger range, which is equivalent to that the preset protection range forms a circle of "safety range" at the periphery of the preset trigger range, even if the distance detected by the electronic device fluctuates, as long as the fluctuation does not exceed the preset protection range, the actual processing process will not be affected, for example, the electronic device will not repeatedly trigger the preset function related to the beacon device.
When a user (such as a manager) really needs to trigger the preset function related to the beacon device, the electronic device is inevitably placed in the preset trigger range, so that the difference distance between the preset protection range and the preset trigger range can be ensured to be not less than the maximum fluctuation distance of the distance detected by the electronic device, the numerical fluctuation of the distance can be ensured not to cause misjudgment of the electronic device, and the repeated triggering of the preset function related to the beacon device by the electronic device can be completely avoided. For example, assuming that the preset protection range is a circular region with the installation position of the beacon device as the center of a circle and r1 as the radius, and the preset trigger range is a circular region with the installation position of the beacon device as the center of a circle and r2 as the radius, when the maximum fluctuation distance that may be generated by the electronic device is k, it is only required to ensure that r1-r2 is greater than or equal to k, and it can be ensured that the electronic device does not fluctuate into the preset trigger range before actually entering the preset protection range, and does not fluctuate out of the preset protection range when actually being located in the preset trigger range, thereby preventing the electronic device from erroneously judging to re-enter the preset protection range and causing repeated triggering of the preset function.
It should be noted that: in practical situations, the sensing sensitivity of each type of electronic device to the near-field signal is different, so that the measurement result of the distance between the electronic device and the beacon device has a certain deviation. In order to adapt to all models of electronic devices, the technical solution of the present application only needs to reasonably set the preset protection range and the preset trigger range, for example, to ensure that the difference distance is not less than the maximum fluctuation distance that may be generated by all electronic devices,
and 304, in a time period when the electronic equipment is continuously in the preset protection range, triggering a preset function when the electronic equipment enters a preset triggering range for the first time.
In this embodiment, whether the electronic device enters the preset trigger range for the first time within the time period may be determined by: when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable; when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, the electronic equipment is determined to enter the preset trigger range for the first time in the time period, and the function trigger state is switched to be triggerable, so that the electronic equipment can only trigger the preset function related to the beacon equipment when the electronic equipment enters the preset trigger range for the first time in the time period continuously within the preset protection range every time, and repeated triggering of the preset function is avoided.
In this embodiment, the preset function may be triggered by the electronic device, or may be triggered by a preset application program running on the electronic device; for example, the preset application program may be a client program of the mobile enterprise office platform.
In this embodiment, the preset function may include a function related to the beacon device, although this application is not limited thereto; for example, the beacon device may not have an associated function, but only serve to trigger the preset function described above. When the preset function is triggered, the electronic device may display a function trigger interface for the beacon device, for example, when the beacon device is an attendance device, the function trigger interface may be an attendance trigger interface, so that the user completes an attendance operation by triggering the attendance trigger interface. Alternatively, the electronic device may present a function setting interface for the beacon device to perform function setting on the beacon device, such as when the beacon device is an attendance device, the function setting interface may be used to input information of a person requiring attendance.
In this embodiment, when the electronic device is within the preset protection range, an entry option of a preset function related to the beacon device may be displayed on the electronic device; when the user trigger operation for the entrance option is detected, the preset function related to the beacon device can be switched and controlled between a starting state and a stopping state. Then, even if the preset function or the operation interface thereof related to the beacon device is turned off due to some reasons (such as user misoperation, automatic turning-off of the electronic device due to fluctuation outside a preset trigger range, and the like), the user can trigger the entry option to realize quick calling of the preset function or the operation interface thereof, which is beneficial to improving the operation efficiency of the user.
According to the technical scheme, the preset protection range and the preset trigger range are simultaneously arranged around the beacon device, and the preset function is triggered only when the electronic device continuously enters the preset trigger range within the time period of the preset protection range, so that misjudgment of the electronic device can be reduced or eliminated even if the distance detected by the electronic device fluctuates in value, and repeated triggering of the preset function related to the beacon device is avoided.
For convenience of understanding, the technical solution of the present application is described below with reference to the technical architecture of the near field communication system shown in fig. 2, taking an enterprise instant messaging application "enterprise WeChat" as an example. Suppose that a user client running an enterprise WeChat on the mobile phone 23, a beacon device client running an enterprise WeChat on the attendance device 24, and a server running an enterprise WeChat on the server 21, where the user client on the mobile phone 23 logs in registration accounts of different users respectively, for example, the mobile phone 23 logs in a registration account of a manager, so that the mobile phone 23 is configured as a management device corresponding to the manager. Based on the technical scheme of the application, a manager can perform operations such as function setting on the attendance checking device 24 through the mobile phone 23, and the specific process is described in detail below with reference to fig. 4.
Fig. 4 is a flowchart illustrating setting of an attendance checking device according to an exemplary embodiment of the present application. As shown in fig. 4, the process may include the following steps:
in step 402, the attendance device 24 sends an activation code acquisition request to the server 21.
In step 404, the server 21 assigns an activation code to the attendance device 24.
In this embodiment, after the attendance checking device 24 is powered on, whether the activation code exists in the storage space can be checked; if so, the process may proceed directly to step 406B, otherwise, an activation code acquisition request may be sent to the server 21, so that the server 21 assigns a uniquely corresponding activation code to the attendance device 24. Because of the unique correspondence between the activation code and the attendance device 24, the activation code may be used as identification information for the attendance device 24.
In this embodiment, after receiving the activation code assigned by the server 21, the attendance checking device 24 may save the activation code in the storage space, and apply the activation code all the time thereafter. Alternatively, the attendance device 24 may actively age the obtained activation code at a preset period and re-request a new activation code from the server 21, and the server 21 may replace the old activation code (i.e., the aged activation code) with the new activation code, such as updating a correspondence between the activation code described below and the attendance device 24.
In step 406A, the server 21 stores the correspondence between the attendance device 24 and the activation code.
In this embodiment, in the activation code acquisition request sent by the attendance device 24, the MAC address and the like of the attendance device may be included as the ID information of the attendance device, so that the server 21 may establish a correspondence between the ID information and the assigned activation code.
Of course, in the case that the activation code does not need to be updated and changed, the activation code may be written into the attendance device 24 in advance, and the correspondence between the activation code and the attendance device 24 is stored in the server 21, so that the attendance device 24 may directly read and apply the activation code without requesting the server 21 to obtain the activation code through the above steps.
In step 406B, the attendance device 24 presents the activation code.
In this embodiment, the activation code may be the two-dimensional code 240 (or other form of graphic code) shown in fig. 5, and the attendance checking device 24 may directly display the two-dimensional code 240. Alternatively, the activation code may be a group of character strings or other forms of non-graphical information, and the attendance device 24 may directly display the character strings, or may convert the character strings and display the converted two-dimensional code 240, such as the one shown in fig. 5. Of course, the activation code may also take other forms, and the attendance checking device 24 may also display the activation code in more ways, which is not limited in this application.
In step 408, the mobile phone 23 reads the activation code from the attendance checking device 24.
In this embodiment, the mobile phone 23 is installed with a user client of the enterprise WeChat, the user client can read the activation code on the attendance device 24 by acquiring the identification information displayed by the attendance device 24, and the server 21 already stores the corresponding relationship between the identification information and the attendance device 24.
In an embodiment, when the activation code on the attendance checking device 24 is in a form of a graphic code, a camera assembly on the mobile phone 23 can be started to collect the graphic code through a code scanning function provided by a user client, and then the content of the activation code is read through content identification; for example, after reading the two-dimensional code 240 shown in fig. 5, it can be recognized that the corresponding active code of the two-dimensional code 240 is "gfd 1s5g451f24sg54sg241fd 1".
In another embodiment, when the activation code on the attendance device 24 is in the form of a Character string, the camera assembly on the mobile phone 23 may be activated to capture the Character string through a related function provided by the user client, and then the Character string may be recognized through a method such as Optical Character Recognition (OCR). Of course, the user client may also show an input box, so that the user may manually input the character string shown on the attendance checking device 24 into the mobile phone 23, and help the mobile phone 23 complete the reading operation of the character string.
In step 410, the server 21 receives a binding request sent by the handset 23, where the binding request includes an activation code.
In step 412, the server 21 establishes a binding relationship between the mobile phone 23 and the attendance device 24.
In this embodiment, the mobile phone 23 may send a binding request for the identification information to the server 21, and the server 21 extracts the identification information included in the binding request, determines the attendance device 24 corresponding to the identification information according to the correspondence stored in step 406A, and then establishes a binding relationship between the attendance device 24 and the mobile phone 23.
The "handset 23" may be considered as a physical user device in a narrow sense, for example, by being identified by its MAC address or the like, or the "handset 23" may be considered as an arbitrary electronic device registered with a corresponding registered account in a broad sense. For the sake of understanding, the following description will take the case where the attendance device 24 is bound to the registered account.
In step 414, after the binding is successful, the mobile phone 23 may set the notification frame parameter of the attendance device 24, and the server 21 configures the notification frame parameter of the attendance device 24 according to the setting result.
In step 416, the attendance device 24 transmits an announcement frame message to the outside according to the configured announcement frame parameter.
In the present embodiment, assuming that attendance device 24 employs an ibeacon protocol based on BLE technology, the near-field signal emitted by attendance device 24 may be an advertisement frame (Advertising) message.
The announcement frame parameters may include: device identification information and message transmission parameters of the attendance device 24. The device identification information is used for determining that a sender of the notification frame message is the attendance device 24 when the notification frame message is received by the mobile phone 23; for example, the device identification information may be collectively characterized by UUID (Universally Unique Identifier), Major (Major parameter), Minor (Minor parameter), and the like, which are contained in the announcement frame message. And the message transmission parameter is used to instruct the attendance device 24 how to transmit the announcement frame message, for example, the message transmission parameter may include transmission power, transmission period, and the like, the transmission power may control the coverage of the announcement frame message, and the transmission period may control the transmission frequency of the announcement frame message.
In this embodiment, the manager may configure the notification frame parameter of the attendance device 24 in the process of activating the attendance device 24; of course, the administrator may configure the announcement frame parameter at other times. In addition, the announcement frame parameter of the attendance device 24 may be configured by other users. In fact, even if the factory default configuration of the attendance device 24 is directly adopted, the use of the attendance device 24 is still not affected.
In step 418, when the manager brings the mobile phone 23 to the vicinity of the attendance device 24, the mobile phone 23 may receive the notification frame message transmitted by the attendance device 24.
The handset 23 identifies the sender of the announcement frame message, step 420.
In this embodiment, the user client of the enterprise WeChat running on the mobile phone 23 may parse the notification frame message received by the mobile phone 23. Then, the user client may identify that the sender of the notification frame message is the attendance device 24 according to the values of the parameters, such as UUID, Major, Minor, and the like, included in the notification frame message. The local of the user client may store the device identification information corresponding to all attendance devices for which the administrator has the management authority, so that the user client can locally recognize that the sender of the notification frame message is the attendance device 24; alternatively, the user client may send the device identification information in the notification frame message to the server 21 and receive the identification result returned by the server 21.
In step 422, the mobile phone 23 determines the distance between itself and the attendance checking device 24.
In this embodiment, when receiving the notification frame message, the mobile phone 23 may detect the RSSI value of the notification frame message; meanwhile, the user client running on the mobile phone 23 prestores a conversion formula between the RSSI value and the distance, for example, the conversion formula may be d ═ 10^ ((abs (RSSI) -a)/(10 ×) where: d is the distance between the mobile phone 23 and the attendance device 24, RSSI is the RSSI value detected by the mobile phone 23, a is the RSSI value of the notification frame message when the distance between the transmitting end and the receiving end is 1 meter, and n is the environmental attenuation factor. In short, the distance should be inversely related to the RSSI value.
At step 424, the handset 23 determines whether a predefined condition is met, and automatically pops up a setup window for the attendance device 24 when met.
In this embodiment, multiple ranges may be formed around attendance device 24; as shown in fig. 6, includes: the preset protection range 61 taking the installation position of the attendance device 24 as a circle center and the preset protection distance r1 as a radius, and the preset trigger range 62 taking the installation position of the attendance device 24 as a circle center and the preset trigger distance r2 as a radius, wherein r1 is greater than r2, that is, the coverage range of the preset protection range 61 is greater than the preset trigger range 62. Then, for the attendance device 24, the transmission power of the notification frame message should be such that its own coverage is at least larger than the preset protection range 61, and the cell phone 23 can determine whether the predefined condition is satisfied based on the preset protection range 61, the preset trigger range 62, and the like described above.
As shown in fig. 6, the mobile phone 23 receives the announcement frame message at a position outside the preset protection range 61, and it is assumed that the actual distance between the mobile phone 23 and the attendance device 24 at this time is d 1. However, due to the stability of the near-field signal and the sensitivity of the bluetooth module on the mobile phone 23, a certain deviation a may exist in the distance calculated by the mobile phone 23, so that the position of the mobile phone 23 itself calculated by the mobile phone 23 may be within the fluctuation range 63 shown in fig. 6, which takes the actual position of the mobile phone 23 as the center of the circle and the deviation a as the radius, and the distance attribution interval [ d1-a, d1+ a ] is correspondingly detected.
When the cell phone 23 is further moved toward the attendance device 24, it is assumed that the cell phone 23 is moved to the position shown in fig. 7, that is, the cell phone 23 is actually located within the preset protection range 61, but the fluctuation range 63 of the cell phone 23 is not completely located within the preset protection range 61, and there is a partial area located outside the preset protection range 61, so that the distance detected by the cell phone 23 may cause the following two results: (1) outside the preset protection range 61, (2) within the preset protection range 61, outside the preset trigger range 62, and possibly switching between the two results as if the cell phone 23 were continuously entering and leaving the preset protection range 61.
The above predefined conditions are assumed to be: the mobile phone 23 enters the preset trigger range 62 for the first time in each time period of being continuously within the preset protection range 61. Then, for the embodiment shown in fig. 7, when the cell phone 23 detects the switch from the result (1) to the result (2) at the time T1, indicating that the cell phone 23 enters the preset protection range 61, until the cell phone 23 switches back from the result (2) to the result (1) at the time T2, that is, in the time period between the time T1 and the time T2, if the cell phone 23 enters the preset trigger range 62 for the first time, it is determined that the cell phone 23 satisfies the above-mentioned predefined condition, and if the cell phone 23 does not enter the preset trigger range 62 or does not enter the preset trigger range 62 for the first time within the time period, it is determined that the cell phone 23 does not satisfy the predefined condition.
Thus, for the embodiment shown in fig. 7, whether it is the result (1) or the result (2), the handset 23 is not able to enter the preset trigger range 62 all the time, and thus the predefined condition described above is not met, and the setting window is not triggered. When the mobile phone 23 further approaches the attendance device 24, for example, as shown in fig. 8, assuming that at least a part of the fluctuation range 63 of the mobile phone 23 enters the preset trigger range 62, and the mobile phone 23 determines that it has entered the preset trigger range 62 according to the detected distance, then: if the mobile phone 23 enters the preset trigger range 62 for the first time in the same time period, it may be determined that the mobile phone 23 meets the predefined condition, so that the mobile phone 23 may automatically pop up a setting window 92 on the display interface 91 of the user client shown in fig. 9, so that the administrator sets the attendance device 24.
In fact, in the embodiment shown in fig. 8, similar to the embodiment shown in fig. 7, since a part of the fluctuation range 63 is located within the preset triggering range 62 and another part is located outside the preset triggering range 62, the distance detected by the mobile phone 23 may cause the following two results: (2) within the preset protection range 61, outside the preset trigger range 62, and (3) within the preset trigger range 62. Then, after determining that the mobile phone 23 is in the result (3) for the first time, the mobile phone 23 may automatically pop up the setting window 92; and the mobile phone 23 may switch back and forth between the result (3) and the result (2) as if the mobile phone 23 continuously enters and leaves the preset trigger range 62, but since the predefined condition is "enter the preset trigger range 62 for the first time", except that the mobile phone 23 determines that the mobile phone is in the result (3) for the first time, other conditions of switching from the result (2) to the result (3) are determined that the predefined condition is not satisfied, so that the setting window 92 is not frequently popped up, and the setting operation of the administrator on the attendance device 24 is not affected.
In order to completely avoid the frequent pop-up of the setting window 92 by the mobile phone 23, the preset protection range 61 and the preset trigger range 62 should be properly set according to the fluctuation range 63 of the mobile phone 23. As shown in fig. 10, for the fluctuation range 63, the maximum possible fluctuation distance is k equal to 2a, and when the difference distance r1-r2 between the preset protection distance r1 and the preset trigger distance r2 is r1-r2 < k, the situation shown in fig. 10 may occur in the mobile phone 23: a part of the fluctuation range 63 is located within the preset trigger range 62 (which is inevitably located within the preset protection range 61 at this time), and a part of the fluctuation range is located outside the preset protection range 61, so that the mobile phone 23 may erroneously determine that the mobile phone 23 continuously enters the preset protection range 61 and the preset trigger range 62 from the outside, and moves to the outside from the preset trigger range 62 and the preset protection range 61, so that the mobile phone 23 erroneously determines that the mobile phone 23 repeatedly meets the predefined condition, and the setting window 92 is repeatedly popped up on the mobile phone 23. Therefore, similar to the situation shown in FIG. 7 and FIG. 8, by setting r1-r2 ≧ k, it can be ensured that the fluctuation range 63 is not both within the preset trigger range 62 and outside the preset protection range 61, and frequent popping up of the setup window 92 by the cell phone 23 is avoided.
In addition, during the process of setting the attendance device 24 by the mobile phone 23, the administrator may close the setting window 92 for some reasons, so that the administrator may need to manually move the mobile phone 23 to be out of the preset protection range 61 and then re-enter the preset trigger range 62 to pop up the setting window 92. In still other cases, it may not be possible or convenient for the manager to move the cell phone 23 within the preset protection range 61. In summary, the above situation may cause operational inconvenience to the manager. Therefore, when the electronic device is within the preset protection range 61, as shown in fig. 11, the mobile phone 23 may display an entry option 1102 for the setting window 92 on a display interface 1101 of the user client, so that the administrator may call the setting window 92 or close the called setting window 92 by triggering the entry option 1102, so as to facilitate the operation of the administrator. When the mobile phone 23 moves out of the preset protection range 61, the mobile phone 23 can hide the entry option 1102 to avoid misoperation of the administrator.
In step 426, the mobile phone 23 generates a user setting instruction for the attendance device 24 according to the detected user setting operation, and sends the user setting instruction to the server 21.
In step 428, the server 21 configures the attendance device according to the user setting instruction.
To sum up, this application presets protection range 61 and presets trigger range 62 through the setting to and with the relevant predefined condition in these two ranges, can accurately judge managers ' operation intention, thereby under the condition that cell-phone 23 can't accurately detect out the distance between self and attendance equipment 24, still can ensure that cell-phone 23 initiatively pops out the window 92 that sets up to attendance equipment 24, and avoid this window 92 that sets up to be popped out repeatedly, prevent to influence managers's setting operation to attendance equipment 24.
Fig. 12 is a flowchart of an implementation method of another near field trigger function according to an exemplary embodiment of the present application. As shown in fig. 12, the method applied to the electronic device may include the following steps:
step 1202, determine whether the electronic device enters a preset protection range around the beacon device.
In this embodiment, step 1202 may refer to step 302 in the embodiment shown in fig. 3, and is not described herein again.
Step 1204, when the electronic device is within the preset protection range and when the electronic device enters a preset trigger range for the first time, triggering a preset function, wherein the preset protection range is larger than the preset trigger range.
In this embodiment, for the numerical relationship between the preset protection range and the preset trigger range, and for the setting of the preset protection range and the preset trigger range, reference may be made to the description in the above embodiments such as fig. 3 or fig. 4, which is not described herein again.
In this embodiment, when the electronic device is within the preset protection range, it indicates that the user of the electronic device has a high probability of wishing to trigger the preset function; when the user enters the preset triggering range, the user can be determined to really want to trigger the preset function, so that the preset function is triggered when the user enters the preset triggering range for the first time, on one hand, the triggering willingness of the user on the preset function can be met, and on the other hand, the repeated triggering on the preset function can be avoided.
Fig. 13 is a flowchart of a method for implementing a near field trigger function according to an exemplary embodiment of the present application. As shown in fig. 13, the method applied to the electronic device may include the following steps:
step 1302, determining whether the electronic device enters a preset protection range around the attendance checking device.
In this embodiment, step 1302 may refer to step 302 in the embodiment shown in fig. 3, and only the beacon device in step 302 is replaced by the attendance device in step 1302, but the adopted principle is the same, and is not described again here.
Step 1304, when the electronic device is within the preset protection range and when the electronic device enters a preset trigger range for the first time, displaying a function setting interface for the attendance checking device on the electronic device, wherein the preset protection range is larger than the preset trigger range.
In this embodiment, for the numerical relationship between the preset protection range and the preset trigger range, and for the setting of the preset protection range and the preset trigger range, reference may be made to the description in the above embodiments such as fig. 3 or fig. 4, which is not described herein again.
In this embodiment, when the electronic device is within the preset protection range, it indicates that the user of the electronic device has a high probability of wishing to set the attendance device; when the user enters the preset triggering range, the user can be determined to really want to set the attendance equipment, so that the function setting interface of the attendance equipment is popped up and displayed on the electronic equipment when the user enters the preset triggering range for the first time, on one hand, the setting willingness of the user on the attendance equipment can be met, on the other hand, the repeated popping-up of the function setting interface can be avoided, and the influence on the normal operation of the user on the function setting interface is avoided.
FIG. 14 shows a schematic block diagram of an electronic device according to an example embodiment of the present application. Referring to FIG. 14, at the hardware level, the electronic device includes a processor 1402, an internal bus 1404, a network interface 1406, a memory 1408, and a non-volatile storage 1410, although other hardware required for services may be included. The processor 1402 reads the corresponding computer program from the non-volatile memory 1410 into the memory 1408 and runs it, forming an implementation of the near field trigger function on a logical level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Referring to fig. 15, in a software implementation, the apparatus for implementing the near field trigger function may include:
a determination unit 1501 that determines whether the electronic device enters a preset protection range around the beacon device;
the triggering unit 1502 triggers a preset function when the electronic device enters a preset triggering range for the first time within a time period in which the electronic device is continuously in the preset protection range, where the preset protection range is greater than the preset triggering range.
Optionally, the determining unit 1501 determines whether the electronic device enters the preset protection range or the preset trigger range by:
receiving a near field signal transmitted by the beacon device;
determining a distance between the electronic device and the beacon device as a function of a signal strength of the near-field signal, wherein the distance is inversely related to the signal strength;
and determining whether the electronic equipment enters the preset protection range or the preset trigger range according to the distance, the protection distance corresponding to the preset protection range and the trigger distance corresponding to the preset trigger range.
Optionally, the triggering unit 1502 determines whether the electronic device enters the preset triggering range for the first time within the time period by:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time in the time period, and switching the function trigger state into non-triggerable state.
Optionally, a difference distance between the preset protection range and the preset trigger range is not less than a maximum fluctuation distance of the distance.
Optionally, the trigger unit 1502 is specifically configured to:
displaying a function trigger interface or a function setting interface for the beacon device on the electronic device.
Optionally, the method further includes:
a presentation unit 1503 configured to present, on the electronic device, an entry option of a preset function related to the beacon device when the electronic device is within the preset protection range;
a switching unit 1504, configured to, when a user-triggered operation for the entry option is detected, switch and control the preset function related to the beacon device between a start state and a stop state.
Optionally, the trigger unit 1502 is specifically configured to:
triggering the preset function by the electronic equipment;
or triggering the preset function by a preset application program running on the electronic equipment.
Optionally, the preset function includes: a function associated with the beacon device.
Referring to fig. 16, in a software implementation, the implementation apparatus of the near field trigger function may include:
a determining unit 1601 to determine whether the electronic device enters a preset protection range around the beacon device;
a triggering unit 1602, triggering a preset function when the electronic device is within the preset protection range and when the electronic device enters a preset triggering range for the first time, where the preset protection range is greater than the preset triggering range.
Optionally, the determining unit 1601 determines whether the electronic device enters the preset protection range or the preset trigger range by:
receiving a near field signal transmitted by the beacon device;
determining a distance between the electronic device and the beacon device as a function of a signal strength of the near-field signal, wherein the distance is inversely related to the signal strength;
and determining whether the electronic equipment enters the preset protection range or the preset trigger range according to the distance, the protection distance corresponding to the preset protection range and the trigger distance corresponding to the preset trigger range.
Optionally, the triggering unit 1602 determines whether the electronic device enters the preset triggering range for the first time when the electronic device is within the preset protection range by:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time when the electronic equipment is in the preset protection range, and switching the function trigger state into non-triggerable.
Optionally, a difference distance between the preset protection range and the preset trigger range is not less than a maximum fluctuation distance of the distance.
Optionally, the trigger unit 1602 is specifically configured to:
displaying a function trigger interface or a function setting interface for the beacon device on the electronic device.
Optionally, the method further includes:
a presentation unit 1603 for presenting an entry option of a preset function related to the beacon device on the electronic device when the electronic device is within the preset protection range;
a switching unit 1604, configured to, when a user trigger operation for the entry option is detected, switch and control the preset function related to the beacon device between a start state and a stop state.
Optionally, the trigger unit 1602 is specifically configured to:
triggering the preset function by the electronic equipment;
or triggering the preset function by a preset application program running on the electronic equipment.
Optionally, the preset function includes: a function associated with the beacon device.
Referring to fig. 17, in a software implementation, the implementation apparatus of the near field trigger function may include:
a determination unit 1701 that determines whether the electronic device enters a preset protection range around the attendance device;
a display unit 1702, which displays a function setting interface for the attendance checking device on the electronic device when the electronic device is within the preset protection range and when the electronic device enters a preset trigger range for the first time, where the preset protection range is greater than the preset trigger range.
Optionally, the determining unit 1701 determines whether the electronic device enters the preset protection range or the preset trigger range by:
receiving a near-field signal transmitted by the attendance checking equipment;
determining a distance between the electronic device and the attendance checking device according to the signal strength of the near-field signal, wherein the distance is negatively correlated with the signal strength;
and determining whether the electronic equipment enters the preset protection range or the preset trigger range according to the distance, the protection distance corresponding to the preset protection range and the trigger distance corresponding to the preset trigger range.
Optionally, the display unit 1702 determines whether the electronic device enters the preset trigger range for the first time when the electronic device is within the preset protection range by:
when the electronic equipment enters the preset protection range from the outside, setting the triggering state of the function setting interface to be triggerable;
when the electronic equipment enters the preset trigger range, if the trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time when the electronic equipment is in the preset protection range, and switching the trigger state into non-triggerable.
Optionally, a difference distance between the preset protection range and the preset trigger range is not less than a maximum fluctuation distance of the distance.
Alternatively to this, the first and second parts may,
the display unit 1702 is further configured to: when the electronic equipment is within the preset protection range, displaying an entry option of the function setting interface on the electronic equipment;
the device further comprises: and a switching unit 1703, configured to, when detecting a user trigger operation for the entry option, perform switching control on the function setting interface between a display state and a hidden state.
Optionally, the display unit 1702 is specifically configured to:
triggering, by the electronic device, display of the function setting interface;
or, triggering the display of the function setting interface by a preset application program running on the electronic equipment.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (18)

1. A method for implementing a near field trigger function includes:
determining whether the electronic equipment enters a preset protection range around the beacon equipment;
triggering a preset function when the electronic equipment enters a preset triggering range for the first time within a time period when the electronic equipment is continuously in the preset protection range, wherein the preset protection range is larger than the preset triggering range;
whether the electronic equipment enters the preset trigger range for the first time in the time period is judged in the following mode:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time in the time period, and switching the function trigger state into non-triggerable state.
2. The method of claim 1, wherein determining whether the electronic device enters the preset protection range or the preset trigger range comprises:
receiving a near field signal transmitted by the beacon device;
determining a distance between the electronic device and the beacon device as a function of a signal strength of the near-field signal, wherein the distance is inversely related to the signal strength;
and determining whether the electronic equipment enters the preset protection range or the preset trigger range according to the distance, the protection distance corresponding to the preset protection range and the trigger distance corresponding to the preset trigger range.
3. The method according to claim 1, wherein a phase difference distance between the preset protection range and the preset trigger range is not less than a maximum fluctuation distance of the distance.
4. The method of claim 1, wherein triggering the preset function comprises:
displaying a function trigger interface or a function setting interface for the beacon device on the electronic device.
5. The method of claim 1, further comprising:
when the electronic equipment is within the preset protection range, displaying an entry option of a preset function related to the beacon equipment on the electronic equipment;
when the user trigger operation aiming at the entrance option is detected, the preset function related to the beacon device is switched and controlled between a starting state and a stopping state.
6. The method of claim 1, wherein triggering the preset function comprises:
triggering the preset function by the electronic equipment;
or triggering the preset function by a preset application program running on the electronic equipment.
7. The method of claim 1, wherein the preset function comprises: a function associated with the beacon device.
8. An apparatus for implementing a near field trigger function, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining whether the electronic equipment enters a preset protection range around the beacon equipment;
the triggering unit is used for triggering a preset function when the electronic equipment enters a preset triggering range for the first time within a time period when the electronic equipment is continuously in the preset protection range, wherein the preset protection range is larger than the preset triggering range;
the triggering unit judges whether the electronic equipment enters the preset triggering range for the first time in the time period in the following mode:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time in the time period, and switching the function trigger state into non-triggerable state.
9. The apparatus according to claim 8, wherein the determining unit determines whether the electronic device enters the preset protection range or the preset trigger range by:
receiving a near field signal transmitted by the beacon device;
determining a distance between the electronic device and the beacon device as a function of a signal strength of the near-field signal, wherein the distance is inversely related to the signal strength;
and determining whether the electronic equipment enters the preset protection range or the preset trigger range according to the distance, the protection distance corresponding to the preset protection range and the trigger distance corresponding to the preset trigger range.
10. The device according to claim 8, wherein the phase difference distance between the preset protection range and the preset trigger range is not less than the maximum fluctuation distance of the distance.
11. The apparatus according to claim 8, wherein the trigger unit is specifically configured to:
displaying a function trigger interface or a function setting interface for the beacon device on the electronic device.
12. The apparatus of claim 8, further comprising:
the display unit displays an entry option of a preset function related to the beacon device on the electronic device when the electronic device is within the preset protection range;
and the switching unit is used for switching and controlling the preset functions related to the beacon equipment between a starting state and a stopping state when the user trigger operation aiming at the entrance option is detected.
13. The apparatus according to claim 8, wherein the trigger unit is specifically configured to:
triggering the preset function by the electronic equipment;
or triggering the preset function by a preset application program running on the electronic equipment.
14. The apparatus of claim 8, wherein the preset function comprises: a function associated with the beacon device.
15. A method for implementing a near field trigger function includes:
determining whether the electronic equipment enters a preset protection range around the beacon equipment;
triggering a preset function when the electronic equipment is in the preset protection range and when the electronic equipment enters a preset triggering range for the first time, wherein the preset protection range is larger than the preset triggering range;
whether the electronic equipment enters the preset trigger range for the first time is judged in the following mode:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time, and switching the function trigger state into non-triggerable.
16. An apparatus for implementing a near field trigger function, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining whether the electronic equipment enters a preset protection range around the beacon equipment;
the triggering unit is used for triggering a preset function when the electronic equipment is in the preset protection range and the electronic equipment enters a preset triggering range for the first time, wherein the preset protection range is larger than the preset triggering range;
the triggering unit judges whether the electronic equipment enters the preset triggering range for the first time in the following way:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time, and switching the function trigger state into non-triggerable.
17. A method for implementing a near field trigger function includes:
determining whether the electronic equipment enters a preset protection range around the attendance checking equipment;
displaying a function setting interface aiming at the attendance checking equipment on the electronic equipment when the electronic equipment is in the preset protection range and when the electronic equipment enters a preset trigger range for the first time, wherein the preset protection range is larger than the preset trigger range;
whether the electronic equipment enters the preset trigger range for the first time is judged in the following mode:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time, and switching the function trigger state into non-triggerable.
18. An apparatus for implementing a near field trigger function, comprising:
the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining whether the electronic equipment enters a preset protection range around the attendance checking equipment or not;
the display unit displays a function setting interface aiming at the attendance checking equipment on the electronic equipment when the electronic equipment is in the preset protection range and the electronic equipment enters a preset trigger range for the first time, wherein the preset protection range is larger than the preset trigger range;
the display unit judges whether the electronic equipment enters the preset trigger range for the first time through the following method:
when the electronic equipment enters the preset protection range from the outside, setting a function triggering state as triggerable;
when the electronic equipment enters the preset trigger range, if the function trigger state is triggerable, determining that the electronic equipment enters the preset trigger range for the first time, and switching the function trigger state into non-triggerable.
CN201710317973.1A 2017-05-08 2017-05-08 Method and device for realizing near-field trigger function Active CN108882207B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710317973.1A CN108882207B (en) 2017-05-08 2017-05-08 Method and device for realizing near-field trigger function
PCT/CN2018/085018 WO2018205860A1 (en) 2017-05-08 2018-04-28 Method and device for implementing near field triggering function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710317973.1A CN108882207B (en) 2017-05-08 2017-05-08 Method and device for realizing near-field trigger function

Publications (2)

Publication Number Publication Date
CN108882207A CN108882207A (en) 2018-11-23
CN108882207B true CN108882207B (en) 2022-04-22

Family

ID=64105216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710317973.1A Active CN108882207B (en) 2017-05-08 2017-05-08 Method and device for realizing near-field trigger function

Country Status (2)

Country Link
CN (1) CN108882207B (en)
WO (1) WO2018205860A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636934A (en) * 2018-11-30 2019-04-16 歌尔股份有限公司 A kind of Work attendance method, device and wearable device
CN109636936B (en) * 2018-12-12 2021-05-28 泰康保险集团股份有限公司 Attendance checking system, method, medium and electronic equipment
CN111429595B (en) * 2020-03-20 2022-06-07 Oppo广东移动通信有限公司 A kind of attendance management method, device and computer readable storage medium
CN114481534A (en) * 2020-11-12 2022-05-13 青岛海尔洗衣机有限公司 Washing control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215051A (en) * 2010-04-02 2011-10-12 国民技术股份有限公司 Method for determining distance threshold in process of starting transaction by virtue of radio frequency SIM (subscriber identity model) card based on low-frequency magnetic communication
WO2013089779A1 (en) * 2011-12-16 2013-06-20 Intel Corporation Connection and synchronization with a device in a non-active state based on near field communication
CN104299279A (en) * 2013-07-20 2015-01-21 郑州学生宝电子科技有限公司 Radiofrequency technology-based special electronic attendance checking system for students
CN104574555A (en) * 2015-01-14 2015-04-29 四川大学 Remote checking-in method adopting face classification algorithm based on sparse representation
CN105228093A (en) * 2015-10-14 2016-01-06 郑州大学 Based on the intelligent mobile terminal managing and control system of low-power consumption bluetooth
CN105578418A (en) * 2016-02-25 2016-05-11 成都比善科技开发有限公司 Wireless electronic fence system for industrial fields

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8836580B2 (en) * 2005-05-09 2014-09-16 Ehud Mendelson RF proximity tags providing indoor and outdoor navigation and method of use
US8810454B2 (en) * 2011-10-13 2014-08-19 Microsoft Corporation Power-aware tiered geofencing and beacon watchlists
US9204393B2 (en) * 2012-10-25 2015-12-01 Blackberry Limited System and method of rejecting a low power state based on a cover detection by a mobile wireless communication device
US9191832B2 (en) * 2013-06-06 2015-11-17 Apple Inc. Category-based fence
US9294922B2 (en) * 2013-06-07 2016-03-22 Blackberry Limited Mobile wireless communications device performing device unlock based upon near field communication (NFC) and related methods
US20150103016A1 (en) * 2013-10-11 2015-04-16 Mediatek, Inc. Electronic devices and method for near field communication between two electronic devices
CN105279808A (en) * 2014-05-26 2016-01-27 中兴通讯股份有限公司 Sign-in method, device and sign-in server
CN104376340B (en) * 2014-08-29 2016-06-22 腾讯科技(深圳)有限公司 Punch card method and device
CN104834880B (en) * 2015-05-07 2017-09-05 惠州Tcl移动通信有限公司 A kind of card test method and system based on NFC mobile terminal
CN105957169B (en) * 2016-04-19 2018-05-11 唐山新质点科技有限公司 A kind of detection method based on ibeacon technologies, apparatus and system
CN106303926A (en) * 2016-08-23 2017-01-04 Tcl移动通信科技(宁波)有限公司 A kind of proximity transducer data processing method based on mobile terminal and system
CN106331376A (en) * 2016-09-30 2017-01-11 维沃移动通信有限公司 A power saving method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215051A (en) * 2010-04-02 2011-10-12 国民技术股份有限公司 Method for determining distance threshold in process of starting transaction by virtue of radio frequency SIM (subscriber identity model) card based on low-frequency magnetic communication
WO2013089779A1 (en) * 2011-12-16 2013-06-20 Intel Corporation Connection and synchronization with a device in a non-active state based on near field communication
CN104299279A (en) * 2013-07-20 2015-01-21 郑州学生宝电子科技有限公司 Radiofrequency technology-based special electronic attendance checking system for students
CN104574555A (en) * 2015-01-14 2015-04-29 四川大学 Remote checking-in method adopting face classification algorithm based on sparse representation
CN105228093A (en) * 2015-10-14 2016-01-06 郑州大学 Based on the intelligent mobile terminal managing and control system of low-power consumption bluetooth
CN105578418A (en) * 2016-02-25 2016-05-11 成都比善科技开发有限公司 Wireless electronic fence system for industrial fields

Also Published As

Publication number Publication date
WO2018205860A1 (en) 2018-11-15
CN108882207A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US10789044B2 (en) End-to-end user experiences with a digital assistant
US9626856B2 (en) Detecting presence using a presence sensor network
US10846109B2 (en) Suggesting actions based on machine learning
CN108882207B (en) Method and device for realizing near-field trigger function
JP5202539B2 (en) Automatic device localization
US20170230236A1 (en) Function synchronization method and electronic device for supporting the same
US20170344357A1 (en) Method, apparatus, and computer-readable storage medium for upgrading a zigbee device
US20150249718A1 (en) Performing actions associated with individual presence
KR20180090586A (en) Method for providing notification and an electronic device thereof
US10325123B2 (en) Tracking device wireless preconfiguration
CN106658568B (en) Method and equipment for providing available wireless access point information
US20200126385A1 (en) Information processing apparatus, information processing system and information processing method
US11210633B2 (en) Collaborative event processing method and apparatus
KR20210067784A (en) Electronic device for providing geo-fencing service and method thereof
US12057960B2 (en) Method for notifying a message of a smart home based on a smart screen apparatus and smart screen
CN107148022B (en) A kind of anti-loiter network based reminding method and relevant device
CN108446151B (en) Communication method and device
CN103957514A (en) Method and device for prompting user
HK40000212A (en) Method and device for implementing near-field trigger function
HK40000212B (en) Method and device for implementing near-field trigger function
CN107920330B (en) Method and device for determining geographic position
HK1259220A1 (en) Event processing method and device
HK1259220B (en) Event processing method and device
CN115512472A (en) Information matching method and device, electronic equipment and storage medium
CN116939493A (en) A data processing method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40000212

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant