Bluetooth scanning method, devices, communication system and storage medium

By setting the strength threshold and filtering the receiving list in the Bluetooth scanning device, and combining it with a timer to manage scanning events, the problem of high power consumption of Bluetooth scanning devices is solved, and the success rate of data packet reception and connection stability are improved.

WO2025213343A1PCT designated stage Publication Date: 2025-10-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/086676
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

The Bluetooth scanning device continuously monitors broadcast data packets during the scanning process, resulting in high power consumption. In particular, when the RSSI is low, the connection success rate is low and power consumption increases.

Method used

By setting a preset strength threshold and filtering the receiving list, only packets with RSSI greater than or equal to the preset strength threshold are scanned, and a timer is used to manage scanning events to reduce unnecessary scanning frequency and out-of-range packet reception.

Benefits of technology

It effectively reduces the power consumption of Bluetooth scanning devices, improves the success rate of receiving data packets within the appropriate range, and reduces unnecessary scanning and connection attempts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086676_16102025_PF_FP_ABST
    Figure CN2024086676_16102025_PF_FP_ABST
Patent Text Reader

Abstract

A Bluetooth scanning method, devices, a communication system and a storage medium. The method comprises: a first device is in a scanning state and scans a first data packet, wherein the received signal strength indicator (RSSI) of the first data packet is greater than or equal to a preset strength threshold. Broadcast data packets can be effectively filtered, effectively reducing the scanning power consumption of the first device.
Need to check novelty before this filing date? Find Prior Art

Description

Bluetooth scanning method, device, communication system and storage medium TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and particularly relates to a Bluetooth scanning method, device, communication system and storage medium. BACKGROUND

[0002] In Bluetooth communication, a Bluetooth device in a broadcast state periodically sends broadcast data packets, and a Bluetooth device in a scanning state scans different broadcast channels. After a Bluetooth scanning device completes device discovery, it initiates connection, and then both sides enter a connection state and further transceive data. Before establishing connection, the Bluetooth scanning device continuously listens to Bluetooth broadcast data packets.

[0003] SUMMARY

[0004] Embodiments of the present disclosure provide a Bluetooth scanning method, device, communication system and storage medium.

[0005] According to a first aspect of embodiments of the present disclosure, a Bluetooth scanning method is provided, and the method comprises:

[0006] A first device is in a scanning state, and a first data packet is scanned, wherein a received signal strength indication (RSSI) of the first data packet is greater than or equal to a preset intensity threshold.

[0007] According to a second aspect of embodiments of the present disclosure, a first device is provided, and the first device comprises:

[0008] A transceiving module is configured to scan a first data packet when the first device is in a scanning state, wherein a received signal strength indication (RSSI) of the first data packet is greater than or equal to a preset intensity threshold.

[0009] According to a third aspect of embodiments of the present disclosure, a first device is provided, and the first device comprises:

[0010] One or more processors;

[0011] A memory coupled to the one or more processors, the memory comprising executable instructions that, when executed by the one or more processors, cause the first device to perform the Bluetooth scanning method of the first aspect.

[0012] According to a fourth aspect of embodiments of the present disclosure, a communication system is provided, and the communication system comprises a first device, wherein the first device is configured to implement the Bluetooth scanning method of the first aspect.

[0013] According to a fifth aspect of the embodiments of the present disclosure, a storage medium is provided, which stores instructions. When the instructions are run on a communication device, the communication device is caused to perform the Bluetooth scanning method according to the first aspect.

[0014] In the above embodiment, the first device can only scan the data packet with RSSI greater than or equal to the preset intensity threshold, and the broadcast data packet can be filtered based on RSSI, thereby effectively reducing the power consumption of the first device scanning. BRIEF DESCRIPTION OF DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following describes the drawings required for the embodiments, and the following drawings are only some embodiments of the present disclosure, and do not specifically limit the protection scope of the present disclosure.

[0016] FIG. 1 is one exemplary schematic diagram of an architecture of a communication system according to an embodiment of the present disclosure.

[0017] FIG. 2A is one exemplary interactive schematic diagram of a Bluetooth scanning method according to an embodiment of the present disclosure.

[0018] FIG. 2B is one exemplary flow schematic diagram of a Bluetooth scanning method according to an embodiment of the present disclosure.

[0019] FIG. 2C is one exemplary flow schematic diagram of a Bluetooth scanning method according to an embodiment of the present disclosure.

[0020] FIG. 2D is one exemplary flow schematic diagram of a Bluetooth scanning method according to an embodiment of the present disclosure.

[0021] FIG. 3A is one exemplary flow schematic diagram of a Bluetooth scanning method according to an embodiment of the present disclosure.

[0022] FIG. 3B is one exemplary schematic diagram of a timer state machine according to an embodiment of the present disclosure.

[0023] FIG. 4 is one exemplary structural schematic diagram of a first device according to an embodiment of the present disclosure.

[0024] FIG. 5A is one exemplary structural schematic diagram of a communication device according to an embodiment of the present disclosure.

[0025] FIG. 5B is one exemplary structural schematic diagram of a communication device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The embodiments of the present disclosure provide a Bluetooth scanning method, device, communication system and storage medium.

[0027] In a first aspect, the embodiments of the present disclosure provide a Bluetooth scanning method, which comprises:

[0028] The first device is in a scanning state, and scans a first data packet, wherein a received signal strength indication (RSSI) of the first data packet is greater than or equal to a preset intensity threshold.

[0029] In the above embodiment, the first device can only scan the data packet with the RSSI greater than or equal to the preset intensity threshold, and can filter the broadcast data packet based on the RSSI, thereby effectively reducing the power consumption of the first device in scanning.

[0030] In combination with some embodiments of the first aspect, in some embodiments, the device address of the second device is an address in a filter reception list.

[0031] In the above embodiment, the first device can only scan the data packet sent by the device in the filter reception list, and can effectively filter the broadcast data packet based on the filter reception list, thereby avoiding receiving the data packet sent by an unapproved device.

[0032] In combination with some embodiments of the first aspect, in some embodiments, the first data packet is an extended advertising (Extended Advertising) data packet or an auxiliary advertising (Auxiliary Advertising) data packet.

[0033] In combination with some embodiments of the first aspect, in some embodiments, the first data packet comprises at least one of the following: an advertising extension indication (Advertising Extension Indication, ADV_EXT_IND) data packet; an auxiliary advertising indication (Auxilary Advertising Indication, AUX_ADV_IND) data packet; an auxiliary synchronization indication (Auxilary Synchronization Indication, AUX_SYNC_IND) data packet; and an auxiliary chain indication (Auxilary Chain Indication, AUX_CHAIN_IND) data packet.

[0034] In the above embodiment, the first device can effectively filter one or more types of extended advertising data packets or auxiliary advertising data packets, thereby effectively reducing the scanning power consumption of the first device in extended advertising or auxiliary advertising.

[0035] In some embodiments of the first aspect, the method comprises: determining, by the first device, that the scanning state is entered, setting a state of a timer to a first state; wherein the timer counts a value increasing over time in the first state, and the timer is used to manage a scanning event.

[0036] In the above embodiments, the first device can effectively manage the scanning event by the timer, so that the first device can trigger a corresponding event based on the timer, and further adjust the device based on the triggered event.

[0037] In some embodiments of the first aspect, the method comprises:

[0038] determining, by the first device, that the first data packet sent by the second device is scanned, setting the state of the timer to the first state and triggering a first event, the first event being used to indicate that the second device enters the scanning range;

[0039] wherein the timer resets the counted value and does not increase over time in the second state.

[0040] In the above embodiments, the first device can start the timer when the first data packet is scanned, and further manage the corresponding scanning event.

[0041] In some embodiments of the first aspect, the method comprises:

[0042] determining, by the first device, that the first data packet sent by the second device is not received after the timer enters the first state and before the counted value reaches a pre-designed time threshold, setting the state of the timer to a second state and triggering a second event, the second event being used to indicate that the first device does not scan the second device; and / or,

[0043] determining, by the first device, that the first data packet is received after the timer enters the first state and before the counted value reaches the pre-designed time threshold, resetting the counted value.

[0044] In the above embodiments, the first device can trigger a corresponding scanning event according to the state and the counted value of the timer when the first data packet is scanned, so as to accurately know that there is a broadcasting device entering the scanning range of the first device or there is no corresponding broadcasting device in the scanning range.

[0045] In some embodiments of the first aspect, in some embodiments, the first device determines to enter the scanning state, and sets a state of a timer to a first state, including: the first device, after adding the address of the device to be scanned to a filter receive list after determining to enter the scanning state, sets the state of the timer to the first state; and wherein the device address of the second device is an address in the filter receive list.

[0046] In the above embodiments, the first device can start the timer after adding the address of the device to be scanned to the filter receive list, which can ensure the reliability of the device address-based filtering.

[0047] In some embodiments of the first aspect, in some embodiments, the device address of the second device is any one of a public address or a random address.

[0048] In the above embodiments, the first device can filter the data packet based on the public address or the random address, which effectively improves the flexibility of the data packet filtering.

[0049] In a second aspect, the embodiments of the present disclosure provide a first device, including:

[0050] a transceiver module, configured to scan a first data packet when the first device is in a scanning state, wherein a received signal strength indication (RSSI) of the first data packet is greater than or equal to a preset intensity threshold.

[0051] In a third aspect, the embodiments of the present disclosure provide a first device, including:

[0052] one or more processors;

[0053] a memory coupled to the one or more processors, the memory including executable instructions that, when executed by the one or more processors, cause the first device to perform the Bluetooth scanning method of the first aspect.

[0054] In a fourth aspect, the embodiments of the present disclosure provide a communication system, including: a first device; and wherein the first device is configured to perform the method described in the optional implementation of the first aspect.

[0055] In a fifth aspect, the embodiments of the present disclosure provide a storage medium, which stores instructions, and when the instructions are run on a communication device, the communication device performs the method described in the optional implementation of the first aspect.

[0056] In a sixth aspect, the embodiments of the present disclosure provide a program product, which, when executed by a communication device, causes the communication device to perform the method described in the optional implementation manners of the first aspect and the second aspect.

[0057] In a seventh aspect, the embodiments of the present disclosure provide a computer program, which, when running on a computer, causes the computer to perform the method described in the optional implementation manners of the first aspect.

[0058] In an eighth aspect, the embodiments of the present disclosure provide a chip or chip system. The chip or chip system includes processing circuitry configured to perform the method described in the optional implementation manners of the first aspect.

[0059] It can be understood that the first device, the communication system, the storage medium, the program product, the computer program, the chip or the chip system are all used to perform the method proposed in the embodiments of the present disclosure. Therefore, the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method, which will not be described here.

[0060] The embodiments of the present disclosure propose a Bluetooth scanning method, a first device, a second device, a communication system and a storage medium. In some embodiments, the Bluetooth scanning method, the Bluetooth communication method, the data transmission method, the communication method and other terms can be replaced with each other, and the communication system, the Bluetooth communication system and other terms can be replaced with each other.

[0061] The embodiments of the present disclosure are not exhaustive, but only illustrate some embodiments, and are not specific limitations on the protection scope of the present disclosure. In the case of no contradiction, each step in an embodiment can be implemented as an independent embodiment, and the steps can be combined arbitrarily, for example, the scheme after removing some steps in an embodiment can also be implemented as an independent embodiment, and the order of the steps in an embodiment can be exchanged arbitrarily, in addition, the optional implementation manners in an embodiment can be combined arbitrarily; in addition, the embodiments can be combined arbitrarily, for example, the steps of different embodiments or part of the steps of different embodiments can be combined arbitrarily, and an embodiment can be combined with the optional implementation manners of other embodiments.

[0062] In each embodiment of the present disclosure, the terms and / or descriptions between the embodiments are consistent if there is no special description and logical conflict, and can be referred to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0063] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments, and not as a limitation on the present disclosure.

[0064] In the embodiments of the present disclosure, an element expressed in singular form, such as "a", "an", "the", "said", "the aforementioned", "the foregoing", "this", and the like, unless otherwise specified, can represent "one and only one", or can represent "one or more", "at least one", and the like. For example, in the case of using an article such as "a", "an", "the" in English, the noun after the article can be understood as a singular expression, or can be understood as a plural expression.

[0065] In the embodiments of the present disclosure, "plurality" refers to two or more.

[0066] In some embodiments, the terms "at least one of", "one or more", "a plurality of", "multiple", and the like can be replaced with each other.

[0067] In some embodiments, the description modes such as "at least one of A, B", "A and / or B", "A in one case and B in another case", "in response to a case A, in response to a case B", and the like can include the following technical solutions according to the case: in some embodiments, A is executed regardless of B; in some embodiments, B is executed regardless of A; in some embodiments, A and B are selectively executed from A and B; in some embodiments, A and B are executed (A and B are both executed). When there are more branches such as A, B, C, and the like, it is similar to the above.

[0068] In some embodiments, the description modes such as "A or B" and the like can include the following technical solutions according to the case: in some embodiments, A is executed regardless of B; in some embodiments, B is executed regardless of A; in some embodiments, A and B are selectively executed from A and B. When there are more branches such as A, B, C, and the like, it is similar to the above.

[0069] The prefix words "first", "second", etc. in the embodiments of the present disclosure are merely used to distinguish different description objects, and do not constitute limitation on the position, sequence, priority, quantity or content of the description objects. The description of the description objects should refer to the description in the context of the claims or embodiments, and should not constitute redundant limitation because of the use of the prefix words. For example, the description objects are "fields", and the ordinal words before "fields" in "first field" and "second field" do not limit the position or sequence between "fields". "First" and "second" do not limit whether the "fields" modified thereby are in the same message, nor do they limit the sequence of "first field" and "second field". For another example, the description objects are "levels", and the ordinal words before "levels" in "first level" and "second level" do not limit the priority between "levels". For another example, the quantity of the description objects is not limited by the ordinal words, and can be one or more. For example, "first device", wherein the quantity of "devices" can be one or more. In addition, the objects modified by different prefix words can be the same or different. For example, the description objects are "devices", and "first device" and "second device" can be the same device or different devices, and their types can be the same or different. For another example, the description objects are "information", and "first information" and "second information" can be the same information or different information, and their contents can be the same or different.

[0070] In some embodiments, "including A", "containing A", "for indicating A", "carrying A" can be interpreted as directly carrying A, or indirectly indicating A.

[0071] In some embodiments, the terms "time / frequency", "time / frequency domain" and the like refer to the time domain and / or the frequency domain.

[0072] In some embodiments, the terms "in response to", "in response to determining", "in the case of", "when", "when", "if", "if" and the like can be replaced with each other.

[0073] In some embodiments, the terms "greater than", "greater than or equal to", "not less than", "more than", "more than or equal to", "not less than", "higher than", "higher than or equal to", "not lower than", "above" and the like can be replaced with each other, and the terms "less than", "less than or equal to", "not greater than", "less than", "less than or equal to", "not more than", "lower than", "lower than or equal to", "not higher than", "below" and the like can be replaced with each other.

[0074] In some embodiments, an apparatus or the like can be interpreted as an entity, and can also be interpreted as virtual, and the name thereof is not limited to the name described in the embodiments. The terms "apparatus", "equipment", "device", "circuit", "network element", "node", "function", "unit", "section", "system", "network", "chip", "chip system", "entity", "subject" and the like can be replaced with each other.

[0075] In some embodiments, a "network" can be interpreted as an apparatus (e.g., a first device, a second device, an access network device, a core network device, and the like) included in the network.

[0076] In some embodiments, the terms "access network device (AN device)", "radio access network device (RAN device)", "base station (BS)", "radio base station", "fixed station", "node", "access point", "transmission point (TP)", "reception point (RP)", "transmission / reception point (TRP)", "panel", "antenna panel", "antenna array", "cell", "macro cell", "small cell", "femto cell", "pico cell", "sector", "cell group", "serving cell", "carrier", "component carrier", "bandwidth part (BWP)" and the like can be replaced with each other.

[0077] In some embodiments, the terms "first device", "second device", "terminal", "terminal device", "user equipment (UE)", "user terminal", "mobile station (MS)", "mobile terminal (MT)", subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device, wireless device, wireless communication device, remote device, mobile subscriber station, access terminal, mobile terminal, wireless terminal, remote terminal, handset, user agent, mobile client, client, and the like can be replaced with each other.

[0078] In some embodiments, the access network device, the core network device, or the network device can be replaced with a terminal. For example, the embodiments of the present disclosure can also be applied to a structure in which communication between the access network device, the core network device, or the network device and the terminal is replaced with communication between a plurality of terminals (e.g., device-to-device (D2D), vehicle-to-everything (V2X), or the like). In this case, the terminal can also be configured to have all or part of the functions of the access network device. In addition, the terms "uplink", "downlink", and the like can also be replaced with terms corresponding to the inter-terminal communication (e.g., "side"). For example, the uplink channel, the downlink channel, and the like can be replaced with the side channel, and the uplink, the downlink, and the like can be replaced with the side link.

[0079] In some embodiments, the terminal can be replaced with the access network device, the core network device, or the network device. In this case, the access network device, the core network device, or the network device can also be configured to have all or part of the functions of the terminal.

[0080] In some embodiments, the data, information, etc. can be obtained in compliance with the laws and regulations of the country where the location is situated.

[0081] In some embodiments, the data, information, etc. can be obtained after obtaining the consent of the user.

[0082] In addition, each element, each row, or each column in the table of the embodiments of the present disclosure can be implemented as an independent embodiment, and any combination of any element, any row, or any column can also be implemented as an independent embodiment.

[0083] FIG. 1 is a schematic diagram of an architecture of a communication system according to an embodiment of the present disclosure. As shown in FIG. 1, the communication system 100 includes a first device 101. In some embodiments, the first device 101 is a device capable of implementing Bluetooth communication. In some embodiments, the first device 101 can be provided as a central device (Central) in Bluetooth communication, and the first device 101 can scan or listen to a data packet sent by a peripheral device (Peripheral) in Bluetooth communication, such as the second device and the device to be scanned in the following embodiments.

[0084] In some embodiments, the central device can also be referred to as a master device, and the peripheral device can also be referred to as a slave device.

[0085] In some embodiments, before the first device 101 establishes a connection with the peripheral device, the peripheral device in a broadcast state can periodically send a broadcast data packet, and at this time, the peripheral device can also be referred to as an advertiser. Alternatively, the first device 101 in a scanning state can scan on different broadcast channels, and at this time, the first device 101 can also be referred to as a scanner.

[0086] In some embodiments, in addition to supporting legacy broadcast (the channel number used can be 37, 38, or 39), the first device 101 can also support extended broadcast (the channel number used can be 0-39). Alternatively, the extended broadcast data packet can support "segmentation", that is, the content of the data packet is included in multiple auxiliary broadcasts for transmission on auxiliary broadcast channels, and the length of the extended broadcast data packet can be up to 1650 bytes.

[0087] In some embodiments, the scanning device (such as the first device 101) and the broadcasting device (such as the second device) can perform one-way data transmission through Bluetooth extended broadcast without establishing a connection. The data transmission can support encryption. Alternatively, the data transmission can support periodic broadcast.

[0088] In some embodiments, the first device 101 can be any one of a terminal, an access network device, and a core network device. For example, the first device 101 can be a computer or a mobile phone with an interactive interface. The first device 101 can be connected to a medical sensor, a light bulb, a socket, a switch, and the like through Bluetooth. The second device can be any one of the devices.

[0089] In some embodiments, the first device 101 can discover a Bluetooth broadcasting device (e.g., the second device) by scanning the Bluetooth broadcast, and then initiate the establishment of a connection. For example, the above-mentioned use scenarios of the Bluetooth broadcast can include that a mobile phone discovers and connects to a headset, a car discovers and connects to a mobile phone, a tablet computer discovers and connects to a mobile phone, a mobile phone discovers and connects to a door lock, and the like. In order to discover a specific device in time, the scanning device needs to be in a scanning state all the time, and has a high power consumption level.

[0090] It can be understood that the communication system described in the embodiments of the present disclosure is used to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and does not constitute a limitation on the technical solutions proposed in the embodiments of the present disclosure. It can be known by those skilled in the art that, with the evolution of system architecture and the appearance of new business scenarios, the technical solutions proposed in the embodiments of the present disclosure are also applicable to similar technical problems.

[0091] The following embodiments of the present disclosure can be applied to the communication system 100 shown in FIG. 1 or part of the subject, but are not limited thereto. The subjects shown in FIG. 1 are examples. The communication system can include all or part of the subjects in FIG. 1, or other subjects other than those in FIG. 1. The number and form of each subject is arbitrary. Each subject can be real or virtual. The connection relationship between each subject is an example. Each subject can not be connected or can be connected. The connection can be in any way, can be direct or indirect, can be wired or wireless.

[0092] Embodiments of the present disclosure can be applied to Bluetooth (registered trademark), Starlink system, Long Term Evolution (LTE), LTE-Advanced (LTE-A), LTE-Beyond (LTE-B), SUPER 3G, IMT-Advanced, 4th generation mobile communication system (4G), 5th generation mobile communication system (5G), 5G new radio (NR), Future Radio Access (FRA), New-Radio Access Technology (RAT), New Radio (NR), New radio access (NX), Future generation radio access (FX), Global System for Mobile communications (GSM (registered trademark)), CDMA2000, Ultra Mobile Broadband (UMB), IEEE 802.11 (Wi-Fi (registered trademark)), IEEE 802.16 (WiMAX (registered trademark)), IEEE 802.20, Ultra-WideBand (UWB), Public Land Mobile Network (PLMN) network, Device-to-Device (D2D) system, Machine to Machine (M2M) system, Internet of Things (IoT) system, Vehicle-to-Everything (V2X), system using other communication methods, next-generation system expanded based thereon, and the like. Further, a plurality of systems can be applied in combination (for example, a combination of Bluetooth, Starlink, LTE, LTE-A, and 5G, and the like).

[0093] In some embodiments, the Bluetooth device can implement the extended broadcast to achieve an extended broadcast with a data packet length of up to 1650 bytes. Bluetooth receiving devices within the signal coverage range can obtain information in the broadcast data packet by scanning the Bluetooth extended broadcast. The technology can be applied in public building areas such as shopping malls, stadiums, transportation hubs, parks, and museums. Meanwhile, the receiving device can also achieve rough proximity location according to the received signal strength of the data packet.

[0094] In some embodiments, the extended broadcast provides a possibility for one-way data transmission between the broadcast device and the scanning device without establishing a connection. However, for a long broadcast data packet, the scanning device must always listen and be in a scanning state, which means high energy consumption. However, in the current Bluetooth extended broadcast, if the scanning device wants to understand the content of the extended broadcast, it must completely scan / receive the entire broadcast data packet content, which increases the energy consumption of the scanning device.

[0095] In some embodiments, the first device 101 needs to continuously listen to the Bluetooth broadcast data packet before establishing a connection with other devices, which means high power consumption.

[0096] In some embodiments, Bluetooth broadcast scanning only supports address filtering. If the scanning device, such as the first device 101, wants to discover a Bluetooth broadcast device with a specific address, it needs to be in a scanning state all the time. Sometimes, the RSSI of the Bluetooth broadcast data packet is already at a low level, for example, the device is far away or the channel quality is poor. At this time, the scanning device initiates a Bluetooth connection, and the success rate is not high. The stability of the Bluetooth connection is not good, and doing so further increases the power consumption of the scanning device.

[0097] In some embodiments, the first device 101 can maintain or set a device address list (such as a filter reception list) and set an RSSI threshold (such as a preset intensity threshold), so that the first device 101 only scans the Bluetooth broadcast data packet sent by the Bluetooth device in the device address list and only scans the Bluetooth broadcast data packet with an RSSI higher than the threshold. This can effectively reduce the power consumption of the first device 101. Optionally, the first device 101 can also be provided with a corresponding event notification, such as the Bluetooth device in the device address list entering the scanning range or leaving the scanning range, etc.

[0098] FIG. 2A is a flow diagram of a Bluetooth scanning method according to an embodiment of the present disclosure. As shown in FIG. 2A, the present disclosure relates to a Bluetooth scanning method, which can be performed by a first device. The method includes:

[0099] In step S2101, the first device is in a scanning state, and the first data packet is scanned.

[0100] In some embodiments, the scanning of the first device on the data packet can mean that the first device demodulates the corresponding signal and obtains the information carried in the data packet. For example, the process of the scanning of the first device on the first data packet can include that the first device processes the signal transmitted by the second device to obtain the first data packet.

[0101] In some embodiments, the first device receives the first data packet. Optionally, the first device receives the first data packet transmitted by the second device in the scanning state, that is, the first data packet can be transmitted by the second device, and the second device can be any Bluetooth device other than the first device, for example, any Bluetooth broadcast device.

[0102] In some embodiments, the first device can maintain one or more filter receive lists, which can be used to filter the data packet. Optionally, the device address of the device transmitting the first data packet is the address in the filter receive list.

[0103] In some embodiments, the first device determines to enter the scanning state and starts to scan the first data packet.

[0104] In some embodiments, the first device determines to enter the scanning state and adds the address of the device to be scanned to the filter receive list. The device to be scanned can be determined by the first device itself or be indicated by an upper layer, and the embodiments of the present disclosure do not limit the same.

[0105] In some embodiments, the device to be scanned can also be referred to as a device to be monitored, a device to be listened to, etc., and the embodiments of the present disclosure do not limit the name thereof.

[0106] In some embodiments, step S2102 is performed when the first device enters the scanning state, that is, when the first device is initially in the scanning state. Optionally, the first device determines to enter the scanning state and sets a timer to a first state. The optional implementation of the first device setting the timer to the first state can refer to the optional implementation of step S2102, which is not described herein.

[0107] In some embodiments, the first device determines to enter the scanning state and adds the address of the device to be scanned to the filter accept list, and then scans the first data packet. Alternatively, the first device determines to enter the scanning state and adds the address of the device to be scanned to the filter accept list, and then scans the first data packet while performing step S2102. Alternatively, the device address of the second device involved in step S2103 or step S2104 can be an address in the filter accept list.

[0108] In some embodiments, the device address of the device sending the first data packet is an address in the filter accept list, i.e., the device sending the first data packet can be the device to be scanned. In this case, the first device can only scan data packets sent by devices corresponding to each address in the filter accept list.

[0109] In some embodiments, the device address of the device sending the first data packet can be any one of a public address or a random address. Alternatively, the addresses in the filter accept list include at least one of a public address or a random address.

[0110] In some embodiments, the device address of the second device can be any address, such as an address outside the filter accept list, or the first device does not maintain the filter accept list as described above. In this case, the first device can scan signals or data packets sent by any device entering its scanning range.

[0111] In some embodiments, the RSSI of the first data packet is greater than or equal to a preset intensity threshold. In this case, the first device can only scan data packets with RSSI greater than or equal to the preset intensity threshold, and / or the first device can only scan data packets sent by devices in a scanning range, and the size of the scanning range can be positively correlated with the preset intensity threshold. For example, if the first device determines that the RSSI of a data packet sent by a device is less than the preset intensity threshold, it can be determined that the device is not in the scanning range and the data packet sent by the device is not scanned.

[0112] It can be understood that the RSSI of the data packet can specifically refer to the RSSI of the signal carrying the data packet.

[0113] In some embodiments, the first device can detect one or more signals (carrying data packets) sent by other devices and determine the RSSI of each signal. Alternatively, the first device determines whether to scan the data packet carried by each signal according to the RSSI of the signal.

[0114] In some embodiments, the RSSI of the first data packet is greater than a preset intensity threshold, and the device address of the device sending the first data packet is an address in the filtered reception list. In this way, the first device can only scan data packets with RSSI greater than or equal to the preset intensity threshold sent by devices in the filtered reception list, i.e., the first device can only scan data packets sent by devices to be scanned in the scanning range.

[0115] In some embodiments, the first data packet is an extended broadcast data packet or an auxiliary broadcast data packet.

[0116] In some embodiments, the first data packet includes at least one of the following: an ADV_EXT_IND data packet; an AUX_ADV_IND data packet; an AUX_SYNC_IND data packet; and an AUX_CHAIN_IND data packet. In some embodiments, the first device can scan the ADV_EXT_IND data packet, and if the ADV_EXT_IND data packet is not scanned, the first device can not scan other auxiliary broadcast data packets corresponding to the ADV_EXT_IND data packet.

[0117] In some embodiments, for the extended broadcast data packet, the first device can scan all the extended broadcast data packets, and if the RSSI of an extended broadcast data packet is less than or equal to a preset intensity threshold, the first device can not scan other auxiliary broadcast data packets corresponding to the extended broadcast data packet. For example, if the first device determines that the RSSI of an ADV_EXT_IND data packet broadcast by a broadcast device is less than a preset intensity threshold, the first device can not scan auxiliary broadcast data packets sent by the broadcast device subsequently. That is, the first data packet can not include auxiliary broadcast data packets sent by the broadcast device.

[0118] In step S2102, the first device sets the state of the timer to the first state.

[0119] In some embodiments, the first device determines to enter the scanning state, and sets the state of the timer to the first state.

[0120] In some embodiments, the timer is used to manage scanning events. For example, the first device can trigger corresponding scanning events according to the timing value of the timer and whether the first data packet is scanned.

[0121] In some embodiments, the timing value of the timer increases with time in the first state. The timing granularity of the timer can be 0.1 seconds (s), 0.5 s, or 1 s, etc., which is not limited in the embodiments of the present disclosure. For example, the first device can add 1 or 0.1 to the timing value of the timer every 0.1 s.

[0122] In some embodiments, the initial state of the timer can be the second state, and the optional implementation of the second state can be referred to the related description in step S2104, which is not repeated here.

[0123] It can be understood that when the timer initially enters the first state, the counting value can be 0.

[0124] In some embodiments, the first state can also be referred to as a "start state", a "counting state", etc., and the name thereof is not limited in the embodiments of the present disclosure.

[0125] In step S2103, the first device determines that the first data packet is scanned before the counting value reaches the preset time threshold, resets the counting value of the timer, and triggers the first event.

[0126] In some embodiments, resetting the counting value of the timer can mean setting the counting value of the timer to 0 and restarting the counting.

[0127] In some embodiments, the preset time threshold can be determined by the first device itself or can be agreed by a protocol, and the embodiments of the present disclosure are not limited thereto. For example, the preset time threshold can be 60, and if the first device can add 0.1 to the counting value of the timer every 0.1 s, the first device can reset the timer if the first data packet is not scanned within 60 s after the timer starts.

[0128] In some embodiments, the first device determines that the first data packet sent by the second device is scanned before the counting value reaches the preset time threshold, resets the counting value of the timer, and triggers the first event, which is used to indicate that the second device enters the scanning range. That is, there is a device sending a data packet with RSSI greater than or equal to a preset intensity threshold in the scanning range of the first device.

[0129] It can be understood that the second device entering the scanning range can mean that the RSSI of the data packet sent by the device is greater than or equal to the preset intensity threshold.

[0130] Optionally, the device address of the second device is the address in the filtering receiving list, that is, the second device can be a device in the filtering receiving list, and the first event can be used to indicate that the device to be scanned enters the scanning range.

[0131] In some embodiments, the first event can be used to instruct the first device to execute corresponding code. For example, the application layer or user interface of the first device can send corresponding prompt information to make the user know that there is a device to be scanned entering the scanning range in response to triggering the first event.

[0132] For example, the first device can set a timer to count in the first state when it enters the scanning state and adds the device address of the device to be scanned to the filter reception list, and if it scans a first data packet sent by the device to be scanned with RSSI greater than or equal to a preset intensity threshold within 60 seconds, the timer value can be reset and a first event can be triggered, and the application layer of the first device executes corresponding code according to the first event.

[0133] In step S2104, the first device determines that the first data packet is not scanned before the counting value reaches the preset timing threshold, sets the timer to the second state, and triggers a second event.

[0134] In some embodiments, the timer resets the counting value in the second state and does not increase with time. In this case, the counting value of the timer in the second state can be kept as 0 until the timer switches to the first state, and then the counting value starts to increase with time.

[0135] In some embodiments, the first device determines that the first data packet sent by the second device is not scanned before the counting value reaches the preset timing threshold, sets the timer to the second state, and triggers a second event, which is used to indicate that the second device is not within the scanning range. That is, there is no Bluetooth broadcasting device sending a data packet with RSSI greater than or equal to the preset intensity threshold in the scanning range of the first device.

[0136] It can be understood that the second device not being within the scanning range can mean that the RSSI of the data packet sent by the device is less than the preset intensity threshold.

[0137] Optionally, the second device can be a device in the filter reception list, and the second event can be used to indicate that the device to be scanned is not within the scanning range, that is, there is no Bluetooth broadcasting device in the filter reception list and sending a data packet with RSSI greater than or equal to the preset intensity threshold in the scanning range of the first device.

[0138] In some embodiments, the second event can be used to instruct the first device to execute corresponding code. For example, the application layer or user interface of the first device can send corresponding prompt information to make the user know that the device to be scanned has left the scanning range or that the device to be scanned has not been scanned in response to triggering the first event.

[0139] In some embodiments, the second event can be used to indicate that the second device leaves the scanning range, if the first event is triggered one or more times before the second event is triggered. Alternatively, the second event can be used to indicate that there is no second device entering the scanning range, if the first event is not triggered before the second event is triggered. In some embodiments, the second event can also be used to indicate that the to-be-scanned device leaves the scanning range or there is no to-be-scanned device entering the scanning range, if the device address of the second device is in the filter receiving list.

[0140] In some embodiments, the second state can also be referred to as an "unstarted state", a "timer stop state", etc., and the name of the second state is not limited in the embodiments of the present disclosure.

[0141] It is worth noting that when the timer is in the second state, the timer is only stopped, and the first device still maintains the scanning state and continues to scan the first data packet.

[0142] In step S2105, the first device determines that the first data packet is scanned when the timer is in the second state, sets the timer to the first state, and triggers the first event.

[0143] In some embodiments, the first device determines that the first data packet sent by the second device is scanned when the timer is in the second state, sets the timer to the first state, and triggers the first event, which is used to indicate that the second device enters the scanning range.

[0144] In some embodiments, step S2102 can be replaced by step S2105. In some embodiments, after the first device enters the scanning state and / or adds the address of the to-be-scanned device to the filter receiving list, the timer can not be set to the first state, but can be kept in the second state until the first device scans the first data packet, and then the timer is set to the first state and starts timing.

[0145] For example, after the first device enters the scanning state and adds the address of the to-be-scanned device to the filter list, the first device continues to scan the first data packet. If the first data packet is scanned, the timer can be set to the first state and the first event can be triggered to indicate that the to-be-scanned device enters the scanning range. When the timer value reaches the preset threshold, the timer can be set to the second state and the second event can be triggered to indicate that the to-be-scanned device leaves the scanning range.

[0146] In some embodiments, the terms "data packet", "data frame", "data message", "message", "frame", "packet", "protocol data unit (PDU)", etc. can be replaced with each other.

[0147] In some embodiments, the names of information and the like are not limited to the names described in the embodiments, and the terms "packet", "information", "message", "signal", "signaling", "report", "configuration", "indication", "instruction", "command", "channel", "parameter", "field", "symbol", "bit", "data", and the like can be replaced with each other.

[0148] In some embodiments, the terms "radio", "wireless", "radio access network (RAN)", "access network (AN)", "RAN-based", and the like can be replaced with each other.

[0149] In some embodiments, the terms "time", "time point", "time point", "time position", and the like can be replaced with each other, and the terms "time length", "time period", "time window", "window", "time", and the like can be replaced with each other.

[0150] In some embodiments, "scan", "acquire", "obtain", "get", "receive", "transmit", "bidirectional transmission", "send and / or receive", and the like can be replaced with each other, and can be interpreted as receiving from other subjects, acquiring from protocols, obtaining from higher layers, processing to obtain by itself, autonomously implementing, and the like.

[0151] In some embodiments, the terms "send", "transmit", "report", "issue", "transmit", "bidirectional transmission", "send and / or receive", and the like can be replaced with each other.

[0152] In some embodiments, the terms "certain", "preset", "pre-set", "set", "indicated", "a certain", "arbitrary", "first", and the like can be replaced with each other, and "certain A", "preset A", "pre-set A", "set A", "indicated A", "a certain A", "arbitrary A", "first A" can be interpreted as A specified in advance in a protocol and the like, can be interpreted as A obtained by setting, configuring, or indicating, and the like, and can be interpreted as certain A, a certain A, arbitrary A, or first A, but are not limited thereto.

[0153] In some embodiments, the determining or judging can be performed by a value represented by 1 bit (0 or 1), a true or false value (Boolean value) represented by true or false, or a comparison of numerical values (for example, a comparison with a predetermined value), but is not limited thereto.

[0154] In some embodiments, "not expecting to receive" can be interpreted as not receiving on the time domain resource and / or the frequency domain resource, or as not performing subsequent processing on the data, etc. after receiving the data, etc.; "not expecting to send" can be interpreted as not sending, or as sending but not expecting the receiver to respond to the content of the sending.

[0155] The Bluetooth scanning method related to the embodiments of the present disclosure can include at least one of steps S2101-S2105. For example, step S2101 can be implemented as an independent embodiment, step S2102 can be implemented as an independent embodiment, steps S2101+S2102 can be implemented as an independent embodiment, steps S2101+step S2105 can be implemented as an independent embodiment, steps S2101+step S2102+step S2103 can be implemented as an independent embodiment, steps S2101+step S2102+step S2104 can be implemented as an independent embodiment, but are not limited thereto.

[0156] In some embodiments, step S2101 and step S2102 can be executed simultaneously, and step S2101 and step S2105 can be executed simultaneously.

[0157] In some embodiments, steps S2102-S2105 are optional, and one or more of these steps can be omitted or replaced in different embodiments.

[0158] In some embodiments, steps S2101 and steps S2103-S2105 are optional, and one or more of these steps can be omitted or replaced in different embodiments.

[0159] In some embodiments, reference can be made to other optional implementations described before or after the description corresponding to FIG. 2A.

[0160] FIG. 2B is a flow diagram of a Bluetooth scanning method according to an embodiment of the present disclosure. As shown in FIG. 2B, the embodiments of the present disclosure relate to a Bluetooth scanning method, which can be performed by a first device, and the above method includes:

[0161] Step S2201: In a scanning state, scanning a first data packet.

[0162] The optional implementation of step S2201 can refer to the optional implementation of step S2101 in FIG. 2A and other associated parts in the embodiments involved in FIG. 2A, which will not be repeated here.

[0163] In step S2202, it is determined that the first data packet is scanned in the second state, the timer is set to the first state, and the first event is triggered.

[0164] The optional implementation of step S2202 can refer to the optional implementation of step S2105 in FIG. 2A and other associated parts in the embodiments involved in FIG. 2A, which will not be repeated here.

[0165] In step S2203, it is determined that the first data packet is scanned before the timing value reaches the preset timing threshold, the timing value of the timer is reset, and the first event is triggered.

[0166] The optional implementation of step S2203 can refer to the optional implementation of step S2103 in FIG. 2A and other associated parts in the embodiments involved in FIG. 2A, which will not be repeated here.

[0167] In step S2204, it is determined that the first data packet is not scanned before the timing value reaches the preset timing threshold, the timer is set to the second state, and the second event is triggered.

[0168] The optional implementation of step S2204 can refer to the optional implementation of step S2104 in FIG. 2A and other associated parts in the embodiments involved in FIG. 2A, which will not be repeated here.

[0169] The Bluetooth scanning method involved in the embodiments of the present disclosure can include at least one of steps S2201 to S2204. For example, step S2201 can be implemented as an independent embodiment, step S2202 can be implemented as an independent embodiment, steps S2201 and S2202 can be implemented as an independent embodiment, steps S2201, S2202 and S2203 can be implemented as an independent embodiment, steps S2201, S2202 and S2204 can be implemented as an independent embodiment, but are not limited thereto.

[0170] In some embodiments, steps S2202 to S2205 are optional, and one or more of these steps can be omitted or replaced in different embodiments.

[0171] In some embodiments, steps S2201 and steps S2203 to S2205 are optional, and one or more of these steps can be omitted or replaced in different embodiments.

[0172] FIG. 2C is a flowchart of a Bluetooth scanning method according to an embodiment of the present disclosure. As shown in FIG. 2C, the embodiments of the present disclosure relate to a Bluetooth scanning method, which can be performed by a first device, and the method comprises the following steps.

[0173] In step S2301, a first data packet is scanned in a scanning state.

[0174] The optional implementation of step S2301 can refer to step S2101 of FIG. 2A, the optional implementation of step S2201 of FIG. 2B, and other associated parts in the embodiments related to FIG. 2A and FIG. 2B, which will not be repeated here.

[0175] In step S2302, a state of a timer is set as a first state.

[0176] The optional implementation of step S2302 can refer to the optional implementation of step S2102 of FIG. 2A, and other associated parts in the embodiments related to FIG. 2A and FIG. 2B, which will not be repeated here.

[0177] The Bluetooth scanning method according to the embodiments of the present disclosure can comprise at least one of steps S2201-S2202. For example, step S2201 can be implemented as an independent embodiment, and step S2202 can be implemented as an independent embodiment.

[0178] In some embodiments, step S2201 is optional, and one or more of the steps can be omitted or replaced in different embodiments.

[0179] In some embodiments, step S2301 and step S2302 can be combined with step S2103 of FIG. 2A, step S2301 and step S2302 can be combined with step S2104 of FIG. 2A, and step S2301 and step S2302 can be combined with step S2105 of FIG. 2A, but are not limited thereto.

[0180] FIG. 2D is a flowchart of a Bluetooth scanning method according to an embodiment of the present disclosure. As shown in FIG. 2D, the embodiments of the present disclosure relate to a Bluetooth scanning method, which can be performed by a first device, and the method comprises the following steps.

[0181] In step S2401, a first data packet is scanned in a scanning state.

[0182] The optional implementation of step S2401 can refer to step S2101 of FIG. 2A, step S2201 of FIG. 2B, the optional implementation of step S2301 of FIG. 2C, and other associated parts in the embodiments related to FIG. 2A, FIG. 2B, and FIG. 2C, which will not be repeated here.

[0183] In some embodiments, a received signal strength indication (RSSI) of the first data packet is greater than or equal to a preset strength threshold.

[0184] In some embodiments, a device address of the device sending the first data packet is an address in the filter receive list.

[0185] In some embodiments, the first data packet is an extended broadcast data packet or an auxiliary broadcast data packet.

[0186] In some embodiments, the first data packet comprises at least one of: an extended broadcast indication (ADV_EXT_IND) data packet; an auxiliary broadcast indication (AUX_ADV_IND) data packet; an auxiliary synchronization indication (AUX_SYNC_IND) data packet; and an auxiliary chain indication (AUX_CHAIN_IND) data packet.

[0187] In some embodiments, the method comprises: determining, by the first device, to enter a scanning state, setting a state of the timer to a first state; and

[0188] In some embodiments, the timer counts a value increasing over time in the first state, and the timer is used to manage a scanning event.

[0189] In some embodiments, the method comprises:

[0190] determining, by the first device, that the first data packet sent by the second device is scanned when the timer is in the second state, setting the state of the timer to the first state and triggering a first event, the first event being used to indicate that the second device enters a scanning range;

[0191] In some embodiments, the timer counts a value resetting and not increasing over time in the second state.

[0192] In some embodiments, the method comprises:

[0193] determining, by the first device, that the first data packet sent by the second device is not received after the timer enters the first state and before a preset timing threshold is reached, setting the state of the timer to the second state and triggering a second event, the second event being used to indicate that the second device is not in the scanning range; and / or,

[0194] determining, by the first device, that the first data packet is received after the timer enters the first state and before the preset timing threshold is reached, resetting the value of the timer.

[0195] In some embodiments, determining, by the first device, to enter a scanning state, setting a state of the timer to a first state, comprises:

[0196] determining, by the first device, to enter a scanning state, and adding an address of a device to be scanned to a filter receive list, setting a state of the timer to a first state.

[0197] wherein the device address of the second device is an address in the filter accept list.

[0198] In some embodiments, the device address of the second device is any one of a public address or a random address.

[0199] FIG. 3A is a flow diagram illustrating a Bluetooth scanning method according to an embodiment of the present disclosure. As shown in FIG. 3A, the present disclosure relates to a Bluetooth scanning method, which comprises at least one of the following steps:

[0200] Step S3101, when the Bluetooth device (e.g. the first device in the above embodiments) enters the scanning state, after adding the device address to be monitored to the list (e.g. the filter accept list in the above embodiments), the Bluetooth device enters the timer start state.

[0201] wherein the value of the timer can be set by the user, for example 60s, and before the timer 60s expires, if the Bluetooth broadcast packet of the specific device address higher than the RSSI threshold is successfully scanned, the timer is reset, and the Bluetooth device continues to remain in the timer start state.

[0202] Step S3102, if the Bluetooth scanning device in the timer start state fails to successfully scan the Bluetooth broadcast packet of the specific device address higher than the RSSI threshold before the timer expires, the Bluetooth scanning device enters the timer not start state, and a second event is triggered.

[0203] The second event can be "the device to be monitored is not in the scanning range".

[0204] Step S3103, if the Bluetooth scanning device in the timer not start state successfully scans the Bluetooth broadcast packet of the specific device address higher than the RSSI threshold, the Bluetooth scanning device enters the timer start state, and a first event is triggered.

[0205] The first event can be "the device to be monitored has entered the scanning range".

[0206] Step S3104, if the Bluetooth scanning device in the timer not start state fails to successfully scan the Bluetooth broadcast packet of the specific device address higher than the RSSI threshold, the Bluetooth scanning device continues to remain in the timer not start state.

[0207] wherein the above Bluetooth address filtering can support public address (public) and random address (random).

[0208] It can be understood that the RSSI threshold in the embodiments of the present disclosure can be the preset intensity threshold in some of the above embodiments. The activated state can be the first state in some of the above embodiments. The unactivated state can be the second state in the above embodiments. The Bluetooth broadcast data packet higher than the RSSI threshold can be the first data packet in some of the above embodiments, or the Bluetooth broadcast packet of the specific device address higher than the RSSI threshold can be the first data packet in another of the above embodiments.

[0209] FIG. 3B is a schematic diagram of a timer state machine according to an embodiment of the present disclosure. As shown in FIG. 3B, the timer can enter the activated state (S1) after the Bluetooth scanning device can add the device address of the device to be monitored to the filter reception list; and the timer can be reset (S3) when the timer receives a data packet higher than the RSSI threshold before the timer timeout, and can also switch to the unactivated state (S4) when it does not receive a data packet higher than the RSSI threshold; further, when the timer is in the unactivated state, if a data packet higher than the RSSI threshold is detected, it can switch to the activated state (S2); in addition, when the timer is in the unactivated state, if a data packet higher than the RSSI threshold is not detected, it can remain in the unactivated state (S5). In some embodiments, the initial state of the timer can be the unactivated state, or can be no state, which is not limited in the embodiments of the present disclosure.

[0210] In the embodiments of the present disclosure, part or all of the steps, and optional implementation manners thereof, can be combined with part or all of the steps in other embodiments, or can be combined with optional implementation manners of other embodiments.

[0211] The embodiments of the present disclosure also propose a device for implementing any of the above methods, for example, a device is proposed, which includes units or modules for implementing each step performed by a terminal in any of the above methods. For another example, another device is proposed, which includes units or modules for implementing each step performed by a network device (such as an access network device, a core network function node, a core network device, a first device, a second device, a network device, etc.) in any of the above methods.

[0212] It should be understood that the division of each unit or module in the above apparatus is only a logical function division, and all or part of them can be integrated into a physical entity or physically separated in actual implementation. In addition, the units or modules in the apparatus can be implemented in the form of processor calling software: for example, the apparatus includes a processor, the processor is connected with a memory, the memory stores instructions, and the processor calls the instructions stored in the memory to realize the functions of any of the above methods or the units or modules of the above apparatus, wherein the processor is a general processor such as a central processing unit (CPU) or a microprocessor, and the memory is a memory in the apparatus or a memory outside the apparatus. Alternatively, the units or modules in the apparatus can be implemented in the form of hardware circuit, and the functions of part or all of the units or modules can be realized by the design of the hardware circuit. The above hardware circuit can be understood as one or more processors; for example, in one implementation, the above hardware circuit is an application-specific integrated circuit (ASIC), and the functions of part or all of the units or modules are realized by the design of the logical relationship between the elements in the circuit; for another example, in another implementation, the above hardware circuit is a programmable logic device (PLD), and a field programmable gate array (FPGA) is taken as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, so as to realize the functions of part or all of the units or modules. All units or modules of the above apparatus can be all implemented in the form of processor calling software, or all implemented in the form of hardware circuit, or part implemented in the form of processor calling software and the remaining part implemented in the form of hardware circuit.

[0213] In the embodiments of the present disclosure, the processor is a circuit with signal processing capability. In one implementation, the processor can be a circuit with instruction reading and running capability, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), a digital signal processor (DSP), or the like. In another implementation, the processor can implement certain functions through a logical relationship of hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable. For example, the processor is a hardware circuit implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In the reconfigurable hardware circuit, the processor loads a configuration document to implement the configuration of the hardware circuit. It can be understood that the processor loads instructions to implement the functions of the above part or all units or modules. In addition, the hardware circuit can also be designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), or the like.

[0214] FIG. 4 is a structural schematic diagram of a first device according to an embodiment of the present disclosure. As shown in FIG. 4, the first device 4100 can include at least one of a transceiver module 4101, a processing module 4102, and the like. In some embodiments, the transceiver module 4101 is configured to scan a first data packet when the first device is in a scanning state, where a received signal strength indication (RSSI) of the first data packet is greater than or equal to a preset intensity threshold. Optionally, the transceiver module 4101 is configured to perform at least one of the communication steps, such as transmitting and / or receiving, performed by the first device in any of the above methods, which will not be described herein again. Optionally, the processing module 4102 is configured to perform at least one of the other steps performed by the first device in any of the above methods, which will not be described herein again.

[0215] FIG. 5A is a structural schematic diagram of a communication device 5100 according to an embodiment of the present disclosure. The communication device 5100 can be a network device (e.g., a first device, a second device, an access network device, a core network device, etc.), a terminal (e.g., a first device, a second device, a user equipment, etc.), a chip, a chip system, or a processor supporting the network device to implement any of the above methods, or a chip, a chip system, or a processor supporting the terminal to implement any of the above methods. The communication device 5100 can be used to implement the methods described in the above method embodiments, which can be referred to the descriptions in the above method embodiments.

[0216] As shown in FIG. 5A, the communication device 5100 includes one or more processors 5101. The processor 5101 can be a general processor or a special-purpose processor, for example, a baseband processor or a central processing unit. The baseband processor can be used to process communication protocols and communication data, the central processing unit can be used to control a communication device (e.g., a base station, a baseband chip, a terminal device, a terminal device chip, a Bluetooth device, a Bluetooth chip, a DU or a CU, etc.), execute a program, and process data of the program. Optionally, the communication device 5100 is configured to perform any of the above methods. Optionally, the one or more processors 5101 are configured to invoke instructions to cause the communication device 5100 to perform any of the above methods.

[0217] In some embodiments, the communication device 5100 further includes one or more transceivers 5102. When the communication device 5100 includes the one or more transceivers 5102, the transceiver 5102 performs at least one of the communication steps (e.g., transmitting and / or receiving) in the above methods, and the processor 5101 performs at least one of the other steps. In optional embodiments, the transceiver can include a receiver and / or a transmitter, which can be separate or integrated together. Optionally, the terms of transceiver, transceiving unit, transceiver, transceiving circuit, interface circuit, interface, etc. can be replaced by each other, and the terms of transmitter, transmitting unit, transmitter, transmitting circuit, etc. can be replaced by each other, and the terms of receiver, receiving unit, receiver, receiving circuit, etc. can be replaced by each other.

[0218] In some embodiments, the communication device 5100 further includes one or more memories 5103 configured to store data. Optionally, all or part of the memory 5103 can also be outside the communication device 5100. In optional embodiments, the communication device 5100 can include one or more interface circuits 5104. Optionally, the interface circuit 5104 is connected with the memory 5103, and the interface circuit 5104 can be configured to receive data from the memory 5103 or other devices, and can be configured to send data to the memory 5103 or other devices. For example, the interface circuit 5104 can read data stored in the memory 5103 and send the data to the processor 5101.

[0219] The communication device 5100 in the above embodiments can be a network device or a terminal, but the scope of the communication device 5100 described in the present disclosure is not limited thereto, and the structure of the communication device 5100 can not be limited by FIG. 5A. The communication device can be a standalone device or can be part of a larger device. For example, the communication device can be: 1) a standalone integrated circuit (IC), or a chip, or a chip system or subsystem; (2) a set of one or more ICs, which can optionally also include storage components for storing data, programs; (3) an ASIC, such as a modem; (4) a module that can be embedded in other devices; (5) a receiver, a terminal device, a smart terminal device, a cellular phone, a wireless device, a handset, a mobile unit, a vehicle-mounted device, a network device, a cloud device, an artificial intelligence device, and the like; (6) other devices, and the like.

[0220] FIG. 5B is a structural schematic diagram of a chip 5200 according to an embodiment of the present disclosure. For the case where the communication device 5100 is a chip or a chip system, the structural schematic diagram of the chip 5200 shown in FIG. 5B can be referred to, but is not limited thereto.

[0221] The chip 5200 includes one or more processors 5201. The chip 5200 is configured to perform any of the above methods.

[0222] In some embodiments, the chip 5200 further includes one or more interface circuits 5202. Optionally, the terms interface circuit, interface, transceiver pin, and the like can be replaced with each other. In some embodiments, the chip 5200 further includes one or more memories 5203 for storing data. Optionally, all or part of the memory 5203 can be outside the chip 5200. Optionally, the interface circuit 5202 is connected to the memory 5203, and the interface circuit 5202 can be configured to receive data from the memory 5203 or other devices, and the interface circuit 5202 can be configured to send data to the memory 5203 or other devices. For example, the interface circuit 5202 can read data stored in the memory 5203 and send the data to the processor 5201.

[0223] In some embodiments, the interface circuit 5202 performs at least one of the communication steps such as sending and / or receiving in the above methods. The interface circuit 5202 performing the communication steps such as sending and / or receiving in the above methods means that the interface circuit 5202 performs data interaction between the processor 5201, the chip 5200, the memory 5203, or a transceiver device. In some embodiments, the processor 5201 performs at least one of the other steps.

[0224] The modules and / or devices described in various embodiments of the virtual device, the physical device, the chip, etc. can be combined or separated according to circumstances. Alternatively, part or all of the steps can also be performed by multiple modules and / or devices in cooperation, which is not limited here.

[0225] The disclosure further provides a storage medium having instructions stored thereon, which, when executed on the communication device 5100, causes the communication device 5100 to perform any of the above methods. Alternatively, the storage medium is an electronic storage medium. Alternatively, the storage medium is a computer readable storage medium, but is not limited to this, and it can also be a storage medium readable by other devices. Alternatively, the storage medium can be a non-transitory storage medium, but is not limited to this, and it can also be a transitory storage medium.

[0226] The disclosure further provides a program product, which, when executed by the communication device 5100, causes the communication device 5100 to perform any of the above methods. Alternatively, the program product is a computer program product.

[0227] The disclosure further provides a computer program, which, when executed on a computer, causes the computer to perform any of the above methods.

Claims

1. A Bluetooth scanning method, characterized in that: The method comprises: The first device is in a scanning state and scans a first data packet, wherein a received signal strength indicator RSSI of the first data packet is greater than or equal to a preset strength threshold.

2. The method according to claim 1, characterized in that The device address of the device that sends the first data packet is an address in the filtered receiving list.

3. The method according to claim 1 or 2, characterized in that The first data packet is an extended broadcast data packet or an auxiliary broadcast data packet.

4. The method according to claim 3, characterized in that The first data packet includes at least one of the following: Extended advertising indication ADV_EXT_IND data packet; Auxiliary broadcast indication AUX_ADV_IND data packet; Auxiliary synchronization indication AUX_SYNC_IND data packet; Auxiliary chain indication AUX_CHAIN_IND packet.

5. The method according to any one of claims 1 to 4, characterized in that The method comprises: The first device determines to enter the scanning state and sets the state of the timer to the first state; Wherein, the timing value of the timer increases with time in the first state, and the timer is used to manage scanning events.

6. The method according to claim 5, characterized in that The method comprises: The first device determines, when the timer is in the second state, that the first data packet sent by the second device has been scanned, sets the state of the timer to the first state and triggers a first event, where the first event is used to indicate that the second device has entered a scanning range; Wherein, the timing value of the timer is reset in the second state and does not increase with time.

7. The method according to any one of claims 5 to 6, characterized in that: The method comprises: The first device determines that after the timer enters the first state and before the timing value reaches a preset timing threshold, the first data packet sent by the second device is not received, sets the state of the timer to a second state and triggers a second event, where the second event is used to indicate that the second device is out of scanning range; and / or The first device determines that the first data packet is received after the timer enters the first state and before the timing value reaches a preset timing threshold, and resets the timing value.

8. The method according to claim 6 or 7, characterized in that The first device determines to enter the scanning state and sets the state of the timer to the first state, including: The first device determines to enter the scanning state and adds the address of the device to be scanned to the filtering reception list, and then sets the state of the timer to the first state; The device address of the second device is an address in the filtering receiving list.

9. The method according to any one of claims 6 to 8, characterized in that The device address of the second device is any one of a public address and a random address.

10. A first device, characterized in that: The first device includes: The transceiver module is used to scan a first data packet when the first device is in a scanning state, wherein a received signal strength indication RSSI of the first data packet is greater than or equal to a preset strength threshold.

11. A first device, characterized in that: include: one or more processors; A memory coupled to the one or more processors, the memory including executable instructions, when the executable instructions are executed by the When executed by the one or more processors, the first device is caused to execute the Bluetooth scanning method according to any one of claims 1 to 9.

12. A communication system, characterized in that: The method comprises a first device, wherein the first device is configured to implement the Bluetooth scanning method according to any one of claims 1 to 9.

13. A storage medium storing instructions, characterized in that: When the instruction is executed on a communication device, the communication device is enabled to execute the Bluetooth scanning method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Bluetooth-based method and system for automatically connecting wearable device with mobile terminal

    CN105450268A

  • Energy-saving indoor uplink positioning method and system

    CN110972262A

  • Multi-device Bluetooth pairing communication method and system

    CN114339693A

  • Networking method and system applied to short-distance wireless communication

    CN117528469A

  • Wireless device, program, and communication system

    WO2019026627A1