CN111065049B - Positioning method and device of Bluetooth equipment - Google Patents

Positioning method and device of Bluetooth equipment Download PDF

Info

Publication number
CN111065049B
CN111065049B CN201911365663.2A CN201911365663A CN111065049B CN 111065049 B CN111065049 B CN 111065049B CN 201911365663 A CN201911365663 A CN 201911365663A CN 111065049 B CN111065049 B CN 111065049B
Authority
CN
China
Prior art keywords
mobile terminal
bluetooth device
bluetooth
serial number
module
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
CN201911365663.2A
Other languages
Chinese (zh)
Other versions
CN111065049A (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201911365663.2A priority Critical patent/CN111065049B/en
Publication of CN111065049A publication Critical patent/CN111065049A/en
Application granted granted Critical
Publication of CN111065049B publication Critical patent/CN111065049B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a positioning method and device of Bluetooth equipment, and belongs to the field of communication. The method comprises the following steps: the method comprises the steps that a mobile terminal obtains a broadcast data packet of a target type Bluetooth device, a Bluetooth device serial number is obtained from the broadcast data packet, when the mobile terminal has an available network, a request server inquires whether the Bluetooth device needs to be positioned or not according to the Bluetooth device serial number, if yes, the position information of the mobile terminal is reported to the server, when the mobile terminal does not have the available network, the current position information of the mobile terminal is obtained and stored, when the mobile terminal waits for the available network, the request server inquires whether the Bluetooth device needs to be positioned or not, and if yes, the position information is reported to the server. The method provided by the invention realizes the positioning of the Bluetooth equipment needing to be positioned.

Description

Positioning method and device of Bluetooth equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for positioning a bluetooth device.
Background
The wearable equipment of bluetooth is a wireless electronic product of present wide use, because of its have that the size is little, the low power dissipation, the advantage such as low price, stable performance, maneuverability is strong, often used as the annex of intelligent mobile device such as cell-phone and used, has greatly made things convenient for the user. However, because the bluetooth wearable device is small in size and generally does not have a positioning function, when the user cannot find the bluetooth wearable device, how to realize positioning for the bluetooth wearable device is still a problem to be solved urgently.
Disclosure of Invention
The invention provides a positioning method and a positioning device of Bluetooth equipment to overcome the defects in the prior art.
The invention provides a positioning method of Bluetooth equipment, which comprises the following steps:
step 101: the mobile terminal scans surrounding Bluetooth equipment and acquires a broadcast data packet of the Bluetooth equipment belonging to a target type;
step 102: the mobile terminal acquires the serial number of the Bluetooth equipment from the broadcast data packet;
step 103: the mobile terminal judges whether an available network exists at present, if so, step 104 is executed, otherwise, step 106 is executed;
step 104: the mobile terminal generates a second query request based on the serial number of the Bluetooth device, and queries whether the Bluetooth device needs to be positioned by sending the second query request to a server, if so, executing a step 105, otherwise, returning to the step 101;
step 105: the mobile terminal binds the position information of the mobile terminal with the serial number of the Bluetooth equipment and reports the position information to the server, and the step 101 is returned;
step 106: the mobile terminal binds the position information of the mobile terminal with the serial number of the Bluetooth equipment, monitors the network state, and executes the step 107 when an available network is monitored;
step 107: the mobile terminal generates a second query request based on the serial number of the Bluetooth device, and queries whether the Bluetooth device needs to be positioned by sending the second query request to the server, if so, executing step 108, otherwise, returning to step 101;
step 108: the mobile terminal reports the bound position information of the mobile terminal and the serial number of the Bluetooth device to the server, and the step 101 is returned;
before the mobile terminal binds the position information of the mobile terminal with the serial number of the bluetooth device, the method further includes: and the mobile terminal acquires and stores the position information of the mobile terminal.
Optionally, the step 101 specifically includes:
step S1: the mobile terminal scans surrounding Bluetooth equipment;
step S2: when the mobile terminal scans the Bluetooth equipment, acquiring first preset byte data from a broadcast data packet of the Bluetooth equipment;
step S3: and the mobile terminal judges whether the broadcast data packet belongs to the target type Bluetooth device according to the first preset byte data, if so, the step 102 is executed, otherwise, the step S1 is returned.
Optionally, the step S3 includes:
step A1: the mobile terminal acquires a manufacturer identifier of the Bluetooth equipment of the target type stored in the mobile terminal;
step A2: and the mobile terminal compares the first preset byte data with the manufacturer identification of the target type Bluetooth device, if the first preset byte data is consistent with the manufacturer identification of the target type Bluetooth device, the step 102 is executed, and if not, the step S1 is returned.
Optionally, the step 101 specifically includes:
step H1: the mobile terminal scans surrounding Bluetooth equipment;
step H2: and the mobile terminal acquires the broadcast data packet of the Bluetooth equipment belonging to the target type through a preset scanning filtering strategy.
Optionally, the step 102 specifically includes:
step B1: the mobile terminal acquires manufacturer defined data from the broadcast data packet;
step B2: and the mobile terminal acquires the serial number of the Bluetooth equipment from the manufacturer custom data.
Optionally, the obtaining, by the mobile terminal, the location information of the mobile terminal specifically includes:
step N1: the mobile terminal acquires longitude and latitude information of a position where the mobile terminal is located;
step N2: and the mobile terminal acquires corresponding street information or corresponding building information according to the longitude and latitude information of the position where the mobile terminal is located.
Optionally, step N1 specifically includes: the mobile terminal acquires the longitude and latitude information of the current position of the mobile terminal in a wireless compatible authentication positioning mode, a base station positioning mode or a global positioning system mode.
Optionally, before the step 101, the method further includes: the mobile terminal monitors the network state of the mobile terminal and acquires the current network state parameters.
Optionally, the monitoring, by the mobile terminal, the network state of the mobile terminal specifically includes:
step C1: the mobile terminal calls a monitoring network object interface through a first preset function;
step C2: the mobile terminal sets a callback function of the monitoring network object through a second preset function;
step C3: the mobile terminal recalls the callback function of the monitoring network object to acquire the current network state parameter;
step C4: and the mobile terminal stores the current network state parameters.
Optionally, before the step 103, the method further includes: and the mobile terminal stores the identification code issued by the server.
Optionally, between step 103 and step 104, further comprising: the mobile terminal establishes a first query request based on the identity identification code and the serial number of the Bluetooth device, queries whether the Bluetooth device is the Bluetooth device bound by the mobile terminal by sending the first query request to a server, if so, returns to step 101, otherwise, executes step 104.
The invention provides a positioning device of Bluetooth equipment, comprising:
the scanning acquisition module is used for scanning surrounding Bluetooth equipment and acquiring a broadcast data packet of the Bluetooth equipment belonging to a target type;
the first acquisition module is used for acquiring the serial number of the Bluetooth equipment from the broadcast data packet;
the first judgment module is used for judging whether an available network exists at present, if so, the first generation query module is triggered, and otherwise, the binding monitoring module is triggered;
the first generation inquiry module is used for generating a second inquiry request based on the serial number of the Bluetooth equipment, inquiring whether the Bluetooth equipment needs to be positioned or not by sending the second inquiry request to a server, if so, triggering a binding sending module, and otherwise, triggering the scanning acquisition module;
the binding sending module is used for binding the position information of the mobile terminal with the serial number of the Bluetooth device and reporting the position information to the server to trigger the scanning acquisition module;
the binding monitoring module is used for binding the position information of the mobile terminal with the serial number of the Bluetooth equipment, monitoring the network state, and triggering the second generation query module when an available network is monitored;
the second query generation module is used for generating a second query request based on the serial number of the Bluetooth device, querying whether the Bluetooth device needs to be positioned or not by sending the second query request to the server, if so, triggering the first sending module, and otherwise, triggering the scanning acquisition module;
the first sending module is configured to report the bound location information of the mobile terminal and the serial number of the bluetooth device to the server, and trigger the scanning acquisition module;
the mobile terminal further includes: and the second acquisition module is used for acquiring and storing the position information of the mobile terminal before binding the position information of the mobile terminal with the serial number of the Bluetooth equipment.
Optionally, the scan acquisition module specifically includes:
the first scanning unit is used for scanning Bluetooth equipment around the mobile terminal;
the first acquisition unit is used for acquiring first preset byte data from a broadcast data packet of the Bluetooth device when the Bluetooth device is scanned by the scanning unit;
and the first judging unit is used for judging whether the broadcast data packet belongs to the target type Bluetooth equipment according to the first preset byte data, if so, triggering the first acquiring module, and otherwise, triggering the first scanning unit.
Optionally, the first determining unit specifically includes:
the first acquisition subunit is used for acquiring the stored manufacturer identification of the Bluetooth device of the target type;
and the first judgment subunit is used for comparing the first preset byte data with the manufacturer identification of the target type of the Bluetooth device, if the first preset byte data is consistent with the manufacturer identification of the target type of the Bluetooth device, the first acquisition module is triggered, and otherwise, the first scanning unit is triggered.
Optionally, the scan acquisition module specifically includes:
the second scanning unit is used for scanning Bluetooth equipment around the mobile terminal;
and the second acquisition unit is used for acquiring the broadcast data packet of the Bluetooth device belonging to the target type through a preset scanning filtering strategy.
Optionally, the first obtaining module specifically includes: a third acquisition unit and a fourth acquisition unit;
the third obtaining unit is configured to obtain vendor defined data from the broadcast data packet;
and the fourth obtaining unit is used for obtaining the serial number of the Bluetooth equipment from the manufacturer-defined data.
Optionally, the second obtaining module specifically includes: a fifth acquiring unit and a sixth acquiring unit;
the fifth acquiring unit is used for acquiring longitude and latitude information of the current position of the mobile terminal;
and the sixth acquisition unit is used for acquiring corresponding street information or corresponding building information according to the longitude and latitude information of the position where the mobile terminal is located.
Optionally, the fifth obtaining unit is specifically configured to obtain the longitude and latitude information of the current location of the mobile terminal in a wireless compatible authentication and positioning manner, a base station positioning manner, or a global positioning system manner.
Optionally, the positioning device further comprises:
and the network monitoring module is used for monitoring the network state of the mobile terminal and acquiring the current network state parameters.
Optionally, the monitoring network module specifically includes:
a seventh obtaining unit, configured to call and monitor a network object interface through a first preset function;
the first setting unit is used for setting a callback function of the monitoring network object through a second preset function;
the eighth acquiring unit is configured to call back the callback function of the monitoring network object, and acquire a current network state parameter;
and the first storage unit is used for storing the current network state parameter.
Optionally, the positioning device further comprises: and the first storage module is used for storing the identification code issued by the server.
Optionally, the positioning device further comprises:
and the third generation inquiry module is used for establishing a first inquiry request based on the identification code and the serial number of the Bluetooth equipment, inquiring whether the Bluetooth equipment is the Bluetooth equipment bound by the mobile terminal or not by sending the first inquiry request to a server, and if so, triggering the scanning acquisition module, otherwise, triggering the first generation inquiry module.
Compared with the prior art, the invention has the following advantages: according to the positioning method of the Bluetooth equipment, when the mobile terminal finds the Bluetooth equipment and determines that the Bluetooth equipment needs to be positioned by means of the server, the mobile terminal obtains the current position of the mobile terminal and reports the information to the server, so that the positioning of the Bluetooth equipment needing to be positioned is realized, and a user can conveniently obtain the position information of the Bluetooth equipment to be positioned.
Drawings
Fig. 1 is a flowchart of a positioning method for a bluetooth device according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a positioning method for a bluetooth device according to embodiment 2 of the present invention;
fig. 3 is a flowchart of a positioning method of a bluetooth device according to embodiment 3 of the present invention;
fig. 4 is a block diagram of a positioning apparatus of a bluetooth device according to embodiment 4 of the present invention.
Detailed Description
The present application provides a positioning method and apparatus for bluetooth devices, and the following detailed description is provided with reference to the accompanying drawings. Examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
The embodiments provided by the present invention are implemented when the following conditions are satisfied: 1. the mobile terminal acquires the authority of a user for allowing others to position the Bluetooth equipment; 2. when the Bluetooth equipment is disconnected with the mobile terminal bound with the Bluetooth equipment, the Bluetooth equipment can send Bluetooth broadcast according to a certain broadcast interval; 3. the bluetooth function of the mobile terminal is in an on state and the mobile terminal is in a login state.
Example 1
The embodiment provides a positioning method of a bluetooth device, which is applied to a mobile terminal, and as shown in fig. 1, the method includes the following steps:
step 101: the mobile terminal scans surrounding Bluetooth equipment and acquires a broadcast data packet of the Bluetooth equipment belonging to a target type;
step 102: the mobile terminal acquires the serial number of the Bluetooth equipment from the broadcast data packet;
step 103: the mobile terminal judges whether an available network exists at present, if so, step 104 is executed, otherwise, step 106 is executed;
step 104: the mobile terminal generates a second query request based on the serial number of the Bluetooth device, queries whether the Bluetooth device needs to be positioned by sending the second query request to the server, if so, executes the step 105, otherwise, returns to the step 101;
step 105: the mobile terminal binds the position information of the mobile terminal with the serial number of the Bluetooth device and reports the position information to the server, and the step 101 is returned;
step 106: the mobile terminal binds the position information of the mobile terminal with the serial number of the Bluetooth device, monitors the network state, and executes the step 107 when an available network is monitored;
step 107: the mobile terminal generates a second query request based on the serial number of the Bluetooth device, queries whether the Bluetooth device needs to be positioned by sending the second query request to the server, if so, executes step 108, otherwise, returns to step 101;
step 108: the mobile terminal reports the bound position information of the mobile terminal and the serial number of the Bluetooth device to the server, and the step 101 is returned;
further, before the mobile terminal binding the location information of the mobile terminal with the serial number of the bluetooth device, the method further includes: and the mobile terminal acquires and stores the position information of the mobile terminal.
According to the positioning method of the Bluetooth equipment, when the mobile terminal finds the Bluetooth equipment and determines that the Bluetooth equipment needs to be positioned by means of the server, the mobile terminal obtains the current position information of the mobile terminal and reports the position information to the server, so that the positioning of the Bluetooth equipment needing to be positioned is realized, and a user can conveniently obtain the position information of the Bluetooth equipment to be positioned.
Example 2
The embodiment provides a positioning method of a bluetooth device, which is applied to a mobile terminal, and as shown in fig. 2, the method includes the following steps:
step 200: the mobile terminal monitors the network state of the mobile terminal;
optionally, in this embodiment, step 200 specifically includes:
step C1: the mobile terminal calls a monitoring network object interface through a first preset function to acquire a monitoring network object;
step C2: the mobile terminal sets a callback function of a monitoring network object through a second preset function, wherein the callback function of the monitoring network object is used for acquiring a network state parameter when the network of the mobile terminal changes;
step C3: the mobile terminal calls back a callback function of the monitoring network object to acquire a current network state parameter;
step C4: the mobile terminal saves the current network state parameters;
optionally, the network status parameter is used for characterizing a network type of the mobile terminal;
optionally, in this embodiment, the network status parameters have four types, which are respectively: -1, 0, 1 and 2; wherein, -1 represents that the current network is an unknown network, 0 represents that no available network is available currently, 1 represents that the current network is a mobile network, and 2 represents that the current network is a wireless network (Wi-Fi);
step 201: the mobile terminal scans surrounding Bluetooth equipment;
optionally, in this embodiment, step 201 specifically includes: after the Bluetooth function of the mobile terminal is started, the mobile terminal calls a Bluetooth scanning data interface, sets scanning parameters to be null, and scans broadcast data packets in a first preset range;
specifically, the first preset range is an effective distance of bluetooth communication, and when the distance between the bluetooth device and the mobile terminal exceeds the first preset range, the mobile terminal cannot scan the broadcast data packet sent by the bluetooth device.
Optionally, step 201 is preceded by: the mobile terminal stores the identity identification code issued by the server;
optionally, the identity code uniquely corresponds to the mobile terminal, and is used for identifying the identity of the mobile terminal;
specifically, the identification code issued by the mobile terminal receiving server is specifically: a user triggers a mobile terminal to log in a server, the server generates an identification code of the mobile terminal based on user login information, and the mobile terminal receives the identification code issued by the server;
optionally, the triggering, by the user, the mobile terminal login server specifically includes: a user inputs a login account and a login password on a user login interface of the mobile terminal, and presses down a login confirmation server;
optionally, the receiving the identification code sent by the server specifically includes: when the mobile terminal logs in the server, the server randomly generates an identification code of the mobile terminal according to a login account of the mobile terminal, and sends the identification code to the mobile terminal, and the mobile terminal stores the identification code.
Step 202: when the mobile terminal scans the Bluetooth equipment, acquiring first preset byte data from a broadcast data packet of the Bluetooth equipment;
optionally, the first preset byte data is located in vendor-defined data of the broadcast data packet;
optionally, in this embodiment, the first preset byte data specifically includes: broadcasting data on the first byte to the third byte of the vendor defined data in the data packet;
optionally, the obtaining of the first preset byte data from the broadcast data packet specifically includes: the mobile terminal acquires data on a first byte to a third byte from manufacturer-defined data of the broadcast data packet;
for example: the vendor-defined data is: 43544B4764E08EA8834764E08EA 88211;
the first preset byte data is: 43544B;
step 203: the mobile terminal judges whether the broadcast data packet belongs to the target type Bluetooth equipment according to the first preset byte data, if so, the step 204 is executed, otherwise, the step 201 is returned;
optionally, step 203 specifically includes:
step A1: the mobile terminal acquires a manufacturer identifier of the Bluetooth device of a target type stored by the mobile terminal;
step A2: the mobile terminal compares the first preset byte data with the manufacturer identification of the target type Bluetooth device, if the first preset byte data is consistent with the manufacturer identification of the target type Bluetooth device, the step 204 is executed, otherwise, the step 201 is returned;
specifically, the manufacturer identifier of the target type bluetooth device is a set of data customized by the manufacturer of the target type bluetooth device, so as to identify the same type of target type bluetooth device;
optionally, step a2 specifically includes: the mobile terminal compares the first preset byte data with the manufacturer identification of the target type Bluetooth device, if the first preset byte data is the same as the manufacturer identification of the target type Bluetooth device, the Bluetooth device scanned by the mobile terminal belongs to the target type Bluetooth device, and if the first preset byte data is different from the manufacturer identification of the target type Bluetooth device, the Bluetooth device scanned by the mobile terminal does not belong to the target type Bluetooth device;
for example: the vendor identification of the target type of bluetooth device is: 43544B, the first predetermined byte data is: 43544B, if the bluetooth device scanned by the mobile terminal belongs to the target type of bluetooth device;
for example: the vendor identification of the target type of bluetooth device is: 43544B, the first predetermined byte data is: 2636C2, the bluetooth device scanned by the mobile terminal is not a bluetooth device of the target type;
optionally, another embodiment of this embodiment is: step 202 to step 203 are replaced by the following steps:
step H1: the mobile terminal scans Bluetooth equipment around the mobile terminal;
step H2: the mobile terminal acquires a broadcast data packet of the Bluetooth equipment belonging to the target type through a preset scanning filtering strategy;
optionally, the scanning filtering policy is specifically: the mobile terminal sets the scanning parameters of the Bluetooth scanning data interface as the universal identification code of the target type Bluetooth equipment;
the step H2 specifically includes: and the mobile terminal acquires the broadcast data packet with the universal identification code.
Step 204: the mobile terminal acquires the serial number of the Bluetooth equipment from the broadcast data packet;
optionally, step 204 specifically includes:
step B1: the mobile terminal acquires manufacturer-defined data from the broadcast data packet;
step B2: the mobile terminal obtains the serial number of the Bluetooth device from the manufacturer custom data;
optionally, the serial number of the bluetooth device is located in vendor-defined data of the broadcast data packet, and is used for distinguishing different bluetooth devices;
optionally, in this embodiment, the serial number of the bluetooth device is specifically: broadcasting data on the first byte to the ninth byte of the vendor defined data in the data packet;
optionally, in this embodiment, step B2 specifically includes: the mobile terminal acquires data on a first byte to a ninth byte from vendor-defined data;
for example: the vendor-defined data is: 43544B4764E08EA88211, the serial number of the Bluetooth device is: 43544B4764E08EA 883;
step 205: the mobile terminal judges whether an available network exists currently, if so, the step 206 is executed, otherwise, the step 216 is executed;
specifically, in this embodiment, step 205 specifically includes: the mobile terminal obtains the current network state parameter saved by the mobile terminal, judges whether an available network exists at present through the current network state parameter, if the network state parameter is 1 or 2, the step 206 is executed, and if the network state parameter is-1 or 0, the step 216 is executed;
step 206: the mobile terminal acquires an identity identification code stored by the mobile terminal;
specifically, the identity identification code stored by the mobile terminal is only valid when the mobile terminal logs in for the second time, and the identity identification code stored by the mobile terminal is invalid when the mobile terminal logs out;
optionally, the id stored in the mobile terminal is still valid when the mobile terminal has no network.
Step 207: the mobile terminal builds a first query request according to the identity identification code and the serial number of the Bluetooth device, and sends the first query request to the server;
optionally, the first query request is used to request to query whether the bluetooth device is a bluetooth device bound by the mobile terminal.
Step 208: the mobile terminal receives a first query result returned by the server;
optionally, the first query result comprises: first judgment information or second judgment information;
optionally, in this embodiment, step 208 further includes: and the mobile terminal analyzes the first query result to acquire first judgment information or second judgment information.
Step 209: the mobile terminal judges whether the Bluetooth device is a Bluetooth device bound by the mobile terminal according to the first query result, if so, the step 201 is returned, otherwise, the step 210 is executed;
optionally, step 209 specifically includes: returning to step 201 when the first query result received by the mobile terminal includes the first judgment information, and executing step 210 when the first query result received by the mobile terminal includes the second judgment information;
optionally, in this embodiment, the first determination information specifically includes: the Bluetooth equipment is bound by the mobile terminal; the second judgment information is specifically: the Bluetooth equipment is not the Bluetooth equipment bound by the mobile terminal;
optionally, in this embodiment, step 209 specifically includes: and returning to the step 201 when the first query result received by the mobile terminal is that the bluetooth device is the bluetooth device bound by the mobile terminal, and executing the step 210 when the first query result received by the mobile terminal is that the bluetooth device is not the bluetooth device bound by the mobile terminal.
Step 210: the mobile terminal builds a second query request according to the serial number of the Bluetooth equipment and sends the second query request to the server;
optionally, the second query request specifically includes: whether the Bluetooth device is a Bluetooth device to be positioned.
Step 211: the mobile terminal receives a second query result returned by the server;
optionally, the second query result comprises: third judgment information or fourth judgment information;
optionally, in this embodiment, step 211 further includes: and the mobile terminal analyzes the second query result to acquire third judgment information or fourth judgment information.
Step 212: the mobile terminal judges whether the Bluetooth equipment is the Bluetooth equipment to be positioned according to the second inquiry result, if so, the step 213 is executed, otherwise, the step 201 is returned;
optionally, step 212 specifically includes: returning to step 213 when the second query result received by the mobile terminal includes the third determination information, and executing step 201 when the second query result received by the mobile terminal includes the fourth determination information;
optionally, in this embodiment, the third determination information specifically includes: the Bluetooth device is a Bluetooth device to be positioned; the fourth judgment information is specifically: the bluetooth device is not a bluetooth device to be located;
optionally, in this embodiment, step 212 specifically includes: and when the second inquiry result received by the mobile terminal is that the bluetooth device is the bluetooth device to be positioned, executing step 213, and when the second inquiry result received by the mobile terminal is that the bluetooth device is not the bluetooth device to be positioned, returning to step 201.
Step 213: the method comprises the steps that a mobile terminal obtains longitude and latitude information of a current position of the mobile terminal;
optionally, step 213 is specifically: the mobile terminal obtains the latitude and longitude information of the current position of the mobile terminal through Wireless Fidelity (WiFi) Positioning, base station Positioning, Global Positioning System (GPS) and other modes.
Optionally, step 213 is more specifically: the mobile terminal acquires longitude and latitude information of a current position of the mobile terminal through a positioning module of the mobile terminal, and takes the longitude and latitude information of the position of the mobile terminal as the longitude and latitude information of the position of the Bluetooth device to be positioned;
step 214: the mobile terminal acquires corresponding street information or corresponding building information according to the longitude and latitude information of the current position of the mobile terminal;
step 215: the mobile terminal sends the serial number of the bluetooth device, the longitude and latitude information and the street information of the current position of the mobile terminal or the longitude and latitude information and the building information to the server, and returns to step 201.
Optionally, in this embodiment, step 215 further includes: the mobile terminal binds the serial number of the Bluetooth device, the longitude and latitude information of the current position of the mobile terminal with street information or the longitude and latitude information with building information;
step 216: the method comprises the steps that a mobile terminal obtains longitude and latitude information of a current position of the mobile terminal;
optionally, in this embodiment, step 216 specifically includes: the mobile terminal obtains longitude and latitude information of a current position of the mobile terminal through a Global Positioning System (GPS);
step 217: the mobile terminal stores the serial number of the Bluetooth device and the longitude and latitude information of the current position of the mobile terminal;
optionally, in this embodiment, step 217 further includes: the mobile terminal binds the serial number of the Bluetooth device with the longitude and latitude information of the current position of the mobile terminal;
step 218: when the mobile terminal monitors the change of the network state, judging whether an available network exists at present, if so, executing step 219, otherwise, continuing to monitor the network state, and executing step 218;
optionally, in this embodiment, step 218 specifically includes: when the mobile terminal monitors the change of the network state, acquiring a current network state parameter stored by the mobile terminal, judging whether an available network exists at present by the mobile terminal according to the current network state parameter, if the network state parameter is 1 or 2, executing step 219, if the network state parameter is-1 or 0, continuing to monitor the network state, and executing step 218;
optionally, in this embodiment, there are four network state parameters, which are respectively: -1, 0, 1 and 2; wherein, -1 represents that the current network is an unknown network, 0 represents that no available network is available currently, 1 represents that the current network is a mobile network, and 2 represents that the current network is a wireless network (Wi-Fi).
Step 219: the mobile terminal acquires an identity identification code prestored in the mobile terminal;
specifically, the identity identification code stored by the mobile terminal is only valid when the mobile terminal logs in for the second time, and the identity identification code stored by the mobile terminal is invalid when the mobile terminal logs out;
optionally, the id stored in the mobile terminal is still valid when the mobile terminal has no network.
Optionally, the obtaining, by the mobile terminal, the identity code stored by the mobile terminal specifically includes: and the mobile terminal acquires the identification code of the mobile terminal from the local database.
Step 220: the mobile terminal builds a first query request according to the identity identification code and the serial number of the Bluetooth device, and sends the first query request to the server;
optionally, the first query request is used to request to query whether the bluetooth device is a bluetooth device bound by the mobile terminal.
Step 221: the mobile terminal receives a first query result returned by the server;
optionally, the first query result comprises: first judgment information or second judgment information;
optionally, in this embodiment, step 221 further includes: and the mobile terminal analyzes the first query result to acquire first judgment information or second judgment information.
Step 222: the mobile terminal judges whether the Bluetooth device is a Bluetooth device bound by the mobile terminal according to the first query result, if so, the step 229 is executed, otherwise, the step 223 is executed;
optionally, step 222 specifically includes: when the first query result received by the mobile terminal includes the first judgment information, executing step 229, and when the first query result received by the mobile terminal includes the second judgment information, executing step 223;
optionally, in this embodiment, the first determination information specifically includes: the Bluetooth equipment is bound by the mobile terminal; the second judgment information is specifically: the Bluetooth equipment is not the Bluetooth equipment bound by the mobile terminal;
optionally, in this embodiment, a specific implementation manner of step 222 is: when the first query result received by the mobile terminal is that the bluetooth device is a bluetooth device bound by the mobile terminal, executing step 229, and when the first query result received by the mobile terminal is that the bluetooth device is not a bluetooth device bound by the mobile terminal, executing step 223;
optionally, in this embodiment, another specific implementation manner of step 222 is: and when the first query result received by the mobile terminal is that the bluetooth device is the bluetooth device bound by the mobile terminal, the mobile terminal sends a connection instruction back to the bluetooth device to connect back the bluetooth device, step 229 is executed, and when the first query result received by the mobile terminal is that the bluetooth device is not the bluetooth device bound by the mobile terminal, step 223 is executed.
Step 223: the mobile terminal builds a second query request according to the serial number of the Bluetooth equipment and sends the second query request to the server;
optionally, the second query request specifically includes: whether the Bluetooth device is a Bluetooth device to be positioned.
Step 224: the mobile terminal receives a second query result returned by the server;
optionally, the second query result comprises: third judgment information or fourth judgment information;
optionally, in this embodiment, step 224 further includes: and the mobile terminal analyzes the second query result to acquire third judgment information or fourth judgment information.
Step 225: the mobile terminal judges whether the Bluetooth device is a Bluetooth device to be positioned according to the second inquiry result, if so, the step 226 is executed, otherwise, the step 229 is executed;
optionally, step 225 specifically includes: when the second query result received by the mobile terminal includes the third determination information, executing step 226, and when the second query result received by the mobile terminal includes the fourth determination information, executing step 229;
optionally, in this embodiment, the third determination information specifically includes: the Bluetooth device is a Bluetooth device to be positioned; the fourth judgment information is specifically: the bluetooth device is not a bluetooth device to be located;
optionally, in this embodiment, step 225 specifically includes: when the second inquiry result received by the mobile terminal is that the bluetooth device is a bluetooth device to be positioned, step 226 is executed, and when the second inquiry result received by the mobile terminal is that the bluetooth device is not a bluetooth device to be positioned, step 229 is executed.
Step 226: the method comprises the steps that a mobile terminal obtains a serial number of a Bluetooth device stored in the mobile terminal and longitude and latitude information of a current position of the mobile terminal;
optionally, in this embodiment, step 226 specifically includes: the mobile terminal acquires the serial number of the Bluetooth device and the longitude and latitude information of the current position of the mobile terminal from a local database;
step 227: the mobile terminal acquires corresponding street information or corresponding building information according to the longitude and latitude information of the current position of the mobile terminal;
step 228: the mobile terminal sends the serial number of the bluetooth device, the longitude and latitude information and the street information of the current position of the mobile terminal or the longitude and latitude information and the building information to the server, and step 229 is executed;
step 229: the mobile terminal deletes the serial number of the bluetooth device and the latitude and longitude information of the current position of the mobile terminal, and returns to step 201.
Optionally, in this embodiment, step 229 specifically is: the mobile terminal deletes the serial number of the bluetooth device and the latitude and longitude information of the current position of the mobile terminal from the local database, and returns to step 201.
According to the positioning method of the Bluetooth equipment, when the mobile terminal finds the Bluetooth equipment and determines that the Bluetooth equipment needs to be positioned by means of the server, the mobile terminal obtains the current position information of the mobile terminal and reports the position information to the server, so that the positioning of the Bluetooth equipment needing to be positioned is realized, and a user can conveniently obtain the position information of the Bluetooth equipment to be positioned.
Example 3
The embodiment provides a positioning method of a bluetooth device, which is applied to a server, and as shown in fig. 3, the method includes the following steps:
step 301: the method comprises the steps that a server receives a first query request sent by a mobile terminal, wherein the first query request comprises an identification code of the mobile terminal and a serial number of Bluetooth equipment;
optionally, when the mobile terminal logs in the server, the server allocates an identification code to the mobile terminal, and the identification code of the mobile terminal is used for distinguishing different mobile terminals;
optionally, the serial number of the bluetooth device uniquely corresponds to the bluetooth device for distinguishing different bluetooth devices.
Step 302: the server analyzes the first query request, and obtains an identification code of the mobile terminal and a serial number of the Bluetooth device;
optionally, the first query request is used for requesting to query whether the bluetooth device is a bluetooth device bound by the mobile terminal;
step 303: the server acquires a first data list belonging to the mobile terminal according to the identity identification code of the mobile terminal;
optionally, in a database of the server, each mobile terminal has a unique first data list for storing serial numbers of bluetooth devices bound to the mobile terminal;
optionally, step 303 specifically includes: the server acquires a first data list belonging to the mobile terminal from a database of the server according to the identity identification code of the mobile terminal.
Step 304: the server judges whether the serial number of the Bluetooth device is stored in the first data list or not and generates judgment information;
optionally, step 304 specifically includes: the server compares the serial number of the Bluetooth equipment with the serial numbers of the Bluetooth equipment stored in a first data list one by one, judges whether the serial number of the Bluetooth equipment is stored in the first data list, generates first judgment information if the serial number of the Bluetooth equipment is stored in the first data list, and generates second judgment information if the serial number of the Bluetooth equipment is not stored in the first data list;
optionally, the first determination information specifically includes: the Bluetooth equipment is bound by the mobile terminal; the second judgment information is specifically: the Bluetooth device is not a Bluetooth device bound by the mobile terminal.
Step 305: the server builds a first query result according to the judgment information and returns the first query result to the mobile terminal;
optionally, the first query result comprises: the first judgment information or the second judgment information.
Step 306: the server receives a second query request sent by the mobile terminal, wherein the second query request comprises a serial number of the Bluetooth equipment;
step 307: the server analyzes the second query request to obtain the serial number of the Bluetooth device;
optionally, the second query request is used for requesting to query whether the bluetooth device is a bluetooth device to be located;
step 308: the server judges whether the serial number of the Bluetooth device is stored in a second data list or not and generates judgment information;
optionally, the second data list is stored in a database of the server, and is used for storing the serial number of the bluetooth device to be positioned;
optionally, step 308 specifically includes: the server compares the serial number of the Bluetooth equipment with the serial number of the Bluetooth equipment to be positioned stored in a second data list one by one, judges whether the serial number of the Bluetooth equipment is stored in a first data list, generates third judgment information if the serial number of the Bluetooth equipment is stored in the first data list, and generates fourth judgment information if the serial number of the Bluetooth equipment is not stored in the first data list;
optionally, the third determination information specifically includes: the Bluetooth device is a Bluetooth device to be positioned; the fourth judgment information is specifically: the bluetooth device is not a bluetooth device to be located.
Step 309: the server builds a second query result according to the judgment information and returns the second query result to the mobile terminal;
optionally, the second query result comprises: third judgment information or fourth judgment information;
optionally, the third determination information specifically includes: the Bluetooth device is a Bluetooth device to be positioned; the fourth judgment information is specifically: the bluetooth device is not a bluetooth device to be located.
Step 310: the server receives a serial number of the Bluetooth device sent by the mobile terminal, longitude and latitude information of the current position of the mobile terminal, street information or longitude and latitude information and building information;
step 311: and the server stores the serial number of the Bluetooth device to be positioned, the longitude and latitude information and the street information or the longitude and latitude information and the building information of the current position of the mobile terminal into a third data list.
This embodiment still includes: and the server pushes the serial number of the Bluetooth device to be positioned, the longitude and latitude information and the street information or the longitude and latitude information and the building information of the current position of the mobile terminal to the mobile terminal bound with the Bluetooth device to be positioned.
Example 4
The present embodiment provides a positioning apparatus for bluetooth devices, as shown in fig. 4, including:
a scanning obtaining module 401, configured to scan surrounding bluetooth devices and obtain broadcast data packets of a bluetooth device belonging to a target type;
a first obtaining module 402, configured to obtain a serial number of a bluetooth device from the broadcast data packet;
a first judging module 403, configured to judge whether there is an available network currently, if so, trigger the first generation querying module 404, and otherwise trigger the binding monitoring module 406;
a first query generation module 404, configured to generate a second query request based on a serial number of the bluetooth device, query whether the bluetooth device needs to be located by sending the second query request to the server, if so, trigger the binding sending module 405, and otherwise trigger the scanning obtaining module 401;
a binding sending module 405, configured to bind the location information of the mobile terminal with the serial number of the bluetooth device, and report the location information to the server, and trigger the scanning obtaining module 401;
a binding monitoring module 406, configured to bind the location information of the mobile terminal with the serial number of the bluetooth device, monitor a network state, and trigger a second generation query module 407 when an available network is monitored;
a second query generation module 407, configured to generate a second query request based on the serial number of the bluetooth device, query whether the bluetooth device needs to be located by sending the second query request to the server, if so, trigger the first sending module 408, and otherwise trigger the scanning acquisition module 401;
the first sending module 408 is configured to report the location information of the bound mobile terminal and the serial number of the bluetooth device to the server, and trigger the scanning acquisition module 401;
the mobile terminal further includes: a second obtaining module 409, configured to obtain and store the location information of the mobile terminal before binding the location information of the mobile terminal with the serial number of the bluetooth device.
Optionally, the scan acquiring module 401 specifically includes:
the first scanning unit is used for scanning Bluetooth equipment around the mobile terminal;
the first acquisition unit is used for acquiring first preset byte data from a broadcast data packet of the Bluetooth device when the Bluetooth device is scanned by the scanning unit;
and the first judging unit is used for judging whether the broadcast data packet belongs to the target type Bluetooth device according to the first preset byte data, if so, triggering the first acquiring module 402, and otherwise, triggering the first scanning unit.
Optionally, the first determining unit specifically includes:
the first acquisition subunit is used for acquiring the stored manufacturer identification of the Bluetooth device of the target type;
and the first judgment subunit is used for comparing the first preset byte data with the manufacturer identification of the target type Bluetooth equipment, if the first preset byte data is consistent with the manufacturer identification of the target type Bluetooth equipment, the first acquisition module is triggered, and if the first preset byte data is not consistent with the manufacturer identification of the target type Bluetooth equipment, the first scanning unit is triggered.
Optionally, the scan acquiring module 401 specifically includes:
the second scanning unit is used for scanning Bluetooth equipment around the mobile terminal;
and the second acquisition unit is used for acquiring the broadcast data packet of the Bluetooth device belonging to the target type through a preset scanning filtering strategy.
Optionally, the first obtaining module 402 specifically includes: a third acquisition unit and a fourth acquisition unit;
a third obtaining unit, configured to obtain vendor-defined data from the broadcast data packet;
and the fourth acquisition unit is used for acquiring the serial number of the Bluetooth equipment from the manufacturer self-defined data.
Optionally, the second obtaining module 409 specifically includes: a fifth acquiring unit and a sixth acquiring unit;
a fifth acquiring unit, configured to acquire longitude and latitude information of a current location of the mobile terminal;
and the sixth acquisition unit is used for acquiring corresponding street information or corresponding building information according to the longitude and latitude information of the position where the mobile terminal is located.
Optionally, the fifth obtaining unit is specifically configured to obtain longitude and latitude information of a current location of the mobile terminal in a wireless compatible authentication and positioning manner, a base station positioning manner, or a global positioning system manner.
Optionally, the positioning device further comprises:
and the network monitoring module is used for monitoring the network state of the mobile terminal and acquiring the current network state parameters.
Optionally, the monitoring network module specifically includes:
a seventh obtaining unit, configured to call and monitor a network object interface through a first preset function;
the first setting unit is used for setting a callback function of the monitoring network object through a second preset function;
the eighth acquiring unit is used for calling back the callback function of the monitoring network object and acquiring the current network state parameter;
and the first storage unit is used for storing the current network state parameters.
Optionally, the positioning device further comprises: and the first storage module is used for storing the identification code issued by the server.
Optionally, the positioning device further comprises:
and a third generation query module, configured to establish a first query request based on the identification code and the serial number of the bluetooth device, query whether the bluetooth device is a bluetooth device bound by the mobile terminal by sending the first query request to the server, and if so, trigger the scanning acquisition module 401, otherwise, trigger the first generation query module 404.
According to the positioning method after the loss report of the Bluetooth equipment, the position information of the lost Bluetooth equipment is obtained through the mobile terminal, and the position information of the lost Bluetooth equipment is reported to the server, so that a user can obtain the position information of the lost Bluetooth equipment from the server, and the user experience is improved.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all such changes or substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (20)

1. A method for locating a bluetooth device, comprising:
step 101: the mobile terminal scans surrounding Bluetooth equipment and acquires a broadcast data packet of the Bluetooth equipment belonging to a target type;
step 102: the mobile terminal acquires the serial number of the Bluetooth equipment from the broadcast data packet;
step 103: the mobile terminal judges whether an available network exists at present, if so, step 104 is executed, otherwise, step 106 is executed;
step 104: the mobile terminal generates a second query request based on the serial number of the Bluetooth device, and queries whether the Bluetooth device needs to be positioned by sending the second query request to a server, if so, executing a step 105, otherwise, returning to the step 101;
step 105: the mobile terminal binds the position information of the mobile terminal with the serial number of the Bluetooth equipment and reports the position information to the server, and the step 101 is returned;
step 106: the mobile terminal binds the position information of the mobile terminal with the serial number of the Bluetooth equipment, monitors the network state, and executes the step 107 when an available network is monitored;
step 107: the mobile terminal generates a second query request based on the serial number of the Bluetooth device, and queries whether the Bluetooth device needs to be positioned by sending the second query request to the server, if so, executing step 108, otherwise, returning to step 101;
step 108: the mobile terminal reports the bound position information of the mobile terminal and the serial number of the Bluetooth device to the server, and the step 101 is returned;
before the mobile terminal binds the position information of the mobile terminal with the serial number of the bluetooth device, the method further includes: the mobile terminal acquires and stores the position information of the mobile terminal;
the step 104 further comprises: the mobile terminal sends a first query request containing an identity identification code and a serial number of the Bluetooth device to the server, judges whether the Bluetooth device is the Bluetooth device bound by the mobile terminal according to a first query result returned by the server, if so, returns to the step 101, otherwise, executes the step 104.
2. The method according to claim 1, wherein the step 101 specifically comprises:
step S1: the mobile terminal scans surrounding Bluetooth equipment;
step S2: when the mobile terminal scans the Bluetooth equipment, acquiring first preset byte data from a broadcast data packet of the Bluetooth equipment;
step S3: and the mobile terminal judges whether the broadcast data packet belongs to the target type Bluetooth device according to the first preset byte data, if so, the step 102 is executed, otherwise, the step S1 is returned.
3. The method of claim 2, wherein the step S3 includes:
step A1: the mobile terminal acquires a manufacturer identifier of the Bluetooth equipment of the target type stored in the mobile terminal;
step A2: and the mobile terminal compares the first preset byte data with the manufacturer identification of the target type Bluetooth device, if the first preset byte data is consistent with the manufacturer identification of the target type Bluetooth device, the step 102 is executed, and if not, the step S1 is returned.
4. The method according to claim 1, wherein the step 101 specifically comprises:
step H1: the mobile terminal scans surrounding Bluetooth equipment;
step H2: and the mobile terminal acquires the broadcast data packet of the Bluetooth equipment belonging to the target type through a preset scanning filtering strategy.
5. The method according to claim 1, wherein the step 102 specifically comprises:
step B1: the mobile terminal acquires manufacturer defined data from the broadcast data packet;
step B2: and the mobile terminal acquires the serial number of the Bluetooth equipment from the manufacturer custom data.
6. The method according to claim 1, wherein the acquiring, by the mobile terminal, the location information of the mobile terminal specifically includes:
step N1: the mobile terminal acquires longitude and latitude information of a position where the mobile terminal is located;
step N2: and the mobile terminal acquires corresponding street information or corresponding building information according to the longitude and latitude information of the position where the mobile terminal is located.
7. The method according to claim 6, wherein the step N1 is specifically: the mobile terminal acquires the longitude and latitude information of the current position of the mobile terminal in a wireless compatible authentication positioning mode, a base station positioning mode or a global positioning system mode.
8. The method of claim 1, wherein step 101 is preceded by: the mobile terminal monitors the network state of the mobile terminal and acquires the current network state parameters.
9. The method according to claim 8, wherein the monitoring, by the mobile terminal, the network status of the mobile terminal specifically comprises:
step C1: the mobile terminal calls a monitoring network object interface through a first preset function;
step C2: the mobile terminal sets a callback function of the monitoring network object through a second preset function;
step C3: the mobile terminal recalls the callback function of the monitoring network object to acquire the current network state parameter;
step C4: and the mobile terminal stores the current network state parameters.
10. The method of claim 1, wherein step 103 is preceded by: and the mobile terminal stores the identification code issued by the server.
11. A positioning apparatus for a bluetooth device, comprising:
the scanning acquisition module is used for scanning surrounding Bluetooth equipment and acquiring a broadcast data packet of the Bluetooth equipment belonging to a target type;
the first acquisition module is used for acquiring the serial number of the Bluetooth equipment from the broadcast data packet;
the first judgment module is used for judging whether an available network exists at present, if so, the first generation query module is triggered, and otherwise, the binding monitoring module is triggered;
the first generation inquiry module is used for generating a second inquiry request based on the serial number of the Bluetooth equipment, inquiring whether the Bluetooth equipment needs to be positioned or not by sending the second inquiry request to a server, if so, triggering a binding sending module, and otherwise, triggering the scanning acquisition module;
the binding sending module is used for binding the position information of the mobile terminal with the serial number of the Bluetooth device and reporting the position information to the server to trigger the scanning acquisition module;
the binding monitoring module is used for binding the position information of the mobile terminal with the serial number of the Bluetooth equipment, monitoring the network state, and triggering a second generation query module when an available network is monitored;
the second query generation module is used for generating a second query request based on the serial number of the Bluetooth device, querying whether the Bluetooth device needs to be positioned or not by sending the second query request to the server, if so, triggering the first sending module, and otherwise, triggering the scanning acquisition module;
the first sending module is configured to report the bound location information of the mobile terminal and the serial number of the bluetooth device to the server, and trigger the scanning acquisition module;
the mobile terminal further includes: the second acquisition module is used for acquiring and storing the position information of the mobile terminal before binding the position information of the mobile terminal with the serial number of the Bluetooth equipment;
the positioning device further comprises:
and the sending judgment module is used for sending a first query request containing an identity identification code and a serial number of the Bluetooth device to the server, judging whether the Bluetooth device is the Bluetooth device bound by the mobile terminal according to a first query result returned by the server, and if so, triggering the scanning acquisition module, otherwise, triggering the first generation query module.
12. The positioning apparatus as claimed in claim 11, wherein the scan acquisition module specifically comprises:
the first scanning unit is used for scanning Bluetooth equipment around the mobile terminal;
the first acquisition unit is used for acquiring first preset byte data from a broadcast data packet of the Bluetooth device when the Bluetooth device is scanned by the scanning unit;
and the first judging unit is used for judging whether the broadcast data packet belongs to the target type Bluetooth equipment according to the first preset byte data, if so, triggering the first acquiring module, and otherwise, triggering the first scanning unit.
13. The positioning apparatus according to claim 12, wherein the first determining unit specifically includes:
the first acquisition subunit is used for acquiring the stored manufacturer identification of the Bluetooth device of the target type;
and the first judgment subunit is used for comparing the first preset byte data with the manufacturer identification of the target type of the Bluetooth device, if the first preset byte data is consistent with the manufacturer identification of the target type of the Bluetooth device, the first acquisition module is triggered, and otherwise, the first scanning unit is triggered.
14. The positioning apparatus as claimed in claim 11, wherein the scan acquisition module specifically comprises:
the second scanning unit is used for scanning Bluetooth equipment around the mobile terminal;
and the second acquisition unit is used for acquiring the broadcast data packet of the Bluetooth device belonging to the target type through a preset scanning filtering strategy.
15. The positioning device according to claim 11, wherein the first obtaining module specifically includes: a third acquisition unit and a fourth acquisition unit;
the third obtaining unit is configured to obtain vendor defined data from the broadcast data packet;
and the fourth obtaining unit is used for obtaining the serial number of the Bluetooth equipment from the manufacturer-defined data.
16. The positioning device according to claim 11, wherein the second obtaining module specifically includes: a fifth acquiring unit and a sixth acquiring unit;
the fifth acquiring unit is used for acquiring longitude and latitude information of the current position of the mobile terminal;
and the sixth acquisition unit is used for acquiring corresponding street information or corresponding building information according to the longitude and latitude information of the position where the mobile terminal is located.
17. The positioning apparatus according to claim 16, wherein the fifth obtaining unit is specifically configured to obtain the latitude and longitude information of the current location of the mobile terminal in a wireless compatible authenticated positioning manner, a base station positioning manner, or a global positioning system manner.
18. The positioning device of claim 11, further comprising:
and the network monitoring module is used for monitoring the network state of the mobile terminal and acquiring the current network state parameters.
19. The positioning apparatus as claimed in claim 18, wherein the listening network module specifically comprises:
a seventh obtaining unit, configured to call and monitor a network object interface through a first preset function;
the first setting unit is used for setting a callback function of the monitoring network object through a second preset function;
the eighth acquiring unit is configured to call back the callback function of the monitoring network object, and acquire a current network state parameter;
and the first storage unit is used for storing the current network state parameter.
20. The positioning device of claim 11, further comprising: and the first storage module is used for storing the identification code issued by the server.
CN201911365663.2A 2019-12-26 2019-12-26 Positioning method and device of Bluetooth equipment Active CN111065049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911365663.2A CN111065049B (en) 2019-12-26 2019-12-26 Positioning method and device of Bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911365663.2A CN111065049B (en) 2019-12-26 2019-12-26 Positioning method and device of Bluetooth equipment

Publications (2)

Publication Number Publication Date
CN111065049A CN111065049A (en) 2020-04-24
CN111065049B true CN111065049B (en) 2021-06-08

Family

ID=70303828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911365663.2A Active CN111065049B (en) 2019-12-26 2019-12-26 Positioning method and device of Bluetooth equipment

Country Status (1)

Country Link
CN (1) CN111065049B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711943B (en) * 2020-06-12 2022-05-10 深圳市觅拓物联信息技术有限公司 Bluetooth Internet of things data transmitting method and system, and assembling system and method
CN116709179A (en) * 2023-07-21 2023-09-05 上海铭控传感技术有限公司 Indoor equipment positioning method, device and system
CN117896827A (en) * 2024-03-18 2024-04-16 慧翰微电子股份有限公司 Indoor positioning method and system based on Bluetooth

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10438409B2 (en) * 2014-12-15 2019-10-08 Hand Held Products, Inc. Augmented reality asset locator
CN104507162B (en) * 2014-12-26 2018-07-20 重庆金瓯科技发展有限责任公司 Bluetooth beacon data service system based on binding relationship
CN104822131B (en) * 2015-03-09 2018-11-13 安徽云之迹信息技术有限公司 Method, device, terminal and server for checking position of patient
CN104735624B (en) * 2015-04-21 2019-01-01 北京云迹科技有限公司 A kind of method, apparatus that realizing position enquiring and server
CN105263117A (en) * 2015-11-02 2016-01-20 上海卓旗电子科技有限公司 Method for implementing positioning via smart phone of IoT (Internet of Things) equipment
CN107566989A (en) * 2017-07-11 2018-01-09 珠海智加物联网络有限公司 The localization method and system of a kind of mobile object
CN108174375B (en) * 2017-12-25 2020-09-04 广东小天才科技有限公司 Positioning method and system based on wearable equipment
CN110602671B (en) * 2018-10-17 2022-06-17 深圳市文鼎创数据科技有限公司 Bluetooth search result display method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN111065049A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN111065049B (en) Positioning method and device of Bluetooth equipment
KR100809898B1 (en) Location service system with enhanced security
US10721616B2 (en) Subscription information download method, related device, and system
CA2981031C (en) System and method for provisioning telecommunications services between an access point and a telecommunications network and providing a missing information notification
US20090217038A1 (en) Methods and Apparatus for Locating a Device Registration Server in a Wireless Network
US7383035B2 (en) Method of furnishing illegal mobile equipment user information
EP3512118A1 (en) Method and device for transmitting response message
CN104365159A (en) Method, machine-type-communications (MTC) device and communication system triggering MTC devices to attach to a wireless communications network
EP2946575B1 (en) Scalable addressing of machine-to-machine terminals in communication networks
US8958792B2 (en) Method and system for selecting mobility management entity of terminal group
US20190261436A1 (en) Device networking method, apparatus and system
JP2003531535A (en) Method and system for expanding the data payload of a data message carried over a cellular network control channel
CN112714009A (en) Network distribution method, network equipment to be distributed and network equipment
US20170070867A1 (en) Method and system for triggering terminal group
WO2017000506A1 (en) Cell access method and apparatus
WO2018166439A1 (en) Transmission power configuration method, terminal, base station, and baseband chip
CN107396313B (en) Positioning triggering method and system
US20230102021A1 (en) Multiple SPID Configuration
WO2016188022A1 (en) Roaming method, roaming server, mobile terminal and system
JP6062653B2 (en) Communication system, telephone directory server, wireless communication terminal, and communication method
CN111817815A (en) Indoor signal distributed management system, method, medium and equipment
CN111294314A (en) Message processing method, device and system
CN111294414A (en) Message processing method, device and system
CN111132162B (en) Method and device for acquiring terminal information
CN113347687B (en) Wireless network access method and device

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