WO2018145290A1 - Terminal device, ble slave device, and searching method and system based on ble - Google Patents

Terminal device, ble slave device, and searching method and system based on ble Download PDF

Info

Publication number
WO2018145290A1
WO2018145290A1 PCT/CN2017/073193 CN2017073193W WO2018145290A1 WO 2018145290 A1 WO2018145290 A1 WO 2018145290A1 CN 2017073193 W CN2017073193 W CN 2017073193W WO 2018145290 A1 WO2018145290 A1 WO 2018145290A1
Authority
WO
WIPO (PCT)
Prior art keywords
slave device
ble
data packet
target
ble slave
Prior art date
Application number
PCT/CN2017/073193
Other languages
French (fr)
Chinese (zh)
Inventor
陈法海
赵所峰
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2017/073193 priority Critical patent/WO2018145290A1/en
Priority to CN201780000078.5A priority patent/CN107079278A/en
Publication of WO2018145290A1 publication Critical patent/WO2018145290A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • 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
    • 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

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a terminal device, a BLE slave device, a BLE-based object-seeking method and system.
  • Indoor positioning refers to the realization of positional positioning in an indoor environment. It mainly adopts an indoor position positioning system formed by integration of various technologies such as wireless communication, base station positioning, and inertial navigation positioning.
  • common indoor wireless positioning technologies include: wireless local area network (Wi-Fi), Bluetooth, infrared, ultra-wideband, radio frequency identification (RFID), Zifeng (ZigBee) and ultrasound.
  • the positioning methods in the prior art are mostly based on mobile devices, and the positioning system consisting of a Bluetooth application program (AP) server is configured to communicate with the server through the mobile device repeatedly transmitting the broadcast information through the Bluetooth AP. After being calculated by the server, the location information of the current mobile device is obtained and sent to the mobile device.
  • the positioning system comprises an iBeacon information release system, an iBeacon base station and a mobile terminal, wherein the information release system is composed of a background management system, a service authentication interface, and a radio frequency antenna; the base station is composed of a data storage module and a Bluetooth.
  • the radio frequency antenna is composed of a data processing module, a Bluetooth transceiver module, a wireless transceiver module, a Bluetooth radio frequency receiving antenna, and a radio frequency transceiver antenna.
  • the above prior art has many disadvantages: 1.
  • the Bluetooth transmission communication network is complicated to construct, and many Bluetooth APs are deployed, which is inconvenient to maintain and has high hardware cost. 2, need a dedicated server to handle by Bluetooth Data sent by the AP will cause data network delay and data bandwidth problems, which also increases system cost.
  • the local positioning device used in the invention is solidified and not flexible enough, so it is impossible to upgrade and modify various positioning methods.
  • the indoor positioning mentioned in the invention is to locate the position of the mobile terminal, and cannot locate the position of the iBeacon or the Bluetooth AP, and thus cannot locate the lost or hidden object when searching for an object.
  • An object of the present invention is to provide a terminal device, a BLE slave device, a BLE-based object-seeking method and system, so that a user can quickly find a target BLE slave device, which greatly shortens the time for finding a target BLE slave device. Moreover, without deploying an iBeacon or a Bluetooth AP indoors, the target BLE slave device can be found through the terminal device without requiring a complicated data processing architecture and reducing hardware costs.
  • an embodiment of the present invention provides a BLE-based object-seeking method, which is applied to a terminal device; a BLE-based object-seeking method includes: scanning a low-power Bluetooth BLE slave device; and scanning a target BLE slave device Thereafter, the request packet is sent to the target BLE slave device; wherein the request packet contains an identifier for finding the target BLE slave device.
  • the embodiment of the invention further provides a BLE-based object-finding method, which is applied to a BLE slave device; the BLE-based object-finding method comprises: periodically transmitting a broadcast data packet; and when receiving the request data packet, requesting the data packet Parsing; wherein the request packet contains an identifier for finding the target BLE slave device; when parsing the identifier, a prompt message is sent.
  • the embodiment of the invention further provides a BLE-based object-finding method, which is applied to a terminal device and a BLE slave device;
  • the BLE-based object-seeking method includes: the terminal device scans a low-power Bluetooth BLE slave device; the terminal device scans to the target After the BLE slave device, the request packet is sent to the target BLE slave device; wherein the request packet includes an identifier for finding the target BLE slave device; and the target BLE slave device parses the request packet when receiving the request packet. ; among them, please The data packet contains an identifier for finding the target BLE slave device; the target BLE slave device sends a prompt message when parsing the identifier.
  • the embodiment of the invention further provides a terminal device, including a scanning module and a sending module; a scanning module, configured to scan a low-power Bluetooth BLE slave device; and a sending module, configured to target the BLE after scanning to the target BLE slave device
  • the slave device sends a request packet; wherein the request packet contains an identifier for finding the target BLE slave device.
  • the embodiment of the present invention further provides a BLE slave device, including: a second receiving module, a second parsing module, and a prompting module; a second receiving module, configured to receive a request data packet; and a second parsing module, configured to receive When the data packet is requested, the request data packet is parsed; wherein the request data packet contains an identifier for finding the target BLE slave device; and the prompting module is configured to issue a prompt message when parsing the identifier.
  • a BLE slave device including: a second receiving module, a second parsing module, and a prompting module; a second receiving module, configured to receive a request data packet; and a second parsing module, configured to receive When the data packet is requested, the request data packet is parsed; wherein the request data packet contains an identifier for finding the target BLE slave device; and the prompting module is configured to issue a prompt message when parsing the identifier.
  • the embodiment of the invention further provides a low-power Bluetooth BLE-based object-finding system, comprising: a terminal device and a BLE slave device; the terminal device comprises: a scanning module and a sending module; and the scanning module is configured to scan the low-power Bluetooth BLE a slave device: a sending module, configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device; wherein the request data packet includes an identifier for finding the target BLE slave device; the BLE slave device includes: a receiving module, a second parsing module, and a prompting module; a second receiving module, configured to receive the request data packet; and a second parsing module, configured to parse the request data packet when receiving the request data packet; wherein, the request data The packet contains an identifier for finding the target BLE slave device; the prompt module is configured to issue a prompt message when parsing the identifier.
  • the embodiment of the present invention scans the low-power Bluetooth BLE slave device through the terminal device, and after scanning the target BLE slave device, sends the request data packet to the target BLE slave device.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the request packet is parsed by the target BLE slave device when it receives the request packet.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • Target BLE slave device When parsing the identifier, a prompt message is sent, so that when the user hears the prompt information, the target BLE slave device can be quickly found.
  • the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device.
  • the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
  • FIG. 1 is a flow chart of a BLE-based object-seeking method in accordance with a first embodiment of the present invention
  • FIG. 2 is a flow chart of a BLE-based object-seeking method in accordance with a second embodiment of the present invention
  • FIG. 3 is a schematic diagram of a data packet format according to a second embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a packet header format of a data packet according to a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of coding of a protocol data unit type according to a second embodiment of the present invention.
  • FIG. 6 is a flowchart of a BLE-based object-seeking method according to a third embodiment of the present invention.
  • FIG. 7 is a flowchart of a BLE-based object-seeking method according to a fourth embodiment of the present invention.
  • FIG. 8 is a flowchart of a BLE-based object-seeking method according to a fifth embodiment of the present invention.
  • Figure 9 is a block diagram of a terminal device in accordance with a sixth embodiment of the present invention.
  • Figure 10 is a block diagram of a terminal device in a seventh embodiment of the present invention.
  • FIG. 11 is a block diagram of a BLE slave device in accordance with an eighth embodiment of the present invention.
  • Figure 12 is a block diagram of a BLE slave device in accordance with a ninth embodiment of the present invention.
  • Figure 13 is a block diagram of a BLE based tracing system in accordance with a tenth embodiment of the present invention.
  • a first embodiment of the present invention relates to a BLE-based method of searching for a terminal device.
  • the specific process is shown in Figure 1, which includes:
  • Step 101 Scan a low power Bluetooth BLE slave device.
  • the BLE slave device can be a smart device with communication function.
  • the BLE slave device can be, but is not limited to, an active pen.
  • Bluetooth on the terminal device can support the protocol of bluetooth4.1/4.2.
  • the switch enable key is set for the Bluetooth of the terminal device, and when the switch enable key is triggered, the terminal device can search for a nearby BLE slave device.
  • the search results are listed in the form of a list.
  • the BLE slave device displayed in the list may include, but is not limited to, the following information: the name of the BLE slave device, the physical address (MAC address), the RSSI value (the RSSI Chinese interpretation is the received signal strength indication), and the like. Therefore, the BLE slave device can be scanned according to the name and/or MAC address of the BLE slave device.
  • step 102 it is determined whether the target BLE slave device is scanned. If yes, go to step 103; otherwise, go back to step 101.
  • the user can find the target BLE slave device that needs to be searched from the scan list according to the name or MAC address of the BLE slave device. Click on the imaginary to find the target BLE slave device Quasi-button.
  • the terminal device may determine to scan to the target BLE slave device. It should be noted that in the actual design process, the target BLE slave device can also be scanned by other means. For example, each BLE slave device can be stored in advance in the terminal device. A target BLE slave device is selected from the pre-stored BLE slave devices before scanning the BLE slave device.
  • Step 103 Send a request packet to the target BLE slave device.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the target BLE when the target BLE receives the request packet from the device, it can issue a prompt message.
  • the prompt information may include, but is not limited to, including sound and/or light information.
  • the target BLE slave device triggers its own motor or buzzer to work. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found.
  • many smart devices such as BLE slave devices in the market are equipped with motors or buzzers.
  • an existing motor or buzzer can be utilized. Simply change the software portion of the BLE slave device to find the target BLE slave device. And it will not increase other hardware costs, and the implementation is relatively simple.
  • the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information.
  • the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device.
  • the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
  • a second embodiment of the present invention relates to a BLE-based method of searching for a terminal device.
  • the second embodiment is an improvement on the basis of the first embodiment, and the main improvement is that, in the second embodiment, after the request packet is transmitted to the target BLE slave device, if If the feedback packet is not received within a certain period of time, the request packet is sent to the target BLE slave again.
  • step 201 the Bluetooth BLE switch is turned on.
  • Bluetooth on the terminal device can support the protocol of bluetooth4.1/4.2.
  • the switch enable key is set for the Bluetooth of the terminal device, and when the switch enable key is triggered, the terminal device can search for a nearby BLE slave device.
  • Step 202 Scan a low power Bluetooth BLE slave device.
  • the BLE slave device can be a smart device with communication function.
  • the BLE slave device can be, but is not limited to, an active pen.
  • the Bluetooth of the BLE slave device is in an active state, which is to periodically transmit a data packet.
  • the terminal device may determine that the BLE slave device is scanned.
  • the search results are listed in the form of a list.
  • the BLE slave device displayed in the list may include, but is not limited to, the following information: the name of the BLE slave device, the physical address (MAC address), the RSSI value (the RSSI Chinese interpretation is the received signal strength indication), and the like.
  • step 203 it is determined whether the target BLE slave device is scanned. If yes, go to step 204; otherwise, go back to step 202.
  • the user can find the target BLE slave device that needs to be searched from the scan list according to the name or MAC address of the BLE slave device. Click on the virtual button used to find the target BLE slave device. At this time, it can be determined that the target BLE slave device is scanned.
  • Step 204 Send a request packet to the target BLE slave device.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the request packet is a data packet of the Bluetooth broadcast channel.
  • a Protocol Data Unit Type (PDU Type) field that identifies a packet located on the Bluetooth broadcast channel.
  • the data packet of the Bluetooth broadcast channel is composed of a 16-bit header header and a payload.
  • the scan_req can be modified in the present invention. Specifically, changing the PDU Type field in the header of the scan_req packet, the PDU Type field can be set to "0111". The other fields in the scan_req packet remain unchanged.
  • Step 205 Determine whether a feedback data packet is received within a preset time. If yes, then the end; otherwise, proceed to step 206.
  • the feedback data packet includes an acknowledgement field, and the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier.
  • the confirmation field is located in the ScanRspData field in the feedback packet.
  • the ScanRspData field refers to a scan feedback field or a scan response field.
  • step 206 the request packet is sent to the target BLE slave again.
  • the target BLE slave device sends a prompt tone according to the request packet, the user still cannot find the target BLE slave device. For example, the user is far away from the BLE device, can not hear the prompt tone, or even if the user hears the sound, but because the distance is far away or there is obstruction, the user only knows the approximate location of the target BLE from the device according to the sound, and it is difficult to compare Quickly find the target BLE slave device.
  • the BLE-based object-finding method further comprises: sequentially acquiring the location Si of the terminal device at the terminal device at the at least two locations, and the terminal device and the target BLE slave device. The distance Ri; the position of the target BLE slave device is calculated according to the acquired Si, Ri. In this way, the target BLE slave device can be found more quickly and conveniently.
  • calculating the location of the target BLE slave device according to the acquired Si and Ri specifically including: using a weighted centroid algorithm, calculating a geometric centroid of each position of the terminal device according to the coordinates of Si and the value of Ri, the target BLE slave device Located in the area where the geometric centroid is located; or, based on the acquired Si, Ri, the position of the target BLE slave device, including: in the horizontal direction, Si is the center of the equation, and Ri is the equation formula of the radius of the circle. According to the coordinates of Si and the value of Ri, the intersection of each circle is calculated. The target BLE slave is located in the area where the intersection of each circle is common.
  • the initial position of the terminal device is the coordinate origin, and the other positions of the terminal device are relative positions with respect to the initial position.
  • the position of the target BLE slave device is a relative position with respect to the initial position.
  • the BLE based method further includes: receiving a signal of the target BLE slave device.
  • the signal strength RSSI value is obtained from the received signal.
  • Adjust the location of the terminal device based on the resolved RSSI value.
  • the request packet is resent to the target BLE slave device.
  • the terminal device displays its own moving direction and moving distance.
  • the terminal device also prompts for the RSSI value. Specifically, when the distance between the terminal device and the target BLE slave device changes, the RSSI value also changes. such as:
  • the RSSI signal is getting stronger. It indicates that the terminal device moves toward the target BLE slave device, and the target BLE slave device is located in the moving direction of the terminal device. The user can be prompted to target the BLE slave device in the direction of movement of the terminal device. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate.
  • the acquired data is more accurate.
  • the RSSI signal first becomes stronger, it gradually weakens. It indicates that the target BLE slave device is located on both sides of the mobile device's moving route. The user can be prompted that the target BLE slave device is located on both sides of the terminal device moving route. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate.
  • the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
  • a third embodiment of the present invention relates to a BLE-based method of searching for a BLE slave device.
  • the specific process is shown in Figure 6, which includes:
  • Step 601 periodically transmitting a broadcast data packet.
  • the Bluetooth of the BLE slave device is in a working state, which is to periodically send data packets.
  • the data packets periodically sent by the BLE slave device can be scanned by the terminal device.
  • the request packet may be sent to the BLE slave device.
  • Step 602 Determine whether a request packet is received. If yes, go to step 603; otherwise, go to step 601. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
  • step 603 the request data packet is parsed.
  • the request packet is a data packet of the Bluetooth broadcast channel.
  • the target BLE slave parses the header of the request packet.
  • step 604 it is determined whether the identifier is resolved. If yes, go to step 605; otherwise, go back to step 601.
  • step 605 a prompt message is sent.
  • the prompt information may include, but is not limited to, including sound and/or light information.
  • the target BLE slave device triggers its own motor or buzzer to operate. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found.
  • the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information.
  • the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device.
  • the target BLE device can be found through the terminal device without requiring a complicated data processing architecture, Reduce hardware costs.
  • a fourth embodiment of the present invention relates to a BLE-based method of searching for a BLE slave device.
  • the fourth embodiment is an improvement on the basis of the third embodiment, and the main improvement is that in the fourth embodiment, when parsing the identifier, the feedback data packet is transmitted to the terminal device.
  • step 701 a broadcast data packet is periodically sent.
  • the Bluetooth of the BLE slave device is in a working state, which is to periodically send data packets.
  • the data packets periodically sent by the BLE slave device can be scanned by the terminal device.
  • the request packet may be sent to the BLE slave device.
  • step 702 it is determined whether a request packet is received. Wherein, the request data packet contains an identifier for finding a target BLE slave device. If yes, go to step 703; otherwise, go to step 701.
  • the request packet is a packet of a Bluetooth broadcast channel.
  • a protocol data unit type PDU Type field that identifies a data packet located on the Bluetooth broadcast channel.
  • Step 703 parsing the request data packet.
  • the request packet is a data packet of the Bluetooth broadcast channel.
  • the target BLE slave parses the header of the request packet.
  • step 704 it is determined whether the identifier is resolved. If yes, go to step 705; otherwise, go back to step 701.
  • the data packet of the Bluetooth broadcast channel is composed of a 16-bit header header and a payload.
  • Bluetooth scan channel (scan_req) data as specified in the Bluetooth BLE protocol
  • the package format is fixed and cannot carry other additional information. Therefore, the scan_req can be modified in the present invention. Specifically, changing the PDU Type field in the header of the scan_req packet, the PDU Type field can be set to "0111". The other fields in the scan_req packet remain unchanged. Specifically, when parsing into the PDU Type field is "0111", it can be determined that the identifier is resolved.
  • step 705 a prompt message is sent.
  • the prompt information may include, but is not limited to, including sound and/or light information.
  • the target BLE slave device triggers its own motor or buzzer to operate. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found.
  • Step 706 Send a feedback data packet to the terminal device.
  • the feedback data packet includes an acknowledgement field, and the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier.
  • the confirmation field is located in the ScanRspData field in the feedback packet.
  • step 706 in the present embodiment is not limited to being performed after step 705. Step 706 may also be performed first, and then step 705 is performed. Alternatively, step 705 and step 706 are performed simultaneously.
  • the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
  • a fifth embodiment of the present invention relates to a BLE-based method of searching for a terminal device and a BLE slave device.
  • the Bluetooth of the BLE slave device is in a working state, which is that the target BLE slave device periodically transmits data packets. And, the data packet periodically sent by the BLE slave device can be The terminal device scanned it. When the terminal device scans the above data packet, the request packet may be sent to the BLE slave device.
  • FIG. 8 The specific process of the BLE-based object-seeking method is shown in FIG. 8, which includes:
  • step S1 the terminal device scans the low power Bluetooth BLE slave device.
  • the BLE slave device can be a smart device with communication function.
  • the BLE slave device can be, but is not limited to, an active pen.
  • Bluetooth on the terminal device can support the protocol of bluetooth4.1/4.2.
  • the switch enable key is set for the Bluetooth of the terminal device, and when the switch enable key is triggered, the terminal device can search for a nearby BLE slave device.
  • the search results are listed in the form of a list.
  • the BLE slave device displayed in the list may include, but is not limited to, the following information: the name of the BLE slave device, the physical address (MAC address), the RSSI value (the RSSI Chinese interpretation is the received signal strength indication), and the like.
  • step S2 the terminal device determines whether the target BLE slave device is scanned. If yes, go to step S3; otherwise, return to step S1.
  • the user can find the target BLE slave device that needs to be searched from the scan list according to the name or MAC address of the BLE slave device. Click on the virtual button used to find the target BLE slave device. At this time, it can be determined that the target BLE slave device is scanned. It should be noted that in the actual design process, the target BLE slave device can also be scanned by other means. For example, each BLE slave device can be stored in advance in the terminal device. A target BLE slave device is selected from the pre-stored BLE slave devices before scanning the BLE slave device.
  • step S3 the terminal device sends a request data packet to the target BLE slave device.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • step S4 the target BLE determines from the device whether the request packet is received. If yes, go to step S5; otherwise, go back to step S4.
  • step S5 the target BLE slave device parses the request packet.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • step S6 the target BLE determines whether the device resolves to the identifier. If yes, go to step S7; otherwise, go back to step S4.
  • step S7 a prompt message is sent.
  • the target BLE slave device triggers its own motor or buzzer to operate.
  • the target BLE slave can be quickly found.
  • the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information.
  • the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device.
  • the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
  • a sixth embodiment of the present invention relates to a terminal device, as shown in FIG. 9, including a scanning module 91 and a transmitting module 92.
  • the scanning module 91 is used to scan a low power Bluetooth BLE slave device.
  • the sending module 92 is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
  • the present embodiment is an apparatus embodiment corresponding to the first embodiment, and the present embodiment can be implemented in cooperation with the first embodiment.
  • the related technical details mentioned in the first embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the first embodiment.
  • each module involved in this embodiment is a logic module.
  • a logical unit may be a physical unit, a part of a physical unit, or multiple physical entities. A combination of units is implemented.
  • the present embodiment does not introduce a unit that is not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in the present embodiment.
  • the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information.
  • the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device.
  • the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
  • a seventh embodiment of the present invention relates to a terminal device.
  • the seventh embodiment is an improvement on the basis of the sixth embodiment, and the main improvement is that in the seventh embodiment, the terminal device further includes a judging module.
  • the terminal device includes a scanning module 91 and a transmitting module 92.
  • the scanning module 91 is used to scan a low power Bluetooth BLE slave device.
  • the sending module 92 is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the request packet is a data packet of a Bluetooth broadcast channel.
  • a protocol data unit type PDU Type field that identifies a data packet located on the Bluetooth broadcast channel.
  • the terminal device further includes an obtaining module and a calculating module, and the acquiring module is configured to acquire, after the scanning module scans the target BLE slave device, the terminal device at the at least two locations, obtain the current location Si of the terminal device, and the terminal device. a distance Ri from the target BLE slave device; a calculation module, configured to calculate a location of the target BLE slave device according to the acquired Si, Ri.
  • the calculation module is further configured to calculate, by using a weighted centroid algorithm, a geometric centroid of each position of the terminal device according to the coordinates of the Si and the value of Ri, where the target BLE slave device is located in the region where the geometric centroid is located; or, The module is also used to calculate the intersection of each circle in the horizontal direction with Si as the center and Ri as the radius of the equation. According to the coordinates of Si and the value of Ri, the target BLE slave is located in each circle. The area where the intersection points are shared.
  • the initial position of the terminal device is a coordinate origin, and the other positions of the terminal device are relative positions with respect to the initial position; the position of the target BLE slave device is a relative position with respect to the initial position.
  • the terminal device also includes a judging module 93.
  • the determining module 93 is configured to determine whether a feedback data packet is received within a preset time. Among them, the feedback data packet contains an acknowledgement field. The confirmation field is used to indicate that the target BLE is resolved from the device to the identity.
  • the sending module 92 is further configured to send the request data packet to the target BLE slave device again when the feedback data packet is not received within the preset time.
  • the confirmation field is located in the ScanRspData field in the feedback packet.
  • the terminal device further includes an open mode 94 and a lookup module 95.
  • the on module 94 is used to turn on the Bluetooth BLE switch before scanning the Bluetooth BLE slave.
  • the lookup module 95 is configured to find the target BLE slave device from the name or physical address of the device according to the target BLE from the list obtained by the scan.
  • the terminal device further comprises a first receiving a module, a first parsing module, and an adjusting module; a first receiving module, configured to receive a signal of the target BLE slave device; a first parsing module, configured to parse the signal strength RSSI value from the received signal; and an adjustment module, configured to Parsing the RSSI value to adjust the location of the terminal device.
  • the terminal device displays its own moving direction and moving distance.
  • the terminal device also prompts for the RSSI value. Specifically, when the distance between the terminal device and the target BLE slave device changes, the RSSI value also changes. such as:
  • the RSSI signal is getting stronger. It indicates that the terminal device moves toward the target BLE slave device, and the target BLE slave device is located in the moving direction of the terminal device. The user can be prompted to target the BLE slave device in the direction of movement of the terminal device. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate.
  • the acquired data is more accurate.
  • the RSSI signal first becomes stronger, it gradually weakens. It indicates that the target BLE slave device is located on both sides of the mobile device's moving route. The user can be prompted that the target BLE slave device is located on both sides of the terminal device moving route. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate.
  • the present embodiment can be implemented in cooperation with the second embodiment.
  • the related technical details mentioned in the second embodiment are still effective in the present embodiment, and the technical effects that can be achieved in the second embodiment can also be implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the present embodiment can also be applied to the second embodiment.
  • the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
  • An eighth embodiment of the present invention relates to a BLE slave device.
  • the second embodiment includes a second receiving module 112, a second parsing module 113, and a prompting module 114.
  • the second receiving module 112 is configured to receive the request data packet.
  • the second parsing module 113 is configured to parse the request packet when receiving the request packet.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the prompting module 114 is configured to issue a prompt message when parsing the identifier.
  • the present embodiment can be implemented in cooperation with the third embodiment.
  • the technical details mentioned in the third embodiment are still effective in the present embodiment, and the technical effects that can be achieved in the third embodiment are also implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the present embodiment can also be applied to the third embodiment.
  • the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information.
  • the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device.
  • the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
  • a ninth embodiment of the present invention relates to a BLE slave device.
  • the ninth embodiment is an improvement on the basis of the eighth embodiment, and the main improvement is that in the ninth embodiment, the BLE slave device further includes a feedback module.
  • the BLE slave device includes: a second receiving module 112, a second parsing module 113, and a prompting module 114.
  • the second receiving module 112 is configured to receive the request data packet.
  • the second parsing module 113 is configured to parse the request packet when receiving the request packet.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the prompting module 114 is configured to issue a prompt message when parsing the identifier.
  • the BLE slave device further includes a feedback module 115.
  • the feedback module 115 is configured to send a feedback data packet to the terminal device when parsing the identifier.
  • the feedback data packet contains an acknowledgement field.
  • the confirmation field is used to indicate that the target BLE is resolved from the device to the identity.
  • the confirmation field is located in the ScanRspData field in the feedback packet.
  • the present embodiment can be implemented in cooperation with the fourth embodiment.
  • the related technical details mentioned in the fourth embodiment are still effective in the present embodiment, and the technical effects that can be achieved in the fourth embodiment are also implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the present embodiment can also be applied to the fourth embodiment.
  • the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
  • a tenth embodiment of the present invention relates to a BLE-based object-finding system, as shown in FIG. 13, including a terminal device 131 and a BLE slave device 132.
  • the terminal device 131 includes a scanning module 1311 and a transmitting module 1312.
  • the scanning module 1311 is configured to scan a low power Bluetooth BLE slave device.
  • the sending module 1312 is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
  • the BLE slave device includes 132: a second receiving module 1322, a second parsing module 1323, and a prompting module 1324.
  • the second receiving module 1322 is configured to receive the request data packet.
  • the second parsing module 1323 is configured to parse the request packet when the request packet is received.
  • the request data packet contains an identifier for finding a target BLE slave device.
  • the prompting module 1324 is configured to issue a prompt message when parsing the identifier.
  • the present embodiment can be implemented in cooperation with the fifth embodiment.
  • Related technical details mentioned in the fifth embodiment are in the present embodiment
  • the technical effects that can be achieved in the fifth embodiment are also implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the fifth embodiment.
  • the present embodiment enables the target BLE slave device 132 to be quickly found when the user hears the prompt information.
  • the target BLE slave device 132 can be directly searched through the terminal device 131 equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device 132.
  • the target BLE device 132 can be found through the terminal device without deploying the iBeacon or the Bluetooth AP indoors, without requiring a complicated data processing architecture and reducing hardware costs.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

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

Abstract

The present invention relates to the field of wireless communication, and discloses a terminal device, a BLE slave device, and a searching method and system based on BLE. In the present invention, the searching method based on BLE is used in the terminal device, and comprises: scanning for a Bluetooth Low Energy BLE slave device; and, after finding a target BLE slave device, sending a request data packet to the target BLE slave device; the request data packet contains an ID used for searching for the target BLE slave device. Also disclosed in the present invention are a terminal device, a BLE slave device, and a searching system based on BLE. Compared to the prior art, the present invention enables a user to quickly find a target BLE slave device, greatly reducing the time for searching for a target BLE slave device. A target BLE device can be found by means of the terminal device without the need to deploy an iBeacon or Bluetooth AP indoors, and there is also no need for complex data processing architecture, thus reducing hardware costs.

Description

终端设备、BLE从设备、基于BLE的寻物方法及系统Terminal device, BLE slave device, BLE-based object-seeking method and system 技术领域Technical field
本发明涉及无线通讯领域,特别涉及终端设备、BLE从设备、基于BLE的寻物方法及系统。The present invention relates to the field of wireless communications, and in particular, to a terminal device, a BLE slave device, a BLE-based object-seeking method and system.
背景技术Background technique
目前短距离无线通讯技术,在众多电子设备,如智能手机、手环、可穿戴设备、传感器等中得到了广泛的应用。这些电子设备支持室内定位技术。室内定位是指在室内环境中实现位置定位,其主要采用无线通讯、基站定位、惯性导航定位等多种技术集成形成的一套室内位置定位体系。除通讯网络的蜂窝定位技术外,常见的室内无线定位技术还有:无线局域网(Wi-Fi)、蓝牙、红外线、超宽带、射频识别(RFID)、紫峰(ZigBee)和超声波等。At present, short-range wireless communication technology has been widely used in many electronic devices, such as smart phones, wristbands, wearable devices, sensors, and the like. These electronic devices support indoor positioning technology. Indoor positioning refers to the realization of positional positioning in an indoor environment. It mainly adopts an indoor position positioning system formed by integration of various technologies such as wireless communication, base station positioning, and inertial navigation positioning. In addition to the cellular positioning technology of communication networks, common indoor wireless positioning technologies include: wireless local area network (Wi-Fi), Bluetooth, infrared, ultra-wideband, radio frequency identification (RFID), Zifeng (ZigBee) and ultrasound.
现有技术中的定位方法,大多是基于移动设备,由蓝牙应用程序(AP)服务器构成的定位系统,其定位是通过移动设备反复将广播信息通过蓝牙AP构建的传输通信网络与服务器进行通信,通过服务器计算后,得到当前移动设备的位置信息,并发送给移动设备。或者,基于iBeacon的蓝牙室内定位系统,该定位系统包括iBeacon信息发布系统、iBeacon基站和移动终端组成,其中信息发布系统由后台管理系统,服务认证接口,射频天线组成;基站由数据存储模块和蓝牙射频天线组成;移动终端由数据处理模块、蓝牙收发模块、无线收发模块、蓝牙射频接收天线,无线射频收发天线组成。The positioning methods in the prior art are mostly based on mobile devices, and the positioning system consisting of a Bluetooth application program (AP) server is configured to communicate with the server through the mobile device repeatedly transmitting the broadcast information through the Bluetooth AP. After being calculated by the server, the location information of the current mobile device is obtained and sent to the mobile device. Or, based on the iBeacon Bluetooth indoor positioning system, the positioning system comprises an iBeacon information release system, an iBeacon base station and a mobile terminal, wherein the information release system is composed of a background management system, a service authentication interface, and a radio frequency antenna; the base station is composed of a data storage module and a Bluetooth. The radio frequency antenna is composed of a data processing module, a Bluetooth transceiver module, a wireless transceiver module, a Bluetooth radio frequency receiving antenna, and a radio frequency transceiver antenna.
以上现有技术具有很多缺点:1、蓝牙传输通讯网络构建复杂,部署很多蓝牙AP,维护工作不便,硬件成本高。2、需要专门服务器处理由蓝牙 AP发送来的数据,会出现数据网络延迟及数据带宽问题,同样也增加了系统成本。3、发明中采用的本地定位装置是固化好的,不够灵活,因此做不到多种定位方法的升级和改动。4、发明中提到的室内定位,都是定位移动终端的位置,不能定位iBeacon或蓝牙AP的位置,进而在寻找物体时,不能对遗失或隐藏的物体进行定位。The above prior art has many disadvantages: 1. The Bluetooth transmission communication network is complicated to construct, and many Bluetooth APs are deployed, which is inconvenient to maintain and has high hardware cost. 2, need a dedicated server to handle by Bluetooth Data sent by the AP will cause data network delay and data bandwidth problems, which also increases system cost. 3. The local positioning device used in the invention is solidified and not flexible enough, so it is impossible to upgrade and modify various positioning methods. 4. The indoor positioning mentioned in the invention is to locate the position of the mobile terminal, and cannot locate the position of the iBeacon or the Bluetooth AP, and thus cannot locate the lost or hidden object when searching for an object.
发明内容Summary of the invention
本发明实施例的目的在于提供一种终端设备、BLE从设备、基于BLE的寻物方法及系统,使得用户可以快速的找到目标BLE从设备,极大缩短了寻找目标BLE从设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE从设备,而不需要复杂的数据处理架构、降低硬件成本。An object of the present invention is to provide a terminal device, a BLE slave device, a BLE-based object-seeking method and system, so that a user can quickly find a target BLE slave device, which greatly shortens the time for finding a target BLE slave device. Moreover, without deploying an iBeacon or a Bluetooth AP indoors, the target BLE slave device can be found through the terminal device without requiring a complicated data processing architecture and reducing hardware costs.
为解决上述技术问题,本发明实施例提供了一种基于BLE的寻物方法,应用于终端设备;基于BLE的寻物方法包括:扫描低功耗蓝牙BLE从设备;在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包;其中,请求数据包中含有用于寻找目标BLE从设备的标识。In order to solve the above technical problem, an embodiment of the present invention provides a BLE-based object-seeking method, which is applied to a terminal device; a BLE-based object-seeking method includes: scanning a low-power Bluetooth BLE slave device; and scanning a target BLE slave device Thereafter, the request packet is sent to the target BLE slave device; wherein the request packet contains an identifier for finding the target BLE slave device.
本发明实施例还提供了一种基于BLE的寻物方法,应用于BLE从设备;基于BLE的寻物方法包括:周期性地发送广播数据包;在接收到请求数据包时,对请求数据包进行解析;其中,请求数据包中含有用于寻找目标BLE从设备的标识;在解析到标识时,发出提示信息。The embodiment of the invention further provides a BLE-based object-finding method, which is applied to a BLE slave device; the BLE-based object-finding method comprises: periodically transmitting a broadcast data packet; and when receiving the request data packet, requesting the data packet Parsing; wherein the request packet contains an identifier for finding the target BLE slave device; when parsing the identifier, a prompt message is sent.
本发明实施例还提供了一种基于BLE的寻物方法,应用于终端设备和BLE从设备;基于BLE的寻物方法包括:终端设备扫描低功耗蓝牙BLE从设备;终端设备在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包;其中,请求数据包中含有用于寻找目标BLE从设备的标识;目标BLE从设备在接收到请求数据包时,对请求数据包进行解析;其中,请 求数据包中含有用于寻找目标BLE从设备的标识;目标BLE从设备在解析到标识时,发出提示信息。The embodiment of the invention further provides a BLE-based object-finding method, which is applied to a terminal device and a BLE slave device; the BLE-based object-seeking method includes: the terminal device scans a low-power Bluetooth BLE slave device; the terminal device scans to the target After the BLE slave device, the request packet is sent to the target BLE slave device; wherein the request packet includes an identifier for finding the target BLE slave device; and the target BLE slave device parses the request packet when receiving the request packet. ; among them, please The data packet contains an identifier for finding the target BLE slave device; the target BLE slave device sends a prompt message when parsing the identifier.
本发明实施例还提供了一种终端设备,包括扫描模块和发送模块;扫描模块,用于扫描低功耗蓝牙BLE从设备;发送模块,用于在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包;其中,请求数据包中含有用于寻找目标BLE从设备的标识。The embodiment of the invention further provides a terminal device, including a scanning module and a sending module; a scanning module, configured to scan a low-power Bluetooth BLE slave device; and a sending module, configured to target the BLE after scanning to the target BLE slave device The slave device sends a request packet; wherein the request packet contains an identifier for finding the target BLE slave device.
本发明实施例还提供了一种BLE从设备,包括:第二接收模块、第二解析模块以及提示模块;第二接收模块,用于接收请求数据包;第二解析模块,用于在接收到请求数据包时,对请求数据包进行解析;其中,请求数据包中含有用于寻找目标BLE从设备的标识;提示模块,用于在解析到标识时,发出提示信息。The embodiment of the present invention further provides a BLE slave device, including: a second receiving module, a second parsing module, and a prompting module; a second receiving module, configured to receive a request data packet; and a second parsing module, configured to receive When the data packet is requested, the request data packet is parsed; wherein the request data packet contains an identifier for finding the target BLE slave device; and the prompting module is configured to issue a prompt message when parsing the identifier.
本发明实施例还提供了一种基于低功耗蓝牙BLE的寻物系统,包括:终端设备和BLE从设备;终端设备包括:扫描模块和发送模块;扫描模块,用于扫描低功耗蓝牙BLE从设备;发送模块,用于在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包;其中,请求数据包中含有用于寻找目标BLE从设备的标识;BLE从设备包括:第二接收模块、第二解析模块以及提示模块;第二接收模块,用于接收请求数据包;第二解析模块,用于在接收到请求数据包时,对请求数据包进行解析;其中,请求数据包中含有用于寻找目标BLE从设备的标识;提示模块,用于在解析到标识时,发出提示信息。The embodiment of the invention further provides a low-power Bluetooth BLE-based object-finding system, comprising: a terminal device and a BLE slave device; the terminal device comprises: a scanning module and a sending module; and the scanning module is configured to scan the low-power Bluetooth BLE a slave device: a sending module, configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device; wherein the request data packet includes an identifier for finding the target BLE slave device; the BLE slave device includes: a receiving module, a second parsing module, and a prompting module; a second receiving module, configured to receive the request data packet; and a second parsing module, configured to parse the request data packet when receiving the request data packet; wherein, the request data The packet contains an identifier for finding the target BLE slave device; the prompt module is configured to issue a prompt message when parsing the identifier.
本发明实施例相对于现有技术而言,通过终端设备扫描低功耗蓝牙BLE从设备,并在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。再通过目标BLE从设备在接收到请求数据包时,对请求数据包进行解析。其中,请求数据包中含有用于寻找目标BLE从设备的标识。目标BLE从设备 在解析到标识时,发出提示信息,使得当用户听到提示信息后,就可以快速的找到目标BLE从设备。从而,可以直接通过配备有BLE技术的终端设备查找目标BLE从设备,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备,而不需要复杂的数据处理架构、降低硬件成本。Compared with the prior art, the embodiment of the present invention scans the low-power Bluetooth BLE slave device through the terminal device, and after scanning the target BLE slave device, sends the request data packet to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device. The request packet is parsed by the target BLE slave device when it receives the request packet. Wherein, the request data packet contains an identifier for finding a target BLE slave device. Target BLE slave device When parsing the identifier, a prompt message is sent, so that when the user hears the prompt information, the target BLE slave device can be quickly found. Thereby, the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device. Moreover, without deploying iBeacon or Bluetooth AP indoors, the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是根据本发明第一实施方式中基于BLE的寻物方法的流程图;1 is a flow chart of a BLE-based object-seeking method in accordance with a first embodiment of the present invention;
图2是根据本发明第二实施方式中基于BLE的寻物方法的流程图;2 is a flow chart of a BLE-based object-seeking method in accordance with a second embodiment of the present invention;
图3是根据本发明第二实施方式中数据包格式的示意图;3 is a schematic diagram of a data packet format according to a second embodiment of the present invention;
图4是根据本发明第二实施方式中数据包的包头格式的示意图;4 is a schematic diagram of a packet header format of a data packet according to a second embodiment of the present invention;
图5是根据本发明第二实施方式中协议数据单元类型的编码示意图;FIG. 5 is a schematic diagram of coding of a protocol data unit type according to a second embodiment of the present invention; FIG.
图6是根据本发明第三实施方式中基于BLE的寻物方法的流程图;6 is a flowchart of a BLE-based object-seeking method according to a third embodiment of the present invention;
图7是根据本发明第四实施方式中基于BLE的寻物方法的流程图;7 is a flowchart of a BLE-based object-seeking method according to a fourth embodiment of the present invention;
图8是根据本发明第五实施方式中基于BLE的寻物方法的流程图;8 is a flowchart of a BLE-based object-seeking method according to a fifth embodiment of the present invention;
图9是根据本发明第六实施方式中终端设备的方框图;Figure 9 is a block diagram of a terminal device in accordance with a sixth embodiment of the present invention;
图10是根据本发明第七实施方式中终端设备的方框图;Figure 10 is a block diagram of a terminal device in a seventh embodiment of the present invention;
图11是根据本发明第八实施方式中BLE从设备的方框图;Figure 11 is a block diagram of a BLE slave device in accordance with an eighth embodiment of the present invention;
图12是根据本发明第九实施方式中BLE从设备的方框图; Figure 12 is a block diagram of a BLE slave device in accordance with a ninth embodiment of the present invention;
图13是根据本发明第十实施方式中基于BLE的寻物系统的方框图。Figure 13 is a block diagram of a BLE based tracing system in accordance with a tenth embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objects, technical solutions, and advantages of the present invention more apparent, the embodiments of the present invention will be described in detail below. However, it will be apparent to those skilled in the art that, in the various embodiments of the present invention, numerous technical details are set forth in order to provide the reader with a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
本发明的第一实施方式涉及一种基于BLE的寻物方法,应用于终端设备。具体流程如图1所示,其包括:A first embodiment of the present invention relates to a BLE-based method of searching for a terminal device. The specific process is shown in Figure 1, which includes:
步骤101,扫描低功耗蓝牙BLE从设备。Step 101: Scan a low power Bluetooth BLE slave device.
值得一提的是,BLE从设备可以是具有通讯功能的智能设备,举例而言,BLE从设备可以但不限于为主动笔。并且,终端设备上的蓝牙可以支持bluetooth4.1/4.2的协议。It is worth mentioning that the BLE slave device can be a smart device with communication function. For example, the BLE slave device can be, but is not limited to, an active pen. Also, Bluetooth on the terminal device can support the protocol of bluetooth4.1/4.2.
具体地说,为终端设备的蓝牙设置开关使能键,当开关使能键被触发时,终端设备可以搜索附近的BLE从设备。终端设备搜索BLE从设备时,会将搜索结果以列表的形式列举出来。并且,列表中显示的BLE从设备可以但不限于包括以下信息:BLE从设备的名字、物理地址(MAC地址)、RSSI值(RSSI中文释义为接收的信号强度指示)等。所以,根据BLE从设备的名字和/或MAC地址可以扫描到BLE从设备。Specifically, the switch enable key is set for the Bluetooth of the terminal device, and when the switch enable key is triggered, the terminal device can search for a nearby BLE slave device. When the terminal device searches for a BLE slave device, the search results are listed in the form of a list. Moreover, the BLE slave device displayed in the list may include, but is not limited to, the following information: the name of the BLE slave device, the physical address (MAC address), the RSSI value (the RSSI Chinese interpretation is the received signal strength indication), and the like. Therefore, the BLE slave device can be scanned according to the name and/or MAC address of the BLE slave device.
步骤102,判断是否扫描到目标BLE从设备。如果是,则进入步骤103;否则,返回步骤101。In step 102, it is determined whether the target BLE slave device is scanned. If yes, go to step 103; otherwise, go back to step 101.
具体地说,用户可以根据BLE从设备的名字或MAC地址,从扫描列表中找到需要寻找的目标BLE从设备。点击用于寻找该目标BLE从设备的虚 拟按钮。终端设备在接收到对目标BLE从设备的寻找指令时,可以判定为扫描到目标BLE从设备。需要说明的是,于实际的设计过程中,还可以通过其它的方式扫描到目标BLE从设备。比如,可以预先在终端设备中存储各个BLE从设备。在扫描BLE从设备之前,先从预存的BLE从设备中选择一个目标BLE从设备。Specifically, the user can find the target BLE slave device that needs to be searched from the scan list according to the name or MAC address of the BLE slave device. Click on the imaginary to find the target BLE slave device Quasi-button. When receiving the seek instruction for the target BLE slave device, the terminal device may determine to scan to the target BLE slave device. It should be noted that in the actual design process, the target BLE slave device can also be scanned by other means. For example, each BLE slave device can be stored in advance in the terminal device. A target BLE slave device is selected from the pre-stored BLE slave devices before scanning the BLE slave device.
步骤103,向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。Step 103: Send a request packet to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
值得一提的是,于实际的应用中,目标BLE从设备接收到请求数据包时,可以发出提示信息。其中,提示信息可以但不限于包括声和/或光信息。比如,目标BLE从设备触发自身的马达或者蜂鸣器工作。用户听到马达的震动声或者蜂鸣器的声音时,可以快速的找到目标BLE从设备。目前,市面上很多智能设备如BLE从设备的硬件方案中,都配置了马达或者蜂鸣器。对于本实施方式而言,可以利用现有的马达或者蜂鸣器。只需改变BLE从设备的软件部分,就可以实现寻找目标BLE从设备。而且不会增加其它硬件成本,实现方式较为简单。It is worth mentioning that in the actual application, when the target BLE receives the request packet from the device, it can issue a prompt message. Wherein, the prompt information may include, but is not limited to, including sound and/or light information. For example, the target BLE slave device triggers its own motor or buzzer to work. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found. At present, many smart devices such as BLE slave devices in the market are equipped with motors or buzzers. For the present embodiment, an existing motor or buzzer can be utilized. Simply change the software portion of the BLE slave device to find the target BLE slave device. And it will not increase other hardware costs, and the implementation is relatively simple.
通过上述内容,不难发现,本实施方式使得当用户听到提示信息后,就可以快速的找到目标BLE从设备。从而,可以直接通过配备有BLE技术的终端设备查找目标BLE从设备,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备,而不需要复杂的数据处理架构、降低硬件成本。Through the above, it is not difficult to find that the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information. Thereby, the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device. Moreover, without deploying iBeacon or Bluetooth AP indoors, the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
本发明的第二实施方式涉及一种基于BLE的寻物方法,应用于终端设备。第二实施方式是在第一实施方式的基础上做了改进,主要改进之处在于:在第二实施方式中,向目标BLE从设备发送请求数据包之后,如果在 一定的时间内未收到反馈数据包,则再次向目标BLE从设备发送请求数据包。A second embodiment of the present invention relates to a BLE-based method of searching for a terminal device. The second embodiment is an improvement on the basis of the first embodiment, and the main improvement is that, in the second embodiment, after the request packet is transmitted to the target BLE slave device, if If the feedback packet is not received within a certain period of time, the request packet is sent to the target BLE slave again.
具体流程如图2所示,其包括;The specific process is shown in Figure 2, which includes;
步骤201,打开蓝牙BLE开关。In step 201, the Bluetooth BLE switch is turned on.
值得一提的是,终端设备上的蓝牙可以支持bluetooth4.1/4.2的协议。具体地说,为终端设备的蓝牙设置开关使能键,当开关使能键被触发时,终端设备可以搜索附近的BLE从设备。It is worth mentioning that Bluetooth on the terminal device can support the protocol of bluetooth4.1/4.2. Specifically, the switch enable key is set for the Bluetooth of the terminal device, and when the switch enable key is triggered, the terminal device can search for a nearby BLE slave device.
步骤202,扫描低功耗蓝牙BLE从设备。Step 202: Scan a low power Bluetooth BLE slave device.
值得一提的是,BLE从设备可以是具有通讯功能的智能设备,举例而言,BLE从设备可以但不限于为主动笔。具体地说,BLE从设备的蓝牙处于工作状态,该状态是周期性地发送数据包。终端设备接收到该数据包后,可以判定为扫描到该BLE从设备。终端设备搜索BLE从设备时,会将搜索结果以列表的形式列举出来。并且,列表中显示的BLE从设备可以但不限于包括以下信息:BLE从设备的名字、物理地址(MAC地址)、RSSI值(RSSI中文释义为接收的信号强度指示)等。It is worth mentioning that the BLE slave device can be a smart device with communication function. For example, the BLE slave device can be, but is not limited to, an active pen. Specifically, the Bluetooth of the BLE slave device is in an active state, which is to periodically transmit a data packet. After receiving the data packet, the terminal device may determine that the BLE slave device is scanned. When the terminal device searches for a BLE slave device, the search results are listed in the form of a list. Moreover, the BLE slave device displayed in the list may include, but is not limited to, the following information: the name of the BLE slave device, the physical address (MAC address), the RSSI value (the RSSI Chinese interpretation is the received signal strength indication), and the like.
步骤203,判断是否扫描到目标BLE从设备。如果是,则进入步骤204;否则,返回步骤202。In step 203, it is determined whether the target BLE slave device is scanned. If yes, go to step 204; otherwise, go back to step 202.
具体地说,用户可以根据BLE从设备的名字或MAC地址,从扫描列表中找到需要寻找的目标BLE从设备。点击用于寻找该目标BLE从设备的虚拟按钮。此时,可以判定为扫描到目标BLE从设备。Specifically, the user can find the target BLE slave device that needs to be searched from the scan list according to the name or MAC address of the BLE slave device. Click on the virtual button used to find the target BLE slave device. At this time, it can be determined that the target BLE slave device is scanned.
步骤204,向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。Step 204: Send a request packet to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
值得一提的是,请求数据包为蓝牙广播信道的数据包。标识位于蓝牙广播信道的数据包的协议数据单元类型(PDU Type)字段。具体地说,如图 3所示,蓝牙广播信道的数据包由16bits的包头header和负载payload组成。如图4和图5所示,由于蓝牙BLE协议中规定,蓝牙广播信道的(scan_req)数据包格式固定,不能携带其它一些额外信息。因此,本发明中可以对scan_req进行程序改造。具体而言,改变scan_req数据包的包头中的PDU Type字段,即可以将PDU Type字段设置为“0111”。而scan_req数据包中其它字段保持不变。It is worth mentioning that the request packet is a data packet of the Bluetooth broadcast channel. A Protocol Data Unit Type (PDU Type) field that identifies a packet located on the Bluetooth broadcast channel. Specifically, as shown As shown in 3, the data packet of the Bluetooth broadcast channel is composed of a 16-bit header header and a payload. As shown in FIG. 4 and FIG. 5, since the Bluetooth BLE protocol specifies that the (scan_req) data packet format of the Bluetooth broadcast channel is fixed, it cannot carry other additional information. Therefore, the scan_req can be modified in the present invention. Specifically, changing the PDU Type field in the header of the scan_req packet, the PDU Type field can be set to "0111". The other fields in the scan_req packet remain unchanged.
步骤205,判断在预设时间内是否接收到反馈数据包。如果是,则结束;否则,进入步骤206。其中,反馈数据包中包含确认字段,确认字段用于指示目标BLE从设备解析到标识。确认字段位于反馈数据包中的ScanRspData字段。其中,ScanRspData字段指的是扫描反馈字段或者扫描回应字段。Step 205: Determine whether a feedback data packet is received within a preset time. If yes, then the end; otherwise, proceed to step 206. The feedback data packet includes an acknowledgement field, and the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier. The confirmation field is located in the ScanRspData field in the feedback packet. The ScanRspData field refers to a scan feedback field or a scan response field.
步骤206,再次向目标BLE从设备发送请求数据包。In step 206, the request packet is sent to the target BLE slave again.
需要说明的是,于实际的应用中,如果目标BLE从设备根据请求包,发出提示音之后,用户仍然无法找到目标BLE从设备。比如,用户与BLE从设备距离较远,听不到提示音,或者即使用户听到了声音,但由于距离较远或有遮挡物,以致用户根据声音仅知道目标BLE从设备的大致位置而难以较快的找到目标BLE从设备。作为优选,在扫描到目标BLE从设备之后,基于BLE的寻物方法还包括:依次在终端设备位于至少两个位置处,获取终端设备当前所处的位置Si,以及终端设备与目标BLE从设备之间的距离Ri;根据获取到的Si、Ri,计算出所述目标BLE从设备的位置。通过这种方式,可以更加快速便捷的找到目标BLE从设备。It should be noted that, in the actual application, if the target BLE slave device sends a prompt tone according to the request packet, the user still cannot find the target BLE slave device. For example, the user is far away from the BLE device, can not hear the prompt tone, or even if the user hears the sound, but because the distance is far away or there is obstruction, the user only knows the approximate location of the target BLE from the device according to the sound, and it is difficult to compare Quickly find the target BLE slave device. Preferably, after scanning to the target BLE slave device, the BLE-based object-finding method further comprises: sequentially acquiring the location Si of the terminal device at the terminal device at the at least two locations, and the terminal device and the target BLE slave device. The distance Ri; the position of the target BLE slave device is calculated according to the acquired Si, Ri. In this way, the target BLE slave device can be found more quickly and conveniently.
具体地说,根据获取到的Si、Ri,计算出目标BLE从设备的位置,具体包括:采用加权质心算法,根据Si的坐标和Ri的值计算终端设备各个位置的几何质心,目标BLE从设备位于几何质心所在的区域;或者,根据获取到的Si、Ri,计算出目标BLE从设备的位置,具体包括:在水平方向上,以 Si为圆心,且以Ri为半径列圆的方程公式,根据Si的坐标和Ri的值,计算每个圆的交点,目标BLE从设备位于每个圆均共有的交点所在的区域。Specifically, calculating the location of the target BLE slave device according to the acquired Si and Ri, specifically including: using a weighted centroid algorithm, calculating a geometric centroid of each position of the terminal device according to the coordinates of Si and the value of Ri, the target BLE slave device Located in the area where the geometric centroid is located; or, based on the acquired Si, Ri, the position of the target BLE slave device, including: in the horizontal direction, Si is the center of the equation, and Ri is the equation formula of the radius of the circle. According to the coordinates of Si and the value of Ri, the intersection of each circle is calculated. The target BLE slave is located in the area where the intersection of each circle is common.
优选的,终端设备的初始位置为坐标原点,终端设备的其它位置为相对于初始位置的相对位置。目标BLE从设备的位置为相对于初始位置的相对位置。在扫描到目标BLE从设备之后,基于BLE的寻物方法还包括:接收目标BLE从设备的信号。从接收的信号中解析得到信号强度RSSI值。根据解析的RSSI值,调整终端设备所处的位置。将终端设备调整到一个新的位置之后,再重新向目标BLE从设备发送请求数据包。在调整终端设备的位置时,终端设备会显示自身的移动方向和移动距离。终端设备还会提示RSSI值。具体而言,当终端设备与目标BLE从设备的距离发生变化时,RSSI值也会发生变化。比如:Preferably, the initial position of the terminal device is the coordinate origin, and the other positions of the terminal device are relative positions with respect to the initial position. The position of the target BLE slave device is a relative position with respect to the initial position. After scanning to the target BLE slave device, the BLE based method further includes: receiving a signal of the target BLE slave device. The signal strength RSSI value is obtained from the received signal. Adjust the location of the terminal device based on the resolved RSSI value. After the terminal device is adjusted to a new location, the request packet is resent to the target BLE slave device. When adjusting the position of the terminal device, the terminal device displays its own moving direction and moving distance. The terminal device also prompts for the RSSI value. Specifically, when the distance between the terminal device and the target BLE slave device changes, the RSSI value also changes. such as:
一:在终端设备移动的过程中,如果RSSI信号渐强。则表明终端设备朝向目标BLE从设备运动,目标BLE从设备位于终端设备的移动方向。可以提示用户目标BLE从设备位于终端设备的移动方向。以便于用户控制终端设备在其它位置时,获取的数据更加精确。二:如果RSSI信号渐弱。则表明终端设备远离目标BLE从设备运动,目标BLE从设备位于终端设备的移动方向的相反方向。可以提示用户目标BLE从设备位于终端设备的移动方向的相反方向。以便于用户控制终端设备在其它位置时,获取的数据更加精确。三:如果RSSI信号先渐强后渐弱。则表明目标BLE从设备位于终端设备移动路线的两侧。可以提示用户目标BLE从设备位于终端设备移动路线的两侧。以便于用户控制终端设备在其它位置时,获取的数据更加精确。One: During the movement of the terminal device, if the RSSI signal is getting stronger. It indicates that the terminal device moves toward the target BLE slave device, and the target BLE slave device is located in the moving direction of the terminal device. The user can be prompted to target the BLE slave device in the direction of movement of the terminal device. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate. Two: If the RSSI signal is getting weaker. It indicates that the terminal device moves away from the target BLE slave device, and the target BLE slave device is located in the opposite direction of the moving direction of the terminal device. The user may be prompted that the target BLE slave device is in the opposite direction of the direction of movement of the terminal device. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate. Three: If the RSSI signal first becomes stronger, it gradually weakens. It indicates that the target BLE slave device is located on both sides of the mobile device's moving route. The user can be prompted that the target BLE slave device is located on both sides of the terminal device moving route. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate.
通过上述内容,不难发现,本实施方式可以保证终端设备发送的请求数据包被目标BLE从设备接收到。避免因目标BLE从设备接收不到请求数据包,而找不到目标BLE从设备的情况发生。 Through the above, it is not difficult to find that the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
本发明的第三实施方式涉及一种基于BLE的寻物方法,应用于BLE从设备。具体流程如图6所示,其包括:A third embodiment of the present invention relates to a BLE-based method of searching for a BLE slave device. The specific process is shown in Figure 6, which includes:
步骤601,周期性地发送广播数据包。 Step 601, periodically transmitting a broadcast data packet.
值得一提的是,BLE从设备的蓝牙处于工作状态,该状态是周期性地发送数据包。并且,BLE从设备周期性发送的数据包可以被终端设备扫描到。在终端设备扫描到上述数据包时,可以向BLE从设备发送请求数据包。It is worth mentioning that the Bluetooth of the BLE slave device is in a working state, which is to periodically send data packets. Moreover, the data packets periodically sent by the BLE slave device can be scanned by the terminal device. When the terminal device scans the above data packet, the request packet may be sent to the BLE slave device.
步骤602,判断是否接收到请求数据包。如果是,则进入步骤603;否则,进入步骤601。其中,请求数据包中含有用于寻找目标BLE从设备的标识。Step 602: Determine whether a request packet is received. If yes, go to step 603; otherwise, go to step 601. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
步骤603,对请求数据包进行解析。In step 603, the request data packet is parsed.
值得一提的是,请求数据包为蓝牙广播信道的数据包。目标BLE从设备对请求数据包的包头进行解析。It is worth mentioning that the request packet is a data packet of the Bluetooth broadcast channel. The target BLE slave parses the header of the request packet.
步骤604,判断是否解析到标识。如果是,则进入步骤605;否则,返回步骤601。In step 604, it is determined whether the identifier is resolved. If yes, go to step 605; otherwise, go back to step 601.
步骤605,发出提示信息。In step 605, a prompt message is sent.
其中,提示信息可以但不限于包括声和/或光信息。于实际的应用中,目标BLE从设备触发自身的马达或者蜂鸣器工作。用户听到马达的震动声或者蜂鸣器的声音时,可以快速的找到目标BLE从设备。Wherein, the prompt information may include, but is not limited to, including sound and/or light information. In practical applications, the target BLE slave device triggers its own motor or buzzer to operate. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found.
通过上述内容,不难发现,本实施方式使得当用户听到提示信息后,就可以快速的找到目标BLE从设备。从而,可以直接通过配备有BLE技术的终端设备查找目标BLE从设备,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备,而不需要复杂的数据处理架构、 降低硬件成本。Through the above, it is not difficult to find that the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information. Thereby, the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device. Moreover, without deploying an iBeacon or a Bluetooth AP indoors, the target BLE device can be found through the terminal device without requiring a complicated data processing architecture, Reduce hardware costs.
本发明的第四实施方式涉及一种基于BLE的寻物方法,应用于BLE从设备。第四实施方式是在第三实施方式的基础上做了改进,主要改进之处在于:在第四实施方式中,在解析到所述标识时,向终端设备发送反馈数据包。A fourth embodiment of the present invention relates to a BLE-based method of searching for a BLE slave device. The fourth embodiment is an improvement on the basis of the third embodiment, and the main improvement is that in the fourth embodiment, when parsing the identifier, the feedback data packet is transmitted to the terminal device.
具体流程如图7所示,其包括:The specific process is shown in Figure 7, which includes:
步骤701,周期性地发送广播数据包。In step 701, a broadcast data packet is periodically sent.
值得一提的是,BLE从设备的蓝牙处于工作状态,该状态是周期性地发送数据包。并且,BLE从设备周期性发送的数据包可以被终端设备扫描到。在终端设备扫描到上述数据包时,可以向BLE从设备发送请求数据包。It is worth mentioning that the Bluetooth of the BLE slave device is in a working state, which is to periodically send data packets. Moreover, the data packets periodically sent by the BLE slave device can be scanned by the terminal device. When the terminal device scans the above data packet, the request packet may be sent to the BLE slave device.
步骤702,判断是否接收到请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。如果是,则进入步骤703;否则,进入步骤701。In step 702, it is determined whether a request packet is received. Wherein, the request data packet contains an identifier for finding a target BLE slave device. If yes, go to step 703; otherwise, go to step 701.
请求数据包为蓝牙广播信道的数据包。标识位于蓝牙广播信道的数据包的协议数据单元类型PDU Type字段。The request packet is a packet of a Bluetooth broadcast channel. A protocol data unit type PDU Type field that identifies a data packet located on the Bluetooth broadcast channel.
步骤703,对请求数据包进行解析。 Step 703, parsing the request data packet.
值得一提的是,请求数据包为蓝牙广播信道的数据包。目标BLE从设备对请求数据包的包头进行解析。It is worth mentioning that the request packet is a data packet of the Bluetooth broadcast channel. The target BLE slave parses the header of the request packet.
步骤704,判断是否解析到标识。如果是,则进入步骤705;否则,返回步骤701。In step 704, it is determined whether the identifier is resolved. If yes, go to step 705; otherwise, go back to step 701.
需要说明的是,蓝牙广播信道的数据包由16bits的包头header和负载payload组成。由于蓝牙BLE协议中规定,蓝牙广播信道的(scan_req)数据 包格式固定,不能携带其它一些额外信息。因此,本发明中可以对scan_req进行程序改造。具体而言,改变scan_req数据包的包头中的PDU Type字段,即可以将PDU Type字段设置为“0111”。而scan_req数据包中其它字段保持不变。具体地说,当解析到PDU Type字段为“0111”时,可以判定解析到标识。It should be noted that the data packet of the Bluetooth broadcast channel is composed of a 16-bit header header and a payload. Bluetooth scan channel (scan_req) data as specified in the Bluetooth BLE protocol The package format is fixed and cannot carry other additional information. Therefore, the scan_req can be modified in the present invention. Specifically, changing the PDU Type field in the header of the scan_req packet, the PDU Type field can be set to "0111". The other fields in the scan_req packet remain unchanged. Specifically, when parsing into the PDU Type field is "0111", it can be determined that the identifier is resolved.
步骤705,发出提示信息。In step 705, a prompt message is sent.
其中,提示信息可以但不限于包括声和/或光信息。于实际的应用中,目标BLE从设备触发自身的马达或者蜂鸣器工作。用户听到马达的震动声或者蜂鸣器的声音时,可以快速的找到目标BLE从设备。Wherein, the prompt information may include, but is not limited to, including sound and/or light information. In practical applications, the target BLE slave device triggers its own motor or buzzer to operate. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found.
步骤706,向终端设备发送反馈数据包。其中,反馈数据包中包含确认字段,确认字段用于指示目标BLE从设备解析到标识。确认字段位于反馈数据包中的ScanRspData字段。Step 706: Send a feedback data packet to the terminal device. The feedback data packet includes an acknowledgement field, and the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier. The confirmation field is located in the ScanRspData field in the feedback packet.
值得一提的是,目标BLE从设备向终端设备发送反馈数据包,会在与终端设备发送请求数据包在同一个频道上发送。并且,本实施方式中步骤706不限于在步骤705之后执行。也可以先执行步骤706,再执行步骤705。或者,步骤705和步骤706同时执行。It is worth mentioning that the target BLE sends a feedback data packet from the device to the terminal device, and is sent on the same channel as the terminal device sends the request data packet. Also, step 706 in the present embodiment is not limited to being performed after step 705. Step 706 may also be performed first, and then step 705 is performed. Alternatively, step 705 and step 706 are performed simultaneously.
通过上述内容,不难发现,本实施方式可以保证终端设备发送的请求数据包被目标BLE从设备接收到。避免因目标BLE从设备接收不到请求数据包,而找不到目标BLE从设备的情况发生。Through the above, it is not difficult to find that the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
本发明的第五实施方式涉及一种基于BLE的寻物方法,应用于终端设备和BLE从设备。A fifth embodiment of the present invention relates to a BLE-based method of searching for a terminal device and a BLE slave device.
值得一提的是,BLE从设备的蓝牙处于工作状态,该状态是目标BLE从设备周期性地发送数据包。并且,BLE从设备周期性发送的数据包可以被 终端设备扫描到。在终端设备扫描到上述数据包时,可以向BLE从设备发送请求数据包。It is worth mentioning that the Bluetooth of the BLE slave device is in a working state, which is that the target BLE slave device periodically transmits data packets. And, the data packet periodically sent by the BLE slave device can be The terminal device scanned it. When the terminal device scans the above data packet, the request packet may be sent to the BLE slave device.
基于BLE的寻物方法的具体流程如图8所示,其包括:The specific process of the BLE-based object-seeking method is shown in FIG. 8, which includes:
步骤S1,终端设备扫描低功耗蓝牙BLE从设备。In step S1, the terminal device scans the low power Bluetooth BLE slave device.
值得一提的是,BLE从设备可以是具有通讯功能的智能设备,举例而言,BLE从设备可以但不限于为主动笔。并且,终端设备上的蓝牙可以支持bluetooth4.1/4.2的协议。It is worth mentioning that the BLE slave device can be a smart device with communication function. For example, the BLE slave device can be, but is not limited to, an active pen. Also, Bluetooth on the terminal device can support the protocol of bluetooth4.1/4.2.
具体地说,为终端设备的蓝牙设置开关使能键,当开关使能键被触发时,终端设备可以搜索附近的BLE从设备。终端设备搜索BLE从设备时,会将搜索结果以列表的形式列举出来。并且,列表中显示的BLE从设备可以但不限于包括以下信息:BLE从设备的名字、物理地址(MAC地址)、RSSI值(RSSI中文释义为接收的信号强度指示)等。Specifically, the switch enable key is set for the Bluetooth of the terminal device, and when the switch enable key is triggered, the terminal device can search for a nearby BLE slave device. When the terminal device searches for a BLE slave device, the search results are listed in the form of a list. Moreover, the BLE slave device displayed in the list may include, but is not limited to, the following information: the name of the BLE slave device, the physical address (MAC address), the RSSI value (the RSSI Chinese interpretation is the received signal strength indication), and the like.
步骤S2,终端设备判断是否扫描到目标BLE从设备。如果是,则进入步骤S3;否则,返回步骤S1。In step S2, the terminal device determines whether the target BLE slave device is scanned. If yes, go to step S3; otherwise, return to step S1.
具体地说,用户可以根据BLE从设备的名字或MAC地址,从扫描列表中找到需要寻找的目标BLE从设备。点击用于寻找该目标BLE从设备的虚拟按钮。此时,可以判定为扫描到目标BLE从设备。需要说明的是,于实际的设计过程中,还可以通过其它的方式扫描到目标BLE从设备。比如,可以预先在终端设备中存储各个BLE从设备。在扫描BLE从设备之前,先从预存的BLE从设备中选择一个目标BLE从设备。Specifically, the user can find the target BLE slave device that needs to be searched from the scan list according to the name or MAC address of the BLE slave device. Click on the virtual button used to find the target BLE slave device. At this time, it can be determined that the target BLE slave device is scanned. It should be noted that in the actual design process, the target BLE slave device can also be scanned by other means. For example, each BLE slave device can be stored in advance in the terminal device. A target BLE slave device is selected from the pre-stored BLE slave devices before scanning the BLE slave device.
步骤S3,终端设备向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。In step S3, the terminal device sends a request data packet to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
步骤S4,目标BLE从设备判断是否接收到请求数据包。如果是,则进入步骤S5;否则,返回步骤S4。 In step S4, the target BLE determines from the device whether the request packet is received. If yes, go to step S5; otherwise, go back to step S4.
步骤S5,目标BLE从设备对请求数据包进行解析。其中,请求数据包中含有用于寻找目标BLE从设备的标识。In step S5, the target BLE slave device parses the request packet. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
步骤S6,目标BLE从设备判断是否解析到标识。如果是,则进入步骤S7;否则,返回步骤S4。In step S6, the target BLE determines whether the device resolves to the identifier. If yes, go to step S7; otherwise, go back to step S4.
步骤S7,发出提示信息。In step S7, a prompt message is sent.
于实际的应用中,目标BLE从设备触发自身的马达或者蜂鸣器工作。用户听到马达的震动声或者蜂鸣器的声音时,可以快速的找到目标BLE从设备。In practical applications, the target BLE slave device triggers its own motor or buzzer to operate. When the user hears the vibration of the motor or the sound of the buzzer, the target BLE slave can be quickly found.
通过上述内容,不难发现,本实施方式使得当用户听到提示信息后,就可以快速的找到目标BLE从设备。从而,可以直接通过配备有BLE技术的终端设备查找目标BLE从设备,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备,而不需要复杂的数据处理架构、降低硬件成本。Through the above, it is not difficult to find that the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information. Thereby, the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device. Moreover, without deploying iBeacon or Bluetooth AP indoors, the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided for the sake of clear description. The implementation may be combined into one step or split into certain steps and decomposed into multiple steps. As long as the same logical relationship is included, it is within the protection scope of this patent. The addition of insignificant modifications to an algorithm or process, or the introduction of an insignificant design, without changing the core design of its algorithms and processes, is covered by this patent.
本发明第六实施方式涉及一种终端设备,如图9所示,包括扫描模块91和发送模块92。扫描模块91用于扫描低功耗蓝牙BLE从设备。发送模块92用于在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。 A sixth embodiment of the present invention relates to a terminal device, as shown in FIG. 9, including a scanning module 91 and a transmitting module 92. The scanning module 91 is used to scan a low power Bluetooth BLE slave device. The sending module 92 is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device.
不难发现,本实施方式为与第一实施方式相对应的设备实施例,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。It is not difficult to find that the present embodiment is an apparatus embodiment corresponding to the first embodiment, and the present embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the first embodiment.
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施方式中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that each module involved in this embodiment is a logic module. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical entities. A combination of units is implemented. In addition, in order to highlight the innovative part of the present invention, the present embodiment does not introduce a unit that is not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in the present embodiment.
通过上述内容,不难发现,本实施方式使得当用户听到提示信息后,就可以快速的找到目标BLE从设备。从而,可以直接通过配备有BLE技术的终端设备查找目标BLE从设备,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备,而不需要复杂的数据处理架构、降低硬件成本。Through the above, it is not difficult to find that the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information. Thereby, the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device. Moreover, without deploying iBeacon or Bluetooth AP indoors, the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
本发明第七实施方式涉及一种终端设备。第七实施方式是在第六实施方式的基础上做了改进,主要改进之处在于:在第七实施方式中,终端设备还包括判断模块。A seventh embodiment of the present invention relates to a terminal device. The seventh embodiment is an improvement on the basis of the sixth embodiment, and the main improvement is that in the seventh embodiment, the terminal device further includes a judging module.
具体地说,如图10所示,终端设备包括扫描模块91和发送模块92。扫描模块91用于扫描低功耗蓝牙BLE从设备。发送模块92用于在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。其中,请求数据包为蓝牙广播信道的数据包。标识位于蓝牙广播信道的数据包的协议数据单元类型PDU Type字段。 Specifically, as shown in FIG. 10, the terminal device includes a scanning module 91 and a transmitting module 92. The scanning module 91 is used to scan a low power Bluetooth BLE slave device. The sending module 92 is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device. The request packet is a data packet of a Bluetooth broadcast channel. A protocol data unit type PDU Type field that identifies a data packet located on the Bluetooth broadcast channel.
终端设备还包括获取模块和计算模块;获取模块,用于在扫描模块扫描到目标BLE从设备之后,依次在终端设备位于至少两个位置处,获取终端设备当前所处的位置Si,以及终端设备与所述目标BLE从设备之间的距离Ri;计算模块,用于根据获取到的Si、Ri,计算出目标BLE从设备的位置。具体地说,计算模块,还用于采用加权质心算法,根据Si的坐标和Ri的值计算终端设备各个位置的几何质心,所述目标BLE从设备位于所述几何质心所在的区域;或者,计算模块,还用于在水平方向上,以Si为圆心,且以Ri为半径列圆的方程公式,根据Si的坐标和Ri的值,计算每个圆的交点,目标BLE从设备位于每个圆均共有的交点所在的区域。The terminal device further includes an obtaining module and a calculating module, and the acquiring module is configured to acquire, after the scanning module scans the target BLE slave device, the terminal device at the at least two locations, obtain the current location Si of the terminal device, and the terminal device. a distance Ri from the target BLE slave device; a calculation module, configured to calculate a location of the target BLE slave device according to the acquired Si, Ri. Specifically, the calculation module is further configured to calculate, by using a weighted centroid algorithm, a geometric centroid of each position of the terminal device according to the coordinates of the Si and the value of Ri, where the target BLE slave device is located in the region where the geometric centroid is located; or, The module is also used to calculate the intersection of each circle in the horizontal direction with Si as the center and Ri as the radius of the equation. According to the coordinates of Si and the value of Ri, the target BLE slave is located in each circle. The area where the intersection points are shared.
其中,终端设备的初始位置为坐标原点,终端设备的其它位置为相对于初始位置的相对位置;目标BLE从设备的位置为相对于初始位置的相对位置。The initial position of the terminal device is a coordinate origin, and the other positions of the terminal device are relative positions with respect to the initial position; the position of the target BLE slave device is a relative position with respect to the initial position.
终端设备还包括判断模块93。判断模块93用于判断在预设时间内是否接收到反馈数据包。其中,反馈数据包中包含确认字段。确认字段用于指示目标BLE从设备解析到标识。发送模块92还用于在预设时间内未接收到反馈数据包时,再次向目标BLE从设备发送请求数据包。其中,确认字段位于反馈数据包中的ScanRspData字段。The terminal device also includes a judging module 93. The determining module 93 is configured to determine whether a feedback data packet is received within a preset time. Among them, the feedback data packet contains an acknowledgement field. The confirmation field is used to indicate that the target BLE is resolved from the device to the identity. The sending module 92 is further configured to send the request data packet to the target BLE slave device again when the feedback data packet is not received within the preset time. The confirmation field is located in the ScanRspData field in the feedback packet.
另外,终端设备还包括开启模94和查找模块95。开启模块94用于在扫描低功耗蓝牙BLE从设备之前,打开蓝牙BLE开关。查找模块95用于从扫描得到的列表中,根据目标BLE从设备的名字或物理地址找到目标BLE从设备。In addition, the terminal device further includes an open mode 94 and a lookup module 95. The on module 94 is used to turn on the Bluetooth BLE switch before scanning the Bluetooth BLE slave. The lookup module 95 is configured to find the target BLE slave device from the name or physical address of the device according to the target BLE from the list obtained by the scan.
需要说明的是,于实际的应用中,如果目标BLE从设备根据请求包,发出提示音之后,用户仍然无法找到目标BLE从设备。比如,用户与BLE从设备距离较远,听不到提示音。则可以将终端设备调整到一个新的位置之后,再向目标BLE从设备发送请求数据包。作为优选,终端设备还包括第一接收 模块、第一解析模块和调整模块;第一接收模块,用于接收目标BLE从设备的信号;第一解析模块,用于从接收的信号中解析得到信号强度RSSI值;调整模块,用于根据解析的所述RSSI值,调整所述终端设备所处的位置。在调整终端设备的位置时,终端设备会显示自身的移动方向和移动距离。终端设备还会提示RSSI值。具体而言,当终端设备与目标BLE从设备的距离发生变化时,RSSI值也会发生变化。比如:It should be noted that, in the actual application, if the target BLE slave device sends a prompt tone according to the request packet, the user still cannot find the target BLE slave device. For example, the user and the BLE slave device are far away and cannot hear the prompt tone. Then, after the terminal device is adjusted to a new location, the request packet is sent to the target BLE slave device. Preferably, the terminal device further comprises a first receiving a module, a first parsing module, and an adjusting module; a first receiving module, configured to receive a signal of the target BLE slave device; a first parsing module, configured to parse the signal strength RSSI value from the received signal; and an adjustment module, configured to Parsing the RSSI value to adjust the location of the terminal device. When adjusting the position of the terminal device, the terminal device displays its own moving direction and moving distance. The terminal device also prompts for the RSSI value. Specifically, when the distance between the terminal device and the target BLE slave device changes, the RSSI value also changes. such as:
一:在终端设备移动的过程中,如果RSSI信号渐强。则表明终端设备朝向目标BLE从设备运动,目标BLE从设备位于终端设备的移动方向。可以提示用户目标BLE从设备位于终端设备的移动方向。以便于用户控制终端设备在其它位置时,获取的数据更加精确。二:如果RSSI信号渐弱。则表明终端设备远离目标BLE从设备运动,目标BLE从设备位于终端设备的移动方向的相反方向。可以提示用户目标BLE从设备位于终端设备的移动方向的相反方向。以便于用户控制终端设备在其它位置时,获取的数据更加精确。三:如果RSSI信号先渐强后渐弱。则表明目标BLE从设备位于终端设备移动路线的两侧。可以提示用户目标BLE从设备位于终端设备移动路线的两侧。以便于用户控制终端设备在其它位置时,获取的数据更加精确。One: During the movement of the terminal device, if the RSSI signal is getting stronger. It indicates that the terminal device moves toward the target BLE slave device, and the target BLE slave device is located in the moving direction of the terminal device. The user can be prompted to target the BLE slave device in the direction of movement of the terminal device. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate. Two: If the RSSI signal is getting weaker. It indicates that the terminal device moves away from the target BLE slave device, and the target BLE slave device is located in the opposite direction of the moving direction of the terminal device. The user may be prompted that the target BLE slave device is in the opposite direction of the direction of movement of the terminal device. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate. Three: If the RSSI signal first becomes stronger, it gradually weakens. It indicates that the target BLE slave device is located on both sides of the mobile device's moving route. The user can be prompted that the target BLE slave device is located on both sides of the terminal device moving route. In order to facilitate the user to control the terminal device in other locations, the acquired data is more accurate.
由于第二实施方式与本实施方式相互对应,因此本实施方式可与第二实施方式互相配合实施。第二实施方式中提到的相关技术细节在本实施方式中依然有效,在第二实施方式中所能达到的技术效果在本实施方式中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第二实施方式中。Since the second embodiment and the present embodiment correspond to each other, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still effective in the present embodiment, and the technical effects that can be achieved in the second embodiment can also be implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the present embodiment can also be applied to the second embodiment.
通过上述内容,不难发现,本实施方式可以保证终端设备发送的请求数据包被目标BLE从设备接收到。避免因目标BLE从设备接收不到请求数据包,而找不到目标BLE从设备的情况发生。 Through the above, it is not difficult to find that the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
本发明第八实施方式涉及一种BLE从设备,如图11所示,包括:第二接收模块112、第二解析模块113以及提示模块114。第二接收模块112用于接收请求数据包。第二解析模块113用于在接收到请求数据包时,对请求数据包进行解析。其中,请求数据包中含有用于寻找目标BLE从设备的标识。提示模块114用于在解析到标识时,发出提示信息。An eighth embodiment of the present invention relates to a BLE slave device. As shown in FIG. 11, the second embodiment includes a second receiving module 112, a second parsing module 113, and a prompting module 114. The second receiving module 112 is configured to receive the request data packet. The second parsing module 113 is configured to parse the request packet when receiving the request packet. Wherein, the request data packet contains an identifier for finding a target BLE slave device. The prompting module 114 is configured to issue a prompt message when parsing the identifier.
由于第三实施方式与本实施方式相互对应,因此本实施方式可与第三实施方式互相配合实施。第三实施方式中提到的相关技术细节在本实施方式中依然有效,在第三实施方式中所能达到的技术效果在本实施方式中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第三实施方式中。Since the third embodiment and the present embodiment correspond to each other, the present embodiment can be implemented in cooperation with the third embodiment. The technical details mentioned in the third embodiment are still effective in the present embodiment, and the technical effects that can be achieved in the third embodiment are also implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the present embodiment can also be applied to the third embodiment.
通过上述内容,不难发现,本实施方式使得当用户听到提示信息后,就可以快速的找到目标BLE从设备。从而,可以直接通过配备有BLE技术的终端设备查找目标BLE从设备,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备,而不需要复杂的数据处理架构、降低硬件成本。Through the above, it is not difficult to find that the present embodiment enables the target BLE slave device to be quickly found when the user hears the prompt information. Thereby, the target BLE slave device can be directly searched through the terminal device equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device. Moreover, without deploying iBeacon or Bluetooth AP indoors, the target BLE device can be found through the terminal device without complicated data processing architecture and hardware cost reduction.
本发明第九实施方式涉及一种BLE从设备。第九实施方式是在第八实施方式的基础上做了改进,主要改进之处在于:在第九实施方式中,BLE从设备还包括反馈模块。A ninth embodiment of the present invention relates to a BLE slave device. The ninth embodiment is an improvement on the basis of the eighth embodiment, and the main improvement is that in the ninth embodiment, the BLE slave device further includes a feedback module.
具体地说,如图12所示,BLE从设备包括:第二接收模块112、第二解析模块113以及提示模块114。第二接收模块112用于接收请求数据包。第二解析模块113用于在接收到请求数据包时,对请求数据包进行解析。其中,请求数据包中含有用于寻找目标BLE从设备的标识。提示模块114用于在解析到标识时,发出提示信息。 Specifically, as shown in FIG. 12, the BLE slave device includes: a second receiving module 112, a second parsing module 113, and a prompting module 114. The second receiving module 112 is configured to receive the request data packet. The second parsing module 113 is configured to parse the request packet when receiving the request packet. Wherein, the request data packet contains an identifier for finding a target BLE slave device. The prompting module 114 is configured to issue a prompt message when parsing the identifier.
另外,BLE从设备还包括反馈模块115。反馈模块115用于在解析到标识时,向终端设备发送反馈数据包。其中,反馈数据包中包含确认字段。确认字段用于指示目标BLE从设备解析到标识。其中,确认字段位于反馈数据包中的ScanRspData字段。In addition, the BLE slave device further includes a feedback module 115. The feedback module 115 is configured to send a feedback data packet to the terminal device when parsing the identifier. Among them, the feedback data packet contains an acknowledgement field. The confirmation field is used to indicate that the target BLE is resolved from the device to the identity. The confirmation field is located in the ScanRspData field in the feedback packet.
由于第四实施方式与本实施方式相互对应,因此本实施方式可与第四实施方式互相配合实施。第四实施方式中提到的相关技术细节在本实施方式中依然有效,在第四实施方式中所能达到的技术效果在本实施方式中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第四实施方式中。Since the fourth embodiment and the present embodiment correspond to each other, the present embodiment can be implemented in cooperation with the fourth embodiment. The related technical details mentioned in the fourth embodiment are still effective in the present embodiment, and the technical effects that can be achieved in the fourth embodiment are also implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related art details mentioned in the present embodiment can also be applied to the fourth embodiment.
通过上述内容,不难发现,本实施方式可以保证终端设备发送的请求数据包被目标BLE从设备接收到。避免因目标BLE从设备接收不到请求数据包,而找不到目标BLE从设备的情况发生。Through the above, it is not difficult to find that the present embodiment can ensure that the request packet sent by the terminal device is received by the target BLE from the device. Avoid the situation where the target BLE cannot receive the request packet from the device, but the target BLE slave device cannot be found.
本发明第十实施方式涉及一种基于BLE的寻物系统,如图13所示,包括终端设备131和BLE从设备132。终端设备131包括:扫描模块1311和发送模块1312。扫描模块1311用于扫描低功耗蓝牙BLE从设备。发送模块1312用于在扫描到目标BLE从设备之后,向目标BLE从设备发送请求数据包。其中,请求数据包中含有用于寻找目标BLE从设备的标识。BLE从设备包括132:第二接收模块1322、第二解析模块1323以及提示模块1324。第二接收模块1322用于接收请求数据包。第二解析模块1323用于在接收到请求数据包时,对请求数据包进行解析。其中,请求数据包中含有用于寻找目标BLE从设备的标识。提示模块1324用于在解析到标识时,发出提示信息。A tenth embodiment of the present invention relates to a BLE-based object-finding system, as shown in FIG. 13, including a terminal device 131 and a BLE slave device 132. The terminal device 131 includes a scanning module 1311 and a transmitting module 1312. The scanning module 1311 is configured to scan a low power Bluetooth BLE slave device. The sending module 1312 is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device. Wherein, the request data packet contains an identifier for finding a target BLE slave device. The BLE slave device includes 132: a second receiving module 1322, a second parsing module 1323, and a prompting module 1324. The second receiving module 1322 is configured to receive the request data packet. The second parsing module 1323 is configured to parse the request packet when the request packet is received. Wherein, the request data packet contains an identifier for finding a target BLE slave device. The prompting module 1324 is configured to issue a prompt message when parsing the identifier.
由于第五实施方式与本实施方式相互对应,因此本实施方式可与第五实施方式互相配合实施。第五实施方式中提到的相关技术细节在本实施方式 中依然有效,在第五实施方式中所能达到的技术效果在本实施方式中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第五实施方式中。Since the fifth embodiment and the present embodiment correspond to each other, the present embodiment can be implemented in cooperation with the fifth embodiment. Related technical details mentioned in the fifth embodiment are in the present embodiment The technical effects that can be achieved in the fifth embodiment are also implemented in the present embodiment. To reduce the repetition, details are not described herein again. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the fifth embodiment.
通过上述内容,不难发现,本实施方式使得当用户听到提示信息后,就可以快速的找到目标BLE从设备132。从而,可以直接通过配备有BLE技术的终端设备131查找目标BLE从设备132,而不需要预先进行蓝牙配对,极大缩短了寻找目标BLE设备132的时间。并且,无需在室内部署iBeacon或蓝牙AP,就可以通过终端设备找到目标BLE设备132,而不需要复杂的数据处理架构、降低硬件成本。Through the above, it is not difficult to find that the present embodiment enables the target BLE slave device 132 to be quickly found when the user hears the prompt information. Thereby, the target BLE slave device 132 can be directly searched through the terminal device 131 equipped with the BLE technology without performing Bluetooth pairing in advance, which greatly shortens the time for finding the target BLE device 132. Moreover, the target BLE device 132 can be found through the terminal device without deploying the iBeacon or the Bluetooth AP indoors, without requiring a complicated data processing architecture and reducing hardware costs.
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program instructing related hardware, and the program is stored in a storage medium, and includes a plurality of instructions for making a device (which may be a single chip microcomputer). The chip, etc. or processor executes all or part of the steps of the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。 A person skilled in the art can understand that the above embodiments are specific embodiments for implementing the present invention, and various changes can be made in the form and details without departing from the spirit and scope of the present invention. range.

Claims (26)

  1. 一种基于BLE的寻物方法,其特征在于,应用于终端设备;A BLE-based method for searching objects, which is characterized in that it is applied to a terminal device;
    所述基于BLE的寻物方法包括:The BLE-based method of searching includes:
    扫描低功耗蓝牙BLE从设备;Scanning a low-power Bluetooth BLE slave device;
    在扫描到目标BLE从设备之后,向所述目标BLE从设备发送请求数据包;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识。After scanning to the target BLE slave device, the request data packet is sent to the target BLE slave device; wherein the request data packet contains an identifier for finding the target BLE slave device.
  2. 根据权利要求1所述的基于BLE的寻物方法,其特征在于,在扫描到目标BLE从设备之后,所述的基于BLE的寻物方法还包括:The BLE-based object-finding method according to claim 1, wherein after the scanning to the target BLE slave device, the BLE-based object-finding method further comprises:
    依次在终端设备位于至少两个位置处,获取所述终端设备当前所处的位置Si,以及所述终端设备与所述目标BLE从设备之间的距离Ri;The terminal device is located at at least two locations, and the location Si where the terminal device is currently located, and the distance Ri between the terminal device and the target BLE slave device are acquired;
    根据获取到的所述Si、Ri,计算出所述目标BLE从设备的位置。Calculating the location of the target BLE slave device according to the acquired Si, Ri.
  3. 根据权利要求2所述的基于BLE的寻物方法,其特征在于,所述终端设备的初始位置为坐标原点,所述终端设备的其它位置为相对于所述初始位置的相对位置;The BLE-based object-finding method according to claim 2, wherein an initial position of the terminal device is a coordinate origin, and other positions of the terminal device are relative positions with respect to the initial position;
    所述目标BLE从设备的位置为相对于所述初始位置的相对位置。The position of the target BLE slave device is a relative position relative to the initial position.
  4. 根据权利要求3所述的基于BLE的寻物方法,其特征在于,在扫描到目标BLE从设备之后,所述基于BLE的寻物方法还包括:The BLE-based object-finding method according to claim 3, wherein after the scanning to the target BLE slave device, the BLE-based object-finding method further comprises:
    接收所述目标BLE从设备的信号;Receiving a signal of the target BLE slave device;
    从接收的所述信号中解析得到信号强度RSSI值;Extracting a signal strength RSSI value from the received signal;
    根据解析的所述RSSI值,调整所述终端设备所处的位置。Adjusting the location of the terminal device according to the parsed RSSI value.
  5. 根据权利要求4所述的基于BLE的寻物方法,其特征在于,所述根据获取到的所述Si、Ri,计算出所述目标BLE从设备的位置,具体包括: 采用加权质心算法,根据Si的坐标和Ri的值计算终端设备各个位置的几何质心,所述目标BLE从设备位于所述几何质心所在的区域;The BLE-based object-finding method according to claim 4, wherein the calculating the location of the target BLE slave device according to the obtained Si, Ri, specifically includes: Using a weighted centroid algorithm, calculating a geometric centroid of each position of the terminal device according to the coordinates of Si and the value of Ri, the target BLE slave device is located in the region where the geometric centroid is located;
    或者,所述根据获取到的所述Si、Ri,计算出所述目标BLE从设备的位置,具体包括:在水平方向上,以Si为圆心,且以Ri为半径列圆的方程公式,根据所述Si的坐标和Ri的值,计算每个圆的交点,所述目标BLE从设备位于每个圆均共有的交点所在的区域。Alternatively, the calculating the position of the target BLE slave device according to the obtained Si, Ri includes: an equation formula in which the center of Si is in the horizontal direction and the radius is a circle with Ri as a radius, according to The coordinates of Si and the value of Ri are calculated, and the intersection of each circle is calculated, and the target BLE slave device is located in an area where the intersections shared by each circle are located.
  6. 根据权利要求1所述的基于BLE的寻物方法,其特征在于,所述请求数据包为蓝牙广播信道的数据包;The BLE-based object-finding method according to claim 1, wherein the request data packet is a data packet of a Bluetooth broadcast channel;
    所述标识位于所述蓝牙广播信道的数据包的协议数据单元类型PDUType字段。The identifier is located in a protocol data unit type PDUType field of a data packet of the Bluetooth broadcast channel.
  7. 根据权利要求1所述的基于BLE的寻物方法,其特征在于,所述向目标BLE从设备发送请求数据包之后,所述基于BLE的寻物方法还包括:The BLE-based object-finding method according to claim 1, wherein after the requesting the data packet to the target BLE slave device, the BLE-based object-finding method further comprises:
    判断在预设时间内是否接收到反馈数据包;其中,所述反馈数据包中包含确认字段,所述确认字段用于指示所述目标BLE从设备解析到所述标识;Determining whether a feedback data packet is received in a preset time; wherein the feedback data packet includes an acknowledgement field, where the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier;
    在预设时间内未接收到反馈数据包时,再次向所述目标BLE从设备发送请求数据包。When the feedback data packet is not received within the preset time, the request data packet is sent to the target BLE slave device again.
  8. 根据权利要求1所述的基于BLE的寻物方法,其特征在于,所述扫描低功耗蓝牙BLE从设备之前,所述基于BLE的寻物方法还包括:The BLE-based object-finding method according to claim 1, wherein the BLE-based object-finding method further comprises: before the scanning the low-power Bluetooth BLE slave device:
    打开蓝牙BLE开关;Turn on the Bluetooth BLE switch;
    所述扫描到目标BLE从设备,具体包括:The scanning to the target BLE slave device specifically includes:
    从所述扫描得到的列表中,根据所述目标BLE从设备的名字和/或物理地址寻找目标BLE从设备。From the list obtained by the scanning, the target BLE slave device is searched for from the name and/or physical address of the device according to the target BLE.
  9. 一种基于BLE的寻物方法,其特征在于,应用于BLE从设备; A BLE-based method for searching objects, which is characterized in that it is applied to a BLE slave device;
    所述基于BLE的寻物方法包括:The BLE-based method of searching includes:
    在接收到请求数据包时,对所述请求数据包进行解析;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识;Parsing the request data packet when receiving the request data packet; wherein the request data packet includes an identifier for finding the target BLE slave device;
    在解析到所述标识时,发出提示信息。A prompt message is issued when parsing the identifier.
  10. 根据权利要求9所述的基于BLE的寻物方法,其特征在于,所述提示信息包括声音和/或光。The BLE-based object-finding method according to claim 9, wherein the prompt information comprises sound and/or light.
  11. 根据权利要求9所述的基于BLE的寻物方法,其特征在于,所述请求数据包为蓝牙广播信道的数据包;The BLE-based object-finding method according to claim 9, wherein the request data packet is a data packet of a Bluetooth broadcast channel;
    所述标识位于所述蓝牙广播信道的数据包的协议数据单元类型PDUType字段。The identifier is located in a protocol data unit type PDUType field of a data packet of the Bluetooth broadcast channel.
  12. 根据权利要求10或11所述的基于BLE的寻物方法,其特征在于,在解析到所述标识时,所述基于BLE的寻物方法还包括:The BLE-based object-finding method according to claim 10 or 11, wherein the BLE-based object-finding method further comprises:
    向终端设备发送反馈数据包;其中,所述反馈数据包中包含确认字段,所述确认字段用于指示所述目标BLE从设备解析到所述标识。Sending a feedback data packet to the terminal device; wherein the feedback data packet includes an acknowledgement field, where the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier.
  13. 一种基于BLE的寻物方法,其特征在于,应用于终端设备和BLE从设备;A BLE-based method for searching objects, which is characterized in that it is applied to a terminal device and a BLE slave device;
    所述基于BLE的寻物方法包括:The BLE-based method of searching includes:
    所述终端设备扫描低功耗蓝牙BLE从设备;The terminal device scans a low power Bluetooth BLE slave device;
    所述终端设备在扫描到目标BLE从设备之后,向所述目标BLE从设备发送请求数据包;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识;After scanning the target BLE slave device, the terminal device sends a request data packet to the target BLE slave device; wherein the request data packet includes an identifier for finding the target BLE slave device;
    所述目标BLE从设备在接收到请求数据包时,对所述请求数据包进行解析;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识; The target BLE slave device parses the request data packet when receiving the request data packet; wherein the request data packet includes an identifier for finding the target BLE slave device;
    所述目标BLE从设备在解析到所述标识时,发出提示信息。The target BLE slave device issues a prompt message when parsing the identifier.
  14. 一种终端设备,其特征在于,包括扫描模块和发送模块;A terminal device, comprising: a scanning module and a sending module;
    所述扫描模块,用于扫描低功耗蓝牙BLE从设备;The scanning module is configured to scan a low power Bluetooth BLE slave device;
    所述发送模块,用于在扫描到目标BLE从设备之后,向所述目标BLE从设备发送请求数据包;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识。The sending module is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device, where the request data packet includes an identifier for finding the target BLE slave device.
  15. 根据权利要求14所述的终端设备,其特征在于,所述终端设备还包括获取模块和计算模块;The terminal device according to claim 14, wherein the terminal device further comprises an obtaining module and a calculating module;
    所述获取模块,用于在扫描模块扫描到目标BLE从设备之后,依次在终端设备位于至少两个位置处,获取所述终端设备当前所处的位置Si,以及所述终端设备与所述目标BLE从设备之间的距离Ri;The acquiring module is configured to: after the scanning module scans to the target BLE slave device, sequentially locate the terminal device at at least two locations, acquire a location Si where the terminal device is currently located, and the terminal device and the target The distance between the BLE slave devices Ri;
    所述计算模块,用于根据获取到的所述Si、Ri,计算出所述目标BLE从设备的位置。The calculating module is configured to calculate a location of the target BLE slave device according to the acquired Si, Ri.
  16. 根据权利要求15所述的终端设备,其特征在于,所述终端设备的初始位置为坐标原点,所述终端设备的其它位置为相对于所述初始位置的相对位置;The terminal device according to claim 15, wherein an initial position of the terminal device is a coordinate origin, and other positions of the terminal device are relative positions with respect to the initial position;
    所述目标BLE从设备的位置为相对于所述初始位置的相对位置。The position of the target BLE slave device is a relative position relative to the initial position.
  17. 根据权利要求16所述的终端设备,其特征在于,所述终端设备还包括第一接收模块、第一解析模块和调整模块;The terminal device according to claim 16, wherein the terminal device further comprises a first receiving module, a first analyzing module and an adjusting module;
    所述第一接收模块,用于接收所述目标BLE从设备的信号;The first receiving module is configured to receive a signal of the target BLE slave device;
    所述第一解析模块,用于从接收的所述信号中解析得到信号强度RSSI值;The first parsing module is configured to parse the signal strength RSSI value from the received signal;
    所述调整模块,用于根据解析的所述RSSI值,调整所述终端设备所处的位置。 The adjusting module is configured to adjust a location where the terminal device is located according to the parsed RSSI value.
  18. 根据权利要求17所述的终端设备,其特征在于,The terminal device according to claim 17, wherein
    所述计算模块,还用于采用加权质心算法,根据Si的坐标和Ri的值计算终端设备各个位置的几何质心,所述目标BLE从设备位于所述几何质心所在的区域;The calculation module is further configured to calculate, by using a weighted centroid algorithm, a geometric centroid of each position of the terminal device according to the coordinates of the Si and the value of the Ri, the target BLE slave device is located in the region where the geometric centroid is located;
    或者,所述计算模块,还用于在水平方向上,以Si为圆心,且以Ri为半径列圆的方程公式,根据所述Si的坐标和Ri的值,计算每个圆的交点,所述目标BLE从设备位于每个圆均共有的交点所在的区域。Alternatively, the calculation module is further configured to calculate an intersection point of each circle according to the coordinate of the Si and the value of Ri in a horizontal direction with a center of Si as a center and a radius of a radius of Ri as a circle formula. The target BLE slave device is located in the area where the intersections shared by each circle are located.
  19. 根据权利要求14所述的终端设备,其特征在于,所述请求数据包为蓝牙广播信道的数据包;The terminal device according to claim 14, wherein the request data packet is a data packet of a Bluetooth broadcast channel;
    所述标识位于所述蓝牙广播信道的数据包的协议数据单元类型PDUType字段。The identifier is located in a protocol data unit type PDUType field of a data packet of the Bluetooth broadcast channel.
  20. 根据权利要求14所述的终端设备,其特征在于,所述终端设备还包括判断模块;The terminal device according to claim 14, wherein the terminal device further comprises a determining module;
    所述判断模块,用于判断在预设时间内是否接收到反馈数据包;其中,所述反馈数据包中包含确认字段,所述确认字段用于指示所述目标BLE从设备解析到所述标识;The determining module is configured to determine whether a feedback data packet is received in a preset time, where the feedback data packet includes an acknowledgement field, where the acknowledgement field is used to indicate that the target BLE is resolved from the device to the identifier ;
    所述发送模块,还用于在预设时间内未接收到反馈数据包时,再次向所述目标BLE从设备发送请求数据包。The sending module is further configured to send the request data packet to the target BLE slave device again when the feedback data packet is not received within the preset time.
  21. 根据权利要求14所述的终端设备,其特征在于,所述终端设备还包括开启模块和查找模块;The terminal device according to claim 14, wherein the terminal device further comprises an opening module and a searching module;
    所述开启模块,用于在扫描低功耗蓝牙BLE从设备之前,打开蓝牙BLE开关;The opening module is configured to turn on a Bluetooth BLE switch before scanning the low power Bluetooth BLE slave device;
    所述查找模块,用于从所述扫描得到的列表中,根据所述目标BLE从设备的名字或物理地址寻找目标BLE从设备。 The searching module is configured to search for a target BLE slave device from the name or physical address of the device according to the target BLE from the list obtained by the scanning.
  22. 一种BLE从设备,其特征在于,包括:第二接收模块、第二解析模块以及提示模块;A BLE slave device, comprising: a second receiving module, a second parsing module, and a prompting module;
    所述第二接收模块,用于接收请求数据包;The second receiving module is configured to receive a request data packet;
    所述第二解析模块,用于在接收到请求数据包时,对所述请求数据包进行解析;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识;The second parsing module is configured to parse the request data packet when receiving the request data packet, where the request data packet includes an identifier for finding the target BLE slave device;
    所述提示模块,用于在解析到所述标识时,发出提示信息。The prompting module is configured to issue prompt information when parsing the identifier.
  23. 根据权利要求22所述的基于BLE的寻物方法,其特征在于,所述提示信息包括声音和/或光。The BLE-based object-finding method according to claim 22, wherein the prompt information comprises sound and/or light.
  24. 根据权利要求22所述的BLE从设备,其特征在于,所述请求数据包为蓝牙广播信道的数据包;The BLE slave device according to claim 22, wherein the request data packet is a data packet of a Bluetooth broadcast channel;
    所述标识位于所述蓝牙广播信道的数据包的协议数据单元类型PDUType字段。The identifier is located in a protocol data unit type PDUType field of a data packet of the Bluetooth broadcast channel.
  25. 根据权利要求22至24中任意一项所述的BLE从设备,其特征在于,所述BLE从设备还包括反馈模块;The BLE slave device according to any one of claims 22 to 24, wherein the BLE slave device further comprises a feedback module;
    所述反馈模块,用于在解析到所述标识时,向终端设备发送反馈数据包;其中,所述反馈数据包中包含确认字段,所述确认字段用于指示所述目标BLE从设备解析到所述标识。The feedback module is configured to send a feedback data packet to the terminal device when parsing the identifier, where the feedback data packet includes an acknowledgement field, where the acknowledgement field is used to indicate that the target BLE is parsed from the device The identification.
  26. 一种基于BLE的寻物系统,其特征在于,包括终端设备和BLE从设备;A BLE-based object-finding system, comprising: a terminal device and a BLE slave device;
    所述终端设备包括:扫描模块和发送模块;The terminal device includes: a scanning module and a sending module;
    所述扫描模块,用于扫描低功耗蓝牙BLE从设备;The scanning module is configured to scan a low power Bluetooth BLE slave device;
    所述发送模块,用于在扫描到目标BLE从设备之后,向所述目标BLE从设备发送请求数据包;其中,所述请求数据包中含有用于寻找所述目标 BLE从设备的标识;The sending module is configured to send a request data packet to the target BLE slave device after scanning to the target BLE slave device, where the request data packet includes a target for searching for the target The identity of the BLE slave device;
    所述BLE从设备包括:第二接收模块、第二解析模块以及提示模块;The BLE slave device includes: a second receiving module, a second parsing module, and a prompting module;
    所述第二接收模块,用于接收请求数据包;The second receiving module is configured to receive a request data packet;
    所述第二解析模块,用于在接收到请求数据包时,对所述请求数据包进行解析;其中,所述请求数据包中含有用于寻找所述目标BLE从设备的标识;The second parsing module is configured to parse the request data packet when receiving the request data packet, where the request data packet includes an identifier for finding the target BLE slave device;
    所述提示模块,用于在解析到所述标识时,发出提示信息。 The prompting module is configured to issue prompt information when parsing the identifier.
PCT/CN2017/073193 2017-02-09 2017-02-09 Terminal device, ble slave device, and searching method and system based on ble WO2018145290A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/073193 WO2018145290A1 (en) 2017-02-09 2017-02-09 Terminal device, ble slave device, and searching method and system based on ble
CN201780000078.5A CN107079278A (en) 2017-02-09 2017-02-09 Terminal device, BLE slave units, the method and system of looking for something based on BLE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/073193 WO2018145290A1 (en) 2017-02-09 2017-02-09 Terminal device, ble slave device, and searching method and system based on ble

Publications (1)

Publication Number Publication Date
WO2018145290A1 true WO2018145290A1 (en) 2018-08-16

Family

ID=59613781

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073193 WO2018145290A1 (en) 2017-02-09 2017-02-09 Terminal device, ble slave device, and searching method and system based on ble

Country Status (2)

Country Link
CN (1) CN107079278A (en)
WO (1) WO2018145290A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885564A (en) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012251B (en) * 2017-12-07 2020-12-01 北京摩拜科技有限公司 Method, system and mobile terminal for positioning target Bluetooth device
CN109327827A (en) * 2018-10-26 2019-02-12 惠州Tcl移动通信有限公司 It looks for something method, slave Bluetooth equipment, intelligent terminal and storage device
CN109996371A (en) * 2019-04-24 2019-07-09 深圳尚一互联技术有限公司 The method of gesture control light for Intelligent bracelet
CN112437423A (en) * 2020-11-24 2021-03-02 陕西疆晨信息科技有限公司 Bluetooth lock searching method, lock and storage medium
CN113873427A (en) * 2021-08-20 2021-12-31 上海探寻信息技术有限公司 Positioning method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077169A (en) * 2014-07-21 2014-10-01 北京深思数盾科技有限公司 BLE (Bluetooth Low Energy) device, information safety device and automatic start-up method of application program
CN204609405U (en) * 2015-04-07 2015-09-02 北京同于道科技有限公司 A kind of berth lock based on BLE-SoC
CN105303790A (en) * 2015-08-07 2016-02-03 北京自在科技有限责任公司 Tap-to-pair type Bluetooth loss-prevention device and tap-to-pair method
US20160078738A1 (en) * 2014-09-11 2016-03-17 Umm Al-Qura University A system and method for tracking people

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497666B (en) * 2011-12-13 2014-07-02 中国测绘科学研究院 Positioning method
CN103018715B (en) * 2012-11-22 2015-06-03 无锡中星微电子有限公司 Positioning method and device based on Bluetooth
CN103957594A (en) * 2014-04-30 2014-07-30 深圳市金立通信设备有限公司 Method and device for positioning terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077169A (en) * 2014-07-21 2014-10-01 北京深思数盾科技有限公司 BLE (Bluetooth Low Energy) device, information safety device and automatic start-up method of application program
US20160078738A1 (en) * 2014-09-11 2016-03-17 Umm Al-Qura University A system and method for tracking people
CN204609405U (en) * 2015-04-07 2015-09-02 北京同于道科技有限公司 A kind of berth lock based on BLE-SoC
CN105303790A (en) * 2015-08-07 2016-02-03 北京自在科技有限责任公司 Tap-to-pair type Bluetooth loss-prevention device and tap-to-pair method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885564A (en) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN111885564B (en) * 2020-07-03 2024-03-22 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium

Also Published As

Publication number Publication date
CN107079278A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
WO2018145290A1 (en) Terminal device, ble slave device, and searching method and system based on ble
WO2018205112A1 (en) Positioning method and apparatus based on bluetooth (ble)
US11598839B2 (en) Methods for obtaining a location using neighbor awareness networking, NAN, as well as a corresponding system and NAN device
US8743727B2 (en) Driving hybrid location services from WLAN stations using access points
US7983677B2 (en) Location-based wireless messaging for wireless devices
WO2018145289A1 (en) Positioning method and apparatus based on bluetooth ble
US20190090242A1 (en) Method and apparatus for providing dynamic frequency selection spectrum access in peer-to-peer wireless networks
KR102198573B1 (en) Method and apparatus for performance handover in a wireless communication system
EP1864440A2 (en) Wireless local area network scan based on location
US20140293809A1 (en) Method and apparatus of controlling mac-layer protocol for device-to-device communications without id
JP2011029920A (en) Portable terminal, system and program
WO2021243723A1 (en) Position determination method and apparatus, and communication device and storage medium
WO2021050210A1 (en) Passive sensor tracking with existing infrastructure
EP4118849A1 (en) Passive asset tracking using observations of wi-fi access points
KR101719997B1 (en) Method and apparatus for performing a channel availability query for a plurality of locations
JP6343490B2 (en) Wireless communication system, wireless access point, portable terminal, and position information acquisition method
US20170188301A1 (en) System, method and apparatus for backward compatible power reduction FTM responders
CN115023987A (en) Information transmission method, device, communication equipment and storage medium
KR101351662B1 (en) Apparatus and method for searching access point in wireless communication system
WO2021223111A1 (en) Information transmission method and apparatus, communication device and storage medium
WO2024022421A1 (en) Communication sensing method, and apparatus
WO2023274056A1 (en) Positioning method and apparatus
WO2023029014A1 (en) Sensing signal negotiation method and apparatus, and user equipment, base station, core network entity and storage medium
US20240155543A1 (en) Method, apparatus and device for location acquisition, medium, chip, product, and program
KR20150075166A (en) Method for providing location based service and apparatus for performing the method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896216

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896216

Country of ref document: EP

Kind code of ref document: A1