WO2018165862A1 - 一种扫描方法及设备 - Google Patents
一种扫描方法及设备 Download PDFInfo
- Publication number
- WO2018165862A1 WO2018165862A1 PCT/CN2017/076626 CN2017076626W WO2018165862A1 WO 2018165862 A1 WO2018165862 A1 WO 2018165862A1 CN 2017076626 W CN2017076626 W CN 2017076626W WO 2018165862 A1 WO2018165862 A1 WO 2018165862A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- scan
- broadcast
- scanning
- interval
- window
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the embodiments of the present invention relate to the field of communications technologies, and in particular, to a scanning method and device.
- Bluetooth Bluetooth Low Energy
- the BLE system includes a BLE scanning device and a BLE broadcasting device.
- the BLE broadcast device transmits a broadcast packet using a broadcast channel according to a certain broadcast window and a certain broadcast interval.
- the BLE scanning device scans according to a certain scanning window and a certain scanning interval to obtain a broadcast data packet sent by the BLE broadcasting device.
- the device discovery process is completed.
- the scan interval and scan window determine the power consumption of the BLE scanning device.
- the broadcast interval, the broadcast window, the scan interval, and the scan window all affect the scan discovery time.
- the scan discovery time is the time from when the BLE scanning device starts scanning to when the broadcast packet sent by the BLE broadcast device is first acquired.
- the BLE scanning device stores a plurality of sets of preset scanning parameters, and each set of scanning parameters includes a scanning interval and a scanning window.
- the BLE scanning device scans the BLE broadcast device using one of a set of preset scanning parameters.
- different BLE broadcast devices use different broadcast intervals and broadcast windows. Therefore, for a BLE broadcast device, the BLE scan device scans using one of the preset scan parameters, and may not be able to perform scan discovery.
- the balance between time and power consumption of the BLE scanning device For example, for a BLE broadcast device, the scan discovery time used by the BLE scanning device may be longer, and the power consumption is small, or the scan discovery time is short, and the power consumption is large.
- the present application provides a scanning method and device, which can solve the problem that the scanning discovery time and the power consumption of the scanning device cannot be balanced.
- the first aspect provides a scanning method. After acquiring the broadcast window and the broadcast interval used by the second device to send the broadcast data packet, the first device passes the preset scan model according to the obtained broadcast window and the broadcast interval. Determining, when the power consumption of the first device is a preset threshold, and the scan discovery time meets the preset condition, the target scan window and the target scan interval used by the first device, so that the first device can scan the window according to the target Target scan interval scan.
- the broadcast window, broadcast interval, scan window, and scan interval all affect the scan discovery time.
- the scan window and scan interval determine the power consumption of the first device.
- the first device considers the broadcast when determining the target scan window and the target scan interval.
- the window and the broadcast interval consider the power consumption of the first device. Therefore, when determining the target scan window and the target scan interval, the first device takes into consideration the scan discovery time and the power consumption of the first device, and realizes the scan discovery time and The balance of power consumption of the first device.
- the first device acquires a broadcast window and
- the method for broadcasting the interval is: the first device sends a request message carrying the identifier of the second device to the server to request to acquire the broadcast window and the broadcast interval, the server stores the broadcast window and the broadcast interval; and the first device receives the broadcast window sent by the server. And broadcast interval response messages.
- the broadcast window and the broadcast interval acquired by the first device are pre-stored by the first device.
- the broadcast window and the broadcast interval pre-stored by the first device are both acquired and stored when the first device communicates with the second device.
- the method for the first device to acquire and store the broadcast window and the broadcast interval may be: the first device acquires at least two broadcast data packets sent by the second device according to the preset scan parameter scan, and acquires at least two broadcast data. After the packet, the first device determines a time of each of the at least two broadcast data packets, and calculates a broadcast window and a broadcast interval according to the determined time, so that the first device can store the broadcast window and the broadcast interval.
- the method for the first device to acquire and store the broadcast window and the broadcast interval may be: the first device scans, according to the preset scan parameter, the at least one broadcast data packet sent by the second device, and each broadcast in the at least one broadcast data packet.
- the data packets all carry a broadcast window and a broadcast interval, and the first device acquires a broadcast window and a broadcast interval from any broadcast data packet acquired by the first device, so that the first device can store the broadcast window and the broadcast interval.
- the preset condition is that the time is the shortest
- the first device determines, by using the preset scan model, the target scan used by the first device according to the broadcast window and the broadcast interval.
- the parameter method is: the first device determines multiple sets of scan parameters according to the preset threshold, each of the plurality of sets of scan parameters includes a scan window and a scan interval, and the preset threshold is a function value of the first function, first The independent variable of the function is the ratio of the scan window to the scan interval; the first device determines the first scan discovery time corresponding to each set of scan parameters by scanning the model according to the broadcast window and the broadcast interval, to obtain multiple first scan discovery times. The first device determines the first scan discovery time with the shortest time among the plurality of first scan discovery times as the target scan discovery time; and the first device determines that the scan parameter corresponding to the target scan discovery time is the target scan parameter.
- the first device determines, according to the broadcast window and the broadcast interval, a first scan discovery time corresponding to each set of scan parameters by using a preset scan model, to obtain
- the method for detecting the time of the plurality of first scans is: for each set of scan parameters of the plurality of sets of scan parameters, the first device performs the following steps to obtain a plurality of first scan discovery times: the first device determines at least one scan a first time device; the first device determines a time difference set according to a set of scan parameters of the plurality of sets of scan parameters, the time difference set includes at least one time difference, and the jth time difference of the at least one time difference is used to represent the first of the at least one scan start time a difference between j scan start times and broadcast start times, j ⁇ 1; the first device calculates each of the at least one time difference by scanning the model according to the broadcast window, the broadcast interval, and the set of scan parameters a second scan discovery time corresponding to the time difference to obtain
- a scanning device which is the first device, and the scanning device includes an acquiring unit, a determining unit, and a scanning unit.
- the obtaining unit is configured to acquire a broadcast parameter used by the second device to send a broadcast data packet, where the broadcast parameter includes a broadcast window and a broadcast interval
- the determining unit is configured to: according to the broadcast window and the broadcast interval acquired by the acquiring unit, Determining a scan model to determine a target scan parameter used by the first device, where the target scan parameter is a scan parameter used by the first device when the power consumption of the first device is a preset threshold and the scan discovery time meets the preset condition,
- the target scan parameter includes a target scan window and a target scan interval; and the scan unit is configured to scan the target scan window and the target scan interval determined according to the determining unit.
- the acquiring unit is specifically configured to: send a request message carrying the identifier of the second device to the server, to request to obtain a broadcast window and a broadcast interval, where the server stores the broadcast window and Broadcast interval; a response message sent by the receiving server that carries the broadcast window and the broadcast interval.
- the foregoing preset condition is that the time is the shortest
- the determining unit is specifically configured to: determine, according to the preset threshold, multiple sets of scan parameters, each of the plurality of sets of scan parameters
- the group scan parameters include a scan window and a scan interval.
- the preset threshold is a function value of the first function, and the independent variable of the first function is a ratio of the scan window to the scan interval; according to the broadcast window and the broadcast interval, the scan model is used to determine and a first scan discovery time corresponding to each set of scan parameters to obtain a plurality of first scan discovery times; determining a first scan discovery time having the shortest time among the plurality of first scan discovery times as a target scan discovery time; determining and target The scan parameter corresponding to the scan discovery time is the target scan parameter.
- the determining unit is specifically configured to: determine at least one scan start time; according to the plurality of sets of scan parameters a set of scan parameters, the set of time differences is determined, the set of time differences includes at least one time difference, and the jth time difference of the at least one time difference is used to represent between the jth scan start time and the broadcast start time in the at least one scan start time a difference of j ⁇ 1; calculating, by the scan model, a second scan discovery time corresponding to each time difference of the at least one time difference according to the broadcast window, the broadcast interval, and the set of scan parameters, to obtain a plurality of second scans Discovering time; calculating a plurality of second scan discovery times by using a preset algorithm to obtain a first scan discovery time corresponding to the set of scan parameters.
- a scanning device in a third aspect, includes a processor, a memory, and a communication interface.
- the memory is used to store computer program code
- the computer program code includes instructions
- the processor, the communication interface and the memory are connected by a bus, and when the scanning device is running, the processor executes the memory storage instruction, so that the scanning device performs the first step as described above.
- a computer readable storage medium comprising one or more program codes; when the processor of the scanning device is executing the program code, the scanning device performs the first aspect as described above And its various possible implementations as described in the scanning method.
- a computer program product comprising instructions which, when run on a scanning device, cause the scanning device to perform a scanning method as in the first aspect above and its various possible implementations.
- the name of the above scanning device does not limit the device or the function module itself. In actual implementations, these devices or functional modules may appear under other names. As long as the functions of the respective devices or functional modules are similar to the present application, they are within the scope of the claims and their equivalents.
- FIG. 1 is a schematic diagram of a broadcast event in a BLE system in the prior art
- FIG. 2 is a schematic structural diagram of a communication system according to an embodiment of the present application.
- FIG. 3 is a schematic structural diagram of hardware of a smart watch according to an embodiment of the present application.
- FIG. 4 is a schematic flowchart of a scanning method according to an embodiment of the present application.
- FIG. 5 is a schematic diagram 1 of a scanning model in an embodiment of the present application.
- FIG. 6 is a schematic diagram 2 of a scanning model in an embodiment of the present application.
- FIG. 7 is a schematic diagram 3 of a scanning model in an embodiment of the present application.
- FIG. 8 is a schematic structural diagram 1 of a scanning device according to an embodiment of the present disclosure.
- FIG. 9 is a schematic structural diagram 2 of a scanning device according to an embodiment of the present disclosure.
- FIG. 10 is a schematic structural diagram 3 of a scanning device according to an embodiment of the present application.
- the words “exemplary” or “such as” are used to mean an example, illustration, or illustration. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the words “exemplary” or “such as” is intended to present the concepts in a particular manner.
- the BLE operates in the 2.4 Industrial Hierarchy (ISM) frequency band of the Industrial Scientific Medical (ISM).
- ISM Industrial Hierarchy
- the 2.4 GHz IMS band is divided into 40 radio frequency (RF) channels, each of which has a width of 2 megahertz (MHz).
- RF radio frequency
- the channels numbered 37, 38, and 39 are broadcast channels for transmitting BLE broadcast data packets; the remaining 37 channels except the broadcast channel are data channels for transmitting user data.
- the BLE broadcast device can select to transmit a broadcast data packet through at least one of the above broadcast channels. At the time of each broadcast event, the BLE broadcast device transmits one broadcast packet each on its selected broadcast channel (up to three). Every The broadcast event lasts for the same length as the broadcast window.
- BLE broadcasts include connectable directed broadcasts and connectable non-directional broadcasts.
- the broadcast event in the connectable directed broadcast must be repeated every 3.75 milliseconds (ms), that is, the BLE broadcast device sends the directed broadcast data packet on the three broadcast channels every 3.75 ms, so that the BLE scanning device only needs to scan. 3.75ms can obtain the directed broadcast data packet sent by the BLE broadcast device.
- a broadcast interval There is a time interval of unequal between 20ms and 10.28 seconds (s) between any two adjacent broadcast events in the connectable non-directional broadcast, which is called a broadcast interval.
- the time interval for transmitting non-directional broadcast data packets between any two adjacent broadcast channels of the three broadcast channels is less than or equal to 10 ms, and the specific interval value depends on the BLE broadcast. Implementation of the device.
- the BLE broadcast device in order to avoid interference caused by similar devices that may be broadcast simultaneously for a long period of time, the BLE broadcast device adds a random delay of 0 to 10 ms after each broadcast event, under active disturbance. The point in time when the event was broadcast. In this way, even if the broadcast intervals used by two different BLE broadcast devices are the same, and the non-directional broadcast data packets are transmitted on the same channel and at the same time, a collision is caused, and in the next broadcast event, the conflict.
- Figure 1 shows a complete broadcast event in a connectable non-directional broadcast.
- an ADV_IND indicates a non-directional broadcast data packet
- These three RF channels are all broadcast channels. In the broadcast event shown in FIG.
- the BLE broadcast device transmits one non-directional broadcast data packet in each of channel 1, channel 2, and channel 3, respectively.
- the time interval for transmitting non-directional data packets between channel 1 and channel 2 is less than or equal to 10 ms.
- the time interval for transmitting non-directional data packets between channel 2 and channel 3 is less than or equal to 10 ms.
- the scanning interval and the scanning window are two very important parameters, which affect the scanning discovery time, and the ratio of the scanning window to the scanning interval (this ratio is called in the embodiment of the present application)
- the scan duty cycle determines the power consumption of the BLE scanning device during the scan. For each scan interval, the BLE scanning device is in a scan state within the scan window within the scan interval, so if the length of the scan window is equal to the length of the scan interval, the BLE scanning device will be in continuous scan.
- the BLE scanning device uses different scanning frequencies in any two adjacent scanning intervals. The BLE scanning device scans only one broadcast channel in each scan window, and the BLE scanning device scans different broadcast channels in any two adjacent scan windows.
- the BLE scanning device in the BLE system can also function as a BLE broadcasting device.
- the BLE broadcasting device can also function as a BLE scanning device.
- the present application refers to a device mainly used for broadcasting as a BLE broadcasting device, and a device mainly used for scanning is referred to as a BLE scanning device.
- the BLE scanning device scans using a pre-stored set of preset scan parameters.
- the broadcast interval used by different BLE broadcasters and The broadcast window is different. Therefore, for a BLE broadcast device, the BLE scan device scans using a set of preset scan parameters, and the balance between the scan discovery time and the power consumption of the BLE scan device may not be achieved.
- the embodiment of the present application provides a scanning method and device, where the first device acquires a broadcast window and a broadcast interval used by the second device to send a broadcast data packet, and passes the pre-prepared according to the obtained broadcast window and broadcast interval.
- a scan model is configured to determine a target scan window and a target scan interval used by the first device when the power consumption of the first device is a preset threshold and the scan discovery time meets a preset condition, so that the first device can Scan according to the target scan window and the target scan interval to discover the second device. Since the first device determines the target scan window and the target scan interval, both the broadcast window and the broadcast interval are considered, and the power consumption of the first device is considered. Therefore, when the first device determines the target scan window and the target scan interval, The scan discovery time and the power consumption of the first device are taken into consideration, and the balance between the scan discovery time and the power consumption of the first device is achieved.
- FIG. 2 is a schematic structural diagram of a communication system according to an embodiment of the present application.
- the communication system includes a first device 20 and a second device 21, and the second device 21 is wirelessly connectable with the first device 20.
- the first device 20 in the embodiment of the present application may be a BLE scanning device, and the second device 21 may be a BLE broadcasting device.
- the connection between the second device 21 and the first device 20 may be a BLE mode, a wireless-Fidelity (Wi-Fi) mode, or a traditional Bluetooth (Basic Rate, BR) mode. It can also be a zigbee mode, which is not specifically limited in the embodiment of the present application.
- the first device 20 or the second device 21 in the embodiment of the present application may be a wearable device or a smart terminal.
- Wearable devices include, but are not limited to, smart watches, smart bracelets, smart wristbands, smart glasses, smart necklaces, smart rings, smart earrings, smart phones and other smart wearable devices.
- the wearable device itself can provide Bluetooth (Bluetooth), Wireless-Fidelity (Wi-Fi), Near Field Communication (NFC), Infrared, etc.
- Bluetooth Bluetooth
- Wi-Fi Wireless-Fidelity
- NFC Near Field Communication
- I/O speaker input/output
- Wearable devices can effectively detect user actions (such as running, walking, etc.), user sign data (such as heart rate, blood pressure, etc.) and the user's current location (ie, the user's current location) using the various types of sensors described above. Wait.
- the first device 20 shown in FIG. 2 may be a smart watch.
- the components of the smart watch in the embodiment of the present application are specifically described below with reference to FIG. 3 .
- the smart watch includes: a processor 31, a Bluetooth module 32, a power source 33, a memory 34, an input unit 35, a display unit 36, and the like.
- a processor 31 the structure of the smart watch shown in FIG. 3 does not constitute a limitation to the smart watch, and may include more or less components such as those shown in FIG. 3, or may be combined as shown in FIG. 3. Some of the components shown may be different than the components shown in FIG.
- the processor 31 is a control center for a smart watch that connects various parts of the entire smart watch with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 34, and recalling data stored in the memory 34.
- the smart watch is fully monitored by performing various functions and processing data of the smart watch.
- Processor 31 may include one or more processing units.
- the processor 31 can integrate an application processor and a modem processor.
- the application processor mainly processes an operating system, a user interface, an application, and the like; the modem processor mainly processes wireless communication.
- the above modulation and demodulation processor and the application processor may also be independently set.
- the Bluetooth module 32 can be used to connect to the second device 21 in a Bluetooth manner.
- the smart watch includes a power source 33 (such as a battery) that supplies power to various components.
- a power source can be logically connected to the processor 31 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
- the memory 34 can be used to store software programs and modules, and the processor 31 executes various functional applications and data processing of the smart watch by running software programs and modules stored in the memory 34.
- the memory 34 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a scanning function), and the like; the storage data area may be stored according to the use of the smart watch. Data (such as audio data, phone book) and so on.
- memory 34 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 35 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the smart watch.
- the input unit 35 can include a touch screen 351 as well as other input devices 352.
- the touch screen 351 also referred to as a touch panel, can collect touch operations on or near the user (such as the operation of the user using a finger, a stylus, or the like on or near the touch screen 351), and The preset program drives the corresponding connection device.
- the touch screen 351 may include two parts of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 31 is provided and can receive commands from the processor 31 and execute them.
- the touch screen 351 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- Other input devices 352 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 36 can be used to display information input by the user or information provided to the user as well as various menus of the smart watch.
- the display unit 36 can include a display panel 361.
- the display panel 361 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the touch screen 351 may cover the display panel 361, and when the touch screen 351 detects a touch operation on or near it, transmits to the processor 31 to determine the type of the touch event, and then the processor 31 displays the panel according to the type of the touch event. A corresponding visual output is provided on the 361.
- the touch screen 351 and the display panel 361 function as two separate components to realize the input and output functions of the smart watch, In some embodiments, the touch screen 351 can be integrated with the display panel 361 to implement the input and output functions of the smart watch.
- the smart watch may also include various sensors (such as a gyro sensor, a hygrometer sensor, an infrared sensor or a magnetometer sensor), a Wi-Fi module, and the like. Not shown in Figure 3.
- sensors such as a gyro sensor, a hygrometer sensor, an infrared sensor or a magnetometer sensor
- Wi-Fi module a Wi-Fi module
- FIG. 4 is a schematic flowchart of a scanning method provided by an embodiment of the present application, and the scanning method can be applied to the communication system shown in FIG. 2.
- the scanning method includes:
- the first device sends a request message carrying the identifier of the second device to the server, to request to acquire a broadcast window and a broadcast interval used by the second device to send the broadcast data packet.
- the server sends, to the first device, a response message that carries a broadcast window and a broadcast interval used by the second device.
- the first device determines, according to the broadcast window and the broadcast interval, a target scan window used by the first device when the power consumption of the first device is a preset threshold and the scan discovery time meets the preset condition by using a preset scan model. And target scan interval.
- the first device scans according to the target scan window and the target scan interval.
- the first device in the embodiment of the present application may be the foregoing BLE scanning device, and the second device may be the foregoing BLE broadcast device.
- the first device in the embodiment of the present application acquires a broadcast parameter used by the second device to send a broadcast data packet. Specifically, the first device acquires a broadcast window and a broadcast interval used by the second device to send the broadcast data packet, so as to determine, according to the obtained broadcast window and the broadcast interval, that the first device scans the broadcast data packet sent by the second device. Target scan window and target scan interval.
- the method for the first device to obtain the broadcast window and the broadcast interval used by the second device to send the broadcast data packet may be: the first device sends a request message carrying the identifier of the second device to the server, to request to acquire the second device to send a broadcast window and a broadcast interval used by the broadcast data packet; the server pre-stores a broadcast window and a broadcast interval used by the second device to transmit the broadcast data packet; correspondingly, after receiving the request message, the server sends the broadcast message to the first device The broadcast window and the broadcast interval used by the second device, so that the first device can acquire the broadcast window and the broadcast interval used by the second device, that is, perform S400 and S401.
- the server may be a cloud server or a background server of the first device, which is not specifically limited in this embodiment.
- the first device is a smart phone
- the second device is a smart watch.
- the first device stores an application matching the smart watch in advance
- the server is a background server.
- the first device sends a request message carrying the identifier of the smart watch to the background server to request to acquire the broadcast window and the broadcast interval used by the smart watch to send the broadcast data packet.
- the background server sends the broadcast window and the broadcast interval used by the smart watch to the smart phone, so that the smart phone can obtain the broadcast window and the broadcast interval used by the smart watch.
- the broadcast window and the broadcast interval acquired by the first device are pre-stored by the first device.
- the broadcast window and the broadcast interval pre-stored by the first device are both acquired and stored when the first device communicates with the second device.
- the method for the first device to acquire and store the broadcast window and the broadcast interval in advance may be: the first device continuously scans a certain broadcast channel according to the preset scan parameter, and acquires at least two broadcast data messages transmitted through the broadcast channel. The first device calculates a broadcast interval according to the time at which each broadcast data packet is acquired. In addition, after the first device acquires the broadcast data packet sent through a certain broadcast channel for the first time, the first device quickly switches to the next broadcast channel for scanning, so that the first device can obtain the broadcast datagram according to the different broadcast channels. The moment of the text to determine the broadcast window.
- the first device scans and discovers the second device according to the preset scan parameter.
- the balance between the scan discovery time and the power consumption of the first device may not be implemented, so the first device stores the calculated Broadcast interval and broadcast window to calculate target scan parameters when subsequently communicating with the second device.
- the hardware structure of the first device in the method needs to support the first device to scan and sample to obtain a broadcast window and a broadcast interval used by the second device.
- the method for the first device to acquire and store the broadcast window and the broadcast interval may be: the first device scans the second device according to the preset scan parameter, and then the first device establishes a connection with the second device. After the connection is established between the two, the first device acquires at least one broadcast data packet sent by the second device, and each of the at least one broadcast data packet carries a broadcast window and a broadcast interval, and the first device obtains the broadcast data packet from the second device. Get the broadcast window and broadcast interval in any of the broadcast packets.
- the first device since the first device establishes a connection with the second device before acquiring the broadcast window and the broadcast interval, and the first device scans and discovers the second device according to the preset scan parameter, the first device is The communication between the device and the second device may cause an imbalance between the power consumption of the first device and the scan discovery time. After acquiring the broadcast window and the broadcast interval, the first device stores the broadcast window and the broadcast interval to calculate the target scan parameter when subsequently communicating with the second device.
- the first device After acquiring the broadcast window and the broadcast interval used by the second device, the first device determines, by using a preset scan model, that the first device is configured when the power consumption of the first device is a preset threshold and the scan discovery time meets a preset condition.
- the target scan window and the target scan interval are used, so that the first device scans according to the target scan window and the target scan interval, and the balance between the scan discovery time and the power consumption of the first device can be achieved, that is, the first device executes S402 and S403. .
- the channels numbered 37, 38, and 39 are all broadcast channels, and the second device can select to transmit broadcast data packets through up to three broadcast channels, that is, the second device transmits one broadcast data on each of the three broadcast channels. package. Therefore, the broadcast window can cover up to three broadcast channels at most.
- the first device scans only one broadcast channel in each scan window, and the first device scans different broadcast channels in any two adjacent scan windows. Therefore, in a broadcast event in which the second device transmits one broadcast data packet on each of the three broadcast channels, if the scan window can completely cover the three broadcast channels, the first device can scan the second device to send through a certain broadcast channel. Broadcast packet.
- the first device can scan the broadcast data packet sent by the second device through a certain broadcast channel to construct a preset scan model involved in the embodiment of the present application.
- the start time of a certain broadcast event is taken as the coordinate origin, the horizontal axis represents time, and the vertical axis represents whether broadcast or scanning is in progress.
- advWindow represents a broadcast window
- advinterval represents a broadcast interval
- scanWindow represents a scan window
- scaninterval represents a scan interval
- the broadcast formula can be expressed as :
- the scan start time and the broadcast start time may be the same or different. It can be understood that, in actual applications, scanning may be started at the broadcast start time, scanning may be started during the broadcast process, or scanning may be ended at the broadcast start time.
- Fig. 5 shows a case where scanning is started at the broadcast start time. Referring to Figure 5, Figure 6 illustrates the situation in which scanning begins during the course of a broadcast. Referring to Fig. 5, Fig. 7 shows the case where the scanning ends at the broadcast start time.
- the embodiment of the present application uses shift to indicate the time difference between the scan start time and the broadcast start time.
- the value of shift is [0, scaninterval)
- the formula of scanning can be expressed as:
- the ratio of the scan window to the scan interval is the scan duty ratio, and the scan duty ratio determines the power consumption of the first device.
- the power consumption of the first device is a preset threshold
- at least one set of scan parameters exists, and a ratio of a scan window to a scan interval in each set of scan parameters is an independent variable of the first function, and the preset threshold is a first function. Function value.
- the first device has acquired the broadcast window and the broadcast interval used by the second device in S401. Therefore, the first device can determine the first scan discovery time corresponding to each set of scan parameters by using the above broadcast formula and the scan formula. In this way, the first device can select the first scan discovery time with the shortest time from the determined first scan discovery time, and determine the selected first scan discovery time as the target scan discovery time, the target scan.
- the scan parameter corresponding to the discovery time is the target scan parameter.
- the first device can determine a shift consisting of different values. set.
- the first device can determine a second scan discovery time corresponding to each shift according to the above broadcast formula and the above scan formula. In this way, the first device calculates the calculated second scan discovery time by using a preset algorithm, and obtains a corresponding set of scan parameters.
- the number corresponds to the first scan discovery time.
- the preset algorithm may be an arithmetic average method, a weighted average method, or other algorithms, which is not specifically limited in the embodiment of the present application.
- the preset algorithm is the arithmetic average method
- the power consumption of the first device is 1/9
- the value of the scan window is 1.
- the value of the scan interval is 9, or the value of the scan window is 10, and the value of the scan interval is 90.
- the values of shift are shift1, shift2, and shift3.
- the value of shift is shift1, and the second scan discovery time t1 can be calculated by using the above broadcast formula and scan formula.
- the value of shift is shift2, and the second scan discovery time t2 can be calculated by using the above broadcast formula and scan formula.
- the value of shift is shift3, and the second scan discovery time t3 can be calculated by using the above broadcast formula and scan formula.
- the first device calculates the arithmetic mean of t1, t2, and t3 to obtain the first scan discovery time T1, such that T1 represents the scan discovery time in the scene where the value of the scan window is 1, and the value of the scan interval is 9.
- the values of shift are shift4, shift5, and shift6.
- the value of shift is shift4, and the second scan discovery time t4 can be calculated by using the above broadcast formula and scan formula.
- the value of shift is shift5, and the second scan discovery time t5 can be calculated by using the above broadcast formula and scan formula.
- the value of shift is shift6, and the second scan discovery time t6 can be calculated by using the above broadcast formula and scan formula.
- the first device calculates the arithmetic mean of t4, t5, and t6 to obtain the first scan discovery time T2, such that T2 represents the scan discovery time in the scene where the value of the scan window is 10 and the scan interval value is 90.
- the first device uses T1 as the target scan discovery time, the scan window corresponding to T1 is determined as the target scan window (the value is 1), and the scan interval corresponding to T1 is determined as the target scan interval (the value is 9) .
- the random delay that is added after the broadcast event has a small impact on the first device to determine the target scan parameter in the embodiment of the present application. Therefore, in the embodiment of the present application, the random delay added after the broadcast event is negligible.
- the first device scans the broadcast data packet sent by the second device according to the determined target scan window and the target scan interval.
- the first device in the embodiment of the present application considers the power consumption and the scan of the first device.
- the target scan window and the target scan interval are determined, so that when the first device scans the broadcast data packet sent by the second device according to the target scan window and the target scan interval, the power consumption of the first device can be realized. Balance with scan discovery time.
- the embodiment of the present application provides a scanning device, which is used to perform the steps performed by the first device in the above scanning method.
- the scanning device provided by the embodiment of the present application may include a module corresponding to the corresponding step.
- the embodiment of the present application may divide the function module into the scanning device according to the foregoing method example.
- each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and may be further divided in actual implementation.
- FIG. 8 shows a possible structural diagram of the scanning device involved in the above embodiment.
- the scanning device includes an acquisition unit 80, a determination unit 81, and a scanning unit 82.
- the obtaining unit 80 is configured to support the scanning device to perform S401 in FIG. 4;
- the determining unit 81 is configured to support the scanning device to execute S402 in FIG. 4;
- the scanning unit 82 is configured to support the scanning device to execute S403 in FIG. 4. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
- the scanning device provided by the embodiment of the present application further includes a sending unit 83 for supporting the scanning device to execute S400 in FIG. 4, and a storage unit 84 for storing the second device for transmitting the broadcast data packet.
- the broadcast window and broadcast interval used can also be used to store the program code and data of the scan.
- FIG. 9 shows a possible structural diagram of the scanning device involved in the above embodiment.
- the scanning device includes a processing module 90 and a communication module 91.
- the processing module 90 is configured to control and manage the actions of the scanning device.
- the processing module 90 is configured to support the scanning device to perform S402 and S403 in FIG. 4, and/or other processes for the techniques described herein.
- the communication module 91 is configured to support communication between the scanning device and an external device.
- the communication module 91 is configured to support the scanning device to execute S400 and S401 in FIG.
- the processing module 90 in the embodiment of the present application may be a processor or a controller, and may be, for example, a central processing unit (CPU) or a digital signal processor (DSP). It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- CPU central processing unit
- DSP digital signal processor
- the communication module 91 in the embodiment of the present application may be a Bluetooth module for interacting with external devices, and may further include an RF circuit corresponding to the Bluetooth module.
- the RF circuit is used to receive and transmit signals during the transmission or reception of information or during a call.
- the communication module 91 in the embodiment of the present application may also be a communication interface for interacting with external devices, the full name of the English: Communication Interface.
- the communication module may include two communication interfaces, a transmission interface for transmitting data to the external device and a receiving interface for receiving data from the external device, that is, the scanning device may implement the number through two different communication interfaces respectively. According to the reception and the transmission of data.
- the communication module 91 can integrate the data receiving function and the data transmitting function on a communication interface having a data receiving function and a data transmitting function.
- the communication interface can be integrated on a Bluetooth chip or an NFC chip.
- the communication module 91 in the embodiment of the present application may also be a transceiver or a transceiver circuit or the like.
- the scanning device may further include an input module 92 for implementing interaction between the user and the scanning device.
- the input module 92 can receive numeric or character information input by the user to generate a signal input related to user setting or function control.
- the input module 92 may be a touch panel, or may be other human-computer interaction interfaces, such as a physical input key, a microphone, etc., and may also be other external information capture devices, such as a camera.
- the physical input keys employed by the input module 92 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
- the input module 92 in the form of a microphone can collect the speech input by the user or the environment and convert it into a command executable by the processing module 90 in the form of an electrical signal.
- the scanning device may further include an output module 93 for implementing interaction between the user and the scanning device.
- the output module 93 includes, but is not limited to, an image output module and a sound output module.
- the image output module is used to output text, pictures and/or video.
- the image output module may include a display panel, such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), a field emission display (FED), or the like. Display panel.
- the image output module may include a single display panel or a plurality of display panels of different sizes.
- the touch panel used by the input module 92 can also serve as the display panel of the output module 93.
- the touch panel detects a touch or proximity gesture operation thereon, it is transmitted to the processing module 90 to determine the type of the touch event, and then the processing module 90 provides a corresponding visual output on the display panel according to the type of the touch event. .
- the input module 92 and the output module 93 can function as two separate components to implement the input and output functions of the scanning device, but in some embodiments, the input module 92 can be integrated with the output module 93.
- the input and output functions of the scanning device are implemented (the input module 92 and the output module 93 are included in a dashed box as shown in FIG. 9 to indicate that the input module 92 is integrated with the output module 93).
- the scanning device in the embodiment of the present application further includes a storage module 94, configured to store the target scanning window and the target scanning interval.
- the storage module 94 can be a memory.
- the processing module 90 is a processor
- the communication module 91 is a communication interface
- the input module 92 and the output module 93 are the same display screen
- the storage module 94 is a memory
- the scanning device involved in the embodiment of the present application may be as shown in FIG. Scan the device.
- the scanning device includes a communication interface 100, a processor 101, and a memory 102.
- the communication interface 100, the processor 101 and the memory 102 are connected by the system bus 103, and the mutual communication is completed.
- the scanning device When the scanning device is in operation, the scanning device performs the scanning method of the embodiment as shown in FIG.
- the scanning device performs the scanning method of the embodiment as shown in FIG.
- the scanning device For a specific scanning method, refer to the related description in the foregoing embodiment shown in FIG. 4, and details are not described herein again.
- the memory 102 can be used to store the determined target scan window and the target scan interval, and can also be used to store software programs and application modules.
- the processor 101 executes the scan device by running a software program stored in the memory 102 and an application module. Various functional applications and data processing.
- the memory 102 may mainly include a storage program area 1020 and a storage data area 1021, wherein the storage program area 1020 may store an operating system, an application required for at least one function, such as acquiring a broadcast window and a broadcast interval used by the second device, and the like;
- the data area 1021 can store a target scan window and a target scan interval.
- the operating system may be an Android (Android) system, an iOS system, a Windows operating system, or the like, or an embedded operating system such as Vxworks.
- the memory 102 may include volatile memory, such as non-volatile volatile random access memory (NVRAM), phase change random access memory (PRAM), magnetic A magnetic random access memory (MRAM) or the like; the memory 102 may further include a nonvolatile memory such as at least one magnetic disk storage device or an electrically erasable programmable read only memory (Electrically Erasable Programmable Read-Only) Memory, EEPROM), flash memory devices such as NOR flash memory or NAND flash memory.
- NVRAM non-volatile volatile random access memory
- PRAM phase change random access memory
- MRAM magnetic A magnetic random access memory
- the memory 102 may further include a nonvolatile memory such as at least one magnetic disk storage device or an electrically erasable programmable read only memory (Electrically Erasable Programmable Read-Only) Memory, EEPROM), flash memory devices such as NOR flash memory or NAND flash memory.
- EEPROM Electrically erasable programmable read only memory
- flash memory devices such as NOR
- the memory 102 can exist independently and is coupled to the processor 101 via a system bus 103.
- the memory 102 can also be integrated with the processor 101.
- Processor 101 is the control center of the scanning device.
- the processor 101 connects various portions of the entire scanning device using various interfaces and lines, performs each of the scanning devices by running or executing software programs and/or application modules stored in the memory 102, and recalling data stored in the memory 102.
- the processor 101 may include only a CPU, or may be a combination of a CPU, a Graphic Processing Unit (GPU), a DSP, and a control chip (for example, a baseband chip) in the communication unit.
- the CPU may be a single operation core, and may also include a multi-operation core.
- the processor 101 may include one or more CPUs, for example, the processor 101 in FIG. 10 includes a CPU 0 and a CPU 1.
- the system bus 103 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
- ISA Industry Standard Architecture
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the system bus 103 can be divided into an address bus, a data bus, a control bus, and the like.
- various buses are illustrated as the system bus 104 in FIG.
- the scanning device may further include a display screen 104. This is indicated by a dashed box in Figure 10.
- the scanning device can also include a power source 105 for powering different components of the scanning device to maintain its operation.
- the power source 105 can be a built-in battery, such as a common lithium ion battery, a nickel hydride battery, etc., and also includes an external power source that directly supplies power to the scanning device, such as an alternating current (AC) adapter.
- the power source 105 can also be more widely defined, for example, can also include a power management system, a charging system, a power failure detecting circuit, a power converter or an inverter, and a power status indicator. (such as light-emitting diodes), and any other components associated with the power generation, management, and distribution of the scanning device.
- another embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium comprising one or more program codes, the one or more programs comprising instructions when a processor in the scanning device is When the program code is executed, the scanning device performs the scanning method as shown in FIG.
- the computer program product includes one or more computer instructions.
- the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
- the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
- the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the modules or units is only a logical function division.
- there may be another division manner for example, multiple units or components may be used.
- Combinations can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, device or unit.
- the coupling or communication connection can be in electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing storage medium includes: a flash memory, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请实施例公开了一种扫描方法及设备,涉及通信技术领域,能够解决无法平衡扫描发现时间与扫描设备的功耗的问题。具体方案为:第一设备获取第二设备发送广播数据包所使用的广播参数,广播参数包括广播窗口和广播间隔;第一设备根据广播窗口和广播间隔,通过预设的扫描模型,确定第一设备使用的目标扫描参数,目标扫描参数为第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时,第一设备使用的扫描参数,目标扫描参数包括目标扫描窗口和目标扫描间隔;第一设备根据目标扫描窗口和目标扫描间隔扫描。
Description
本申请实施例涉及通信技术领域,尤其涉及一种扫描方法及设备。
随着通信技术的发展,越来越多的设备使用低功耗蓝牙(Bluetooh Low Energy,BLE)技术完成无线通信。
BLE系统包括BLE扫描设备和BLE广播设备。BLE广播设备按照某一广播窗口和某一广播间隔使用广播信道发送广播数据包。BLE扫描设备按照某一扫描窗口和某一扫描间隔进行扫描,以获取BLE广播设备发送的广播数据包。BLE扫描设备获取到BLE广播设备发送的广播数据包后,二者之间完成设备发现的过程。扫描间隔和扫描窗口决定了BLE扫描设备的功耗。广播间隔、广播窗口、扫描间隔以及扫描窗口均会影响扫描发现时间,扫描发现时间为BLE扫描设备从开始扫描到首次获取到BLE广播设备发送的广播数据包的时间。
现有技术中,BLE扫描设备存储有若干组预设的扫描参数,每组扫描参数包括扫描间隔和扫描窗口。BLE扫描设备使用其中一组预设的扫描参数扫描BLE广播设备。但是,实际应用中,不同的BLE广播设备使用的广播间隔和广播窗口不同,因此,对于某一BLE广播设备而言,BLE扫描设备使用其中一组预设的扫描参数扫描,可能无法实现扫描发现时间与BLE扫描设备的功耗之间的平衡。例如,对于某一BLE广播设备,BLE扫描设备使用的扫描发现时间可能较长,且功耗较小,也可能是扫描发现时间较短,且功耗较大。
发明内容
本申请提供一种扫描方法及设备,能够解决无法平衡扫描发现时间与扫描设备的功耗的问题。
为达到上述目的,本申请采用如下技术方案:
第一方面,提供一种扫描方法,第一设备在获取到第二设备发送广播数据包所使用的广播窗口和广播间隔后,根据获取到的广播窗口和广播间隔,通过预设的扫描模型,确定在该第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时,该第一设备使用的目标扫描窗口和目标扫描间隔,这样,该第一设备可根据目标扫描窗口和目标扫描间隔扫描。
广播窗口、广播间隔、扫描窗口和扫描间隔均会影响扫描发现时间,扫描窗口和扫描间隔决定了第一设备的功耗,第一设备在确定目标扫描窗口和目标扫描间隔时,既考虑了广播窗口和广播间隔,又考虑了第一设备的功耗,因此,第一设备在确定目标扫描窗口和目标扫描间隔时,兼顾了扫描发现时间和第一设备的功耗,实现了扫描发现时间和第一设备的功耗的平衡。
可选的,在本申请的一种可能的实现方式中,第一设备获取广播窗口和
广播间隔的方法为:第一设备向服务器发送携带第二设备的标识的请求消息,以请求获取广播窗口和广播间隔,服务器存储有广播窗口和广播间隔;第一设备接收服务器发送的携带广播窗口和广播间隔的响应消息。
可选的,在本申请的另一种可能的实现方式中,第一设备获取到的广播窗口和广播间隔均为第一设备预先存储的。第一设备预先存储的广播窗口和广播间隔均为第一设备之前与第二设备通信时获取并存储的。这里,第一设备获取并存储广播窗口和广播间隔的方法可以为:第一设备根据预设的扫描参数扫描,获取第二设备发送的至少两个广播数据包,在获取到至少两个广播数据包之后,第一设备确定至少两个广播数据包中每个广播数据包的时刻,并根据确定出的时刻,计算广播窗口和广播间隔,这样,第一设备即可存储广播窗口和广播间隔。第一设备获取并存储广播窗口和广播间隔的方法也可以为:第一设备根据预设的扫描参数扫描,获取第二设备发送的至少一个广播数据包,至少一个广播数据包中的每个广播数据包均携带广播窗口和广播间隔,第一设备从其获取到的任一广播数据包中获取广播窗口和广播间隔,这样,第一设备即可存储广播窗口和广播间隔。
可选的,在本申请的另一种可能的实现方式中,预设条件为时间最短,则第一设备根据广播窗口和广播间隔,通过预设的扫描模型,确定第一设备使用的目标扫描参数的方法为:第一设备根据预设阈值,确定多组扫描参数,多组扫描参数中的每组扫描参数均包括扫描窗口和扫描间隔,预设阈值为第一函数的函数值,第一函数的自变量为扫描窗口与扫描间隔的比值;第一设备根据广播窗口和广播间隔,通过扫描模型,确定与每组扫描参数对应的第一扫描发现时间,以得到多个第一扫描发现时间;第一设备将多个第一扫描发现时间中,时间最短的第一扫描发现时间确定为目标扫描发现时间;第一设备确定与目标扫描发现时间对应的扫描参数为目标扫描参数。
可选的,在本申请的另一种可能的实现方式中,第一设备根据广播窗口和广播间隔,通过预设的扫描模型,确定与每组扫描参数对应的第一扫描发现时间,以得到多个第一扫描发现时间的方法为:对于多组扫描参数中的每组扫描参数,第一设备均执行下述步骤,以得到多个第一扫描发现时间:第一设备确定至少一个扫描起始时刻;第一设备根据多组扫描参数中的一组扫描参数,确定时间差集合,时间差集合包括至少一个时间差,至少一个时间差中的第j个时间差用于表示至少一个扫描起始时刻中的第j个扫描起始时刻与广播起始时刻之间的差值,j≥1;第一设备根据广播窗口、广播间隔以及上述一组扫描参数,通过扫描模型,计算与至少一个时间差中的每个时间差对应的第二扫描发现时间,以得到多个第二扫描发现时间;第一设备利用预设算法对计算出的第二扫描发现时间计算,得到与上述一组扫描参数对应的第一扫描发现时间。
第二方面,提供一种扫描设备,该扫描设备为上述第一设备,该扫描设备包括获取单元、确定单元和扫描单元。
本申请提供的各个单元模块所实现的功能具体如下:
上述获取单元,用于获取第二设备发送广播数据包所使用的广播参数,该广播参数包括广播窗口和广播间隔;上述确定单元,用于根据上述获取单元获取到的广播窗口和广播间隔,通过预设的扫描模型,确定第一设备使用的目标扫描参数,该目标扫描参数为第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时第一设备使用的扫描参数,该目标扫描参数包括目标扫描窗口和目标扫描间隔;上述扫描单元,用于根据上述确定单元确定出的目标扫描窗口和目标扫描间隔扫描。
进一步地,在本申请的一种可能的实现方式中,上述获取单元具体用于:向服务器发送携带第二设备的标识的请求消息,以请求获取广播窗口和广播间隔,服务器存储有广播窗口和广播间隔;接收服务器发送的携带广播窗口和广播间隔的响应消息。
进一步地,在本申请的另一种可能的实现方式中,上述预设条件为时间最短,这样上述确定单元具体用于:根据预设阈值,确定多组扫描参数,多组扫描参数中的每组扫描参数均包括扫描窗口和扫描间隔,预设阈值为第一函数的函数值,第一函数的自变量为扫描窗口与扫描间隔的比值;根据广播窗口和广播间隔,通过扫描模型,确定与每组扫描参数对应的第一扫描发现时间,以得到多个第一扫描发现时间;将多个第一扫描发现时间中,时间最短的第一扫描发现时间确定为目标扫描发现时间;确定与目标扫描发现时间对应的扫描参数为目标扫描参数。
进一步地,在本申请的另一种可能的实现方式中,对于多组扫描参数中的每组扫描参数,上述确定单元具体用于:确定至少一个扫描起始时刻;根据多组扫描参数中的一组扫描参数,确定时间差集合,时间差集合包括至少一个时间差,至少一个时间差中的第j个时间差用于表示至少一个扫描起始时刻中的第j个扫描起始时刻与广播起始时刻之间的差值,j≥1;根据广播窗口、广播间隔以及上述一组扫描参数,通过扫描模型,计算与至少一个时间差中的每个时间差对应的第二扫描发现时间,以得到多个第二扫描发现时间;利用预设算法对多个第二扫描发现时间计算,得到与上述一组扫描参数对应的第一扫描发现时间。
第三方面,提供一种扫描设备,该扫描设备包括处理器、存储器和通信接口。其中,存储器用于存储计算机程序代码,计算机程序代码包括指令,处理器、通信接口与存储器通过总线连接,当扫描设备运行时,处理器执行存储器存储的指令,以使扫描设备执行如上述第一方面及其各种可能的实现方式所述的扫描方法。
第四方面,还提供一种计算机可读存储介质,该计算机可读存储介质包括一个或多个程序代码;当扫描设备的处理器在执行该程序代码时,该扫描设备执行如上述第一方面及其各种可能的实现方式所述的扫描方法。
第五方面,还提供一种包含指令的计算机程序产品,当其在扫描设备上运行时,使得扫描设备执行如上述第一方面及其各种可能的实现方式的扫描方法。
在本申请中,上述扫描设备的名字对设备或功能模块本身不构成限定,
在实际实现中,这些设备或功能模块可以以其他名称出现。只要各个设备或功能模块的功能和本申请类似,属于本申请权利要求及其等同技术的范围之内。
本申请中第二方面、第三方面、第四方面、第五方面及其各种实现方式的具体描述,可以参考第一方面及其各种实现方式中的详细描述;并且,第二方面、第三方面、第四方面、第五方面及其各种实现方式的有益效果,可以参考第一方面及其各种实现方式中的有益效果分析,此处不再赘述。
本申请实施例的这些方面或其他方面在以下的描述中会更加简明易懂。
图1为现有技术中BLE系统中广播事件的示意图;
图2为本申请实施例提供的通信系统的结构示意图;
图3为本申请实施例中智能手表的硬件结构示意图;
图4为本申请实施例提供的扫描方法的流程示意图;
图5为本申请实施例中扫描模型的示意图一;
图6为本申请实施例中扫描模型的示意图二;
图7为本申请实施例中扫描模型的示意图三;
图8为本申请实施例提供的扫描设备的结构示意图一;
图9为本申请实施例提供的扫描设备的结构示意图二;
图10为本申请实施例提供的扫描设备的结构示意图三。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行详细地描述。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于限定特定顺序。
其中,本申请实施例中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
BLE工作在2.4吉赫兹(GHz)的公共工业科学医疗(Industrial Scientific Medical,ISM)频段。2.4GHz的IMS频段被划分为40个射频(Radio Frequency,RF)信道,每个RF信道的宽度为2兆赫兹(MHz)。40个RF信道中,序号为37、38和39的信道为广播信道,用于发送BLE广播数据包;除广播信道之外的其余37个信道为数据信道,用于传输用户数据。
BLE系统中,对于BLE广播设备而言,该BLE广播设备可选择通过至少一个上述广播信道发送广播数据包。在每一个广播事件发生时,BLE广播设备分别在其选择的广播信道(最多有3个)上各发送一个广播数据包。每
个广播事件持续的时间与广播窗口的长度相同。BLE广播包括可连接的定向广播和可连接的非定向广播。
可连接的定向广播中的广播事件必须每3.75毫秒(ms)重复一次,即BLE广播设备每隔3.75ms就会在3个广播信道上分别发送定向广播数据包,这样,BLE扫描设备只需扫描3.75ms便可获取到BLE广播设备发送的定向广播数据包。
可连接的非定向广播中任意相邻的两个广播事件之间存在20ms~10.28秒(s)不等的时间间隔,该时间间隔称为广播间隔。在可连接的非定向广播中的一个广播事件中,3个广播信道中任意相邻的两个广播信道之间发送非定向广播数据包的时间间隔小于或等于10ms,具体间隔值取决于BLE广播设备的实现。另外,对于任一BLE广播设备,为了避免同类设备可能在很长一段时间上同时广播而造成干扰,该BLE广播设备在每次广播事件发生后会加入0~10ms的随机延时,主动扰动下次广播事件的时间点。这样,即使两个不同的BLE广播设备所使用的广播间隔相同,并在相同的信道和相同的时刻发送非定向广播数据包造成了冲突,在下一个广播事件时,也可避免二者之间的冲突。
图1示出了可连接的非定向广播中一个完整的广播事件。图1中,一个ADV_IND表示一个非定向广播数据包,Adv_idx表示RF信道的序号,因此,Adv_idx=37用于表示序号为37的RF信道(本申请实施例将其简称为信道1),同理,Adv_idx=38用于表示序号为38的RF信道(本申请实施例将其简称为信道2),Adv_idx=39用于表示序号为39的RF信道(本申请实施例将其简称为信道3),这三个RF信道均为广播信道。在图1示出的广播事件中,BLE广播设备分别在信道1、信道2和信道3中各发送一个非定向广播数据包。信道1与信道2之间发送非定向数据包的时间间隔小于或等于10ms,同理,信道2与信道3之间发送非定向数据包的时间间隔小于或等于10ms。
BLE系统中,对于BLE扫描设备而言,扫描间隔和扫描窗口是两个非常重要的参数,它们会影响扫描发现时间,且扫描窗口和扫描间隔的比值(本申请实施例中将该比值称为扫描占空比)决定了BLE扫描设备在扫描过程中的功耗。对于每个扫描间隔,BLE扫描设备在该扫描间隔内的扫描窗口中处于扫描状态,因此,若扫描窗口的长度等于扫描间隔的长度,则BLE扫描设备将处于连续扫描中。BLE扫描设备在任意相邻的两个扫描间隔中,使用的扫描频率不同。BLE扫描设备在每个扫描窗口中只扫描一个广播信道,且BLE扫描设备在任意相邻的两个扫描窗口中扫描的广播信道不同。
需要说明的是,BLE系统中的BLE扫描设备也可以作为BLE广播设备,同理,BLE广播设备也可以作为BLE扫描设备。为了便于描述,本申请将主要用于广播的设备称为BLE广播设备,将主要用于扫描的设备称为BLE扫描设备。
现有技术中,对于每个BLE广播设备,BLE扫描设备均使用其预先存储的一组预设的扫描参数扫描。但是,不同的BLE广播设备使用的广播间隔和
广播窗口不同,因此,对于某一BLE广播设备,BLE扫描设备使用一组预设的扫描参数进行扫描,可能无法实现扫描发现时间与BLE扫描设备的功耗之间的平衡。
针对上述技术问题,本申请实施例提供一种扫描方法及设备,第一设备获取第二设备发送广播数据包所使用的广播窗口和广播间隔,并根据获取到的广播窗口和广播间隔,通过预设的扫描模型,确定在该第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时,该第一设备使用的目标扫描窗口和目标扫描间隔,这样,该第一设备可根据目标扫描窗口和目标扫描间隔扫描,以发现第二设备。由于第一设备在确定目标扫描窗口和目标扫描间隔时,既考虑了广播窗口和广播间隔,又考虑了第一设备的功耗,因此,第一设备在确定目标扫描窗口和目标扫描间隔时,兼顾了扫描发现时间和第一设备的功耗,实现了扫描发现时间和第一设备的功耗的平衡。
本申请实施例提供的扫描方法应用于通信系统。图2是本申请实施例提供的通信系统的结构示意图。参见图2,该通信系统包括第一设备20以及第二设备21,且第二设备21可与第一设备20无线连接。
结合上述描述,本申请实施例中的第一设备20可以为BLE扫描设备,第二设备21可以为BLE广播设备。
第二设备21与第一设备20之间的连接方式可以为BLE方式,也可以为无线保真(Wireless-Fidelity,Wi-Fi)方式,还可以为传统蓝牙中的(Basic Rate,BR)方式,还可以为紫蜂(zigbee)方式,本申请实施例对此不作具体限定。
本申请实施例中的第一设备20或第二设备21可以为可穿戴式设备,也可以为智能终端。
可穿戴式设备包括但不限于智能手表、智能手环、智能腕带、智能眼镜、智能项链、智能戒指、智能耳环、智能手机等各类智能的穿戴设备。在实际应用中,可穿戴式设备自身可以提供蓝牙(Bluetooth,BT)、无线保真(Wireless-Fidelity,Wi-Fi)、近距离无线通讯技术(Near Field Communication,NFC)、红外线(Infrared)等各种可用网络连接能力。穿戴式设备可以内置加速度计、陀螺仪、磁力计、光线传感器、全球定位系统(Global Positioning System,GPS)等各类传感器以及麦克风、扬声器输入/输出等(Input/Output,I/O)部件。可穿戴式设备利用上述各类传感器可以有效地检测用户的动作(如跑步、步行等)、用户体征数据(如心率、血压等)以及用户当前所处的地点(即用户当前所处的位置)等。
示例性的,在本申请实施例中,图2所示的第一设备20可以为智能手表,下面结合图3对本申请实施例中的智能手表的各个构成部件进行具体的介绍。
如图3所示,智能手表包括:处理器31,蓝牙模块32、电源33、存储器34、输入单元35、显示单元36等部件。本领域技术人员可以理解,图3中示出的智能手表的结构并不构成对智能手表的限定,其可以包括比如图3所示的部件更多或更少的部件,或者可以组合如图3所示的部件中的某些部件,或者可以与如图3所示的部件布置不同。
处理器31是智能手表的控制中心,利用各种接口和线路连接整个智能手表的各个部分,通过运行或执行存储在存储器34内的软件程序和/或模块,以及调用存储在存储器34内的数据,执行智能手表的各种功能和处理数据,从而对智能手表进行整体监控。处理器31可包括一个或多个处理单元。可选的,处理器31可集成应用处理器和调制解调处理器。其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可选的,上述调制解调处理器和应用处理器也可以是相互独立设置的。
蓝牙模块32可用于与第二设备21采用蓝牙方式连接。
智能手表包括给各个部件供电的电源33(比如电池),可选的,电源可以通过电源管理系统与处理器31逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
存储器34可用于存储软件程序以及模块,处理器31通过运行存储在存储器34的软件程序以及模块,从而执行智能手表的各种功能应用以及数据处理。存储器34可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如扫描功能)等;存储数据区可存储根据智能手表的使用所创建的数据(比如音频数据、电话本)等。此外,存储器34可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元35可用于接收输入的数字或字符信息,以及产生与智能手表的用户设置以及功能控制有关的键信号输入。具体地,输入单元35可包括触摸屏351以及其他输入设备352。触摸屏351,也称为触摸面板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触摸屏351上或在触摸屏351附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏351可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器31,并能接收处理器31发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏351。其他输入设备352可以包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元36可用于显示由用户输入的信息或提供给用户的信息以及智能手表的各种菜单。显示单元36可包括显示面板361,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-emitting Diode,OLED)等形式来配置显示面板361。进一步的,触摸屏351可覆盖显示面板361,当触摸屏351检测到在其上或附近的触摸操作后,传送给处理器31以确定触摸事件的类型,随后处理器31根据触摸事件的类型在显示面板361上提供相应的视觉输出。虽然,在图3中,触摸屏351与显示面板361是作为两个独立的部件来实现智能手表的输入和输出功能,但
是在某些实施例中,可以将触摸屏351与显示面板361集成而实现智能手表的输入和输出功能。
可选的,智能手表还可以包括各种传感器(如陀螺仪传感器、湿度计传感器、红外线传感器或磁力计传感器)、Wi-Fi模块等。图3中并未示出。
图4是本申请实施例提供的扫描方法的流程示意图,该扫描方法可以应用在图2所示的通信系统中。
参见图4,该扫描方法包括:
S400、第一设备向服务器发送携带第二设备的标识的请求消息,以请求获取第二设备发送广播数据包所使用的广播窗口和广播间隔。
S401、服务器向第一设备发送携带第二设备使用的广播窗口和广播间隔的响应消息。
S402、第一设备根据广播窗口和广播间隔,通过预设的扫描模型,确定在第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时,第一设备使用的目标扫描窗口和目标扫描间隔。
S403、第一设备根据目标扫描窗口和目标扫描间隔扫描。
结合上述描述,本申请实施例中的第一设备可以为上述BLE扫描设备,第二设备可以为上述BLE广播设备。
从上述描述可知,不同的BLE广播设备使用的广播间隔和广播窗口不同,广播间隔和广播窗口均会影响扫描发现时间。针对任一第二设备,本申请实施例中的第一设备获取该第二设备发送广播数据包所使用的广播参数。具体的,第一设备获取第二设备发送广播数据包所使用的广播窗口和广播间隔,以便于根据获取到的广播窗口和广播间隔,确定第一设备扫描第二设备发送的广播数据包所使用的目标扫描窗口和目标扫描间隔。
具体的,第一设备获取第二设备发送广播数据包所使用的广播窗口和广播间隔的方法可以为:第一设备向服务器发送携带第二设备的标识的请求消息,以请求获取第二设备发送广播数据包所使用的广播窗口和广播间隔;该服务器预先存储有第二设备发送广播数据包所使用的广播窗口和广播间隔;相应的,服务器在接收到该请求消息后,向第一设备发送第二设备使用的广播窗口和广播间隔,这样,第一设备即可获取到第二设备使用的广播窗口和广播间隔,即执行S400和S401。
其中,服务器可以为云服务器,也可以为第一设备的后台服务器,本申请实施例对此不作具体限定。
示例性的,第一设备为智能手机,第二设备为智能手表,第一设备中预先存储有与该智能手表匹配的应用程序,服务器为后台服务器。第一设备的用户在打开该应用程序后,第一设备向后台服务器发送携带智能手表的标识的请求消息,以请求获取该智能手表发送广播数据包所使用的广播窗口和广播间隔。相对应的,后台服务器在接收到该请求消息后,向智能手机发送智能手表使用的广播窗口和广播间隔,这样,智能手机即可获取到智能手表使用的广播窗口和广播间隔。
可选的,第一设备获取到的广播窗口和广播间隔均为第一设备预先存储的。第一设备预先存储的广播窗口和广播间隔均为第一设备之前与第二设备通信时获取并存储的。
其中,第一设备预先获取并存储广播窗口和广播间隔的方法可以为:第一设备根据预设的扫描参数连续扫描某一广播信道,并获取通过该广播信道传输的至少两个广播数据报文,第一设备根据其获取各个广播数据报文的时刻,计算得到广播间隔。此外,第一设备首次获取到通过某一广播信道发送的广播数据报文后,第一设备快速切换到下一广播信道进行扫描,这样,第一设备可以根据其在不同广播信道获取广播数据报文的时刻来确定广播窗口。
该方法中第一设备是根据预设的扫描参数扫描发现了第二设备,这种情况下可能无法实现扫描发现时间与第一设备的功耗之间的平衡,因此第一设备存储其计算出的广播间隔和广播窗口,以便在后续与第二设备通信时,计算目标扫描参数。需要说明的是,该方法中第一设备的硬件结构需支持该第一设备扫描采样获取第二设备使用的广播窗口和广播间隔。
可选的,第一设备预先获取并存储广播窗口和广播间隔的方法也可以为:第一设备根据预设的扫描参数扫描发现了第二设备,然后,第一设备与第二设备建立连接。二者之间建立连接后,第一设备获取第二设备发送的至少一个广播数据包,至少一个广播数据包中的每个广播数据包均携带广播窗口和广播间隔,第一设备从其获取到的任一广播数据包中获取广播窗口和广播间隔。
该方法中,由于第一设备在获取到广播窗口和广播间隔之前,已经与第二设备建立连接,且第一设备是根据预设的扫描参数扫描发现了第二设备,因此,此次第一设备与第二设备之间的通信可能会出现第一设备的功耗与扫描发现时间无法平衡的问题。第一设备在获取到广播窗口和广播间隔后,存储该广播窗口和广播间隔,以便在后续与第二设备通信时,计算目标扫描参数。
第一设备在获取到第二设备使用的广播窗口和广播间隔后,通过预设的扫描模型,确定在第一设备的功耗为预设阈值和扫描发现时间满足预设条件时,第一设备使用的目标扫描窗口和目标扫描间隔,这样,第一设备根据目标扫描窗口和目标扫描间隔扫描,可实现扫描发现时间与第一设备的功耗之间的平衡,即第一设备执行S402和S403。
结合上述描述,序号为37、38和39的信道均为广播信道,第二设备最多可选择通过三个广播信道发送广播数据包,即第二设备分别在3个广播信道上各发送一个广播数据包。因此,广播窗口最多可完全覆盖三个广播信道。第一设备在每个扫描窗口中只扫描一个广播信道,且第一设备在任意相邻的两个扫描窗口中扫描的广播信道不同。因此,在第二设备分别在3个广播信道上各发送一个广播数据包的广播事件中,若扫描窗口能够完全覆盖三个广播信道,第一设备可扫描到第二设备通过某一广播信道发送的广播数据包。
基于在第二设备分别在3个广播信道上各发送一个广播数据包的广播事
件中,若扫描窗口能够完全覆盖三个广播信道,第一设备可扫描到第二设备通过某一广播信道发送的广播数据包,构建本申请实施例涉及到的预设的扫描模型。
如图5所示,以某一广播事件的起始时刻为坐标原点,横轴表示时间,纵轴表示广播或者扫描是否正在进行。若本申请实施例中,advWindow表示广播窗口,advinterval表示广播间隔,scanWindow表示扫描窗口,scaninterval表示扫描间隔,Yadv=1表示正在进行广播,Yscan=1表示正在进行扫描,则广播的公式可以表示为:
实际应用中,扫描起始时刻与广播起始时刻可以相同,也可以不同。可以理解的是,实际应用中,可以是在广播起始时刻开始扫描,也可以是在广播进行的过程中开始扫描,还可以是在广播起始时刻扫描结束。图5示出了在广播起始时刻开始扫描的情形。结合图5,图6示出了在广播进行的过程中开始扫描的情形。结合图5,图7示出了在广播起始时刻扫描结束的情形。
本申请实施例用shift表示扫描起始时刻与广播起始时刻之间的时间差。结合上述图5、图6以及图7可知,shift的取值范围为[0,scaninterval),扫描的公式可以表示为:
从上述描述可知,扫描窗口与扫描间隔的比值为扫描占空比,扫描占空比决定了第一设备的功耗。在第一设备的功耗为预设阈值时,扫描参数存在至少一组,每组扫描参数中的扫描窗口与扫描间隔的比值均为第一函数的自变量,预设阈值为第一函数的函数值。
示例性的,若扫描窗口用a表示,扫描间隔用b表示,预设阈值用c表示,则第一函数可表示为c=a/b为,或者表示为c=ln(a/b),或者表示为c=k·(a/b),k>0。
第一设备在S401中已经获取到第二设备使用的广播窗口和广播间隔,因此,该第一设备可利用上述广播公式和扫描公式,确定出与每组扫描参数对应的第一扫描发现时间,这样,该第一设备便可从确定出的第一扫描发现时间中,选取出时间最短的第一扫描发现时间,并将选取出的第一扫描发现时间确定为目标扫描发现时间,该目标扫描发现时间对应的扫描参数为目标扫描参数。
具体的,对于多组扫描参数中的每组扫描参数,shift的取值范围均为[0,scaninterval),因此,对于每组扫描参数,第一设备可确定出一个由不同数值的shift组成的集合。对于每组扫描参数,第一设备根据上述广播公式和上述扫描公式,可确定出与每个shift对应的第二扫描发现时间。这样,第一设备利用预设算法对计算出的第二扫描发现时间计算,得到与对应的一组扫描参
数对应的第一扫描发现时间。这里预设算法可以为算术平均法,也可以为加权平均法,还可以为其他算法,本申请实施例对此不作具体限定。
示例性的,如表1所示,若预设算法为算术平均法,第一设备的功耗为1/9,第一公式为上述示例中的c=a/b,则扫描窗口的数值为1,扫描间隔的数值为9,或者,扫描窗口的数值为10,扫描间隔的数值为90。
表1
在扫描窗口的数值为1,扫描间隔的数值为9的场景中,shift的取值为shift1、shift2和shift3。shift的数值为shift1,利用上述广播公式和扫描公式可计算出第二扫描发现时间t1。shift的数值为shift2,利用上述广播公式和扫描公式可计算出第二扫描发现时间t2。shift的数值为shift3,利用上述广播公式和扫描公式可计算出第二扫描发现时间t3。第一设备计算t1、t2和t3的算术平均数,得到第一扫描发现时间T1,这样,T1表示在扫描窗口的数值为1,扫描间隔的数值为9的场景中的扫描发现时间。
在扫描窗口的数值为10,扫描间隔的数值为90的场景中,shift的取值为shift4、shift5和shift6。shift的数值为shift4,利用上述广播公式和扫描公式可计算出第二扫描发现时间t4。shift的数值为shift5,利用上述广播公式和扫描公式可计算出第二扫描发现时间t5。shift的数值为shift6,利用上述广播公式和扫描公式可计算出第二扫描发现时间t6。第一设备计算t4、t5和t6的算数平均数,得到第一扫描发现时间T2,这样,T2表示在扫描窗口的数值为10,扫描间隔的数值为90的场景中的扫描发现时间。
若T1小于T2,则第一设备将T1作为目标扫描发现时间,与T1对应的扫描窗口确定为目标扫描窗口(数值为1),与T1对应的扫描间隔确定为目标扫描间隔(数值为9)。
可以理解的是,表1示出的shift的取值仅仅是用于示例。在实际应用中,对于每个具体应用场景(针对一组扫描参数),shift的数值为至少一个。
广播事件后加入的随机延时对本申请实施例中第一设备确定目标扫描参数的影响较小,因此,在本申请实施例中,广播事件后加入的随机延时可以忽略不计。
具体的,第一设备在确定出目标扫描窗口和目标扫描间隔后,根据其确定出的目标扫描窗口和目标扫描间隔扫描第二设备发送的广播数据包。
可以看出,本申请实施例中的第一设备是在考虑了第一设备的功耗和扫
描发现时间的基础上,确定出目标扫描窗口和目标扫描间隔,这样,第一设备根据目标扫描窗口和目标扫描间隔扫描第二设备发送的广播数据包时,能够实现该第一设备的功耗与扫描发现时间的平衡。
本申请实施例提供一种扫描设备,该扫描设备用于执行以上扫描方法中的第一设备所执行的步骤。本申请实施例提供的扫描设备可以包括相应步骤所对应的模块。
本申请实施例可以根据上述方法示例对扫描设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的扫描设备的一种可能的结构示意图。如图8所示,扫描设备包括获取单元80、确定单元81和扫描单元82。获取单元80用于支持该扫描设备执行图4中的S401;确定单元81用于支持该扫描设备执行图4中的S402;扫描单元82用于支持该扫描设备执行图4中的S403。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。此外,本申请实施例提供的扫描设备还包括发送单元83和存储单元84,发送单元83用于支持该扫描设备执行图4中的S400,存储单元84用于存储第二设备发送广播数据包所使用的广播窗口和广播间隔,也可以用于存储该扫描的程序代码和数据。
在采用集成的单元的情况下,图9示出了上述实施例中所涉及的扫描设备的一种可能的结构示意图。如图9所示,该扫描设备包括:处理模块90和通信模块91。处理模块90用于对该扫描设备的动作进行控制管理,例如,处理模块90用于支持该扫描设备执行图4中的S402和S403,和/或用于本申请所描述的技术的其它过程。通信模块91用于支持该扫描设备与外部设备的通信,例如,通信模块91用于支持该扫描设备执行图4中的S400和S401。
其中,本申请实施例中的处理模块90可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),数字信号处理器(Digital Signal Processor,DSP)。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。
本申请实施例中的通信模块91可以为用于与外部设备交互数据的蓝牙模块,还可以包括与蓝牙模块对应的RF电路。RF电路用于信息收发或通话过程中接收和发送信号。
本申请实施例中的通信模块91也可以为用于与外部设备交互数据的通信接口,英文全称:Communication Interface。该通信模块可以包括两个通信接口,一个用于向外部设备发送数据的发送接口和一个用于接收来自外部设备的数据的接收接口,即扫描设备可以通过两个不同的通信接口分别实现数
据的接收和数据的发送。当然,该通信模块91可以将数据接收功能和数据发送功能集成在一个通信接口上,该通信接口具备数据接收功能和数据发送功能。其中,该通信接口可以集成在蓝牙芯片或者NFC芯片上。
本申请实施例中的通信模块91还可以是收发器或收发电路等。
可选的,如图9所示,该扫描设备还可以包括一些输入模块92,用于实现用户与该扫描设备的交互。
其中,输入模块92可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本申请具体实施方式中,输入模块92可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。
在本申请的其他实施方式中,输入模块92所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。麦克风形式的输入模块92可以收集用户或环境输入的语音并将其转换成电信号形式的、处理模块90可执行的命令。
可选的,如图9所示,该扫描设备还可以包括一些输出模块93,用于实现用户与该扫描设备的交互。
输出模块93包括但不限于影像输出模块和声音输出模块。影像输出模块用于输出文字、图片和/或视频。所述影像输出模块可包括显示面板,例如采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)、场发射显示器(Field Emission Display,FED)等形式来配置的显示面板。所述影像输出模块可以包括单个显示面板或不同尺寸的多个显示面板。在本申请的具体实施方式中,上述输入模块92所采用的触控面板亦可同时作为输出模块93的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理模块90以确定触摸事件的类型,随后处理模块90根据触摸事件的类型在显示面板上提供相应的视觉输出。
如图9所示,输入模块92与输出模块93可以作为两个独立的部件来实现扫描设备的输入和输出功能,但是在某些实施例中,可以将输入模块92与输出模块93集成一体而实现扫描设备的输入和输出功能(如图9所示将输入模块92与输出模块93包含在一个虚线框内,用以表示输入模块92与输出模块93集成为一体)。
可选的,本申请实施例中的扫描设备还包括存储模块94,用于存储目标扫描窗口和目标扫描间隔。
其中,存储模块94可以是存储器。
当处理模块90为处理器,通信模块91为通信接口,输入模块92和输出模块93为同一显示屏,存储模块94为存储器时,本申请实施例所涉及的扫描设备可以为图10所示的扫描设备。
如图10所示,该扫描设备包括:通信接口100、处理器101、存储器102。其中,通信接口100、处理器101与存储器102之间通过系统总线103连接,并完成相互间通信。
当扫描设备运行时,该扫描设备执行如图4所示的实施例的扫描方法。具体的扫描方法可参见上述如图4所示的实施例中的相关描述,此处不再赘述。
其中,存储器102可用于存储确定出的目标扫描窗口和目标扫描间隔,也可以用于存储软件程序以及应用模块,处理器101通过运行存储在存储器102的软件程序以及应用模块,从而执行扫描设备的各种功能应用以及数据处理。
存储器102可主要包括存储程序区1020和存储数据区1021,其中,存储程序区1020可存储操作系统、至少一个功能所需的应用程序,比如获取第二设备使用的广播窗口和广播间隔等;存储数据区1021可存储目标扫描窗口和目标扫描间隔。在本申请实施方式中,所述操作系统可以为Android(安卓)系统、iOS系统或Windows操作系统等,或者是Vxworks这类的嵌入式操作系统。
在本申请具体实施方式中,存储器102可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile Random Access Memory,NVRAM)、相变化随机存取内存(Phase Change RAM,PRAM)、磁阻式随机存取内存(Magnetic Random Access Memory,MRAM)等;存储器102还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。非易失存储器储存处理器101所执行的操作系统及应用程序。处理器101从非易失存储器加载运行程序与数据到内存并将数据内容储存于大量储存装置中。
存储器102可以是独立存在,通过系统总线103与处理器101相连接。存储器102也可以和处理器101集成在一起。
处理器101是扫描设备的控制中心。处理器101利用各种接口和线路连接整个扫描设备的各个部分,通过运行或执行存储在存储器102内的软件程序和/或应用模块,以及调用存储在存储器102内的数据,执行扫描设备的各种功能和处理数据,从而对扫描设备进行整体监控。
处理器101可以仅包括CPU,也可以是CPU、图像处理器(Graphic Processing Unit,GPU)、DSP以及通信单元中的控制芯片(例如基带芯片)的组合。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。在具体实现中,作为一种实施例,处理器101可以包括一个或多个CPU,例如图10中的处理器101包括CPU 0和CPU 1。
系统总线103可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该系统总线103可以分为地址总线、数据总线、控制总线等。本申请实施例中为了清楚说明,在图10中将各种总线都示意为系统总线104。
可选的,扫描设备还可以包括显示屏104。图10中用虚线框表示。
进一步地,扫描设备还可以包含电源105,用于给扫描设备的不同部件进行供电以维持其运行。作为一般性理解,所述电源105可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向扫描设备供电的外接电源,例如交流(Alternating Current,AC)适配器等。在本申请的一些实施方式中,所述电源105还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与扫描设备的电能生成、管理及分布相关联的其他任何组件。
相应的,本申请另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括一个或多个程序代码,该一个或多个程序包括指令,当扫描设备中的处理器在执行该程序代码时,该扫描设备执行如图4所示的扫描方法。
在上述实施例中,可以全部或部分的通过软件程序,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间
接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (11)
- 一种扫描方法,其特征在于,包括:第一设备获取第二设备发送广播数据包所使用的广播参数,所述广播参数包括广播窗口和广播间隔;所述第一设备根据所述广播窗口和所述广播间隔,通过预设的扫描模型,确定所述第一设备使用的目标扫描参数,所述目标扫描参数为所述第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时,所述第一设备使用的扫描参数,所述目标扫描参数包括目标扫描窗口和目标扫描间隔;所述第一设备根据所述目标扫描窗口和所述目标扫描间隔扫描。
- 根据权利要求1所述的扫描方法,其特征在于,所述第一设备获取广播窗口和广播间隔,包括:所述第一设备向服务器发送携带所述第二设备的标识的请求消息,以请求获取所述广播窗口和所述广播间隔,所述服务器存储有所述广播窗口和所述广播间隔;所述第一设备接收所述服务器发送的响应消息,所述响应消息携带所述广播窗口和所述广播间隔。
- 根据权利要求1或2所述的扫描方法,其特征在于,所述预设条件为时间最短,所述第一设备根据所述广播窗口和所述广播间隔,通过预设的扫描模型,确定所述第一设备使用的目标扫描参数,具体包括:所述第一设备根据所述预设阈值,确定多组扫描参数,所述多组扫描参数中的每组扫描参数均包括扫描窗口和扫描间隔,所述预设阈值为第一函数的函数值,所述第一函数的自变量为所述扫描窗口与所述扫描间隔的比值;所述第一设备根据所述广播窗口和所述广播间隔,通过所述扫描模型,确定与所述每组扫描参数对应的第一扫描发现时间,以得到多个第一扫描发现时间;所述第一设备将所述多个第一扫描发现时间中,时间最短的第一扫描发现时间确定为目标扫描发现时间;所述第一设备确定与所述目标扫描发现时间对应的扫描参数为所述目标扫描参数。
- 根据权利要求3所述的扫描方法,其特征在于,所述第一设备根据所述广播窗口和所述广播间隔,通过预设的扫描模型,确定与所述每组扫描参数对应的第一扫描发现时间,以得到多个第一扫描发现时间,具体包括:对于所述多组扫描参数中的每组扫描参数,所述第一设备均执行下述步骤,以得到所述多个第一扫描发现时间:所述第一设备确定至少一个扫描起始时刻;所述第一设备根据所述多组扫描参数中的一组扫描参数,确定时间差集合,所述时间差集合包括至少一个时间差,所述至少一个时间差中的第j个时间差用于表示所述至少一个扫描起始时刻中的第j个扫描起始时刻与广播起始时刻之间的差值,j≥1;所述第一设备根据所述广播窗口、所述广播间隔以及所述一组扫描参数,通过所述扫描模型,计算与所述至少一个时间差中的每个时间差对应的第二扫描发现时间,以得到多个第二扫描发现时间;所述第一设备利用预设算法对所述多个第二扫描发现时间计算,得到与所述一组扫描参数对应的第一扫描发现时间。
- 一种扫描设备,其特征在于,所述扫描设备为第一设备,所述扫描设备包括:获取单元,用于获取第二设备发送广播数据包所使用的广播参数,所述广播参数包括广播窗口和广播间隔;确定单元,用于根据所述获取单元获取到的所述广播窗口和所述广播间隔,通过预设的扫描模型,确定所述第一设备使用的目标扫描参数,所述目标扫描参数为所述第一设备的功耗为预设阈值、且扫描发现时间满足预设条件时所述第一设备使用的扫描参数,所述目标扫描参数包括目标扫描窗口和目标扫描间隔;扫描设备,用于根据所述确定单元确定出的所述目标扫描窗口和所述目标扫描间隔扫描。
- 根据权利要求5所述的扫描设备,其特征在于,所述获取单元具体用于:向服务器发送携带所述第二设备的标识的请求消息,以请求获取所述广播窗口和所述广播间隔,所述服务器存储有所述广播窗口和所述广播间隔;接收所述服务器发送的响应消息,所述响应消息携带所述广播窗口和所述广播间隔。
- 根据权利要求5或6所述的扫描设备,其特征在于,所述预设条件为时间最短,所述确定单元具体用于:根据所述预设阈值,确定多组扫描参数,所述多组扫描参数中的每组扫描参数均包括扫描窗口和扫描间隔,所述预设阈值为第一函数的函数值,所述第一函数的自变量为所述扫描窗口与所述扫描间隔的比值;根据所述广播窗口和所述广播间隔,通过所述扫描模型,确定与所述每组扫描参数对应的第一扫描发现时间,以得到多个第一扫描发现时间;将所述多个第一扫描发现时间中,时间最短的第一扫描发现时间确定为目标扫描发现时间;确定与所述目标扫描发现时间对应的扫描参数为所述目标扫描参数。
- 根据权利要求7所述的扫描设备,其特征在于,对于所述多组扫描参数中的每组扫描参数,所述确定单元具体用于:确定至少一个扫描起始时刻;根据所述多组扫描参数中的一组扫描参数,确定时间差集合,所述时间差集合包括至少一个时间差,所述至少一个时间差中的第j个时间差用于表示所述至少一个扫描起始时刻中的第j个扫描起始时刻与广播起始时刻之间的差值,j≥1;根据所述广播窗口、所述广播间隔以及所述一组扫描参数,通过所述扫描模型,计算与所述至少一个时间差中的每个时间差对应的第二扫描发现时间,以得到多个第二扫描发现时间;利用预设算法对所述多个第二扫描发现时间计算,得到与所述一组扫描参数对应的第一扫描发现时间。
- 一种扫描设备,其特征在于,所述扫描设备包括:处理器、存储器和通信接口;所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,所述处理器、所述通信接口与所述存储器通过总线连接,当所述扫描设备运行时,所述处理器执行所述存储器存储的所述指令,以使所述扫描设备执行如权利要求1-4中任意一项所述的扫描方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括一个或多个程序代码,当扫描设备的处理器在执行所述程序代码时,所述扫描设备执行如权利要求1-4中任意一项所述的扫描方法。
- 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在扫描设备上运行时,使得所述扫描设备执行如权利要求1-4中任意一项所述的扫描方法。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780007689.2A CN108781410B (zh) | 2017-03-14 | 2017-03-14 | 一种扫描方法及设备 |
PCT/CN2017/076626 WO2018165862A1 (zh) | 2017-03-14 | 2017-03-14 | 一种扫描方法及设备 |
US16/494,562 US10912027B2 (en) | 2017-03-14 | 2017-03-14 | Scanning method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/076626 WO2018165862A1 (zh) | 2017-03-14 | 2017-03-14 | 一种扫描方法及设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018165862A1 true WO2018165862A1 (zh) | 2018-09-20 |
Family
ID=63521844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/076626 WO2018165862A1 (zh) | 2017-03-14 | 2017-03-14 | 一种扫描方法及设备 |
Country Status (3)
Country | Link |
---|---|
US (1) | US10912027B2 (zh) |
CN (1) | CN108781410B (zh) |
WO (1) | WO2018165862A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109699019A (zh) * | 2019-02-01 | 2019-04-30 | Oppo广东移动通信有限公司 | 广播扫描方法、装置、电子设备以及存储介质 |
CN111405536A (zh) * | 2020-03-18 | 2020-07-10 | 深圳创维数字技术有限公司 | 一种配网方法、设备和存储介质 |
WO2024149146A1 (zh) * | 2023-01-13 | 2024-07-18 | 华为技术有限公司 | 组网设备通信的方法以及电子设备 |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11516860B2 (en) | 2016-09-19 | 2022-11-29 | Pacesetter, Inc. | Implantable medical device and method for managing advertising and scanning schedules |
WO2021092859A1 (zh) * | 2019-11-14 | 2021-05-20 | 深圳市汇顶科技股份有限公司 | 建立iso链路的方法和ble设备 |
CN114980041A (zh) * | 2021-02-19 | 2022-08-30 | Oppo广东移动通信有限公司 | WiFi信号扫描方法、装置、终端及存储介质 |
CN113841431B (zh) * | 2021-03-19 | 2022-09-09 | 华为技术有限公司 | 通信方法和通信装置 |
CN113423098B (zh) * | 2021-04-28 | 2022-12-02 | 广州芯之联科技有限公司 | 蓝牙扫描事件调度方法、装置及蓝牙设备 |
CN114286290B (zh) * | 2021-12-08 | 2023-03-14 | 广州安凯微电子股份有限公司 | 一种ble广播发送和接收方法、装置及系统 |
CN115665723B (zh) * | 2022-12-14 | 2023-05-05 | 深圳开鸿数字产业发展有限公司 | 蓝牙信号扫描方法、设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140155050A1 (en) * | 2012-12-05 | 2014-06-05 | Samsung Electronics Co., Ltd. | Method and apparatus for receiving content based on status of terminal |
CN105072565A (zh) * | 2015-08-10 | 2015-11-18 | 深圳市金立通信设备有限公司 | 一种数据传输方法及相关设备 |
US20170041868A1 (en) * | 2015-08-07 | 2017-02-09 | Nokia Technologies Oy | Method, apparatus, and computer program product for low power data delivery |
CN106412804A (zh) * | 2016-10-08 | 2017-02-15 | 安宝睡科技(深圳)有限公司 | 用于物流追踪的双向通信系统 |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9020433B2 (en) * | 2011-10-05 | 2015-04-28 | Apple Inc. | Low power wireless device discovery |
WO2014008658A1 (en) * | 2012-07-13 | 2014-01-16 | Nokia Corporation | Handling packet data units |
US9408147B2 (en) * | 2012-09-24 | 2016-08-02 | Broadcom Corporation | Enhanced rate physical layer for Bluetooth™ low energy |
KR102004915B1 (ko) * | 2012-12-04 | 2019-07-30 | 삼성전자주식회사 | 단말기의 컨텐츠 수신 장치 및 방법 |
KR102064929B1 (ko) * | 2013-10-10 | 2020-01-10 | 삼성전자 주식회사 | 근접 기능 운용 방법 및 이를 지원하는 전자 장치 |
WO2015068988A1 (ko) * | 2013-11-06 | 2015-05-14 | 엘지전자(주) | 무선 통신 시스템에서 데이터를 송수신하는 방법 및 이를 수행하기 위한 장치 |
CN103686610B (zh) * | 2013-11-30 | 2017-06-16 | 北京智谷睿拓技术服务有限公司 | 一种无线通信的广播方法及设备 |
CN103781158A (zh) * | 2013-11-30 | 2014-05-07 | 北京智谷睿拓技术服务有限公司 | 无线网络接入方法及接入装置 |
US9648485B2 (en) * | 2014-02-03 | 2017-05-09 | Qualcomm Incorporated | Discovery of a neighbor awareness network (NAN) using a wake up message |
US9485734B2 (en) * | 2014-06-30 | 2016-11-01 | Intel Corporation | Wireless communication system method for synchronizing Bluetooth devices based on received beacon signals |
KR102258052B1 (ko) * | 2014-09-25 | 2021-05-28 | 삼성전자주식회사 | 전자 장치에서 다른 전자 장치와 컨텐츠를 공유하기 위한 장치 및 방법 |
US20160095156A1 (en) | 2014-09-29 | 2016-03-31 | Qualcomm Incorporated | Out-of-service scan optimization using broadcast neighbor list information in wireless communications |
US9699593B2 (en) * | 2014-10-07 | 2017-07-04 | Google Inc. | Scanning enhancements for short-range wireless devices |
US20170245204A1 (en) * | 2016-02-19 | 2017-08-24 | Qualcomm Incorporated | Systems and methods for prioritizing channel scanning |
WO2018045561A1 (zh) * | 2016-09-09 | 2018-03-15 | 华为技术有限公司 | 一种文件的发送方法、接收方法及终端 |
US10932313B2 (en) * | 2016-12-24 | 2021-02-23 | Huawei Technologies Co., Ltd. | Wireless connection switching method and terminal |
-
2017
- 2017-03-14 US US16/494,562 patent/US10912027B2/en active Active
- 2017-03-14 CN CN201780007689.2A patent/CN108781410B/zh active Active
- 2017-03-14 WO PCT/CN2017/076626 patent/WO2018165862A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140155050A1 (en) * | 2012-12-05 | 2014-06-05 | Samsung Electronics Co., Ltd. | Method and apparatus for receiving content based on status of terminal |
US20170041868A1 (en) * | 2015-08-07 | 2017-02-09 | Nokia Technologies Oy | Method, apparatus, and computer program product for low power data delivery |
CN105072565A (zh) * | 2015-08-10 | 2015-11-18 | 深圳市金立通信设备有限公司 | 一种数据传输方法及相关设备 |
CN106412804A (zh) * | 2016-10-08 | 2017-02-15 | 安宝睡科技(深圳)有限公司 | 用于物流追踪的双向通信系统 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109699019A (zh) * | 2019-02-01 | 2019-04-30 | Oppo广东移动通信有限公司 | 广播扫描方法、装置、电子设备以及存储介质 |
CN109699019B (zh) * | 2019-02-01 | 2022-02-18 | Oppo广东移动通信有限公司 | 广播扫描方法、装置、电子设备以及存储介质 |
CN111405536A (zh) * | 2020-03-18 | 2020-07-10 | 深圳创维数字技术有限公司 | 一种配网方法、设备和存储介质 |
CN111405536B (zh) * | 2020-03-18 | 2023-03-24 | 深圳创维数字技术有限公司 | 一种配网方法、设备和存储介质 |
WO2024149146A1 (zh) * | 2023-01-13 | 2024-07-18 | 华为技术有限公司 | 组网设备通信的方法以及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
US20200015163A1 (en) | 2020-01-09 |
US10912027B2 (en) | 2021-02-02 |
CN108781410B (zh) | 2020-09-11 |
CN108781410A (zh) | 2018-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018165862A1 (zh) | 一种扫描方法及设备 | |
US11985374B2 (en) | Method of controlling the sharing of videos and electronic device adapted thereto | |
US12004061B2 (en) | Bluetooth communication method and dual-mode Bluetooth terminal | |
US10390140B2 (en) | Output device outputting audio signal and control method thereof | |
US10231185B2 (en) | Method for controlling apparatus according to request information, and apparatus supporting the method | |
US10021451B2 (en) | Method for outputting audio and electronic device for the same | |
WO2017140276A1 (zh) | 网络连接方法及装置、计算机存储介质 | |
US9826342B2 (en) | Method for controlling sound output and an electronic device thereof | |
US10187091B2 (en) | Device for performing communication and method thereof | |
CN110622123A (zh) | 一种显示方法及装置 | |
WO2019000411A1 (zh) | 一种无线通信连接建立的方法及设备 | |
WO2018049934A1 (zh) | 一种数据迁移的方法及终端 | |
WO2022028290A1 (zh) | 基于指向操作的设备之间的交互方法及电子设备 | |
WO2019052551A1 (zh) | 终端设备的交互方法、存储介质以及终端设备 | |
AU2014315883A1 (en) | Method of controlling short-range wireless communication and apparatus supporting the same | |
CN110636144A (zh) | 数据下载的方法和装置 | |
CN113253826B (zh) | 一种控制方法、装置、终端以及存储介质 | |
US9749455B2 (en) | Electronic device and method for sending messages using the same | |
WO2018152981A1 (zh) | 一种配置外部设备的方法及设备 | |
WO2018214745A1 (zh) | 应用控制方法及相关产品 | |
WO2019072179A1 (zh) | 应用程序运行控制方法及装置 | |
CN111026457B (zh) | 一种硬件配置方法、装置、存储介质及终端设备 | |
CN111045737B (zh) | 设备标识获取方法、装置、终端设备和存储介质 | |
CN105703808A (zh) | 一种传输数据的方法和装置 | |
US20170150270A1 (en) | Audio accessory and audio output 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: 17900416 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: 17900416 Country of ref document: EP Kind code of ref document: A1 |