CN111601293B - Positioning method and device based on Bluetooth beacon equipment - Google Patents

Positioning method and device based on Bluetooth beacon equipment Download PDF

Info

Publication number
CN111601293B
CN111601293B CN202010399483.2A CN202010399483A CN111601293B CN 111601293 B CN111601293 B CN 111601293B CN 202010399483 A CN202010399483 A CN 202010399483A CN 111601293 B CN111601293 B CN 111601293B
Authority
CN
China
Prior art keywords
bluetooth beacon
identifier
user terminal
beacon device
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
CN202010399483.2A
Other languages
Chinese (zh)
Other versions
CN111601293A (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010399483.2A priority Critical patent/CN111601293B/en
Publication of CN111601293A publication Critical patent/CN111601293A/en
Application granted granted Critical
Publication of CN111601293B publication Critical patent/CN111601293B/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/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/12Detection or prevention of fraud
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The specification discloses a positioning method and a positioning device based on Bluetooth beacon equipment, wherein a user terminal can determine a target position to be reached, sends a request for acquiring information corresponding to the target position to a server according to the target position, and receives equipment identification of the Bluetooth beacon equipment corresponding to the target position as first equipment identification and a decryption key which is determined by the server in advance according to the first equipment identification. When the user terminal receives the ciphertext information which is determined and broadcasted by the Bluetooth beacon device according to the device identification of the user terminal, the ciphertext information is decrypted according to the decryption key, the device identification contained in the ciphertext information is obtained and serves as the second device identification, and the user terminal can determine the positioning result according to the first device identification and the second device identification. By the positioning method based on the Bluetooth beacon device, the broadcast content of the Bluetooth beacon device is encrypted, the Bluetooth beacon device is prevented from being forged or maliciously used, and the effect of positioning errors of a user terminal is reduced.

Description

Positioning method and device based on Bluetooth beacon equipment
Technical Field
The present disclosure relates to the field of bluetooth communication technologies, and in particular, to a positioning method and apparatus based on bluetooth beacon devices.
Background
Currently, Bluetooth Beacon (Beacon) devices based on Bluetooth Low Energy (BLE) technology are widely used in positioning technology.
The Bluetooth beacon equipment can externally send broadcast information, and after the user terminal receives the broadcast information, the position information of the user terminal can be determined according to the broadcast information. Generally, the content of the broadcast information of the bluetooth beacon device is fixed, which results in that the bluetooth beacon device is easily forged and used maliciously, thereby causing positioning errors. In addition, to reduce power consumption and increase runtime, there are a large number of bluetooth beacon devices that are not networked, connected to other devices, and that are more susceptible to counterfeiting and malicious use.
Disclosure of Invention
The embodiments of the present specification provide a positioning method and apparatus based on a bluetooth beacon device, so as to partially solve the above problems in the prior art.
The embodiment of the specification adopts the following technical scheme:
the specification provides a positioning method based on Bluetooth beacon equipment, which comprises the following steps:
the user terminal determines the target position to be reached;
according to the target position, sending a request for acquiring information corresponding to the target position to a server;
receiving a device identifier of the Bluetooth beacon device corresponding to the target position returned by the server according to the request as a first device identifier and a decryption key determined by the server in advance according to the first device identifier;
if ciphertext information broadcasted by the Bluetooth beacon device is received, decrypting the ciphertext information according to the decryption key to obtain a device identifier contained in the ciphertext information as a second device identifier, wherein the ciphertext information is determined by the Bluetooth beacon device according to the second device identifier;
and determining a positioning result according to the first equipment identifier and the second equipment identifier.
Optionally, the determining a positioning result according to the first device identifier and the second device identifier specifically includes:
judging whether the first equipment identifier is the same as the second equipment identifier;
if the target position is the same as the positioning result, taking the target position as the positioning result;
if not, the positioning is rejected.
Optionally, when the first device identifier is the same as the second device identifier, the method further includes:
acquiring the running time of the Bluetooth beacon device corresponding to the target position stored in the server as a first time;
taking the running time of the Bluetooth beacon device contained in the ciphertext information as second time, and judging whether the second time is less than the first time;
if the number is less than the preset value, rejecting positioning;
and if not, sending the second time to the server so that the server updates the first time to the second time.
The specification provides a positioning method based on Bluetooth beacon equipment, which comprises the following steps:
the Bluetooth beacon device determines ciphertext information according to the device identification of the Bluetooth beacon device;
broadcasting the ciphertext information to enable a user terminal to decrypt according to a decryption key acquired from the server to obtain an equipment identifier contained in the ciphertext information as a second equipment identifier, and determining a positioning result according to the first equipment identifier and the second equipment identifier;
the first device identification is the device identification of the Bluetooth beacon device corresponding to the target position, which is acquired from the server by the user terminal according to the target position to be reached;
the decryption key is determined by the server in advance according to the first equipment identifier.
Optionally, the determining, by the bluetooth beacon device, the ciphertext information according to the device identifier of the bluetooth beacon device specifically includes:
determining an encryption key according to the second equipment identifier;
and encrypting the second equipment identification and the running time of the Bluetooth beacon equipment according to the encryption key to obtain the ciphertext information.
Optionally, the bluetooth beacon device comprises a counter;
the counter is used for automatically counting when the Bluetooth beacon device is powered on;
the running time of the Bluetooth beacon device is the counting value of the counter.
The specification provides a positioning method based on Bluetooth beacon equipment, which comprises the following steps:
the server determines a device identifier of the Bluetooth beacon device corresponding to the target position as a first device identifier;
determining a decryption key according to the first equipment identifier;
receiving a request sent by a user terminal according to the target position;
according to the request, returning the first equipment identification and the decryption key to the user terminal so that the user terminal decrypts the received ciphertext information broadcasted by the Bluetooth beacon equipment according to the decryption key to obtain the equipment identification contained in the ciphertext information as a second equipment identification, and determining a positioning result according to the first equipment identification and the second equipment identification;
the target position is a position to be reached determined by the user terminal;
and the ciphertext information is determined by the Bluetooth beacon device according to the second device identifier.
Optionally, the method further comprises:
sending the stored running time of the Bluetooth beacon device corresponding to the target position to the user terminal as first time, so that the user terminal refuses positioning when determining that the first device identifier is different from the second device identifier or second time is less than the first time, and taking the target position as the positioning result and sending the second time to the server when determining that the first device identifier is the same as the second device identifier and the second time is not less than the first time;
receiving the second time sent by the user terminal, and updating the first time to the second time;
and the second time is the running time of the Bluetooth beacon device contained in the ciphertext information.
The present specification provides a bluetooth beacon device based positioning system, the system comprising: bluetooth beacon equipment, a server and a user terminal; wherein:
the user terminal determines a target position to be reached and sends a request for acquiring information corresponding to the target position to the server according to the target position;
the server receives the request, and returns a response to the user terminal according to the request, wherein the response comprises a device identifier of the Bluetooth beacon device corresponding to the target position as a first device identifier and a decryption key determined in advance according to the first device identifier;
the Bluetooth beacon device determines ciphertext information and broadcasts the ciphertext information according to the device identification of the Bluetooth beacon device;
and the user terminal receives the ciphertext information, decrypts the ciphertext information according to the decryption key to obtain an equipment identifier contained in the ciphertext information as a second equipment identifier, and determines a positioning result according to the first equipment identifier and the second equipment identifier.
The specification provides a positioning device based on Bluetooth beacon equipment, which comprises:
a position determining module, which is used for determining the target position to be reached by the user terminal where the device is located;
the sending request module is used for sending a request for acquiring information corresponding to the target position to a server according to the target position;
the information receiving module is used for receiving the device identifier of the Bluetooth beacon device corresponding to the target position returned by the server according to the request as a first device identifier and a decryption key determined by the server in advance according to the first device identifier;
the decryption module is used for decrypting the ciphertext information according to the decryption key if the ciphertext information broadcasted by the Bluetooth beacon device is received, and obtaining a device identifier contained in the ciphertext information as a second device identifier, wherein the ciphertext information is determined by the Bluetooth beacon device according to the second device identifier;
and the positioning determining module is used for determining a positioning result according to the first equipment identifier and the second equipment identifier.
The specification provides a positioning device based on Bluetooth beacon equipment, which comprises:
the identification determining module is used for determining the equipment identification of the Bluetooth beacon equipment corresponding to the target position by a server of the device as a first equipment identification;
a key determining module, configured to determine a decryption key according to the first device identifier;
a receiving request module, configured to receive a request sent by a user terminal according to the target location;
and the information sending module is used for returning the first equipment identifier and the decryption key to the user terminal according to the request, so that the user terminal decrypts received ciphertext information broadcasted by the Bluetooth beacon equipment according to the decryption key to obtain an equipment identifier contained in the ciphertext information as a second equipment identifier, and determines a positioning result according to the first equipment identifier and the second equipment identifier, wherein the target position is a position to be reached and determined by the user terminal, and the ciphertext information is determined by the Bluetooth beacon equipment according to the second equipment identifier.
The present specification provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the positioning method based on the bluetooth beacon device.
The bluetooth beacon device provided by the present specification comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the above positioning method based on the bluetooth beacon device.
Optionally, the bluetooth beacon device further comprises: a counter;
the processor executes the program to realize the positioning method based on the Bluetooth beacon equipment
The electronic device provided by the present specification comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the positioning method based on the bluetooth beacon device.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the user terminal can determine a target position to be reached, sends a request for acquiring information corresponding to the target position to the server according to the target position, and receives a device identifier of the Bluetooth beacon device corresponding to the target position sent by the server as a first device identifier and a decryption key determined in advance according to the first device identifier. When the user terminal receives the ciphertext information which is determined and broadcasted by the Bluetooth beacon device according to the device identification of the user terminal, the ciphertext information is decrypted according to the decryption key, the device identification contained in the ciphertext information is obtained and serves as the second device identification, and the user terminal can determine the positioning result according to the first device identification and the second device identification. Through the positioning method based on the Bluetooth beacon device, the broadcast content of the Bluetooth beacon device is encrypted, the Bluetooth beacon device is prevented from being forged or used maliciously, and the effect of reducing the positioning error of the user terminal is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
fig. 1 is a schematic diagram of a positioning system based on bluetooth beacon devices according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a positioning method based on a bluetooth beacon device according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another positioning method based on bluetooth beacon devices according to an embodiment of the present disclosure;
fig. 4 is an interaction flowchart of a positioning method based on a bluetooth beacon device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a positioning apparatus based on a bluetooth beacon device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another positioning apparatus based on bluetooth beacon devices according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a bluetooth beacon apparatus provided in an embodiment of the present disclosure;
fig. 8 is a schematic view of an electronic device provided in an embodiment of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification.
The positioning method based on the bluetooth beacon device provided by the specification can be applied to various scenes, for example, the positioning method based on the bluetooth beacon device provided by the specification can be applied to a takeaway delivery scene. In the prior art, a method for determining whether a distributor reaches a merchant is to determine a distance between a position reported by a terminal of the distributor and a position of the merchant, and when the distance is smaller than a preset distance threshold, it is determined that the distributor reaches the merchant. The problem of inaccurate positioning often occurs because the accuracy of the position reported by the terminal (i.e., the user terminal) of the dispenser is low. In the scheme, the bluetooth beacon device may be placed in a shop of a merchant, for example, at a meal taking port of the merchant, and after the distributor receives a takeaway order distributed by the server, the distributor may obtain information of the bluetooth beacon device sent by the server according to a merchant identifier in the takeaway order, for example, a merchant name, a location, and the like, where the information of the bluetooth beacon device of the merchant may include information such as a device identifier of the bluetooth beacon device as a first device identifier, and an operating time as a first time and a decryption key. After the distributor arrives at the merchant, the terminal of the distributor can receive the ciphertext information broadcast by the Bluetooth beacon device of the merchant, the ciphertext information is decrypted according to the decryption key, the device identification of the Bluetooth beacon device in the ciphertext information is obtained to serve as the second device identification, the running time serves as the second time, and other information, the first device identification and the second device identification, the first time and the second time are respectively compared, when the first device identification is consistent with the second device identification and the second time is not less than the first time, the positioning result of the terminal of the distributor can be determined, namely, the time when the distributor arrives at the merchant and arrives at the merchant is determined, when the second time is less than the first time, the ciphertext received by the terminal of the distributor is not broadcasted by the Bluetooth beacon device of the merchant, namely, the Bluetooth beacon device of the merchant can be forged or used maliciously, an early warning message may be sent to the server so that the server determines whether the merchant's bluetooth beacon device is forged or maliciously used.
As another example, the positioning method based on bluetooth beacon devices provided in this specification can be applied to shopping mall promotion scenarios. The shopping mall can be provided with the Bluetooth beacon device, the user can obtain the device identification, the running time, the decryption key and other information of the Bluetooth beacon device of the shopping mall from the server, when the user arrives at the shopping mall, the ciphertext information broadcasted by the Bluetooth beacon device of the shopping mall is received, the ciphertext information is decrypted by using the decryption key, the information such as the device identification, the running time and the like of the Bluetooth beacon device of the shopping mall contained in the ciphertext information is obtained, comparing the obtained device identification and running time with the decrypted device identification and running time, judging whether the user arrives at the market according to the comparison result, if so, receiving the promotion activity information of the market, otherwise, indicating that the Bluetooth beacon equipment of the market is possibly forged or maliciously used by competitors, an early warning message may be sent to the server so that the server determines whether the bluetooth beacon device of the merchant is forged or maliciously used.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a positioning system based on a bluetooth beacon device according to an embodiment of the present disclosure, and in fig. 1, the positioning system based on the bluetooth beacon device may include a bluetooth beacon device 101, a user terminal 102, and a server 103.
The Bluetooth Beacon (Beacon) device 101 may be a Bluetooth signal generating source based on a Bluetooth 4.0 communication protocol or Bluetooth Low Energy (BLE) technology. The bluetooth beacon device 101 may be formed by a bluetooth low energy communication module with a power supply, and broadcast a data packet (i.e., ciphertext information) through the bluetooth low energy communication module at preset intervals, where the ciphertext information may include information such as a device identifier of the bluetooth beacon device 101 and running time of the bluetooth beacon device 101, and of course, other information, for example, commodity sales promotion information, may be added to the ciphertext information according to actual needs. The bluetooth beacon device 101 may be placed in places such as shopping malls, parks, and the like. The ciphertext information broadcast by the bluetooth beacon device 101 may be determined according to the device identifier and the running time of the bluetooth beacon device 101, and meanwhile, the bluetooth beacon device 101 may also re-determine the ciphertext information according to the device identifier and the running time, and the like, according to the preset time interval, so that the ciphertext information broadcast by the bluetooth beacon device 101 dynamically changes.
In this specification, the bluetooth beacon apparatus 101 may be a bluetooth beacon apparatus that is not networked and connected to other apparatuses, and the bluetooth beacon apparatus 101 may not include a clock chip, that is, the bluetooth beacon apparatus 101 does not need to determine the time physically in seconds, in this case, the bluetooth beacon apparatus 101 may include a counter, where the counter is used for automatically counting when the bluetooth beacon apparatus 101 is powered on, and the automatic counting function of the counter may be implemented by program control or by a hardware circuit, so the running time of the bluetooth beacon apparatus 101 in this specification may include a count value of the counter. Compared with the prior art that the bluetooth beacon device needs to be connected with a server so that the server synchronizes a dynamic key to a user terminal, the bluetooth beacon device 101 in the present specification does not need to be connected with other devices or networked, and can determine whether the bluetooth beacon device 101 is forged or maliciously used while realizing the positioning of the user terminal by decrypting ciphertext information and processing the decrypted information through the user terminal.
Of course, the bluetooth beacon device 101 may also be a conventional bluetooth beacon device, i.e., a bluetooth beacon device that may be networked and/or connected to other devices.
The user terminal 102 may be an electronic device supporting a bluetooth 4.0 communication protocol, for example, a smart device such as a mobile phone and a tablet computer. When the user terminal 101 determines the target location to be reached, information of the bluetooth beacon device corresponding to the target location, for example, device identification, running time, decryption key and the like of the bluetooth beacon device corresponding to the target location, may be acquired from the server 103. When the user terminal 102 enters the bluetooth signal coverage area of the bluetooth beacon device corresponding to the target location, the user terminal 102 may receive the ciphertext information broadcast by the bluetooth beacon device 101, decrypt the ciphertext information according to the decryption key to obtain the device identifier, the running time and other information contained in the ciphertext information, compare the obtained device identifier with the decrypted device identifier, and compare the obtained running time with the decrypted running time, while implementing the positioning function of the user terminal 102, identify whether the bluetooth beacon device 101 is the bluetooth beacon device corresponding to the target location, when identifying that the bluetooth beacon device 101 is the bluetooth beacon device corresponding to the target location, the user terminal 102 may obtain the service corresponding to the target location, when identifying that the bluetooth beacon device 101 is not the bluetooth beacon device corresponding to the target location, the user terminal 102 may send an early warning message to the server 103, so that the server 103 performs a corresponding operation according to the warning message.
The server 103 may be a third party application platform, such as an order scheduling platform, etc., and may also be a device that manages the bluetooth beacon device 101. The server 103 stores the device identifier, the running time, the decryption key and the like of the bluetooth beacon device corresponding to the target position, wherein the server 103 can obtain the device identifier of the bluetooth beacon device corresponding to the target position in advance, determine the decryption key according to the device identifier of the bluetooth beacon device corresponding to the target position, initialize the running time of the bluetooth beacon device corresponding to the target position by the server 103, and update the running time after receiving the running time sent by the user terminal.
It should be noted that, in this specification, the bluetooth beacon device 101 may encrypt the information at a preset time interval to obtain ciphertext information and broadcast the ciphertext information, and does not need to connect to the server 103, that is, the bluetooth beacon device 101 does not need to perform data transmission with the server 103, and the user terminal 102 may perform data transmission with the server 103, receive the ciphertext information broadcast by the bluetooth beacon device 101, and decrypt the ciphertext information, thereby determining the positioning result.
Based on the positioning system based on the bluetooth beacon device shown in fig. 1, the embodiments of the present specification further provide a flowchart of a positioning method based on the bluetooth beacon device, as shown in fig. 2.
Fig. 2 is a flowchart of a positioning method based on a bluetooth beacon device according to an embodiment of the present disclosure, which may specifically include the following steps:
s200: the user terminal determines the target position to be reached.
In this specification, the target position determined by the user terminal may be expressed in different meanings in different application scenarios. For example, in a take-away delivery scenario, the target location may be a merchant identification such as a merchant number, merchant name, etc. in the take-away order. As another example, in a mall sales promotion scenario, the target location may be a location of a mall, and may also be a mall identifier such as a mall number, a mall name, and the like. That is, the target position in the present specification includes not only latitude and longitude position information in a narrow sense but also other uniquely representable information such as a logo.
S202: and sending a request for acquiring information corresponding to the target position to a server according to the target position.
S204: and receiving the device identification of the Bluetooth beacon device corresponding to the target position returned by the server according to the request as a first device identification, and a decryption key determined by the server in advance according to the first device identification.
After the user terminal determines the target position to be reached, the information corresponding to the target position can be obtained.
Specifically, the user terminal may send a request for obtaining information corresponding to the target location to the server according to the target location, after receiving the request sent by the user terminal, the server sends, to the user terminal, the device identifier of the bluetooth beacon device corresponding to the target location stored in the server as the first device identifier, the decryption key, and the running time as the first time, and the user terminal may receive the first device identifier and the decryption key sent by the server. The server may determine the decryption key in advance according to the first device identifier, initialize the running time of the bluetooth beacon device corresponding to the target location, and update the first time to the second time when the running time sent by the user terminal is received as the second time.
Therefore, the information corresponding to the target location may include information such as the first device identifier, the decryption key, and the first time.
S206: and if ciphertext information broadcasted by the Bluetooth beacon device is received, decrypting the ciphertext information according to the decryption key to obtain a device identifier contained in the ciphertext information as a second device identifier, wherein the ciphertext information is determined by the Bluetooth beacon device according to the second device identifier.
In this specification, a user terminal may receive ciphertext information broadcast by a bluetooth beacon device in real time, and a plurality of bluetooth beacon devices may also be placed in other locations, so that the user terminal may receive ciphertext information broadcast by each bluetooth beacon device in a polling manner, and decrypt the received ciphertext information according to a decryption key corresponding to the bluetooth beacon device corresponding to a target location acquired from a server to obtain information contained in the ciphertext, where the ciphertext information may include information such as a device identifier (i.e., a second device identifier) of the bluetooth beacon device, and an operation time (i.e., a second time) of the bluetooth beacon device.
Here, it needs to be explained that the bluetooth beacon device determines the ciphertext information according to the second device identifier and broadcasts the ciphertext information.
Specifically, first, the bluetooth beacon device may determine the encryption key based on the second device identification and the identification of the vendor of the bluetooth beacon device.
In this specification, the second device identifier may include information such as a mac (media Access Control address) address, a Serial Number (SN) code, and the second device identifier may uniquely determine one bluetooth beacon device, that is, the device identifiers of the bluetooth beacon devices are different. The server may set an identification for the vendor that provides the bluetooth beacon device, which may be represented as a Token (Token), i.e., Token differs for each vendor.
The bluetooth beacon device may determine the encryption key from the second device identification and the vendor's Token using a key generation algorithm. The bluetooth beacon device may input the second device identifier and Token of the vendor into the key generation algorithm to obtain the encryption key output by the key generation algorithm. The key generation Algorithm may be a Digest encryption Algorithm such as MD5 Message Digest Algorithm (Message Digest Algorithm MD5), Secure Hash Algorithm 1(Secure Hash Algorithm 1, SHA-1), or may be a custom key generation Algorithm that outputs a data length that matches an encryption key.
Then, the bluetooth beacon device may encrypt the second device identifier and the second time according to the encryption key to obtain the ciphertext information.
In this specification, the bluetooth beacon device may encrypt the second device identifier and the current running time of the bluetooth beacon device using a symmetric encryption algorithm to obtain the ciphertext information. The bluetooth beacon device may input the encryption key, the second device identifier, and the current running time into the symmetric encryption algorithm to obtain ciphertext information output by the symmetric encryption algorithm, where the ciphertext information includes the second device identifier, the second running time, and other information. The symmetric Encryption algorithm may be Advanced Encryption Standard (AES), Data Encryption Standard (DES), etc., and different symmetric Encryption algorithms may be selected according to the Data length of the Encryption key.
When the bluetooth beacon device is not networked or connected to other devices, a counter may be included in the bluetooth beacon device, and the second time may be a count value of the counter. Since the counter automatically counts when the bluetooth beacon device is powered on, when the bluetooth beacon device encrypts the second device identifier and the running time, the second time is the current count value determined by the counter.
The bluetooth beacon device may further encrypt the second device identifier and the second time at a preset time interval according to the encryption key, so as to obtain the ciphertext information. Therefore, the Bluetooth beacon device updates the ciphertext information and broadcasts the updated ciphertext information at preset time intervals.
S208: and determining a positioning result according to the first equipment identifier and the second equipment identifier.
After the ciphertext information is decrypted to obtain the second device identifier and the second time, the user terminal may determine whether the first device identifier is the same as the second device identifier. And if the judgment results are the same, determining a positioning result according to the first time and the second time, and if the judgment results are different, rejecting positioning.
Specifically, the user terminal may compare whether the first device identifier is identical to the second device identifier, and if the comparison result is identical, determine that the first device identifier is identical to the second device identifier, then obtain a running time of the bluetooth beacon device corresponding to the target location stored in the server as a first time, use the running time of the bluetooth beacon device included in the ciphertext information as a second time, determine whether the second time is less than the first time, that is, determine whether a count value obtained by decrypting the ciphertext information is less than a count value obtained from the server, if the determination result is less than the first time, refuse to perform positioning, if the determination result is not less than the second time, use the target location as a positioning result, and send the second time to the server, so that the server updates the first time to the second time, that is, sends the count value obtained by decrypting the ciphertext information to the server, so that the server updates the stored count value to the received count value.
If the comparison result is inconsistent, it is determined that the first device identifier is different from the second device identifier, which indicates that the scanned bluetooth beacon device (i.e., the bluetooth beacon device broadcasting the ciphertext information) is not the bluetooth beacon device corresponding to the target location, and therefore, the user terminal may refuse to locate.
It should be noted that, when the first device identifier is the same as the second device identifier and the second running time is less than the first running time, it is indicated that the bluetooth beacon device corresponding to the target location may be forged or maliciously used, so the user terminal may send the warning information to the server, so that the server performs a corresponding operation according to the warning information to determine whether the bluetooth beacon device at the target location is forged or maliciously used.
Based on the positioning system based on the bluetooth beacon device shown in fig. 1, the embodiment of this specification further provides another flowchart of a positioning method based on the bluetooth beacon device, as shown in fig. 3.
Fig. 3 is a flowchart of another positioning method based on a bluetooth beacon device according to an embodiment of the present disclosure, which may specifically include the following steps:
s300: and the server determines the device identification of the Bluetooth beacon device corresponding to the target position as the first device identification.
In this specification, through manners such as manual collection, the server may obtain a correspondence between each target location and the bluetooth beacon device, and for each target location, may determine a device identifier of the bluetooth beacon device corresponding to the target location, an identifier of a provider providing the bluetooth beacon device (that is, Token of the provider), and information such as a running time of the bluetooth beacon device. The server may use the device identifier of the bluetooth beacon device corresponding to the target location determined to be reached by the user terminal as the first device identifier, and use the running time of the bluetooth beacon device corresponding to the target location determined to be reached by the user terminal as the first time.
S302: and determining a decryption key according to the first equipment identifier.
The server may determine a decryption key from the first device identification and the vendor Token using a key generation algorithm. The server may input the first device identifier and the Token of the vendor into the key generation algorithm to obtain the decryption key output by the key generation algorithm.
As can be seen from the above, the bluetooth beacon device obtains the ciphertext information by using a symmetric encryption algorithm, so the decryption key determined by the server is the same as the encryption key determined by the bluetooth beacon device, and the key generation algorithm used by the server to generate the decryption key is the same as the key generation algorithm used by the bluetooth beacon device to generate the encryption key.
S304: and receiving a request sent by the user terminal according to the target position.
S306: and returning the first equipment identifier and the decryption key to the user terminal according to the request, so that the user terminal decrypts the received ciphertext information broadcast by the bluetooth beacon equipment according to the decryption key to obtain an equipment identifier contained in the ciphertext information as a second equipment identifier, and determines a positioning result according to the first equipment identifier and the second equipment identifier, wherein the target position is a position to be reached determined by the user terminal, and the ciphertext information is determined by the bluetooth beacon equipment according to the second equipment identifier.
When receiving a request sent by the user terminal according to the target position, the server can send information such as the first device identifier, the decryption key, the first time and the like to the user terminal, so that the user terminal decrypts the received ciphertext information broadcast by the Bluetooth beacon device according to the decryption key, and obtains the device identifier contained in the ciphertext information as the second device identifier and the running time contained in the ciphertext information as the second time.
After determining that the first device identifier is consistent with the second device identifier, the user terminal can judge whether the second time is less than the first time, and when the judgment result is less than the first time, the user terminal can send early warning information to the server. And when the judgment result is not less than the first time, the user terminal can send the second time to the server.
If the server receives the warning information sent by the user terminal, corresponding operations can be executed according to the warning information to judge whether the bluetooth beacon device at the target position is forged or maliciously used, for example, in a takeaway distribution scene, the server can judge whether at least two warning messages about the bluetooth beacon device corresponding to a merchant in the takeaway order are received, if yes, the bluetooth beacon device corresponding to the merchant in the takeaway order is judged to be possibly forged or maliciously used, and the takeaway order is processed.
If the server receives the second time sent by the user terminal, the first time stored in the server can be deleted, and the second time is stored, that is, the first time is updated to the second time.
Based on the above-mentioned positioning method based on bluetooth beacon device, an interaction flow diagram of the positioning method based on bluetooth beacon device is also provided in the embodiments of the present specification, as shown in fig. 4.
Fig. 4 is an interaction flowchart of a positioning method based on a bluetooth beacon device according to an embodiment of the present disclosure.
In fig. 4, the bluetooth beacon device may determine an encryption key by using a key generation algorithm according to the device identifier of the bluetooth beacon device and the identifier of the provider that provides the bluetooth beacon device and is preset by the server, and then encrypt the device identifier of the bluetooth beacon device and the running time at a preset time interval by using a symmetric encryption algorithm according to the encryption key to obtain ciphertext information, and broadcast the ciphertext information. The running time of the bluetooth beacon device may be a count value that a counter of the bluetooth beacon device automatically counts when the bluetooth beacon device is powered on.
For convenience of description, the device identifier of the bluetooth beacon device corresponding to the target location stored in the server is taken as the first device identifier, and the runtime of the bluetooth beacon device stored in the server is taken as the first time. The server may generate a decryption key using a key generation algorithm based on the first device identification and the identification of the vendor.
The user terminal determines a target position to be reached, sends a request for acquiring information corresponding to the target position to the server according to the target position, and after receiving the request, the server sends information such as a first device identifier, a decryption key and first time to the user terminal.
And after the user terminal receives the ciphertext information broadcast by the Bluetooth beacon device, decrypting the ciphertext information according to the decryption key to obtain the device identifier of the Bluetooth beacon device, the running time of the Bluetooth beacon device and other information contained in the ciphertext information. The user terminal can judge whether the first equipment identification is the same as the second equipment identification, if the judgment result is different, the ciphertext information received by the user terminal is not the ciphertext information broadcasted by the Bluetooth beacon equipment corresponding to the target position, if the judgment result is the same, the user terminal can judge whether the second time is less than the first time, if the judgment result is less than the first time, the user terminal refuses to position, the early warning information can be sent to the server, so that the server executes corresponding operation according to the early warning information, judges whether the Bluetooth beacon equipment at the target position is forged or maliciously used, if the judgment result is not less than the second time, the user terminal can take the target position as the positioning result and send the second time to the server, so that the server updates the first time to the second time.
Based on the positioning method based on the bluetooth beacon device shown in fig. 2, an embodiment of this specification further provides a schematic structural diagram of a positioning apparatus based on the bluetooth beacon device, as shown in fig. 5.
Fig. 5 is a schematic structural diagram of a positioning apparatus based on a bluetooth beacon device according to an embodiment of the present disclosure, where the apparatus includes:
a position determining module 501, configured to determine a target position to be reached by a user terminal where the apparatus is located;
a sending request module 502, configured to send, to a server, a request for obtaining information corresponding to the target location according to the target location;
a receiving information module 503, configured to receive, as a first device identifier, a device identifier of the bluetooth beacon device corresponding to the target location returned by the server according to the request, and a decryption key determined by the server in advance according to the first device identifier;
a decryption module 504, configured to, if ciphertext information broadcast by a bluetooth beacon device is received, decrypt, according to the decryption key, the ciphertext information to obtain a device identifier included in the ciphertext information as a second device identifier, where the ciphertext information is determined by the bluetooth beacon device according to the second device identifier;
a positioning determining module 505, configured to determine a positioning result according to the first device identifier and the second device identifier.
According to the positioning method based on the Bluetooth beacon device, the broadcast content of the Bluetooth beacon device is encrypted, the Bluetooth beacon device does not need to be connected with other devices, the user terminal can obtain the decryption key and the device identification from the server, the device identification broadcasted by the Bluetooth beacon device is obtained through the decryption key, the positioning result is determined according to the obtained device identification and the device identification obtained through decryption, and compared with the prior art, the effect of reducing the positioning error of the user terminal is achieved.
Optionally, the positioning determining module 505 is specifically configured to determine whether the first device identifier is the same as the second device identifier, if so, take the target location as the positioning result, and if not, reject positioning.
Optionally, the apparatus further comprises a first update module 506;
the first updating module 506 is specifically configured to, when the first device identifier is the same as the second device identifier, obtain a running time of the bluetooth beacon device corresponding to the target location stored in the server as a first time, use the running time of the bluetooth beacon device included in the ciphertext information as a second time, determine whether the second time is smaller than the first time, if so, refuse to locate, and if not, send the second time to the server, so that the server updates the first time to the second time.
When the first device identifier is the same as the second device identifier and the second running time is less than the first running time, it indicates that the bluetooth beacon device corresponding to the target location may be forged or maliciously used, so the user terminal may send the warning information to the server, so that the server executes the corresponding operation according to the warning information, and determines whether the bluetooth beacon device at the target location is forged or maliciously used. And when the first device identification is the same as the second device identification and the second running time is not less than the first running time, determining the positioning result of the user terminal, and updating the running time stored in the server, so that the running time of the Bluetooth beacon device corresponding to the target position is provided for other user terminals when the other user terminals need to be positioned. Meanwhile, the Bluetooth beacon device in the content does not need to be networked or connected with other devices, and the method ensures that the Bluetooth beacon device which is not networked or connected with other devices is not forged or maliciously used.
Based on the positioning method based on the bluetooth beacon device shown in fig. 3, an embodiment of this specification further provides a schematic structural diagram of another positioning apparatus based on the bluetooth beacon device, as shown in fig. 6.
Fig. 6 is a schematic structural diagram of another positioning apparatus based on bluetooth beacon devices according to an embodiment of the present disclosure, where the apparatus includes:
an identification determining module 601, configured to determine, by a server in which the apparatus is located, an equipment identifier of a bluetooth beacon device corresponding to a target location, where the equipment identifier is used as a first equipment identifier;
a key determining module 602, configured to determine a decryption key according to the first device identifier;
a receiving request module 603, configured to receive a request sent by a user terminal according to the target location;
a sending information module 604, configured to return the first device identifier and the decryption key to the user terminal according to the request, so that the user terminal decrypts, according to the decryption key, the received ciphertext information broadcast by the bluetooth beacon device, obtains a device identifier included in the ciphertext information as a second device identifier, and determines a positioning result according to the first device identifier and the second device identifier, where the target position is a position to be reached and determined by the user terminal, and the ciphertext information is determined by the bluetooth beacon device according to the second device identifier.
Optionally, the apparatus further comprises a second update module 605;
the second updating module 605 is specifically configured to send the stored running time of the bluetooth beacon device corresponding to the target location to the user terminal as a first time, so that the user terminal refuses to perform positioning when it is determined that the first device identifier is different from the second device identifier or that the second time is less than the first time, and when it is determined that the first device identifier is the same as the second device identifier and the second time is not less than the first time, the target location is used as the positioning result, the second time is sent to the server, the second time sent by the user terminal is received, and the first time is updated to the second time, where the second time is the running time of the bluetooth beacon device included in the ciphertext information.
Embodiments of the present specification further provide a computer-readable storage medium storing a computer program, where the computer program may be used to execute some or all of the steps in the above positioning method based on bluetooth beacon devices.
Based on some or all of the steps in the positioning method based on the bluetooth beacon device, the embodiment of this specification further proposes a schematic structure diagram of the bluetooth beacon device shown in fig. 7. As shown in fig. 7, the bluetooth beacon device includes, at a hardware level, a counter, a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may include hardware required for other services. The counter is used for automatically counting when the Bluetooth beacon device is powered on, and the processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program so as to realize part or all of the steps in the positioning method based on the Bluetooth beacon device.
Based on some or all steps in the positioning method based on the bluetooth beacon device, the embodiment of the present specification further provides a schematic structure diagram of the electronic device shown in fig. 8. As shown in fig. 8, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to realize part or all of the steps in the positioning method based on the Bluetooth beacon device. The electronic device may be a user terminal or a server.
Of course, besides the software implementation, the present specification 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 be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry for implementing the logical method flows can be readily obtained by a mere need to program the method flows with some of the hardware description languages described above and into an integrated circuit.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium that stores computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
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. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more pieces of software and/or hardware in the practice of this description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device 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.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (14)

1. A method for positioning based on bluetooth beacon devices, the method comprising:
a user terminal determines a target position to be reached;
according to the target position, sending a request for acquiring information corresponding to the target position to a server;
receiving a device identifier of the Bluetooth beacon device corresponding to the target position returned by the server according to the request as a first device identifier and a decryption key determined by the server in advance according to the first device identifier;
if ciphertext information broadcasted by the Bluetooth beacon device is received, decrypting the ciphertext information according to the decryption key to obtain a device identifier contained in the ciphertext information as a second device identifier, wherein the ciphertext information is determined by encrypting the second device identifier and the running time of the Bluetooth beacon device by the Bluetooth beacon device according to an encryption key; the encryption key is determined by the bluetooth beacon device according to the second device identification; the Bluetooth beacon device only communicates with the user terminal;
and determining a positioning result according to the first equipment identifier and the second equipment identifier.
2. The method of claim 1, wherein the determining a positioning result according to the first device identifier and the second device identifier specifically includes:
judging whether the first equipment identifier is the same as the second equipment identifier;
if the target position is the same as the positioning result, taking the target position as the positioning result;
if not, the positioning is rejected.
3. The method of claim 2, wherein when the first device identification is the same as the second device identification, the method further comprises:
acquiring the running time of the Bluetooth beacon device corresponding to the target position stored in the server as a first time;
taking the running time of the Bluetooth beacon device contained in the ciphertext information as second time, and judging whether the second time is less than the first time;
if the number is less than the preset value, rejecting positioning;
and if not, sending the second time to the server so that the server updates the first time to the second time.
4. A method for positioning based on bluetooth beacon devices, the method comprising:
the Bluetooth beacon device determines ciphertext information according to the device identification of the Bluetooth beacon device;
broadcasting the ciphertext information to enable a user terminal to decrypt the ciphertext information according to a decryption key acquired from a server to obtain an equipment identifier contained in the ciphertext information as a second equipment identifier, and determining a positioning result according to the first equipment identifier and the second equipment identifier;
the first device identification is the device identification of the Bluetooth beacon device corresponding to the target position, which is acquired from the server by the user terminal according to the target position to be reached;
the decryption key is determined by the server according to the first equipment identifier in advance;
the bluetooth beacon device determines ciphertext information according to a device identifier of the bluetooth beacon device, and specifically includes:
determining an encryption key according to the second equipment identifier;
encrypting the second equipment identification and the running time of the Bluetooth beacon equipment according to the encryption key to obtain the ciphertext information; the bluetooth beacon device communicates only with the user terminal.
5. The method of claim 4, wherein the Bluetooth beacon device comprises a counter;
wherein the counter is used for automatically counting when the Bluetooth beacon equipment is powered on;
and the running time of the Bluetooth beacon device is the counting value of the counter.
6. A method for positioning based on bluetooth beacon devices, the method comprising:
the server determines a device identifier of the Bluetooth beacon device corresponding to the target position as a first device identifier;
determining a decryption key according to the first equipment identifier;
receiving a request sent by a user terminal according to the target position;
according to the request, returning the first equipment identification and the decryption key to the user terminal so that the user terminal decrypts the received ciphertext information broadcasted by the Bluetooth beacon equipment according to the decryption key to obtain the equipment identification contained in the ciphertext information as a second equipment identification, and determining a positioning result according to the first equipment identification and the second equipment identification;
the target position is a position to be reached determined by the user terminal;
the ciphertext information is determined by encrypting the second device identifier and the running time of the Bluetooth beacon device by the Bluetooth beacon device according to an encryption key; the encryption key is determined by the bluetooth beacon device according to the second device identification; the bluetooth beacon device communicates only with the user terminal.
7. The method of claim 6, wherein the method further comprises:
sending the stored running time of the Bluetooth beacon device corresponding to the target position to the user terminal as first time, so that the user terminal refuses positioning when determining that the first device identifier is different from the second device identifier or second time is less than the first time, and taking the target position as the positioning result and sending the second time to the server when determining that the first device identifier is the same as the second device identifier and the second time is not less than the first time;
receiving the second time sent by the user terminal, and updating the first time to the second time;
and the second time is the running time of the Bluetooth beacon device contained in the ciphertext information.
8. A positioning system based on bluetooth beacon devices, the system comprising: bluetooth beacon equipment, a server and a user terminal; wherein:
the user terminal determines a target position to be reached and sends a request for acquiring information corresponding to the target position to the server according to the target position;
the server receives the request, and returns a response to the user terminal according to the request, wherein the response comprises a device identifier of the Bluetooth beacon device corresponding to the target position as a first device identifier and a decryption key determined in advance according to the first device identifier;
the Bluetooth beacon device determines ciphertext information and broadcasts the ciphertext information according to the device identification of the Bluetooth beacon device; specifically, the bluetooth beacon device determines an encryption key according to the second device identifier; encrypting the second equipment identification and the running time of the Bluetooth beacon equipment according to the encryption key to obtain the ciphertext information; the Bluetooth beacon device only communicates with the user terminal;
and the user terminal receives the ciphertext information, decrypts the ciphertext information according to the decryption key to obtain an equipment identifier contained in the ciphertext information as a second equipment identifier, and determines a positioning result according to the first equipment identifier and the second equipment identifier.
9. Positioning apparatus based on bluetooth beacon devices, the apparatus comprising:
a position determining module, configured to determine a target position to be reached by a user terminal where the apparatus is located;
the sending request module is used for sending a request for acquiring information corresponding to the target position to a server according to the target position;
the information receiving module is used for receiving the device identifier of the Bluetooth beacon device corresponding to the target position returned by the server according to the request as a first device identifier and a decryption key determined by the server in advance according to the first device identifier;
the decryption module is used for decrypting ciphertext information according to the decryption key if ciphertext information broadcasted by the Bluetooth beacon device is received, and obtaining a device identifier contained in the ciphertext information as a second device identifier, wherein the ciphertext information is determined by encrypting the second device identifier and the running time of the Bluetooth beacon device by the Bluetooth beacon device according to an encryption key; the encryption key is determined by the bluetooth beacon device according to the second device identification; the Bluetooth beacon device only communicates with the user terminal;
and the positioning determining module is used for determining a positioning result according to the first equipment identifier and the second equipment identifier.
10. Positioning apparatus based on bluetooth beacon devices, the apparatus comprising:
the identification determining module is used for determining the equipment identification of the Bluetooth beacon equipment corresponding to the target position as a first equipment identification by a server where the device is located;
a key determining module, configured to determine a decryption key according to the first device identifier;
a receiving request module, configured to receive a request sent by a user terminal according to the target location;
the information sending module is configured to return the first device identifier and the decryption key to the user terminal according to the request, so that the user terminal decrypts received ciphertext information broadcast by the bluetooth beacon device according to the decryption key to obtain a device identifier included in the ciphertext information as a second device identifier, and determines a positioning result according to the first device identifier and the second device identifier, where the target position is a position to be reached and determined by the user terminal, and the ciphertext information is determined by encrypting, by the bluetooth beacon device, the second device identifier and running time of the bluetooth beacon device according to an encryption key; the encryption key is determined by the bluetooth beacon device according to the second device identification; the bluetooth beacon device communicates only with the user terminal.
11. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-3 or 4-5 or 6-7.
12. A bluetooth beacon device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of claim 4 when executing the program.
13. The bluetooth beacon device of claim 12, wherein the bluetooth beacon device further comprises: a counter;
the processor, when executing the program, implements the method of claim 5.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-3 or 6-7 when executing the program.
CN202010399483.2A 2020-05-12 2020-05-12 Positioning method and device based on Bluetooth beacon equipment Active CN111601293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010399483.2A CN111601293B (en) 2020-05-12 2020-05-12 Positioning method and device based on Bluetooth beacon equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010399483.2A CN111601293B (en) 2020-05-12 2020-05-12 Positioning method and device based on Bluetooth beacon equipment

Publications (2)

Publication Number Publication Date
CN111601293A CN111601293A (en) 2020-08-28
CN111601293B true CN111601293B (en) 2022-09-30

Family

ID=72191268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010399483.2A Active CN111601293B (en) 2020-05-12 2020-05-12 Positioning method and device based on Bluetooth beacon equipment

Country Status (1)

Country Link
CN (1) CN111601293B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112839333B (en) * 2021-01-08 2022-04-29 支付宝(杭州)信息技术有限公司 Service processing method and device based on wireless communication
CN112969174A (en) * 2021-01-29 2021-06-15 展讯通信(上海)有限公司 Key distribution method and electronic equipment
CN113438598B (en) * 2021-06-29 2023-02-03 平安普惠企业管理有限公司 Terminal positioning method and device, computer equipment and storage medium
CN113766429A (en) * 2021-09-09 2021-12-07 深圳市雪球科技有限公司 Device positioning method, device, wallet and storage medium
CN114501330A (en) * 2021-12-23 2022-05-13 北京声智科技有限公司 Method and device for processing stream modulation point, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980918A (en) * 2014-04-04 2015-10-14 阿里巴巴集团控股有限公司 Beacon data transmission method, beacon data transmission device, method of providing service based on beacon and device of providing service based on beacon
CN105516887A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Bluetooth based positioning method and device
CN108323229A (en) * 2018-01-26 2018-07-24 香港应用科技研究院有限公司 Safe BLE broadcast systems for location based service
CN109168162A (en) * 2018-11-20 2019-01-08 北京千丁互联科技有限公司 Bluetooth communication encryption method, device and intelligent security guard equipment
CN111025232A (en) * 2019-11-29 2020-04-17 泰康保险集团股份有限公司 Bluetooth positioning method, Bluetooth positioning device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11115814B2 (en) * 2015-06-29 2021-09-07 Here Global B.V. Use of encryption to provide positioning support services

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980918A (en) * 2014-04-04 2015-10-14 阿里巴巴集团控股有限公司 Beacon data transmission method, beacon data transmission device, method of providing service based on beacon and device of providing service based on beacon
CN105516887A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Bluetooth based positioning method and device
CN108323229A (en) * 2018-01-26 2018-07-24 香港应用科技研究院有限公司 Safe BLE broadcast systems for location based service
CN109168162A (en) * 2018-11-20 2019-01-08 北京千丁互联科技有限公司 Bluetooth communication encryption method, device and intelligent security guard equipment
CN111025232A (en) * 2019-11-29 2020-04-17 泰康保险集团股份有限公司 Bluetooth positioning method, Bluetooth positioning device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111601293A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111601293B (en) Positioning method and device based on Bluetooth beacon equipment
EP3772700A1 (en) Method and device for encrypting model of neural network, and storage medium
US8892165B2 (en) Device and a method for enhancing user experience in mobile communications
CN111756717B (en) Information processing method and device
TWI695634B (en) Beacon data transmission, method and device for providing service based on beacon
CN107026832B (en) Account login method, device and server
CN109493564B (en) Alarm method, device and system
CN108990059B (en) Verification method and device
CN109995876B (en) File transmission method, device, system and computer storage medium
CN109564598A (en) A kind of endpoint detection methods and terminal
CN108564363B (en) Transaction processing method, server, client and system
EP3933625A1 (en) Information verification method, apparatus, and device
EP3041188B1 (en) Method, device and system for controlling presentation of application
CN105303120B (en) Short message reading method and device
WO2017054283A1 (en) Method and mobile terminal for using sim data
CN110852796B (en) Position positioning method, device, medium and apparatus
US20210042779A1 (en) Sales promotion method, apparatus and electronic device
CN109218837B (en) Method and equipment for displaying special effect of virtual gift
CN104639394A (en) Statistical method, device and system for number of users of client
CN110011807B (en) Key information maintenance method and system
CN113765950A (en) Internet of things equipment, server and software updating method
CN108985109B (en) Data storage method and device
CN107463808B (en) Method for calling functional module integrated in operating system
CN114339676A (en) Updating system, method and device for unmanned equipment
CN110334794B (en) Method and device for generating offline graphic code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant